Protected Member Functions | |
Context (long m_ctx) | |
The main interaction with Z3 happens via the Context. For applications that spawn an unbounded number of contexts, the proper use is within a try-with-resources scope so that the Context object gets garbage collected in a predictable way. Contexts maintain all data-structures related to terms and formulas that are created relative to them.
Definition at line 36 of file Context.java.
|
inline |
Definition at line 40 of file Context.java.
|
inlineprotected |
Definition at line 47 of file Context.java.
|
inline |
Constructor. Remarks: The following parameters can be set:
Definition at line 72 of file Context.java.
Create a probe that evaluates to
when the value
and
evaluate to
.
Definition at line 3195 of file Context.java.
Create a tactic that applies
to a Goal and then
to every subgoal produced by
Definition at line 2891 of file Context.java.
|
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 2769 of file Context.java.
|
inline |
|
inline |
|
inline |
Create a tactic that applies
to a given goal if the probe
evaluates to true and
otherwise.
Definition at line 2973 of file Context.java.
|
inline |
Create a probe that evaluates to
when the value returned by
is equal to the value returned by
Definition at line 3184 of file Context.java.
Referenced by AstRef.__eq__(), UserPropagateBase.add_eq(), SortRef.cast(), and BoolSortRef.cast().
|
inline |
Create a tactic always fails.
Definition at line 3004 of file Context.java.
Create a tactic that fails if the probe
evaluates to false.
Definition at line 3013 of file Context.java.
|
inline |
Create a tactic that fails if the goal is not trivially satisfiable (i.e., empty) or trivially unsatisfiable (i.e., contains ‘false’).
Definition at line 3024 of file Context.java.
Create a probe that evaluates to
when the value returned by
is greater than or equal the value returned by
Definition at line 3172 of file Context.java.
|
inline |
Definition at line 4241 of file Context.java.
|
inline |
Definition at line 4226 of file Context.java.
|
inline |
Definition at line 4231 of file Context.java.
|
inline |
Definition at line 4236 of file Context.java.
|
inline |
|
inline |
Definition at line 4218 of file Context.java.
|
inline |
Definition at line 4222 of file Context.java.
|
inline |
Definition at line 4296 of file Context.java.
|
inline |
Definition at line 4246 of file Context.java.
|
inline |
Definition at line 4251 of file Context.java.
|
inline |
Definition at line 4256 of file Context.java.
|
inline |
|
inline |
Definition at line 4261 of file Context.java.
|
inline |
The number of supported Probes.
Definition at line 3087 of file Context.java.
|
inline |
The number of supported tactics.
Definition at line 2852 of file Context.java.
|
inline |
Definition at line 4301 of file Context.java.
|
inline |
Definition at line 4271 of file Context.java.
|
inline |
Definition at line 4266 of file Context.java.
|
inline |
Returns a string containing a description of the probe with the given name.
Definition at line 3109 of file Context.java.
|
inline |
Definition at line 4276 of file Context.java.
|
inline |
|
inline |
|
inline |
Retrieves parameter descriptions for simplifier.
Definition at line 4145 of file Context.java.
|
inline |
Definition at line 4281 of file Context.java.
|
inline |
Definition at line 4286 of file Context.java.
|
inline |
Returns a string containing a description of the tactic with the given name.
Definition at line 2874 of file Context.java.
|
inline |
Definition at line 4291 of file Context.java.
|
inline |
Create a probe that evaluates to
when the value returned by
is greater than the value returned by
Definition at line 3146 of file Context.java.
|
inline |
Interrupt the execution of a Z3 procedure. Remarks: This procedure can be used to interrupt: solvers, simplifiers and tactics.
Definition at line 3079 of file Context.java.
Create a probe that evaluates to
when the value returned by
is less than or equal the value returned by
Definition at line 3159 of file Context.java.
Create a probe that evaluates to
when the value returned by
is less than the value returned by
Definition at line 3134 of file Context.java.
Create an expression representing
.
Definition at line 816 of file Context.java.
Referenced by Goal.AsBoolExpr().
Create a new function application.
Definition at line 701 of file Context.java.
Referenced by ListSort< R extends Sort >.getNil().
Create an at-least-k constraint.
Definition at line 2388 of file Context.java.
Create an at-most-k constraint.
Definition at line 2379 of file Context.java.
|
inline |
|
inline |
|
inline |
Create a Boolean constant.
Definition at line 636 of file Context.java.
|
inline |
Create a new Boolean sort.
Definition at line 161 of file Context.java.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. |
size | the size of the bit-vector |
Definition at line 2581 of file Context.java.
|
inline |
Create a bit-vector numeral.
v | value of the numeral. * |
size | the size of the bit-vector |
Definition at line 2591 of file Context.java.
|
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 2571 of file Context.java.
|
inline |
Create an integer from the bit-vector argument
. Remarks: If is_signed
is false, then the bit-vector t1
is treated as unsigned. So the result is non-negative and in the range
, where N are the number of bits in
. 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 1576 of file Context.java.
|
inline |
Two's complement addition. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1139 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise addition does not overflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1588 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise addition does not underflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1602 of file Context.java.
|
inline |
Bitwise conjunction. Remarks: The arguments must have a bit-vector sort.
Definition at line 1050 of file Context.java.
|
inline |
Arithmetic shift right Remarks: 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 1484 of file Context.java.
|
inline |
Creates a bit-vector constant.
Definition at line 692 of file Context.java.
|
inline |
Creates a bit-vector constant.
Definition at line 684 of file Context.java.
|
inline |
Logical shift right Remarks: It is equivalent to unsigned division by
where x
is the value of
.
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 1464 of file Context.java.
|
inline |
Two's complement multiplication. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1165 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise multiplication does not overflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1670 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise multiplication does not underflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1684 of file Context.java.
|
inline |
Bitwise NAND. Remarks: The arguments must have a bit-vector sort.
Definition at line 1089 of file Context.java.
|
inline |
Standard two's complement unary minus. Remarks: The arguments must have a bit-vector sort.
Definition at line 1128 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise negation does not overflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1658 of file Context.java.
|
inline |
Bitwise NOR. Remarks: The arguments must have a bit-vector sort.
Definition at line 1102 of file Context.java.
|
inline |
Bitwise negation. Remarks: The argument must have a bit-vector sort.
Definition at line 1015 of file Context.java.
|
inline |
Bitwise disjunction. Remarks: The arguments must have a bit-vector sort.
Definition at line 1063 of file Context.java.
|
inline |
Take conjunction of bits in a vector, return vector of length 1.
Remarks: The argument must have a bit-vector sort.
Definition at line 1026 of file Context.java.
|
inline |
Take disjunction of bits in a vector, return vector of length 1.
Remarks: The argument must have a bit-vector sort.
Definition at line 1038 of file Context.java.
|
inline |
Rotate Left. Remarks: Rotate bits of
to the left
times. The arguments must have the same bit-vector sort.
Definition at line 1522 of file Context.java.
|
inline |
Rotate Left. Remarks: Rotate bits of t
to the left i
times. The argument
must have a bit-vector sort.
Definition at line 1497 of file Context.java.
|
inline |
Rotate Right. Remarks: Rotate bits of
to the right
times. The arguments must have the same bit-vector sort.
Definition at line 1537 of file Context.java.
|
inline |
Rotate Right. Remarks: Rotate bits of t
to the right i
times. The argument
must have a bit-vector sort.
Definition at line 1509 of file Context.java.
|
inline |
Signed division. Remarks: It is defined in the following way:
floor
oft2
is different from zero, and ceiling
oft2
is different from zero, andIf
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1201 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise signed division does not overflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1644 of file Context.java.
|
inline |
Two's complement signed greater than or equal to. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1326 of file Context.java.
|
inline |
Two's complement signed greater-than. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1352 of file Context.java.
|
inline |
Shift left. Remarks: It is equivalent to multiplication by
where x
is the value of
.
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 1445 of file Context.java.
|
inline |
Two's complement signed less-than or equal to. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1300 of file Context.java.
|
inline |
Two's complement signed less-than Remarks: The arguments must have the same bit-vector sort.
Definition at line 1274 of file Context.java.
|
inline |
Two's complement signed remainder (sign follows divisor). Remarks: If
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1248 of file Context.java.
|
inline |
Signed remainder. Remarks: It is defined as
, where
represents signed division. The most significant bit (sign) of the result is equal to the most significant bit of t1
.
If
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1234 of file Context.java.
|
inline |
Two's complement subtraction. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1152 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise subtraction does not overflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1616 of file Context.java.
|
inline |
Create a predicate that checks that the bit-wise subtraction does not underflow. Remarks: The arguments must be of bit-vector sort.
Definition at line 1630 of file Context.java.
|
inline |
Unsigned division. Remarks: It is defined as the floor of
if t2
is different from zero. If
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1180 of file Context.java.
|
inline |
Unsigned greater than or equal to. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1313 of file Context.java.
|
inline |
Unsigned greater-than. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1339 of file Context.java.
|
inline |
Unsigned less-than or equal to. Remarks: The arguments must have the same bit-vector sort.
Definition at line 1287 of file Context.java.
|
inline |
Unsigned less-than Remarks: The arguments must have the same bit-vector sort.
Definition at line 1261 of file Context.java.
|
inline |
Unsigned remainder. Remarks: It is defined as
, where
represents unsigned division. If
is zero, then the result is undefined. The arguments must have the same bit-vector sort.
Definition at line 1216 of file Context.java.
|
inline |
Bitwise XNOR. Remarks: The arguments must have a bit-vector sort.
Definition at line 1115 of file Context.java.
|
inline |
Bitwise XOR. Remarks: The arguments must have a bit-vector sort.
Definition at line 1076 of file Context.java.
Create less than or equal to between two characters.
Definition at line 2334 of file Context.java.
|
inline |
|
inline |
Bit-vector concatenation. Remarks: The arguments must have a bit-vector sort.
Definition at line 1370 of file Context.java.
Concatenate sequences.
Definition at line 2066 of file Context.java.
Create the concatenation of regular languages.
Definition at line 2259 of file Context.java.
|
inline |
Create mutually recursive data-types.
Definition at line 422 of file Context.java.
|
inline |
Create mutually recursive datatypes.
names | names of datatype sorts |
c | list of constructors, one list per sort. |
Definition at line 396 of file Context.java.
|
inline |
Creates an existential quantifier using a list of constants that will form the set of bound variables.
Definition at line 2659 of file Context.java.
|
inline |
Creates an existential quantifier using de-Bruijn indexed variables.
Definition at line 2646 of file Context.java.
|
inline |
Bit-vector extraction. Remarks: Extract the bits
down to
from a bitvector of size
to yield a new bitvector of size
, where
. The argument
must have a bit-vector sort.
Definition at line 1386 of file Context.java.
|
inline |
The false Term.
Definition at line 719 of file Context.java.
|
inline |
Create a Fixedpoint context.
Definition at line 3285 of file Context.java.
|
inline |
Creates a universal quantifier using a list of constants that will form the set of bound variables.
Definition at line 2633 of file Context.java.
|
inline |
Create a universal Quantifier.
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 2621 of file Context.java.
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. |
Z3Exception |
Definition at line 3615 of file Context.java.
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. |
Z3Exception |
Definition at line 3628 of file Context.java.
Create a numeral of FloatingPoint sort from a double.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3590 of file Context.java.
|
inline |
Create an expression of FloatingPoint sort from three bit-vector expressions.
sgn | bit-vector term (of size 1) representing the sign. |
sig | bit-vector term representing the significand. |
exp | bit-vector term representing the exponent. Remarks: 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. |
Z3Exception |
Definition at line 3913 of file Context.java.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3579 of file Context.java.
Create a numeral of FloatingPoint sort from an int.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3602 of file Context.java.
Floating-point absolute value
t | floating-point term |
Z3Exception |
Definition at line 3639 of file Context.java.
Floating-point addition
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3661 of file Context.java.
Floating-point division
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3697 of file Context.java.
Floating-point equality.
t1 | floating-point term |
t2 | floating-point term Remarks: Note that this is IEEE 754 equality (as opposed to standard =). |
Z3Exception |
Definition at line 3825 of file Context.java.
|
inline |
Floating-point fused multiply-add
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
t3 | floating-point term Remarks: The result is round((t1 * t2) + t3) |
Z3Exception |
Definition at line 3712 of file Context.java.
Floating-point greater than or equal.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3801 of file Context.java.
Floating-point greater than.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3812 of file Context.java.
Create a floating-point infinity of sort s.
s | FloatingPoint sort. |
negative | indicates whether the result should be negative. |
Z3Exception |
Definition at line 3498 of file Context.java.
Predicate indicating whether t is a floating-point number representing +oo or -oo.
t | floating-point term |
Z3Exception |
Definition at line 3865 of file Context.java.
Predicate indicating whether t is a NaN.
t | floating-point term |
Z3Exception |
Definition at line 3875 of file Context.java.
Predicate indicating whether t is a negative floating-point number.
t | floating-point term |
Z3Exception |
Definition at line 3885 of file Context.java.
Predicate indicating whether t is a normal floating-point number.\
t | floating-point term |
Z3Exception |
Definition at line 3835 of file Context.java.
Predicate indicating whether t is a positive floating-point number.
t | floating-point term |
Z3Exception |
Definition at line 3895 of file Context.java.
Predicate indicating whether t is a subnormal floating-point number.\
t | floating-point term |
Z3Exception |
Definition at line 3845 of file Context.java.
Predicate indicating whether t is a floating-point number with zero value, i.e., +0 or -0.
t | floating-point term |
Z3Exception |
Definition at line 3855 of file Context.java.
Floating-point less than or equal.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3779 of file Context.java.
Floating-point less than.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3790 of file Context.java.
Maximum of floating-point numbers.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3768 of file Context.java.
Minimum of floating-point numbers.
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3757 of file Context.java.
Floating-point multiplication
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3685 of file Context.java.
Create a NaN of sort s.
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3487 of file Context.java.
Floating-point negation
t | floating-point term |
Z3Exception |
Definition at line 3649 of file Context.java.
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. |
Z3Exception |
Definition at line 3555 of file Context.java.
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. |
Z3Exception |
Definition at line 3568 of file Context.java.
Create a numeral of FloatingPoint sort from a double.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3531 of file Context.java.
Create a numeral of FloatingPoint sort from a float.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3520 of file Context.java.
Create a numeral of FloatingPoint sort from an int.
v | numeral value. |
s | FloatingPoint sort. |
Z3Exception |
Definition at line 3542 of file Context.java.
Floating-point remainder
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3734 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode.
Z3Exception |
Definition at line 3339 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode.
Z3Exception |
Definition at line 3321 of file Context.java.
|
inline |
Create the floating-point RoundingMode sort.
Z3Exception |
Definition at line 3303 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToAway rounding mode.
Z3Exception |
Definition at line 3330 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the NearestTiesToEven rounding mode.
Z3Exception |
Definition at line 3312 of file Context.java.
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 |
Z3Exception |
Definition at line 3746 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode.
Z3Exception |
Definition at line 3366 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode.
Z3Exception |
Definition at line 3348 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode.
Z3Exception |
Definition at line 3384 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardNegative rounding mode.
Z3Exception |
Definition at line 3375 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardPositive rounding mode.
Z3Exception |
Definition at line 3357 of file Context.java.
|
inline |
Create a numeral of RoundingMode sort which represents the RoundTowardZero rounding mode.
Z3Exception |
Definition at line 3393 of file Context.java.
|
inline |
Create a FloatingPoint sort.
ebits | exponent bits in the FloatingPoint sort. |
sbits | significand bits in the FloatingPoint sort. |
Z3Exception |
Definition at line 3404 of file Context.java.
|
inline |
Create the quadruple-precision (128-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3476 of file Context.java.
|
inline |
Create the half-precision (16-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3422 of file Context.java.
|
inline |
Create the single-precision (32-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3440 of file Context.java.
|
inline |
Create the double-precision (64-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3458 of file Context.java.
|
inline |
Create the double-precision (64-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3449 of file Context.java.
|
inline |
Create the half-precision (16-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3413 of file Context.java.
|
inline |
Create the quadruple-precision (128-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3467 of file Context.java.
|
inline |
Create the single-precision (32-bit) FloatingPoint sort.
Z3Exception |
Definition at line 3431 of file Context.java.
Floating-point square root
rm | rounding mode term |
t | floating-point term |
Z3Exception |
Definition at line 3723 of file Context.java.
Floating-point subtraction
rm | rounding mode term |
t1 | floating-point term |
t2 | floating-point term |
Z3Exception |
Definition at line 3673 of file Context.java.
|
inline |
Conversion of a floating-point term into a bit-vector.
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. Remarks: Produces a term that represents the conversion of the floating-point 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. |
Z3Exception |
Definition at line 4014 of file Context.java.
|
inline |
Conversion of a single IEEE 754-2008 bit-vector into a floating-point number.
bv | bit-vector value (of size m). |
s | FloatingPoint sort (ebits+sbits == m) Remarks: 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. |
Z3Exception |
Definition at line 3929 of file Context.java.
Conversion of a 2's complement signed bit-vector term into a term of FloatingPoint sort.
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. Remarks: 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. |
Z3Exception |
Definition at line 3979 of file Context.java.
|
inline |
Conversion of a real-sorted significand and an integer-sorted exponent into a term of FloatingPoint sort.
rm | RoundingMode term. |
exp | Exponent term of Int sort. |
sig | Significand term of Real sort. |
s | FloatingPoint sort. Remarks: 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. |
Z3Exception |
Definition at line 4064 of file Context.java.
Conversion of a FloatingPoint term into another term of different FloatingPoint sort.
rm | RoundingMode term. |
t | FloatingPoint term. |
s | FloatingPoint sort. Remarks: 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. |
Z3Exception |
Definition at line 3945 of file Context.java.
Conversion of a term of real sort into a term of FloatingPoint sort.
rm | RoundingMode term. |
t | term of Real sort. |
s | FloatingPoint sort. Remarks: 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. |
Z3Exception |
Definition at line 3961 of file Context.java.
Conversion of a floating-point number to another FloatingPoint sort s.
s | FloatingPoint sort |
rm | floating-point rounding mode term |
t | floating-point term Remarks: 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. |
Z3Exception |
Definition at line 3997 of file Context.java.
|
inline |
Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format.
t | FloatingPoint term. Remarks: 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 representation of that NaN. |
Z3Exception |
Definition at line 4046 of file Context.java.
Conversion of a floating-point term into a real-numbered term.
t | FloatingPoint term Remarks: Produces a term that represents the conversion of the floating-point term t into a real number. Note that this type of conversion will often result in non-linear constraints over real terms. |
Z3Exception |
Definition at line 4031 of file Context.java.
Create a floating-point zero of sort s.
s | FloatingPoint sort. |
negative | indicates whether the result should be negative. |
Z3Exception |
Definition at line 3509 of file Context.java.
|
inline |
Creates a new Goal. Remarks: Note that the Context must have been created with proof generation support if
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 2836 of file Context.java.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2546 of file Context.java.
|
inline |
Create an integer numeral.
v | value of the numeral. |
Definition at line 2559 of file Context.java.
|
inline |
Create an integer numeral.
v | A string representing the Term value in decimal notation. |
Definition at line 2533 of file Context.java.
|
inline |
Create an
bit bit-vector from the integer argument
. Remarks: 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 1555 of file Context.java.
Coerce an integer to a real. Remarks: 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
and asserting
. The argument must be of integer sort.
Definition at line 982 of file Context.java.
|
inline |
Creates an integer constant.
Definition at line 660 of file Context.java.
Creates an integer constant.
Definition at line 652 of file Context.java.
Create the intersection of regular languages.
Definition at line 2279 of file Context.java.
|
inline |
Create a new integer sort.
Definition at line 206 of file Context.java.
Creates an expression that checks whether a real number is an integer.
Definition at line 1004 of file Context.java.
|
inline |
Maps f on the argument arrays. Remarks: Each element of
must be of an array sort
. The function declaration
must have type
.
must have sort range. The sort of the result is
.
Definition at line 1835 of file Context.java.
Create an expression representing
. Remarks: The arguments must have int type.
Definition at line 893 of file Context.java.
|
inline |
Create a Optimize context.
Definition at line 3293 of file Context.java.
|
inline |
Creates a new ParameterSet.
Definition at line 2844 of file Context.java.
Create a pseudo-Boolean equal constraint.
Definition at line 2415 of file Context.java.
Create a pseudo-Boolean greater-or-equal constraint.
Definition at line 2406 of file Context.java.
Create a pseudo-Boolean less-or-equal constraint.
Definition at line 2397 of file Context.java.
|
inline |
Creates a new Probe.
Definition at line 3117 of file Context.java.
|
inline |
Create a Quantifier
Definition at line 2690 of file Context.java.
|
inline |
Create a Quantifier.
Definition at line 2672 of file Context.java.
|
inline |
Create a real from a fraction.
num | numerator of rational. |
den | denominator of rational. |
Definition at line 2481 of file Context.java.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2509 of file Context.java.
|
inline |
Create a real numeral.
v | value of the numeral. |
Definition at line 2522 of file Context.java.
|
inline |
Create a real numeral.
v | A string representing the Term value in decimal notation. |
Definition at line 2496 of file Context.java.
Coerce a real to an integer. Remarks: 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 995 of file Context.java.
|
inline |
Creates a real constant.
Definition at line 676 of file Context.java.
Creates a real constant.
Definition at line 668 of file Context.java.
|
inline |
Create a real sort.
Definition at line 214 of file Context.java.
Create an expression representing
. Remarks: The arguments must have int type.
Definition at line 906 of file Context.java.
|
inline |
Bit-vector repetition. Remarks: The argument
must have a bit-vector sort.
Definition at line 1427 of file Context.java.
|
inline |
|
inline |
|
inline |
Bit-vector sign extension. Remarks: Sign-extends the given bit-vector to the (signed) equivalent bitvector of size
, where m
is the size of the given bit-vector. The argument
must have a bit-vector sort.
Definition at line 1401 of file Context.java.
|
inline |
Creates a new (incremental) solver.
Definition at line 3264 of file Context.java.
|
inline |
Creates a new (incremental) solver. Remarks: 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 3230 of file Context.java.
Referenced by Tactic.getSolver().
|
inline |
Creates a new (incremental) solver.
Definition at line 3256 of file Context.java.
Creates a new (incremental) solver. Remarks: 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 3242 of file Context.java.
Creates a solver that is implemented using the given tactic. Remarks: The solver supports the commands
and
, but it will always solve each check from scratch.
Definition at line 3275 of file Context.java.
Check if the string s1 is lexicographically less or equal to s2.
Definition at line 2122 of file Context.java.
Check if the string s1 is lexicographically strictly less than s2.
Definition at line 2113 of file Context.java.
Create a new string sort
Definition at line 251 of file Context.java.
|
inline |
Creates a new symbol using an integer. Remarks: Not all integers can be passed to this function. The legal range of unsigned integers is 0 to 2^30-1.
Definition at line 94 of file Context.java.
|
inline |
Create a symbol using a string.
Definition at line 102 of file Context.java.
|
inline |
|
inline |
|
inline |
Create a new uninterpreted sort.
Definition at line 198 of file Context.java.
|
inline |
Create a new uninterpreted sort.
Definition at line 189 of file Context.java.
Create the union of regular languages.
Definition at line 2269 of file Context.java.
|
inline |
Bit-vector zero extension. Remarks: Extend the given bit-vector with zeros to the (unsigned) equivalent bitvector of size
, where m
is the size of the given bit-vector. The argument
must have a bit-vector sort.
Definition at line 1415 of file Context.java.
|
inline |
Definition at line 4164 of file Context.java.
Referenced by ASTVector.ASTVector(), ConstructorDecRefQueue.decRef(), ConstructorListDecRefQueue.decRef(), AST.equals(), FuncDecl< R extends Sort >.equals(), Sort.equals(), FPRMSort.FPRMSort(), FPSort.FPSort(), Quantifier.of(), Lambda< R extends Sort >.of(), ASTVector.set(), AST.translate(), ASTVector.translate(), Goal.translate(), and Solver.translate().
Create a probe that evaluates to
when the value
does not evaluate to
.
Definition at line 3217 of file Context.java.
Create a probe that evaluates to
when the value
or
evaluate to
.
Definition at line 3206 of file Context.java.
Create a tactic that first applies
to a Goal and if it fails then returns the result of
applied to the Goal.
Definition at line 2933 of file Context.java.
Create a tactic that applies
to a given goal and then
to every subgoal produced by
. The subgoals are processed in parallel.
Definition at line 3066 of file Context.java.
|
inline |
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 3055 of file Context.java.
|
inline |
Parse the given file using the SMT-LIB2 parser.
Definition at line 2809 of file Context.java.
|
inline |
Parse the given string using the SMT-LIB2 parser.
If the string contains push/pop commands, the set of assertions returned are the ones in the last scope level.
Definition at line 2788 of file Context.java.
Create a tactic that keeps applying
until the goal is not modified anymore or the maximum number of iterations
is reached.
Definition at line 2986 of file Context.java.
|
inline |
|
inline |
Selects the format used for pretty-printing expressions. Remarks: 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 2751 of file Context.java.
|
inline |
Return a string describing all available parameters to
.
Definition at line 4137 of file Context.java.
|
inline |
Create a tactic that just returns the given goal.
Definition at line 2996 of file Context.java.
Create a tactic that applies
to a Goal and then
to every subgoal produced by
Remarks: Shorthand for
.
Definition at line 2923 of file Context.java.
Create a tactic that applies
to a goal for
milliseconds. Remarks: If
does not terminate within
milliseconds, then it fails.
Definition at line 2947 of file Context.java.
|
inline |
|
inline |
Unwraps an AST. Remarks: 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 4128 of file Context.java.
|
inline |
Update a mutable configuration parameter. Remarks: The list of all configuration parameters can be obtained using the Z3 executable:
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 4158 of file Context.java.
Create a tactic that applies
using the given set of parameters
.
Definition at line 3033 of file Context.java.
Create a tactic that applies
to a given goal if the probe
evaluates to true. Remarks: If
evaluates to false, then the new tactic behaves like the
tactic.
Definition at line 2960 of file Context.java.
Create a tactic that applies
using the given set of parameters
. Remarks: Alias for
Definition at line 3047 of file Context.java.
|
inline |
Wraps an AST. Remarks: This function is used for transitions between native and managed objects. Note that
must be a native object obtained from Z3 (e.g., through
) and that it must have a correct reference count.
nativeObject | The native pointer to wrap. |
Definition at line 4111 of file Context.java.