logoalt Hacker News

lelanthranyesterday at 7:24 AM1 replyview on HN

> LLM generated code will eventually contain UB.

Yes.

Even in languages other than C (i.e. you will get behaviour that nothing in the input specified).

When LLMs generate code, all languages have UB.


Replies

eruyesterday at 7:42 AM

That's a bit silly.

UB means literally no restrictions. So if you standard says 'you have to crash with an error message' that's already no longer UB.

show 1 reply