Publication | Closed Access
Almost correct invariants: synthesizing inductive invariants by fuzzing proofs
18
Citations
34
References
2022
Year
Unknown Venue
Program CheckingEngineeringVerificationComputer-aided VerificationSoftware EngineeringAutomated ProofSoftware AnalysisFormal VerificationFormal TechniqueFuzzingInline AssemblyNecessary Inductive InvariantsRuntime VerificationComputer ScienceProgram AnalysisAutomated ReasoningInductive InvariantsFormal MethodsProgram SynthesisSymbolic Execution
Real-life programs contain multiple operations whose semantics are unavailable to verification engines, like third-party library calls, inline assembly and SIMD instructions, special compiler-provided primitives, and queries to uninterpretable machine learning models. Even with the exceptional success story of program verification, synthesis of inductive invariants for such "open" programs has remained a challenge. Currently, this problem is handled by manually "closing" the program---by providing hand-written stubs that attempt to capture the behavior of the unmodelled operations; writing stubs is not only difficult and tedious, but the stubs are often incorrect---raising serious questions on the whole endeavor. In this work, we propose Almost Correct Invariants as an automated strategy for synthesizing inductive invariants for such "open" programs. We adopt an active learning strategy where a data-driven learner proposes candidate invariants. In deviation from prior work that attempt to verify invariants, we attempt to falsify the invariants: we reduce the falsification problem to a set of reachability checks on non-deterministic programs; we ride on the success of modern fuzzers to answer these reachability queries. Our tool, Achar, automatically synthesizes inductive invariants that are sufficient to prove the correctness of the target programs. We compare Achar with a state-of-the-art invariant synthesis tool that employs theorem proving on formulae built over the program source. Though Achar is without strong soundness guarantees, our experiments show that even when we provide almost no access to the program source, Achar outperforms the state-of-the-art invariant generator that has complete access to the source. We also evaluate Achar on programs that current invariant synthesis engines cannot handle---programs that invoke external library calls, inline assembly, and queries to convolution neural networks; Achar successfully infers the necessary inductive invariants within a reasonable time.
| Year | Citations | |
|---|---|---|
2008 | 8.8K | |
1969 | 3.8K | |
1991 | 2.2K | |
2007 | 1K | |
2014 | 635 | |
2017 | 581 | |
2018 | 523 | |
2013 | 512 | |
2010 | 471 | |
2010 | 384 |
Page 1
Page 1