Z3
 
Loading...
Searching...
No Matches
Goal Class Reference
+ Inheritance diagram for Goal:

Public Member Functions

 __init__ (self, models=True, unsat_cores=False, proofs=False, ctx=None, goal=None)
 
 __del__ (self)
 
 depth (self)
 
 inconsistent (self)
 
 prec (self)
 
 precision (self)
 
 size (self)
 
 __len__ (self)
 
 get (self, i)
 
 __getitem__ (self, arg)
 
 assert_exprs (self, *args)
 
 append (self, *args)
 
 insert (self, *args)
 
 add (self, *args)
 
 convert_model (self, model)
 
 __repr__ (self)
 
 sexpr (self)
 
 dimacs (self, include_names=True)
 
 translate (self, target)
 
 __copy__ (self)
 
 __deepcopy__ (self, memo={})
 
 simplify (self, *arguments, **keywords)
 
 as_expr (self)
 
- Public Member Functions inherited from Z3PPObject
 use_pp (self)
 

Data Fields

 ctx = _get_ctx(ctx)
 
 goal = goal
 

Additional Inherited Members

- Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)
 

Detailed Description

Goal is a collection of constraints we want to find a solution or show to be unsatisfiable (infeasible).

Goals are processed using Tactics. A Tactic transforms a goal into a set of subgoals.
A goal has a solution if one of its subgoals has a solution.
A goal is unsatisfiable if all subgoals are unsatisfiable.

Definition at line 5600 of file z3py.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
models = True,
unsat_cores = False,
proofs = False,
ctx = None,
goal = None )

Definition at line 5608 of file z3py.py.

5608 def __init__(self, models=True, unsat_cores=False, proofs=False, ctx=None, goal=None):
5609 if z3_debug():
5610 _z3_assert(goal is None or ctx is not None,
5611 "If goal is different from None, then ctx must be also different from None")
5612 self.ctx = _get_ctx(ctx)
5613 self.goal = goal
5614 if self.goal is None:
5615 self.goal = Z3_mk_goal(self.ctx.ref(), models, unsat_cores, proofs)
5616 Z3_goal_inc_ref(self.ctx.ref(), self.goal)
5617
void Z3_API Z3_goal_inc_ref(Z3_context c, Z3_goal g)
Increment the reference counter of the given goal.
Z3_goal Z3_API Z3_mk_goal(Z3_context c, bool models, bool unsat_cores, bool proofs)
Create a goal (aka problem). A goal is essentially a set of formulas, that can be solved and/or trans...

◆ __del__()

__del__ ( self)

Definition at line 5618 of file z3py.py.

5618 def __del__(self):
5619 if self.goal is not None and self.ctx.ref() is not None and Z3_goal_dec_ref is not None:
5620 Z3_goal_dec_ref(self.ctx.ref(), self.goal)
5621
void Z3_API Z3_goal_dec_ref(Z3_context c, Z3_goal g)
Decrement the reference counter of the given goal.

Member Function Documentation

◆ __copy__()

__copy__ ( self)

Definition at line 5853 of file z3py.py.

5853 def __copy__(self):
5854 return self.translate(self.ctx)
5855

◆ __deepcopy__()

__deepcopy__ ( self,
memo = {} )

Definition at line 5856 of file z3py.py.

5856 def __deepcopy__(self, memo={}):
5857 return self.translate(self.ctx)
5858

◆ __getitem__()

__getitem__ ( self,
arg )
Return a constraint in the goal `self`.

>>> g = Goal()
>>> x, y = Ints('x y')
>>> g.add(x == 0, y > x)
>>> g[0]
x == 0
>>> g[1]
y > x

Definition at line 5727 of file z3py.py.

5727 def __getitem__(self, arg):
5728 """Return a constraint in the goal `self`.
5729
5730 >>> g = Goal()
5731 >>> x, y = Ints('x y')
5732 >>> g.add(x == 0, y > x)
5733 >>> g[0]
5734 x == 0
5735 >>> g[1]
5736 y > x
5737 """
5738 if arg >= len(self):
5739 raise IndexError
5740 return self.get(arg)
5741

◆ __len__()

__len__ ( self)
Return the number of constraints in the goal `self`.

