C# 클래스 Microsoft.Z3.Solver

상속: Z3Object
파일 보기 프로젝트 열기: sslab-gatech/juxta 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
DecRef ( IntPtr o ) : void
IncRef ( IntPtr o ) : void
Solver ( Context ctx, IntPtr obj ) : System

메소드 상세

Add() 공개 메소드

Alias for Assert.
public Add ( ) : void
리턴 void

Assert() 공개 메소드

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

AssertAndTrack() 공개 메소드

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
리턴 void

Check() 공개 메소드

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

Pop() 공개 메소드

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
리턴 void

Push() 공개 메소드

Creates a backtracking point.
public Push ( ) : void
리턴 void

Reset() 공개 메소드

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

ToString() 공개 메소드

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