Automatic Control and Computer Sciences

, Volume 45, Issue 7, pp 428–436 | Cite as

F@BOOL@: Experiment with a simple verifying compiler based on SAT-solvers

  • N. V. Shilov


A verifying compiler is computer system program that translates programs written by a human from a high-level language to equivalent executable programs and proves (verifies) mathematical statements specified by a human concerning the properties of the translated programs. The objective of the project F@BOOL@ is to develop a user friendly, compact, and portable verifying compiler of annotated computational programs that uses efficient and reliable automatic SAT solvers as the tools for automatic validation of correctness conditions (instead of semiautomatic proof techniques). In the period from 2006 to 2009, the SAT solver zChaff was used in the project F@BOOL@. The first experiments on the verification of simple Mini-NIL programs were performed using this solver, namely, the programs swapping variable values, checking whether three integer numbers are the sides of an equilateral or an isoscales triangle, and searching for one fake coin among 15 coins using scales. This paper considers the main ideas of the project F@BOOL@ and gives the details of the experiment on the verification of the program solving the coin puzzle.


formal program verification operational and transformational program semantics Floyd-Hoare proof technique correctness conditions SAT solvers 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Aho, A.V., Hopcroft, J.E., and Ulman, J.D., The Design and Analysis of Computer Algorithms, Addison-Wesley, 1974.Google Scholar
  2. 2.
    Bodin, E.V., Kalinina, N.A., and Shilov, N.V., Project of Verifying FVOOL Compiler. Part 1: General Description of FVOOL Project, Its Place in Component Approach to Programming. Mini-NIL Language-Prototype of the Language of Project Virtual Machine, Preprint of Inst. System Inform. of Sib. Branch. Russ. Acad. Sci., 2005, no. 131.Google Scholar
  3. 3.
    Bodin, E.V., Kalinina, N.A., and Shilov, N.V., Project of Verifying FVOOL Compiler. Part 2: Logic Annotations in Mini-NIL Language, Their Static Semantics and Semantics of Time of Performance, Preprint of Inst. System Inform. of Sib. Branch. Russ. Acad. Sci., 2006, no. 138.Google Scholar
  4. 4.
    Deikstra, V.E., A Discipline of Programming, Prentice-Hall, 1976.Google Scholar
  5. 5.
    Gries, D., The Science of Programming, New York: Springer, 1981.zbMATHGoogle Scholar
  6. 6.
    Shilov, N.V., Vodin, E.V., and Ii, I., About Program Logics—Simply, in Sistemnaya informatika, (System Informatics), Novosibirsk: Nauka, 2002, no. 8, pp. 206–249.Google Scholar
  7. 7.
    Shilov, N.V., Anureev, I.S., and Bodin, E.V., Generation of Correctness Conditions for Imperative Programs, Program. Comput. Software, 2008, vol. 34, no. 6, pp. 307–321.CrossRefzbMATHMathSciNetGoogle Scholar
  8. 8.
    Shilov, N.V., Notes about Three Paradigms of Programming, Kompyut. Instrum. Obrazovan., 2010, no. 2, pp. 24–37.Google Scholar
  9. 9.
    Anureev, I.S., Bodin, E.V., Gorodnyaya, L.V., Marchuk, A.G., Murzin, F.A., and Shilov, N.V., On the Problem of Computer Language Classification, Joint NCC and IIS Bulletin, Ser. Computer Sci., 2008, vol. 28, pp. 1–29.Google Scholar
  10. 10.
    Ball, T., Cook B., Levin V., and Rajamani, S.K., SLAM and Static Driver Verifier: Technology Transfer of Formal Methods Inside Microsoft, Lect. Notes Compt. Sci., 2004, vol. 2999, pp. 1–20.CrossRefGoogle Scholar
  11. 11.
    Beyer, D., Henzinger, T.A., Jhala, R., and Majumdar, R., The Software Model Checker Blast: Applications to Software Engineering, Int. J. Software Tools Techn. Transf., 2007, no. 9, pp. 505–525.Google Scholar
  12. 12.
    Floyd, R.W., Assigning Meanings to Programs. Proc. Symp. in Applied Mathematics. Mathematical Aspects of Computer Science, 1967, pp. 19–32.Google Scholar
  13. 13.
    Hoare, C.A.R., The Verifying Compiler: A Grand Challenge for Computing Research. Perspectives of Systems Informatics (PSI’2003), Lect. Notes Compt. Sci., 2003, vol. 2890, pp. 1–12.Google Scholar
  14. 14.
    Shilov, N.V., Bodin, Eu.V, and Shilova, S.O., Fabulous Arrays 1: Operational and Transformational Semantics of Static Arrays in Verification FBOOL Project, Bull. Nov. Comp. Center, Comp. Sci., 2009, vol. 29, pp. 121–140.Google Scholar

Copyright information

© Allerton Press, Inc. 2011

Authors and Affiliations

  1. 1.A.P. Ershov Institute of Informatic Systems, Siberian BranchRussian Academy of SciencesNovosibirskRussia
  2. 2.Novosibirsk State UniversityNovosibirskRussia
  3. 3.Novosibirsk State Technical UniversityNovosibirskRussia

Personalised recommendations