C# Класс Microsoft.Z3.Solver

Наследование: Z3Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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