Is there a way to avoid undefined behavior Im C then? Could we write a new C compiler that adds some checks and fixes (e.g. raise documented exceptions) to each undefined behavior?
Good open source ones:
Frama-C
IKOS (from NASA)
Doesn't catch all of it.