>>> g = Goal()
>>> len(g)
0
>>> x, y = Ints('x y')
>>> g.add(x == 0, y > x)
>>> len(g)
2

Definition at line 5701 of file z3py.py.

5701 def __len__(self):
5702 """Return the number of constraints in the goal `self`.
5703
5704 >>> g = Goal()
5705 >>> len(g)
5706 0
5707 >>> x, y = Ints('x y')
5708 >>> g.add(x == 0, y > x)
5709 >>> len(g)
5710 2
5711 """
5712 return self.size()
5713

Referenced by AstVector.__getitem__(), and AstVector.__setitem__().

◆ __repr__()

__repr__ ( self)

Definition at line 5819 of file z3py.py.

5819 def __repr__(self):
5820 return obj_to_string(self)
5821

◆ add()

add ( self,
* args )
Add constraints.

>>> x = Int('x')
>>> g = Goal()
>>> g.add(x > 0, x < 2)
>>> g
[x > 0, x < 2]

Definition at line 5779 of file z3py.py.

5779 def add(self, *args):
5780 """Add constraints.
5781
5782 >>> x = Int('x')
5783 >>> g = Goal()
5784 >>> g.add(x > 0, x < 2)
5785 >>> g
5786 [x > 0, x < 2]
5787 """
5788 self.assert_exprs(*args)
5789

Referenced by Solver.__iadd__().

◆ append()

append ( self,
* args )
Add constraints.

>>> x = Int('x')
>>> g = Goal()
>>> g.append(x > 0, x < 2)
>>> g
[x > 0, x < 2]

Definition at line 5757 of file z3py.py.

5757 def append(self, *args):
5758 """Add constraints.
5759
5760 >>> x = Int('x')
5761 >>> g = Goal()
5762 >>> g.append(x > 0, x < 2)
5763 >>> g
5764 [x > 0, x < 2]
5765 """
5766 self.assert_exprs(*args)
5767

◆ as_expr()

as_expr ( self)
Return goal `self` as a single Z3 expression.

>>> x = Int('x')
>>> g = Goal()
>>> g.as_expr()
True
>>> g.add(x > 1)
>>> g.as_expr()
x > 1
>>> g.add(x < 10)
>>> g.as_expr()
And(x > 1, x < 10)

Definition at line 5879 of file z3py.py.

5879 def as_expr(self):
5880 """Return goal `self` as a single Z3 expression.
5881
5882 >>> x = Int('x')
5883 >>> g = Goal()
5884 >>> g.as_expr()
5885 True
5886 >>> g.add(x > 1)
5887 >>> g.as_expr()
5888 x > 1
5889 >>> g.add(x < 10)
5890 >>> g.as_expr()
5891 And(x > 1, x < 10)
5892 """
5893 sz = len(self)
5894 if sz == 0:
5895 return BoolVal(True, self.ctx)
5896 elif sz == 1:
5897 return self.get(0)
5898 else:
5899 return And([self.get(i) for i in range(len(self))], self.ctx)
5900

◆ assert_exprs()

assert_exprs ( self,
* args )
Assert constraints into the goal.

>>> x = Int('x')
>>> g = Goal()
>>> g.assert_exprs(x > 0, x < 2)
>>> g
[x > 0, x < 2]

Definition at line 5742 of file z3py.py.

5742 def assert_exprs(self, *args):
5743 """Assert constraints into the goal.
5744
5745 >>> x = Int('x')
5746 >>> g = Goal()
5747 >>> g.assert_exprs(x > 0, x < 2)
5748 >>> g
5749 [x > 0, x < 2]
5750 """
5751 args = _get_args(args)
5752 s = BoolSort(self.ctx)
5753 for arg in args:
5754 arg = s.cast(arg)
5755 Z3_goal_assert(self.ctx.ref(), self.goal, arg.as_ast())
5756
void Z3_API Z3_goal_assert(Z3_context c, Z3_goal g, Z3_ast a)
Add a new formula a to the given goal. The formula is split according to the following procedure that...

Referenced by Goal.add(), Solver.add(), Goal.append(), Solver.append(), Goal.insert(), and Solver.insert().

◆ convert_model()

