Z3
 
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
ArithRef Class Reference
+ Inheritance diagram for ArithRef:

Public Member Functions

 sort (self)
 
 is_int (self)
 
 is_real (self)
 
 __add__ (self, other)
 
 __radd__ (self, other)
 
 __mul__ (self, other)
 
 __rmul__ (self, other)
 
 __sub__ (self, other)
 
 __rsub__ (self, other)
 
 __pow__ (self, other)
 
 __rpow__ (self, other)
 
 __div__ (self, other)
 
 __truediv__ (self, other)
 
 __rdiv__ (self, other)
 
 __rtruediv__ (self, other)
 
 __mod__ (self, other)
 
 __rmod__ (self, other)
 
 __neg__ (self)
 
 __pos__ (self)
 
 __le__ (self, other)
 
 __lt__ (self, other)
 
 __gt__ (self, other)
 
 __ge__ (self, other)
 
 __abs__ (self)
 
- Public Member Functions inherited from ExprRef
 as_ast (self)
 
 get_id (self)
 
 sort_kind (self)
 
 __eq__ (self, other)
 
 __hash__ (self)
 
 __ne__ (self, other)
 
 params (self)
 
 decl (self)
 
 kind (self)
 
 num_args (self)
 
 arg (self, idx)
 
 children (self)
 
 update (self, *args)
 
 from_string (self, s)
 
 serialize (self)
 
- Public Member Functions inherited from AstRef
 __init__ (self, ast, ctx=None)
 
 __del__ (self)
 
 __deepcopy__ (self, memo={})
 
 __str__ (self)
 
 __repr__ (self)
 
 __nonzero__ (self)
 
 __bool__ (self)
 
 sexpr (self)
 
 ctx_ref (self)
 
 eq (self, other)
 
 translate (self, target)
 
 __copy__ (self)
 
 hash (self)
 
 py_value (self)
 
- Public Member Functions inherited from Z3PPObject
 use_pp (self)
 

Data Fields

 ctx
 
- Data Fields inherited from ExprRef
 ctx
 
 ast
 
- Data Fields inherited from AstRef
 ast
 
 ctx
 

Additional Inherited Members

- Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)
 

Detailed Description

Integer, Real, and Complex expressions.

Definition at line 2544 of file z3py.py.

Member Function Documentation

◆ __abs__()

__abs__ (   self)
Return an expression representing `abs(self)`.

>>> x = Int('x')
>>> abs(x)
If(x > 0, x, -x)
>>> eq(abs(x), Abs(x))
True

Definition at line 2828 of file z3py.py.

2828 def __abs__(self):
2829 """Return an expression representing `abs(self)`.
2830
2831 >>> x = Int('x')
2832 >>> abs(x)
2833 If(x > 0, x, -x)
2834 >>> eq(abs(x), Abs(x))
2835 True
2836 """
2837 return Abs(self)
2838
2839

◆ __add__()

__add__ (   self,
  other 
)
Create the Z3 expression `self + other`.

>>> x = Int('x')
>>> y = Int('y')
>>> x + y
x + y
>>> (x + y).sort()
Int

Definition at line 2582 of file z3py.py.

2582 def __add__(self, other):
2583 """Create the Z3 expression `self + other`.
2584
2585 >>> x = Int('x')
2586 >>> y = Int('y')
2587 >>> x + y
2588 x + y
2589 >>> (x + y).sort()
2590 Int
2591 """
2592 a, b = _coerce_exprs(self, other)
2593 return _to_expr_ref(_mk_bin(Z3_mk_add, a, b), self.ctx)
2594

◆ __div__()

__div__ (   self,
  other 
)
Create the Z3 expression `other/self`.

>>> x = Int('x')
>>> y = Int('y')
>>> x/y
x/y
>>> (x/y).sort()
Int
>>> (x/y).sexpr()
'(div x y)'
>>> x = Real('x')
>>> y = Real('y')
>>> x/y
x/y
>>> (x/y).sort()
Real
>>> (x/y).sexpr()
'(/ x y)'

Definition at line 2681 of file z3py.py.

