PANDA (Portfolio Approach to Navigating the Design of Automata)

PANDA (Portfolio Approach to Navigating the Design of Automata)

Kristin Y. Rozier

2011

These pages contain further details of the experiments described in "A Multi-Encoding Approach for LTL Symbolic Satisfiability Checking" by K.Y.Rozier and M.Y.Vardi.

All of the software available for download on this page was written by Kristin Yvonne Rozier. It is released under a NASA Software Agreement. Please feel free to email me concerning clarifications, bugs, or other corrections.

Disclaimer: The files distributed on this page contain research prototype code published in the paper above. This is not production-quality code; it may not run on your system without modification.



PANDA C++ Code

At the lowest level, PANDA contains a module which creates one symbolic automaton encoding of one LTL formula, with the encoding and the output tool format dictated by command-line flags. This code is contained in this gzipped tarball. Unzipping the directory, modifying the Makefile, and compiling the code, results in an executable with the following properties:


Input: an LTL formula 

Grammar: 
LTL_formula -> (formula)
formula -> 
        -> formula & formula   //and
        -> formula | formula   //or
        -> ~ formula           //not
        -> formula -> formula  //implies
        -> X formula           //next time
        -> formula R formula   //release
        -> G formula           //globally, always
        -> F formula           //in the future, eventually
        -> TRUE  
        -> FALSE
        -> (formula)
        -> atomic_proposition


Output: a symbolic automaton model of the input formula (for NuSMV, Cadence SMV, or SAL)
           OR (with -pnnf) just the negation normal form of the formula
           OR (with -pbnf) just the boolean normal form of the formula
	   OR (with -pnor) just the formula with all R-operators replaced by ~(~aU~b) constructions

Dependencies:
  lex   //we used lex 2.5.35 distributed with RedHat
  yacc  
  rgl2  //Graph triangulation implementation coded by the Kavraki Lab at Rice University.


Usage: PANDA (([(-c|-n|-s) (-nnf | -bnf) (-sloppy | -fussy) (-gba | -tgba) [(-mcs & (-max | -min | -random | -zero) | -lexm | -lexp | -linear [-reverse]) -v]] | (-a | -pbnf | -pnnf | -pnor) LTL_formula_file
        where LTL_formula_file contains one line: a formula in the following syntax.
        Operators (in order of precedence):
        ~ (not), & (and), | (or), -> (implication)
        plus the following temoral operators:
        X p is true at time t if p is true at time t + 1.
        G p is true at time t if p is true at all times t' >= t.
        F p is true at time t if p is true at some time t' >= t.
        p U q is true at time t if q is true at some time t' >= t, and for all times < t' but >= t, p is true.
        p R q is true at time t if either q is true at time t and all times following t, or if p is true at some time t' >= t, and for all times between t and t', inclusive, q is true.
        Optional Flags:
          -pbnf to ONLY print formula in Boolean Normal Form and exit OR
          -pnnf to ONLY print formula in Negation Normal Form and exit OR
          -pnor to ONLY print formula without R-operators and exit OR
          -n for NuSMV-style comments in the symbolic automaton OR
          -c (default) for CadenceSMV-style comments in the symbolic automaton OR
          -s for SAL-style symbolic automaton AND
          -nnf to convert the formula to NNF in the parse tree OR
          -bnf (default) use Boolean Normal Form AND
          -fussy (default) use fussy encoding OR
          -sloppy for sloppy encoding (default is fussy encoding)
               (-sloppy option can only be used with NNF formulas!)
          -gba for CGH's standard state-based symbolic automaton (default)
          -tgba for transition-based symbolic automaton instead of default state-based one
          -mcs for MCS variable order
               -max to start with the maximum output degree node (default)
               -min to start with the minimum output degree node
               -random to start with a random node
               -zero to start with the first node encountered
          -lexm for LEXM variable order
          -lexp for LEXP variable order
          -linear for Linear variable order
          -reverse to reverse a flag-specified variable ordering
               (default is to use the Model Checker's default var order
          -v for verbose mode



PANDA Perl Script: Tying it all together

To enable LTL satisfiability checking and bridge the gap between the core PANDA tool for encoding LTL formulas as symbolic automata and the PBS launch script which launches multiple encodings in parallel, we use Perl, of course. In the experiments for the paper, we used perl scripts for generating the benchmark formulas, launching the PANDA tool, model checking the symbolic automata produced with a back-end model checker (e.g. CadenceSMV), and collecting data.

Here is an example of such a perl script for performing LTL satisfiability checking.

Please note this is a generic version of a perl script used to run the PANDA tool for the experiments described in this paper. Significant modifications are required to run this code on a system other than SUG@R, including setting path variables, replacing environment variables, and installation of the symbolic model checking tools used.



PANDA PBS Run Script

PANDA can be used to create several encodings of a formula, utilizing a symbolic model checker to check them for satisfiability in parallel and terminating when the first check completes, as described in the paper

Rozier, Kristin Y., and Vardi, Moshe Y. "A Multi-Encoding Approach for LTL Symbolic Satisfiability Checking." In 17th International Symposium on Formal Methods (FM2011), volume 6664 of Lecture Notes in Computer Science (LNCS), pages 417--431. Springer-Verlag, 2011.

We accomplish this by using the job arrays feature in Torque on the Shared University Grid at Rice (SUG@R). (The batch job scheduling system implemented on SUG@R uses the Torque package for resource management and the Maui package for job scheduling and monitoring.) Here is an example PBS job script which we tested on SUG@R; the script may need adjustments for other supercomputers: PANDA.pbs


Kristin Yvonne Rozier 2011-06-20