US20040064794A1 - Symbolic model checking with dynamic model pruning - Google Patents

Symbolic model checking with dynamic model pruning Download PDF

Info

Publication number
US20040064794A1
US20040064794A1 US10/666,619 US66661903A US2004064794A1 US 20040064794 A1 US20040064794 A1 US 20040064794A1 US 66661903 A US66661903 A US 66661903A US 2004064794 A1 US2004064794 A1 US 2004064794A1
Authority
US
United States
Prior art keywords
property
assumption
state
predicate
transition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/666,619
Inventor
Jin Yang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US10/666,619 priority Critical patent/US20040064794A1/en
Publication of US20040064794A1 publication Critical patent/US20040064794A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • G06F30/3323Design verification, e.g. functional simulation or model checking using formal methods, e.g. equivalence checking or property checking

Definitions

  • This invention relates generally to automated design verification, and in particular to more efficient use of binary decision diagrams to perform automated symbolic model checking for very large scale integrated circuit designs and other finite state systems.
  • BDD binary decision diagrams
  • a BDD is a directed acyclic graph that represents a Boolean expression. For each Boolean variable, there are two outgoing edges representing true or false assignments to the variable.
  • BDDs permits computation times, which are some polynomial function of the number of expression variables.
  • Alternative representations such as clauses or truth tables require execution times, which are some exponential function of the number of expression variables. Therefore, use of BDDs has been popular in the formal verification community since the late 1980's.
  • BDDs are not without drawbacks.
  • the ordering of variables is critical to an efficient use of BDDs. Poor variable ordering can increase a BDDs size and cause exponential execution times.
  • One method for symbolic model checking using BDDs comes from Carnegie Mellon University and is known as Symbolic Model Verifier (SMV).
  • SMV uses a well known heuristic based procedure named simplify_assuming that is aimed at reducing BDD representations by simplifying a predicate using an invariant assumption but introduces a proof obligation, which must also be verified. Since the assumption is static it may also be ineffective in pruning a model.
  • COI reduction an abstraction is built for a circuit model consisting of next state functions only for variables in the dependency closure of variables of interest in the circuit specification.
  • One drawback is that all variables in the dependency closure do not necessarily influence the variables of interest in the circuit specification.
  • a second drawback is that the abstraction that is built and used for each model-checking step may include portions that are useful in only a few of the model checking steps. Therefore needless extra computations are potentially performed, resulting in little benefit to the circuit verification.
  • BCOI bounded cone of influence
  • FIG. 1 illustrates an example of a circuit.
  • FIG. 2 a graphically illustrates a transition relation for a circuit.
  • FIG. 2 b shows another transition relation built as part of a lazy pre-image computation.
  • FIG. 3 a illustrates one embodiment of a method for performing lazy pre-image computations.
  • FIG. 3 b illustrates one embodiment of a more detailed method for performing lazy pre-image computations.
  • FIG. 4 a illustrates one embodiment of a method for computing a fixpoint using lazy pre-image computations.
  • FIG. 4 b shows an example of a lazy fixpoint computation for a circuit.
  • FIG. 5 a illustrates a parsing of a property to be evaluated.
  • FIG. 5 b illustrates one embodiment of a method for producing and propagating assumptions from sub-properties to be evaluated.
  • FIG. 5 c shows an example of producing and propagating assumptions from sub-properties to be evaluated.
  • FIG. 6 a graphically illustrates the state space of a model with its transition relation built using lazy pre-image computations to evaluate sub-property 530 .
  • FIG. 6 b graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 531 under assumption 541 .
  • FIG. 6 c graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 532 under assumption 542 .
  • FIG. 6 d graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 533 under assumption 543 .
  • FIG. 7 a illustrates one embodiment of a method for dynamically pruning a model by producing and propagating assumptions from sub-properties to be evaluated and pruning the transition relation under the assumptions generated.
  • FIG. 7 b an example of dynamically pruning a transition relation for a model under assumptions generated from sub-properties to be evaluated.
  • FIG. 8 depicts a computing system for automated lazy symbolic model checking of finite state systems using symbolic variable reduction.
  • a lazy pre-image computation a method is disclosed that builds new transition relation partitions on-demand only for relevant next internal variables of a state predicate, and conjoins only next state relations for relevant next internal variables to a pre-image including the state predicate.
  • a lazy fixpoint computation a method is disclosed that makes iterative use of lazy pre-image computation to compute conditions that must necessarily be satisfied to produce a given set of states.
  • a method for one embodiment of forward assumption propagation, a method is disclosed that generates assumptions to characterize a set of interesting states for sub-properties of the property being evaluated at one or more evaluation stages.
  • a dynamic transition relation pruning technique a method is disclosed that improves the efficiency for symbolic model checking computations by pruning transition relations under assumptions dynamically generated from the properties being evaluated, thereby providing means to handle very large scale integrated circuits and other finite state systems of problematic complexity for prior methods.
  • the teachings of these disclosed methods provide for symbolic model checking of circuits and other finite state systems previously too large to be completed successfully using BDD based algorithms.
  • FIG. 1 illustrates an example of a circuit 101 having internal state variables c, d, e and f; and input variables a and b.
  • the value of internal state variable c at its next transition can be determined to be the value of the Boolean expression a AND c.
  • the value of internal state variable d at its next transition can be determined to be the value of the input variable b.
  • the value of internal state variable e at its next transition can be determined to be the value of the Boolean expression c OR e.
  • the value of internal state variable f at its next transition can be determined to be the value of the Boolean expression c NAND d.
  • a model may be represented as a nonempty transition relation, R, on state predicate pairs, where (S1, S2) is an element of the transition relation, R, if there exists a transition in the finite state system from a state satisfying predicate S1 to state satisfying predicate S2.
  • R is also referred to as a model of the finite state system.
  • a partitioned transition relation, R, on a partitioning of the internal state variables ⁇ V1, V2, . . . , Vk ⁇ has the implicitly conjoined form:
  • R ( V,V′ ) R 1( V,V 1′) AND R 2( V,V 2′) . . . AND Rk ( V,Vk′ )
  • the set of states, S may be represented using a Boolean state predicate S(V). Operations on sets may be carried out as algebraic manipulations of state predicates.
  • the set of states that can move to S in one transition is called the pre-image of S and written
  • An existential operation ⁇ V′.[S(V′)] represents a quantification of state predicate S(V′) over the variables in V′.
  • An alternative definition for a model can be set forth as a pair of induced transformers, Pre and Post, such that Pre(S2) includes S1 and Post(S1) includes S2 if (S1,S2) is an element of R.
  • the Pre transformer identifies any states satisfying predicate S, for which there exists a transition to some state satisfying predicate S′.
  • Pre is called a pre-image transformer.
  • the Post transformer identifies any states satisfying predicate S′, for which there exists a transition from some state satisfying predicate S.
  • Post is called a post-image transformer.
  • an invocation of a pre-image computation that uses transition relation 201 may result in computations that are not relevant to that state predicate.
  • a lazy pre-image computation is disclosed which provides a relevant transition relation abstraction for each pre-image computation according to the state predicate of the invocation.
  • Such a lazy pre-image computation may be performed for a state predicate S(W), where W is contained in V and W S ′ is the set of next internal variables in the set of next variables W′, as follows:
  • lazy pre-image computation differs from previous COI reduction approaches in that it is not statically derived from a model specification and then used throughout. Instead, it dynamically provides an abstraction for each pre-image computation that is relevant to the particular state predicate associated with the invocation. Accordingly, lazy pre-image computation provides for greater efficiency and capacity improvements in popular BDD-based symbolic model checking methods than previously used pre-image computation methods.
  • FIG. 3 a illustrates performing a lazy pre-image computation.
  • transition relation partitions are updated as needed by adding new transition relations for only the relevant next internal variables.
  • a pre-image is initialized to the next state predicate of the invocation and existentially quantified over the relevant next input variables.
  • partitions with relevant next variables are identified.
  • next state relations for relevant variables from the partitions identified in processing block 313 are conjoined to the pre-image and quantified.
  • the lazy pre-image method disclosed above provides for greater efficiency and capacity for symbolic model checking operations, particularly on circuits with a large number of variables.
  • building transition relation partitions only as needed and only for relevant next internal variables is especially beneficial since the next state function for an internal variable is efficiently and implicitly encoded, but a BDD for the function must be explicitly built for symbolic model checking. Explicitly building BDDs unnecessarily may become computationally expensive.
  • FIG. 3 b details one embodiment of a method for performing a lazy pre-image computation on a state predicate S(W) involving a set W of internal variables and input variables.
  • W S ′ is initialized to be the set of next internal variables in W′.
  • W I ′ is initialized to be the set of next input variables in W′.
  • the transition relation partitions are built as needed for the relevant next internal variables.
  • processing block 324 When no more are found, flow proceeds at processing block 324 .
  • the pre-image is initialized to the state predicate existentially quantified for the relevant next input variables and partition counter i is set to k+1.
  • partition counter i is decremented.
  • partition counter i is tested to see if it has reached zero. If partition counter i has not reached zero, in processing block 327 partition Vi′ is checked against W′ to identify relevant variables. If no relevant variables are found, partition Vi′ is skipped and flow proceeds at processing block 325 .
  • the lazy pre-image computation disclosed above provides for potential improvements in key model checking techniques.
  • one embodiment of a lazy pre-image method provides an efficient general operation that may also be used effectively in performing fixpoint computations.
  • FIG. 4 a illustrates one embodiment of a fixpoint computation method which uses lazy pre-image computations.
  • a partial fixpoint state predicate, Fix 0 and an initial frontier predicate, Front 0 , are both set to the input predicate S(W), and counter i is initialized to 1.
  • the new frontier predicate, Front i is set to the lazy pre-image of the previous frontier predicate, Front i ⁇ 1 , intersected with the negated partial fixpoint predicate, Fix i ⁇ 1 , in order to exclude any states whose pre-images have already been computed.
  • This computation is expressed symbolically as Pre(Front i ⁇ 1 ) ⁇ Fix i ⁇ 1 .
  • a new fixpoint predicate Fix i is set to the union of the new frontier predicate, Front i , and the previous partial fixpoint predicate, Fix i ⁇ 1 .
  • Counter i is then incremented.
  • Front i is tested to see if any states from the previous iteration that need to have pre-images computed remain in the frontier. If so, processing beginning at processing block 412 repeats until Front i is emptied of such states, in which case processing terminates at processing block 419 .
  • the fixpoint Fix 0 predicate 420 for the states reachable to S(e) in zero transitions and the frontier Front 0 are initially set to e. Since no pre-image computation is required, no transition relation is built.
  • Lazy pre-image Pre(S(e)) can be computed as previously shown, and the lazy pre-image computation returns e OR c based on the partially computed transition relation.
  • the new frontier predicate Front 1 is set to (e OR c) AND NOT e in accordance with processing block 412 , which reduces to c AND NOT e.
  • Fixpoint Fix 1 predicate 421 for states reachable to S(e) in one transition is set to (c AND NOT e) OR e, which becomes e OR c.
  • the lazy pre-image of the frontier predicate Front 1 is computed and combined with NOT Fix 1 .
  • ⁇ ⁇ ( c ⁇ ⁇ AND ⁇ ⁇ a ) ⁇ ⁇ AND ⁇ ⁇ NOT ⁇ ⁇ ( ⁇ ⁇ ⁇ OR ⁇ ⁇ c ) .
  • Lazy pre-image computation returns (c AND a) AND NOT (e OR c) based on the partially computed transition relation.
  • Fixpoint Fix 2 Predicate 422 for states reachable to S(e) in two transitions becomes just (e OR c).
  • a symbolic model checking operation may benefit significantly from a reduction in the number of transition relations used to represent a model. A further reduction may be accomplished if for each property to be evaluated, only the necessary portions of the model are represented.
  • a dynamic transition relation pruning technique a method is disclosed that improves the efficiency for symbolic model checking computations by pruning transition relations under assumptions dynamically generated from the properties being evaluated, thereby providing means to handle very large scale integrated circuits and other finite state systems of problematic complexity for prior methods.
  • FIG. 5 a illustrates a parsing of a property 510 , a (b X(Xf)).
  • the property is parsed into a root 500 representing the logical implication operation, a left sub-property 506 representing the variable, a, and a right sub-property 511 representing b X(Xf).
  • the operator X indicates that its predicate argument holds at the next transition.
  • the sub-property 511 is parsed into a root 501 representing the logical implication operation, a left sub-property 507 representing the variable, b, and a right sub-property 512 representing X(Xf).
  • the property is parsed into a root 502 representing the next state operator X, and a right sub-property 513 representing Xf.
  • the sub-property 513 is parsed into a root 503 representing the next state operator X, and a right sub-property 514 representing f. Given a parsing of the property assumptions may be generated for the sup-properties to be evaluated.
  • FIG. 5 b illustrates one embodiment of a method for producing and propagating assumptions from sub-properties to be evaluated.
  • the assumption for iteration zero, Assum 0 is initialized to the value one (true) and Node is set to the root 500 of the property to be evaluated.
  • the iteration counter i is then incremented and processing proceeds to processing block 522 .
  • the Node is tested to see if it consists of a single variable, in which case processing terminates at processing block 522 . If not, processing proceeds to processing block 523 .
  • processing block 523 the type of the Node operation is identified. If it is an implication operation processing proceeds at processing block 524 . On the other hand, if it is a next state operator X, then processing proceeds to processing block 525 .
  • processing block 524 the assumption for iteration i, Assum i , is set to the assumption for iteration i ⁇ 1, Assum i ⁇ 1 , combined with the left sub-property of Node using the logical AND operation.
  • processing block 525 the assumption for iteration i, Assum i , is set to post-image of the assumption for iteration i ⁇ 1, Assum i ⁇ 1 .
  • processing then proceeds to processing block 526 from processing block 524 or from processing block 525 , where Node is set to the right sub-property of Node.
  • the iteration counter i is then incremented and processing proceeds to processing block 522 .
  • FIG. 5 c shows an example of producing and propagating assumptions from sub-properties to be evaluated.
  • assumption 540 is set to the value one and sub-property 530 is set to the state predicate for property to be evaluated (a (b X(Xf))).
  • assumption 542 is set to a AND b and sub-property 532 is set to the right sub-property of sub-property 531 , X(Xf).
  • assumption 544 is set to Post(Post(a AND b) which may be evaluated to one (true) and sub-property 534 is set to the right sub-property of sub-property 533 , f.
  • FIG. 6 a graphically illustrates the state space of a model with a transition relation that was built according to one embodiment of an iterative lazy pre-image computation method to evaluate sub-property 530 or 534 . It includes five variables that may be exhaustively searched for an assignment that satisfies the sub-property 530 or 534 . These variables are f at block 611 , c at block 613 , d at block 615 , a at block 617 and b at block 618 .
  • the three internal variables for which next state functions are included in the transition relation are, N(f) at block 612 , N(c) at block 614 , and N(d) at block 616 . Since the assumptions 540 and 544 are trivial no pruning may be performed on the next state functions.
  • FIG. 6 c graphically illustrates the state space of a dynamically pruned model with a transition relation that was built according to one embodiment of a lazy pre-image computation method to evaluate sub-property 532 under assumption 542 . It includes three variables that may be exhaustively searched for an assignment that satisfies the sub-property 531 . These variables are f at block 621 , c at block 623 , d at block 625 . The three internal variables for which next state functions are included in the transition relation are, N(f) at block 622 , N(c) at block 624 , and N(d) at block 626 .
  • FIG. 6 d graphically illustrates the state space of a dynamically pruned model with a transition relation that was built according to one embodiment of a lazy pre-image computation method to evaluate sub-property 533 under assumption 543 . It includes only two variables that may be exhaustively searched for an assignment that satisfies the sub-property 533 . These variables are f at block 631 and c at block 633 . Both of these internal variables' next state functions are included in the transition relation. They are, N(f) at block 632 , and N(c) at block 634 .
  • a property may be considered a sub-property of itself. It will also be appreciated that an assumption produced from a sub-property to be evaluated may be used to prune a transition relation in a variety of ways. It can be observed in FIG. 6 a through FIG. 6 e that a significant reduction in state storage may be achieved through dynamic model pruning.
  • the computational complexity of checking the model may be reduced according to the assumption. For instance some model checking methods exhaustively search a state space in order to verify a property or sub-property. If the transition relation is pruned by one or more assignments of variables according to the assumption produced from a sub-property of the property being evaluated, the computational complexity of the search may be significantly reduced.
  • each sub-property may need to be evaluated according to its corresponding assumption. This operation may be performed in such a way as to substantially reduce the size of transition relations by pruning next state functions as the transition relations are dynamically built by a lazy pre-image calculation.
  • FIG. 7 a illustrates one embodiment of a method for dynamically pruning a model by producing and propagating assumptions as shown in FIG. 5 b from sub-properties to be evaluated and then pruning the transition relation under the assumptions generated.
  • Processing block 711 is entered when a singular Node is identified in processing block 522 .
  • the iteration counter i is decremented and then the sub-property for iteration i, SP i is computed from the singular Node variable under the assumption for iteration i, Assum i .
  • Processing then proceeds to processing block 712 where the iteration counter is tested.
  • processing block 713 Processing beginning in processing block 713 is repeated until the iteration counter is equal to zero in processing block 712 , in which case processing terminates and returns the predicate SP i .
  • processing block 713 the Node is set to its parent Node and the iteration counter, i, is decremented. Processing then proceeds in processing block 714 .
  • processing block 714 the type of the Node operation is identified. If it is an implication operation processing proceeds at processing block 715 . On the other hand, if it is a next state operator X, then processing proceeds to processing block 716 .
  • processing block 715 the state predicate for iteration i, SP i , is set to the state predicate for iteration i+1, SP i+1 , combined with the negated left sub-property of Node using the logical OR operation and evaluated under the assumption Assum i .
  • processing block 716 the state predicate for iteration i, SP i , is set to lazy pre-image of the state predicate for iteration i+1, SP i+1 and evaluated under the assumption Assum i . Processing then proceeds to processing block 712 from processing block 715 or from processing block 716 .
  • FIG. 7 b shows an example of dynamically pruning a transition relation as it is built in a lazy pre-image computation according to assumptions generated from sub-properties to be evaluated.
  • state predicate 724 is set to the singular Node variable, f, and evaluated under the assumption 1 (true) which leaves the predicate unchanged.
  • state predicate 721 is set to the logical OR combination of predicate, NOT c, and negated left sub-property, b, resulting in (NOT b OR NOT c) and then evaluated under the assumption, a, in accordance with processing block 715 , which leaves the predicate unchanged.
  • state predicate 720 is set to the logical OR combination of predicate, (NOT b OR NOT c), and negated left sub-property, a, resulting in (NOT a OR NOT b OR NOT c) and then evaluated under the assumption, a, in accordance with processing block 715 , which leaves the predicate unchanged.
  • each sub-property may need to evaluated according to its corresponding assumption. If the lazy pre-image computation Pre(SP i+1 ) under the assumption Assum i is equal to 1 then no succeeding evaluations are needed as each will trivially be satisfied in processing block 715 or processing block 716 .
  • FIG. 8 illustrates a computer system to perform computations, for one such embodiment.
  • Processing device 822 is connectable with various recordable storage media, transmission media and I/O devices to receive data structures and programmed methods.
  • Representative data structures 801 may include circuit descriptions 811 , transition relations 812 , and finite state models 813 .
  • Representative programmed methods 802 may include assumption propagation programs 814 , lazy pre-image programs 815 , transition relation pruning programs 816 , and model checking programs 817 .
  • Components of either or both of the data structures and programmed methods may be stored or transmitted on recordable media such as removable storage disks 825 , which may be accessed through an access device 826 in processing device 822 or in a storage serving system 821 .
  • Storage serving system 821 or processing device 822 may also include other removable storage media or non-removable storage media suitable for storing or transmitting data structures 801 or programmed methods 802 .
  • Component data structures and programmed methods may also be stored or transmitted on transmission media such as network 824 for access by processing device 822 or entered by users through I/O device 823 .
  • networks 824 for access by processing device 822 or entered by users through I/O device 823 .

Abstract

Formal verification methods provide for improved efficiency of popular binary decision diagram (BDD) based algorithms. A lazy pre-image computation method builds new transition relation partitions on-demand for relevant internal variables of a state predicate, and conjoins only next state relations for relevant internal variables to a pre-image including the state predicate. A lazy fixpoint computation method makes iterative use of lazy pre-image computation to compute conditions that must be satisfied to produce a given set of states. A forward assumption propagation method generates assumptions to characterize a set of interesting states for a property being evaluated at one or more evaluation stages. A dynamic transition relation reduction improves the efficiency for symbolic model checking by reducing transition relations under assumptions dynamically generated from properties being evaluated. These methods provide symbolic model checking of circuits and other finite state systems previously too large to be completed successfully using BDD based algorithms.

Description

    RELATED APPLICATIONS
  • This is a continuation of application Ser. No. 09/677,262 filed Sep. 30, 2000, which is currently pending.[0001]
  • FIELD OF THE INVENTION
  • This invention relates generally to automated design verification, and in particular to more efficient use of binary decision diagrams to perform automated symbolic model checking for very large scale integrated circuit designs and other finite state systems. [0002]
  • BACKGROUND OF THE INVENTION
  • Modern design of very large-scale integrated circuits often involves years of research and the efforts of hundreds of engineers. Automated formal verification methods are an essential part of the design effort, reducing errors, lost time and risk to financial investment. Formal verification involves building a finite model of a system as a set of states and state transitions and checking that a desired property holds in the model. An exhaustive search of all possible states of the model may be performed in order to verify a desired property. [0003]
  • As the size and complexity of designs increase, much effort is expended to improve the efficiency of automated formal verification methods. One technique used in symbolic model checking to improve efficiency is to employ binary decision diagrams (BDDs). A BDD is a directed acyclic graph that represents a Boolean expression. For each Boolean variable, there are two outgoing edges representing true or false assignments to the variable. The use of BDDs permits computation times, which are some polynomial function of the number of expression variables. Alternative representations such as clauses or truth tables require execution times, which are some exponential function of the number of expression variables. Therefore, use of BDDs has been popular in the formal verification community since the late 1980's. [0004]
  • BDDs, however, are not without drawbacks. The ordering of variables is critical to an efficient use of BDDs. Poor variable ordering can increase a BDDs size and cause exponential execution times. One method for symbolic model checking using BDDs comes from Carnegie Mellon University and is known as Symbolic Model Verifier (SMV). [0005]
  • Alternatively SMV uses a well known heuristic based procedure named simplify_assuming that is aimed at reducing BDD representations by simplifying a predicate using an invariant assumption but introduces a proof obligation, which must also be verified. Since the assumption is static it may also be ineffective in pruning a model. [0006]
  • Over the years, techniques have been developed to improve performance and capacity of BDD-based algorithms. One technique is called Cone of Influence (COI) reduction. In COI reduction, an abstraction is built for a circuit model consisting of next state functions only for variables in the dependency closure of variables of interest in the circuit specification. One drawback is that all variables in the dependency closure do not necessarily influence the variables of interest in the circuit specification. A second drawback is that the abstraction that is built and used for each model-checking step may include portions that are useful in only a few of the model checking steps. Therefore needless extra computations are potentially performed, resulting in little benefit to the circuit verification. [0007]
  • Some methods have attempted to improve upon COI reduction by starting from a small portion of the dependency closure and extending the portion only when model checking fails to produce a satisfactory result. But these techniques also perform unnecessary computations on portions that are not relevant to the particular model-checking step being performed. [0008]
  • One method called the bounded cone of influence (BCOI) was proposed by A. Biere et al for symbolic model checking without BDDs [A. Biere, E. Clark, R. Raimi, and Y. Zhu; Verifying safety properties of a PowerPC™ microprocessor using symbolic model checking without BDDs; CAV'99; 1999]. However, even the BCOI method potentially includes irrelevant variables in the abstraction it builds, and the technique is not applicable to improve the widely used BDD-based approaches. [0009]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings. [0010]
  • FIG. 1 illustrates an example of a circuit. [0011]
  • FIG. 2[0012] a graphically illustrates a transition relation for a circuit.
  • FIG. 2[0013] b shows another transition relation built as part of a lazy pre-image computation.
  • FIG. 3[0014] a illustrates one embodiment of a method for performing lazy pre-image computations.
  • FIG. 3[0015] b illustrates one embodiment of a more detailed method for performing lazy pre-image computations.
  • FIG. 4[0016] a illustrates one embodiment of a method for computing a fixpoint using lazy pre-image computations.
  • FIG. 4[0017] b shows an example of a lazy fixpoint computation for a circuit.
  • FIG. 5[0018] a illustrates a parsing of a property to be evaluated.
  • FIG. 5[0019] b. illustrates one embodiment of a method for producing and propagating assumptions from sub-properties to be evaluated.
  • FIG. 5[0020] c. shows an example of producing and propagating assumptions from sub-properties to be evaluated.
  • FIG. 6[0021] a graphically illustrates the state space of a model with its transition relation built using lazy pre-image computations to evaluate sub-property 530.
  • FIG. 6[0022] b graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 531 under assumption 541.
  • FIG. 6[0023] c graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 532 under assumption 542.
  • FIG. 6[0024] d graphically illustrates the state space of a dynamically pruned model with its transition relation built using lazy pre-image computations to evaluate sub-property 533 under assumption 543.
  • FIG. 7[0025] a illustrates one embodiment of a method for dynamically pruning a model by producing and propagating assumptions from sub-properties to be evaluated and pruning the transition relation under the assumptions generated.
  • FIG. 7[0026] b an example of dynamically pruning a transition relation for a model under assumptions generated from sub-properties to be evaluated.
  • FIG. 8 depicts a computing system for automated lazy symbolic model checking of finite state systems using symbolic variable reduction. [0027]
  • DETAILED DESCRIPTION
  • Embodiments of the present invention may be realized in accordance with the following teachings and it should be evident that various modifications and changes may be made in the following teachings without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense and the invention measured only in terms of the claims. [0028]
  • Methods for formal verification of circuits and other finite-state systems are disclosed herein providing improved efficiency and capacity of popular binary decision diagram (BDD) based algorithms. For one embodiment of a lazy pre-image computation, a method is disclosed that builds new transition relation partitions on-demand only for relevant next internal variables of a state predicate, and conjoins only next state relations for relevant next internal variables to a pre-image including the state predicate. For one embodiment of a lazy fixpoint computation, a method is disclosed that makes iterative use of lazy pre-image computation to compute conditions that must necessarily be satisfied to produce a given set of states. For one embodiment of forward assumption propagation, a method is disclosed that generates assumptions to characterize a set of interesting states for sub-properties of the property being evaluated at one or more evaluation stages. For one embodiment of a dynamic transition relation pruning technique, a method is disclosed that improves the efficiency for symbolic model checking computations by pruning transition relations under assumptions dynamically generated from the properties being evaluated, thereby providing means to handle very large scale integrated circuits and other finite state systems of problematic complexity for prior methods. The teachings of these disclosed methods provide for symbolic model checking of circuits and other finite state systems previously too large to be completed successfully using BDD based algorithms. [0029]
  • FIG. 1 illustrates an example of a [0030] circuit 101 having internal state variables c, d, e and f; and input variables a and b. According to the logical combination of inputs to memory element 102, the value of internal state variable c at its next transition can be determined to be the value of the Boolean expression a AND c. From the logical combination of inputs to memory element 103, the value of internal state variable d at its next transition can be determined to be the value of the input variable b. From the logical combination of inputs to memory element 104, the value of internal state variable e at its next transition can be determined to be the value of the Boolean expression c OR e. Finally, from the logical combination of inputs to memory element 105, the value of internal state variable f at its next transition can be determined to be the value of the Boolean expression c NAND d.
  • A model of a circuit or other finite state system can be formally defined as: a nonempty finite set of Boolean variables, V=V[0031] S∪VI, consisting of a union V of internal state variables VS with input variables VI; and a next state function N(v) for each v in VS, which is an assignment mapping of internal state variables according to Boolean (true or false) valued expressions on V called state predicates.
  • For one embodiment, a model may be represented as a nonempty transition relation, R, on state predicate pairs, where (S1, S2) is an element of the transition relation, R, if there exists a transition in the finite state system from a state satisfying predicate S1 to state satisfying predicate S2. R is also referred to as a model of the finite state system. [0032]
  • A partitioned transition relation, R, on a partitioning of the internal state variables {V1, V2, . . . , Vk} has the implicitly conjoined form:[0033]
  • R(V,V′)=R1(V,V1′) AND R2(V,V2′) . . . AND Rk(V,Vk′)
  • where the ith partition is Ri(V,Vi′)=AND[0034] for all v′ in Vi′ (v′=N(v)). The assertion v′=N(v) is called the next state relation for v and v′ is a copy of v to record the value taken on by v at the next transition.
  • The set of states, S, may be represented using a Boolean state predicate S(V). Operations on sets may be carried out as algebraic manipulations of state predicates. The set of states that can move to S in one transition is called the pre-image of S and written[0035]
  • Pre(S(V))=∃V′.[ANDfor all v′ in Vs′ (v′=N(v)) AND S(V′)].
  • An existential operation ∃V′.[S(V′)] represents a quantification of state predicate S(V′) over the variables in V′. Typically, in order to more efficiently use computation resources, the operation of computing the pre-image of a set of states is carried out as a relation product of state predicates using early variable quantification for partitioned transition relations, thereby permitting staged reductions of Boolean expressions, as follows: [0036]
    Pre(S(V)) = ∃V1′.[R1(V,V1′) AND (
    ∃V2′.[R2(V, V2′) AND (
    . . .
    ∃Vk.[Rk(V,Vk′) AND (
    ∃VI′.S(V′) )]
    . . . )]
    )].
  • An alternative definition for a model can be set forth as a pair of induced transformers, Pre and Post, such that Pre(S2) includes S1 and Post(S1) includes S2 if (S1,S2) is an element of R. In other words, the Pre transformer identifies any states satisfying predicate S, for which there exists a transition to some state satisfying predicate S′. Pre is called a pre-image transformer. The Post transformer identifies any states satisfying predicate S′, for which there exists a transition from some state satisfying predicate S. Post is called a post-image transformer. [0037]
  • One drawback of a typical pre-image computation is that it involves the entire partitioned transition relation. But S(V) may involve only a few variables. Consequently, not all next state relations are relevant in any particular invocation of a pre-image computation. [0038]
  • For example, FIG. 2[0039] a graphically illustrates a possible transition relation 201 for circuit 101 having VS={c, d, e, f} and VI={a, b}. The next state function for variable c is N(c)=a AND c. Therefore, in order for the circuit to reach a state, S(c), where c=1 it must have made transition 211 from a state S(a AND c) where a=1 and c=1. The next state function for variable d is N(d)=b. Therefore, in order for the circuit to reach a state, S(d), where d=1 it must have made transition 219 from a state S(b) where b=1. The next state function for variable e is N(e)=e OR c. Therefore, in order for the circuit to reach a state, S(e), where e=1 it must have made transition 212 from a state S(c) where c=1 or it must have made transition 213 from a state S(e) where e=1. The next state function for variable f is N(f)=d NAND c. Therefore, in order for the circuit to reach a state, S(f), where f=1 it must have made transition 215 from a state S(NOT c) where c=0 or it must have made transition 218 from a state S(NOT d) where d=0.
  • Computing all states reachable to S(e) in two or more transitions includes the next state function for variable c, which has already been shown as N(c)=a AND c represented by [0040] transition 211. The next state function for variable NOT c is N(NOT c)=NOT(a AND c)=(NOT a) OR (NOT c). Therefore, in order for the circuit 101 to reach a state, S(NOT c), where c=0 it must have made transition 214 from a state S(NOT a) where a=0 or it must have made transition 216 from a state S(NOT c) where c=0. The next state function for variable NOT d is N(NOT d)=NOT b. Therefore, in order for the circuit to reach a state, S(NOT d), where d=0 it must have made transition 217 from a state S(NOT b) where b=0.
  • For a given state predicate, an invocation of a pre-image computation that uses [0041] transition relation 201 may result in computations that are not relevant to that state predicate. For one embodiment, a lazy pre-image computation is disclosed which provides a relevant transition relation abstraction for each pre-image computation according to the state predicate of the invocation. Such a lazy pre-image computation may be performed for a state predicate S(W), where W is contained in V and WS′ is the set of next internal variables in the set of next variables W′, as follows:
  • Pre(S(W))=∃W′.[ANDfor all v′ in Ws′ (v′=N(v)) AND S(W′)].
  • The approach provided by the lazy pre-image computation disclosed above differs from previous COI reduction approaches in that it is not statically derived from a model specification and then used throughout. Instead, it dynamically provides an abstraction for each pre-image computation that is relevant to the particular state predicate associated with the invocation. Accordingly, lazy pre-image computation provides for greater efficiency and capacity improvements in popular BDD-based symbolic model checking methods than previously used pre-image computation methods. [0042]
  • For example, the lazy pre-image of a state predicate S(e) for [0043] circuit 101 where e=1 can be computed: Pre ( S ( ) ) = · [ ( = N ( ) ) AND S ( ) ] . = · [ ( = OR c ) AND ] . = ( OR c ) .
    Figure US20040064794A1-20040401-M00001
  • FIG. 2[0044] b graphically illustrates a possible transition relation 202 for circuit 101 built as a result of an invocation of the lazy pre-image computation Pre(S(e)) on the state predicate S(e) where e=1. The next state function for variable e is N(e)=e OR c. Therefore, in order for the circuit to reach a state, S(e), where e=1 it must have made transition 222 from a state S(c) where c=1 or it must have made transition 223 from a state S(e) where e=1. Since no other transitions are relevant to reaching state S(e), the lazy pre-image method need not build them. As seen in the above example, this lazy pre-image method potentially reduces the number of transition relation partitions involved and also the sizes of partitions. Therefore computations required to explicitly build a BDD for a desired function may be significantly reduced.
  • For one embodiment, FIG. 3[0045] a illustrates performing a lazy pre-image computation. In processing block 311 transition relation partitions are updated as needed by adding new transition relations for only the relevant next internal variables. In processing block 312 a pre-image is initialized to the next state predicate of the invocation and existentially quantified over the relevant next input variables. In processing block 313, partitions with relevant next variables are identified. Finally in processing block 314, next state relations for relevant variables from the partitions identified in processing block 313 are conjoined to the pre-image and quantified.
  • The lazy pre-image method disclosed above provides for greater efficiency and capacity for symbolic model checking operations, particularly on circuits with a large number of variables. In a BDD based implementation, building transition relation partitions only as needed and only for relevant next internal variables is especially beneficial since the next state function for an internal variable is efficiently and implicitly encoded, but a BDD for the function must be explicitly built for symbolic model checking. Explicitly building BDDs unnecessarily may become computationally expensive. [0046]
  • FIG. 3[0047] b details one embodiment of a method for performing a lazy pre-image computation on a state predicate S(W) involving a set W of internal variables and input variables. In processing block 320, WS′ is initialized to be the set of next internal variables in W′. In processing block 321, WI′ is initialized to be the set of next input variables in W′. In processing block 322, the next internal variables are checked to identify some variable w′ that has not been evaluated. If one is identified, w′=N(w) is conjoined to the partition including w′ and flow returns to processing block 322 to look for more next variables that have not been evaluated. Thus the transition relation partitions are built as needed for the relevant next internal variables. When no more are found, flow proceeds at processing block 324. In processing block 324 the pre-image is initialized to the state predicate existentially quantified for the relevant next input variables and partition counter i is set to k+1. In processing block 325, i is decremented. Then in processing block 326, partition counter i is tested to see if it has reached zero. If partition counter i has not reached zero, in processing block 327 partition Vi′ is checked against W′ to identify relevant variables. If no relevant variables are found, partition Vi′ is skipped and flow proceeds at processing block 325. Otherwise in processing block 328, all next variables in Vi′ that are not in W′ are existentially quantified out from partition Vi′ and the remaining relevant variables are evaluated according to their next state relations and assigned to Ra. Then in processing block 329, Ra is conjoined with the pre-image Pre and flow proceeds with the next i at processing block 325. When i=0 indicating no more partitions remain at processing block 326, the processing terminates and pre-image Pre is complete.
  • In one embodiment, the lazy pre-image computation disclosed above provides for potential improvements in key model checking techniques. For example one embodiment of a lazy pre-image method provides an efficient general operation that may also be used effectively in performing fixpoint computations. [0048]
  • FIG. 4[0049] a illustrates one embodiment of a fixpoint computation method which uses lazy pre-image computations. In processing block 411, a partial fixpoint state predicate, Fix0, and an initial frontier predicate, Front0, are both set to the input predicate S(W), and counter i is initialized to 1. In processing block 412, the new frontier predicate, Fronti, is set to the lazy pre-image of the previous frontier predicate, Fronti−1, intersected with the negated partial fixpoint predicate,
    Figure US20040064794A1-20040401-P00900
    Fixi−1, in order to exclude any states whose pre-images have already been computed. This computation is expressed symbolically as Pre(Fronti−1) Λ
    Figure US20040064794A1-20040401-P00900
    Fixi−1. In processing block 413 a new fixpoint predicate Fixi is set to the union of the new frontier predicate, Fronti, and the previous partial fixpoint predicate, Fixi−1. Counter i is then incremented. In processing block 419, Fronti is tested to see if any states from the previous iteration that need to have pre-images computed remain in the frontier. If so, processing beginning at processing block 412 repeats until Fronti is emptied of such states, in which case processing terminates at processing block 419.
  • FIG. 4[0050] b illustrates an example for one embodiment of performing a lazy fixpoint computation for state predicate, S(e), where e=1, on circuit 101. The fixpoint Fix0 predicate 420 for the states reachable to S(e) in zero transitions and the frontier Front0 are initially set to e. Since no pre-image computation is required, no transition relation is built. To compute the fixpoint Fix1 predicate 421 for the states reachable to S(e) in one transition a lazy pre-image of the frontier predicate Front0 is computed and combined with NOT Fix0. Since frontier predicate Front0 only involves signal e, lazy transition relation building only computes a transition relation partition for e, as [N(e)=e OR c]. Lazy pre-image Pre(S(e)) can be computed as previously shown, and the lazy pre-image computation returns e OR c based on the partially computed transition relation. The new frontier predicate Front1 is set to (e OR c) AND NOT e in accordance with processing block 412, which reduces to c AND NOT e. Fixpoint Fix1 predicate 421 for states reachable to S(e) in one transition is set to (c AND NOT e) OR e, which becomes e OR c.
  • To compute the fixpoint Fix[0051] 2 predicate 422 for those states reachable to S(e) in two transitions, the lazy pre-image of the frontier predicate Front1 is computed and combined with NOT Fix1. The pre-image is calculated as follows: Pre ( c AND NOT ) = , c · [ ( = N ( ) ) AND ( c = N ( c ) ) AND S ( , c ) ] . = , c · [ ( = OR c ) AND ( c = c AND a ) AND ( c AND NOT ) ] . = ( c AND a ) AND NOT ( OR c ) .
    Figure US20040064794A1-20040401-M00002
  • Predicate (c AND NOT e) requires lazy transition relation building of the translation relation partition for c, as [N(c)=c AND a]. Lazy pre-image computation returns (c AND a) AND NOT (e OR c) based on the partially computed transition relation. The new frontier predicate Front[0052] 2 is set to (c AND a) AND NOT (e OR c) in accordance with processing block 412, which reduces to (c AND a AND NOT e AND NOT c)=0. Fixpoint Fix2 Predicate 422 for states reachable to S(e) in two transitions becomes just (e OR c).
  • Since frontier predicate Front[0053] 2=0 the lazy fixpoint computation terminates. The transition relations for b, d and f are not needed and therefore they are not built.
  • It will be appreciated that a symbolic model checking operation may benefit significantly from a reduction in the number of transition relations used to represent a model. A further reduction may be accomplished if for each property to be evaluated, only the necessary portions of the model are represented. For one embodiment of a dynamic transition relation pruning technique, a method is disclosed that improves the efficiency for symbolic model checking computations by pruning transition relations under assumptions dynamically generated from the properties being evaluated, thereby providing means to handle very large scale integrated circuits and other finite state systems of problematic complexity for prior methods. [0054]
  • FIG. 5[0055] a illustrates a parsing of a property 510, a
    Figure US20040064794A1-20040401-P00901
    (b
    Figure US20040064794A1-20040401-P00901
    X(Xf)). At the first stage the property is parsed into a root 500 representing the logical implication operation, a left sub-property 506 representing the variable, a, and a right sub-property 511 representing b
    Figure US20040064794A1-20040401-P00901
    X(Xf). The operator X indicates that its predicate argument holds at the next transition.
  • At the second stage the sub-property [0056] 511 is parsed into a root 501 representing the logical implication operation, a left sub-property 507 representing the variable, b, and a right sub-property 512 representing X(Xf). At the third stage the property is parsed into a root 502 representing the next state operator X, and a right sub-property 513 representing Xf. Finally at the fourth stage the sub-property 513 is parsed into a root 503 representing the next state operator X, and a right sub-property 514 representing f. Given a parsing of the property assumptions may be generated for the sup-properties to be evaluated.
  • FIG. 5[0057] b illustrates one embodiment of a method for producing and propagating assumptions from sub-properties to be evaluated. In processing block 521, the assumption for iteration zero, Assum0, is initialized to the value one (true) and Node is set to the root 500 of the property to be evaluated. The iteration counter i is then incremented and processing proceeds to processing block 522. In processing block 522, the Node is tested to see if it consists of a single variable, in which case processing terminates at processing block 522. If not, processing proceeds to processing block 523. In processing block 523 the type of the Node operation is identified. If it is an implication operation processing proceeds at processing block 524. On the other hand, if it is a next state operator X, then processing proceeds to processing block 525.
  • In processing block [0058] 524 the assumption for iteration i, Assumi, is set to the assumption for iteration i−1, Assumi−1, combined with the left sub-property of Node using the logical AND operation. In processing block 525 the assumption for iteration i, Assumi, is set to post-image of the assumption for iteration i−1, Assumi−1. Processing then proceeds to processing block 526 from processing block 524 or from processing block 525, where Node is set to the right sub-property of Node. The iteration counter i is then incremented and processing proceeds to processing block 522.
  • FIG. 5[0059] c shows an example of producing and propagating assumptions from sub-properties to be evaluated. In iteration zero, assumption 540 is set to the value one and sub-property 530 is set to the state predicate for property to be evaluated (a
    Figure US20040064794A1-20040401-P00901
    (b
    Figure US20040064794A1-20040401-P00901
    X(Xf))). In iteration one, assumption 541 is set to a=(1 AND a) in accordance with processing block 524 and sub-property 531 is set to the right sub-property of sub-property 530, b
    Figure US20040064794A1-20040401-P00901
    X(Xf) in accordance with processing block 526. In iteration two, assumption 542 is set to a AND b and sub-property 532 is set to the right sub-property of sub-property 531, X(Xf). In iteration three, assumption 543 is set to Post(a AND b), which may be evaluated as d since N(d)=b, and sub-property 533 is set to the right sub-property of sub-property 532, Xf. In iteration four, assumption 544 is set to Post(Post(a AND b) which may be evaluated to one (true) and sub-property 534 is set to the right sub-property of sub-property 533, f.
  • The number of variables in a transition relation may be reduced according to a dynamically generated assumption as the transition relation is built. For instance the next state function for a variable f, N(f)=c NAND d may be pruned according to an assumption including (d=1) to N(f)=NOT c. [0060]
  • FIG. 6[0061] a graphically illustrates the state space of a model with a transition relation that was built according to one embodiment of an iterative lazy pre-image computation method to evaluate sub-property 530 or 534. It includes five variables that may be exhaustively searched for an assignment that satisfies the sub-property 530 or 534. These variables are f at block 611, c at block 613, d at block 615, a at block 617 and b at block 618. The three internal variables for which next state functions are included in the transition relation are, N(f) at block 612, N(c) at block 614, and N(d) at block 616. Since the assumptions 540 and 544 are trivial no pruning may be performed on the next state functions.
  • FIG. 6[0062] b graphically illustrates the state space of a dynamically pruned model with a transition relation that was built according to one embodiment of a lazy pre-image computation method to evaluate sub-property 531 under assumption 541. It includes four variables that may be exhaustively searched for an assignment that satisfies the sub-properties 531 or 532. These variables are f at block 621, c at block 623, d at block 625, and b at block 628. The three internal variables for which next state functions are included in the transition relation are, N(f) at block 622, N(c) at block 624, and N(d) at block 626. Since the assumption 541 includes only the input variable, a, pruning of the transition relation may be performed only on the next state function for c, producing N(c)=c instead of N(c)=c AND a.
  • FIG. 6[0063] c graphically illustrates the state space of a dynamically pruned model with a transition relation that was built according to one embodiment of a lazy pre-image computation method to evaluate sub-property 532 under assumption 542. It includes three variables that may be exhaustively searched for an assignment that satisfies the sub-property 531. These variables are f at block 621, c at block 623, d at block 625. The three internal variables for which next state functions are included in the transition relation are, N(f) at block 622, N(c) at block 624, and N(d) at block 626. Since the assumption 541 includes the input variables, a and b, pruning of the transition relation may be performed on the next state function for c, producing N(c)=c instead of N(c)=c AND a and on the next state function for d, producing N(d)=1 instead of N(d)=b.
  • FIG. 6[0064] d graphically illustrates the state space of a dynamically pruned model with a transition relation that was built according to one embodiment of a lazy pre-image computation method to evaluate sub-property 533 under assumption 543. It includes only two variables that may be exhaustively searched for an assignment that satisfies the sub-property 533. These variables are f at block 631 and c at block 633. Both of these internal variables' next state functions are included in the transition relation. They are, N(f) at block 632, and N(c) at block 634. Since the assumption 543 includes the input variable, a, and the internal variable, d, pruning of the transition relation may be performed on the next state functions for c, producing N(c)=c instead of N(c)=c AND a and for f, producing N(f)=NOT c instead of N(f)=c NAND d.
  • It will be appreciated that a property may be considered a sub-property of itself. It will also be appreciated that an assumption produced from a sub-property to be evaluated may be used to prune a transition relation in a variety of ways. It can be observed in FIG. 6[0065] a through FIG. 6e that a significant reduction in state storage may be achieved through dynamic model pruning.
  • Alternatively the computational complexity of checking the model may be reduced according to the assumption. For instance some model checking methods exhaustively search a state space in order to verify a property or sub-property. If the transition relation is pruned by one or more assignments of variables according to the assumption produced from a sub-property of the property being evaluated, the computational complexity of the search may be significantly reduced. [0066]
  • It will also be appreciated that one may desire to reduce the overall size of the model representation, perhaps at the cost of some addition computational complexity. Alternatively the number of variables in a model or the complexity of evaluating a sub-property may be reduced according to the assumption as the sub-property is being evaluated on the transition relation. [0067]
  • For example, a lazy pre-image of a state predicate S(Xf) AND Assum[0068] 3 for circuit 101 can be computed: Pre ( S ( Xf ) ) AND Assum 3 = f · [ ( f = N ( f ) ) AND S ( f ) ] AND Assum 3 = f · [ ( f = ( c NAND d ) ) AND f ] AND Assum 3 = ( c NAND d ) AND d = 1 = NOT c
    Figure US20040064794A1-20040401-M00003
  • In general each sub-property may need to be evaluated according to its corresponding assumption. This operation may be performed in such a way as to substantially reduce the size of transition relations by pruning next state functions as the transition relations are dynamically built by a lazy pre-image calculation. [0069]
  • FIG. 7[0070] a illustrates one embodiment of a method for dynamically pruning a model by producing and propagating assumptions as shown in FIG. 5b from sub-properties to be evaluated and then pruning the transition relation under the assumptions generated. Processing block 711 is entered when a singular Node is identified in processing block 522. In processing block 711, the iteration counter i is decremented and then the sub-property for iteration i, SPi is computed from the singular Node variable under the assumption for iteration i, Assumi. Processing then proceeds to processing block 712 where the iteration counter is tested. Processing beginning in processing block 713 is repeated until the iteration counter is equal to zero in processing block 712, in which case processing terminates and returns the predicate SPi. In processing block 713 the Node is set to its parent Node and the iteration counter, i, is decremented. Processing then proceeds in processing block 714.
  • In [0071] processing block 714 the type of the Node operation is identified. If it is an implication operation processing proceeds at processing block 715. On the other hand, if it is a next state operator X, then processing proceeds to processing block 716.
  • In [0072] processing block 715 the state predicate for iteration i, SPi, is set to the state predicate for iteration i+1, SPi+1, combined with the negated left sub-property of Node using the logical OR operation and evaluated under the assumption Assumi. In processing block 716 the state predicate for iteration i, SPi, is set to lazy pre-image of the state predicate for iteration i+1, SPi+1 and evaluated under the assumption Assumi. Processing then proceeds to processing block 712 from processing block 715 or from processing block 716.
  • FIG. 7[0073] b shows an example of dynamically pruning a transition relation as it is built in a lazy pre-image computation according to assumptions generated from sub-properties to be evaluated. In iteration 4, state predicate 724 is set to the singular Node variable, f, and evaluated under the assumption 1 (true) which leaves the predicate unchanged. In iteration 3, state predicate 723 is set to the lazy pre-image of the predicate of the predicate f and evaluated under the assumption, d, which in accordance with processing block 716, reduces the next state function N(f)=c NAND d to N(f)=NOT c. In iteration 2, state predicate 722 is set to the lazy pre-image of the predicate, NOT c, and evaluated under the assumption, a AND b, which in accordance with processing block 716, reduces the next state function N(c)=a AND c to N(c)=c. In iteration 1, state predicate 721 is set to the logical OR combination of predicate, NOT c, and negated left sub-property, b, resulting in (NOT b OR NOT c) and then evaluated under the assumption, a, in accordance with processing block 715, which leaves the predicate unchanged. In iteration 0, state predicate 720 is set to the logical OR combination of predicate, (NOT b OR NOT c), and negated left sub-property, a, resulting in (NOT a OR NOT b OR NOT c) and then evaluated under the assumption, a, in accordance with processing block 715, which leaves the predicate unchanged.
  • In general, each sub-property may need to evaluated according to its corresponding assumption. If the lazy pre-image computation Pre(SP[0074] i+1) under the assumption Assumi is equal to 1 then no succeeding evaluations are needed as each will trivially be satisfied in processing block 715 or processing block 716.
  • It will be appreciated that the methods herein disclosed or methods substantially similar to those herein disclosed may be implemented in one of many programming languages for performing automated computations including but not limited to lazy pre-image computations, dynamic production and propagation of assumptions, dynamic pruning of transition relations, lazy fixpoint computations using dynamic model pruning, and lazy model checking using dynamic model pruning on high-speed computing devices. [0075]
  • For example, FIG. 8 illustrates a computer system to perform computations, for one such embodiment. [0076] Processing device 822 is connectable with various recordable storage media, transmission media and I/O devices to receive data structures and programmed methods. Representative data structures 801 may include circuit descriptions 811, transition relations 812, and finite state models 813. Representative programmed methods 802 may include assumption propagation programs 814, lazy pre-image programs 815, transition relation pruning programs 816, and model checking programs 817. Components of either or both of the data structures and programmed methods may be stored or transmitted on recordable media such as removable storage disks 825, which may be accessed through an access device 826 in processing device 822 or in a storage serving system 821. Storage serving system 821 or processing device 822 may also include other removable storage media or non-removable storage media suitable for storing or transmitting data structures 801 or programmed methods 802. Component data structures and programmed methods may also be stored or transmitted on transmission media such as network 824 for access by processing device 822 or entered by users through I/O device 823. It will be appreciated that systems such as the one illustrated are commonly available and widely used in the art of designing finite state hardware and software systems. It will also be appreciated that the complexity, capabilities, and physical forms of such design systems improves and changes rapidly, and therefore understood that the design system illustrated is by way of example and not limitation.
  • The above description is intended to illustrate preferred embodiments of the present invention. From the discussion above it should also be apparent that the invention can be modified in arrangement and detail by those skilled in the art without departing from the principles of the present invention within the scope of the accompanying claims. [0077]

Claims (19)

What is claimed is:
1. A computer software product having one or more recordable medium having executable instructions stored thereon which, when executed by a processing device, causes the processing device to:
generate, from a first property, a first assumption including a first state predicate;
generate, for a model, a first transition relation that includes the first state predicate; and
reduce the first transition relation according to the first assumption.
2. The computer software product recited in claim 1 wherein reducing the first transition relation reduces the size of the model.
3. The computer software product recited in claim 1 wherein reducing the first transition relation reduces the computational complexity of evaluating the first property.
4. The computer software product recited in claim 1 wherein reducing the first transition relation reduces the number of variables in the model.
5. The computer software product recited in claim 1 wherein reducing the first transition relation reduces the number of variables in the first transition relation.
6. The computer software product recited in claim 1 wherein the first assumption is generated from an implication structure of the first property.
7. The computer software product recited in claim 6 which, when executed by a processing device, further causes the processing device to:
propagate the first assumption to generate a second assumption according to a second property.
8. The computer software product recited in claim 7 wherein the second property is a sub-property of the first property.
9. The computer software product recited in claim 7 wherein the second property is to be evaluated under the first assumption.
10. The computer software product recited in claim 7 wherein the first assumption is propagated only one transition stage to generate the second assumption.
11. A verification system comprising:
means for producing, from a first property, a first assumption including a first state predicate; and
means for producing a reduced next state function from a first next state function involving the first state predicate by applying the first assumption.
12. The verification system of claim 11 wherein the first assumption is produced from the structure of the first property.
13. The verification system of claim 12 further comprising:
means for propagating the first assumption according to a second property to generate a second assumption; and
means for producing, for a model, a transition relation that includes the reduced next state function.
14. The verification system of claim 13 wherein the second property is a sub-property of the first property.
15. The verification system of claim 14 wherein the first assumption is propagated only one transition stage to generate the second assumption.
16. A verification system comprising:
a recordable medium to store executable instructions;
a processing device to execute executable instruction; and
a plurality of executable instructions to cause the processing device to:
produce, from a first property, a first assumption including a first state predicate;
produce, for a model, a first transition relation that includes the first state predicate; and
reduce the first transition relation according to the first assumption.
17. The verification system of claim 16 wherein the first assumption is produced from the logical structure of the first property.
18. The verification system recited in claim 17, the plurality of executable instructions further comprising instructions to cause the processing device to:
propagate the first assumption to generate a second assumption according to a second state predicate.
19. The computer software product recited in claim 18 wherein the second property is a sub-property of the first property.
US10/666,619 2000-09-30 2003-09-17 Symbolic model checking with dynamic model pruning Abandoned US20040064794A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/666,619 US20040064794A1 (en) 2000-09-30 2003-09-17 Symbolic model checking with dynamic model pruning

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/677,262 US6643827B1 (en) 2000-09-30 2000-09-30 Symbolic model checking with dynamic model pruning
US10/666,619 US20040064794A1 (en) 2000-09-30 2003-09-17 Symbolic model checking with dynamic model pruning

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/677,262 Continuation US6643827B1 (en) 2000-09-30 2000-09-30 Symbolic model checking with dynamic model pruning

Publications (1)

Publication Number Publication Date
US20040064794A1 true US20040064794A1 (en) 2004-04-01

Family

ID=29270973

Family Applications (2)

Application Number Title Priority Date Filing Date
US09/677,262 Expired - Lifetime US6643827B1 (en) 2000-09-30 2000-09-30 Symbolic model checking with dynamic model pruning
US10/666,619 Abandoned US20040064794A1 (en) 2000-09-30 2003-09-17 Symbolic model checking with dynamic model pruning

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/677,262 Expired - Lifetime US6643827B1 (en) 2000-09-30 2000-09-30 Symbolic model checking with dynamic model pruning

Country Status (1)

Country Link
US (2) US6643827B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231621B1 (en) 2004-04-30 2007-06-12 Xilinx, Inc. Speed verification of an embedded processor in a programmable logic device
US7269805B1 (en) 2004-04-30 2007-09-11 Xilinx, Inc. Testing of an integrated circuit having an embedded processor
US20070299793A1 (en) * 2006-06-21 2007-12-27 Microsoft Corporation Computer implemented cover process approximating quantifier elimination
US20110071809A1 (en) * 2009-09-23 2011-03-24 International Business Machines Corporation Model generation based on a constraint and an initial model

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2355974C (en) * 2001-08-24 2004-07-13 Wayne Biao Liu Space reduction in compositional state systems
US7310790B2 (en) * 2002-12-03 2007-12-18 Intel Corporation Automatic symbolic indexing methods for formal verification on a symbolic lattice domain
US20040107174A1 (en) * 2002-12-03 2004-06-03 Jones Robert B. Parametric representation methods for formal verification on a symbolic lattice domain
US6957404B2 (en) * 2002-12-20 2005-10-18 International Business Machines Corporation Model checking with layered localization reduction
US7742907B2 (en) * 2003-04-15 2010-06-22 Nec Laboratories America, Inc. Iterative abstraction using SAT-based BMC with proof analysis
US7246331B2 (en) * 2004-10-15 2007-07-17 International Business Machines Corporation Method for optimizing integrated circuit device design and service
US7290230B2 (en) * 2005-03-17 2007-10-30 Fujitsu Limited System and method for verifying a digital design using dynamic abstraction
US7930659B2 (en) * 2005-06-03 2011-04-19 Nec Laboratories America, Inc. Software verification
US7788646B2 (en) * 2005-10-14 2010-08-31 International Business Machines Corporation Method for optimizing integrated circuit device design and service
US8244516B2 (en) 2008-06-30 2012-08-14 International Business Machines Corporation Formal verification of models using concurrent model-reduction and model-checking
US8201115B2 (en) * 2008-08-14 2012-06-12 International Business Machines Corporation Scalable reduction in registers with SAT-based resubstitution

Citations (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5119318A (en) * 1989-04-17 1992-06-02 Del Partners L.P. Expert control system for real time management of automated factory equipment
US5469367A (en) * 1994-06-06 1995-11-21 University Technologies International Inc. Methodology and apparatus for modular partitioning for the machine design of asynchronous circuits
US5481717A (en) * 1993-04-12 1996-01-02 Kabushiki Kaisha Toshiba Logic program comparison method for verifying a computer program in relation to a system specification
US5491639A (en) * 1991-04-17 1996-02-13 Siemens Aktiengesellschaft Procedure for verifying data-processing systems
US5594656A (en) * 1993-11-02 1997-01-14 Bull S.A. Method of verification of a finite state sequential machine and resulting information support and verification tool
US5691925A (en) * 1992-06-29 1997-11-25 Lucent Technologies Inc. Deriving tractable sub-system for model of larger system
US5694579A (en) * 1993-02-18 1997-12-02 Digital Equipment Corporation Using pre-analysis and a 2-state optimistic model to reduce computation in transistor circuit simulation
US5754454A (en) * 1997-03-03 1998-05-19 Motorola, Inc. Method for determining functional equivalence between design models
US5768498A (en) * 1996-01-23 1998-06-16 Lucent Technologies Protocol verification using symbolic representations of queues
US5867399A (en) * 1990-04-06 1999-02-02 Lsi Logic Corporation System and method for creating and validating structural description of electronic system from higher-level and behavior-oriented description
US5870509A (en) * 1995-12-12 1999-02-09 Hewlett-Packard Company Texture coordinate alignment system and method
US5870590A (en) * 1993-07-29 1999-02-09 Kita; Ronald Allen Method and apparatus for generating an extended finite state machine architecture for a software specification
US5901073A (en) * 1997-06-06 1999-05-04 Lucent Technologies Inc. Method for detecting errors in models through restriction
US5905977A (en) * 1993-09-17 1999-05-18 Bull S.A. Method for automatic demonstration
US5937183A (en) * 1996-11-05 1999-08-10 Nec Usa, Inc. Enhanced binary decision diagram-based functional simulation
US6026222A (en) * 1997-12-23 2000-02-15 Nec Usa, Inc. System for combinational equivalence checking
US6035109A (en) * 1997-04-22 2000-03-07 Nec Usa, Inc. Method for using complete-1-distinguishability for FSM equivalence checking
US6074428A (en) * 1994-10-19 2000-06-13 Hewlett-Packard Company Minimizing logic by resolving "don't care" output values in a finite state machine
US6086626A (en) * 1997-05-16 2000-07-11 Fijutsu Limited Method for verification of combinational circuits using a filtering oriented approach
US6131078A (en) * 1999-05-06 2000-10-10 Plaisted; David A. Method for design verification of hardware and non-hardware systems
US6148436A (en) * 1998-03-31 2000-11-14 Synopsys, Inc. System and method for automatic generation of gate-level descriptions from table-based descriptions for electronic design automation
US6185516B1 (en) * 1990-03-06 2001-02-06 Lucent Technologies Inc. Automata-theoretic verification of systems
US6209120B1 (en) * 1997-11-03 2001-03-27 Lucent Technologies, Inc. Verifying hardware in its software context and vice-versa
US6247165B1 (en) * 1998-03-31 2001-06-12 Synopsys, Inc. System and process of extracting gate-level descriptions from simulation tables for formal verification
US6292916B1 (en) * 1998-12-10 2001-09-18 Lucent Technologies Inc. Parallel backtracing for satisfiability on reconfigurable hardware
US6308299B1 (en) * 1998-07-17 2001-10-23 Cadence Design Systems, Inc. Method and system for combinational verification having tight integration of verification techniques
US6311293B1 (en) * 1998-12-14 2001-10-30 Lucent Technologies Inc. Detecting of model errors through simplification of model via state reachability analysis
US6321186B1 (en) * 1999-05-03 2001-11-20 Motorola, Inc. Method and apparatus for integrated circuit design verification
US6339837B1 (en) * 1998-02-25 2002-01-15 Zhe Li Hybrid method for design verification
US6341367B1 (en) * 2000-07-25 2002-01-22 Lsi Logic Corporation Hardware realized state machine
US6484134B1 (en) * 1999-06-20 2002-11-19 Intel Corporation Property coverage in formal verification
US6591400B1 (en) * 2000-09-29 2003-07-08 Intel Corporation Symbolic variable reduction
US6725431B1 (en) * 2000-06-30 2004-04-20 Intel Corporation Lazy symbolic model checking
US20050149301A1 (en) * 1999-09-24 2005-07-07 Nec Corporation Method for design validation using retiming
US7028278B2 (en) * 1997-11-05 2006-04-11 Fujitsu Limited Method of verifying and representing hardware by decomposition and partitioning
US7120568B1 (en) * 1999-09-23 2006-10-10 Marvell Semiconductor Israel Ltd. Identification of missing properties in model checking

Patent Citations (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5119318A (en) * 1989-04-17 1992-06-02 Del Partners L.P. Expert control system for real time management of automated factory equipment
US6185516B1 (en) * 1990-03-06 2001-02-06 Lucent Technologies Inc. Automata-theoretic verification of systems
US5867399A (en) * 1990-04-06 1999-02-02 Lsi Logic Corporation System and method for creating and validating structural description of electronic system from higher-level and behavior-oriented description
US5491639A (en) * 1991-04-17 1996-02-13 Siemens Aktiengesellschaft Procedure for verifying data-processing systems
US5691925A (en) * 1992-06-29 1997-11-25 Lucent Technologies Inc. Deriving tractable sub-system for model of larger system
US5694579A (en) * 1993-02-18 1997-12-02 Digital Equipment Corporation Using pre-analysis and a 2-state optimistic model to reduce computation in transistor circuit simulation
US5481717A (en) * 1993-04-12 1996-01-02 Kabushiki Kaisha Toshiba Logic program comparison method for verifying a computer program in relation to a system specification
US5870590A (en) * 1993-07-29 1999-02-09 Kita; Ronald Allen Method and apparatus for generating an extended finite state machine architecture for a software specification
US5905977A (en) * 1993-09-17 1999-05-18 Bull S.A. Method for automatic demonstration
US5594656A (en) * 1993-11-02 1997-01-14 Bull S.A. Method of verification of a finite state sequential machine and resulting information support and verification tool
US5469367A (en) * 1994-06-06 1995-11-21 University Technologies International Inc. Methodology and apparatus for modular partitioning for the machine design of asynchronous circuits
US6074428A (en) * 1994-10-19 2000-06-13 Hewlett-Packard Company Minimizing logic by resolving "don't care" output values in a finite state machine
US5870509A (en) * 1995-12-12 1999-02-09 Hewlett-Packard Company Texture coordinate alignment system and method
US5768498A (en) * 1996-01-23 1998-06-16 Lucent Technologies Protocol verification using symbolic representations of queues
US5937183A (en) * 1996-11-05 1999-08-10 Nec Usa, Inc. Enhanced binary decision diagram-based functional simulation
US5754454A (en) * 1997-03-03 1998-05-19 Motorola, Inc. Method for determining functional equivalence between design models
US6035109A (en) * 1997-04-22 2000-03-07 Nec Usa, Inc. Method for using complete-1-distinguishability for FSM equivalence checking
US6086626A (en) * 1997-05-16 2000-07-11 Fijutsu Limited Method for verification of combinational circuits using a filtering oriented approach
US6301687B1 (en) * 1997-05-16 2001-10-09 Fujitsu Limited Method for verification of combinational circuits using a filtering oriented approach
US5901073A (en) * 1997-06-06 1999-05-04 Lucent Technologies Inc. Method for detecting errors in models through restriction
US6209120B1 (en) * 1997-11-03 2001-03-27 Lucent Technologies, Inc. Verifying hardware in its software context and vice-versa
US7028278B2 (en) * 1997-11-05 2006-04-11 Fujitsu Limited Method of verifying and representing hardware by decomposition and partitioning
US6026222A (en) * 1997-12-23 2000-02-15 Nec Usa, Inc. System for combinational equivalence checking
US6339837B1 (en) * 1998-02-25 2002-01-15 Zhe Li Hybrid method for design verification
US6148436A (en) * 1998-03-31 2000-11-14 Synopsys, Inc. System and method for automatic generation of gate-level descriptions from table-based descriptions for electronic design automation
US6247165B1 (en) * 1998-03-31 2001-06-12 Synopsys, Inc. System and process of extracting gate-level descriptions from simulation tables for formal verification
US6308299B1 (en) * 1998-07-17 2001-10-23 Cadence Design Systems, Inc. Method and system for combinational verification having tight integration of verification techniques
US6292916B1 (en) * 1998-12-10 2001-09-18 Lucent Technologies Inc. Parallel backtracing for satisfiability on reconfigurable hardware
US6311293B1 (en) * 1998-12-14 2001-10-30 Lucent Technologies Inc. Detecting of model errors through simplification of model via state reachability analysis
US6321186B1 (en) * 1999-05-03 2001-11-20 Motorola, Inc. Method and apparatus for integrated circuit design verification
US6131078A (en) * 1999-05-06 2000-10-10 Plaisted; David A. Method for design verification of hardware and non-hardware systems
US6484134B1 (en) * 1999-06-20 2002-11-19 Intel Corporation Property coverage in formal verification
US7120568B1 (en) * 1999-09-23 2006-10-10 Marvell Semiconductor Israel Ltd. Identification of missing properties in model checking
US20050149301A1 (en) * 1999-09-24 2005-07-07 Nec Corporation Method for design validation using retiming
US6725431B1 (en) * 2000-06-30 2004-04-20 Intel Corporation Lazy symbolic model checking
US6341367B1 (en) * 2000-07-25 2002-01-22 Lsi Logic Corporation Hardware realized state machine
US6591400B1 (en) * 2000-09-29 2003-07-08 Intel Corporation Symbolic variable reduction
US20030208732A1 (en) * 2000-09-29 2003-11-06 Jin Yang Verification system using symbolic variable reduction

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231621B1 (en) 2004-04-30 2007-06-12 Xilinx, Inc. Speed verification of an embedded processor in a programmable logic device
US7269805B1 (en) 2004-04-30 2007-09-11 Xilinx, Inc. Testing of an integrated circuit having an embedded processor
US7406670B1 (en) 2004-04-30 2008-07-29 Xilinx, Inc. Testing of an integrated circuit having an embedded processor
US20070299793A1 (en) * 2006-06-21 2007-12-27 Microsoft Corporation Computer implemented cover process approximating quantifier elimination
US7606774B2 (en) * 2006-06-21 2009-10-20 Microsoft Corporation Computer implemented cover process approximating quantifier elimination
US20110071809A1 (en) * 2009-09-23 2011-03-24 International Business Machines Corporation Model generation based on a constraint and an initial model
US8352234B2 (en) * 2009-09-23 2013-01-08 International Business Machines Corporation Model generation based on a constraint and an initial model

Also Published As

Publication number Publication date
US6643827B1 (en) 2003-11-04

Similar Documents

Publication Publication Date Title
Berezin et al. Compositional reasoning in model checking
Pastor et al. Petri net analysis using boolean manipulation
Ranjan et al. Efficient BDD algorithms for FSM synthesis and verification
Biere et al. Verifying safety properties of a PowerPC− microprocessor using symbolic model checking without BDDs
US6643827B1 (en) Symbolic model checking with dynamic model pruning
US6301687B1 (en) Method for verification of combinational circuits using a filtering oriented approach
Bloem et al. Efficient decision procedures for model checking of linear time logic properties
Bradley et al. Linear ranking with reachability
US6591400B1 (en) Symbolic variable reduction
US7290229B2 (en) Method and system for optimized handling of constraints during symbolic simulation
US8108195B2 (en) Satisfiability (SAT) based bounded model checkers
US20070005633A1 (en) Predicate abstraction via symbolic decision procedures
WO2007021552A2 (en) Disjunctive image computation for sequential systems
Grumberg et al. Distributed symbolic model checking for μ-calculus
Cook et al. Symbolic model checking for asynchronous boolean programs
US20030115559A1 (en) Hardware validation through binary decision diagrams including functions and equalities
US6725431B1 (en) Lazy symbolic model checking
US9389983B2 (en) Verification of complex systems that can be described by a finite state transition system
Abrahám et al. Optimizing bounded model checking for linear hybrid systems
US8903699B2 (en) Determining large-scale finite state machines using constraint relaxation
Armoni et al. Efficient LTL compilation for SAT-based model checking
US7283945B2 (en) High level verification of software and hardware descriptions by symbolic simulation using assume-guarantee relationships with linear arithmetic assumptions
US20070050181A1 (en) Antecedent strengthening to perform generalized trajectory evaluation
John et al. A layered algorithm for quantifier elimination from linear modular constraints
US20040093574A1 (en) Method and apparatus for cut-point frontier selection and for counter-example generation in formal equivalence verification

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION