SMT solving for the validation of B and Event-B models
Open Access
- 21 November 2022
- journal article
- research article
- Published by Springer Nature in International Journal on Software Tools for Technology Transfer
- Vol. 24 (6) , 1043-1077
Abstract
ProBprovides a constraint solver for the B-method written in Prolog and can make use of different backends based on SAT and SMT solving. One such backend translates B and Event-B operators to SMT-LIB using the Z3 solver. This translation uses quantifiers to axiomatize some operators, which are not well-handled by Z3. Several relational constraints such as the transitive closure are not supported by this translation. In this article, we substantially improve the translation to SMT-LIB by employing a more constructive rather than axiomatized style using Z3’s lambda function. Thereby, we are able both to translate more B and Event-B operators to SMT-LIB and improve the overall performance. We further extendProB’s interface to Z3 to run different solver configurations in parallel. In addition, we present a direct implementation of SMT solving in Prolog usingProB’s constraint solver as a theory solver. We hereby aim to combine the strengths of conflict-driven clause learning for identifying contradictions withProB’s constraint solver for finding solutions. We deem this implementation to be worthwhile sinceProB’s constraint solver is tailored toward solving B and Event-B constraints, and we herewith avoid the dependency on an external SMT solver. Empirical results show that the new integration of Z3 has improved performance of constraint solving and enables to solve several constraints which cannot be solved byProB’s constraint solver. Furthermore, the direct implementation of SMT solving inProBshows benefits compared toProB’s constraint solver and the integration of Z3.Keywords
Funding Information
- Heinrich-Heine-Universität Düsseldorf
This publication has 63 references indexed in Scilit:
- SICStus Prolog—The first 25 yearsTheory and Practice of Logic Programming, 2011
- SMT solvers: new oracles for the HOL theorem proverInternational Journal on Software Tools for Technology Transfer, 2011
- ProB: an automated analysis toolset for the B methodInternational Journal on Software Tools for Technology Transfer, 2008
- Solving SAT and SAT Modulo TheoriesJournal of the ACM, 2006
- On generating small clause normal forms1998
- An open-ended finite domain constraint solver1997
- The Euclidean definition of the functions div and modACM Transactions on Programming Languages and Systems, 1992
- On the Complexity of Derivation in Propositional Calculus1983
- Isomorphism of graphs of bounded valence can be tested in polynomial timeJournal of Computer and System Sciences, 1982
- A Computing Procedure for Quantification TheoryJournal of the ACM, 1960