convert_model ( self,
model )
Retrieve model from a satisfiable goal
>>> a, b = Ints('a b')
>>> g = Goal()
>>> g.add(Or(a == 0, a == 1), Or(b == 0, b == 1), a > b)
>>> t = Then(Tactic('split-clause'), Tactic('solve-eqs'))
>>> r = t(g)
>>> r[0]
[Or(b == 0, b == 1), Not(0 <= b)]
>>> r[1]
[Or(b == 0, b == 1), Not(1 <= b)]
>>> # Remark: the subgoal r[0] is unsatisfiable
>>> # Creating a solver for solving the second subgoal
>>> s = Solver()
>>> s.add(r[1])
>>> s.check()
sat
>>> s.model()
[b = 0]
>>> # Model s.model() does not assign a value to `a`
>>> # It is a model for subgoal `r[1]`, but not for goal `g`
>>> # The method convert_model creates a model for `g` from a model for `r[1]`.
>>> r[1].convert_model(s.model())
[b = 0, a = 1]

Definition at line 5790 of file z3py.py.

5790 def convert_model(self, model):
5791 """Retrieve model from a satisfiable goal
5792 >>> a, b = Ints('a b')
5793 >>> g = Goal()
5794 >>> g.add(Or(a == 0, a == 1), Or(b == 0, b == 1), a > b)
5795 >>> t = Then(Tactic('split-clause'), Tactic('solve-eqs'))
5796 >>> r = t(g)
5797 >>> r[0]
5798 [Or(b == 0, b == 1), Not(0 <= b)]
5799 >>> r[1]
5800 [Or(b == 0, b == 1), Not(1 <= b)]
5801 >>> # Remark: the subgoal r[0] is unsatisfiable
5802 >>> # Creating a solver for solving the second subgoal
5803 >>> s = Solver()
5804 >>> s.add(r[1])
5805 >>> s.check()
5806 sat
5807 >>> s.model()
5808 [b = 0]
5809 >>> # Model s.model() does not assign a value to `a`
5810 >>> # It is a model for subgoal `r[1]`, but not for goal `g`
5811 >>> # The method convert_model creates a model for `g` from a model for `r[1]`.
5812 >>> r[1].convert_model(s.model())
5813 [b = 0, a = 1]
5814 """
5815 if z3_debug():
5816 _z3_assert(isinstance(model, ModelRef), "Z3 Model expected")
5817 return ModelRef(Z3_goal_convert_model(self.ctx.ref(), self.goal, model.model), self.ctx)
5818
Z3_model Z3_API Z3_goal_convert_model(Z3_context c, Z3_goal g, Z3_model m)
Convert a model of the formulas of a goal to a model of an original goal. The model may be null,...

◆ depth()

depth ( self)
Return the depth of the goal `self`.
The depth corresponds to the number of tactics applied to `self`.

>>> x, y = Ints('x y')
>>> g = Goal()
>>> g.add(x == 0, y >= x + 1)
>>> g.depth()
0
>>> r = Then('simplify', 'solve-eqs')(g)
>>> # r has 1 subgoal
>>> len(r)
1
>>> r[0].depth()
2

Definition at line 5622 of file z3py.py.

5622 def depth(self):
5623 """Return the depth of the goal `self`.
5624 The depth corresponds to the number of tactics applied to `self`.
5625
5626 >>> x, y = Ints('x y')
5627 >>> g = Goal()
5628 >>> g.add(x == 0, y >= x + 1)
5629 >>> g.depth()
5630 0
5631 >>> r = Then('simplify', 'solve-eqs')(g)
5632 >>> # r has 1 subgoal
5633 >>> len(r)
5634 1
5635 >>> r[0].depth()
5636 2
5637 """
5638 return int(Z3_goal_depth(self.ctx.ref(), self.goal))
5639
unsigned Z3_API Z3_goal_depth(Z3_context c, Z3_goal g)
Return the depth of the given goal. It tracks how many transformations were applied to it.

◆ dimacs()

dimacs ( self,
include_names = True )
Return a textual representation of the goal in DIMACS format.

Definition at line 5826 of file z3py.py.

5826 def dimacs(self, include_names=True):
5827 """Return a textual representation of the goal in DIMACS format."""
5828 return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal, include_names)
5829
Z3_string Z3_API Z3_goal_to_dimacs_string(Z3_context c, Z3_goal g, bool include_names)
Convert a goal into a DIMACS formatted string. The goal must be in CNF. You can convert a goal to CNF...

◆ get()

get ( self,
i )
Return a constraint in the goal `self`.

>>> g = Goal()
>>> x, y = Ints('x y')
>>> g.add(x == 0, y > x)
>>> g.get(0)
x == 0
>>> g.get(1)
y > x

Definition at line 5714 of file z3py.py.

5714 def get(self, i):
5715 """Return a constraint in the goal `self`.
5716
5717 >>> g = Goal()
5718 >>> x, y = Ints('x y')
5719 >>> g.add(x == 0, y > x)
5720 >>> g.get(0)
5721 x == 0
5722 >>> g.get(1)
5723 y > x
5724 """
5725 return _to_expr_ref(Z3_goal_formula(self.ctx.ref(), self.goal, i), self.ctx)
5726
Z3_ast Z3_API Z3_goal_formula(Z3_context c, Z3_goal g, unsigned idx)
Return a formula from the given goal.

Referenced by Goal.__getitem__(), and Goal.as_expr().

◆ inconsistent()

inconsistent ( self)
Return `True` if `self` contains the `False` constraints.

>>> x, y = Ints('x y')
>>> g = Goal()
>>> g.inconsistent()
False
>>> g.add(x == 0, x == 1)
>>> g
[x == 0, x == 1]
>>> g.inconsistent()
False
>>> g2 = Tactic('propagate-values')(g)[0]
>>> g2.inconsistent()
True

Definition at line 5640 of file z3py.py.

5640 def inconsistent(self):
5641 """Return `True` if `self` contains the `False` constraints.
5642
5643 >>> x, y = Ints('x y')
5644 >>> g = Goal()
5645 >>> g.inconsistent()
5646 False
5647 >>> g.add(x == 0, x == 1)
5648 >>> g
5649 [x == 0, x == 1]
5650 >>> g.inconsistent()
5651 False
5652 >>> g2 = Tactic('propagate-values')(g)[0]
5653 >>> g2.inconsistent()
5654 True
5655 """
5656 return Z3_goal_inconsistent(self.ctx.ref(), self.goal)
5657
bool Z3_API Z3_goal_inconsistent(Z3_context c, Z3_goal g)
Return true if the given goal contains the formula false.

◆ insert()

insert ( self,
* args )
Add constraints.

>>> x = Int('x')
>>> g = Goal()
>>> g.insert(x > 0, x < 2)
>>> g
[x > 0, x < 2]

Definition at line 5768 of file z3py.py.

5768 def insert(self, *args):
5769 """Add constraints.
5770
5771 >>> x = Int('x')
5772 >>> g = Goal()
5773 >>> g.insert(x > 0, x < 2)
5774 >>> g
5775 [x > 0, x < 2]
5776 """
5777 self.assert_exprs(*args)
5778

◆ prec()

prec ( self)
Return the precision (under-approximation, over-approximation, or precise) of the goal `self`.

>>> g = Goal()
>>> g.prec() == Z3_GOAL_PRECISE
True
>>> x, y = Ints('x y')
>>> g.add(x == y + 1)
>>> g.prec() == Z3_GOAL_PRECISE
True
>>> t  = With(Tactic('add-bounds'), add_bound_lower=0, add_bound_upper=10)
>>> g2 = t(g)[0]
>>> g2
[x == y + 1, x <= 10, x >= 0, y <= 10, y >= 0]
>>> g2.prec() == Z3_GOAL_PRECISE
False
>>> g2.prec() == Z3_GOAL_UNDER
True

Definition at line 5658 of file z3py.py.

