C# Class Microsoft.Z3.Solver

Inheritance: Z3Object
Mostra file Open project: sslab-gatech/juxta Class Usage Examples

Public Methods

Method Description
Add ( ) : void

Alias for Assert.

Assert ( ) : void

Assert a constraint (or multiple) into the solver.

AssertAndTrack ( BoolExpr constraints, BoolExpr ps ) : void

Assert multiple constraints into the solver, and track them (in the unsat) core using the Boolean constants in ps.

This API is an alternative to Check with assumptions for extracting unsat cores. Both APIs can be used in the same solver. The unsat core will contain a combination of the Boolean variables provided using AssertAndTrack(BoolExpr[],BoolExpr[]) and the Boolean literals provided using Check with assumptions.

Check ( ) : Status

Checks whether the assertions in the solver are consistent or not.

Model UnsatCore Proof

Pop ( uint n = 1 ) : void

Backtracks n backtracking points.

Note that an exception is thrown if n is not smaller than NumScopes

Push ( ) : void

Creates a backtracking point.

Reset ( ) : void

Resets the Solver.

This removes all assertions from the solver.

ToString ( ) : string

A string representation of the solver.

Private Methods

Method Description
DecRef ( IntPtr o ) : void
IncRef ( IntPtr o ) : void
Solver ( Context ctx, IntPtr obj ) : System

Method Details

Add() public method

Alias for Assert.
public Add ( ) : void
return void

Assert() public method

Assert a constraint (or multiple) into the solver.
public Assert ( ) : void
return void

AssertAndTrack() public method

Assert multiple constraints into the solver, and track them (in the unsat) core using the Boolean constants in ps.
This API is an alternative to Check with assumptions for extracting unsat cores. Both APIs can be used in the same solver. The unsat core will contain a combination of the Boolean variables provided using AssertAndTrack(BoolExpr[],BoolExpr[]) and the Boolean literals provided using Check with assumptions.
public AssertAndTrack ( BoolExpr constraints, BoolExpr ps ) : void
constraints BoolExpr
ps BoolExpr
return void

Check() public method

Checks whether the assertions in the solver are consistent or not.
Model UnsatCore Proof
public Check ( ) : Status
return Status

Pop() public method

Backtracks n backtracking points.
Note that an exception is thrown if n is not smaller than NumScopes
public Pop ( uint n = 1 ) : void
n uint
return void

Push() public method

Creates a backtracking point.
public Push ( ) : void
return void

Reset() public method

Resets the Solver.
This removes all assertions from the solver.
public Reset ( ) : void
return void

ToString() public method

A string representation of the solver.
public ToString ( ) : string
return string