C# Class Microsoft.Z3.Fixedpoint

Inheritance: Z3Object
Afficher le fichier Open project: sslab-gatech/juxta Class Usage Examples

Méthodes publiques

Méthode Description
Add ( ) : void

Alias for Assert.

AddCover ( int level, FuncDecl predicate, Expr property ) : void

Add property about the predicate. The property is added at level.

AddFact ( FuncDecl pred ) : void

Add table fact to the fixedpoint solver.

AddRule ( BoolExpr rule, Symbol name = null ) : void

Add rule into the fixedpoint solver.

Assert ( ) : void

Assert a constraint (or multiple) into the fixedpoint solver.

GetAnswer ( ) : Expr

Retrieve satisfying instance or instances of solver, or definitions for the recursive predicates that show unsatisfiability.

GetCoverDelta ( int level, FuncDecl predicate ) : Expr

Retrieve the cover of a predicate.

GetNumLevels ( FuncDecl predicate ) : uint

Retrieve the number of levels explored for a given predicate.

GetReasonUnknown ( ) : string

Retrieve explanation why fixedpoint engine returned status Unknown.

ParseFile ( string file ) : Microsoft.Z3.BoolExpr[]

Parse an SMT-LIB2 file with fixedpoint rules. Add the rules to the current fixedpoint context. Return the set of queries in the file.

ParseString ( string s ) : Microsoft.Z3.BoolExpr[]

Similar to ParseFile. Instead it takes as argument a string.

Pop ( ) : void

Backtrack one backtracking point.

Note that an exception is thrown if Pop is called without a corresponding Push

Push ( ) : void

Creates a backtracking point.

Query ( BoolExpr query ) : Status

Query the fixedpoint solver. A query is a conjunction of constraints. The constraints may include the recursively defined relations. The query is satisfiable if there is an instance of the query variables and a derivation for it. The query is unsatisfiable if there are no derivations satisfying the query variables.

Query ( FuncDecl relations ) : Status

Query the fixedpoint solver. A query is an array of relations. The query is satisfiable if there is an instance of some relation that is non-empty. The query is unsatisfiable if there are no derivations satisfying any of the relations.

RegisterRelation ( FuncDecl f ) : void

Register predicate as recursive relation.

SetPredicateRepresentation ( FuncDecl f, Symbol kinds ) : void

Instrument the Datalog engine on which table representation to use for recursive predicate.

ToString ( ) : string

Retrieve internal string representation of fixedpoint object.

ToString ( BoolExpr queries ) : string

Convert benchmark given as set of axioms, rules and queries to a string.

UpdateRule ( BoolExpr rule, Symbol name ) : void

Update named rule into in the fixedpoint solver.

Private Methods

Méthode Description
DecRef ( IntPtr o ) : void
Fixedpoint ( Context ctx ) : System
Fixedpoint ( Context ctx, IntPtr obj ) : System
IncRef ( IntPtr o ) : void
ToBoolExprs ( ASTVector v ) : Microsoft.Z3.BoolExpr[]

Method Details

Add() public méthode

Alias for Assert.
public Add ( ) : void
Résultat void

AddCover() public méthode

Add property about the predicate. The property is added at level.
public AddCover ( int level, FuncDecl predicate, Expr property ) : void
level int
predicate FuncDecl
property Expr
Résultat void

AddFact() public méthode

Add table fact to the fixedpoint solver.
public AddFact ( FuncDecl pred ) : void
pred FuncDecl
Résultat void

AddRule() public méthode

Add rule into the fixedpoint solver.
public AddRule ( BoolExpr rule, Symbol name = null ) : void
rule BoolExpr
name Symbol
Résultat void

Assert() public méthode

Assert a constraint (or multiple) into the fixedpoint solver.
public Assert ( ) : void
Résultat void

GetAnswer() public méthode

Retrieve satisfying instance or instances of solver, or definitions for the recursive predicates that show unsatisfiability.
public GetAnswer ( ) : Expr
Résultat Expr

GetCoverDelta() public méthode

Retrieve the cover of a predicate.
public GetCoverDelta ( int level, FuncDecl predicate ) : Expr
level int
predicate FuncDecl
Résultat Expr

GetNumLevels() public méthode

Retrieve the number of levels explored for a given predicate.
public GetNumLevels ( FuncDecl predicate ) : uint
predicate FuncDecl
Résultat uint

GetReasonUnknown() public méthode

Retrieve explanation why fixedpoint engine returned status Unknown.
public GetReasonUnknown ( ) : string
Résultat string

ParseFile() public méthode

Parse an SMT-LIB2 file with fixedpoint rules. Add the rules to the current fixedpoint context. Return the set of queries in the file.
public ParseFile ( string file ) : Microsoft.Z3.BoolExpr[]
file string
Résultat Microsoft.Z3.BoolExpr[]

ParseString() public méthode

Similar to ParseFile. Instead it takes as argument a string.
public ParseString ( string s ) : Microsoft.Z3.BoolExpr[]
s string
Résultat Microsoft.Z3.BoolExpr[]

Pop() public méthode

Backtrack one backtracking point.
Note that an exception is thrown if Pop is called without a corresponding Push
public Pop ( ) : void
Résultat void

Push() public méthode

Creates a backtracking point.
public Push ( ) : void
Résultat void

Query() public méthode

Query the fixedpoint solver. A query is a conjunction of constraints. The constraints may include the recursively defined relations. The query is satisfiable if there is an instance of the query variables and a derivation for it. The query is unsatisfiable if there are no derivations satisfying the query variables.
public Query ( BoolExpr query ) : Status
query BoolExpr
Résultat Status

Query() public méthode

Query the fixedpoint solver. A query is an array of relations. The query is satisfiable if there is an instance of some relation that is non-empty. The query is unsatisfiable if there are no derivations satisfying any of the relations.
public Query ( FuncDecl relations ) : Status
relations FuncDecl
Résultat Status

RegisterRelation() public méthode

Register predicate as recursive relation.
public RegisterRelation ( FuncDecl f ) : void
f FuncDecl
Résultat void

SetPredicateRepresentation() public méthode

Instrument the Datalog engine on which table representation to use for recursive predicate.
public SetPredicateRepresentation ( FuncDecl f, Symbol kinds ) : void
f FuncDecl
kinds Symbol
Résultat void

ToString() public méthode

Retrieve internal string representation of fixedpoint object.
public ToString ( ) : string
Résultat string

ToString() public méthode

Convert benchmark given as set of axioms, rules and queries to a string.
public ToString ( BoolExpr queries ) : string
queries BoolExpr
Résultat string

UpdateRule() public méthode

Update named rule into in the fixedpoint solver.
public UpdateRule ( BoolExpr rule, Symbol name ) : void
rule BoolExpr
name Symbol
Résultat void