Using SAT-based Image Computation for Efficient Reachability Analysis, Assignments of Computer Science

An algorithm for reachability analysis in formal verification using sat-based image computation. The method, which does not rely on bdds, offers predictable performance and avoids bdd size explosion. The authors represent states and transition relations as cnf clauses and use sat checkers to compute reachable states. They also address two key inefficiencies: the use of partial assignments and an efficient data structure for storing si and sreach.

Typology: Assignments

Pre 2010

Uploaded on 07/28/2009

koofers-user-iqa
koofers-user-iqa 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Using SAT based Image Computation for Reachability Analysis
Introduction
Model checking is a common method used in formal verification. The paper focuses on
the sub-problem: reachability analysis. The definition of image computation here is
computing the set of states reachable in one step from a given set of states under a
transition relation. Generally, Binary Decision Diagrams (BDDs) are used to
symbolically represent the set of states. The paper uses a complete SAT based method to
compute image, and does not use BDDs at all. In particular, the algorithm does not have
BDD size explosion surprises and deteriorates in a predictable manner.
Main idea
The algorithm uses SAT checkers like Chaff to read propositional formulas represented
in conjunctive normal forms (CNFs). The authors assume the states and the transition
relation are already represented in as a set of CNF clauses. It is customary to convert any
transition relation represented as a set of propositional formula to CNF form by
introducing intermediate variable. This translation is polynomial in the size of the
original circuit.
The formula Si-1(x) T(x,i,x’) ¬Sreach(x’) can express the core of basic algorithm. This
formula ask the SAT checker to compute a satisfying assignment such that a present state
vaiable x and input variables i satisfy the predicate Si-1(x) T(x,i,x’), i.e., the set of states
reachable from the newly discovered states in the previous iteration. SAT check can
compute only the states that have not seen so far by conjoining the predicate mentioned
above with the negation of the set of all accumulated states so far ( ¬Sreach(x’)).
Furthermore, the paper fixes out two key problems, which cause the above basic
algorithm inefficient and impractical. First, the paper considers the advantage of
situation: only a partial assignment to all variables satisfies the clause database given to
SAT. A partial assignment to x’ describes more than one state at a time, the larger the set
the few the number of assignments. The use of advantage can prune the number of set
enumerations drastically. Second, the paper use a hash table, each entry of which contains
a trie, to store the Si and Sreach. This efficient data structure really helps to reduce the space
requirement.
Comments
The runtime of the algorithm in this paper depends on the size of input circuit and the
diameter of the circuit only, which is very meaningful. Because the traditional way BDD
based model checkers do not have a gradual degradation in performance, and the
performance is often not predictable. Furthermore, the efficiency of SAT procedures has
made it possible to handle circuits with a few variables, much larger than any BDD based
model checker is able to do at present.

Partial preview of the text

Download Using SAT-based Image Computation for Efficient Reachability Analysis and more Assignments Computer Science in PDF only on Docsity!

Using SAT based Image Computation for Reachability Analysis

Introduction Model checking is a common method used in formal verification. The paper focuses on the sub-problem: reachability analysis. The definition of image computation here is computing the set of states reachable in one step from a given set of states under a transition relation. Generally, Binary Decision Diagrams (BDDs) are used to symbolically represent the set of states. The paper uses a complete SAT based method to compute image, and does not use BDDs at all. In particular, the algorithm does not have BDD size explosion surprises and deteriorates in a predictable manner.

Main idea The algorithm uses SAT checkers like Chaff to read propositional formulas represented in conjunctive normal forms (CNFs). The authors assume the states and the transition relation are already represented in as a set of CNF clauses. It is customary to convert any transition relation represented as a set of propositional formula to CNF form by introducing intermediate variable. This translation is polynomial in the size of the original circuit.

The formula S (^) i-1(x) ∧^ T(x,i,x’) ∧^ ¬^ S (^) reach(x’) can express the core of basic algorithm. This formula ask the SAT checker to compute a satisfying assignment such that a present state vaiable x and input variables i satisfy the predicate S (^) i-1(x) ∧^ T(x,i,x’), i.e., the set of states reachable from the newly discovered states in the previous iteration. SAT check can compute only the states that have not seen so far by conjoining the predicate mentioned above with the negation of the set of all accumulated states so far ( ¬^ S (^) reach(x’)).

Furthermore, the paper fixes out two key problems, which cause the above basic algorithm inefficient and impractical. First, the paper considers the advantage of situation: only a partial assignment to all variables satisfies the clause database given to SAT. A partial assignment to x’ describes more than one state at a time, the larger the set the few the number of assignments. The use of advantage can prune the number of set enumerations drastically. Second, the paper use a hash table, each entry of which contains a trie, to store the S (^) i and S (^) reach. This efficient data structure really helps to reduce the space requirement.

Comments The runtime of the algorithm in this paper depends on the size of input circuit and the diameter of the circuit only, which is very meaningful. Because the traditional way BDD based model checkers do not have a gradual degradation in performance, and the performance is often not predictable. Furthermore, the efficiency of SAT procedures has made it possible to handle circuits with a few variables, much larger than any BDD based model checker is able to do at present.