Translating C to PlusCal for Model Checking of Safety Properties (Q&A)
summary
A C-to-PlusCal translation produces executable PlusCal models but does not yet implement heap checks; catching allocation/deallocation errors or buffer overflows requires modeling memory as a fixed maximum memory region plus an invariant that forbids size overflow, which was not exercised. Translating LLVM IR -> PlusCal is proposed because SSA maps cleanly to state variables, but it creates many temporary variables and a potentially huge state space, and compiler optimizations can change observable semantics.
AI-written summary · about