5658 def prec(self):
5659 """Return the precision (under-approximation, over-approximation, or precise) of the goal `self`.
5660
5661 >>> g = Goal()
5662 >>> g.prec() == Z3_GOAL_PRECISE
5663 True
5664 >>> x, y = Ints('x y')
5665 >>> g.add(x == y + 1)
5666 >>> g.prec() == Z3_GOAL_PRECISE
5667 True
5668 >>> t = With(Tactic('add-bounds'), add_bound_lower=0, add_bound_upper=10)
5669 >>> g2 = t(g)[0]
5670 >>> g2
5671 [x == y + 1, x <= 10, x >= 0, y <= 10, y >= 0]
5672 >>> g2.prec() == Z3_GOAL_PRECISE
5673 False
5674 >>> g2.prec() == Z3_GOAL_UNDER
5675 True
5676 """
5677 return Z3_goal_precision(self.ctx.ref(), self.goal)
5678
Z3_goal_prec Z3_API Z3_goal_precision(Z3_context c, Z3_goal g)
Return the "precision" of the given goal. Goals can be transformed using over and under approximation...

Referenced by Goal.precision().

◆ precision()

precision ( self)
Alias for `prec()`.

>>> g = Goal()
>>> g.precision() == Z3_GOAL_PRECISE
True

Definition at line 5679 of file z3py.py.

5679 def precision(self):
5680 """Alias for `prec()`.
5681
5682 >>> g = Goal()
5683 >>> g.precision() == Z3_GOAL_PRECISE
5684 True
5685 """
5686 return self.prec()
5687

◆ sexpr()

sexpr ( self)
Return a textual representation of the s-expression representing the goal.

Definition at line 5822 of file z3py.py.

5822 def sexpr(self):
5823 """Return a textual representation of the s-expression representing the goal."""
5824 return Z3_goal_to_string(self.ctx.ref(), self.goal)
5825
Z3_string Z3_API Z3_goal_to_string(Z3_context c, Z3_goal g)
Convert a goal into a string.

◆ simplify()

simplify ( self,
* arguments,
** keywords )
Return a new simplified goal.

This method is essentially invoking the simplify tactic.

>>> g = Goal()
>>> x = Int('x')
>>> g.add(x + 1 >= 2)
>>> g
[x + 1 >= 2]
>>> g2 = g.simplify()
>>> g2
[x >= 1]
>>> # g was not modified
>>> g
[x + 1 >= 2]

Definition at line 5859 of file z3py.py.

5859 def simplify(self, *arguments, **keywords):
5860 """Return a new simplified goal.
5861
5862 This method is essentially invoking the simplify tactic.
5863
5864 >>> g = Goal()
5865 >>> x = Int('x')
5866 >>> g.add(x + 1 >= 2)
5867 >>> g
5868 [x + 1 >= 2]
5869 >>> g2 = g.simplify()
5870 >>> g2
5871 [x >= 1]
5872 >>> # g was not modified
5873 >>> g
5874 [x + 1 >= 2]
5875 """
5876 t = Tactic("simplify")
5877 return t.apply(self, *arguments, **keywords)[0]
5878

◆ size()

size ( self)
Return the number of constraints in the goal `self`.

>>> g = Goal()
>>> g.size()
0
>>> x, y = Ints('x y')
>>> g.add(x == 0, y > x)
>>> g.size()
2

Definition at line 5688 of file z3py.py.

5688 def size(self):
5689 """Return the number of constraints in the goal `self`.
5690
5691 >>> g = Goal()
5692 >>> g.size()
5693 0
5694 >>> x, y = Ints('x y')
5695 >>> g.add(x == 0, y > x)
5696 >>> g.size()
5697 2
5698 """
5699 return int(Z3_goal_size(self.ctx.ref(), self.goal))
5700
unsigned Z3_API Z3_goal_size(Z3_context c, Z3_goal g)
Return the number of formulas in the given goal.

Referenced by Goal.__len__(), ParamDescrsRef.__len__(), BitVecNumRef.as_signed_long(), and BitVecSortRef.subsort().

◆ translate()

translate ( self,
target )
Copy goal `self` to context `target`.

>>> x = Int('x')
>>> g = Goal()
>>> g.add(x > 10)
>>> g
[x > 10]
>>> c2 = Context()
>>> g2 = g.translate(c2)
>>> g2
[x > 10]
>>> g.ctx == main_ctx()
True
>>> g2.ctx == c2
True
>>> g2.ctx == main_ctx()
False

Definition at line 5830 of file z3py.py.

