C program verification: Verification condition explanation and standard library

2012 ◽  
Vol 46 (7) ◽  
pp. 394-401 ◽  
Author(s):  
A. V. Promsky
2021 ◽  
Vol 33 (4) ◽  
pp. 177-194
Author(s):  
Rafael Faritovich Sadykov ◽  
Mikhail Usamovich Mandrykin

The process of developing C programs is quite often prone to errors related to the uses of pointer arithmetic and operations on memory addresses. This promotes a need in developing various tools for automated program verification. One of the techniques frequently employed by those tools is invocation of appropriate decision procedures implemented within existing SMT-solvers. But at the same time both the SMT standard and most existing SMT-solvers lack the relevant logics (combinations of logical theories) for directly and precisely modelling the semantics of pointer operations in C. One of the possible ways to support these logics is to implement them in an SMT solver, but this approach can be time-consuming (as requires modifying the solver’s source code), inflexible (introducing any changes to the theory’s signature or semantics can be unreasonably hard) and limited (every solver has to be supported separately). Another way is to design and implement custom quantifier instantiation strategies. These strategies can be then used to translate formulas in the desired theory combinations to formulas in well-supported decidable logics such as QF_UFLIA. In this paper, we present an instantiation procedure for translating formulas in the theory of bounded pointer arithmetic into the QF_UFLIA logic. We formally proved soundness and completeness of our instantiation procedure in Isabelle/HOL. The paper presents an informal description of this proof of the proposed procedure. The theory of bounded pointer arithmetic itself was formulated based on known errors regarding the correct use of pointer arithmetic operations in industrial code as well as the semantics of these operations specified in the C standard. Similar procedure can also be defined for a practically relevant fragment of the theory of bit vectors (monotone propositional combinations of equalities between bitwise expressions). Our approach is sufficient to obtain efficient decision procedures implemented as Isabelle/HOL proof methods for several decidable logical theories used in C program verification by relying on the existing capabilities of well-known SMT solvers, such as Z3 and proof reconstruction capabilities of the Isabelle/HOL proof assistant.


2019 ◽  
Vol 53 (7) ◽  
pp. 653-662
Author(s):  
D. A. Kondratyev ◽  
I. V. Maryasov ◽  
V. A. Nepomniaschy

2015 ◽  
Vol 20 (6) ◽  
pp. 52-63
Author(s):  
I. V. Maryasov ◽  
V. A. Nepomnyaschy ◽  
A. V. Promsky ◽  
D. A. Kondratyev

2011 ◽  
Vol 45 (7) ◽  
pp. 413-420 ◽  
Author(s):  
V. A. Nepomniaschy ◽  
I. S. Anureev ◽  
M. M. Atuchin ◽  
I. V. Maryasov ◽  
A. A. Petrov ◽  
...  

2014 ◽  
Vol 48 (7) ◽  
pp. 407-414 ◽  
Author(s):  
I. V. Maryasov ◽  
V. A. Nepomnyaschy ◽  
A. V. Promsky ◽  
D. A. Kondratyev

2006 ◽  
Author(s):  
Daniel Lee Harvey
Keyword(s):  

Sign in / Sign up

Export Citation Format

Share Document