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