User loginNavigation |
Dependent Types for Low-Level ProgrammingDependent Types for Low-Level Programming by Jeremy Condit, Matthew Harren, Zachary Anderson, David Gay, and George C. Necula:
A conceptually simple approach to verifying the safety of C programs, which proceeeds in 3 phases: 1. infer locals that hold pointer bounds, 2. flow-insensitive checking introduces runtime assertions using these locals, 3. flow-sensitive optimization that removes the assertions that it can prove always hold. You're left with a program that ensures runtime safety with as few runtime checks as possible, and the resulting C program is compiled with gcc which can perform its own optimizations. This work is from 2007, and the project grew into the Ivy language, which is a C dialect that is fully backwards compatible with C if you #include a small header file that includes the extensions. It's application to C probably won't get much uptake at this point, but I can see this as a useful compiler plugin to verify unsafe Rust code. |
Browse archives
Active forum topics |
Recent comments
23 weeks 1 hour ago
23 weeks 4 hours ago
23 weeks 5 hours ago
45 weeks 1 day ago
49 weeks 3 days ago
51 weeks 12 hours ago
51 weeks 12 hours ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago