The main interaction with Z3 happens via the Context. More...
Public Member Functions | |
Context () | |
Constructor. More... | |
Context (Dictionary< string, string > settings) | |
Constructor. More... | |
IntSymbol | MkSymbol (int i) |
Creates a new symbol using an integer. More... | |
StringSymbol | MkSymbol (string name) |
Create a symbol using a string. More... | |
BoolSort | MkBoolSort () |
Create a new Boolean sort. More... | |
UninterpretedSort | MkUninterpretedSort (Symbol s) |
Create a new uninterpreted sort. More... | |
UninterpretedSort | MkUninterpretedSort (string str) |
Create a new uninterpreted sort. More... | |
IntSort | MkIntSort () |
Create a new integer sort. More... | |
RealSort | MkRealSort () |
Create a real sort. More... | |
BitVecSort | MkBitVecSort (uint size) |
Create a new bit-vector sort. More... | |
SeqSort | MkSeqSort (Sort s) |
Create a new sequence sort. More... | |
ReSort | MkReSort (SeqSort s) |
Create a new regular expression sort. More... | |
ArraySort | MkArraySort (Sort domain, Sort range) |
Create a new array sort. More... | |
TupleSort | MkTupleSort (Symbol name, Symbol[] fieldNames, Sort[] fieldSorts) |
Create a new tuple sort. More... | |
EnumSort | MkEnumSort (Symbol name, params Symbol[] enumNames) |
Create a new enumeration sort. More... | |
EnumSort | MkEnumSort (string name, params string[] enumNames) |
Create a new enumeration sort. More... | |
ListSort | MkListSort (Symbol name, Sort elemSort) |
Create a new list sort. More... | |
ListSort | MkListSort (string name, Sort elemSort) |
Create a new list sort. More... | |
FiniteDomainSort | MkFiniteDomainSort (Symbol name, ulong size) |
Create a new finite domain sort.
| |
FiniteDomainSort | MkFiniteDomainSort (string name, ulong size) |
Create a new finite domain sort.
Elements of the sort are created using
, and the elements range from 0 to | |
Constructor | MkConstructor (Symbol name, Symbol recognizer, Symbol[] fieldNames=null, Sort[] sorts=null, uint[] sortRefs=null) |
Create a datatype constructor. More... | |
Constructor | MkConstructor (string name, string recognizer, string[] fieldNames=null, Sort[] sorts=null, uint[] sortRefs=null) |
Create a datatype constructor. More... | |
DatatypeSort | MkDatatypeSort (Symbol name, Constructor[] constructors) |
Create a new datatype sort. More... | |
DatatypeSort | MkDatatypeSort (string name, Constructor[] constructors) |
Create a new datatype sort. More... | |
DatatypeSort [] | MkDatatypeSorts (Symbol[] names, Constructor[][] c) |
Create mutually recursive datatypes. More... | |
DatatypeSort [] | MkDatatypeSorts (string[] names, Constructor[][] c) |
Create mutually recursive data-types. More... | |
Expr | MkUpdateField (FuncDecl field, Expr t, Expr v) |
Update a datatype field at expression t with value v. The function performs a record update at t. The field that is passed in as argument is updated with value v, the remainig fields of t are unchanged. More... | |
FuncDecl | MkFuncDecl (Symbol name, Sort[] domain, Sort range) |
Creates a new function declaration. More... | |
FuncDecl | MkFuncDecl (Symbol name, Sort domain, Sort range) |
Creates a new function declaration. More... | |
FuncDecl | MkFuncDecl (string name, Sort[] domain, Sort range) |
Creates a new function declaration. More... | |
FuncDecl | MkFuncDecl (string name, Sort domain, Sort range) |
Creates a new function declaration. More... | |
FuncDecl | MkFreshFuncDecl (string prefix, Sort[] domain, Sort range) |
Creates a fresh function declaration with a name prefixed with prefix . More... | |
FuncDecl | MkConstDecl (Symbol name, Sort range) |
Creates a new constant function declaration. More... | |
FuncDecl | MkConstDecl (string name, Sort range) |
Creates a new constant function declaration. More... | |
FuncDecl | MkFreshConstDecl (string prefix, Sort range) |
Creates a fresh constant function declaration with a name prefixed with prefix . More... | |
Expr | MkBound (uint index, Sort ty) |
Creates a new bound variable. More... | |
Pattern | MkPattern (params Expr[] terms) |
Create a quantifier pattern. More... | |
Expr | MkConst (Symbol name, Sort range) |
Creates a new Constant of sort range and named name . More... | |
Expr | MkConst (string name, Sort range) |
Creates a new Constant of sort range and named name . More... | |
Expr | MkFreshConst (string prefix, Sort range) |
Creates a fresh Constant of sort range and a name prefixed with prefix . More... | |
Expr | MkConst (FuncDecl f) |
Creates a fresh constant from the FuncDecl f . More... | |
BoolExpr | MkBoolConst (Symbol name) |
Create a Boolean constant. More... | |
BoolExpr | MkBoolConst (string name) |
Create a Boolean constant. More... | |
IntExpr | MkIntConst (Symbol name) |
Creates an integer constant. More... | |
IntExpr | MkIntConst (string name) |
Creates an integer constant. More... | |
RealExpr | MkRealConst (Symbol name) |
Creates a real constant. More... | |
RealExpr | MkRealConst (string name) |
Creates a real constant. More... | |
BitVecExpr | MkBVConst (Symbol name, uint size) |
Creates a bit-vector constant. More... | |
BitVecExpr | MkBVConst (string name, uint size) |
Creates a bit-vector constant. More... | |
Expr | MkApp (FuncDecl f, params Expr[] args) |
Create a new function application. More... | |
Expr | MkApp (FuncDecl f, IEnumerable< Expr > args) |
Create a new function application. More... | |
BoolExpr | MkTrue () |
The true Term. More... | |
BoolExpr | MkFalse () |
The false Term. More... | |
BoolExpr | MkBool (bool value) |
Creates a Boolean value. More... | |
BoolExpr | MkEq (Expr x, Expr y) |
Creates the equality x = y . More... | |
BoolExpr | MkDistinct (params Expr[] args) |
Creates a distinct term. More... | |
BoolExpr | MkNot (BoolExpr a) |
Mk an expression representing not(a) . More... | |
Expr | MkITE (BoolExpr t1, Expr t2, Expr t3) |
Create an expression representing an if-then-else: ite(t1, t2, t3) . More... | |
BoolExpr | MkIff (BoolExpr t1, BoolExpr t2) |
Create an expression representing t1 iff t2 . More... | |
BoolExpr | MkImplies (BoolExpr t1, BoolExpr t2) |
Create an expression representing t1 -> t2 . More... | |
BoolExpr | MkXor (BoolExpr t1, BoolExpr t2) |
Create an expression representing t1 xor t2 . More... | |
BoolExpr | MkAnd (params BoolExpr[] t) |
Create an expression representing t[0] and t[1] and ... . More... | |
BoolExpr | MkAnd (IEnumerable< BoolExpr > t) |
Create an expression representing t[0] and t[1] and ... . More... | |
BoolExpr | MkOr (params BoolExpr[] t) |
Create an expression representing t[0] or t[1] or ... . More... | |
BoolExpr | MkOr (IEnumerable< BoolExpr > t) |
Create an expression representing t[0] or t[1] or ... . More... | |
ArithExpr | MkAdd (params ArithExpr[] t) |
Create an expression representing t[0] + t[1] + ... . More... | |
ArithExpr | MkAdd (IEnumerable< ArithExpr > t) |
Create an expression representing t[0] + t[1] + ... . More... | |
ArithExpr | MkMul (params ArithExpr[] t) |
Create an expression representing t[0] * t[1] * ... . More... | |
ArithExpr | MkMul (IEnumerable< ArithExpr > t) |
Create an expression representing t[0] * t[1] * ... . More... | |
ArithExpr | MkSub (params ArithExpr[] t) |
Create an expression representing t[0] - t[1] - ... . More... | |
ArithExpr | MkUnaryMinus (ArithExpr t) |
Create an expression representing -t . More... | |
ArithExpr | MkDiv (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 / t2 . More... | |
IntExpr | MkMod (IntExpr t1, IntExpr t2) |
Create an expression representing t1 mod t2 . More... | |
IntExpr | MkRem (IntExpr t1, IntExpr t2) |
Create an expression representing t1 rem t2 . More... | |
ArithExpr | MkPower (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 ^ t2 . More... | |
BoolExpr | MkLt (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 < t2 More... | |
BoolExpr | MkLe (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 <= t2 More... | |
BoolExpr | MkGt (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 > t2 More... | |
BoolExpr | MkGe (ArithExpr t1, ArithExpr t2) |
Create an expression representing t1 >= t2 More... | |
RealExpr | MkInt2Real (IntExpr t) |
Coerce an integer to a real. More... | |
IntExpr | MkReal2Int (RealExpr t) |
Coerce a real to an integer. More... | |
BoolExpr | MkIsInteger (RealExpr t) |
Creates an expression that checks whether a real number is an integer. More... | |
BitVecExpr | MkBVNot (BitVecExpr t) |
Bitwise negation. More... | |
BitVecExpr | MkBVRedAND (BitVecExpr t) |
Take conjunction of bits in a vector, return vector of length 1. More... | |
BitVecExpr | MkBVRedOR (BitVecExpr t) |
Take disjunction of bits in a vector, return vector of length 1. More... | |
BitVecExpr | MkBVAND (BitVecExpr t1, BitVecExpr t2) |
Bitwise conjunction. More... | |
BitVecExpr | MkBVOR (BitVecExpr t1, BitVecExpr t2) |
Bitwise disjunction. More... | |
BitVecExpr | MkBVXOR (BitVecExpr t1, BitVecExpr t2) |
Bitwise XOR. More... | |
BitVecExpr | MkBVNAND (BitVecExpr t1, BitVecExpr t2) |
Bitwise NAND. More... | |
BitVecExpr | MkBVNOR (BitVecExpr t1, BitVecExpr t2) |
Bitwise NOR. More... | |
BitVecExpr | MkBVXNOR (BitVecExpr t1, BitVecExpr t2) |
Bitwise XNOR. More... | |
BitVecExpr | MkBVNeg (BitVecExpr t) |
Standard two's complement unary minus. More... | |
BitVecExpr | MkBVAdd (BitVecExpr t1, BitVecExpr t2) |
Two's complement addition. More... | |
BitVecExpr | MkBVSub (BitVecExpr t1, BitVecExpr t2) |
Two's complement subtraction. More... | |
BitVecExpr | MkBVMul (BitVecExpr t1, BitVecExpr t2) |
Two's complement multiplication. More... | |
BitVecExpr | MkBVUDiv (BitVecExpr t1, BitVecExpr t2) |
Unsigned division. More... | |
BitVecExpr | MkBVSDiv (BitVecExpr t1, BitVecExpr t2) |
Signed division. More... | |
BitVecExpr | MkBVURem (BitVecExpr t1, BitVecExpr t2) |
Unsigned remainder. More... | |
BitVecExpr | MkBVSRem (BitVecExpr t1, BitVecExpr t2) |
Signed remainder. More... | |
BitVecExpr | MkBVSMod (BitVecExpr t1, BitVecExpr t2) |
Two's complement signed remainder (sign follows divisor). More... | |
BoolExpr | MkBVULT (BitVecExpr t1, BitVecExpr t2) |
Unsigned less-than More... | |
BoolExpr | MkBVSLT (BitVecExpr t1, BitVecExpr t2) |
Two's complement signed less-than More... | |
BoolExpr | MkBVULE (BitVecExpr t1, BitVecExpr t2) |
Unsigned less-than or equal to. More... | |
BoolExpr | MkBVSLE (BitVecExpr t1, BitVecExpr t2) |
Two's complement signed less-than or equal to. More... | |
BoolExpr | MkBVUGE (BitVecExpr t1, BitVecExpr t2) |
Unsigned greater than or equal to. More... | |
BoolExpr | MkBVSGE (BitVecExpr t1, BitVecExpr t2) |
Two's complement signed greater than or equal to. More... | |
BoolExpr | MkBVUGT (BitVecExpr t1, BitVecExpr t2) |
Unsigned greater-than. More... | |
BoolExpr | MkBVSGT (BitVecExpr t1, BitVecExpr t2) |
Two's complement signed greater-than. More... | |
BitVecExpr | MkConcat (BitVecExpr t1, BitVecExpr t2) |
Bit-vector concatenation. More... | |
BitVecExpr | MkExtract (uint high, uint low, BitVecExpr t) |
Bit-vector extraction. More... | |
BitVecExpr | MkSignExt (uint i, BitVecExpr t) |
Bit-vector sign extension. More... | |
BitVecExpr | MkZeroExt (uint i, BitVecExpr t) |
Bit-vector zero extension. More... | |
BitVecExpr | MkRepeat (uint i, BitVecExpr t) |
Bit-vector repetition. More... | |
BitVecExpr | MkBVSHL (BitVecExpr t1, BitVecExpr t2) |
Shift left. More... | |
BitVecExpr | MkBVLSHR (BitVecExpr t1, BitVecExpr t2) |
Logical shift right More... | |
BitVecExpr | MkBVASHR (BitVecExpr t1, BitVecExpr t2) |
Arithmetic shift right More... | |
BitVecExpr | MkBVRotateLeft (uint i, BitVecExpr t) |
Rotate Left. More... | |
BitVecExpr | MkBVRotateRight (uint i, BitVecExpr t) |
Rotate Right. More... | |
BitVecExpr | MkBVRotateLeft (BitVecExpr t1, BitVecExpr t2) |
Rotate Left. More... | |
BitVecExpr | MkBVRotateRight (BitVecExpr t1, BitVecExpr t2) |
Rotate Right. More... | |
BitVecExpr | MkInt2BV (uint n, IntExpr t) |
Create an n bit bit-vector from the integer argument t . More... | |
IntExpr | MkBV2Int (BitVecExpr t, bool signed) |
Create an integer from the bit-vector argument t . More... | |
BoolExpr | MkBVAddNoOverflow (BitVecExpr t1, BitVecExpr t2, bool isSigned) |
Create a predicate that checks that the bit-wise addition does not overflow. More... | |
BoolExpr | MkBVAddNoUnderflow (BitVecExpr t1, BitVecExpr t2) |
Create a predicate that checks that the bit-wise addition does not underflow. More... | |
BoolExpr | MkBVSubNoOverflow (BitVecExpr t1, BitVecExpr t2) |
Create a predicate that checks that the bit-wise subtraction does not overflow. More... | |
BoolExpr | MkBVSubNoUnderflow (BitVecExpr t1, BitVecExpr t2, bool isSigned) |
Create a predicate that checks that the bit-wise subtraction does not underflow. More... | |
BoolExpr | MkBVSDivNoOverflow (BitVecExpr t1, BitVecExpr t2) |
Create a predicate that checks that the bit-wise signed division does not overflow. More... | |
BoolExpr | MkBVNegNoOverflow (BitVecExpr t) |
Create a predicate that checks that the bit-wise negation does not overflow. More... | |
BoolExpr | MkBVMulNoOverflow (BitVecExpr t1, BitVecExpr t2, bool isSigned) |
Create a predicate that checks that the bit-wise multiplication does not overflow. More... | |
BoolExpr | MkBVMulNoUnderflow (BitVecExpr t1, BitVecExpr t2) |
Create a predicate that checks that the bit-wise multiplication does not underflow. More... | |
ArrayExpr | MkArrayConst (Symbol name, Sort domain, Sort range) |
Create an array constant. More... | |
ArrayExpr | MkArrayConst (string name, Sort domain, Sort range) |
Create an array constant. More... | |
Expr | MkSelect (ArrayExpr a, Expr i) |
Array read. More... | |
ArrayExpr | MkStore (ArrayExpr a, Expr i, Expr v) |
Array update. More... | |
ArrayExpr | MkConstArray (Sort domain, Expr v) |
Create a constant array. More... | |
ArrayExpr | MkMap (FuncDecl f, params ArrayExpr[] args) |
Maps f on the argument arrays. More... | |
Expr | MkTermArray (ArrayExpr array) |
Access the array default value. More... | |
Expr | MkArrayExt (ArrayExpr arg1, ArrayExpr arg2) |
Create Extentionality index. Two arrays are equal if and only if they are equal on the index returned by MkArrayExt. More... | |
SetSort | MkSetSort (Sort ty) |
Create a set type. More... | |
ArrayExpr | MkEmptySet (Sort domain) |
Create an empty set. More... | |
ArrayExpr | MkFullSet (Sort domain) |
Create the full set. More... | |
ArrayExpr | MkSetAdd (ArrayExpr set, Expr element) |
Add an element to the set. More... | |
ArrayExpr | MkSetDel (ArrayExpr set, Expr element) |
Remove an element from a set. More... | |
ArrayExpr | MkSetUnion (params ArrayExpr[] args) |
Take the union of a list of sets. More... | |
ArrayExpr | MkSetIntersection (params ArrayExpr[] args) |
Take the intersection of a list of sets. More... | |
ArrayExpr | MkSetDifference (ArrayExpr arg1, ArrayExpr arg2) |
Take the difference between two sets. More... | |
ArrayExpr | MkSetComplement (ArrayExpr arg) |
Take the complement of a set. More... | |
BoolExpr | MkSetMembership (Expr elem, ArrayExpr set) |
Check for set membership. More... | |
BoolExpr | MkSetSubset (ArrayExpr arg1, ArrayExpr arg2) |
Check for subsetness of sets. More... | |
SeqExpr | MkEmptySeq (Sort s) |
Create the empty sequence. More... | |
SeqExpr | MkUnit (Expr elem) |
Create the singleton sequence. More... | |
SeqExpr | MkString (string s) |
Create a string constant. More... | |
SeqExpr | MkConcat (params SeqExpr[] t) |
Concatentate sequences. More... | |
IntExpr | MkLength (SeqExpr s) |
Retrieve the length of a given sequence. More... | |
BoolExpr | MkPrefixOf (SeqExpr s1, SeqExpr s2) |
Check for sequence prefix. More... | |
BoolExpr | MkSuffixOf (SeqExpr s1, SeqExpr s2) |
Check for sequence suffix. More... | |
BoolExpr | MkContains (SeqExpr s1, SeqExpr s2) |
Check for sequence containment of s2 in s1. More... | |
SeqExpr | MkAt (SeqExpr s, IntExpr index) |
Retrieve sequence of length one at index. More... | |
SeqExpr | MkExtract (SeqExpr s, IntExpr offset, IntExpr length) |
Extract subsequence. More... | |
IntExpr | MkIndexOf (SeqExpr s, SeqExpr substr, ArithExpr offset) |
Extract index of sub-string starting at offset. More... | |
SeqExpr | MkReplace (SeqExpr s, SeqExpr src, SeqExpr dst) |
Replace the first occurrence of src by dst in s. More... | |
ReExpr | MkToRe (SeqExpr s) |
Convert a regular expression that accepts sequence s. More... | |
BoolExpr | MkInRe (SeqExpr s, ReExpr re) |
Check for regular expression membership. More... | |
ReExpr | MkStar (ReExpr re) |
Take the Kleene star of a regular expression. More... | |
ReExpr | MPlus (ReExpr re) |
Take the Kleene plus of a regular expression. More... | |
ReExpr | MOption (ReExpr re) |
Create the optional regular expression. More... | |
ReExpr | MkConcat (params ReExpr[] t) |
Create the concatenation of regular languages. More... | |
ReExpr | MkUnion (params ReExpr[] t) |
Create the union of regular languages. More... | |
BoolExpr | MkAtMost (BoolExpr[] args, uint k) |
Create an at-most-k constraint. More... | |
BoolExpr | MkPBLe (int[] coeffs, BoolExpr[] args, int k) |
Create a pseudo-Boolean less-or-equal constraint. More... | |
BoolExpr | MkPBEq (int[] coeffs, BoolExpr[] args, int k) |
Create a pseudo-Boolean equal constraint. More... | |
Expr | MkNumeral (string v, Sort ty) |
Create a Term of a given sort. More... | |
Expr | MkNumeral (int v, Sort ty) |
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral since it is not necessary to parse a string. More... | |
Expr | MkNumeral (uint v, Sort ty) |
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral since it is not necessary to parse a string. More... | |
Expr | MkNumeral (long v, Sort ty) |
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral since it is not necessary to parse a string. More... | |
Expr | MkNumeral (ulong v, Sort ty) |
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral since it is not necessary to parse a string. More... | |
RatNum | MkReal (int num, int den) |
Create a real from a fraction. More... | |
RatNum | MkReal (string v) |
Create a real numeral. More... | |
RatNum | MkReal (int v) |
Create a real numeral. More... | |
RatNum | MkReal (uint v) |
Create a real numeral. More... | |
RatNum | MkReal (long v) |
Create a real numeral. More... | |
RatNum | MkReal (ulong v) |
Create a real numeral. More... | |
IntNum | MkInt (string v) |
Create an integer numeral. More... | |
IntNum | MkInt (int v) |
Create an integer numeral. More... | |
IntNum | MkInt (uint v) |
Create an integer numeral. More... | |
IntNum | MkInt (long v) |
Create an integer numeral. More... | |
IntNum | MkInt (ulong v) |
Create an integer numeral. More... | |
BitVecNum | MkBV (string v, uint size) |
Create a bit-vector numeral. More... | |
BitVecNum | MkBV (int v, uint size) |
Create a bit-vector numeral. More... | |
BitVecNum | MkBV (uint v, uint size) |
Create a bit-vector numeral. More... | |
BitVecNum | MkBV (long v, uint size) |
Create a bit-vector numeral. More... | |
BitVecNum | MkBV (ulong v, uint size) |
Create a bit-vector numeral. More... | |
Quantifier | MkForall (Sort[] sorts, Symbol[] names, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create a universal Quantifier. More... | |
Quantifier | MkForall (Expr[] boundConstants, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create a universal Quantifier. More... | |
Quantifier | MkExists (Sort[] sorts, Symbol[] names, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create an existential Quantifier. More... | |
Quantifier | MkExists (Expr[] boundConstants, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create an existential Quantifier. More... | |
Quantifier | MkQuantifier (bool universal, Sort[] sorts, Symbol[] names, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create a Quantifier. More... | |
Quantifier | MkQuantifier (bool universal, Expr[] boundConstants, Expr body, uint weight=1, Pattern[] patterns=null, Expr[] noPatterns=null, Symbol quantifierID=null, Symbol skolemID=null) |
Create a Quantifier. More... | |
string | BenchmarkToSMTString (string name, string logic, string status, string attributes, BoolExpr[] assumptions, BoolExpr formula) |
Convert a benchmark into an SMT-LIB formatted string. More... | |
void | ParseSMTLIBString (string str, Symbol[] sortNames=null, Sort[] sorts=null, Symbol[] declNames=null, FuncDecl[] decls=null) |
Parse the given string using the SMT-LIB parser. More... | |
void | ParseSMTLIBFile (string fileName, Symbol[] sortNames=null, Sort[] sorts=null, Symbol[] declNames=null, FuncDecl[] decls=null) |
Parse the given file using the SMT-LIB parser. More... | |
BoolExpr | ParseSMTLIB2String (string str, Symbol[] sortNames=null, Sort[] sorts=null, Symbol[] declNames=null, FuncDecl[] decls=null) |
Parse the given string using the SMT-LIB2 parser. More... | |
BoolExpr | ParseSMTLIB2File (string fileName, Symbol[] sortNames=null, Sort[] sorts=null, Symbol[] declNames=null, FuncDecl[] decls=null) |
Parse the given file using the SMT-LIB2 parser. More... | |
Goal | MkGoal (bool models=true, bool unsatCores=false, bool proofs=false) |
Creates a new Goal. More... | |
Params | MkParams () |
Creates a new ParameterSet. More... | |
string | TacticDescription (string name) |
Returns a string containing a description of the tactic with the given name. More... | |
Tactic | MkTactic (string name) |
Creates a new Tactic. More... | |
Tactic | AndThen (Tactic t1, Tactic t2, params Tactic[] ts) |
Create a tactic that applies t1 to a Goal and then t2 to every subgoal produced by t1 . More... | |
Tactic | Then (Tactic t1, Tactic t2, params Tactic[] ts) |
Create a tactic that applies t1 to a Goal and then t2 to every subgoal produced by t1 . More... | |
Tactic | OrElse (Tactic t1, Tactic t2) |
Create a tactic that first applies t1 to a Goal and if it fails then returns the result of t2 applied to the Goal. More... | |
Tactic | TryFor (Tactic t, uint ms) |
Create a tactic that applies t to a goal for ms milliseconds. More... | |
Tactic | When (Probe p, Tactic t) |
Create a tactic that applies t to a given goal if the probe p evaluates to true. More... | |
Tactic | Cond (Probe p, Tactic t1, Tactic t2) |
Create a tactic that applies t1 to a given goal if the probe p evaluates to true and t2 otherwise. More... | |
Tactic | Repeat (Tactic t, uint max=uint.MaxValue) |
Create a tactic that keeps applying t until the goal is not modified anymore or the maximum number of iterations max is reached. More... | |
Tactic | Skip () |
Create a tactic that just returns the given goal. More... | |
Tactic | Fail () |
Create a tactic always fails. More... | |
Tactic | FailIf (Probe p) |
Create a tactic that fails if the probe p evaluates to false. More... | |
Tactic | FailIfNotDecided () |
Create a tactic that fails if the goal is not triviall satisfiable (i.e., empty) or trivially unsatisfiable (i.e., contains `false'). More... | |
Tactic | UsingParams (Tactic t, Params p) |
Create a tactic that applies t using the given set of parameters p . More... | |
Tactic | With (Tactic t, Params p) |
Create a tactic that applies t using the given set of parameters p . More... | |
Tactic | ParOr (params Tactic[] t) |
Create a tactic that applies the given tactics in parallel until one of them succeeds (i.e., the first that doesn't fail). More... | |
Tactic | ParAndThen (Tactic t1, Tactic t2) |
Create a tactic that applies t1 to a given goal and then t2 to every subgoal produced by t1 . The subgoals are processed in parallel. More... | |
void | Interrupt () |
Interrupt the execution of a Z3 procedure. More... | |
string | ProbeDescription (string name) |
Returns a string containing a description of the probe with the given name. More... | |
Probe | MkProbe (string name) |
Creates a new Probe. More... | |
Probe | ConstProbe (double val) |
Create a probe that always evaluates to val . More... | |
Probe | Lt (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value returned by p1 is less than the value returned by p2 More... | |
Probe | Gt (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value returned by p1 is greater than the value returned by p2 More... | |
Probe | Le (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value returned by p1 is less than or equal the value returned by p2 More... | |
Probe | Ge (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value returned by p1 is greater than or equal the value returned by p2 More... | |
Probe | Eq (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value returned by p1 is equal to the value returned by p2 More... | |
Probe | And (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value p1 and p2 evaluate to "true". More... | |
Probe | Or (Probe p1, Probe p2) |
Create a probe that evaluates to "true" when the value p1 or p2 evaluate to "true". More... | |
Probe | Not (Probe p) |
Create a probe that evaluates to "true" when the value p does not evaluate to "true". More... | |
Solver | MkSolver (Symbol logic=null) |
Creates a new (incremental) solver. More... | |
Solver | MkSolver (string logic) |
Creates a new (incremental) solver. More... | |
Solver | MkSimpleSolver () |
Creates a new (incremental) solver. More... | |
Solver | MkSolver (Tactic t) |
Creates a solver that is implemented using the given tactic. More... | |
Fixedpoint | MkFixedpoint () |
Create a Fixedpoint context. More... | |
Optimize | MkOptimize () |
Create an Optimization context. More... | |
FPRMSort | MkFPRoundingModeSort () |
Create the floating-point RoundingMode sort. More... | |
FPRMExpr | MkFPRoundNearestTiesToEven () |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode. More... | |
FPRMNum | MkFPRNE () |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode. More... | |
FPRMNum | MkFPRoundNearestTiesToAway () |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode. More... | |
FPRMNum | MkFPRNA () |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode. More... | |
FPRMNum | MkFPRoundTowardPositive () |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode. More... | |
FPRMNum | MkFPRTP () |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode. More... | |
FPRMNum | MkFPRoundTowardNegative () |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode. More... | |
FPRMNum | MkFPRTN () |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode. More... | |
FPRMNum | MkFPRoundTowardZero () |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode. More... | |
FPRMNum | MkFPRTZ () |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode. More... | |
FPSort | MkFPSort (uint ebits, uint sbits) |
Create a FloatingPoint sort. More... | |
FPSort | MkFPSortHalf () |
Create the half-precision (16-bit) FloatingPoint sort. More... | |
FPSort | MkFPSort16 () |
Create the half-precision (16-bit) FloatingPoint sort. More... | |
FPSort | MkFPSortSingle () |
Create the single-precision (32-bit) FloatingPoint sort. More... | |
FPSort | MkFPSort32 () |
Create the single-precision (32-bit) FloatingPoint sort. More... | |
FPSort | MkFPSortDouble () |
Create the double-precision (64-bit) FloatingPoint sort. More... | |
FPSort | MkFPSort64 () |
Create the double-precision (64-bit) FloatingPoint sort. More... | |
FPSort | MkFPSortQuadruple () |
Create the quadruple-precision (128-bit) FloatingPoint sort. More... | |
FPSort | MkFPSort128 () |
Create the quadruple-precision (128-bit) FloatingPoint sort. More... | |
FPNum | MkFPNaN (FPSort s) |
Create a NaN of sort s. More... | |
FPNum | MkFPInf (FPSort s, bool negative) |
Create a floating-point infinity of sort s. More... | |
FPNum | MkFPZero (FPSort s, bool negative) |
Create a floating-point zero of sort s. More... | |
FPNum | MkFPNumeral (float v, FPSort s) |
Create a numeral of FloatingPoint sort from a float. More... | |
FPNum | MkFPNumeral (double v, FPSort s) |
Create a numeral of FloatingPoint sort from a float. More... | |
FPNum | MkFPNumeral (int v, FPSort s) |
Create a numeral of FloatingPoint sort from an int. More... | |
FPNum | MkFPNumeral (bool sgn, uint sig, int exp, FPSort s) |
Create a numeral of FloatingPoint sort from a sign bit and two integers. More... | |
FPNum | MkFPNumeral (bool sgn, Int64 exp, UInt64 sig, FPSort s) |
Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers. More... | |
FPNum | MkFP (float v, FPSort s) |
Create a numeral of FloatingPoint sort from a float. More... | |
FPNum | MkFP (double v, FPSort s) |
Create a numeral of FloatingPoint sort from a float. More... | |
FPNum | MkFP (int v, FPSort s) |
Create a numeral of FloatingPoint sort from an int. More... | |
FPNum | MkFP (bool sgn, int exp, uint sig, FPSort s) |
Create a numeral of FloatingPoint sort from a sign bit and two integers. More... | |
FPNum | MkFP (bool sgn, Int64 exp, UInt64 sig, FPSort s) |
Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers. More... | |
FPExpr | MkFPAbs (FPExpr t) |
Floating-point absolute value More... | |
FPExpr | MkFPNeg (FPExpr t) |
Floating-point negation More... | |
FPExpr | MkFPAdd (FPRMExpr rm, FPExpr t1, FPExpr t2) |
Floating-point addition More... | |
FPExpr | MkFPSub (FPRMExpr rm, FPExpr t1, FPExpr t2) |
Floating-point subtraction More... | |
FPExpr | MkFPMul (FPRMExpr rm, FPExpr t1, FPExpr t2) |
Floating-point multiplication More... | |
FPExpr | MkFPDiv (FPRMExpr rm, FPExpr t1, FPExpr t2) |
Floating-point division More... | |
FPExpr | MkFPFMA (FPRMExpr rm, FPExpr t1, FPExpr t2, FPExpr t3) |
Floating-point fused multiply-add More... | |
FPExpr | MkFPSqrt (FPRMExpr rm, FPExpr t) |
Floating-point square root More... | |
FPExpr | MkFPRem (FPExpr t1, FPExpr t2) |
Floating-point remainder More... | |
FPExpr | MkFPRoundToIntegral (FPRMExpr rm, FPExpr t) |
Floating-point roundToIntegral. Rounds a floating-point number to the closest integer, again represented as a floating-point number. More... | |
FPExpr | MkFPMin (FPExpr t1, FPExpr t2) |
Minimum of floating-point numbers. More... | |
FPExpr | MkFPMax (FPExpr t1, FPExpr t2) |
Maximum of floating-point numbers. More... | |
BoolExpr | MkFPLEq (FPExpr t1, FPExpr t2) |
Floating-point less than or equal. More... | |
BoolExpr | MkFPLt (FPExpr t1, FPExpr t2) |
Floating-point less than. More... | |
BoolExpr | MkFPGEq (FPExpr t1, FPExpr t2) |
Floating-point greater than or equal. More... | |
BoolExpr | MkFPGt (FPExpr t1, FPExpr t2) |
Floating-point greater than. More... | |
BoolExpr | MkFPEq (FPExpr t1, FPExpr t2) |
Floating-point equality. More... | |
BoolExpr | MkFPIsNormal (FPExpr t) |
Predicate indicating whether t is a normal floating-point number. More... | |
BoolExpr | MkFPIsSubnormal (FPExpr t) |
Predicate indicating whether t is a subnormal floating-point number. More... | |
BoolExpr | MkFPIsZero (FPExpr t) |
Predicate indicating whether t is a floating-point number with zero value, i.e., +0 or -0. More... | |
BoolExpr | MkFPIsInfinite (FPExpr t) |
Predicate indicating whether t is a floating-point number representing +oo or -oo. More... | |
BoolExpr | MkFPIsNaN (FPExpr t) |
Predicate indicating whether t is a NaN. More... | |
BoolExpr | MkFPIsNegative (FPExpr t) |
Predicate indicating whether t is a negative floating-point number. More... | |
BoolExpr | MkFPIsPositive (FPExpr t) |
Predicate indicating whether t is a positive floating-point number. More... | |
FPExpr | MkFP (BitVecExpr sgn, BitVecExpr sig, BitVecExpr exp) |
Create an expression of FloatingPoint sort from three bit-vector expressions. More... | |
FPExpr | MkFPToFP (BitVecExpr bv, FPSort s) |
Conversion of a single IEEE 754-2008 bit-vector into a floating-point number. More... | |
FPExpr | MkFPToFP (FPRMExpr rm, FPExpr t, FPSort s) |
Conversion of a FloatingPoint term into another term of different FloatingPoint sort. More... | |
FPExpr | MkFPToFP (FPRMExpr rm, RealExpr t, FPSort s) |
Conversion of a term of real sort into a term of FloatingPoint sort. More... | |
FPExpr | MkFPToFP (FPRMExpr rm, BitVecExpr t, FPSort s, bool signed) |
Conversion of a 2's complement signed bit-vector term into a term of FloatingPoint sort. More... | |
FPExpr | MkFPToFP (FPSort s, FPRMExpr rm, FPExpr t) |
Conversion of a floating-point number to another FloatingPoint sort s. More... | |
BitVecExpr | MkFPToBV (FPRMExpr rm, FPExpr t, uint sz, bool signed) |
Conversion of a floating-point term into a bit-vector. More... | |
RealExpr | MkFPToReal (FPExpr t) |
Conversion of a floating-point term into a real-numbered term. More... | |
BitVecExpr | MkFPToIEEEBV (FPExpr t) |
Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format. More... | |
BitVecExpr | MkFPToFP (FPRMExpr rm, IntExpr exp, RealExpr sig, FPSort s) |
Conversion of a real-sorted significand and an integer-sorted exponent into a term of FloatingPoint sort. More... | |
AST | WrapAST (IntPtr nativeObject) |
Wraps an AST. More... | |
IntPtr | UnwrapAST (AST a) |
Unwraps an AST. More... | |
string | SimplifyHelp () |
Return a string describing all available parameters to Expr.Simplify . More... | |
void | UpdateParamValue (string id, string value) |
Update a mutable configuration parameter. More... | |
void | Dispose () |
Disposes of the context. More... | |
Properties | |
BoolSort | BoolSort [get] |
Retrieves the Boolean sort of the context. More... | |
IntSort | IntSort [get] |
Retrieves the Integer sort of the context. More... | |
RealSort | RealSort [get] |
Retrieves the Real sort of the context. More... | |
SeqSort | StringSort [get] |
Retrieves the String sort of the context. More... | |
Z3_ast_print_mode | PrintMode [set] |
Selects the format used for pretty-printing expressions. More... | |
uint | NumSMTLIBFormulas [get] |
The number of SMTLIB formulas parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
BoolExpr [] | SMTLIBFormulas [get] |
The formulas parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
uint | NumSMTLIBAssumptions [get] |
The number of SMTLIB assumptions parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
BoolExpr [] | SMTLIBAssumptions [get] |
The assumptions parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
uint | NumSMTLIBDecls [get] |
The number of SMTLIB declarations parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
FuncDecl [] | SMTLIBDecls [get] |
The declarations parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
uint | NumSMTLIBSorts [get] |
The number of SMTLIB sorts parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
Sort [] | SMTLIBSorts [get] |
The declarations parsed by the last call to ParseSMTLIBString or ParseSMTLIBFile . More... | |
uint | NumTactics [get] |
The number of supported tactics. More... | |
string [] | TacticNames [get] |
The names of all supported tactics. More... | |
uint | NumProbes [get] |
The number of supported Probes. More... | |
string [] | ProbeNames [get] |
The names of all supported Probes. More... | |
ParamDescrs | SimplifyParameterDescriptions [get] |
Retrieves parameter descriptions for simplifier. More... | |
IDecRefQueue | AST_DRQ [get] |
AST DRQ More... | |
IDecRefQueue | ASTMap_DRQ [get] |
ASTMap DRQ More... | |
IDecRefQueue | ASTVector_DRQ [get] |
ASTVector DRQ More... | |
IDecRefQueue | ApplyResult_DRQ [get] |
ApplyResult DRQ More... | |
IDecRefQueue | FuncEntry_DRQ [get] |
FuncEntry DRQ More... | |
IDecRefQueue | FuncInterp_DRQ [get] |
FuncInterp DRQ More... | |
IDecRefQueue | Goal_DRQ [get] |
Goal DRQ More... | |
IDecRefQueue | Model_DRQ [get] |
Model DRQ More... | |
IDecRefQueue | Params_DRQ [get] |
Params DRQ More... | |
IDecRefQueue | ParamDescrs_DRQ [get] |
ParamDescrs DRQ More... | |
IDecRefQueue | Probe_DRQ [get] |
Probe DRQ More... | |
IDecRefQueue | Solver_DRQ [get] |
Solver DRQ More... | |
IDecRefQueue | Statistics_DRQ [get] |
Statistics DRQ More... | |
IDecRefQueue | Tactic_DRQ [get] |
Tactic DRQ More... | |
IDecRefQueue | Fixedpoint_DRQ [get] |
FixedPoint DRQ More... | |
IDecRefQueue | Optimize_DRQ [get] |
Optimize DRQ More... | |
The main interaction with Z3 happens via the Context.
Definition at line 32 of file Context.cs.
|
inline |
Definition at line 38 of file Context.cs.
|
inline |
The following parameters can be set:
Definition at line 66 of file Context.cs.
Create a probe that evaluates to "true" when the value p1 and p2 evaluate to "true".
Definition at line 3759 of file Context.cs.
Create a tactic that applies t1 to a Goal and then t2 to every subgoal produced by t1 .
Definition at line 3394 of file Context.cs.
|
inline |
Convert a benchmark into an SMT-LIB formatted string.
name | Name of the benchmark. The argument is optional. |
logic | The benchmark logic. |
status | The status string (sat, unsat, or unknown) |
attributes | Other attributes, such as source, difficulty or category. |
assumptions | Auxiliary assumptions. |
formula | Formula to be checked for consistency in conjunction with assumptions. |
Definition at line 3133 of file Context.cs.
Create a tactic that applies t1 to a given goal if the probe p evaluates to true and t2 otherwise.
Definition at line 3491 of file Context.cs.
|
inline |
Create a probe that always evaluates to val .
Definition at line 3673 of file Context.cs.
|
inline |
Disposes of the context.
Definition at line 4985 of file Context.cs.
Create a probe that evaluates to "true" when the value returned by p1 is equal to the value returned by p2
Definition at line 3744 of file Context.cs.
|
inline |
Create a tactic always fails.
Definition at line 3530 of file Context.cs.
Create a tactic that fails if the probe p evaluates to false.
Definition at line 3540 of file Context.cs.
|
inline |
Create a tactic that fails if the goal is not triviall satisfiable (i.e., empty) or trivially unsatisfiable (i.e., contains `false').
Definition at line 3553 of file Context.cs.
Create a probe that evaluates to "true" when the value returned by p1 is greater than or equal the value returned by p2
Definition at line 3729 of file Context.cs.
Create a probe that evaluates to "true" when the value returned by p1 is greater than the value returned by p2
Definition at line 3699 of file Context.cs.
|
inline |
Interrupt the execution of a Z3 procedure.
This procedure can be used to interrupt: solvers, simplifiers and tactics.
Definition at line 3618 of file Context.cs.
Create a probe that evaluates to "true" when the value returned by p1 is less than or equal the value returned by p2
Definition at line 3714 of file Context.cs.
Create a probe that evaluates to "true" when the value returned by p1 is less than the value returned by p2
Definition at line 3684 of file Context.cs.
Create an expression representing t[0] + t[1] + ...
.
Definition at line 1022 of file Context.cs.
Referenced by ArithExpr.operator+().
Create an expression representing t[0] + t[1] + ...
.
Definition at line 1035 of file Context.cs.
Create an expression representing t[0] and t[1] and ...
.
Definition at line 967 of file Context.cs.
Referenced by Goal.AsBoolExpr(), and BoolExpr.operator&().
Create an expression representing t[0] and t[1] and ...
.
Definition at line 980 of file Context.cs.
Create a new function application.
Definition at line 807 of file Context.cs.
Referenced by EnumSort.Const().
Create a new function application.
Definition at line 821 of file Context.cs.
Create an array constant.
Definition at line 2094 of file Context.cs.
Create an array constant.
Definition at line 2107 of file Context.cs.
Create Extentionality index. Two arrays are equal if and only if they are equal on the index returned by MkArrayExt.
Definition at line 2231 of file Context.cs.
Retrieve sequence of length one at index.
Definition at line 2486 of file Context.cs.
Create an at-most-k constraint.
Definition at line 2620 of file Context.cs.
|
inline |
|
inline |
Create a Boolean constant.
Definition at line 720 of file Context.cs.
|
inline |
Create a Boolean constant.
Definition at line 731 of file Context.cs.
|
inline |
Create a new Boolean sort.
Definition at line 185 of file Context.cs.
Creates a new bound variable.
index | The de-Bruijn index of the variable |
ty | The sort of the variable |
Definition at line 637 of file Context.cs.
|
inline |
Create a bit-vector numeral.
v | A string representing the value in decimal notation. |
size | the size of the bit-vector |
Definition at line 2890 of file Context.cs.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. |
size | the size of the bit-vector |
Definition at line 2902 of file Context.cs.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. |
size | the size of the bit-vector |
Definition at line 2914 of file Context.cs.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. |
size | the size of the bit-vector |
Definition at line 2926 of file Context.cs.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. |
size | the size of the bit-vector |
Definition at line 2938 of file Context.cs.
|
inline |
Create an integer from the bit-vector argument t .
If is_signed
is false, then the bit-vector t1
is treated as unsigned. So the result is non-negative and in the range [0..2^N-1]
, where N are the number of bits in t . If is_signed
is true, t1
is treated as a signed bit-vector.
NB. This function is essentially treated as uninterpreted. So you cannot expect Z3 to precisely reflect the semantics of this function when solving constraints with this function.
The argument must be of bit-vector sort.
Definition at line 1946 of file Context.cs.
|
inline |
Two's complement addition.
The arguments must have the same bit-vector sort.
Definition at line 1405 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise addition does not overflow.
The arguments must be of bit-vector sort.
Definition at line 1961 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise addition does not underflow.
The arguments must be of bit-vector sort.
Definition at line 1978 of file Context.cs.
|
inline |
Bitwise conjunction.
The arguments must have a bit-vector sort.
Definition at line 1302 of file Context.cs.
|
inline |
Arithmetic shift right
It is like logical shift right except that the most significant bits of the result always copy the most significant bit of the second argument.
NB. The semantics of shift operations varies between environments. This definition does not necessarily capture directly the semantics of the programming language or assembly architecture you are modeling.
The arguments must have a bit-vector sort.
Definition at line 1833 of file Context.cs.
|
inline |
Creates a bit-vector constant.
Definition at line 784 of file Context.cs.
|
inline |
Creates a bit-vector constant.
Definition at line 795 of file Context.cs.
|
inline |
Logical shift right
It is equivalent to unsigned division by 2^x
where x
is the value of t2 .
NB. The semantics of shift operations varies between environments. This definition does not necessarily capture directly the semantics of the programming language or assembly architecture you are modeling.
The arguments must have a bit-vector sort.
Definition at line 1808 of file Context.cs.
|
inline |
Two's complement multiplication.
The arguments must have the same bit-vector sort.
Definition at line 1435 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise multiplication does not overflow.
The arguments must be of bit-vector sort.
Definition at line 2061 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise multiplication does not underflow.
The arguments must be of bit-vector sort.
Definition at line 2078 of file Context.cs.
|
inline |
Bitwise NAND.
The arguments must have a bit-vector sort.
Definition at line 1347 of file Context.cs.
|
inline |
Standard two's complement unary minus.
The arguments must have a bit-vector sort.
Definition at line 1392 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise negation does not overflow.
The arguments must be of bit-vector sort.
Definition at line 2046 of file Context.cs.
|
inline |
|
inline |
Bitwise negation.
The argument must have a bit-vector sort.
Definition at line 1263 of file Context.cs.
|
inline |
Bitwise disjunction.
The arguments must have a bit-vector sort.
Definition at line 1317 of file Context.cs.
|
inline |
Take conjunction of bits in a vector, return vector of length 1.
The argument must have a bit-vector sort.
Definition at line 1276 of file Context.cs.
|
inline |
Take disjunction of bits in a vector, return vector of length 1.
The argument must have a bit-vector sort.
Definition at line 1289 of file Context.cs.
|
inline |
Rotate Left.
Rotate bits of t
to the left i
times. The argument t must have a bit-vector sort.
Definition at line 1851 of file Context.cs.
|
inline |
Rotate Left.
Rotate bits of t1 to the left t2 times. The arguments must have the same bit-vector sort.
Definition at line 1883 of file Context.cs.
|
inline |
Rotate Right.
Rotate bits of t
to the right i
times. The argument t must have a bit-vector sort.
Definition at line 1867 of file Context.cs.
|
inline |
Rotate Right.
Rotate bits of t1 to the rightt2 times. The arguments must have the same bit-vector sort.
Definition at line 1901 of file Context.cs.
|
inline |
Signed division.
It is defined in the following way:
floor
of t1/t2
if t2
is different from zero, and t1*t2 >= 0
.ceiling
of t1/t2
if t2
is different from zero, and t1*t2 < 0
.If t2
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1479 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise signed division does not overflow.
The arguments must be of bit-vector sort.
Definition at line 2029 of file Context.cs.
|
inline |
Two's complement signed greater than or equal to.
The arguments must have the same bit-vector sort.
Definition at line 1639 of file Context.cs.
|
inline |
Two's complement signed greater-than.
The arguments must have the same bit-vector sort.
Definition at line 1673 of file Context.cs.
|
inline |
Shift left.
It is equivalent to multiplication by 2^x
where x
is the value of t2 .
NB. The semantics of shift operations varies between environments. This definition does not necessarily capture directly the semantics of the programming language or assembly architecture you are modeling.
The arguments must have a bit-vector sort.
Definition at line 1785 of file Context.cs.
|
inline |
Two's complement signed less-than or equal to.
The arguments must have the same bit-vector sort.
Definition at line 1605 of file Context.cs.
|
inline |
Two's complement signed less-than
The arguments must have the same bit-vector sort.
Definition at line 1571 of file Context.cs.
|
inline |
Two's complement signed remainder (sign follows divisor).
If t2
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1537 of file Context.cs.
|
inline |
Signed remainder.
It is defined as t1 - (t1 /s t2) * t2
, where /s
represents signed division. The most significant bit (sign) of the result is equal to the most significant bit of t1
.
If t2
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1519 of file Context.cs.
|
inline |
Two's complement subtraction.
The arguments must have the same bit-vector sort.
Definition at line 1420 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise subtraction does not overflow.
The arguments must be of bit-vector sort.
Definition at line 1995 of file Context.cs.
|
inline |
Create a predicate that checks that the bit-wise subtraction does not underflow.
The arguments must be of bit-vector sort.
Definition at line 2012 of file Context.cs.
|
inline |
Unsigned division.
It is defined as the floor of t1/t2
if t2
is different from zero. If t2
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1455 of file Context.cs.
|
inline |
Unsigned greater than or equal to.
The arguments must have the same bit-vector sort.
Definition at line 1622 of file Context.cs.
|
inline |
Unsigned greater-than.
The arguments must have the same bit-vector sort.
Definition at line 1656 of file Context.cs.
|
inline |
Unsigned less-than or equal to.
The arguments must have the same bit-vector sort.
Definition at line 1588 of file Context.cs.
|
inline |
Unsigned less-than
The arguments must have the same bit-vector sort.
Definition at line 1554 of file Context.cs.
|
inline |
Unsigned remainder.
It is defined as t1 - (t1 /u t2) * t2
, where /u
represents unsigned division. If t2
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1498 of file Context.cs.
|
inline |
Bitwise XNOR.
The arguments must have a bit-vector sort.
Definition at line 1377 of file Context.cs.
|
inline |
|
inline |
Bit-vector concatenation.
The arguments must have a bit-vector sort.
n1+n2
, where n1
(n2
) is the size of t1
(t2
). Definition at line 1694 of file Context.cs.
Creates a new Constant of sort range and named name .
Definition at line 684 of file Context.cs.
Creates a fresh constant from the FuncDecl f .
f | A decl of a 0-arity function |
Definition at line 709 of file Context.cs.
Create a constant array.
The resulting term is an array, such that a select
on an arbitrary index produces the value v
.
Definition at line 2179 of file Context.cs.
Creates a new constant function declaration.
Definition at line 593 of file Context.cs.
Creates a new constant function declaration.
Definition at line 607 of file Context.cs.
|
inline |
Create a datatype constructor.
name | constructor name |
recognizer | name of recognizer function. |
fieldNames | names of the constructor fields. |
sorts | field sorts, 0 if the field sort refers to a recursive sort. |
sortRefs | reference to datatype sort that is an argument to the constructor; if the corresponding sort reference is 0, then the value in sort_refs should be an index referring to one of the recursive datatypes that is declared. |
Definition at line 389 of file Context.cs.
|
inline |
Create a datatype constructor.
name | |
recognizer | |
fieldNames | |
sorts | |
sortRefs |
Definition at line 407 of file Context.cs.
Check for sequence containment of s2 in s1.
Definition at line 2474 of file Context.cs.
|
inline |
|
inline |
Create a new datatype sort.
Definition at line 433 of file Context.cs.
|
inline |
Create mutually recursive datatypes.
names | names of datatype sorts |
c | list of constructors, one list per sort. |
Definition at line 448 of file Context.cs.
|
inline |
Create mutually recursive data-types.
names | |
c |
Definition at line 483 of file Context.cs.
Creates a distinct
term.
Definition at line 880 of file Context.cs.
Create an expression representing t1 / t2
.
Definition at line 1099 of file Context.cs.
Referenced by ArithExpr.operator/().
Create the empty sequence.
Definition at line 2396 of file Context.cs.
Create an empty set.
Definition at line 2260 of file Context.cs.
|
inline |
Create a new enumeration sort.
Definition at line 313 of file Context.cs.
Creates the equality x = y .
Definition at line 866 of file Context.cs.
|
inline |
Create an existential Quantifier.
Creates an existential quantifier using de-Brujin indexed variables. (MkForall(Sort[], Symbol[], Expr, uint, Pattern[], Expr[], Symbol, Symbol)).
Definition at line 3017 of file Context.cs.
|
inline |
Create an existential Quantifier.
Creates an existential quantifier using a list of constants that will form the set of bound variables.
Definition at line 3040 of file Context.cs.
|
inline |
Bit-vector extraction.
Extract the bits high down to low from a bitvector of size m
to yield a new bitvector of size n
, where n = high - low + 1
. The argument t must have a bit-vector sort.
Definition at line 1714 of file Context.cs.
Extract subsequence.
Definition at line 2498 of file Context.cs.
|
inline |
The false Term.
Definition at line 846 of file Context.cs.
|
inline |
Create a new finite domain sort.
name | The name used to identify the sort |
size | The size of the sort |
Definition at line 353 of file Context.cs.
|
inline |
Create a new finite domain sort.
Elements of the sort are created using
, and the elements range from 0 to size-1
.
name | The name used to identify the sort |
size | The size of the sort |
Definition at line 370 of file Context.cs.
|
inline |
Create a Fixedpoint context.
Definition at line 3859 of file Context.cs.
|
inline |
Create a universal Quantifier.
Creates a forall formula, where weight is the weight, patterns is an array of patterns, sorts is an array with the sorts of the bound variables, names is an array with the 'names' of the bound variables, and body is the body of the quantifier. Quantifiers are associated with weights indicating the importance of using the quantifier during instantiation. Note that the bound variables are de-Bruijn indices created using MkBound. Z3 applies the convention that the last element in names and sorts refers to the variable with index 0, the second to last element of names and sorts refers to the variable with index 1, etc.
sorts | the sorts of the bound variables. |
names | names of the bound variables |
body | the body of the quantifier. |
weight | quantifiers are associated with weights indicating the importance of using the quantifier during instantiation. By default, pass the weight 0. |
patterns | array containing the patterns created using MkPattern . |
noPatterns | array containing the anti-patterns created using MkPattern . |
quantifierID | optional symbol to track quantifier. |
skolemID | optional symbol to track skolem constants. |
Definition at line 2973 of file Context.cs.
|
inline |
Create a universal Quantifier.
Creates a universal quantifier using a list of constants that will form the set of bound variables.
Definition at line 2998 of file Context.cs.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4168 of file Context.cs.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4179 of file Context.cs.
Create a numeral of FloatingPoint sort from an int.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4190 of file Context.cs.
Create a numeral of FloatingPoint sort from a sign bit and two integers.
sgn | the sign. |
exp | the exponent. |
sig | the significand. |
s | FloatingPoint sort. |
Definition at line 4203 of file Context.cs.
Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers.
sgn | the sign. |
exp | the exponent. |
sig | the significand. |
s | FloatingPoint sort. |
Definition at line 4216 of file Context.cs.
|
inline |
Create an expression of FloatingPoint sort from three bit-vector expressions.
This is the operator named `fp' in the SMT FP theory definition. Note that sgn is required to be a bit-vector of size 1. Significand and exponent are required to be greater than 1 and 2 respectively. The FloatingPoint sort of the resulting expression is automatically determined from the bit-vector sizes of the arguments.
sgn | bit-vector term (of size 1) representing the sign. |
sig | bit-vector term representing the significand. |
exp | bit-vector term representing the exponent. |
Definition at line 4508 of file Context.cs.
Floating-point absolute value
t | floating-point term |
Definition at line 4229 of file Context.cs.
Floating-point addition
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4251 of file Context.cs.
Floating-point division
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4287 of file Context.cs.
Floating-point equality.
Note that this is IEEE 754 equality (as opposed to standard =).
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4417 of file Context.cs.
Floating-point fused multiply-add
The result is round((t1 * t2) + t3)
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
t3 | floating-point term |
Definition at line 4303 of file Context.cs.
Floating-point greater than or equal.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4392 of file Context.cs.
Floating-point greater than.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4403 of file Context.cs.
Create a floating-point infinity of sort s.
s | FloatingPoint sort. |
negative | indicates whether the result should be negative. |
Definition at line 4087 of file Context.cs.
Predicate indicating whether t is a floating-point number representing +oo or -oo.
t | floating-point term |
Definition at line 4457 of file Context.cs.
Predicate indicating whether t is a NaN.
t | floating-point term |
Definition at line 4467 of file Context.cs.
Predicate indicating whether t is a negative floating-point number.
t | floating-point term |
Definition at line 4477 of file Context.cs.
Predicate indicating whether t is a normal floating-point number.
t | floating-point term |
Definition at line 4427 of file Context.cs.
Predicate indicating whether t is a positive floating-point number.
t | floating-point term |
Definition at line 4487 of file Context.cs.
Predicate indicating whether t is a subnormal floating-point number.
t | floating-point term |
Definition at line 4437 of file Context.cs.
Predicate indicating whether t is a floating-point number with zero value, i.e., +0 or -0.
t | floating-point term |
Definition at line 4447 of file Context.cs.
Floating-point less than or equal.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4370 of file Context.cs.
Floating-point less than.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4381 of file Context.cs.
Maximum of floating-point numbers.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4359 of file Context.cs.
Minimum of floating-point numbers.
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4348 of file Context.cs.
Floating-point multiplication
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4275 of file Context.cs.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4109 of file Context.cs.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4120 of file Context.cs.
Create a numeral of FloatingPoint sort from an int.
v | numeral value. |
s | FloatingPoint sort. |
Definition at line 4131 of file Context.cs.
Create a numeral of FloatingPoint sort from a sign bit and two integers.
sgn | the sign. |
sig | the significand. |
exp | the exponent. |
s | FloatingPoint sort. |
Definition at line 4144 of file Context.cs.
Create a numeral of FloatingPoint sort from a sign bit and two 64-bit integers.
sgn | the sign. |
sig | the significand. |
exp | the exponent. |
s | FloatingPoint sort. |
Definition at line 4157 of file Context.cs.
Floating-point remainder
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4325 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode.
Definition at line 3924 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode.
Definition at line 3906 of file Context.cs.
|
inline |
Create the floating-point RoundingMode sort.
Definition at line 3886 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode.
Definition at line 3915 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode.
Definition at line 3897 of file Context.cs.
Floating-point roundToIntegral. Rounds a floating-point number to the closest integer, again represented as a floating-point number.
rm | term of RoundingMode sort |
t | floating-point term |
Definition at line 4337 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode.
Definition at line 3951 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode.
Definition at line 3933 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode.
Definition at line 3969 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode.
Definition at line 3960 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode.
Definition at line 3942 of file Context.cs.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode.
Definition at line 3978 of file Context.cs.
|
inline |
Create a FloatingPoint sort.
ebits | exponent bits in the FloatingPoint sort. |
sbits | significand bits in the FloatingPoint sort. |
Definition at line 3992 of file Context.cs.
|
inline |
Create the quadruple-precision (128-bit) FloatingPoint sort.
Definition at line 4064 of file Context.cs.
|
inline |
|
inline |
Create the single-precision (32-bit) FloatingPoint sort.
Definition at line 4028 of file Context.cs.
|
inline |
Create the double-precision (64-bit) FloatingPoint sort.
Definition at line 4046 of file Context.cs.
|
inline |
Create the double-precision (64-bit) FloatingPoint sort.
Definition at line 4037 of file Context.cs.
|
inline |
|
inline |
Create the quadruple-precision (128-bit) FloatingPoint sort.
Definition at line 4055 of file Context.cs.
|
inline |
Create the single-precision (32-bit) FloatingPoint sort.
Definition at line 4019 of file Context.cs.
Floating-point square root
rm | rounding mode term |
t | floating-point term |
Definition at line 4314 of file Context.cs.
Floating-point subtraction
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Definition at line 4263 of file Context.cs.
|
inline |
Conversion of a floating-point term into a bit-vector.
Produces a term that represents the conversion of the floating-poiunt term t into a bit-vector term of size sz in 2's complement format (signed when signed==true). If necessary, the result will be rounded according to rounding mode rm.
rm | RoundingMode term. |
t | FloatingPoint term |
sz | Size of the resulting bit-vector. |
signed | Indicates whether the result is a signed or unsigned bit-vector. |
Definition at line 4617 of file Context.cs.
|
inline |
Conversion of a single IEEE 754-2008 bit-vector into a floating-point number.
Produces a term that represents the conversion of a bit-vector term bv to a floating-point term of sort s. The bit-vector size of bv (m) must be equal to ebits+sbits of s. The format of the bit-vector is as defined by the IEEE 754-2008 interchange format.
bv | bit-vector value (of size m). |
s | FloatingPoint sort (ebits+sbits == m) |
Definition at line 4525 of file Context.cs.
Conversion of a FloatingPoint term into another term of different FloatingPoint sort.
Produces a term that represents the conversion of a floating-point term t to a floating-point term of sort s. If necessary, the result will be rounded according to rounding mode rm.
rm | RoundingMode term. |
t | FloatingPoint term. |
s | FloatingPoint sort. |
Definition at line 4542 of file Context.cs.
Conversion of a term of real sort into a term of FloatingPoint sort.
Produces a term that represents the conversion of term t of real sort into a floating-point term of sort s. If necessary, the result will be rounded according to rounding mode rm.
rm | RoundingMode term. |
t | term of Real sort. |
s | FloatingPoint sort. |
Definition at line 4559 of file Context.cs.
|
inline |
Conversion of a 2's complement signed bit-vector term into a term of FloatingPoint sort.
Produces a term that represents the conversion of the bit-vector term t into a floating-point term of sort s. The bit-vector t is taken to be in signed 2's complement format (when signed==true, otherwise unsigned). If necessary, the result will be rounded according to rounding mode rm.
rm | RoundingMode term. |
t | term of bit-vector sort. |
s | FloatingPoint sort. |
signed | flag indicating whether t is interpreted as signed or unsigned bit-vector. |
Definition at line 4578 of file Context.cs.
Conversion of a floating-point number to another FloatingPoint sort s.
Produces a term that represents the conversion of a floating-point term t to a different FloatingPoint sort s. If necessary, rounding according to rm is applied.
s | FloatingPoint sort |
rm | floating-point rounding mode term |
t | floating-point term |
Definition at line 4597 of file Context.cs.
|
inline |
Conversion of a real-sorted significand and an integer-sorted exponent into a term of FloatingPoint sort.
Produces a term that represents the conversion of sig * 2^exp into a floating-point term of sort s. If necessary, the result will be rounded according to rounding mode rm.
rm | RoundingMode term. |
exp | Exponent term of Int sort. |
sig | Significand term of Real sort. |
s | FloatingPoint sort. |
Definition at line 4671 of file Context.cs.
|
inline |
Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format.
The size of the resulting bit-vector is automatically determined. Note that IEEE 754-2008 allows multiple different representations of NaN. This conversion knows only one NaN and it will always produce the same bit-vector represenatation of that NaN.
t | FloatingPoint term. |
Definition at line 4653 of file Context.cs.
Conversion of a floating-point term into a real-numbered term.
Produces a term that represents the conversion of the floating-poiunt term t into a real number. Note that this type of conversion will often result in non-linear constraints over real terms.
t | FloatingPoint term |
Definition at line 4635 of file Context.cs.
Create a floating-point zero of sort s.
s | FloatingPoint sort. |
negative | indicates whether the result should be negative. |
Definition at line 4098 of file Context.cs.
Creates a fresh Constant of sort range and a name prefixed with prefix .
Definition at line 696 of file Context.cs.
Creates a fresh constant function declaration with a name prefixed with prefix .
Definition at line 621 of file Context.cs.
Creates a fresh function declaration with a name prefixed with prefix .
Definition at line 579 of file Context.cs.
Create the full set.
Definition at line 2272 of file Context.cs.
Creates a new function declaration.
Definition at line 548 of file Context.cs.
Creates a new function declaration.
Definition at line 562 of file Context.cs.
Create an expression representing t1 >= t2
Definition at line 1199 of file Context.cs.
Referenced by ArithExpr.operator>=().
|
inline |
Creates a new Goal.
Note that the Context must have been created with proof generation support if proofs is set to true here.
models | Indicates whether model generation should be enabled. |
unsatCores | Indicates whether unsat core generation should be enabled. |
proofs | Indicates whether proof generation should be enabled. |
Definition at line 3324 of file Context.cs.
Create an expression representing t1 > t2
Definition at line 1185 of file Context.cs.
Referenced by ArithExpr.operator>().
Create an expression representing t1 iff t2
.
Definition at line 925 of file Context.cs.
Create an expression representing t1 -> t2
.
Definition at line 939 of file Context.cs.
Extract index of sub-string starting at offset.
Definition at line 2511 of file Context.cs.
Check for regular expression membership.
Definition at line 2548 of file Context.cs.
|
inline |
Create an integer numeral.
v | A string representing the Term value in decimal notation. |
Definition at line 2828 of file Context.cs.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2840 of file Context.cs.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2852 of file Context.cs.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2864 of file Context.cs.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2876 of file Context.cs.
|
inline |
Create an n bit bit-vector from the integer argument t .
NB. This function is essentially treated as uninterpreted. So you cannot expect Z3 to precisely reflect the semantics of this function when solving constraints with this function.
The argument must be of integer sort.
Definition at line 1922 of file Context.cs.
Coerce an integer to a real.
There is also a converse operation exposed. It follows the semantics prescribed by the SMT-LIB standard.
You can take the floor of a real by creating an auxiliary integer Term k
and and asserting MakeInt2Real(k) <= t1 < MkInt2Real(k)+1
. The argument must be of integer sort.
Definition at line 1220 of file Context.cs.
Creates an integer constant.
Definition at line 741 of file Context.cs.
|
inline |
Creates an integer constant.
Definition at line 752 of file Context.cs.
|
inline |
Create a new integer sort.
Definition at line 216 of file Context.cs.
Creates an expression that checks whether a real number is an integer.
Definition at line 1248 of file Context.cs.
Create an expression representing an if-then-else: ite(t1, t2, t3)
.
t1 | An expression with Boolean sort |
t2 | An expression |
t3 | An expression with the same sort as t2 |
Definition at line 909 of file Context.cs.
Create an expression representing t1 <= t2
Definition at line 1171 of file Context.cs.
Referenced by ArithExpr.operator<=().
Retrieve the length of a given sequence.
Definition at line 2440 of file Context.cs.
Create a new list sort.
Definition at line 324 of file Context.cs.
Create a new list sort.
Definition at line 338 of file Context.cs.
Create an expression representing t1 < t2
Definition at line 1157 of file Context.cs.
Referenced by ArithExpr.operator<().
Maps f on the argument arrays.
Eeach element of args
must be of an array sort [domain_i -> range_i]
. The function declaration f
must have type range_1 .. range_n -> range
. v
must have sort range. The sort of the result is [domain_i -> range]
.
Definition at line 2201 of file Context.cs.
Create an expression representing t1 mod t2
.
The arguments must have int type.
Definition at line 1114 of file Context.cs.
Create an expression representing t[0] * t[1] * ...
.
Definition at line 1048 of file Context.cs.
Referenced by ArithExpr.operator*().
Create an expression representing t[0] * t[1] * ...
.
Definition at line 1061 of file Context.cs.
Mk an expression representing not(a)
.
Definition at line 894 of file Context.cs.
Referenced by BoolExpr.operator!().
Create a Term of a given sort.
v | A string representing the Term value in decimal notation. If the given sort is a real, then the Term can be a rational, that is, a string of the form [num]* / [num]* . |
ty | The sort of the numeral. In the current implementation, the given sort can be an int, real, or bit-vectors of arbitrary size. |
Definition at line 2669 of file Context.cs.
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral
since it is not necessary to parse a string.
v | Value of the numeral |
ty | Sort of the numeral |
Definition at line 2685 of file Context.cs.
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral
since it is not necessary to parse a string.
v | Value of the numeral |
ty | Sort of the numeral |
Definition at line 2701 of file Context.cs.
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral
since it is not necessary to parse a string.
v | Value of the numeral |
ty | Sort of the numeral |
Definition at line 2717 of file Context.cs.
Create a Term of a given sort. This function can be use to create numerals that fit in a machine integer. It is slightly faster than MakeNumeral
since it is not necessary to parse a string.
v | Value of the numeral |
ty | Sort of the numeral |
Definition at line 2733 of file Context.cs.
|
inline |
Create an Optimization context.
Definition at line 3871 of file Context.cs.
Create an expression representing t[0] or t[1] or ...
.
Definition at line 992 of file Context.cs.
Create an expression representing t[0] or t[1] or ...
.
Definition at line 1006 of file Context.cs.
|
inline |
Creates a new ParameterSet.
Definition at line 3336 of file Context.cs.
Create an expression representing t1 ^ t2
.
Definition at line 1143 of file Context.cs.
Check for sequence prefix.
Definition at line 2450 of file Context.cs.
|
inline |
Creates a new Probe.
Definition at line 3663 of file Context.cs.
|
inline |
Create a Quantifier.
MkForall(Sort[], Symbol[], Expr, uint, Pattern[], Expr[], Symbol, Symbol)
Definition at line 3056 of file Context.cs.
|
inline |
Create a Quantifier.
MkForall(Sort[], Symbol[], Expr, uint, Pattern[], Expr[], Symbol, Symbol)
Definition at line 3080 of file Context.cs.
|
inline |
Create a real from a fraction.
num | numerator of rational. |
den | denominator of rational. |
Definition at line 2751 of file Context.cs.
|
inline |
Create a real numeral.
v | A string representing the Term value in decimal notation. |
Definition at line 2767 of file Context.cs.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2779 of file Context.cs.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2791 of file Context.cs.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2803 of file Context.cs.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2815 of file Context.cs.
Coerce a real to an integer.
The semantics of this function follows the SMT-LIB standard for the function to_int. The argument must be of real sort.
Definition at line 1236 of file Context.cs.
Creates a real constant.
Definition at line 763 of file Context.cs.
|
inline |
Creates a real constant.
Definition at line 774 of file Context.cs.
|
inline |
Create a real sort.
Definition at line 226 of file Context.cs.
Create an expression representing t1 rem t2
.
The arguments must have int type.
Definition at line 1129 of file Context.cs.
|
inline |
Bit-vector repetition.
The argument t must have a bit-vector sort.
Definition at line 1764 of file Context.cs.
Replace the first occurrence of src by dst in s.
Definition at line 2524 of file Context.cs.
Array read.
The argument a
is the array and i
is the index of the array that gets read.
The node a
must have an array sort [domain -> range]
, and i
must have the sort domain
. The sort of the result is range
.
Definition at line 2129 of file Context.cs.
Add an element to the set.
Definition at line 2284 of file Context.cs.
Take the complement of a set.
Definition at line 2352 of file Context.cs.
Remove an element from a set.
Definition at line 2299 of file Context.cs.
Take the difference between two sets.
Definition at line 2338 of file Context.cs.
Take the intersection of a list of sets.
Definition at line 2325 of file Context.cs.
Check for set membership.
Definition at line 2364 of file Context.cs.
Create a set type.
Definition at line 2248 of file Context.cs.
Check for subsetness of sets.
Definition at line 2378 of file Context.cs.
Take the union of a list of sets.
Definition at line 2313 of file Context.cs.
|
inline |
Bit-vector sign extension.
Sign-extends the given bit-vector to the (signed) equivalent bitvector of size m+i
, where m
is the size of the given bit-vector. The argument t must have a bit-vector sort.
Definition at line 1731 of file Context.cs.
|
inline |
Creates a new (incremental) solver.
Definition at line 3832 of file Context.cs.
Creates a new (incremental) solver.
This solver also uses a set of builtin tactics for handling the first check-sat command, and check-sat commands that take more than a given number of milliseconds to be solved.
Definition at line 3808 of file Context.cs.
|
inline |
Creates a new (incremental) solver.
Definition at line 3822 of file Context.cs.
Creates a solver that is implemented using the given tactic.
The solver supports the commands Push
and Pop
, but it will always solve each check from scratch.
Definition at line 3846 of file Context.cs.
Take the Kleene star of a regular expression.
Definition at line 2560 of file Context.cs.
Array update.
The node a
must have an array sort [domain -> range]
, i
must have sort domain
, v
must have sort range. The sort of the result is [domain -> range]
. The semantics of this function is given by the theory of arrays described in the SMT-LIB standard. See http://smtlib.org for more details. The result of this function is an array that is equal to a
(with respect to select
) on all indices except for i
, where it maps to v
(and the select
of a
with respect to i
may be a different value).
Definition at line 2157 of file Context.cs.
|
inline |
Create a string constant.
Definition at line 2416 of file Context.cs.
Create an expression representing t[0] - t[1] - ...
.
Definition at line 1074 of file Context.cs.
Referenced by ArithExpr.operator-().
Check for sequence suffix.
Definition at line 2462 of file Context.cs.
|
inline |
Creates a new symbol using an integer.
Not all integers can be passed to this function. The legal range of unsigned integers is 0 to 2^30-1.
Definition at line 91 of file Context.cs.
Referenced by Params.Add(), and Optimize.AssertSoft().
|
inline |
Create a symbol using a string.
Definition at line 101 of file Context.cs.
|
inline |
Access the array default value.
Produces the default range value, for arrays that can be represented as finite maps with a default range value.
Definition at line 2219 of file Context.cs.
Convert a regular expression that accepts sequence s.
Definition at line 2537 of file Context.cs.
|
inline |
Create an expression representing -t
.
Definition at line 1087 of file Context.cs.
Referenced by ArithExpr.operator-().
|
inline |
Create a new uninterpreted sort.
Definition at line 194 of file Context.cs.
|
inline |
Create a new uninterpreted sort.
Definition at line 206 of file Context.cs.
Create the singleton sequence.
Definition at line 2406 of file Context.cs.
Update a datatype field at expression t with value v. The function performs a record update at t. The field that is passed in as argument is updated with value v, the remainig fields of t are unchanged.
Definition at line 501 of file Context.cs.
Create an expression representing t1 xor t2
.
Definition at line 953 of file Context.cs.
Referenced by BoolExpr.operator^().
|
inline |
Bit-vector zero extension.
Extend the given bit-vector with zeros to the (unsigned) equivalent bitvector of size m+i
, where m
is the size of the given bit-vector. The argument t must have a bit-vector sort.
Definition at line 1749 of file Context.cs.
Create the optional regular expression.
Definition at line 2580 of file Context.cs.
Take the Kleene plus of a regular expression.
Definition at line 2570 of file Context.cs.
Create a probe that evaluates to "true" when the value p does not evaluate to "true".
Definition at line 3789 of file Context.cs.
Create a probe that evaluates to "true" when the value p1 or p2 evaluate to "true".
Definition at line 3774 of file Context.cs.
Create a tactic that first applies t1 to a Goal and if it fails then returns the result of t2 applied to the Goal.
Definition at line 3443 of file Context.cs.
Create a tactic that applies t1 to a given goal and then t2 to every subgoal produced by t1 . The subgoals are processed in parallel.
Definition at line 3603 of file Context.cs.
Create a tactic that applies the given tactics in parallel until one of them succeeds (i.e., the first that doesn't fail).
Definition at line 3590 of file Context.cs.
|
inline |
Parse the given file using the SMT-LIB2 parser.
Definition at line 3297 of file Context.cs.
|
inline |
Parse the given string using the SMT-LIB2 parser.
Definition at line 3278 of file Context.cs.
|
inline |
Parse the given file using the SMT-LIB parser.
Definition at line 3172 of file Context.cs.
|
inline |
Parse the given string using the SMT-LIB parser.
The symbol table of the parser can be initialized using the given sorts and declarations. The symbols in the arrays sortNames and declNames don't need to match the names of the sorts and declarations in the arrays sorts and decls . This is a useful feature since we can use arbitrary names to reference sorts and declarations.
Definition at line 3155 of file Context.cs.
|
inline |
Returns a string containing a description of the probe with the given name.
Definition at line 3653 of file Context.cs.
Create a tactic that keeps applying t until the goal is not modified anymore or the maximum number of iterations max is reached.
Definition at line 3508 of file Context.cs.
|
inline |
Return a string describing all available parameters to Expr.Simplify
.
Definition at line 4715 of file Context.cs.
|
inline |
Create a tactic that just returns the given goal.
Definition at line 3520 of file Context.cs.
|
inline |
Returns a string containing a description of the tactic with the given name.
Definition at line 3373 of file Context.cs.
Create a tactic that applies t1 to a Goal and then t2 to every subgoal produced by t1 .
Shorthand for AndThen
.
Definition at line 3429 of file Context.cs.
Create a tactic that applies t to a goal for ms milliseconds.
If t does not terminate within ms milliseconds, then it fails.
Definition at line 3460 of file Context.cs.
|
inline |
Unwraps an AST.
This function is used for transitions between native and managed objects. It returns the native pointer to the AST. Note that AST objects are reference counted and unwrapping an AST disables automatic reference counting, i.e., all references to the IntPtr that is returned must be handled externally and through native calls (see e.g.,
).
a | The AST to unwrap. |
Definition at line 4707 of file Context.cs.
|
inline |
Update a mutable configuration parameter.
The list of all configuration parameters can be obtained using the Z3 executable: z3.exe -p
Only a few configuration parameters are mutable once the context is created. An exception is thrown when trying to modify an immutable parameter.
Definition at line 4757 of file Context.cs.
Create a tactic that applies t using the given set of parameters p .
Definition at line 3563 of file Context.cs.
Create a tactic that applies t to a given goal if the probe p evaluates to true.
If p evaluates to false, then the new tactic behaves like the skip
tactic.
Definition at line 3476 of file Context.cs.
Create a tactic that applies t using the given set of parameters p .
Alias for UsingParams
Definition at line 3578 of file Context.cs.
|
inline |
Wraps an AST.
This function is used for transitions between native and managed objects. Note that nativeObject must be a native object obtained from Z3 (e.g., through
) and that it must have a correct reference count (see e.g., .
nativeObject | The native pointer to wrap. |
Definition at line 4690 of file Context.cs.
|
get |
|
get |
|
get |
ASTMap DRQ
Definition at line 4888 of file Context.cs.
|
get |
ASTVector DRQ
Definition at line 4893 of file Context.cs.
Referenced by ASTVector.ToRealExprArray().
Retrieves the Boolean sort of the context.
Definition at line 135 of file Context.cs.
|
get |
|
get |
FuncEntry DRQ
Definition at line 4903 of file Context.cs.
Referenced by FuncInterp.Entry.ToString().
|
get |
|
get |
Retrieves the Integer sort of the context.
Definition at line 147 of file Context.cs.
|
get |
|
get |
The number of supported Probes.
Definition at line 3629 of file Context.cs.
|
get |
The number of SMTLIB assumptions parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3210 of file Context.cs.
|
get |
The number of SMTLIB declarations parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3232 of file Context.cs.
|
get |
The number of SMTLIB formulas parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3188 of file Context.cs.
|
get |
The number of SMTLIB sorts parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3254 of file Context.cs.
|
get |
The number of supported tactics.
Definition at line 3349 of file Context.cs.
|
get |
Optimize DRQ
Definition at line 4958 of file Context.cs.
|
get |
|
get |
|
set |
Selects the format used for pretty-printing expressions.
The default mode for pretty printing expressions is to produce SMT-LIB style output where common subexpressions are printed at each occurrence. The mode is called Z3_PRINT_SMTLIB_FULL. To print shared common subexpressions only once, use the Z3_PRINT_LOW_LEVEL mode. To print in way that conforms to SMT-LIB standards and uses let expressions to share common sub-expressions use Z3_PRINT_SMTLIB_COMPLIANT.
Definition at line 3117 of file Context.cs.
|
get |
Probe DRQ
Definition at line 4933 of file Context.cs.
|
get |
The names of all supported Probes.
Definition at line 3637 of file Context.cs.
Retrieves the Real sort of the context.
Definition at line 160 of file Context.cs.
|
get |
Retrieves parameter descriptions for simplifier.
Definition at line 4726 of file Context.cs.
|
get |
The assumptions parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3216 of file Context.cs.
|
get |
The declarations parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3238 of file Context.cs.
|
get |
The formulas parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3194 of file Context.cs.
|
get |
The declarations parsed by the last call to ParseSMTLIBString
or ParseSMTLIBFile
.
Definition at line 3260 of file Context.cs.
|
get |
|
get |
Statistics DRQ
Definition at line 4943 of file Context.cs.
|
get |
Retrieves the String sort of the context.
Definition at line 172 of file Context.cs.
|
get |
Tactic DRQ
Definition at line 4948 of file Context.cs.
|
get |
The names of all supported tactics.
Definition at line 3357 of file Context.cs.