Skip to main content

z3_sys/generated/
enums.rs

1// Auto-generated by z3-sys bindgen feature — do not edit manually.
2
3/// The different kinds of symbol.
4/// In Z3, a symbol can be represented using integers and strings (See [`Z3_get_symbol_kind`]).
5///
6/// # See also
7///
8/// - [`Z3_mk_int_symbol`]
9/// - [`Z3_mk_string_symbol`]
10#[doc(alias = "Z3_symbol_kind")]
11#[repr(u32)]
12#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
13pub enum SymbolKind {
14    /// Corresponds to `Z3_INT_SYMBOL` in the C API.
15    #[doc(alias = "Z3_INT_SYMBOL")]
16    Int = 0,
17    /// Corresponds to `Z3_STRING_SYMBOL` in the C API.
18    #[doc(alias = "Z3_STRING_SYMBOL")]
19    String = 1,
20}
21pub type Z3_symbol_kind = SymbolKind;
22/// The different kinds of parameters that can be associated with function symbols.
23///
24/// # See also
25///
26/// - [`Z3_get_decl_num_parameters`]
27/// - [`Z3_get_decl_parameter_kind`]
28#[doc(alias = "Z3_parameter_kind")]
29#[repr(u32)]
30#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
31pub enum ParameterKind {
32    /// used for integer parameters.
33    #[doc(alias = "Z3_PARAMETER_INT")]
34    Int = 0,
35    /// used for double parameters.
36    #[doc(alias = "Z3_PARAMETER_DOUBLE")]
37    Double = 1,
38    /// used for parameters that are rational numbers.
39    #[doc(alias = "Z3_PARAMETER_RATIONAL")]
40    Rational = 2,
41    /// used for parameters that are symbols.
42    #[doc(alias = "Z3_PARAMETER_SYMBOL")]
43    Symbol = 3,
44    /// used for sort parameters.
45    #[doc(alias = "Z3_PARAMETER_SORT")]
46    Sort = 4,
47    /// used for expression parameters.
48    #[doc(alias = "Z3_PARAMETER_AST")]
49    Ast = 5,
50    /// used for function declaration parameters.
51    #[doc(alias = "Z3_PARAMETER_FUNC_DECL")]
52    FuncDecl = 6,
53    /// used for parameters that are private to Z3. They cannot be accessed.
54    #[doc(alias = "Z3_PARAMETER_INTERNAL")]
55    Internal = 7,
56    /// used for string parameters.
57    #[doc(alias = "Z3_PARAMETER_ZSTRING")]
58    Zstring = 8,
59}
60pub type Z3_parameter_kind = ParameterKind;
61/// The different kinds of Z3 types (See [`Z3_get_sort_kind`]).
62#[doc(alias = "Z3_sort_kind")]
63#[repr(u32)]
64#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
65pub enum SortKind {
66    /// Corresponds to `Z3_UNINTERPRETED_SORT` in the C API.
67    #[doc(alias = "Z3_UNINTERPRETED_SORT")]
68    Uninterpreted = 0,
69    /// Corresponds to `Z3_BOOL_SORT` in the C API.
70    #[doc(alias = "Z3_BOOL_SORT")]
71    Bool = 1,
72    /// Corresponds to `Z3_INT_SORT` in the C API.
73    #[doc(alias = "Z3_INT_SORT")]
74    Int = 2,
75    /// Corresponds to `Z3_REAL_SORT` in the C API.
76    #[doc(alias = "Z3_REAL_SORT")]
77    Real = 3,
78    /// Corresponds to `Z3_BV_SORT` in the C API.
79    #[doc(alias = "Z3_BV_SORT")]
80    Bv = 4,
81    /// Corresponds to `Z3_ARRAY_SORT` in the C API.
82    #[doc(alias = "Z3_ARRAY_SORT")]
83    Array = 5,
84    /// Corresponds to `Z3_DATATYPE_SORT` in the C API.
85    #[doc(alias = "Z3_DATATYPE_SORT")]
86    Datatype = 6,
87    /// Corresponds to `Z3_RELATION_SORT` in the C API.
88    #[doc(alias = "Z3_RELATION_SORT")]
89    Relation = 7,
90    /// Corresponds to `Z3_FINITE_DOMAIN_SORT` in the C API.
91    #[doc(alias = "Z3_FINITE_DOMAIN_SORT")]
92    FiniteDomain = 8,
93    /// Corresponds to `Z3_FLOATING_POINT_SORT` in the C API.
94    #[doc(alias = "Z3_FLOATING_POINT_SORT")]
95    FloatingPoint = 9,
96    /// Corresponds to `Z3_ROUNDING_MODE_SORT` in the C API.
97    #[doc(alias = "Z3_ROUNDING_MODE_SORT")]
98    RoundingMode = 10,
99    /// Corresponds to `Z3_SEQ_SORT` in the C API.
100    #[doc(alias = "Z3_SEQ_SORT")]
101    Seq = 11,
102    /// Corresponds to `Z3_RE_SORT` in the C API.
103    #[doc(alias = "Z3_RE_SORT")]
104    Re = 12,
105    /// Corresponds to `Z3_CHAR_SORT` in the C API.
106    #[doc(alias = "Z3_CHAR_SORT")]
107    Char = 13,
108    /// Corresponds to `Z3_TYPE_VAR` in the C API.
109    #[doc(alias = "Z3_TYPE_VAR")]
110    TypeVar = 14,
111    /// Corresponds to `Z3_FINITE_FIELD_SORT` in the C API.
112    #[doc(alias = "Z3_FINITE_FIELD_SORT")]
113    FiniteField = 15,
114    /// Corresponds to `Z3_COMPLEX_SORT` in the C API.
115    #[doc(alias = "Z3_COMPLEX_SORT")]
116    Complex = 16,
117    /// Corresponds to `Z3_UNKNOWN_SORT` in the C API.
118    #[doc(alias = "Z3_UNKNOWN_SORT")]
119    Unknown = 1000,
120}
121pub type Z3_sort_kind = SortKind;
122/// The different kinds of Z3 AST (abstract syntax trees). That is, terms, formulas and types.
123#[doc(alias = "Z3_ast_kind")]
124#[repr(u32)]
125#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
126pub enum AstKind {
127    /// numeral constants
128    #[doc(alias = "Z3_NUMERAL_AST")]
129    Numeral = 0,
130    /// constant and applications
131    #[doc(alias = "Z3_APP_AST")]
132    App = 1,
133    /// bound variables
134    #[doc(alias = "Z3_VAR_AST")]
135    Var = 2,
136    /// quantifiers
137    #[doc(alias = "Z3_QUANTIFIER_AST")]
138    Quantifier = 3,
139    /// sort
140    #[doc(alias = "Z3_SORT_AST")]
141    Sort = 4,
142    /// function declaration
143    #[doc(alias = "Z3_FUNC_DECL_AST")]
144    FuncDecl = 5,
145    /// internal
146    #[doc(alias = "Z3_UNKNOWN_AST")]
147    Unknown = 1000,
148}
149pub type Z3_ast_kind = AstKind;
150/// The different kinds of interpreted function kinds.
151#[doc(alias = "Z3_decl_kind")]
152#[repr(u32)]
153#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
154pub enum DeclKind {
155    /// The constant true.
156    #[doc(alias = "Z3_OP_TRUE")]
157    True = 256,
158    /// The constant false.
159    #[doc(alias = "Z3_OP_FALSE")]
160    False = 257,
161    /// The equality predicate.
162    #[doc(alias = "Z3_OP_EQ")]
163    Eq = 258,
164    /// The n-ary distinct predicate (every argument is mutually distinct).
165    #[doc(alias = "Z3_OP_DISTINCT")]
166    Distinct = 259,
167    /// The ternary if-then-else term.
168    #[doc(alias = "Z3_OP_ITE")]
169    Ite = 260,
170    /// n-ary conjunction.
171    #[doc(alias = "Z3_OP_AND")]
172    And = 261,
173    /// n-ary disjunction.
174    #[doc(alias = "Z3_OP_OR")]
175    Or = 262,
176    /// equivalence (binary).
177    #[doc(alias = "Z3_OP_IFF")]
178    Iff = 263,
179    /// Exclusive or.
180    #[doc(alias = "Z3_OP_XOR")]
181    Xor = 264,
182    /// Negation.
183    #[doc(alias = "Z3_OP_NOT")]
184    Not = 265,
185    /// Implication.
186    #[doc(alias = "Z3_OP_IMPLIES")]
187    Implies = 266,
188    /// Binary equivalence modulo namings. This binary predicate is used in proof terms.
189    /// It captures equisatisfiability and equivalence modulo renamings.
190    #[doc(alias = "Z3_OP_OEQ")]
191    Oeq = 267,
192    /// Arithmetic numeral.
193    #[doc(alias = "Z3_OP_ANUM")]
194    Anum = 512,
195    /// Arithmetic algebraic numeral. Algebraic numbers are used to represent irrational numbers in Z3.
196    #[doc(alias = "Z3_OP_AGNUM")]
197    Agnum = 513,
198    /// <=.
199    #[doc(alias = "Z3_OP_LE")]
200    Le = 514,
201    /// >=.
202    #[doc(alias = "Z3_OP_GE")]
203    Ge = 515,
204    /// <.
205    #[doc(alias = "Z3_OP_LT")]
206    Lt = 516,
207    /// >.
208    #[doc(alias = "Z3_OP_GT")]
209    Gt = 517,
210    /// Addition - Binary.
211    #[doc(alias = "Z3_OP_ADD")]
212    Add = 518,
213    /// Binary subtraction.
214    #[doc(alias = "Z3_OP_SUB")]
215    Sub = 519,
216    /// Unary minus.
217    #[doc(alias = "Z3_OP_UMINUS")]
218    Uminus = 520,
219    /// Multiplication - Binary.
220    #[doc(alias = "Z3_OP_MUL")]
221    Mul = 521,
222    /// Division - Binary.
223    #[doc(alias = "Z3_OP_DIV")]
224    Div = 522,
225    /// Integer division - Binary.
226    #[doc(alias = "Z3_OP_IDIV")]
227    Idiv = 523,
228    /// Remainder - Binary.
229    #[doc(alias = "Z3_OP_REM")]
230    Rem = 524,
231    /// Modulus - Binary.
232    #[doc(alias = "Z3_OP_MOD")]
233    Mod = 525,
234    /// Coercion of integer to real - Unary.
235    #[doc(alias = "Z3_OP_TO_REAL")]
236    ToReal = 526,
237    /// Coercion of real to integer - Unary.
238    #[doc(alias = "Z3_OP_TO_INT")]
239    ToInt = 527,
240    /// Check if real is also an integer - Unary.
241    #[doc(alias = "Z3_OP_IS_INT")]
242    IsInt = 528,
243    /// Power operator x^y.
244    #[doc(alias = "Z3_OP_POWER")]
245    Power = 529,
246    /// Corresponds to `Z3_OP_ABS` in the C API.
247    #[doc(alias = "Z3_OP_ABS")]
248    Abs = 530,
249    /// Corresponds to `Z3_OP_COMPLEX` in the C API.
250    #[doc(alias = "Z3_OP_COMPLEX")]
251    Complex = 531,
252    /// Corresponds to `Z3_OP_REAL_PART` in the C API.
253    #[doc(alias = "Z3_OP_REAL_PART")]
254    RealPart = 532,
255    /// Corresponds to `Z3_OP_IMAG_PART` in the C API.
256    #[doc(alias = "Z3_OP_IMAG_PART")]
257    ImagPart = 533,
258    /// Array store. It satisfies select(store(a,i,v),j) = if i = j then v else select(a,j).
259    /// Array store takes at least 3 arguments.
260    #[doc(alias = "Z3_OP_STORE")]
261    Store = 768,
262    /// Array select.
263    #[doc(alias = "Z3_OP_SELECT")]
264    Select = 769,
265    /// The constant array. For example, select(const(v),i) = v holds for every v and i. The function is unary.
266    #[doc(alias = "Z3_OP_CONST_ARRAY")]
267    ConstArray = 770,
268    /// Array map operator.
269    /// It satisfies map\[f](a1,..,a_n)\[i] = f(a1\[i],...,a_n\[i]) for every i.
270    #[doc(alias = "Z3_OP_ARRAY_MAP")]
271    ArrayMap = 771,
272    /// Default value of arrays. For example default(const(v)) = v. The function is unary.
273    #[doc(alias = "Z3_OP_ARRAY_DEFAULT")]
274    ArrayDefault = 772,
275    /// Set union between two Boolean arrays (two arrays whose range type is Boolean). The function is binary.
276    #[doc(alias = "Z3_OP_SET_UNION")]
277    SetUnion = 773,
278    /// Set intersection between two Boolean arrays. The function is binary.
279    #[doc(alias = "Z3_OP_SET_INTERSECT")]
280    SetIntersect = 774,
281    /// Set difference between two Boolean arrays. The function is binary.
282    #[doc(alias = "Z3_OP_SET_DIFFERENCE")]
283    SetDifference = 775,
284    /// Set complement of a Boolean array. The function is unary.
285    #[doc(alias = "Z3_OP_SET_COMPLEMENT")]
286    SetComplement = 776,
287    /// Subset predicate between two Boolean arrays. The relation is binary.
288    #[doc(alias = "Z3_OP_SET_SUBSET")]
289    SetSubset = 777,
290    /// An array value that behaves as the function graph of the
291    /// function passed as parameter.
292    #[doc(alias = "Z3_OP_AS_ARRAY")]
293    AsArray = 778,
294    /// Array extensionality function. It takes two arrays as arguments and produces an index, such that the arrays
295    /// are different if they are different on the index.
296    #[doc(alias = "Z3_OP_ARRAY_EXT")]
297    ArrayExt = 779,
298    /// Bit-vector numeral.
299    #[doc(alias = "Z3_OP_BNUM")]
300    Bnum = 1024,
301    /// One bit bit-vector.
302    #[doc(alias = "Z3_OP_BIT1")]
303    Bit1 = 1025,
304    /// Zero bit bit-vector.
305    #[doc(alias = "Z3_OP_BIT0")]
306    Bit0 = 1026,
307    /// Unary minus.
308    #[doc(alias = "Z3_OP_BNEG")]
309    Bneg = 1027,
310    /// Binary addition.
311    #[doc(alias = "Z3_OP_BADD")]
312    Badd = 1028,
313    /// Binary subtraction.
314    #[doc(alias = "Z3_OP_BSUB")]
315    Bsub = 1029,
316    /// Binary multiplication.
317    #[doc(alias = "Z3_OP_BMUL")]
318    Bmul = 1030,
319    /// Binary signed division.
320    #[doc(alias = "Z3_OP_BSDIV")]
321    Bsdiv = 1031,
322    /// Binary unsigned division.
323    #[doc(alias = "Z3_OP_BUDIV")]
324    Budiv = 1032,
325    /// Binary signed remainder.
326    #[doc(alias = "Z3_OP_BSREM")]
327    Bsrem = 1033,
328    /// Binary unsigned remainder.
329    #[doc(alias = "Z3_OP_BUREM")]
330    Burem = 1034,
331    /// Binary signed modulus.
332    #[doc(alias = "Z3_OP_BSMOD")]
333    Bsmod = 1035,
334    /// Unary function. bsdiv(x,0) is congruent to bsdiv0(x).
335    #[doc(alias = "Z3_OP_BSDIV0")]
336    Bsdiv0 = 1036,
337    /// Unary function. budiv(x,0) is congruent to budiv0(x).
338    #[doc(alias = "Z3_OP_BUDIV0")]
339    Budiv0 = 1037,
340    /// Unary function. bsrem(x,0) is congruent to bsrem0(x).
341    #[doc(alias = "Z3_OP_BSREM0")]
342    Bsrem0 = 1038,
343    /// Unary function. burem(x,0) is congruent to burem0(x).
344    #[doc(alias = "Z3_OP_BUREM0")]
345    Burem0 = 1039,
346    /// Unary function. bsmod(x,0) is congruent to bsmod0(x).
347    #[doc(alias = "Z3_OP_BSMOD0")]
348    Bsmod0 = 1040,
349    /// Unsigned bit-vector <= - Binary relation.
350    #[doc(alias = "Z3_OP_ULEQ")]
351    Uleq = 1041,
352    /// Signed bit-vector  <= - Binary relation.
353    #[doc(alias = "Z3_OP_SLEQ")]
354    Sleq = 1042,
355    /// Unsigned bit-vector  >= - Binary relation.
356    #[doc(alias = "Z3_OP_UGEQ")]
357    Ugeq = 1043,
358    /// Signed bit-vector  >= - Binary relation.
359    #[doc(alias = "Z3_OP_SGEQ")]
360    Sgeq = 1044,
361    /// Unsigned bit-vector  < - Binary relation.
362    #[doc(alias = "Z3_OP_ULT")]
363    Ult = 1045,
364    /// Signed bit-vector < - Binary relation.
365    #[doc(alias = "Z3_OP_SLT")]
366    Slt = 1046,
367    /// Unsigned bit-vector > - Binary relation.
368    #[doc(alias = "Z3_OP_UGT")]
369    Ugt = 1047,
370    /// Signed bit-vector > - Binary relation.
371    #[doc(alias = "Z3_OP_SGT")]
372    Sgt = 1048,
373    /// Bit-wise and - Binary.
374    #[doc(alias = "Z3_OP_BAND")]
375    Band = 1049,
376    /// Bit-wise or - Binary.
377    #[doc(alias = "Z3_OP_BOR")]
378    Bor = 1050,
379    /// Bit-wise not - Unary.
380    #[doc(alias = "Z3_OP_BNOT")]
381    Bnot = 1051,
382    /// Bit-wise xor - Binary.
383    #[doc(alias = "Z3_OP_BXOR")]
384    Bxor = 1052,
385    /// Bit-wise nand - Binary.
386    #[doc(alias = "Z3_OP_BNAND")]
387    Bnand = 1053,
388    /// Bit-wise nor - Binary.
389    #[doc(alias = "Z3_OP_BNOR")]
390    Bnor = 1054,
391    /// Bit-wise xnor - Binary.
392    #[doc(alias = "Z3_OP_BXNOR")]
393    Bxnor = 1055,
394    /// Bit-vector concatenation - Binary.
395    #[doc(alias = "Z3_OP_CONCAT")]
396    Concat = 1056,
397    /// Bit-vector sign extension.
398    #[doc(alias = "Z3_OP_SIGN_EXT")]
399    SignExt = 1057,
400    /// Bit-vector zero extension.
401    #[doc(alias = "Z3_OP_ZERO_EXT")]
402    ZeroExt = 1058,
403    /// Bit-vector extraction.
404    #[doc(alias = "Z3_OP_EXTRACT")]
405    Extract = 1059,
406    /// Repeat bit-vector n times.
407    #[doc(alias = "Z3_OP_REPEAT")]
408    Repeat = 1060,
409    /// Bit-vector reduce or - Unary.
410    #[doc(alias = "Z3_OP_BREDOR")]
411    Bredor = 1061,
412    /// Bit-vector reduce and - Unary.
413    #[doc(alias = "Z3_OP_BREDAND")]
414    Bredand = 1062,
415    /// .
416    #[doc(alias = "Z3_OP_BCOMP")]
417    Bcomp = 1063,
418    /// Shift left.
419    #[doc(alias = "Z3_OP_BSHL")]
420    Bshl = 1064,
421    /// Logical shift right.
422    #[doc(alias = "Z3_OP_BLSHR")]
423    Blshr = 1065,
424    /// Arithmetical shift right.
425    #[doc(alias = "Z3_OP_BASHR")]
426    Bashr = 1066,
427    /// Left rotation.
428    #[doc(alias = "Z3_OP_ROTATE_LEFT")]
429    RotateLeft = 1067,
430    /// Right rotation.
431    #[doc(alias = "Z3_OP_ROTATE_RIGHT")]
432    RotateRight = 1068,
433    /// (extended) Left rotation. Similar to Z3_OP_ROTATE_LEFT, but it is a binary operator instead of a parametric one.
434    #[doc(alias = "Z3_OP_EXT_ROTATE_LEFT")]
435    ExtRotateLeft = 1069,
436    /// (extended) Right rotation. Similar to Z3_OP_ROTATE_RIGHT, but it is a binary operator instead of a parametric one.
437    #[doc(alias = "Z3_OP_EXT_ROTATE_RIGHT")]
438    ExtRotateRight = 1070,
439    /// Corresponds to `Z3_OP_BIT2BOOL` in the C API.
440    #[doc(alias = "Z3_OP_BIT2BOOL")]
441    Bit2bool = 1071,
442    /// Coerce integer to bit-vector.
443    #[doc(alias = "Z3_OP_INT2BV")]
444    Int2bv = 1072,
445    /// Coerce bit-vector to integer.
446    #[doc(alias = "Z3_OP_BV2INT")]
447    Bv2int = 1073,
448    /// Coerce signed bit-vector to integer.
449    #[doc(alias = "Z3_OP_SBV2INT")]
450    Sbv2int = 1074,
451    /// Compute the carry bit in a full-adder.
452    /// The meaning is given by the equivalence
453    /// (carry l1 l2 l3) <=> (or (and l1 l2) (and l1 l3) (and l2 l3)))
454    #[doc(alias = "Z3_OP_CARRY")]
455    Carry = 1075,
456    /// Compute ternary XOR.
457    /// The meaning is given by the equivalence
458    /// (xor3 l1 l2 l3) <=> (xor (xor l1 l2) l3)
459    #[doc(alias = "Z3_OP_XOR3")]
460    Xor3 = 1076,
461    /// a predicate to check that bit-wise signed multiplication does not overflow.
462    /// Signed multiplication overflows if the operands have the same sign and the result of multiplication
463    /// does not fit within the available bits. \sa Z3_mk_bvmul_no_overflow.
464    #[doc(alias = "Z3_OP_BSMUL_NO_OVFL")]
465    BsmulNoOvfl = 1077,
466    /// check that bit-wise unsigned multiplication does not overflow.
467    /// Unsigned multiplication overflows if the result does not fit within the available bits.
468    ///
469    /// # See also
470    ///
471    /// - [`Z3_mk_bvmul_no_overflow`]
472    #[doc(alias = "Z3_OP_BUMUL_NO_OVFL")]
473    BumulNoOvfl = 1078,
474    /// check that bit-wise signed multiplication does not underflow.
475    /// Signed multiplication underflows if the operands have opposite signs and the result of multiplication
476    /// does not fit within the available bits. Z3_mk_bvmul_no_underflow.
477    #[doc(alias = "Z3_OP_BSMUL_NO_UDFL")]
478    BsmulNoUdfl = 1079,
479    /// Binary signed division.
480    /// It has the same semantics as Z3_OP_BSDIV, but created in a context where the second operand can be assumed to be non-zero.
481    #[doc(alias = "Z3_OP_BSDIV_I")]
482    BsdivI = 1080,
483    /// Binary unsigned division.
484    /// It has the same semantics as Z3_OP_BUDIV, but created in a context where the second operand can be assumed to be non-zero.
485    #[doc(alias = "Z3_OP_BUDIV_I")]
486    BudivI = 1081,
487    /// Binary signed remainder.
488    /// It has the same semantics as Z3_OP_BSREM, but created in a context where the second operand can be assumed to be non-zero.
489    #[doc(alias = "Z3_OP_BSREM_I")]
490    BsremI = 1082,
491    /// Binary unsigned remainder.
492    /// It has the same semantics as Z3_OP_BUREM, but created in a context where the second operand can be assumed to be non-zero.
493    #[doc(alias = "Z3_OP_BUREM_I")]
494    BuremI = 1083,
495    /// Binary signed modulus.
496    /// It has the same semantics as Z3_OP_BSMOD, but created in a context where the second operand can be assumed to be non-zero.
497    #[doc(alias = "Z3_OP_BSMOD_I")]
498    BsmodI = 1084,
499    /// Construct a bit-vector from Boolean bits, least-significant bit first.
500    #[doc(alias = "Z3_OP_MKBV")]
501    Mkbv = 1085,
502    /// Undef/Null proof object.
503    #[doc(alias = "Z3_OP_PR_UNDEF")]
504    PrUndef = 1280,
505    /// Proof for the expression 'true'.
506    #[doc(alias = "Z3_OP_PR_TRUE")]
507    PrTrue = 1281,
508    /// Proof for a fact asserted by the user.
509    #[doc(alias = "Z3_OP_PR_ASSERTED")]
510    PrAsserted = 1282,
511    /// Proof for a fact (tagged as goal) asserted by the user.
512    #[doc(alias = "Z3_OP_PR_GOAL")]
513    PrGoal = 1283,
514    /// Given a proof for p and a proof for (implies p q), produces a proof for q.
515    ///
516    /// T1: p
517    /// T2: (implies p q)
518    /// [mp T1 T2]: q
519    ///
520    /// The second antecedents may also be a proof for (iff p q).
521    #[doc(alias = "Z3_OP_PR_MODUS_PONENS")]
522    PrModusPonens = 1284,
523    /// A proof for (R t t), where R is a reflexive relation. This proof object has no antecedents.
524    /// The only reflexive relations that are used are
525    /// equivalence modulo namings, equality and equivalence.
526    /// That is, R is either '~', '=' or 'iff'.
527    #[doc(alias = "Z3_OP_PR_REFLEXIVITY")]
528    PrReflexivity = 1285,
529    /// Given an symmetric relation R and a proof for (R t s), produces a proof for (R s t).
530    /// ```text
531    /// T1: (R t s)
532    /// [symmetry T1]: (R s t)
533    /// ```
534    /// T1 is the antecedent of this proof object.
535    #[doc(alias = "Z3_OP_PR_SYMMETRY")]
536    PrSymmetry = 1286,
537    /// Given a transitive relation R, and proofs for (R t s) and (R s u), produces a proof
538    /// for (R t u).
539    /// ```text
540    /// T1: (R t s)
541    /// T2: (R s u)
542    /// [trans T1 T2]: (R t u)
543    /// ```
544    #[doc(alias = "Z3_OP_PR_TRANSITIVITY")]
545    PrTransitivity = 1287,
546    /// Condensed transitivity proof.
547    /// It combines several symmetry and transitivity proofs. Example:
548    /// ```text
549    /// T1: (R a b)
550    /// T2: (R c b)
551    /// T3: (R c d)
552    /// [trans* T1 T2 T3]: (R a d)
553    /// ```
554    /// R must be a symmetric and transitive relation.
555    ///
556    /// Assuming that this proof object is a proof for (R s t), then
557    /// a proof checker must check if it is possible to prove (R s t)
558    /// using the antecedents, symmetry and transitivity.  That is,
559    /// if there is a path from s to t, if we view every
560    /// antecedent (R a b) as an edge between a and b.
561    #[doc(alias = "Z3_OP_PR_TRANSITIVITY_STAR")]
562    PrTransitivityStar = 1288,
563    /// Monotonicity proof object.
564    ///
565    /// T1: (R t_1 s_1)
566    /// ...
567    /// Tn: (R t_n s_n)
568    /// [monotonicity T1 ... Tn]: (R (f t_1 ... t_n) (f s_1 ... s_n))
569    ///
570    /// Remark: if t_i == s_i, then the antecedent Ti is suppressed.
571    /// That is, reflexivity proofs are suppressed to save space.
572    #[doc(alias = "Z3_OP_PR_MONOTONICITY")]
573    PrMonotonicity = 1289,
574    /// Given a proof for (~ p q), produces a proof for (~ (forall (x) p) (forall (x) q)).
575    ///
576    /// T1: (~ p q)
577    /// [quant-intro T1]: (~ (forall (x) p) (forall (x) q))
578    #[doc(alias = "Z3_OP_PR_QUANT_INTRO")]
579    PrQuantIntro = 1290,
580    /// Given a proof p, produces a proof of lambda x . p, where x are free variables in p.
581    ///
582    /// T1: f
583    /// [proof-bind T1] forall (x) f
584    #[doc(alias = "Z3_OP_PR_BIND")]
585    PrBind = 1291,
586    /// Distributivity proof object.
587    /// Given that f (= or) distributes over g (= and), produces a proof for
588    /// ```text
589    /// (= (f a (g c d))
590    /// (g (f a c) (f a d)))
591    /// ```
592    /// If f and g are associative, this proof also justifies the following equality:
593    /// ```text
594    /// (= (f (g a b) (g c d))
595    /// (g (f a c) (f a d) (f b c) (f b d)))
596    /// ```
597    /// where each f and g can have arbitrary number of arguments.
598    ///
599    /// This proof object has no antecedents.
600    /// Remark. This rule is used by the CNF conversion pass and
601    /// instantiated by f = or, and g = and.
602    #[doc(alias = "Z3_OP_PR_DISTRIBUTIVITY")]
603    PrDistributivity = 1292,
604    /// Given a proof for (and l_1 ... l_n), produces a proof for l_i
605    ///
606    /// T1: (and l_1 ... l_n)
607    /// [and-elim T1]: l_i
608    #[doc(alias = "Z3_OP_PR_AND_ELIM")]
609    PrAndElim = 1293,
610    /// Given a proof for (not (or l_1 ... l_n)), produces a proof for (not l_i).
611    ///
612    /// T1: (not (or l_1 ... l_n))
613    /// [not-or-elim T1]: (not l_i)
614    #[doc(alias = "Z3_OP_PR_NOT_OR_ELIM")]
615    PrNotOrElim = 1294,
616    /// A proof for a local rewriting step (= t s).
617    /// The head function symbol of t is interpreted.
618    ///
619    /// This proof object has no antecedents.
620    /// The conclusion of a rewrite rule is either an equality (= t s),
621    /// an equivalence (iff t s), or equi-satisfiability (~ t s).
622    /// Remark: if f is bool, then = is iff.
623    /// Examples:
624    /// ```text
625    /// (= (+ x 0) x)
626    /// (= (+ x 1 2) (+ 3 x))
627    /// (iff (or x false) x)
628    /// ```
629    #[doc(alias = "Z3_OP_PR_REWRITE")]
630    PrRewrite = 1295,
631    /// A proof for rewriting an expression t into an expression s.
632    /// This proof object can have n antecedents.
633    /// The antecedents are proofs for equalities used as substitution rules.
634    /// The proof rule is used in a few cases. The cases are:
635    /// - When applying contextual simplification (CONTEXT_SIMPLIFIER=true)
636    /// - When converting bit-vectors to Booleans (BIT2BOOL=true)
637    #[doc(alias = "Z3_OP_PR_REWRITE_STAR")]
638    PrRewriteStar = 1296,
639    /// A proof for (iff (f (forall (x) q(x)) r) (forall (x) (f (q x) r))). This proof object has no antecedents.
640    #[doc(alias = "Z3_OP_PR_PULL_QUANT")]
641    PrPullQuant = 1297,
642    /// A proof for:
643    /// ```text
644    /// (iff (forall (x_1 ... x_m) (and p_1[x_1 ... x_m] ... p_n[x_1 ... x_m]))
645    /// (and (forall (x_1 ... x_m) p_1[x_1 ... x_m])
646    /// ...
647    /// (forall (x_1 ... x_m) p_n[x_1 ... x_m])))
648    /// ```
649    /// This proof object has no antecedents.
650    #[doc(alias = "Z3_OP_PR_PUSH_QUANT")]
651    PrPushQuant = 1298,
652    /// A proof for (iff (forall (x_1 ... x_n y_1 ... y_m) p[x_1 ... x_n])
653    /// (forall (x_1 ... x_n) p[x_1 ... x_n]))
654    ///
655    /// It is used to justify the elimination of unused variables.
656    /// This proof object has no antecedents.
657    #[doc(alias = "Z3_OP_PR_ELIM_UNUSED_VARS")]
658    PrElimUnusedVars = 1299,
659    /// A proof for destructive equality resolution:
660    /// (iff (forall (x) (or (not (= x t)) P\[x])) P\[t])
661    /// if x does not occur in t.
662    ///
663    /// This proof object has no antecedents.
664    ///
665    /// Several variables can be eliminated simultaneously.
666    #[doc(alias = "Z3_OP_PR_DER")]
667    PrDer = 1300,
668    /// A proof of (or (not (forall (x) (P x))) (P a))
669    #[doc(alias = "Z3_OP_PR_QUANT_INST")]
670    PrQuantInst = 1301,
671    /// Mark a hypothesis in a natural deduction style proof.
672    #[doc(alias = "Z3_OP_PR_HYPOTHESIS")]
673    PrHypothesis = 1302,
674    ///
675    /// T1: false
676    /// [lemma T1]: (or (not l_1) ... (not l_n))
677    ///
678    /// This proof object has one antecedent: a hypothetical proof for false.
679    /// It converts the proof in a proof for (or (not l_1) ... (not l_n)),
680    /// when T1 contains the open hypotheses: l_1, ..., l_n.
681    /// The hypotheses are closed after an application of a lemma.
682    /// Furthermore, there are no other open hypotheses in the subtree covered by
683    /// the lemma.
684    #[doc(alias = "Z3_OP_PR_LEMMA")]
685    PrLemma = 1303,
686    /// ```text
687    /// T1:      (or l_1 ... l_n l_1' ... l_m')
688    /// T2:      (not l_1)
689    /// ...
690    /// T(n+1):  (not l_n)
691    /// [unit-resolution T1 ... T(n+1)]: (or l_1' ... l_m')
692    /// ```
693    #[doc(alias = "Z3_OP_PR_UNIT_RESOLUTION")]
694    PrUnitResolution = 1304,
695    /// ```text
696    /// T1: p
697    /// [iff-true T1]: (iff p true)
698    /// ```
699    #[doc(alias = "Z3_OP_PR_IFF_TRUE")]
700    PrIffTrue = 1305,
701    /// ```text
702    /// T1: (not p)
703    /// [iff-false T1]: (iff p false)
704    /// ```
705    #[doc(alias = "Z3_OP_PR_IFF_FALSE")]
706    PrIffFalse = 1306,
707    ///
708    /// \[comm\]: (= (f a b) (f b a))
709    ///
710    /// f is a commutative operator.
711    ///
712    /// This proof object has no antecedents.
713    /// Remark: if f is bool, then = is iff.
714    #[doc(alias = "Z3_OP_PR_COMMUTATIVITY")]
715    PrCommutativity = 1307,
716    /// Proof object used to justify Tseitin's like axioms:
717    /// ```text
718    /// (or (not (and p q)) p)
719    /// (or (not (and p q)) q)
720    /// (or (not (and p q r)) p)
721    /// (or (not (and p q r)) q)
722    /// (or (not (and p q r)) r)
723    /// ...
724    /// (or (and p q) (not p) (not q))
725    /// (or (not (or p q)) p q)
726    /// (or (or p q) (not p))
727    /// (or (or p q) (not q))
728    /// (or (not (iff p q)) (not p) q)
729    /// (or (not (iff p q)) p (not q))
730    /// (or (iff p q) (not p) (not q))
731    /// (or (iff p q) p q)
732    /// (or (not (ite a b c)) (not a) b)
733    /// (or (not (ite a b c)) a c)
734    /// (or (ite a b c) (not a) (not b))
735    /// (or (ite a b c) a (not c))
736    /// (or (not (not a)) (not a))
737    /// (or (not a) a)
738    /// ```
739    /// This proof object has no antecedents.
740    /// Note: all axioms are propositional tautologies.
741    /// Note also that 'and' and 'or' can take multiple arguments.
742    /// You can recover the propositional tautologies by
743    /// unfolding the Boolean connectives in the axioms a small
744    /// bounded number of steps (=3).
745    #[doc(alias = "Z3_OP_PR_DEF_AXIOM")]
746    PrDefAxiom = 1308,
747    /// Clausal proof adding axiom
748    #[doc(alias = "Z3_OP_PR_ASSUMPTION_ADD")]
749    PrAssumptionAdd = 1309,
750    /// Clausal proof lemma addition
751    #[doc(alias = "Z3_OP_PR_LEMMA_ADD")]
752    PrLemmaAdd = 1310,
753    /// Clausal proof lemma deletion
754    #[doc(alias = "Z3_OP_PR_REDUNDANT_DEL")]
755    PrRedundantDel = 1311,
756    /// ,
757    /// Clausal proof trail of additions and deletions
758    #[doc(alias = "Z3_OP_PR_CLAUSE_TRAIL")]
759    PrClauseTrail = 1312,
760    /// Introduces a name for a formula/term.
761    /// Suppose e is an expression with free variables x, and def-intro
762    /// introduces the name n(x). The possible cases are:
763    ///
764    /// When e is of Boolean type:
765    /// \[def-intro\]: (and (or n (not e)) (or (not n) e))
766    ///
767    /// or:
768    /// \[def-intro\]: (or (not n) e)
769    /// when e only occurs positively.
770    ///
771    /// When e is of the form (ite cond th el):
772    /// \[def-intro\]: (and (or (not cond) (= n th)) (or cond (= n el)))
773    ///
774    /// Otherwise:
775    /// \[def-intro\]: (= n e)
776    #[doc(alias = "Z3_OP_PR_DEF_INTRO")]
777    PrDefIntro = 1313,
778    ///
779    /// [apply-def T1]: F ~ n
780    ///
781    /// F is 'equivalent' to n, given that T1 is a proof that
782    /// n is a name for F.
783    #[doc(alias = "Z3_OP_PR_APPLY_DEF")]
784    PrApplyDef = 1314,
785    ///
786    /// T1: (iff p q)
787    /// [iff~ T1]: (~ p q)
788    #[doc(alias = "Z3_OP_PR_IFF_OEQ")]
789    PrIffOeq = 1315,
790    /// Proof for a (positive) NNF step. Example:
791    ///
792    /// T1: (not s_1) ~ r_1
793    /// T2: (not s_2) ~ r_2
794    /// T3: s_1 ~ r_1'
795    /// T4: s_2 ~ r_2'
796    /// [nnf-pos T1 T2 T3 T4]: (~ (iff s_1 s_2) (and (or r_1 r_2') (or r_1' r_2)))
797    ///
798    /// The negation normal form steps NNF_POS and NNF_NEG are used in the following cases:
799    /// (a) When creating the NNF of a positive force quantifier.
800    /// The quantifier is retained (unless the bound variables are eliminated).
801    /// Example
802    ///
803    /// T1: q ~ q_new
804    /// [nnf-pos T1]: (~ (forall (x T) q) (forall (x T) q_new))
805    ///
806    /// (b) When recursively creating NNF over Boolean formulas, where the top-level
807    /// connective is changed during NNF conversion. The relevant Boolean connectives
808    /// for NNF_POS are 'implies', 'iff', 'xor', 'ite'.
809    /// NNF_NEG furthermore handles the case where negation is pushed
810    /// over Boolean connectives 'and' and 'or'.
811    #[doc(alias = "Z3_OP_PR_NNF_POS")]
812    PrNnfPos = 1316,
813    /// Proof for a (negative) NNF step. Examples:
814    ///
815    /// T1: (not s_1) ~ r_1
816    /// ...
817    /// Tn: (not s_n) ~ r_n
818    /// [nnf-neg T1 ... Tn]: (not (and s_1 ... s_n)) ~ (or r_1 ... r_n)
819    ///
820    /// and
821    ///
822    /// T1: (not s_1) ~ r_1
823    /// ...
824    /// Tn: (not s_n) ~ r_n
825    /// [nnf-neg T1 ... Tn]: (not (or s_1 ... s_n)) ~ (and r_1 ... r_n)
826    ///
827    /// and
828    ///
829    /// T1: (not s_1) ~ r_1
830    /// T2: (not s_2) ~ r_2
831    /// T3: s_1 ~ r_1'
832    /// T4: s_2 ~ r_2'
833    /// [nnf-neg T1 T2 T3 T4]: (~ (not (iff s_1 s_2))
834    /// (and (or r_1 r_2) (or r_1' r_2')))
835    #[doc(alias = "Z3_OP_PR_NNF_NEG")]
836    PrNnfNeg = 1317,
837    /// Proof for:
838    ///
839    /// \[sk\]: (~ (not (forall x (p x y))) (not (p (sk y) y)))
840    /// \[sk\]: (~ (exists x (p x y)) (p (sk y) y))
841    ///
842    /// This proof object has no antecedents.
843    #[doc(alias = "Z3_OP_PR_SKOLEMIZE")]
844    PrSkolemize = 1318,
845    /// Modus ponens style rule for equi-satisfiability.
846    ///
847    /// T1: p
848    /// T2: (~ p q)
849    /// [mp~ T1 T2]: q
850    #[doc(alias = "Z3_OP_PR_MODUS_PONENS_OEQ")]
851    PrModusPonensOeq = 1319,
852    /// Generic proof for theory lemmas.
853    /// The theory lemma function comes with one or more parameters.
854    /// The first parameter indicates the name of the theory.
855    /// For the theory of arithmetic, additional parameters provide hints for
856    /// checking the theory lemma.
857    /// The hints for arithmetic are:
858    ///
859    /// - farkas - followed by rational coefficients. Multiply the coefficients to the
860    /// inequalities in the lemma, add the (negated) inequalities and obtain a contradiction.
861    ///
862    /// - triangle-eq - Indicates a lemma related to the equivalence:
863    ///
864    /// (iff (= t1 t2) (and (<= t1 t2) (<= t2 t1)))
865    ///
866    /// - gcd-test - Indicates an integer linear arithmetic lemma that uses a gcd test.
867    #[doc(alias = "Z3_OP_PR_TH_LEMMA")]
868    PrThLemma = 1320,
869    /// Hyper-resolution rule.
870    ///
871    /// The premises of the rules is a sequence of clauses.
872    /// The first clause argument is the main clause of the rule.
873    /// with a literal from the first (main) clause.
874    ///
875    /// Premises of the rules are of the form
876    /// ```text
877    /// (or l0 l1 l2 .. ln)
878    /// ```
879    /// or
880    /// ```text
881    /// (=> (and l1 l2 .. ln) l0)
882    /// ```
883    /// or in the most general (ground) form:
884    /// ```text
885    /// (=> (and ln+1 ln+2 .. ln+m) (or l0 l1 .. ln))
886    /// ```
887    /// In other words we use the following (Prolog style) convention for Horn
888    /// implications:
889    /// The head of a Horn implication is position 0,
890    /// the first conjunct in the body of an implication is position 1
891    /// the second conjunct in the body of an implication is position 2
892    ///
893    /// For general implications where the head is a disjunction, the
894    /// first n positions correspond to the n disjuncts in the head.
895    /// The next m positions correspond to the m conjuncts in the body.
896    ///
897    /// The premises can be universally quantified so that the most
898    /// general non-ground form is:
899    ///
900    /// ```text
901    /// (forall (vars) (=> (and ln+1 ln+2 .. ln+m) (or l0 l1 .. ln)))
902    /// ```
903    ///
904    /// The hyper-resolution rule takes a sequence of parameters.
905    /// The parameters are substitutions of bound variables separated by pairs
906    /// of literal positions from the main clause and side clause.
907    #[doc(alias = "Z3_OP_PR_HYPER_RESOLVE")]
908    PrHyperResolve = 1321,
909    /// Clausal proof theory axiom addition, optionally carrying a proof certificate.
910    #[doc(alias = "Z3_OP_PR_TH_ASSUMPTION_ADD")]
911    PrThAssumptionAdd = 1322,
912    /// Clausal proof theory lemma addition, optionally carrying a proof certificate.
913    #[doc(alias = "Z3_OP_PR_TH_LEMMA_ADD")]
914    PrThLemmaAdd = 1323,
915    /// Insert a record into a relation.
916    /// The function takes `n`+1 arguments, where the first argument is the relation and the remaining `n` elements
917    /// correspond to the `n` columns of the relation.
918    #[doc(alias = "Z3_OP_RA_STORE")]
919    RaStore = 1536,
920    /// Creates the empty relation.
921    #[doc(alias = "Z3_OP_RA_EMPTY")]
922    RaEmpty = 1537,
923    /// Tests if the relation is empty.
924    #[doc(alias = "Z3_OP_RA_IS_EMPTY")]
925    RaIsEmpty = 1538,
926    /// Create the relational join.
927    #[doc(alias = "Z3_OP_RA_JOIN")]
928    RaJoin = 1539,
929    /// Create the union or convex hull of two relations.
930    /// The function takes two arguments.
931    #[doc(alias = "Z3_OP_RA_UNION")]
932    RaUnion = 1540,
933    /// Widen two relations.
934    /// The function takes two arguments.
935    #[doc(alias = "Z3_OP_RA_WIDEN")]
936    RaWiden = 1541,
937    /// Project the columns (provided as numbers in the parameters).
938    /// The function takes one argument.
939    #[doc(alias = "Z3_OP_RA_PROJECT")]
940    RaProject = 1542,
941    /// Filter (restrict) a relation with respect to a predicate.
942    /// The first argument is a relation.
943    /// The second argument is a predicate with free de-Bruijn indices
944    /// corresponding to the columns of the relation.
945    /// So the first column in the relation has index 0.
946    #[doc(alias = "Z3_OP_RA_FILTER")]
947    RaFilter = 1543,
948    /// Intersect the first relation with respect to negation
949    /// of the second relation (the function takes two arguments).
950    /// Logically, the specification can be described by a function
951    ///
952    /// target = filter_by_negation(pos, neg, columns)
953    ///
954    /// where columns are pairs c1, d1, .., cN, dN of columns from pos and neg, such that
955    /// target are elements in x in pos, such that there is no y in neg that agrees with
956    /// x on the columns c1, d1, .., cN, dN.
957    #[doc(alias = "Z3_OP_RA_NEGATION_FILTER")]
958    RaNegationFilter = 1544,
959    /// rename columns in the relation.
960    /// The function takes one argument.
961    /// The parameters contain the renaming as a cycle.
962    #[doc(alias = "Z3_OP_RA_RENAME")]
963    RaRename = 1545,
964    /// Complement the relation.
965    #[doc(alias = "Z3_OP_RA_COMPLEMENT")]
966    RaComplement = 1546,
967    /// Check if a record is an element of the relation.
968    /// The function takes `n`+1 arguments, where the first argument is a relation,
969    /// and the remaining `n` arguments correspond to a record.
970    #[doc(alias = "Z3_OP_RA_SELECT")]
971    RaSelect = 1547,
972    /// Create a fresh copy (clone) of a relation.
973    /// The function is logically the identity, but
974    /// in the context of a register machine allows
975    /// for `Z3_OP_RA_UNION` to perform destructive updates to the first argument.
976    #[doc(alias = "Z3_OP_RA_CLONE")]
977    RaClone = 1548,
978    /// Corresponds to `Z3_OP_FD_CONSTANT` in the C API.
979    #[doc(alias = "Z3_OP_FD_CONSTANT")]
980    FdConstant = 1549,
981    /// A less than predicate over the finite domain Z3_FINITE_DOMAIN_SORT.
982    #[doc(alias = "Z3_OP_FD_LT")]
983    FdLt = 1550,
984    /// Corresponds to `Z3_OP_SEQ_UNIT` in the C API.
985    #[doc(alias = "Z3_OP_SEQ_UNIT")]
986    SeqUnit = 1551,
987    /// Corresponds to `Z3_OP_SEQ_EMPTY` in the C API.
988    #[doc(alias = "Z3_OP_SEQ_EMPTY")]
989    SeqEmpty = 1552,
990    /// Corresponds to `Z3_OP_SEQ_CONCAT` in the C API.
991    #[doc(alias = "Z3_OP_SEQ_CONCAT")]
992    SeqConcat = 1553,
993    /// Corresponds to `Z3_OP_SEQ_PREFIX` in the C API.
994    #[doc(alias = "Z3_OP_SEQ_PREFIX")]
995    SeqPrefix = 1554,
996    /// Corresponds to `Z3_OP_SEQ_SUFFIX` in the C API.
997    #[doc(alias = "Z3_OP_SEQ_SUFFIX")]
998    SeqSuffix = 1555,
999    /// Corresponds to `Z3_OP_SEQ_CONTAINS` in the C API.
1000    #[doc(alias = "Z3_OP_SEQ_CONTAINS")]
1001    SeqContains = 1556,
1002    /// Corresponds to `Z3_OP_SEQ_EXTRACT` in the C API.
1003    #[doc(alias = "Z3_OP_SEQ_EXTRACT")]
1004    SeqExtract = 1557,
1005    /// Corresponds to `Z3_OP_SEQ_REPLACE` in the C API.
1006    #[doc(alias = "Z3_OP_SEQ_REPLACE")]
1007    SeqReplace = 1558,
1008    /// Corresponds to `Z3_OP_SEQ_REPLACE_RE` in the C API.
1009    #[doc(alias = "Z3_OP_SEQ_REPLACE_RE")]
1010    SeqReplaceRe = 1559,
1011    /// Corresponds to `Z3_OP_SEQ_REPLACE_RE_ALL` in the C API.
1012    #[doc(alias = "Z3_OP_SEQ_REPLACE_RE_ALL")]
1013    SeqReplaceReAll = 1560,
1014    /// Corresponds to `Z3_OP_SEQ_REPLACE_ALL` in the C API.
1015    #[doc(alias = "Z3_OP_SEQ_REPLACE_ALL")]
1016    SeqReplaceAll = 1561,
1017    /// Corresponds to `Z3_OP_SEQ_AT` in the C API.
1018    #[doc(alias = "Z3_OP_SEQ_AT")]
1019    SeqAt = 1562,
1020    /// Corresponds to `Z3_OP_SEQ_NTH` in the C API.
1021    #[doc(alias = "Z3_OP_SEQ_NTH")]
1022    SeqNth = 1563,
1023    /// Corresponds to `Z3_OP_SEQ_LENGTH` in the C API.
1024    #[doc(alias = "Z3_OP_SEQ_LENGTH")]
1025    SeqLength = 1564,
1026    /// Corresponds to `Z3_OP_SEQ_INDEX` in the C API.
1027    #[doc(alias = "Z3_OP_SEQ_INDEX")]
1028    SeqIndex = 1565,
1029    /// Corresponds to `Z3_OP_SEQ_LAST_INDEX` in the C API.
1030    #[doc(alias = "Z3_OP_SEQ_LAST_INDEX")]
1031    SeqLastIndex = 1566,
1032    /// Corresponds to `Z3_OP_SEQ_TO_RE` in the C API.
1033    #[doc(alias = "Z3_OP_SEQ_TO_RE")]
1034    SeqToRe = 1567,
1035    /// Corresponds to `Z3_OP_SEQ_IN_RE` in the C API.
1036    #[doc(alias = "Z3_OP_SEQ_IN_RE")]
1037    SeqInRe = 1568,
1038    /// Corresponds to `Z3_OP_SEQ_MAP` in the C API.
1039    #[doc(alias = "Z3_OP_SEQ_MAP")]
1040    SeqMap = 1569,
1041    /// Corresponds to `Z3_OP_SEQ_MAPI` in the C API.
1042    #[doc(alias = "Z3_OP_SEQ_MAPI")]
1043    SeqMapi = 1570,
1044    /// Corresponds to `Z3_OP_SEQ_FOLDL` in the C API.
1045    #[doc(alias = "Z3_OP_SEQ_FOLDL")]
1046    SeqFoldl = 1571,
1047    /// Corresponds to `Z3_OP_SEQ_FOLDLI` in the C API.
1048    #[doc(alias = "Z3_OP_SEQ_FOLDLI")]
1049    SeqFoldli = 1572,
1050    /// Corresponds to `Z3_OP_SEQ_POWER` in the C API.
1051    #[doc(alias = "Z3_OP_SEQ_POWER")]
1052    SeqPower = 1573,
1053    /// Corresponds to `Z3_OP_STR_TO_INT` in the C API.
1054    #[doc(alias = "Z3_OP_STR_TO_INT")]
1055    StrToInt = 1574,
1056    /// Corresponds to `Z3_OP_INT_TO_STR` in the C API.
1057    #[doc(alias = "Z3_OP_INT_TO_STR")]
1058    IntToStr = 1575,
1059    /// Corresponds to `Z3_OP_UBV_TO_STR` in the C API.
1060    #[doc(alias = "Z3_OP_UBV_TO_STR")]
1061    UbvToStr = 1576,
1062    /// Corresponds to `Z3_OP_SBV_TO_STR` in the C API.
1063    #[doc(alias = "Z3_OP_SBV_TO_STR")]
1064    SbvToStr = 1577,
1065    /// Corresponds to `Z3_OP_STR_TO_CODE` in the C API.
1066    #[doc(alias = "Z3_OP_STR_TO_CODE")]
1067    StrToCode = 1578,
1068    /// Corresponds to `Z3_OP_STR_FROM_CODE` in the C API.
1069    #[doc(alias = "Z3_OP_STR_FROM_CODE")]
1070    StrFromCode = 1579,
1071    /// Corresponds to `Z3_OP_STRING_LT` in the C API.
1072    #[doc(alias = "Z3_OP_STRING_LT")]
1073    StringLt = 1580,
1074    /// Corresponds to `Z3_OP_STRING_LE` in the C API.
1075    #[doc(alias = "Z3_OP_STRING_LE")]
1076    StringLe = 1581,
1077    /// Corresponds to `Z3_OP_RE_PLUS` in the C API.
1078    #[doc(alias = "Z3_OP_RE_PLUS")]
1079    RePlus = 1582,
1080    /// Corresponds to `Z3_OP_RE_STAR` in the C API.
1081    #[doc(alias = "Z3_OP_RE_STAR")]
1082    ReStar = 1583,
1083    /// Corresponds to `Z3_OP_RE_OPTION` in the C API.
1084    #[doc(alias = "Z3_OP_RE_OPTION")]
1085    ReOption = 1584,
1086    /// Corresponds to `Z3_OP_RE_CONCAT` in the C API.
1087    #[doc(alias = "Z3_OP_RE_CONCAT")]
1088    ReConcat = 1585,
1089    /// Corresponds to `Z3_OP_RE_UNION` in the C API.
1090    #[doc(alias = "Z3_OP_RE_UNION")]
1091    ReUnion = 1586,
1092    /// Corresponds to `Z3_OP_RE_RANGE` in the C API.
1093    #[doc(alias = "Z3_OP_RE_RANGE")]
1094    ReRange = 1587,
1095    /// Corresponds to `Z3_OP_RE_DIFF` in the C API.
1096    #[doc(alias = "Z3_OP_RE_DIFF")]
1097    ReDiff = 1588,
1098    /// Corresponds to `Z3_OP_RE_INTERSECT` in the C API.
1099    #[doc(alias = "Z3_OP_RE_INTERSECT")]
1100    ReIntersect = 1589,
1101    /// Corresponds to `Z3_OP_RE_LOOP` in the C API.
1102    #[doc(alias = "Z3_OP_RE_LOOP")]
1103    ReLoop = 1590,
1104    /// Corresponds to `Z3_OP_RE_POWER` in the C API.
1105    #[doc(alias = "Z3_OP_RE_POWER")]
1106    RePower = 1591,
1107    /// Corresponds to `Z3_OP_RE_COMPLEMENT` in the C API.
1108    #[doc(alias = "Z3_OP_RE_COMPLEMENT")]
1109    ReComplement = 1592,
1110    /// Corresponds to `Z3_OP_RE_EMPTY_SET` in the C API.
1111    #[doc(alias = "Z3_OP_RE_EMPTY_SET")]
1112    ReEmptySet = 1593,
1113    /// Corresponds to `Z3_OP_RE_FULL_SET` in the C API.
1114    #[doc(alias = "Z3_OP_RE_FULL_SET")]
1115    ReFullSet = 1594,
1116    /// Corresponds to `Z3_OP_RE_FULL_CHAR_SET` in the C API.
1117    #[doc(alias = "Z3_OP_RE_FULL_CHAR_SET")]
1118    ReFullCharSet = 1595,
1119    /// Corresponds to `Z3_OP_RE_OF_PRED` in the C API.
1120    #[doc(alias = "Z3_OP_RE_OF_PRED")]
1121    ReOfPred = 1596,
1122    /// Corresponds to `Z3_OP_RE_REVERSE` in the C API.
1123    #[doc(alias = "Z3_OP_RE_REVERSE")]
1124    ReReverse = 1597,
1125    /// Corresponds to `Z3_OP_RE_DERIVATIVE` in the C API.
1126    #[doc(alias = "Z3_OP_RE_DERIVATIVE")]
1127    ReDerivative = 1598,
1128    /// Corresponds to `Z3_OP_CHAR_CONST` in the C API.
1129    #[doc(alias = "Z3_OP_CHAR_CONST")]
1130    CharConst = 1599,
1131    /// Corresponds to `Z3_OP_CHAR_LE` in the C API.
1132    #[doc(alias = "Z3_OP_CHAR_LE")]
1133    CharLe = 1600,
1134    /// Corresponds to `Z3_OP_CHAR_TO_INT` in the C API.
1135    #[doc(alias = "Z3_OP_CHAR_TO_INT")]
1136    CharToInt = 1601,
1137    /// Corresponds to `Z3_OP_CHAR_TO_BV` in the C API.
1138    #[doc(alias = "Z3_OP_CHAR_TO_BV")]
1139    CharToBv = 1602,
1140    /// Corresponds to `Z3_OP_CHAR_FROM_BV` in the C API.
1141    #[doc(alias = "Z3_OP_CHAR_FROM_BV")]
1142    CharFromBv = 1603,
1143    /// Corresponds to `Z3_OP_CHAR_IS_DIGIT` in the C API.
1144    #[doc(alias = "Z3_OP_CHAR_IS_DIGIT")]
1145    CharIsDigit = 1604,
1146    /// A label (used by the Boogie Verification condition generator).
1147    /// The label has two parameters, a string and a Boolean polarity.
1148    /// It takes one argument, a formula.
1149    #[doc(alias = "Z3_OP_LABEL")]
1150    Label = 1792,
1151    /// A label literal (used by the Boogie Verification condition generator).
1152    /// A label literal has a set of string parameters. It takes no arguments.
1153    #[doc(alias = "Z3_OP_LABEL_LIT")]
1154    LabelLit = 1793,
1155    /// datatype constructor.
1156    #[doc(alias = "Z3_OP_DT_CONSTRUCTOR")]
1157    DtConstructor = 2048,
1158    /// datatype recognizer.
1159    #[doc(alias = "Z3_OP_DT_RECOGNISER")]
1160    DtRecogniser = 2049,
1161    /// datatype recognizer.
1162    #[doc(alias = "Z3_OP_DT_IS")]
1163    DtIs = 2050,
1164    /// datatype accessor.
1165    #[doc(alias = "Z3_OP_DT_ACCESSOR")]
1166    DtAccessor = 2051,
1167    /// datatype field update.
1168    #[doc(alias = "Z3_OP_DT_UPDATE_FIELD")]
1169    DtUpdateField = 2052,
1170    /// Cardinality constraint.
1171    /// E.g., x + y + z <= 2
1172    #[doc(alias = "Z3_OP_PB_AT_MOST")]
1173    PbAtMost = 2304,
1174    /// Cardinality constraint.
1175    /// E.g., x + y + z >= 2
1176    #[doc(alias = "Z3_OP_PB_AT_LEAST")]
1177    PbAtLeast = 2305,
1178    /// Generalized Pseudo-Boolean cardinality constraint.
1179    /// Example  2*x + 3*y <= 4
1180    #[doc(alias = "Z3_OP_PB_LE")]
1181    PbLe = 2306,
1182    /// Generalized Pseudo-Boolean cardinality constraint.
1183    /// Example  2*x + 3*y + 2*z >= 4
1184    #[doc(alias = "Z3_OP_PB_GE")]
1185    PbGe = 2307,
1186    /// Generalized Pseudo-Boolean equality constraint.
1187    /// Example  2*x + 1*y + 2*z + 1*u = 4
1188    #[doc(alias = "Z3_OP_PB_EQ")]
1189    PbEq = 2308,
1190    /// A relation that is a total linear order
1191    #[doc(alias = "Z3_OP_SPECIAL_RELATION_LO")]
1192    SpecialRelationLo = 40960,
1193    /// A relation that is a partial order
1194    #[doc(alias = "Z3_OP_SPECIAL_RELATION_PO")]
1195    SpecialRelationPo = 40961,
1196    /// A relation that is a piecewise linear order
1197    #[doc(alias = "Z3_OP_SPECIAL_RELATION_PLO")]
1198    SpecialRelationPlo = 40962,
1199    /// A relation that is a tree order
1200    #[doc(alias = "Z3_OP_SPECIAL_RELATION_TO")]
1201    SpecialRelationTo = 40963,
1202    /// Transitive closure of a relation
1203    #[doc(alias = "Z3_OP_SPECIAL_RELATION_TC")]
1204    SpecialRelationTc = 40964,
1205    /// Transitive reflexive closure of a relation
1206    #[doc(alias = "Z3_OP_SPECIAL_RELATION_TRC")]
1207    SpecialRelationTrc = 40965,
1208    /// Floating-point rounding mode RNE
1209    #[doc(alias = "Z3_OP_FPA_RM_NEAREST_TIES_TO_EVEN")]
1210    FpaRmNearestTiesToEven = 45056,
1211    /// Floating-point rounding mode RNA
1212    #[doc(alias = "Z3_OP_FPA_RM_NEAREST_TIES_TO_AWAY")]
1213    FpaRmNearestTiesToAway = 45057,
1214    /// Floating-point rounding mode RTP
1215    #[doc(alias = "Z3_OP_FPA_RM_TOWARD_POSITIVE")]
1216    FpaRmTowardPositive = 45058,
1217    /// Floating-point rounding mode RTN
1218    #[doc(alias = "Z3_OP_FPA_RM_TOWARD_NEGATIVE")]
1219    FpaRmTowardNegative = 45059,
1220    /// Floating-point rounding mode RTZ
1221    #[doc(alias = "Z3_OP_FPA_RM_TOWARD_ZERO")]
1222    FpaRmTowardZero = 45060,
1223    /// Floating-point value
1224    #[doc(alias = "Z3_OP_FPA_NUM")]
1225    FpaNum = 45061,
1226    /// Floating-point +oo
1227    #[doc(alias = "Z3_OP_FPA_PLUS_INF")]
1228    FpaPlusInf = 45062,
1229    /// Floating-point -oo
1230    #[doc(alias = "Z3_OP_FPA_MINUS_INF")]
1231    FpaMinusInf = 45063,
1232    /// Floating-point NaN
1233    #[doc(alias = "Z3_OP_FPA_NAN")]
1234    FpaNan = 45064,
1235    /// Floating-point +zero
1236    #[doc(alias = "Z3_OP_FPA_PLUS_ZERO")]
1237    FpaPlusZero = 45065,
1238    /// Floating-point -zero
1239    #[doc(alias = "Z3_OP_FPA_MINUS_ZERO")]
1240    FpaMinusZero = 45066,
1241    /// Floating-point addition
1242    #[doc(alias = "Z3_OP_FPA_ADD")]
1243    FpaAdd = 45067,
1244    /// Floating-point subtraction
1245    #[doc(alias = "Z3_OP_FPA_SUB")]
1246    FpaSub = 45068,
1247    /// Floating-point negation
1248    #[doc(alias = "Z3_OP_FPA_NEG")]
1249    FpaNeg = 45069,
1250    /// Floating-point multiplication
1251    #[doc(alias = "Z3_OP_FPA_MUL")]
1252    FpaMul = 45070,
1253    /// Floating-point division
1254    #[doc(alias = "Z3_OP_FPA_DIV")]
1255    FpaDiv = 45071,
1256    /// Floating-point remainder
1257    #[doc(alias = "Z3_OP_FPA_REM")]
1258    FpaRem = 45072,
1259    /// Floating-point absolute value
1260    #[doc(alias = "Z3_OP_FPA_ABS")]
1261    FpaAbs = 45073,
1262    /// Floating-point minimum
1263    #[doc(alias = "Z3_OP_FPA_MIN")]
1264    FpaMin = 45074,
1265    /// Floating-point maximum
1266    #[doc(alias = "Z3_OP_FPA_MAX")]
1267    FpaMax = 45075,
1268    /// Floating-point fused multiply-add
1269    #[doc(alias = "Z3_OP_FPA_FMA")]
1270    FpaFma = 45076,
1271    /// Floating-point square root
1272    #[doc(alias = "Z3_OP_FPA_SQRT")]
1273    FpaSqrt = 45077,
1274    /// Floating-point round to integral
1275    #[doc(alias = "Z3_OP_FPA_ROUND_TO_INTEGRAL")]
1276    FpaRoundToIntegral = 45078,
1277    /// Floating-point equality
1278    #[doc(alias = "Z3_OP_FPA_EQ")]
1279    FpaEq = 45079,
1280    /// Floating-point less than
1281    #[doc(alias = "Z3_OP_FPA_LT")]
1282    FpaLt = 45080,
1283    /// Floating-point greater than
1284    #[doc(alias = "Z3_OP_FPA_GT")]
1285    FpaGt = 45081,
1286    /// Floating-point less than or equal
1287    #[doc(alias = "Z3_OP_FPA_LE")]
1288    FpaLe = 45082,
1289    /// Floating-point greater than or equal
1290    #[doc(alias = "Z3_OP_FPA_GE")]
1291    FpaGe = 45083,
1292    /// Floating-point isNaN
1293    #[doc(alias = "Z3_OP_FPA_IS_NAN")]
1294    FpaIsNan = 45084,
1295    /// Floating-point isInfinite
1296    #[doc(alias = "Z3_OP_FPA_IS_INF")]
1297    FpaIsInf = 45085,
1298    /// Floating-point isZero
1299    #[doc(alias = "Z3_OP_FPA_IS_ZERO")]
1300    FpaIsZero = 45086,
1301    /// Floating-point isNormal
1302    #[doc(alias = "Z3_OP_FPA_IS_NORMAL")]
1303    FpaIsNormal = 45087,
1304    /// Floating-point isSubnormal
1305    #[doc(alias = "Z3_OP_FPA_IS_SUBNORMAL")]
1306    FpaIsSubnormal = 45088,
1307    /// Floating-point isNegative
1308    #[doc(alias = "Z3_OP_FPA_IS_NEGATIVE")]
1309    FpaIsNegative = 45089,
1310    /// Floating-point isPositive
1311    #[doc(alias = "Z3_OP_FPA_IS_POSITIVE")]
1312    FpaIsPositive = 45090,
1313    /// Floating-point constructor from 3 bit-vectors
1314    #[doc(alias = "Z3_OP_FPA_FP")]
1315    FpaFp = 45091,
1316    /// Floating-point conversion (various)
1317    #[doc(alias = "Z3_OP_FPA_TO_FP")]
1318    FpaToFp = 45092,
1319    /// Floating-point conversion from unsigned bit-vector
1320    #[doc(alias = "Z3_OP_FPA_TO_FP_UNSIGNED")]
1321    FpaToFpUnsigned = 45093,
1322    /// Floating-point conversion to unsigned bit-vector
1323    #[doc(alias = "Z3_OP_FPA_TO_UBV")]
1324    FpaToUbv = 45094,
1325    /// Floating-point conversion to signed bit-vector
1326    #[doc(alias = "Z3_OP_FPA_TO_SBV")]
1327    FpaToSbv = 45095,
1328    /// Floating-point conversion to real number
1329    #[doc(alias = "Z3_OP_FPA_TO_REAL")]
1330    FpaToReal = 45096,
1331    /// Floating-point conversion to IEEE-754 bit-vector
1332    #[doc(alias = "Z3_OP_FPA_TO_IEEE_BV")]
1333    FpaToIeeeBv = 45097,
1334    /// (Implicitly) represents the internal bitvector-
1335    /// representation of a floating-point term (used for the lazy encoding
1336    /// of non-relevant terms in theory_fpa)
1337    #[doc(alias = "Z3_OP_FPA_BVWRAP")]
1338    FpaBvwrap = 45098,
1339    /// Conversion of a 3-bit bit-vector term to a
1340    /// floating-point rounding-mode term
1341    ///
1342    /// The conversion uses the following values:
1343    /// 0 = 000 = Z3_OP_FPA_RM_NEAREST_TIES_TO_EVEN,
1344    /// 1 = 001 = Z3_OP_FPA_RM_NEAREST_TIES_TO_AWAY,
1345    /// 2 = 010 = Z3_OP_FPA_RM_TOWARD_POSITIVE,
1346    /// 3 = 011 = Z3_OP_FPA_RM_TOWARD_NEGATIVE,
1347    /// 4 = 100 = Z3_OP_FPA_RM_TOWARD_ZERO.
1348    #[doc(alias = "Z3_OP_FPA_BV2RM")]
1349    FpaBv2rm = 45099,
1350    /// Empty finite set.
1351    #[doc(alias = "Z3_OP_FINITE_SET_EMPTY")]
1352    FiniteSetEmpty = 49152,
1353    /// Finite set containing a single element.
1354    #[doc(alias = "Z3_OP_FINITE_SET_SINGLETON")]
1355    FiniteSetSingleton = 49153,
1356    /// Union of two finite sets.
1357    #[doc(alias = "Z3_OP_FINITE_SET_UNION")]
1358    FiniteSetUnion = 49154,
1359    /// Intersection of two finite sets.
1360    #[doc(alias = "Z3_OP_FINITE_SET_INTERSECT")]
1361    FiniteSetIntersect = 49155,
1362    /// Difference of two finite sets.
1363    #[doc(alias = "Z3_OP_FINITE_SET_DIFFERENCE")]
1364    FiniteSetDifference = 49156,
1365    /// Membership predicate for finite sets.
1366    #[doc(alias = "Z3_OP_FINITE_SET_IN")]
1367    FiniteSetIn = 49157,
1368    /// Cardinality of a finite set.
1369    #[doc(alias = "Z3_OP_FINITE_SET_SIZE")]
1370    FiniteSetSize = 49158,
1371    /// Subset predicate for finite sets.
1372    #[doc(alias = "Z3_OP_FINITE_SET_SUBSET")]
1373    FiniteSetSubset = 49159,
1374    /// Map operation on finite sets.
1375    #[doc(alias = "Z3_OP_FINITE_SET_MAP")]
1376    FiniteSetMap = 49160,
1377    /// Filter operation on finite sets.
1378    #[doc(alias = "Z3_OP_FINITE_SET_FILTER")]
1379    FiniteSetFilter = 49161,
1380    /// Range operation for finite sets of integers.
1381    #[doc(alias = "Z3_OP_FINITE_SET_RANGE")]
1382    FiniteSetRange = 49162,
1383    /// Finite set extensionality. Returns a witness element that is in one set but not the other, demonstrating that two sets are different.
1384    #[doc(alias = "Z3_OP_FINITE_SET_EXT")]
1385    FiniteSetExt = 49163,
1386    /// Inverse image under a finite set map operation. Related to reasoning about the pre-image of elements under set mappings.
1387    #[doc(alias = "Z3_OP_FINITE_SET_MAP_INVERSE")]
1388    FiniteSetMapInverse = 49164,
1389    /// internal (often interpreted) symbol, but no additional
1390    /// information is exposed. Tools may use the string representation of the
1391    /// function declaration to obtain more information.
1392    #[doc(alias = "Z3_OP_INTERNAL")]
1393    Internal = 49165,
1394    /// function declared as recursive
1395    #[doc(alias = "Z3_OP_RECURSIVE")]
1396    Recursive = 49166,
1397    /// kind used for uninterpreted symbols.
1398    #[doc(alias = "Z3_OP_UNINTERPRETED")]
1399    Uninterpreted = 49167,
1400    /// Corresponds to `Z3_OP_FF_NUM` in the C API.
1401    #[doc(alias = "Z3_OP_FF_NUM")]
1402    FfNum = 53248,
1403    /// Corresponds to `Z3_OP_FF_ADD` in the C API.
1404    #[doc(alias = "Z3_OP_FF_ADD")]
1405    FfAdd = 53249,
1406    /// Corresponds to `Z3_OP_FF_MUL` in the C API.
1407    #[doc(alias = "Z3_OP_FF_MUL")]
1408    FfMul = 53250,
1409    /// Corresponds to `Z3_OP_FF_NEG` in the C API.
1410    #[doc(alias = "Z3_OP_FF_NEG")]
1411    FfNeg = 53251,
1412    /// Corresponds to `Z3_OP_FF_BITSUM` in the C API.
1413    #[doc(alias = "Z3_OP_FF_BITSUM")]
1414    FfBitsum = 53252,
1415}
1416pub type Z3_decl_kind = DeclKind;
1417/// The different kinds of parameters that can be associated with parameter sets.
1418/// (see [`Z3_mk_params`]).
1419#[doc(alias = "Z3_param_kind")]
1420#[repr(u32)]
1421#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1422pub enum ParamKind {
1423    /// integer parameters.
1424    #[doc(alias = "Z3_PK_UINT")]
1425    Uint = 0,
1426    /// boolean parameters.
1427    #[doc(alias = "Z3_PK_BOOL")]
1428    Bool = 1,
1429    /// double parameters.
1430    #[doc(alias = "Z3_PK_DOUBLE")]
1431    Double = 2,
1432    /// symbol parameters.
1433    #[doc(alias = "Z3_PK_SYMBOL")]
1434    Symbol = 3,
1435    /// string parameters.
1436    #[doc(alias = "Z3_PK_STRING")]
1437    String = 4,
1438    /// all internal parameter kinds which are not exposed in the API.
1439    #[doc(alias = "Z3_PK_OTHER")]
1440    Other = 5,
1441    /// invalid parameter.
1442    #[doc(alias = "Z3_PK_INVALID")]
1443    Invalid = 6,
1444}
1445pub type Z3_param_kind = ParamKind;
1446/// Z3 pretty printing modes (See [`Z3_set_ast_print_mode`]).
1447#[doc(alias = "Z3_ast_print_mode")]
1448#[repr(u32)]
1449#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1450pub enum AstPrintMode {
1451    /// Print AST nodes in SMTLIB verbose format.
1452    #[doc(alias = "Z3_PRINT_SMTLIB_FULL")]
1453    SmtlibFull = 0,
1454    /// Print AST nodes using a low-level format.
1455    #[doc(alias = "Z3_PRINT_LOW_LEVEL")]
1456    LowLevel = 1,
1457    /// Print AST nodes in SMTLIB 2.x compliant format.
1458    #[doc(alias = "Z3_PRINT_SMTLIB2_COMPLIANT")]
1459    Smtlib2Compliant = 2,
1460}
1461pub type Z3_ast_print_mode = AstPrintMode;
1462/// Z3 error codes (See [`Z3_get_error_code`]).
1463#[doc(alias = "Z3_error_code")]
1464#[repr(u32)]
1465#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1466pub enum ErrorCode {
1467    /// No error.
1468    #[doc(alias = "Z3_OK")]
1469    Ok = 0,
1470    /// User tried to build an invalid (type incorrect) AST.
1471    #[doc(alias = "Z3_SORT_ERROR")]
1472    SortError = 1,
1473    /// Index out of bounds.
1474    #[doc(alias = "Z3_IOB")]
1475    Iob = 2,
1476    /// Invalid argument was provided.
1477    #[doc(alias = "Z3_INVALID_ARG")]
1478    InvalidArg = 3,
1479    /// An error occurred when parsing a string or file.
1480    #[doc(alias = "Z3_PARSER_ERROR")]
1481    ParserError = 4,
1482    /// Parser output is not available, that is, user didn't invoke [`Z3_parse_smtlib2_string`] or [`Z3_parse_smtlib2_file`].
1483    #[doc(alias = "Z3_NO_PARSER")]
1484    NoParser = 5,
1485    /// Invalid pattern was used to build a quantifier.
1486    #[doc(alias = "Z3_INVALID_PATTERN")]
1487    InvalidPattern = 6,
1488    /// A memory allocation failure was encountered.
1489    #[doc(alias = "Z3_MEMOUT_FAIL")]
1490    MemoutFail = 7,
1491    /// A file could not be accessed.
1492    #[doc(alias = "Z3_FILE_ACCESS_ERROR")]
1493    FileAccessError = 8,
1494    /// An error internal to Z3 occurred.
1495    #[doc(alias = "Z3_INTERNAL_FATAL")]
1496    InternalFatal = 9,
1497    /// API call is invalid in the current state.
1498    #[doc(alias = "Z3_INVALID_USAGE")]
1499    InvalidUsage = 10,
1500    /// Trying to decrement the reference counter of an AST that was deleted or the reference counter was not initialized with [`Z3_inc_ref`].
1501    #[doc(alias = "Z3_DEC_REF_ERROR")]
1502    DecRefError = 11,
1503    /// Internal Z3 exception. Additional details can be retrieved using [`Z3_get_error_msg`].
1504    #[doc(alias = "Z3_EXCEPTION")]
1505    Exception = 12,
1506}
1507pub type Z3_error_code = ErrorCode;
1508/// A Goal is essentially a set of formulas.
1509/// Z3 provide APIs for building strategies/tactics for solving and transforming Goals.
1510/// Some of these transformations apply under/over approximations.
1511#[doc(alias = "Z3_goal_prec")]
1512#[repr(u32)]
1513#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1514pub enum GoalPrec {
1515    /// Approximations/Relaxations were not applied on the goal (sat and unsat answers were preserved).
1516    #[doc(alias = "Z3_GOAL_PRECISE")]
1517    Precise = 0,
1518    /// Goal is the product of a under-approximation (sat answers are preserved).
1519    #[doc(alias = "Z3_GOAL_UNDER")]
1520    Under = 1,
1521    /// Goal is the product of an over-approximation (unsat answers are preserved).
1522    #[doc(alias = "Z3_GOAL_OVER")]
1523    Over = 2,
1524    /// Goal is garbage (it is the product of over- and under-approximations, sat and unsat answers are not preserved).
1525    #[doc(alias = "Z3_GOAL_UNDER_OVER")]
1526    UnderOver = 3,
1527}
1528pub type Z3_goal_prec = GoalPrec;