by naasking · 4y ago · 0 comments
Sure, this is done all the time via verification and other formal methods. It's not common in the industry, but not entirely uncommon either.
Using proofs just shifts the bugs into the assumptions/axioms (i.e you think your proof is proving X but it's actually proving Y)
CompCert [2] is a formally verified optimizing C compiler.
Most formal verification happens in compilers or low-level mission critical systems due to the cost.
If you want to write some formally verified C, you can check out Frama-C [3].