api: Fix documentation for kind IAND. (#7536)
[cvc5.git] / src / api / cpp / cvc5_kind.h
1 /******************************************************************************
2 * Top contributors (to current version):
3 * Aina Niemetz, Andrew Reynolds, Makai Mann
4 *
5 * This file is part of the cvc5 project.
6 *
7 * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8 * in the top-level source directory and their institutional affiliations.
9 * All rights reserved. See the file COPYING in the top-level source
10 * directory for licensing information.
11 * ****************************************************************************
12 *
13 * The term kinds of the cvc5 C++ API.
14 */
15
16 #include "cvc5_export.h"
17
18 #ifndef CVC5__API__CVC5_KIND_H
19 #define CVC5__API__CVC5_KIND_H
20
21 #include <ostream>
22
23 namespace cvc5 {
24 namespace api {
25
26 /* -------------------------------------------------------------------------- */
27 /* Kind */
28 /* -------------------------------------------------------------------------- */
29
30 // TODO(Gereon): Fix links that involve std::vector. See
31 // https://github.com/doxygen/doxygen/issues/8503
32 // clang-format off
33 /**
34 * The kind of a cvc5 term.
35 *
36 * \internal
37 *
38 * Note that the API type `cvc5::api::Kind` roughly corresponds to
39 * `cvc5::Kind`, but is a different type. It hides internal kinds that should
40 * not be exported to the API, and maps all kinds that we want to export to its
41 * corresponding internal kinds. The underlying type of `cvc5::api::Kind` must
42 * be signed (to enable range checks for validity). The size of this type
43 * depends on the size of `cvc5::Kind` (`NodeValue::NBITS_KIND`, currently 10
44 * bits, see expr/node_value.h).
45 */
46 enum Kind : int32_t
47 {
48 /**
49 * Internal kind.
50 * Should never be exposed or created via the API.
51 */
52 INTERNAL_KIND = -2,
53 /**
54 * Undefined kind.
55 * Should never be exposed or created via the API.
56 */
57 UNDEFINED_KIND = -1,
58 /**
59 * Null kind (kind of null term `Term::Term()`).
60 * Do not explicitly create via API functions other than `Term::Term()`.
61 */
62 NULL_EXPR,
63
64 /* Builtin --------------------------------------------------------------- */
65
66 /**
67 * Uninterpreted constant.
68 *
69 * Parameters:
70 * - 1: Sort of the constant
71 * - 2: Index of the constant
72 *
73 * Create with:
74 * - `Solver::mkUninterpretedConst(const Sort& sort, int32_t index) const`
75 */
76 UNINTERPRETED_CONSTANT,
77 /**
78 * Abstract value (other than uninterpreted sort constants).
79 *
80 * Parameters:
81 * - 1: Index of the abstract value
82 *
83 * Create with:
84 * - `Solver::mkAbstractValue(const std::string& index) const`
85 * - `Solver::mkAbstractValue(uint64_t index) const`
86 */
87 ABSTRACT_VALUE,
88 #if 0
89 /* Built-in operator */
90 BUILTIN,
91 #endif
92 /**
93 * Equality, chainable.
94 *
95 * Parameters: n > 1
96 * - 1..n: Terms with same sorts
97 *
98 * Create with:
99 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
100 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
101 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
102 */
103 EQUAL,
104 /**
105 * Disequality.
106 *
107 * Parameters: n > 1
108 * - 1..n: Terms with same sorts
109 *
110 * Create with:
111 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
112 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
113 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
114 */
115 DISTINCT,
116 /**
117 * First-order constant.
118 *
119 * Not permitted in bindings (forall, exists, ...).
120 *
121 * Parameters:
122 * - See @ref cvc5::api::Solver::mkConst() "mkConst()".
123 *
124 * Create with:
125 * - `Solver::mkConst(const Sort& sort, const std::string& symbol) const`
126 * - `Solver::mkConst(const Sort& sort) const`
127 */
128 CONSTANT,
129 /**
130 * (Bound) variable.
131 *
132 * Permitted in bindings and in the lambda and quantifier bodies only.
133 *
134 * Parameters:
135 * - See @ref cvc5::api::Solver::mkVar() "mkVar()".
136 *
137 * Create with:
138 * - `Solver::mkVar(const Sort& sort, const std::string& symbol) const`
139 */
140 VARIABLE,
141 #if 0
142 /* Skolem variable (internal only) */
143 SKOLEM,
144 #endif
145 /**
146 * Symbolic expression.
147 *
148 * Parameters: n > 0
149 * - 1..n: terms
150 *
151 * Create with:
152 * - `Solver::mkTerm(Kind kind, const Term& child) const`
153 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
154 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
155 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
156 */
157 SEXPR,
158 /**
159 * Lambda expression.
160 *
161 * Parameters:
162 * - 1: BOUND_VAR_LIST
163 * - 2: Lambda body
164 *
165 * Create with:
166 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
167 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
168 */
169 LAMBDA,
170 /**
171 * The syntax of a witness term is similar to a quantified formula except that
172 * only one bound variable is allowed.
173 * The term `(witness ((x T)) F)` returns an element `x` of type `T`
174 * and asserts `F`.
175 *
176 * The witness operator behaves like the description operator
177 * (see https://planetmath.org/hilbertsvarepsilonoperator) if there is no x
178 * that satisfies F. But if such x exists, the witness operator does not
179 * enforce the axiom that ensures uniqueness up to logical equivalence:
180 *
181 * @f[
182 * \forall x. F \equiv G \Rightarrow witness~x. F = witness~x. G
183 * @f]
184 *
185 * For example if there are 2 elements of type T that satisfy F, then the
186 * following formula is satisfiable:
187 *
188 * (distinct
189 * (witness ((x Int)) F)
190 * (witness ((x Int)) F))
191 *
192 * This kind is primarily used internally, but may be returned in models
193 * (e.g. for arithmetic terms in non-linear queries). However, it is not
194 * supported by the parser. Moreover, the user of the API should be cautious
195 * when using this operator. In general, all witness terms
196 * `(witness ((x Int)) F)` should be such that `(exists ((x Int)) F)` is a
197 * valid formula. If this is not the case, then the semantics in formulas that
198 * use witness terms may be unintuitive. For example, the following formula is
199 * unsatisfiable:
200 * `(or (= (witness ((x Int)) false) 0) (not (= (witness ((x Int)) false) 0))`
201 * whereas notice that `(or (= z 0) (not (= z 0)))` is true for any `z`.
202 *
203 * Parameters:
204 * - 1: BOUND_VAR_LIST
205 * - 2: Witness body
206 *
207 * Create with:
208 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
209 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
210 */
211 WITNESS,
212
213 /* Boolean --------------------------------------------------------------- */
214
215 /**
216 * Boolean constant.
217 *
218 * Parameters:
219 * - 1: Boolean value of the constant
220 *
221 * Create with:
222 * - `Solver::mkTrue() const`
223 * - `Solver::mkFalse() const`
224 * - `Solver::mkBoolean(bool val) const`
225 */
226 CONST_BOOLEAN,
227 /**
228 * Logical negation.
229 *
230 * Parameters:
231 * - 1: Boolean Term to negate
232 *
233 * Create with:
234 * - `Solver::mkTerm(Kind kind, const Term& child) const`
235 */
236 NOT,
237 /**
238 * Logical conjunction.
239 *
240 * Parameters: n > 1
241 * - 1..n: Boolean Term of the conjunction
242 *
243 * Create with:
244 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
245 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
246 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
247 */
248 AND,
249 /**
250 * Logical implication.
251 *
252 * Parameters: n > 1
253 * - 1..n: Boolean Terms, right associative
254 *
255 * Create with:
256 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
257 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
258 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
259 */
260 IMPLIES,
261 /**
262 * Logical disjunction.
263 *
264 * Parameters: n > 1
265 * - 1..n: Boolean Term of the disjunction
266 *
267 * Create with:
268 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
269 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
270 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
271 */
272 OR,
273 /**
274 * Logical exclusive disjunction, left associative.
275 *
276 * Parameters: n > 1
277 * - 1..n: Boolean Terms, `[1] xor ... xor [n]`
278 *
279 * Create with:
280 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
281 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
282 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
283 */
284 XOR,
285 /**
286 * If-then-else.
287 *
288 * Parameters:
289 * - 1: is a Boolean condition Term
290 * - 2: the 'then' Term
291 * - 3: the 'else' Term
292 *
293 * 'then' and 'else' term must have same base sort.
294 *
295 * Create with:
296 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
297 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
298 */
299 ITE,
300
301 /* UF -------------------------------------------------------------------- */
302
303 /**
304 * Application of an uninterpreted function.
305 *
306 * Parameters: n > 1
307 * - 1: Function Term
308 * - 2..n: Function argument instantiation Terms
309 *
310 * Create with:
311 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
312 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
313 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
314 */
315 APPLY_UF,
316 #if 0
317 /* Boolean term variable */
318 BOOLEAN_TERM_VARIABLE,
319 #endif
320 /**
321 * Cardinality constraint on uninterpreted sort S.
322 * Interpreted as a predicate that is true when the cardinality of S
323 * is less than or equal to the value of the second argument.
324 *
325 * Parameters:
326 * - 1: Term of sort S
327 * - 2: Positive integer constant that bounds the cardinality of sort S
328 *
329 * Create with:
330 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
331 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
332 */
333 CARDINALITY_CONSTRAINT,
334 #if 0
335 /* Partial uninterpreted function application. */
336 PARTIAL_APPLY_UF,
337 #endif
338 /**
339 * Higher-order applicative encoding of function application, left
340 * associative.
341 *
342 * Parameters: n > 1
343 * - 1: Function to apply
344 * - 2..n: Arguments of the function
345 *
346 * Create with:
347 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
348 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
349 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
350 */
351 HO_APPLY,
352
353 /* Arithmetic ------------------------------------------------------------ */
354
355 /**
356 * Arithmetic addition.
357 *
358 * Parameters: n > 1
359 * - 1..n: Terms of sort Integer, Real (sorts must match)
360 *
361 * Create with:
362 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
363 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
364 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
365 */
366 PLUS,
367 /**
368 * Arithmetic multiplication.
369 *
370 * Parameters: n > 1
371 * - 1..n: Terms of sort Integer, Real (sorts must match)
372 *
373 * Create with:
374 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
375 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
376 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
377 */
378 MULT,
379 /**
380 * Operator for bit-wise AND over integers, parameterized by a (positive)
381 * bitwidth k.
382 *
383 * ((_ iand k) i1 i2) is equivalent to:
384 * (bv2int (bvand ((_ int2bv k) i1) ((_ int2bv k) i2)))
385 * for all integers i1, i2.
386 *
387 * Parameters:
388 * - 1: Size of the bit-vector that determines the semantics of the IAND
389 *
390 * Create with:
391 * - `Solver::mkOp(Kind kind, uint32_t param) const`
392 *
393 * Apply integer and.
394 *
395 * Parameters:
396 * - 1: Op of kind IAND
397 * - 2: Integer term
398 * - 3: Integer term
399 *
400 * Create with:
401 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2) const`
402 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
403 */
404 IAND,
405 /**
406 * Operator for raising 2 to a non-negative integer power.
407 *
408 * Create with:
409 * - `Solver::mkOp(Kind kind) const`
410 *
411 * Parameters:
412 * - 1: Op of kind IAND
413 * - 2: Integer term
414 *
415 * Apply 2 to the power operator.
416 *
417 * Create with:
418 * - `Solver::mkTerm(const Op& op, const Term& child) const`
419 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
420 */
421 POW2,
422 #if 0
423 /* Synonym for MULT. */
424 NONLINEAR_MULT,
425 #endif
426 /**
427 * Arithmetic subtraction, left associative.
428 *
429 * Parameters:
430 * - 1..n: Terms of sort Integer, Real (sorts must match)
431 *
432 * Create with:
433 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
434 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
435 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
436 */
437 MINUS,
438 /**
439 * Arithmetic negation.
440 *
441 * Parameters:
442 * - 1: Term of sort Integer, Real
443 *
444 * Create with:
445 * - `Solver::mkTerm(Kind kind, const Term& child) const`
446 */
447 UMINUS,
448 /**
449 * Real division, division by 0 undefined, left associative.
450 *
451 * Parameters: n > 1
452 * - 1..n: Terms of sort Integer, Real
453 *
454 * Create with:
455 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
456 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
457 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
458 */
459 DIVISION,
460 /**
461 * Integer division, division by 0 undefined, left associative.
462 *
463 * Parameters: n > 1
464 * - 1..n: Terms of sort Integer
465 *
466 * Create with:
467 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
468 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
469 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
470 */
471 INTS_DIVISION,
472 /**
473 * Integer modulus, division by 0 undefined.
474 *
475 * Parameters:
476 * - 1: Term of sort Integer
477 * - 2: Term of sort Integer
478 *
479 * Create with:
480 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
481 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
482 */
483 INTS_MODULUS,
484 /**
485 * Absolute value.
486 *
487 * Parameters:
488 * - 1: Term of sort Integer
489 *
490 * Create with:
491 * - `Solver::mkTerm(Kind kind, const Term& child) const`
492 */
493 ABS,
494 /**
495 * Arithmetic power.
496 *
497 * Parameters:
498 * - 1: Term of sort Integer, Real
499 * - 2: Term of sort Integer, Real
500 *
501 * Create with:
502 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
503 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
504 */
505 POW,
506 /**
507 * Exponential function.
508 *
509 * Parameters:
510 * - 1: Term of sort Integer, Real
511 *
512 * Create with:
513 * - `Solver::mkTerm(Kind kind, const Term& child) const`
514 */
515 EXPONENTIAL,
516 /**
517 * Sine function.
518 *
519 * Parameters:
520 * - 1: Term of sort Integer, Real
521 *
522 * Create with:
523 * - `Solver::mkTerm(Kind kind, const Term& child) const`
524 */
525 SINE,
526 /**
527 * Cosine function.
528 *
529 * Parameters:
530 * - 1: Term of sort Integer, Real
531 *
532 * Create with:
533 * - `Solver::mkTerm(Kind kind, const Term& child) const`
534 */
535 COSINE,
536 /**
537 * Tangent function.
538 *
539 * Parameters:
540 * - 1: Term of sort Integer, Real
541 *
542 * Create with:
543 * - `Solver::mkTerm(Kind kind, const Term& child) const`
544 */
545 TANGENT,
546 /**
547 * Cosecant function.
548 *
549 * Parameters:
550 * - 1: Term of sort Integer, Real
551 *
552 * Create with:
553 * - `Solver::mkTerm(Kind kind, const Term& child) const`
554 */
555 COSECANT,
556 /**
557 * Secant function.
558 *
559 * Parameters:
560 * - 1: Term of sort Integer, Real
561 *
562 * Create with:
563 * - `Solver::mkTerm(Kind kind, const Term& child) const`
564 */
565 SECANT,
566 /**
567 * Cotangent function.
568 *
569 * Parameters:
570 * - 1: Term of sort Integer, Real
571 *
572 * Create with:
573 * - `Solver::mkTerm(Kind kind, const Term& child) const`
574 */
575 COTANGENT,
576 /**
577 * Arc sine function.
578 *
579 * Parameters:
580 * - 1: Term of sort Integer, Real
581 *
582 * Create with:
583 * - `Solver::mkTerm(Kind kind, const Term& child) const`
584 */
585 ARCSINE,
586 /**
587 * Arc cosine function.
588 *
589 * Parameters:
590 * - 1: Term of sort Integer, Real
591 *
592 * Create with:
593 * - `Solver::mkTerm(Kind kind, const Term& child) const`
594 */
595 ARCCOSINE,
596 /**
597 * Arc tangent function.
598 *
599 * Parameters:
600 * - 1: Term of sort Integer, Real
601 *
602 * Create with:
603 * - `Solver::mkTerm(Kind kind, const Term& child) const`
604 */
605 ARCTANGENT,
606 /**
607 * Arc cosecant function.
608 *
609 * Parameters:
610 * - 1: Term of sort Integer, Real
611 *
612 * Create with:
613 * - `Solver::mkTerm(Kind kind, const Term& child) const`
614 */
615 ARCCOSECANT,
616 /**
617 * Arc secant function.
618 *
619 * Parameters:
620 * - 1: Term of sort Integer, Real
621 *
622 * Create with:
623 * - `Solver::mkTerm(Kind kind, const Term& child) const`
624 */
625 ARCSECANT,
626 /**
627 * Arc cotangent function.
628 *
629 * Parameters:
630 * - 1: Term of sort Integer, Real
631 *
632 * Create with:
633 * - `Solver::mkTerm(Kind kind, const Term& child) const`
634 */
635 ARCCOTANGENT,
636 /**
637 * Square root.
638 *
639 * Parameters:
640 * - 1: Term of sort Integer, Real
641 *
642 * Create with:
643 * - `Solver::mkTerm(Kind kind, const Term& child) const`
644 */
645 SQRT,
646 /**
647 * Operator for the divisibility-by-k predicate.
648 *
649 * Parameter:
650 * - 1: The k to divide by (sort Integer)
651 *
652 * Create with:
653 * - `Solver::mkOp(Kind kind, uint32_t param) const`
654 *
655 * Apply divisibility-by-k predicate.
656 *
657 * Parameters:
658 * - 1: Op of kind DIVISIBLE
659 * - 2: Integer Term
660 *
661 * Create with:
662 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2) const`
663 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
664 */
665 DIVISIBLE,
666 /**
667 * Multiple-precision rational constant.
668 *
669 * Parameters:
670 * See @ref cvc5::api::Solver::mkInteger() "mkInteger()", @ref cvc5::api::Solver::mkReal() "mkReal()".
671 *
672 * Create with:
673 * - `Solver::mkInteger(const std::string& s) const`
674 * - `Solver::mkInteger(int64_t val) const`
675 * - `Solver::mkReal(const std::string& s) const`
676 * - `Solver::mkReal(int64_t val) const`
677 * - `Solver::mkReal(int64_t num, int64_t den) const`
678 */
679 CONST_RATIONAL,
680 /**
681 * Less than, chainable.
682 *
683 * Parameters: n
684 * - 1..n: Terms of sort Integer, Real; [1] < ... < [n]
685 *
686 * Create with:
687 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
688 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
689 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
690 */
691 LT,
692 /**
693 * Less than or equal, chainable.
694 *
695 * Parameters: n > 1
696 * - 1..n: Terms of sort Integer, Real; [1] <= ... <= [n]
697 *
698 * Create with:
699 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
700 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
701 */
702 LEQ,
703 /**
704 * Greater than, chainable.
705 *
706 * Parameters: n > 1
707 * - 1..n: Terms of sort Integer, Real, [1] > ... > [n]
708 *
709 * Create with:
710 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
711 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
712 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
713 */
714 GT,
715 /**
716 * Greater than or equal, chainable.
717 *
718 * Parameters: n > 1
719 * - 1..n: Terms of sort Integer, Real; [1] >= ... >= [n]
720 *
721 * Create with:
722 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
723 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
724 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
725 */
726 GEQ,
727 /**
728 * Is-integer predicate.
729 *
730 * Parameters:
731 * - 1: Term of sort Integer, Real
732 *
733 * Create with:
734 * - `Solver::mkTerm(Kind kind, const Term& child) const`
735 */
736 IS_INTEGER,
737 /**
738 * Convert Term to Integer by the floor function.
739 *
740 * Parameters:
741 * - 1: Term of sort Integer, Real
742 *
743 * Create with:
744 * - `Solver::mkTerm(Kind kind, const Term& child) const`
745 */
746 TO_INTEGER,
747 /**
748 * Convert Term to Real.
749 *
750 * Parameters:
751 *
752 * - 1: Term of sort Integer, Real
753 *
754 * This is a no-op in cvc5, as Integer is a subtype of Real.
755 */
756 TO_REAL,
757 /**
758 * Pi constant.
759 *
760 * Note that PI is considered a special symbol of sort Real, but is not
761 * a real value, i.e., `Term::isRealValue() const` will return false.
762 *
763 * Create with:
764 * - `Solver::mkPi() const`
765 * - `Solver::mkTerm(Kind kind) const`
766 */
767 PI,
768
769 /* BV -------------------------------------------------------------------- */
770
771 /**
772 * Fixed-size bit-vector constant.
773 *
774 * Parameters:
775 * See @ref cvc5::api::Solver::mkBitVector() "mkBitVector()".
776 *
777 * Create with:
778 * - `Solver::mkBitVector(uint32_t size, uint64_t val) const`
779 * - `Solver::mkBitVector(const std::string& s, uint32_t base) const`
780 * - `Solver::mkBitVector(uint32_t size, const std::string& s, uint32_t base) const`
781 */
782 CONST_BITVECTOR,
783 /**
784 * Concatenation of two or more bit-vectors.
785 *
786 * Parameters: n > 1
787 * - 1..n: Terms of bit-vector sort
788 *
789 * Create with:
790 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
791 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
792 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
793 */
794 BITVECTOR_CONCAT,
795 /**
796 * Bit-wise and.
797 *
798 * Parameters: n > 1
799 * - 1..n: Terms of bit-vector sort (sorts must match)
800 *
801 * Create with:
802 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
803 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
804 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
805 */
806 BITVECTOR_AND,
807 /**
808 * Bit-wise or.
809 *
810 * Parameters: n > 1
811 * - 1..n: Terms of bit-vector sort (sorts must match)
812 *
813 * Create with:
814 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
815 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
816 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
817 */
818 BITVECTOR_OR,
819 /**
820 * Bit-wise xor.
821 *
822 * Parameters: n > 1
823 * - 1..n: Terms of bit-vector sort (sorts must match)
824 *
825 * Create with:
826 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
827 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
828 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
829 */
830 BITVECTOR_XOR,
831 /**
832 * Bit-wise negation.
833 *
834 * Parameters:
835 * - 1: Term of bit-vector sort
836 *
837 * Create with:
838 * - `Solver::mkTerm(Kind kind, const Term& child) const`
839 */
840 BITVECTOR_NOT,
841 /**
842 * Bit-wise nand.
843 *
844 * Parameters:
845 * - 1..2: Terms of bit-vector sort (sorts must match)
846 *
847 * Create with:
848 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
849 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
850 */
851 BITVECTOR_NAND,
852 /**
853 * Bit-wise nor.
854 *
855 * Parameters:
856 * - 1..2: Terms of bit-vector sort (sorts must match)
857 *
858 * Create with:
859 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
860 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
861 */
862 BITVECTOR_NOR,
863 /**
864 * Bit-wise xnor, left associative.
865 *
866 * Parameters: n > 1
867 * - 1..n: Terms of bit-vector sort (sorts must match)
868 *
869 * Create with:
870 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
871 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
872 */
873 BITVECTOR_XNOR,
874 /**
875 * Equality comparison (returns bit-vector of size 1).
876 *
877 * Parameters:
878 * - 1..2: Terms of bit-vector sort (sorts must match)
879 *
880 * Create with:
881 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
882 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
883 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
884 */
885 BITVECTOR_COMP,
886 /**
887 * Multiplication of two or more bit-vectors.
888 *
889 * Parameters: n > 1
890 * - 1..n: Terms of bit-vector sort (sorts must match)
891 *
892 * Create with:
893 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
894 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
895 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
896 */
897 BITVECTOR_MULT,
898 /**
899 * Addition of two or more bit-vectors.
900 *
901 * Parameters: n > 1
902 * - 1..n: Terms of bit-vector sort (sorts must match)
903 *
904 * Create with:
905 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
906 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
907 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
908 */
909 BITVECTOR_ADD,
910 /**
911 * Subtraction of two bit-vectors.
912 *
913 * Parameters:
914 * - 1..2: Terms of bit-vector sort (sorts must match)
915 *
916 * Create with:
917 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
918 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
919 */
920 BITVECTOR_SUB,
921 /**
922 * Negation of a bit-vector (two's complement).
923 *
924 * Parameters:
925 * - 1: Term of bit-vector sort
926 *
927 * Create with:
928 * - `Solver::mkTerm(Kind kind, const Term& child) const`
929 */
930 BITVECTOR_NEG,
931 /**
932 * Unsigned division of two bit-vectors, truncating towards 0. If the divisor
933 * is zero, the result is all ones.
934 *
935 * Parameters:
936 * - 1..2: Terms of bit-vector sort (sorts must match)
937 *
938 * Create with:
939 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
940 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
941 */
942 BITVECTOR_UDIV,
943 /**
944 * Unsigned remainder from truncating division of two bit-vectors. If the
945 * modulus is zero, the result is the dividend.
946 *
947 * Parameters:
948 * - 1..2: Terms of bit-vector sort (sorts must match)
949 *
950 * Create with:
951 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
952 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
953 */
954 BITVECTOR_UREM,
955 /**
956 * Two's complement signed division of two bit-vectors. If the divisor is
957 * zero and the dividend is positive, the result is all ones. If the divisor
958 * is zero and the dividend is negative, the result is one.
959 *
960 * Parameters:
961 * - 1..2: Terms of bit-vector sort (sorts must match)
962 *
963 * Create with:
964 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
965 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
966 */
967 BITVECTOR_SDIV,
968 /**
969 * Two's complement signed remainder of two bit-vectors (sign follows
970 * dividend). If the modulus is zero, the result is the dividend.
971 *
972 * Parameters:
973 * - 1..2: Terms of bit-vector sort (sorts must match)
974 *
975 * Create with:
976 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
977 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
978 */
979 BITVECTOR_SREM,
980 /**
981 * Two's complement signed remainder (sign follows divisor). If the modulus
982 * is zero, the result is the dividend.
983 *
984 * Parameters:
985 * - 1..2: Terms of bit-vector sort (sorts must match)
986 *
987 * Create with:
988 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
989 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
990 */
991 BITVECTOR_SMOD,
992 /**
993 * Bit-vector shift left.
994 * The two bit-vector parameters must have same width.
995 *
996 * Parameters:
997 * - 1..2: Terms of bit-vector sort (sorts must match)
998 *
999 * Create with:
1000 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1001 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1002 */
1003 BITVECTOR_SHL,
1004 /**
1005 * Bit-vector logical shift right.
1006 * The two bit-vector parameters must have same width.
1007 *
1008 * Parameters:
1009 * - 1..2: Terms of bit-vector sort (sorts must match)
1010 *
1011 * Create with:
1012 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1013 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1014 */
1015 BITVECTOR_LSHR,
1016 /**
1017 * Bit-vector arithmetic shift right.
1018 * The two bit-vector parameters must have same width.
1019 *
1020 * Parameters:
1021 * - 1..2: Terms of bit-vector sort (sorts must match)
1022 *
1023 * Create with:
1024 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1025 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1026 */
1027 BITVECTOR_ASHR,
1028 /**
1029 * Bit-vector unsigned less than.
1030 * The two bit-vector parameters must have same width.
1031 *
1032 * Parameters:
1033 * - 1..2: Terms of bit-vector sort (sorts must match)
1034 *
1035 * Create with:
1036 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1037 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1038 */
1039 BITVECTOR_ULT,
1040 /**
1041 * Bit-vector unsigned less than or equal.
1042 * The two bit-vector parameters must have same width.
1043 *
1044 * Parameters:
1045 * - 1..2: Terms of bit-vector sort (sorts must match)
1046 *
1047 * Create with:
1048 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1049 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1050 */
1051 BITVECTOR_ULE,
1052 /**
1053 * Bit-vector unsigned greater than.
1054 * The two bit-vector parameters must have same width.
1055 *
1056 * Parameters:
1057 * - 1..2: Terms of bit-vector sort (sorts must match)
1058 *
1059 * Create with:
1060 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1061 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1062 */
1063 BITVECTOR_UGT,
1064 /**
1065 * Bit-vector unsigned greater than or equal.
1066 * The two bit-vector parameters must have same width.
1067 *
1068 * Parameters:
1069 * - 1..2: Terms of bit-vector sort (sorts must match)
1070 *
1071 * Create with:
1072 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1073 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1074 */
1075 BITVECTOR_UGE,
1076 /**
1077 * Bit-vector signed less than.
1078 * The two bit-vector parameters must have same width.
1079 *
1080 * Parameters:
1081 * - 1..2: Terms of bit-vector sort (sorts must match)
1082 *
1083 * Create with:
1084 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1085 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1086 */
1087 BITVECTOR_SLT,
1088 /**
1089 * Bit-vector signed less than or equal.
1090 * The two bit-vector parameters must have same width.
1091 *
1092 * Parameters:
1093 * - 1..2: Terms of bit-vector sort (sorts must match)
1094 *
1095 * Create with:
1096 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1097 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1098 */
1099 BITVECTOR_SLE,
1100 /**
1101 * Bit-vector signed greater than.
1102 * The two bit-vector parameters must have same width.
1103 *
1104 * Parameters:
1105 * - 1..2: Terms of bit-vector sort (sorts must match)
1106 *
1107 * Create with:
1108 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1109 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1110 */
1111 BITVECTOR_SGT,
1112 /**
1113 * Bit-vector signed greater than or equal.
1114 * The two bit-vector parameters must have same width.
1115 *
1116 * Parameters:
1117 * - 1..2: Terms of bit-vector sort (sorts must match)
1118 *
1119 * Create with:
1120 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1121 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1122 */
1123 BITVECTOR_SGE,
1124 /**
1125 * Bit-vector unsigned less than, returns bit-vector of size 1.
1126 *
1127 * Parameters:
1128 * - 1..2: Terms of bit-vector sort (sorts must match)
1129 *
1130 * Create with:
1131 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1132 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1133 */
1134 BITVECTOR_ULTBV,
1135 /**
1136 * Bit-vector signed less than. returns bit-vector of size 1.
1137 *
1138 * Parameters:
1139 * - 1..2: Terms of bit-vector sort (sorts must match)
1140 *
1141 * Create with:
1142 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1143 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1144 */
1145 BITVECTOR_SLTBV,
1146 /**
1147 * Same semantics as regular ITE, but condition is bit-vector of size 1.
1148 *
1149 * Parameters:
1150 * - 1: Term of bit-vector sort of size 1, representing the condition
1151 * - 2: Term reprsenting the 'then' branch
1152 * - 3: Term representing the 'else' branch
1153 *
1154 * 'then' and 'else' term must have same base sort.
1155 *
1156 * Create with:
1157 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1158 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1159 */
1160 BITVECTOR_ITE,
1161 /**
1162 * Bit-vector redor.
1163 *
1164 * Parameters:
1165 * - 1: Term of bit-vector sort
1166 *
1167 * Create with:
1168 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1169 */
1170 BITVECTOR_REDOR,
1171 /**
1172 * Bit-vector redand.
1173 *
1174 * Parameters:
1175 * - 1: Term of bit-vector sort
1176 *
1177 * Create with:
1178 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1179 */
1180 BITVECTOR_REDAND,
1181 #if 0
1182 /* formula to be treated as a bv atom via eager bit-blasting
1183 * (internal-only symbol) */
1184 BITVECTOR_EAGER_ATOM,
1185 /* term to be treated as a variable. used for eager bit-blasting Ackermann
1186 * expansion of bvudiv (internal-only symbol) */
1187 BITVECTOR_ACKERMANIZE_UDIV,
1188 /* term to be treated as a variable. used for eager bit-blasting Ackermann
1189 * expansion of bvurem (internal-only symbol) */
1190 BITVECTOR_ACKERMANIZE_UREM,
1191 #endif
1192 /**
1193 * Operator for bit-vector extract (from index 'high' to 'low').
1194 *
1195 * Parameters:
1196 * - 1: The 'high' index
1197 * - 2: The 'low' index
1198 *
1199 * Create with:
1200 * - `Solver::mkOp(Kind kind, uint32_t param, uint32_t param) const`
1201 *
1202 * Apply bit-vector extract.
1203 *
1204 * Parameters:
1205 * - 1: Op of kind BITVECTOR_EXTRACT
1206 * - 2: Term of bit-vector sort
1207 *
1208 * Create with:
1209 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1210 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1211 */
1212 BITVECTOR_EXTRACT,
1213 /**
1214 * Operator for bit-vector repeat.
1215 *
1216 * Parameter:
1217 * - 1: Number of times to repeat a given bit-vector
1218 *
1219 * Create with:
1220 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1221 *
1222 * Apply bit-vector repeat.
1223 *
1224 * Parameters:
1225 * - 1: Op of kind BITVECTOR_REPEAT
1226 * - 2: Term of bit-vector sort
1227 *
1228 * Create with:
1229 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1230 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1231 */
1232 BITVECTOR_REPEAT,
1233 /**
1234 * Operator for bit-vector zero-extend.
1235 *
1236 * Parameter:
1237 * - 1: Number of bits by which a given bit-vector is to be extended
1238 *
1239 * Create with:
1240 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1241 *
1242 * Apply bit-vector zero-extend.
1243 *
1244 * Parameters:
1245 * - 1: Op of kind BITVECTOR_ZERO_EXTEND
1246 * - 2: Term of bit-vector sort
1247 *
1248 * Create with:
1249 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1250 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1251 */
1252 BITVECTOR_ZERO_EXTEND,
1253 /**
1254 * Operator for bit-vector sign-extend.
1255 *
1256 * Parameter:
1257 * - 1: Number of bits by which a given bit-vector is to be extended
1258 *
1259 * Create with:
1260 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1261 *
1262 * Apply bit-vector sign-extend.
1263 *
1264 * Parameters:
1265 * - 1: Op of kind BITVECTOR_SIGN_EXTEND
1266 * - 2: Term of bit-vector sort
1267 *
1268 * Create with:
1269 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1270 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1271 */
1272 BITVECTOR_SIGN_EXTEND,
1273 /**
1274 * Operator for bit-vector rotate left.
1275 *
1276 * Parameter:
1277 * - 1: Number of bits by which a given bit-vector is to be rotated
1278 *
1279 * Create with:
1280 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1281 *
1282 * Apply bit-vector rotate left.
1283 *
1284 * Parameters:
1285 * - 1: Op of kind BITVECTOR_ROTATE_LEFT
1286 * - 2: Term of bit-vector sort
1287 *
1288 * Create with:
1289 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1290 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1291 */
1292 BITVECTOR_ROTATE_LEFT,
1293 /**
1294 * Operator for bit-vector rotate right.
1295 *
1296 * Parameter:
1297 * - 1: Number of bits by which a given bit-vector is to be rotated
1298 *
1299 * Create with:
1300 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1301 *
1302 * Apply bit-vector rotate right.
1303 *
1304 * Parameters:
1305 * - 1: Op of kind BITVECTOR_ROTATE_RIGHT
1306 * - 2: Term of bit-vector sort
1307 *
1308 * Create with:
1309 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1310 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1311 */
1312 BITVECTOR_ROTATE_RIGHT,
1313 #if 0
1314 /* bit-vector boolean bit extract. */
1315 BITVECTOR_BITOF,
1316 #endif
1317 /**
1318 * Operator for the conversion from Integer to bit-vector.
1319 *
1320 * Parameter:
1321 * - 1: Size of the bit-vector to convert to
1322 *
1323 * Create with:
1324 * - `Solver::mkOp(Kind kind, uint32_t param) const`.
1325 *
1326 * Apply integer conversion to bit-vector.
1327 *
1328 * Parameters:
1329 * - 1: Op of kind INT_TO_BITVECTOR
1330 * - 2: Integer term
1331 *
1332 * Create with:
1333 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1334 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1335 */
1336 INT_TO_BITVECTOR,
1337 /**
1338 * Bit-vector conversion to (nonnegative) integer.
1339 *
1340 * Parameter:
1341 * - 1: Term of bit-vector sort
1342 *
1343 * Create with:
1344 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1345 */
1346 BITVECTOR_TO_NAT,
1347
1348 /* FP -------------------------------------------------------------------- */
1349
1350 /**
1351 * Floating-point constant, constructed from a double or string.
1352 *
1353 * Parameters:
1354 * - 1: Size of the exponent
1355 * - 2: Size of the significand
1356 * - 3: Value of the floating-point constant as a bit-vector term
1357 *
1358 * Create with:
1359 * - `Solver::mkFloatingPoint(uint32_t exp, uint32_t sig, Term val) const`
1360 */
1361 CONST_FLOATINGPOINT,
1362 /**
1363 * Floating-point rounding mode term.
1364 *
1365 * Create with:
1366 * - `Solver::mkRoundingMode(RoundingMode rm) const`
1367 */
1368 CONST_ROUNDINGMODE,
1369 /**
1370 * Create floating-point literal from bit-vector triple.
1371 *
1372 * Parameters:
1373 * - 1: Sign bit as a bit-vector term
1374 * - 2: Exponent bits as a bit-vector term
1375 * - 3: Significand bits as a bit-vector term (without hidden bit)
1376 *
1377 * Create with:
1378 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1379 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1380 */
1381 FLOATINGPOINT_FP,
1382 /**
1383 * Floating-point equality.
1384 *
1385 * Parameters:
1386 * - 1..2: Terms of floating point sort
1387 *
1388 * Create with:
1389 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1390 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1391 */
1392 FLOATINGPOINT_EQ,
1393 /**
1394 * Floating-point absolute value.
1395 *
1396 * Parameters:
1397 * - 1: Term of floating point sort
1398 *
1399 * Create with:
1400 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1401 */
1402 FLOATINGPOINT_ABS,
1403 /**
1404 * Floating-point negation.
1405 *
1406 * Parameters:
1407 * - 1: Term of floating point sort
1408 *
1409 * Create with:
1410 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1411 */
1412 FLOATINGPOINT_NEG,
1413 /**
1414 * Floating-point addition.
1415 *
1416 * Parameters:
1417 * - 1: CONST_ROUNDINGMODE
1418 * - 2: Term of sort FloatingPoint
1419 * - 3: Term of sort FloatingPoint
1420 *
1421 * Create with:
1422 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1423 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1424 */
1425 FLOATINGPOINT_ADD,
1426 /**
1427 * Floating-point sutraction.
1428 *
1429 * Parameters:
1430 * - 1: CONST_ROUNDINGMODE
1431 * - 2: Term of sort FloatingPoint
1432 * - 3: Term of sort FloatingPoint
1433 *
1434 * Create with:
1435 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1436 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1437 */
1438 FLOATINGPOINT_SUB,
1439 /**
1440 * Floating-point multiply.
1441 *
1442 * Parameters:
1443 * - 1: CONST_ROUNDINGMODE
1444 * - 2: Term of sort FloatingPoint
1445 * - 3: Term of sort FloatingPoint
1446 *
1447 * Create with:
1448 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1449 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1450 */
1451 FLOATINGPOINT_MULT,
1452 /**
1453 * Floating-point division.
1454 *
1455 * Parameters:
1456 * - 1: CONST_ROUNDINGMODE
1457 * - 2: Term of sort FloatingPoint
1458 * - 3: Term of sort FloatingPoint
1459 *
1460 * Create with:
1461 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1462 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1463 */
1464 FLOATINGPOINT_DIV,
1465 /**
1466 * Floating-point fused multiply and add.
1467 *
1468 * Parameters:
1469 * - 1: CONST_ROUNDINGMODE
1470 * - 2: Term of sort FloatingPoint
1471 * - 3: Term of sort FloatingPoint
1472 * - 4: Term of sort FloatingPoint
1473 *
1474 * Create with:
1475 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1476 */
1477 FLOATINGPOINT_FMA,
1478 /**
1479 * Floating-point square root.
1480 *
1481 * Parameters:
1482 * - 1: CONST_ROUNDINGMODE
1483 * - 2: Term of sort FloatingPoint
1484 *
1485 * Create with:
1486 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1487 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1488 */
1489 FLOATINGPOINT_SQRT,
1490 /**
1491 * Floating-point remainder.
1492 *
1493 * Parameters:
1494 * - 1..2: Terms of floating point sort
1495 *
1496 * Create with:
1497 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1498 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1499 */
1500 FLOATINGPOINT_REM,
1501 /**
1502 * Floating-point round to integral.
1503 *
1504 * Parameters:
1505 * -1..2: Terms of floating point sort
1506 *
1507 * Create with:
1508 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1509 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1510 */
1511 FLOATINGPOINT_RTI,
1512 /**
1513 * Floating-point minimum.
1514 *
1515 * Parameters:
1516 * - 1..2: Terms of floating point sort
1517 *
1518 * Create with:
1519 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1520 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1521 */
1522 FLOATINGPOINT_MIN,
1523 /**
1524 * Floating-point maximum.
1525 *
1526 * Parameters:
1527 * - 1..2: Terms of floating point sort
1528 *
1529 * Create with:
1530 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1531 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1532 */
1533 FLOATINGPOINT_MAX,
1534 /**
1535 * Floating-point less than or equal.
1536 *
1537 * Parameters:
1538 * - 1..2: Terms of floating point sort
1539 *
1540 * Create with:
1541 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1542 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1543 */
1544 FLOATINGPOINT_LEQ,
1545 /**
1546 * Floating-point less than.
1547 *
1548 * Parameters:
1549 * - 1..2: Terms of floating point sort
1550 *
1551 * Create with:
1552 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1553 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1554 */
1555 FLOATINGPOINT_LT,
1556 /**
1557 * Floating-point greater than or equal.
1558 *
1559 * Parameters:
1560 * - 1..2: Terms of floating point sort
1561 *
1562 * Create with:
1563 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1564 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1565 */
1566 FLOATINGPOINT_GEQ,
1567 /**
1568 * Floating-point greater than.
1569 *
1570 * Parameters:
1571 * - 1..2: Terms of floating point sort
1572 *
1573 * Create with:
1574 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1575 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1576 */
1577 FLOATINGPOINT_GT,
1578 /**
1579 * Floating-point is normal.
1580 *
1581 * Parameters:
1582 * - 1: Term of floating point sort
1583 *
1584 * Create with:
1585 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1586 */
1587 FLOATINGPOINT_ISN,
1588 /**
1589 * Floating-point is sub-normal.
1590 *
1591 * Parameters:
1592 * - 1: Term of floating point sort
1593 *
1594 * Create with:
1595 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1596 */
1597 FLOATINGPOINT_ISSN,
1598 /**
1599 * Floating-point is zero.
1600 *
1601 * Parameters:
1602 * - 1: Term of floating point sort
1603 *
1604 * Create with:
1605 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1606 */
1607 FLOATINGPOINT_ISZ,
1608 /**
1609 * Floating-point is infinite.
1610 *
1611 * Parameters:
1612 * - 1: Term of floating point sort
1613 *
1614 * Create with:
1615 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1616 */
1617 FLOATINGPOINT_ISINF,
1618 /**
1619 * Floating-point is NaN.
1620 *
1621 * Parameters:
1622 * - 1: Term of floating point sort
1623 *
1624 * Create with:
1625 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1626 */
1627 FLOATINGPOINT_ISNAN,
1628 /**
1629 * Floating-point is negative.
1630 *
1631 * Parameters:
1632 * - 1: Term of floating point sort
1633 *
1634 * Create with:
1635 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1636 */
1637 FLOATINGPOINT_ISNEG,
1638 /**
1639 * Floating-point is positive.
1640 *
1641 * Parameters:
1642 * - 1: Term of floating point sort
1643 *
1644 * Create with:
1645 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1646 */
1647 FLOATINGPOINT_ISPOS,
1648 /**
1649 * Operator for to_fp from bit vector.
1650 *
1651 * Parameters:
1652 * - 1: Exponent size
1653 * - 2: Significand size
1654 *
1655 * Create with:
1656 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1657 *
1658 * Conversion from an IEEE-754 bit vector to floating-point.
1659 *
1660 * Parameters:
1661 * - 1: Op of kind FLOATINGPOINT_TO_FP_IEEE_BITVECTOR
1662 * - 2: Term of sort FloatingPoint
1663 *
1664 * Create with:
1665 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1666 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1667 */
1668 FLOATINGPOINT_TO_FP_IEEE_BITVECTOR,
1669 /**
1670 * Operator for to_fp from floating point.
1671 *
1672 * Parameters:
1673 * - 1: Exponent size
1674 * - 2: Significand size
1675 *
1676 * Create with:
1677 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1678 *
1679 * Conversion between floating-point sorts.
1680 *
1681 * Parameters:
1682 * - 1: Op of kind FLOATINGPOINT_TO_FP_FLOATINGPOINT
1683 * - 2: Term of sort FloatingPoint
1684 *
1685 * Create with:
1686 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1687 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1688 */
1689 FLOATINGPOINT_TO_FP_FLOATINGPOINT,
1690 /**
1691 * Operator for to_fp from real.
1692 *
1693 * Parameters:
1694 * - 1: Exponent size
1695 * - 2: Significand size
1696 *
1697 * Create with:
1698 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1699 *
1700 * Conversion from a real to floating-point.
1701 *
1702 * Parameters:
1703 * - 1: Op of kind FLOATINGPOINT_TO_FP_REAL
1704 * - 2: Term of sort FloatingPoint
1705 *
1706 * Create with:
1707 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1708 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1709 */
1710 FLOATINGPOINT_TO_FP_REAL,
1711 /**
1712 * Operator for to_fp from signed bit vector
1713 *
1714 * Parameters:
1715 * - 1: Exponent size
1716 * - 2: Significand size
1717 *
1718 * Create with:
1719 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1720 *
1721 * Conversion from a signed bit vector to floating-point.
1722 *
1723 * Parameters:
1724 * - 1: Op of kind FLOATINGPOINT_TO_FP_SIGNED_BITVECTOR
1725 * - 2: Term of sort FloatingPoint
1726 *
1727 * Create with:
1728 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1729 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1730 */
1731 FLOATINGPOINT_TO_FP_SIGNED_BITVECTOR,
1732 /**
1733 * Operator for to_fp from unsigned bit vector.
1734 *
1735 * Parameters:
1736 * - 1: Exponent size
1737 * - 2: Significand size
1738 *
1739 * Create with:
1740 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1741 *
1742 * Converting an unsigned bit vector to floating-point.
1743 *
1744 * Parameters:
1745 * - 1: Op of kind FLOATINGPOINT_TO_FP_UNSIGNED_BITVECTOR
1746 * - 2: Term of sort FloatingPoint
1747 *
1748 * Create with:
1749 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1750 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1751 */
1752 FLOATINGPOINT_TO_FP_UNSIGNED_BITVECTOR,
1753 /**
1754 * Operator for a generic to_fp.
1755 *
1756 * Parameters:
1757 * - 1: exponent size
1758 * - 2: Significand size
1759 *
1760 * Create with:
1761 * - `Solver::mkOp(Kind kind, uint32_t param1, uint32_t param2) const`
1762 *
1763 * Generic conversion to floating-point, used in parsing only.
1764 *
1765 * Parameters:
1766 * - 1: Op of kind FLOATINGPOINT_TO_FP_GENERIC
1767 * - 2: Term of sort FloatingPoint
1768 *
1769 * Create with:
1770 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1771 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1772 */
1773 FLOATINGPOINT_TO_FP_GENERIC,
1774 /**
1775 * Operator for to_ubv.
1776 *
1777 * Parameters:
1778 * - 1: Size of the bit-vector to convert to
1779 *
1780 * Create with:
1781 * - `Solver::mkOp(Kind kind, uint32_t param) const`
1782 *
1783 * Conversion from a floating-point value to an unsigned bit vector.
1784 *
1785 * Parameters:
1786 * - 1: Op of kind FLOATINGPOINT_TO_FP_TO_UBV
1787 * - 2: Term of sort FloatingPoint
1788 *
1789 * Create with:
1790 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1791 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1792 */
1793 FLOATINGPOINT_TO_UBV,
1794 /**
1795 * Operator for to_sbv.
1796 *
1797 * Parameters:
1798 * - 1: Size of the bit-vector to convert to
1799 *
1800 * Create with:
1801 * - `Solver::mkOp(Kind kind, uint32_t param) const`
1802 *
1803 * Conversion from a floating-point value to a signed bit vector.
1804 *
1805 * Parameters:
1806 * - 1: Op of kind FLOATINGPOINT_TO_FP_TO_SBV
1807 * - 2: Term of sort FloatingPoint
1808 *
1809 * Create with:
1810 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1811 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1812 */
1813 FLOATINGPOINT_TO_SBV,
1814 /**
1815 * Floating-point to real.
1816 *
1817 * Parameters:
1818 * - 1: Term of sort FloatingPoint
1819 *
1820 * Create with:
1821 * - `Solver::mkTerm(Kind kind, const Term& child) const`
1822 */
1823 FLOATINGPOINT_TO_REAL,
1824
1825 /* Arrays ---------------------------------------------------------------- */
1826
1827 /**
1828 * Array select.
1829 *
1830 * Parameters:
1831 * - 1: Term of array sort
1832 * - 2: Selection index
1833 *
1834 * Create with:
1835 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2) const`
1836 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1837 */
1838 SELECT,
1839 /**
1840 * Array store.
1841 *
1842 * Parameters:
1843 * - 1: Term of array sort
1844 * - 2: Store index
1845 * - 3: Term to store at the index
1846 *
1847 * Create with:
1848 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2, const Term& child3) const`
1849 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1850 */
1851 STORE,
1852 /**
1853 * Constant array.
1854 *
1855 * Parameters:
1856 * - 1: Array sort
1857 * - 2: Term representing a constant
1858 *
1859 * Create with:
1860 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2) const`
1861 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1862 *
1863 * @note We currently support the creation of constant arrays, but under some
1864 * conditions when there is a chain of equalities connecting two constant
1865 * arrays, the solver doesn't know what to do and aborts (Issue <a
1866 * href="https://github.com/cvc5/cvc5/issues/1667">#1667</a>).
1867 */
1868 CONST_ARRAY,
1869 /**
1870 * Equality over arrays a and b over a given range [i,j], i.e.,
1871 * @f[
1872 * \forall k . i \leq k \leq j \Rightarrow a[k] = b[k]
1873 * @f]
1874 *
1875 * Parameters:
1876 * - 1: First array
1877 * - 2: Second array
1878 * - 3: Lower bound of range (inclusive)
1879 * - 4: Uppper bound of range (inclusive)
1880 *
1881 * Create with:
1882 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1883 *
1884 * Note: We currently support the creation of array equalities over index
1885 * types bit-vector, floating-point, integer and real. Option --arrays-exp is
1886 * required to support this operator.
1887 */
1888 EQ_RANGE,
1889 #if 0
1890 /* array table function (internal-only symbol) */
1891 ARR_TABLE_FUN,
1892 /* array lambda (internal-only symbol) */
1893 ARRAY_LAMBDA,
1894 /* partial array select, for internal use only */
1895 PARTIAL_SELECT_0,
1896 /* partial array select, for internal use only */
1897 PARTIAL_SELECT_1,
1898 #endif
1899
1900 /* Datatypes ------------------------------------------------------------- */
1901
1902 /**
1903 * Constructor application.
1904 *
1905 * Paramters: n > 0
1906 * - 1: Constructor (operator)
1907 * - 2..n: Parameters to the constructor
1908 *
1909 * Create with:
1910 * - `Solver::mkTerm(const Op& op) const`
1911 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1912 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2) const`
1913 * - `Solver::mkTerm(const Op& op, const Term& child1, const Term& child2, const Term& child3) const`
1914 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
1915 */
1916 APPLY_CONSTRUCTOR,
1917 /**
1918 * Datatype selector application, which is undefined if misapplied.
1919 *
1920 * Parameters:
1921 * - 1: Selector (operator)
1922 * - 2: Datatype term
1923 *
1924 * Create with:
1925 * - `Solver::mkTerm(const Op& op, const Term& child) const`
1926 */
1927 APPLY_SELECTOR,
1928 /**
1929 * Datatype tester application.
1930 *
1931 * Parameters:
1932 * - 1: Tester term
1933 * - 2: Datatype term
1934 *
1935 * Create with:
1936 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1937 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1938 */
1939 APPLY_TESTER,
1940 /**
1941 * Datatype update application, which does not change the argument if
1942 * misapplied.
1943 *
1944 * Parameters:
1945 * - 1: Updater (operator)
1946 * - 2: Datatype term
1947 * - 3: Value to update a field of the datatype term with
1948 *
1949 * Create with:
1950 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1951 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1952 */
1953 APPLY_UPDATER,
1954 /**
1955 * Match expressions.
1956 * For example, the smt2 syntax match term
1957 * `(match l (((cons h t) h) (nil 0)))`
1958 * is represented by the AST
1959 *
1960 * (MATCH l
1961 * (MATCH_BIND_CASE (BOUND_VAR_LIST h t) (cons h t) h)
1962 * (MATCH_CASE nil 0))
1963 *
1964 * The type of the last argument of each case term could be equal.
1965 *
1966 * Parameters: n > 1
1967 * - 1..n: Terms of kind MATCH_CASE or MATCH_BIND_CASE
1968 *
1969 * Create with:
1970 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1971 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
1972 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1973 *
1974 */
1975 MATCH,
1976 /**
1977 * Match case
1978 * A (constant) case expression to be used within a match expression.
1979 *
1980 * Parameters:
1981 * - 1: Term denoting the pattern expression
1982 * - 2: Term denoting the return value
1983 *
1984 * Create with:
1985 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
1986 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
1987 */
1988 MATCH_CASE,
1989 /**
1990 * Match bind case
1991 * A (non-constant) case expression to be used within a match expression.
1992 *
1993 * Parameters:
1994 * - 1: a BOUND_VAR_LIST Term containing the free variables of the case
1995 * - 2: Term denoting the pattern expression
1996 * - 3: Term denoting the return value
1997 *
1998 * Create with:
1999 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2000 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2001 */
2002 MATCH_BIND_CASE,
2003 /**
2004 * Datatypes size
2005 * An operator mapping datatypes to an integer denoting the number of
2006 * non-nullary applications of constructors they contain.
2007 *
2008 * Parameters:
2009 * - 1: Datatype term
2010 *
2011 * Create with:
2012 * - `Solver::mkTerm(Kind kind, const Term& child1) const`
2013 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2014 */
2015 DT_SIZE,
2016 /**
2017 * Operator for tuple projection indices
2018 *
2019 * Parameters:
2020 * - 1: The tuple projection indices
2021 *
2022 * Create with:
2023 * - `Solver::mkOp(Kind TUPLE_PROJECT, std::vector<uint32_t> param) const`
2024 *
2025 * Constructs a new tuple from an existing one using the elements at the
2026 * given indices
2027 *
2028 * Parameters:
2029 * - 1: a term of tuple sort
2030 *
2031 * Create with:
2032 * - `Solver::mkTerm(const Op& op, const Term& child) const`
2033 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
2034 */
2035 TUPLE_PROJECT,
2036 #if 0
2037 /* datatypes height bound */
2038 DT_HEIGHT_BOUND,
2039 /* datatypes height bound */
2040 DT_SIZE_BOUND,
2041 /* datatypes sygus bound */
2042 DT_SYGUS_BOUND,
2043 /* datatypes sygus term order */
2044 DT_SYGUS_TERM_ORDER,
2045 /* datatypes sygus is constant */
2046 DT_SYGUS_IS_CONST,
2047 #endif
2048
2049 /* Separation Logic ------------------------------------------------------ */
2050
2051 /**
2052 * Separation logic nil term.
2053 *
2054 * Parameters: none
2055 *
2056 * Create with:
2057 * - `Solver::mkSepNil(const Sort& sort) const`
2058 */
2059 SEP_NIL,
2060 /**
2061 * Separation logic empty heap constraint
2062 *
2063 * Create with:
2064 * - `Solver::mkTerm(Kind kind) const`
2065 */
2066 SEP_EMP,
2067 /**
2068 * Separation logic points-to relation.
2069 *
2070 * Parameters:
2071 * - 1: Location of the points-to constraint
2072 * - 2: Data of the points-to constraint
2073 *
2074 * Create with:
2075 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2076 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2077 */
2078 SEP_PTO,
2079 /**
2080 * Separation logic star.
2081 *
2082 * Parameters: n > 1
2083 * - 1..n: Child constraints that hold in disjoint (separated) heaps
2084 *
2085 * Create with:
2086 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2087 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2088 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2089 */
2090 SEP_STAR,
2091 /**
2092 * Separation logic magic wand.
2093 *
2094 * Parameters:
2095 * - 1: Antecendant of the magic wand constraint
2096 * - 2: Conclusion of the magic wand constraint, which is asserted to
2097 * hold in all heaps that are disjoint extensions of the antecedent.
2098 *
2099 * Create with:
2100 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2101 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2102 */
2103 SEP_WAND,
2104 #if 0
2105 /* separation label (internal use only) */
2106 SEP_LABEL,
2107 #endif
2108
2109 /* Sets ------------------------------------------------------------------ */
2110
2111 /**
2112 * Empty set constant.
2113 *
2114 * Parameters:
2115 * - 1: Sort of the set elements
2116 *
2117 * Create with:
2118 * - `Solver::mkEmptySet(const Sort& sort) const`
2119 */
2120 EMPTYSET,
2121 /**
2122 * Set union.
2123 *
2124 * Parameters:
2125 * - 1..2: Terms of set sort
2126 *
2127 * Create with:
2128 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2129 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2130 */
2131 UNION,
2132 /**
2133 * Set intersection.
2134 *
2135 * Parameters:
2136 * - 1..2: Terms of set sort
2137 *
2138 * Create with:
2139 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2140 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2141 */
2142 INTERSECTION,
2143 /**
2144 * Set subtraction.
2145 *
2146 * Parameters:
2147 * - 1..2: Terms of set sort
2148 *
2149 * Create with:
2150 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2151 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2152 */
2153 SETMINUS,
2154 /**
2155 * Subset predicate.
2156 *
2157 * Parameters:
2158 * - 1..2: Terms of set sort, [1] a subset of set [2]?
2159 *
2160 * Create with:
2161 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2162 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2163 */
2164 SUBSET,
2165 /**
2166 * Set membership predicate.
2167 *
2168 * Parameters:
2169 * - 1..2: Terms of set sort, [1] a member of set [2]?
2170 *
2171 * Create with:
2172 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2173 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2174 */
2175 MEMBER,
2176 /**
2177 * Construct a singleton set from an element given as a parameter.
2178 * The returned set has same type of the element.
2179 *
2180 * Parameters:
2181 * - 1: Single element
2182 *
2183 * Create with:
2184 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2185 */
2186 SINGLETON,
2187 /**
2188 * The set obtained by inserting elements;
2189 *
2190 * Parameters: n > 0
2191 * - 1..n-1: Elements inserted into set [n]
2192 * - n: Set Term
2193 *
2194 * Create with:
2195 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2196 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2197 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2198 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2199 */
2200 INSERT,
2201 /**
2202 * Set cardinality.
2203 *
2204 * Parameters:
2205 * - 1: Set to determine the cardinality of
2206 *
2207 * Create with:
2208 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2209 */
2210 CARD,
2211 /**
2212 * Set complement with respect to finite universe.
2213 *
2214 * Parameters:
2215 * - 1: Set to complement
2216 *
2217 * Create with:
2218 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2219 */
2220 COMPLEMENT,
2221 /**
2222 * Finite universe set.
2223 * All set variables must be interpreted as subsets of it.
2224 *
2225 * Note that UNIVERSE_SET is considered a special symbol of the theory of
2226 * sets and is not considered as a set value,
2227 * i.e., `Term::isSetValue() const` will return false.
2228 *
2229 * Create with:
2230 * - `Solver::mkUniverseSet(const Sort& sort) const`
2231 */
2232 UNIVERSE_SET,
2233 /**
2234 * Set join.
2235 *
2236 * Parameters:
2237 * - 1..2: Terms of set sort
2238 *
2239 * Create with:
2240 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2241 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2242 */
2243 JOIN,
2244 /**
2245 * Set cartesian product.
2246 *
2247 * Parameters:
2248 * - 1..2: Terms of set sort
2249 *
2250 * Create with:
2251 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2252 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2253 */
2254 PRODUCT,
2255 /**
2256 * Set transpose.
2257 *
2258 * Parameters:
2259 * - 1: Term of set sort
2260 *
2261 * Create with:
2262 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2263 */
2264 TRANSPOSE,
2265 /**
2266 * Set transitive closure.
2267 *
2268 * Parameters:
2269 * - 1: Term of set sort
2270 *
2271 * Create with:
2272 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2273 */
2274 TCLOSURE,
2275 /**
2276 * Set join image.
2277 *
2278 * Parameters:
2279 * - 1..2: Terms of set sort
2280 *
2281 * Create with:
2282 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2283 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2284 */
2285 JOIN_IMAGE,
2286 /**
2287 * Set identity.
2288 *
2289 * Parameters:
2290 * - 1: Term of set sort
2291 *
2292 * Create with:
2293 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2294 */
2295 IDEN,
2296 /**
2297 * Set comprehension
2298 * A set comprehension is specified by a bound variable list x1 ... xn,
2299 * a predicate P[x1...xn], and a term t[x1...xn]. A comprehension C with the
2300 * above form has members given by the following semantics:
2301 * @f[
2302 * \forall y. ( \exists x_1...x_n. P[x_1...x_n] \hat{} t[x_1...x_n] = y )
2303 * \Leftrightarrow (member y C)
2304 * @f]
2305 * where y ranges over the element type of the (set) type of the
2306 * comprehension. If @f$ t[x_1..x_n] @f$ is not provided, it is equivalent to
2307 * y in the above formula.
2308 *
2309 * Parameters:
2310 * - 1: Term BOUND_VAR_LIST
2311 * - 2: Term denoting the predicate of the comprehension
2312 * - 3: (optional) a Term denoting the generator for the comprehension
2313 *
2314 * Create with:
2315 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2316 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2317 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2318 */
2319 COMPREHENSION,
2320 /**
2321 * Returns an element from a given set.
2322 * If a set A = {x}, then the term (choose A) is equivalent to the term x.
2323 * If the set is empty, then (choose A) is an arbitrary value.
2324 * If the set has cardinality > 1, then (choose A) will deterministically
2325 * return an element in A.
2326 *
2327 * Parameters:
2328 * - 1: Term of set sort
2329 *
2330 * Create with:
2331 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2332 */
2333 CHOOSE,
2334 /**
2335 * Set is_singleton predicate.
2336 *
2337 * Parameters:
2338 * - 1: Term of set sort, is [1] a singleton set?
2339 *
2340 * Create with:
2341 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2342 */
2343 IS_SINGLETON,
2344 /* Bags ------------------------------------------------------------------ */
2345 /**
2346 * Empty bag constant.
2347 *
2348 * Parameters:
2349 * - 1: Sort of the bag elements
2350 *
2351 * Create with:
2352 * mkEmptyBag(const Sort& sort)
2353 */
2354 EMPTYBAG,
2355 /**
2356 * Bag max union.
2357 * Parameters:
2358 * - 1..2: Terms of bag sort
2359 *
2360 * Create with:
2361 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2362 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2363 */
2364 UNION_MAX,
2365 /**
2366 * Bag disjoint union (sum).
2367 *
2368 * Parameters:
2369 * -1..2: Terms of bag sort
2370 *
2371 * Create with:
2372 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2373 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2374 */
2375 UNION_DISJOINT,
2376 /**
2377 * Bag intersection (min).
2378 *
2379 * Parameters:
2380 * - 1..2: Terms of bag sort
2381 *
2382 * Create with:
2383 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2384 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2385 */
2386 INTERSECTION_MIN,
2387 /**
2388 * Bag difference subtract (subtracts multiplicities of the second from the
2389 * first).
2390 *
2391 * Parameters:
2392 * - 1..2: Terms of bag sort
2393 *
2394 * Create with:
2395 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2396 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2397 */
2398 DIFFERENCE_SUBTRACT,
2399 /**
2400 * Bag difference 2 (removes shared elements in the two bags).
2401 *
2402 * Parameters:
2403 * - 1..2: Terms of bag sort
2404 *
2405 * Create with:
2406 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2407 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2408 */
2409 DIFFERENCE_REMOVE,
2410 /**
2411 * Inclusion predicate for bags
2412 * (multiplicities of the first bag <= multiplicities of the second bag).
2413 *
2414 * Parameters:
2415 * - 1..2: Terms of bag sort
2416 *
2417 * Create with:
2418 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2419 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2420 */
2421 SUBBAG,
2422 /**
2423 * Element multiplicity in a bag
2424 *
2425 * Parameters:
2426 * - 1..2: Terms of bag sort (Bag E), [1] an element of sort E
2427 *
2428 * Create with:
2429 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2430 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2431 */
2432 BAG_COUNT,
2433 /**
2434 * Eliminate duplicates in a given bag. The returned bag contains exactly the
2435 * same elements in the given bag, but with multiplicity one.
2436 *
2437 * Parameters:
2438 * - 1: a term of bag sort
2439 *
2440 * Create with:
2441 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2442 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2443 */
2444 DUPLICATE_REMOVAL,
2445 /**
2446 * The bag of the single element given as a parameter.
2447 *
2448 * Parameters:
2449 * - 1: Single element
2450 *
2451 * Create with:
2452 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2453 */
2454 MK_BAG,
2455 /**
2456 * Bag cardinality.
2457 *
2458 * Parameters:
2459 * - 1: Bag to determine the cardinality of
2460 *
2461 * Create with:
2462 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2463 */
2464 BAG_CARD,
2465 /**
2466 * Returns an element from a given bag.
2467 * If a bag A = {(x,n)} where n is the multiplicity, then the term (choose A)
2468 * is equivalent to the term x.
2469 * If the bag is empty, then (choose A) is an arbitrary value.
2470 * If the bag contains distinct elements, then (choose A) will
2471 * deterministically return an element in A.
2472 *
2473 * Parameters:
2474 * - 1: Term of bag sort
2475 *
2476 * Create with:
2477 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2478 */
2479 BAG_CHOOSE,
2480 /**
2481 * Bag is_singleton predicate (single element with multiplicity exactly one).
2482 * Parameters:
2483 * - 1: Term of bag sort, is [1] a singleton bag?
2484 *
2485 * Create with:
2486 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2487 */
2488 BAG_IS_SINGLETON,
2489 /**
2490 * Bag.from_set converts a set to a bag.
2491 *
2492 * Parameters:
2493 * - 1: Term of set sort
2494 *
2495 * Create with:
2496 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2497 */
2498 BAG_FROM_SET,
2499 /**
2500 * Bag.to_set converts a bag to a set.
2501 *
2502 * Parameters:
2503 * - 1: Term of bag sort
2504 *
2505 * Create with:
2506 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2507 */
2508 BAG_TO_SET,
2509 /**
2510 * bag.map operator applies the first argument, a function of type (-> T1 T2),
2511 * to every element of the second argument, a bag of type (Bag T1),
2512 * and returns a bag of type (Bag T2).
2513 *
2514 * Parameters:
2515 * - 1: a function of type (-> T1 T2)
2516 * - 2: a bag of type (Bag T1)
2517 *
2518 * Create with:
2519 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2)
2520 * const`
2521 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2522 */
2523 BAG_MAP,
2524
2525 /* Strings --------------------------------------------------------------- */
2526
2527 /**
2528 * String concat.
2529 *
2530 * Parameters: n > 1
2531 * - 1..n: Terms of String sort
2532 *
2533 * Create with:
2534 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2535 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2536 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2537 */
2538 STRING_CONCAT,
2539 /**
2540 * String membership.
2541 *
2542 * Parameters:
2543 * - 1: Term of String sort
2544 * - 2: Term of RegExp sort
2545 *
2546 * Create with:
2547 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2548 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2549 */
2550 STRING_IN_REGEXP,
2551 /**
2552 * String length.
2553 *
2554 * Parameters:
2555 * - 1: Term of String sort
2556 *
2557 * Create with:
2558 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2559 */
2560 STRING_LENGTH,
2561 /**
2562 * String substring.
2563 * Extracts a substring, starting at index i and of length l, from a string
2564 * s. If the start index is negative, the start index is greater than the
2565 * length of the string, or the length is negative, the result is the empty
2566 * string.
2567 *
2568 * Parameters:
2569 * - 1: Term of sort String
2570 * - 2: Term of sort Integer (index i)
2571 * - 3: Term of sort Integer (length l)
2572 *
2573 * Create with:
2574 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2575 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2576 */
2577 STRING_SUBSTR,
2578 /**
2579 * String update.
2580 * Updates a string s by replacing its context starting at an index with t.
2581 * If the start index is negative, the start index is greater than the
2582 * length of the string, the result is s. Otherwise, the length of the
2583 * original string is preserved.
2584 *
2585 * Parameters:
2586 * - 1: Term of sort String
2587 * - 2: Term of sort Integer (index i)
2588 * - 3: Term of sort String (replacement string t)
2589 *
2590 * Create with:
2591 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2592 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2593 */
2594 STRING_UPDATE,
2595 /**
2596 * String character at.
2597 * Returns the character at index i from a string s. If the index is negative
2598 * or the index is greater than the length of the string, the result is the
2599 * empty string. Otherwise the result is a string of length 1.
2600 *
2601 * Parameters:
2602 * - 1: Term of sort String (string s)
2603 * - 2: Term of sort Integer (index i)
2604 *
2605 * Create with:
2606 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2607 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2608 */
2609 STRING_CHARAT,
2610 /**
2611 * String contains.
2612 * Checks whether a string s1 contains another string s2. If s2 is empty, the
2613 * result is always true.
2614 *
2615 * Parameters:
2616 * - 1: Term of sort String (the string s1)
2617 * - 2: Term of sort String (the string s2)
2618 *
2619 * Create with:
2620 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2621 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2622 */
2623 STRING_CONTAINS,
2624 /**
2625 * String index-of.
2626 * Returns the index of a substring s2 in a string s1 starting at index i. If
2627 * the index is negative or greater than the length of string s1 or the
2628 * substring s2 does not appear in string s1 after index i, the result is -1.
2629 *
2630 * Parameters:
2631 * - 1: Term of sort String (substring s1)
2632 * - 2: Term of sort String (substring s2)
2633 * - 3: Term of sort Integer (index i)
2634 *
2635 * Create with:
2636 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2637 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2638 */
2639 STRING_INDEXOF,
2640 /**
2641 * String index-of regular expression match.
2642 * Returns the first match of a regular expression r in a string s. If the
2643 * index is negative or greater than the length of string s1, or r does not
2644 * match a substring in s after index i, the result is -1.
2645 *
2646 * Parameters:
2647 * - 1: Term of sort String (string s)
2648 * - 2: Term of sort RegLan (regular expression r)
2649 * - 3: Term of sort Integer (index i)
2650 *
2651 * Create with:
2652 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2653 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2654 */
2655 STRING_INDEXOF_RE,
2656 /**
2657 * String replace.
2658 * Replaces a string s2 in a string s1 with string s3. If s2 does not appear
2659 * in s1, s1 is returned unmodified.
2660 *
2661 * Parameters:
2662 * - 1: Term of sort String (string s1)
2663 * - 2: Term of sort String (string s2)
2664 * - 3: Term of sort String (string s3)
2665 *
2666 * Create with:
2667 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2668 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2669 */
2670 STRING_REPLACE,
2671 /**
2672 * String replace all.
2673 * Replaces all occurrences of a string s2 in a string s1 with string s3.
2674 * If s2 does not appear in s1, s1 is returned unmodified.
2675 *
2676 * Parameters:
2677 * - 1: Term of sort String (string s1)
2678 * - 2: Term of sort String (string s2)
2679 * - 3: Term of sort String (string s3)
2680 *
2681 * Create with:
2682 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2683 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2684 */
2685 STRING_REPLACE_ALL,
2686 /**
2687 * String replace regular expression match.
2688 * Replaces the first match of a regular expression r in string s1 with
2689 * string s2. If r does not match a substring of s1, s1 is returned
2690 * unmodified.
2691 *
2692 * Parameters:
2693 * - 1: Term of sort String (string s1)
2694 * - 2: Term of sort Regexp (regexp r)
2695 * - 3: Term of sort String (string s2)
2696 *
2697 * Create with:
2698 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2699 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2700 */
2701 STRING_REPLACE_RE,
2702 /**
2703 * String replace all regular expression matches.
2704 * Replaces all matches of a regular expression r in string s1 with string
2705 * s2. If r does not match a substring of s1, s1 is returned unmodified.
2706 *
2707 * Parameters:
2708 * - 1: Term of sort String (string s1)
2709 * - 2: Term of sort Regexp (regexp r)
2710 * - 3: Term of sort String (string s2)
2711 *
2712 * Create with:
2713 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
2714 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2715 */
2716 STRING_REPLACE_RE_ALL,
2717 /**
2718 * String to lower case.
2719 *
2720 * Parameters:
2721 * - 1: Term of String sort
2722 *
2723 * Create with:
2724 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2725 */
2726 STRING_TOLOWER,
2727 /**
2728 * String to upper case.
2729 *
2730 * Parameters:
2731 * - 1: Term of String sort
2732 *
2733 * Create with:
2734 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2735 */
2736 STRING_TOUPPER,
2737 /**
2738 * String reverse.
2739 *
2740 * Parameters:
2741 * - 1: Term of String sort
2742 *
2743 * Create with:
2744 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2745 */
2746 STRING_REV,
2747 /**
2748 * String to code.
2749 * Returns the code point of a string if it has length one, or returns -1
2750 * otherwise.
2751 *
2752 * Parameters:
2753 * - 1: Term of String sort
2754 *
2755 * Create with:
2756 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2757 */
2758 STRING_TO_CODE,
2759 /**
2760 * String from code.
2761 * Returns a string containing a single character whose code point matches
2762 * the argument to this function, or the empty string if the argument is
2763 * out-of-bounds.
2764 *
2765 * Parameters:
2766 * - 1: Term of Integer sort
2767 *
2768 * Create with:
2769 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2770 */
2771 STRING_FROM_CODE,
2772 /**
2773 * String less than.
2774 * Returns true if string s1 is (strictly) less than s2 based on a
2775 * lexiographic ordering over code points.
2776 *
2777 * Parameters:
2778 * - 1: Term of sort String (the string s1)
2779 * - 2: Term of sort String (the string s2)
2780 *
2781 * Create with:
2782 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2783 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2784 */
2785 STRING_LT,
2786 /**
2787 * String less than or equal.
2788 * Returns true if string s1 is less than or equal to s2 based on a
2789 * lexiographic ordering over code points.
2790 *
2791 * Parameters:
2792 * - 1: Term of sort String (the string s1)
2793 * - 2: Term of sort String (the string s2)
2794 *
2795 * Create with:
2796 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2797 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2798 */
2799 STRING_LEQ,
2800 /**
2801 * String prefix-of.
2802 * Checks whether a string s1 is a prefix of string s2. If string s1 is
2803 * empty, this operator returns true.
2804 *
2805 * Parameters:
2806 * - 1: Term of sort String (string s1)
2807 * - 2: Term of sort String (string s2)
2808 *
2809 * Create with:
2810 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2811 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2812 */
2813 STRING_PREFIX,
2814 /**
2815 * String suffix-of.
2816 * Checks whether a string s1 is a suffix of string 2. If string s1 is empty,
2817 * this operator returns true.
2818 *
2819 * Parameters:
2820 * - 1: Term of sort String (string s1)
2821 * - 2: Term of sort String (string s2)
2822 *
2823 * Create with:
2824 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2825 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2826 */
2827 STRING_SUFFIX,
2828 /**
2829 * String is-digit.
2830 * Returns true if string s is digit (it is one of "0", ..., "9").
2831 *
2832 * Parameters:
2833 * - 1: Term of sort String
2834 *
2835 * Create with:
2836 * - `Solver::mkTerm(Kind kind, const Term& child1) const`
2837 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2838 */
2839 STRING_IS_DIGIT,
2840 /**
2841 * Integer to string.
2842 * If the integer is negative this operator returns the empty string.
2843 *
2844 * Parameters:
2845 * - 1: Term of sort Integer
2846 *
2847 * Create with:
2848 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2849 */
2850 STRING_FROM_INT,
2851 /**
2852 * String to integer (total function).
2853 * If the string does not contain an integer or the integer is negative, the
2854 * operator returns -1.
2855 *
2856 * Parameters:
2857 * - 1: Term of sort String
2858 *
2859 * Create with:
2860 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2861 */
2862 STRING_TO_INT,
2863 /**
2864 * Constant string.
2865 *
2866 * Parameters:
2867 * - See @ref cvc5::api::Solver::mkString() "mkString()".
2868 *
2869 * Create with:
2870 * - `Solver::mkString(const std::string& s, bool useEscSequences) const`
2871 * - `Solver::mkString(const unsigned char c) const`
2872 * - `Solver::mkString(const std::vector<uint32_t>& s) const`
2873 */
2874 CONST_STRING,
2875 /**
2876 * Conversion from string to regexp.
2877 *
2878 * Parameters:
2879 * - 1: Term of sort String
2880 *
2881 * Create with:
2882 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2883 */
2884 STRING_TO_REGEXP,
2885 /**
2886 * Regexp Concatenation.
2887 *
2888 * Parameters:
2889 * - 1..2: Terms of Regexp sort
2890 *
2891 * Create with:
2892 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2893 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2894 */
2895 REGEXP_CONCAT,
2896 /**
2897 * Regexp union.
2898 *
2899 * Parameters:
2900 * - 1..2: Terms of Regexp sort
2901 *
2902 * Create with:
2903 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2904 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2905 */
2906 REGEXP_UNION,
2907 /**
2908 * Regexp intersection.
2909 *
2910 * Parameters:
2911 * - 1..2: Terms of Regexp sort
2912 *
2913 * Create with:
2914 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2915 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2916 */
2917 REGEXP_INTER,
2918 /**
2919 * Regexp difference.
2920 *
2921 * Parameters:
2922 * - 1..2: Terms of Regexp sort
2923 *
2924 * Create with:
2925 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2926 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2927 */
2928 REGEXP_DIFF,
2929 /**
2930 * Regexp *.
2931 *
2932 * Parameters:
2933 * - 1: Term of sort Regexp
2934 *
2935 * Create with:
2936 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2937 */
2938 REGEXP_STAR,
2939 /**
2940 * Regexp +.
2941 *
2942 * Parameters:
2943 * - 1: Term of sort Regexp
2944 *
2945 * Create with:
2946 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2947 */
2948 REGEXP_PLUS,
2949 /**
2950 * Regexp ?.
2951 *
2952 * Parameters:
2953 * - 1: Term of sort Regexp
2954 *
2955 * Create with:
2956 * - `Solver::mkTerm(Kind kind, const Term& child) const`
2957 */
2958 REGEXP_OPT,
2959 /**
2960 * Regexp range.
2961 *
2962 * Parameters:
2963 * - 1: Lower bound character for the range
2964 * - 2: Upper bound character for the range
2965 *
2966 * Create with:
2967 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
2968 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
2969 */
2970 REGEXP_RANGE,
2971 /**
2972 * Operator for regular expression repeat.
2973 *
2974 * Parameters:
2975 * - 1: The number of repetitions
2976 *
2977 * Create with:
2978 * - `Solver::mkOp(Kind kind, uint32_t param) const`
2979 *
2980 * Apply regular expression loop.
2981 *
2982 * Parameters:
2983 * - 1: Op of kind REGEXP_REPEAT
2984 * - 2: Term of regular expression sort
2985 *
2986 * Create with:
2987 * - `Solver::mkTerm(const Op& op, const Term& child) const`
2988 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
2989 */
2990 REGEXP_REPEAT,
2991 /**
2992 * Operator for regular expression loop, from lower bound to upper bound
2993 * number of repetitions.
2994 *
2995 * Parameters:
2996 * - 1: The lower bound
2997 * - 2: The upper bound
2998 *
2999 * Create with:
3000 * - `Solver::mkOp(Kind kind, uint32_t param, uint32_t param) const`
3001 *
3002 * Apply regular expression loop.
3003 *
3004 * Parameters:
3005 * - 1: Op of kind REGEXP_LOOP
3006 * - 2: Term of regular expression sort
3007 *
3008 * Create with:
3009 * - `Solver::mkTerm(const Op& op, const Term& child) const`
3010 * - `Solver::mkTerm(const Op& op, const std::vector<Term>& children) const`
3011 */
3012 REGEXP_LOOP,
3013 /**
3014 * Regexp empty.
3015 *
3016 * Parameters: none
3017 *
3018 * Create with:
3019 * - `Solver::mkRegexpEmpty() const`
3020 * - `Solver::mkTerm(Kind kind) const`
3021 */
3022 REGEXP_EMPTY,
3023 /**
3024 * Regexp all characters.
3025 *
3026 * Parameters: none
3027 *
3028 * Create with:
3029 * - `Solver::mkRegexpSigma() const`
3030 * - `Solver::mkTerm(Kind kind) const`
3031 */
3032 REGEXP_SIGMA,
3033 /**
3034 * Regexp complement.
3035 *
3036 * Parameters:
3037 * - 1: Term of sort RegExp
3038 *
3039 * Create with:
3040 * - `Solver::mkTerm(Kind kind, const Term& child1) const`
3041 */
3042 REGEXP_COMPLEMENT,
3043
3044 /**
3045 * Sequence concat.
3046 *
3047 * Parameters: n > 1
3048 * - 1..n: Terms of Sequence sort
3049 *
3050 * Create with:
3051 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3052 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3053 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3054 */
3055 SEQ_CONCAT,
3056 /**
3057 * Sequence length.
3058 *
3059 * Parameters:
3060 * - 1: Term of Sequence sort
3061 *
3062 * Create with:
3063 * - `Solver::mkTerm(Kind kind, const Term& child) const`
3064 */
3065 SEQ_LENGTH,
3066 /**
3067 * Sequence extract.
3068 * Extracts a subsequence, starting at index i and of length l, from a
3069 * sequence s. If the start index is negative, the start index is greater
3070 * than the length of the sequence, or the length is negative, the result is
3071 * the empty sequence.
3072 *
3073 * Parameters:
3074 * - 1: Term of sort Sequence
3075 * - 2: Term of sort Integer (index i)
3076 * - 3: Term of sort Integer (length l)
3077 *
3078 * Create with:
3079 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3080 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3081 */
3082 SEQ_EXTRACT,
3083 /**
3084 * Sequence update.
3085 * Updates a sequence s by replacing its context starting at an index with t.
3086 * If the start index is negative, the start index is greater than the
3087 * length of the sequence, the result is s. Otherwise, the length of the
3088 * original sequence is preserved.
3089 *
3090 * Parameters:
3091 * - 1: Term of sort Sequence
3092 * - 2: Term of sort Integer (index i)
3093 * - 3: Term of sort Sequence (replacement sequence t)
3094 *
3095 * Create with:
3096 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3097 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3098 */
3099 SEQ_UPDATE,
3100 /**
3101 * Sequence element at.
3102 * Returns the element at index i from a sequence s. If the index is negative
3103 * or the index is greater or equal to the length of the sequence, the result
3104 * is the empty sequence. Otherwise the result is a sequence of length 1.
3105 *
3106 * Parameters:
3107 * - 1: Term of sequence sort (string s)
3108 * - 2: Term of sort Integer (index i)
3109 *
3110 * Create with:
3111 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3112 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3113 */
3114 SEQ_AT,
3115 /**
3116 * Sequence contains.
3117 * Checks whether a sequence s1 contains another sequence s2. If s2 is empty,
3118 * the result is always true.
3119 *
3120 * Parameters:
3121 * - 1: Term of sort Sequence (the sequence s1)
3122 * - 2: Term of sort Sequence (the sequence s2)
3123 *
3124 * Create with:
3125 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3126 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3127 */
3128 SEQ_CONTAINS,
3129 /**
3130 * Sequence index-of.
3131 * Returns the index of a subsequence s2 in a sequence s1 starting at index i.
3132 * If the index is negative or greater than the length of sequence s1 or the
3133 * subsequence s2 does not appear in sequence s1 after index i, the result is
3134 * -1.
3135 *
3136 * Parameters:
3137 * - 1: Term of sort Sequence (subsequence s1)
3138 * - 2: Term of sort Sequence (subsequence s2)
3139 * - 3: Term of sort Integer (index i)
3140 *
3141 * Create with:
3142 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3143 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3144 */
3145 SEQ_INDEXOF,
3146 /**
3147 * Sequence replace.
3148 * Replaces the first occurrence of a sequence s2 in a sequence s1 with
3149 * sequence s3. If s2 does not appear in s1, s1 is returned unmodified.
3150 *
3151 * Parameters:
3152 * - 1: Term of sort Sequence (sequence s1)
3153 * - 2: Term of sort Sequence (sequence s2)
3154 * - 3: Term of sort Sequence (sequence s3)
3155 *
3156 * Create with:
3157 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3158 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3159 */
3160 SEQ_REPLACE,
3161 /**
3162 * Sequence replace all.
3163 * Replaces all occurrences of a sequence s2 in a sequence s1 with sequence
3164 * s3. If s2 does not appear in s1, s1 is returned unmodified.
3165 *
3166 * Parameters:
3167 * - 1: Term of sort Sequence (sequence s1)
3168 * - 2: Term of sort Sequence (sequence s2)
3169 * - 3: Term of sort Sequence (sequence s3)
3170 *
3171 * Create with:
3172 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3173 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3174 */
3175 SEQ_REPLACE_ALL,
3176 /**
3177 * Sequence reverse.
3178 *
3179 * Parameters:
3180 * - 1: Term of Sequence sort
3181 *
3182 * Create with:
3183 * - `Solver::mkTerm(Kind kind, const Term& child) const`
3184 */
3185 SEQ_REV,
3186 /**
3187 * Sequence prefix-of.
3188 * Checks whether a sequence s1 is a prefix of sequence s2. If sequence s1 is
3189 * empty, this operator returns true.
3190 *
3191 * Parameters:
3192 * - 1: Term of sort Sequence (sequence s1)
3193 * - 2: Term of sort Sequence (sequence s2)
3194 *
3195 * Create with:
3196 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3197 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3198 */
3199 SEQ_PREFIX,
3200 /**
3201 * Sequence suffix-of.
3202 * Checks whether a sequence s1 is a suffix of sequence s2. If sequence s1 is
3203 * empty, this operator returns true.
3204 *
3205 * Parameters:
3206 * - 1: Term of sort Sequence (sequence s1)
3207 * - 2: Term of sort Sequence (sequence s2)
3208 *
3209 * Create with:
3210 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3211 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3212 */
3213 SEQ_SUFFIX,
3214 /**
3215 * Constant sequence.
3216 *
3217 * Parameters:
3218 * - See @ref cvc5::api::Solver::mkEmptySequence() "mkEmptySequence()".
3219 *
3220 * Create with:
3221 * - `Solver::mkEmptySequence(const Sort& sort) const`
3222 *
3223 * Note that a constant sequence is a term that is equivalent to:
3224 *
3225 * (seq.++ (seq.unit c1) ... (seq.unit cn))
3226 *
3227 * where n>=0 and c1, ..., cn are constants of some sort. The elements
3228 * can be extracted by `Term::getSequenceValue()`.
3229 */
3230 CONST_SEQUENCE,
3231 /**
3232 * Sequence unit, corresponding to a sequence of length one with the given
3233 * term.
3234 *
3235 * Parameters:
3236 * - 1: Element term.
3237 *
3238 * Create with:
3239 * - `Solver::mkTerm(Kind kind, const Term& child1) const`
3240 */
3241 SEQ_UNIT,
3242 /**
3243 * Sequence nth, corresponding to the nth element of a sequence.
3244 *
3245 * Parameters:
3246 * - 1: Sequence term.
3247 * - 2: Integer term.
3248 *
3249 * Create with:
3250 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3251 */
3252 SEQ_NTH,
3253
3254 /* Quantifiers ----------------------------------------------------------- */
3255
3256 /**
3257 * Universally quantified formula.
3258 *
3259 * Parameters:
3260 * - 1: BOUND_VAR_LIST Term
3261 * - 2: Quantifier body
3262 * - 3: (optional) INST_PATTERN_LIST Term
3263 *
3264 * Create with:
3265 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3266 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3267 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3268 */
3269 FORALL,
3270 /**
3271 * Existentially quantified formula.
3272 *
3273 * Parameters:
3274 * - 1: BOUND_VAR_LIST Term
3275 * - 2: Quantifier body
3276 * - 3: (optional) INST_PATTERN_LIST Term
3277 *
3278 * Create with:
3279 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3280 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3281 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3282 */
3283 EXISTS,
3284 /**
3285 * A list of bound variables (used to bind variables under a quantifier)
3286 *
3287 * Parameters: n > 1
3288 * - 1..n: Terms with kind BOUND_VARIABLE
3289 *
3290 * Create with:
3291 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3292 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3293 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3294 */
3295 BOUND_VAR_LIST,
3296 /**
3297 * An instantiation pattern.
3298 * Specifies a (list of) terms to be used as a pattern for quantifier
3299 * instantiation.
3300 *
3301 * Parameters: n > 1
3302 * - 1..n: Terms with kind BOUND_VARIABLE
3303 *
3304 * Create with:
3305 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3306 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3307 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3308 */
3309 INST_PATTERN,
3310 /**
3311 * An instantiation no-pattern.
3312 * Specifies a (list of) terms that should not be used as a pattern for
3313 * quantifier instantiation.
3314 *
3315 * Parameters: n > 1
3316 * - 1..n: Terms with kind BOUND_VARIABLE
3317 *
3318 * Create with:
3319 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3320 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3321 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3322 */
3323 INST_NO_PATTERN,
3324 /*
3325 * An instantiation pool.
3326 * Specifies an annotation for pool based instantiation.
3327 * Parameters: n > 1
3328 * - 1..n: Terms that comprise the pools, which are one-to-one with
3329 * the variables of the quantified formula to be instantiated.
3330 * Create with:
3331 * - `mkTerm(Kind kind, Term child1, Term child2)
3332 * - `mkTerm(Kind kind, Term child1, Term child2, Term child3)
3333 * - `mkTerm(Kind kind, const std::vector<Term>& children)
3334 */
3335 INST_POOL,
3336 /*
3337 * A instantantiation-add-to-pool annotation.
3338 * Parameters: n = 1
3339 * - 1: The pool to add to.
3340 * Create with:
3341 * - `mkTerm(Kind kind, Term child)
3342 */
3343 INST_ADD_TO_POOL,
3344 /*
3345 * A skolemization-add-to-pool annotation.
3346 * Parameters: n = 1
3347 * - 1: The pool to add to.
3348 * Create with:
3349 * - `mkTerm(Kind kind, Term child)
3350 */
3351 SKOLEM_ADD_TO_POOL,
3352 /**
3353 * An instantiation attribute
3354 * Specifies a custom property for a quantified formula given by a
3355 * term that is ascribed a user attribute.
3356 *
3357 * Parameters: n >= 1
3358 * - 1: The keyword of the attribute (a term with kind CONST_STRING).
3359 * - 2...n: The values of the attribute.
3360 *
3361 * Create with:
3362 * - `mkTerm(Kind kind, Term child1, Term child2)
3363 * - `mkTerm(Kind kind, Term child1, Term child2, Term child3)
3364 * - `mkTerm(Kind kind, const std::vector<Term>& children)
3365 */
3366 INST_ATTRIBUTE,
3367 /**
3368 * A list of instantiation patterns and/or attributes.
3369 *
3370 * Parameters: n > 1
3371 * - 1..n: Terms with kind INST_PATTERN, INST_NO_PATTERN, or
3372 * INST_ATTRIBUTE.
3373 *
3374 * Create with:
3375 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2) const`
3376 * - `Solver::mkTerm(Kind kind, const Term& child1, const Term& child2, const Term& child3) const`
3377 * - `Solver::mkTerm(Kind kind, const std::vector<Term>& children) const`
3378 */
3379 INST_PATTERN_LIST,
3380 #if 0
3381
3382 /* Sort Kinds ------------------------------------------------------------ */
3383
3384 /* array type */
3385 ARRAY_TYPE,
3386 /* a type parameter for type ascription */
3387 ASCRIPTION_TYPE,
3388 /* constructor */
3389 CONSTRUCTOR_TYPE,
3390 /* a datatype type index */
3391 DATATYPE_TYPE,
3392 /* selector */
3393 SELECTOR_TYPE,
3394 /* set type, takes as parameter the type of the elements */
3395 SET_TYPE,
3396 /* bag type, takes as parameter the type of the elements */
3397 BAG_TYPE,
3398 /* sort tag */
3399 SORT_TAG,
3400 /* specifies types of user-declared 'uninterpreted' sorts */
3401 SORT_TYPE,
3402 /* tester */
3403 TESTER_TYPE,
3404 /* a representation for basic types */
3405 TYPE_CONSTANT,
3406 /* a function type */
3407 FUNCTION_TYPE,
3408 /* the type of a symbolic expression */
3409 SEXPR_TYPE,
3410 /* bit-vector type */
3411 BITVECTOR_TYPE,
3412 /* floating-point type */
3413 FLOATINGPOINT_TYPE,
3414 #endif
3415
3416 /* ----------------------------------------------------------------------- */
3417 /** Marks the upper-bound of this enumeration. */
3418 LAST_KIND
3419 };
3420 // clang-format on
3421
3422 /**
3423 * Get the string representation of a given kind.
3424 * @param k the kind
3425 * @return the string representation of kind k
3426 */
3427 std::string kindToString(Kind k) CVC5_EXPORT;
3428
3429 /**
3430 * Serialize a kind to given stream.
3431 * @param out the output stream
3432 * @param k the kind to be serialized to the given output stream
3433 * @return the output stream
3434 */
3435 std::ostream& operator<<(std::ostream& out, Kind k) CVC5_EXPORT;
3436
3437 } // namespace api
3438 } // namespace cvc5
3439
3440 namespace std {
3441
3442 /**
3443 * Hash function for Kinds.
3444 */
3445 template<>
3446 struct CVC5_EXPORT hash<cvc5::api::Kind>
3447 {
3448 /**
3449 * Hashes a Kind to a size_t.
3450 */
3451 size_t operator()(cvc5::api::Kind k) const;
3452 };
3453
3454 }
3455
3456 #endif