2681 def __div__(self, other):
2682 """Create the Z3 expression `other/self`.
2683
2684 >>> x = Int('x')
2685 >>> y = Int('y')
2686 >>> x/y
2687 x/y
2688 >>> (x/y).sort()
2689 Int
2690 >>> (x/y).sexpr()
2691 '(div x y)'
2692 >>> x = Real('x')
2693 >>> y = Real('y')
2694 >>> x/y
2695 x/y
2696 >>> (x/y).sort()
2697 Real
2698 >>> (x/y).sexpr()
2699 '(/ x y)'
2700 """
2701 a, b = _coerce_exprs(self, other)
2702 return _to_expr_ref(Z3_mk_div(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2703
Z3_ast Z3_API Z3_mk_div(Z3_context c, Z3_ast arg1, Z3_ast arg2)
Create an AST node representing arg1 div arg2.

Referenced by ArithRef.__truediv__(), and BitVecRef.__truediv__().

◆ __ge__()

__ge__ (   self,
  other 
)
Create the Z3 expression `other >= self`.

>>> x, y = Ints('x y')
>>> x >= y
x >= y
>>> y = Real('y')
>>> x >= y
ToReal(x) >= y

Definition at line 2815 of file z3py.py.

2815 def __ge__(self, other):
2816 """Create the Z3 expression `other >= self`.
2817
2818 >>> x, y = Ints('x y')
2819 >>> x >= y
2820 x >= y
2821 >>> y = Real('y')
2822 >>> x >= y
2823 ToReal(x) >= y
2824 """
2825 a, b = _coerce_exprs(self, other)
2826 return BoolRef(Z3_mk_ge(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2827
Z3_ast Z3_API Z3_mk_ge(Z3_context c, Z3_ast t1, Z3_ast t2)
Create greater than or equal to.

◆ __gt__()

__gt__ (   self,
  other 
)
Create the Z3 expression `other > self`.

>>> x, y = Ints('x y')
>>> x > y
x > y
>>> y = Real('y')
>>> x > y
ToReal(x) > y

Definition at line 2802 of file z3py.py.

2802 def __gt__(self, other):
2803 """Create the Z3 expression `other > self`.
2804
2805 >>> x, y = Ints('x y')
2806 >>> x > y
2807 x > y
2808 >>> y = Real('y')
2809 >>> x > y
2810 ToReal(x) > y
2811 """
2812 a, b = _coerce_exprs(self, other)
2813 return BoolRef(Z3_mk_gt(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2814
Z3_ast Z3_API Z3_mk_gt(Z3_context c, Z3_ast t1, Z3_ast t2)
Create greater than.

◆ __le__()

__le__ (   self,
  other 
)
Create the Z3 expression `other <= self`.

>>> x, y = Ints('x y')
>>> x <= y
x <= y
>>> y = Real('y')
>>> x <= y
ToReal(x) <= y

Definition at line 2776 of file z3py.py.

2776 def __le__(self, other):
2777 """Create the Z3 expression `other <= self`.
2778
2779 >>> x, y = Ints('x y')
2780 >>> x <= y
2781 x <= y
2782 >>> y = Real('y')
2783 >>> x <= y
2784 ToReal(x) <= y
2785 """
2786 a, b = _coerce_exprs(self, other)
2787 return BoolRef(Z3_mk_le(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2788
Z3_ast Z3_API Z3_mk_le(Z3_context c, Z3_ast t1, Z3_ast t2)
Create less than or equal to.

◆ __lt__()

__lt__ (   self,
  other 
)
Create the Z3 expression `other < self`.

>>> x, y = Ints('x y')
>>> x < y
x < y
>>> y = Real('y')
>>> x < y
ToReal(x) < y

Definition at line 2789 of file z3py.py.

2789 def __lt__(self, other):
2790 """Create the Z3 expression `other < self`.
2791
2792 >>> x, y = Ints('x y')
2793 >>> x < y
2794 x < y
2795 >>> y = Real('y')
2796 >>> x < y
2797 ToReal(x) < y
2798 """
2799 a, b = _coerce_exprs(self, other)
2800 return BoolRef(Z3_mk_lt(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2801
Z3_ast Z3_API Z3_mk_lt(Z3_context c, Z3_ast t1, Z3_ast t2)
Create less than.

◆ __mod__()

__mod__ (   self,
  other 
)
Create the Z3 expression `other%self`.

>>> x = Int('x')
>>> y = Int('y')
>>> x % y
x%y
>>> simplify(IntVal(10) % IntVal(3))
1

Definition at line 2729 of file z3py.py.

2729 def __mod__(self, other):
2730 """Create the Z3 expression `other%self`.
2731
2732 >>> x = Int('x')
2733 >>> y = Int('y')
2734 >>> x % y
2735 x%y
2736 >>> simplify(IntVal(10) % IntVal(3))
2737 1
2738 """
2739 a, b = _coerce_exprs(self, other)
2740 if z3_debug():
2741 _z3_assert(a.is_int(), "Z3 integer expression expected")
2742 return ArithRef(Z3_mk_mod(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2743
Z3_ast Z3_API Z3_mk_mod(Z3_context c, Z3_ast arg1, Z3_ast arg2)
Create an AST node representing arg1 mod arg2.

◆ __mul__()

__mul__ (   self,
  other 
)
Create the Z3 expression `self * other`.

>>> x = Real('x')
>>> y = Real('y')
>>> x * y
x*y
>>> (x * y).sort()
Real

Definition at line 2605 of file z3py.py.

2605 def __mul__(self, other):
2606 """Create the Z3 expression `self * other`.
2607
2608 >>> x = Real('x')
2609 >>> y = Real('y')
2610 >>> x * y
2611 x*y
2612 >>> (x * y).sort()
2613 Real
2614 """
2615 if isinstance(other, BoolRef):
2616 return If(other, self, 0)
2617 a, b = _coerce_exprs(self, other)
2618 return _to_expr_ref(_mk_bin(Z3_mk_mul, a, b), self.ctx)
2619

◆ __neg__()

__neg__ (   self)
Return an expression representing `-self`.

>>> x = Int('x')
>>> -x
-x
>>> simplify(-(-x))
x

Definition at line 2756 of file z3py.py.

2756 def __neg__(self):
2757 """Return an expression representing `-self`.
2758
2759 >>> x = Int('x')
2760 >>> -x
2761 -x
2762 >>> simplify(-(-x))
2763 x
2764 """
2765 return _to_expr_ref(Z3_mk_unary_minus(self.ctx_ref(), self.as_ast()), self.ctx)
2766
Z3_ast Z3_API Z3_mk_unary_minus(Z3_context c, Z3_ast arg)
Create an AST node representing - arg.

◆ __pos__()

__pos__ (   self)
Return `self`.

>>> x = Int('x')
>>> +x
x

Definition at line 2767 of file z3py.py.

2767 def __pos__(self):
2768 """Return `self`.
2769
2770 >>> x = Int('x')
2771 >>> +x
2772 x
2773 """
2774 return self
2775

◆ __pow__()

__pow__ (   self,
  other 
)
Create the Z3 expression `self**other` (** is the power operator).

>>> x = Real('x')
>>> x**3
x**3
>>> (x**3).sort()
Real
>>> simplify(IntVal(2)**8)
256

Definition at line 2653 of file z3py.py.

2653 def __pow__(self, other):
2654 """Create the Z3 expression `self**other` (** is the power operator).
2655
2656 >>> x = Real('x')
2657 >>> x**3
2658 x**3
2659 >>> (x**3).sort()
2660 Real
2661 >>> simplify(IntVal(2)**8)
2662 256
2663 """
2664 a, b = _coerce_exprs(self, other)
2665 return ArithRef(Z3_mk_power(self.ctx_ref(), a.as_ast(), b.as_ast()), self.ctx)
2666
Z3_ast Z3_API Z3_mk_power(Z3_context c, Z3_ast arg1, Z3_ast arg2)
Create an AST node representing arg1 ^ arg2.

◆ __radd__()

__radd__ (   self,
  other 
)
Create the Z3 expression `other + self`.

>>> x = Int('x')
>>> 10 + x
10 + x

Definition at line 2595 of file z3py.py.

2595 def __radd__(self, other):
2596 """Create the Z3 expression `other + self`.
2597
2598 >>> x = Int('x')
2599 >>> 10 + x
2600 10 + x
2601 """
2602 a, b = _coerce_exprs(self, other)
2603 return _to_expr_ref(_mk_bin(Z3_mk_add, b, a), self.ctx)
2604

◆ __rdiv__()

__rdiv__ (   self,
  other 
)
Create the Z3 expression `other/self`.

>>> x = Int('x')
>>> 10/x
10/x
>>> (10/x).sexpr()
'(div 10 x)'
>>> x = Real('x')
>>> 10/x
10/x
>>> (10/x).sexpr()
'(/ 10.0 x)'

Definition at line 2708 of file z3py.py.

2708 def __rdiv__(self, other):
2709 """Create the Z3 expression `other/self`.
2710
2711 >>> x = Int('x')
2712 >>> 10/x
2713 10/x
2714 >>> (10/x).sexpr()
2715 '(div 10 x)'
2716 >>> x = Real('x')
2717 >>> 10/x
2718 10/x
2719 >>> (10/x).sexpr()
2720 '(/ 10.0 x)'
2721 """
2722 a, b = _coerce_exprs(self, other)
2723 return _to_expr_ref(Z3_mk_div(self.ctx_ref(), b.as_ast(), a.as_ast()), self.ctx)
2724

Referenced by ArithRef.__rtruediv__(), and BitVecRef.__rtruediv__().

◆ __rmod__()

__rmod__ (   self,
  other 
)
Create the Z3 expression `other%self`.

>>> x = Int('x')
>>> 10 % x
10%x

Definition at line 2744 of file z3py.py.

2744 def __rmod__(self, other):
2745 """Create the Z3 expression `other%self`.
2746
2747 >>> x = Int('x')
2748 >>> 10 % x
2749 10%x
2750 """
2751 a, b = _coerce_exprs(self, other)
2752 if z3_debug():
2753 _z3_assert(a.is_int(), "Z3 integer expression expected")
2754 return ArithRef(Z3_mk_mod(self.ctx_ref(), b.as_ast(), a.as_ast()), self.ctx)
2755

◆ __rmul__()

__rmul__ (   self,
  other 
)
Create the Z3 expression `other * self`.

>>> x = Real('x')
>>> 10 * x
10*x

Definition at line 2620 of file z3py.py.

2620 def __rmul__(self, other):
2621 """Create the Z3 expression `other * self`.
2622
2623 >>> x = Real('x')
2624 >>> 10 * x
2625 10*x
2626 """
2627 a, b = _coerce_exprs(self, other)
2628 return _to_expr_ref(_mk_bin(Z3_mk_mul, b, a), self.ctx)
2629

◆ __rpow__()

__rpow__ (   self,
  other 
)
Create the Z3 expression `other**self` (** is the power operator).

>>> x = Real('x')
>>> 2**x
2**x
>>> (2**x).sort()
Real
>>> simplify(2**IntVal(8))
256

Definition at line 2667 of file z3py.py.

2667 def __rpow__(self, other):
2668 """Create the Z3 expression `other**self` (** is the power operator).
2669
2670 >>> x = Real('x')
2671 >>> 2**x
2672 2**x
2673 >>> (2**x).sort()
2674 Real
2675 >>> simplify(2**IntVal(8))
2676 256
2677 """
2678 a, b = _coerce_exprs(self, other)
2679 return ArithRef(Z3_mk_power(self.ctx_ref(), b.as_ast(), a.as_ast()), self.ctx)
2680

◆ __rsub__()

__rsub__ (   self,
  other 
)
Create the Z3 expression `other - self`.

>>> x = Int('x')
>>> 10 - x
10 - x

Definition at line 2643 of file z3py.py.

2643 def __rsub__(self, other):
2644 """Create the Z3 expression `other - self`.
2645
2646 >>> x = Int('x')
2647 >>> 10 - x
2648 10 - x
2649 """
2650 a, b = _coerce_exprs(self, other)
2651 return _to_expr_ref(_mk_bin(Z3_mk_sub, b, a), self.ctx)
2652

◆ __rtruediv__()

__rtruediv__ (   self,
  other 
)
Create the Z3 expression `other/self`.

Definition at line 2725 of file z3py.py.

2725 def __rtruediv__(self, other):
2726 """Create the Z3 expression `other/self`."""
2727 return self.__rdiv__(other)
2728

◆ __sub__()

__sub__ (   self,
  other 
)
Create the Z3 expression `self - other`.

>>> x = Int('x')
>>> y = Int('y')
>>> x - y
x - y
>>> (x - y).sort()
Int

Definition at line 2630 of file z3py.py.

2630 def __sub__(self, other):
2631 """Create the Z3 expression `self - other`.
2632
2633 >>> x = Int('x')
2634 >>> y = Int('y')
2635 >>> x - y
2636 x - y
2637 >>> (x - y).sort()
2638 Int
2639 """
2640 a, b = _coerce_exprs(self, other)
2641 return _to_expr_ref(_mk_bin(Z3_mk_sub, a, b), self.ctx)
2642

◆ __truediv__()

__truediv__ (   self,
  other 
)
Create the Z3 expression `other/self`.

Definition at line 2704 of file z3py.py.

2704 def __truediv__(self, other):
2705 """Create the Z3 expression `other/self`."""
2706 return self.__div__(other)
2707

◆ is_int()

is_int (   self)
Return `True` if `self` is an integer expression.

>>> x = Int('x')
>>> x.is_int()
True
>>> (x + 1).is_int()
True
>>> y = Real('y')
>>> (x + y).is_int()
False

Reimplemented in RatNumRef.

Definition at line 2557 of file z3py.py.

2557 def is_int(self):
2558 """Return `True` if `self` is an integer expression.
2559
2560 >>> x = Int('x')
2561 >>> x.is_int()
2562 True
2563 >>> (x + 1).is_int()
2564 True
2565 >>> y = Real('y')
2566 >>> (x + y).is_int()
2567 False
2568 """
2569 return self.sort().is_int()
2570

Referenced by IntNumRef.as_long(), ArithRef.is_int(), and ArithSortRef.subsort().

◆ is_real()

is_real (   self)
Return `True` if `self` is an real expression.

>>> x = Real('x')
>>> x.is_real()
True
>>> (x + 1).is_real()
True

Reimplemented in RatNumRef.

Definition at line 2571 of file z3py.py.

2571 def is_real(self):
2572 """Return `True` if `self` is an real expression.
2573
2574 >>> x = Real('x')
2575 >>> x.is_real()
2576 True
2577 >>> (x + 1).is_real()
2578 True
2579 """
2580 return self.sort().is_real()
2581

Referenced by ArithRef.is_real().

◆ sort()

sort (   self)
Return the sort (type) of the arithmetical expression `self`.

>>> Int('x').sort()
Int
>>> (Real('x') + 1).sort()
Real

Reimplemented from ExprRef.

Reimplemented in ComplexRef.

Definition at line 2547 of file z3py.py.

2547 def sort(self):
2548 """Return the sort (type) of the arithmetical expression `self`.
2549
2550 >>> Int('x').sort()
2551 Int
2552 >>> (Real('x') + 1).sort()
2553 Real
2554 """
2555 return ArithSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
2556
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.

Referenced by ArrayRef.domain(), ArrayRef.domain_n(), ArithRef.is_int(), ArithRef.is_real(), ArrayRef.range(), BitVecRef.size(), and ExprRef.sort_kind().

Field Documentation

◆ ctx

ctx

Definition at line 2555 of file z3py.py.

Referenced by ArithRef.__add__(), BitVecRef.__add__(), BitVecRef.__and__(), FuncDeclRef.__call__(), AstMap.__contains__(), AstRef.__copy__(), Goal.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), ModelRef.__copy__(), AstRef.__deepcopy__(), Datatype.__deepcopy__(), ParamsRef.__deepcopy__(), ParamDescrsRef.__deepcopy__(), Goal.__deepcopy__(), AstVector.__deepcopy__(), AstMap.__deepcopy__(), FuncEntry.__deepcopy__(), FuncInterp.__deepcopy__(), ModelRef.__deepcopy__(), Statistics.__deepcopy__(), Context.__del__(), AstRef.__del__(), ScopedConstructor.__del__(), ScopedConstructorList.__del__(), ParamsRef.__del__(), ParamDescrsRef.__del__(), Goal.__del__(), AstVector.__del__(), AstMap.__del__(), FuncEntry.__del__(), FuncInterp.__del__(), ModelRef.__del__(), Statistics.__del__(), Solver.__del__(), ArithRef.__div__(), BitVecRef.__div__(), ExprRef.__eq__(), ArithRef.__ge__(), BitVecRef.__ge__(), AstVector.__getitem__(), ModelRef.__getitem__(), Statistics.__getitem__(), AstMap.__getitem__(), ArithRef.__gt__(), BitVecRef.__gt__(), BitVecRef.__invert__(), ArithRef.__le__(), BitVecRef.__le__(), AstVector.__len__(), AstMap.__len__(), ModelRef.__len__(), Statistics.__len__(), BitVecRef.__lshift__(), ArithRef.__lt__(), BitVecRef.__lt__(), ArithRef.__mod__(), BitVecRef.__mod__(), BoolRef.__mul__(), ArithRef.__mul__(), BitVecRef.__mul__(), ExprRef.__ne__(), ArithRef.__neg__(), BitVecRef.__neg__(), BitVecRef.__or__(), ArithRef.__pow__(), ArithRef.__radd__(), BitVecRef.__radd__(), BitVecRef.__rand__(), ArithRef.__rdiv__(), BitVecRef.__rdiv__(), ParamsRef.__repr__(), ParamDescrsRef.__repr__(), AstMap.__repr__(), Statistics.__repr__(), BitVecRef.__rlshift__(), ArithRef.__rmod__(), BitVecRef.__rmod__(), ArithRef.__rmul__(), BitVecRef.__rmul__(), BitVecRef.__ror__(), ArithRef.__rpow__(), BitVecRef.__rrshift__(), BitVecRef.__rshift__(), ArithRef.__rsub__(), BitVecRef.__rsub__(), BitVecRef.__rxor__(), AstVector.__setitem__(), AstMap.__setitem__(), ArithRef.__sub__(), BitVecRef.__sub__(), BitVecRef.__xor__(), DatatypeSortRef.accessor(), ExprRef.arg(), FuncEntry.arg_value(), FuncInterp.arity(), Goal.as_expr(), Solver.assert_and_track(), Goal.assert_exprs(), Solver.assert_exprs(), QuantifierRef.body(), FiniteSetSortRef.cast(), Solver.check(), Goal.convert_model(), AstRef.ctx_ref(), ExprRef.decl(), ModelRef.decls(), ArrayRef.default(), RatNumRef.denominator(), Goal.depth(), Goal.dimacs(), FuncDeclRef.domain(), ArraySortRef.domain_n(), FuncInterp.else_value(), FuncInterp.entry(), AstMap.erase(), ModelRef.eval(), Goal.get(), ParamDescrsRef.get_documentation(), ModelRef.get_interp(), Statistics.get_key_value(), ParamDescrsRef.get_kind(), ParamDescrsRef.get_name(), ModelRef.get_sort(), ModelRef.get_universe(), Goal.inconsistent(), AstMap.keys(), Statistics.keys(), Solver.model(), SortRef.name(), QuantifierRef.no_pattern(), FuncEntry.num_args(), FuncInterp.num_entries(), Solver.num_scopes(), ModelRef.num_sorts(), FuncDeclRef.params(), QuantifierRef.pattern(), AlgebraicNumRef.poly(), Solver.pop(), Goal.prec(), ModelRef.project(), ModelRef.project_with_witness(), Solver.push(), AstVector.push(), QuantifierRef.qid(), FuncDeclRef.range(), ArraySortRef.range(), DatatypeSortRef.recognizer(), Context.ref(), AstMap.reset(), Solver.reset(), AstVector.resize(), Solver.set(), ParamsRef.set(), Goal.sexpr(), AstVector.sexpr(), ModelRef.sexpr(), ParamDescrsRef.size(), Goal.size(), QuantifierRef.skolem_id(), AstVector.translate(), AstRef.translate(), Goal.translate(), ModelRef.translate(), ExprRef.update(), DatatypeRef.update_field(), ParamsRef.validate(), FuncEntry.value(), QuantifierRef.var_name(), and QuantifierRef.var_sort().