Translating C to PlusCal for Model Checking of Safety Properties on Source
summary
A prototype named C2Pral translates restricted embedded C (preprocessed with Frama‑C/OCaml plugin) into PlusCal/Priscal by modeling memory as shared me, per‑call my stacks and a return wet stack, plus pointer representations and macros for load/store. It generates TLC inputs and successfully found a known scheduler bug, running the generated model in about 45 minutes on 10 cores; generated specs are verbose, pointer handling is incomplete, and manual fixes remain necessary.
AI-written summary · about
chapters (12)
- 0:00Introduction and context
- 3:13Motivations for the project
- 5:02Tool C2Pral overview
- 7:32Memory representation in PlusCal
- 10:22Pointers and macros in translation
- 13:56C function to PlusCal example
- 16:06Global variables initialization
- 17:53Implementation details
- 23:37Handling complex data structures
- 25:41Advanced pointer representation
- 31:04Experimental results and limitations
- 35:19Conclusion and future work