5830 def translate(self, target):
5831 """Copy goal `self` to context `target`.
5832
5833 >>> x = Int('x')
5834 >>> g = Goal()
5835 >>> g.add(x > 10)
5836 >>> g
5837 [x > 10]
5838 >>> c2 = Context()
5839 >>> g2 = g.translate(c2)
5840 >>> g2
5841 [x > 10]
5842 >>> g.ctx == main_ctx()
5843 True
5844 >>> g2.ctx == c2
5845 True
5846 >>> g2.ctx == main_ctx()
5847 False
5848 """
5849 if z3_debug():
5850 _z3_assert(isinstance(target, Context), "target must be a context")
5851 return Goal(goal=Z3_goal_translate(self.ctx.ref(), self.goal, target.ref()), ctx=target)
5852
Z3_goal Z3_API Z3_goal_translate(Z3_context source, Z3_goal g, Z3_context target)
Copy a goal g from the context source to the context target.

Referenced by AstRef.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), Goal.__copy__(), ModelRef.__copy__(), AstVector.__deepcopy__(), FuncInterp.__deepcopy__(), Goal.__deepcopy__(), and ModelRef.__deepcopy__().

Field Documentation

◆ ctx

ctx = _get_ctx(ctx)

Definition at line 5612 of file z3py.py.

Referenced by ArithRef.__add__(), BitVecRef.__add__(), BitVecRef.__and__(), FuncDeclRef.__call__(), AstMap.__contains__(), AstRef.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), Goal.__copy__(), ModelRef.__copy__(), AstMap.__deepcopy__(), AstRef.__deepcopy__(), AstVector.__deepcopy__(), Datatype.__deepcopy__(), FuncEntry.__deepcopy__(), FuncInterp.__deepcopy__(), Goal.__deepcopy__(), ModelRef.__deepcopy__(), ParamDescrsRef.__deepcopy__(), ParamsRef.__deepcopy__(), Statistics.__deepcopy__(), AstMap.__del__(), AstRef.__del__(), AstVector.__del__(), Context.__del__(), FuncEntry.__del__(), FuncInterp.__del__(), Goal.__del__(), ModelRef.__del__(), ParamDescrsRef.__del__(), ParamsRef.__del__(), ScopedConstructor.__del__(), ScopedConstructorList.__del__(), Solver.__del__(), Statistics.__del__(), ArithRef.__div__(), BitVecRef.__div__(), ExprRef.__eq__(), ArithRef.__ge__(), BitVecRef.__ge__(), AstMap.__getitem__(), AstVector.__getitem__(), ModelRef.__getitem__(), Statistics.__getitem__(), ArithRef.__gt__(), BitVecRef.__gt__(), BitVecRef.__invert__(), ArithRef.__le__(), BitVecRef.__le__(), AstMap.__len__(), AstVector.__len__(), ModelRef.__len__(), Statistics.__len__(), BitVecRef.__lshift__(), ArithRef.__lt__(), BitVecRef.__lt__(), ArithRef.__mod__(), BitVecRef.__mod__(), ArithRef.__mul__(), BitVecRef.__mul__(), BoolRef.__mul__(), ExprRef.__ne__(), ArithRef.__neg__(), BitVecRef.__neg__(), BitVecRef.__or__(), ArithRef.__pow__(), ArithRef.__radd__(), BitVecRef.__radd__(), BitVecRef.__rand__(), ArithRef.__rdiv__(), BitVecRef.__rdiv__(), AstMap.__repr__(), ParamDescrsRef.__repr__(), ParamsRef.__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__(), AstMap.__setitem__(), AstVector.__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(), 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(), AstVector.push(), Solver.push(), QuantifierRef.qid(), ArraySortRef.range(), FuncDeclRef.range(), DatatypeSortRef.recognizer(), Context.ref(), AstMap.reset(), Solver.reset(), AstVector.resize(), ParamsRef.set(), Solver.set(), AstVector.sexpr(), Goal.sexpr(), ModelRef.sexpr(), Goal.size(), ParamDescrsRef.size(), QuantifierRef.skolem_id(), AstRef.translate(), AstVector.translate(), Goal.translate(), ModelRef.translate(), ParamsRef.validate(), FuncEntry.value(), QuantifierRef.var_name(), and QuantifierRef.var_sort().

◆ goal