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 5593 of file z3py.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 5601 of file z3py.py.

5601 def __init__(self, models=True, unsat_cores=False, proofs=False, ctx=None, goal=None):
5602 if z3_debug():
5603 _z3_assert(goal is None or ctx is not None,
5604 "If goal is different from None, then ctx must be also different from None")
5605 self.ctx = _get_ctx(ctx)
5606 self.goal = goal
5607 if self.goal is None:
5608 self.goal = Z3_mk_goal(self.ctx.ref(), models, unsat_cores, proofs)
5609 Z3_goal_inc_ref(self.ctx.ref(), self.goal)
5610
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 5611 of file z3py.py.

5611 def __del__(self):
5612 if self.goal is not None and self.ctx.ref() is not None and Z3_goal_dec_ref is not None:
5613 Z3_goal_dec_ref(self.ctx.ref(), self.goal)
5614
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 5846 of file z3py.py.

5846 def __copy__(self):
5847 return self.translate(self.ctx)
5848

◆ __deepcopy__()

__deepcopy__ ( self,
memo = {} )

Definition at line 5849 of file z3py.py.

5849 def __deepcopy__(self, memo={}):
5850 return self.translate(self.ctx)
5851

◆ __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 5720 of file z3py.py.

5720 def __getitem__(self, arg):
5721 """Return a constraint in the goal `self`.
5722
5723 >>> g = Goal()
5724 >>> x, y = Ints('x y')
5725 >>> g.add(x == 0, y > x)
5726 >>> g[0]
5727 x == 0
5728 >>> g[1]
5729 y > x
5730 """
5731 if arg >= len(self):
5732 raise IndexError
5733 return self.get(arg)
5734

◆ __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 5694 of file z3py.py.

5694 def __len__(self):
5695 """Return the number of constraints in the goal `self`.
5696
5697 >>> g = Goal()
5698 >>> len(g)
5699 0
5700 >>> x, y = Ints('x y')
5701 >>> g.add(x == 0, y > x)
5702 >>> len(g)
5703 2
5704 """
5705 return self.size()
5706

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

◆ __repr__()

__repr__ ( self)

Definition at line 5812 of file z3py.py.

5812 def __repr__(self):
5813 return obj_to_string(self)
5814

◆ 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 5772 of file z3py.py.

5772 def add(self, *args):
5773 """Add constraints.
5774
5775 >>> x = Int('x')
5776 >>> g = Goal()
5777 >>> g.add(x > 0, x < 2)
5778 >>> g
5779 [x > 0, x < 2]
5780 """
5781 self.assert_exprs(*args)
5782

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 5750 of file z3py.py.

5750 def append(self, *args):
5751 """Add constraints.
5752
5753 >>> x = Int('x')
5754 >>> g = Goal()
5755 >>> g.append(x > 0, x < 2)
5756 >>> g
5757 [x > 0, x < 2]
5758 """
5759 self.assert_exprs(*args)
5760

◆ 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 5872 of file z3py.py.

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

◆ 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 5735 of file z3py.py.

5735 def assert_exprs(self, *args):
5736 """Assert constraints into the goal.
5737
5738 >>> x = Int('x')
5739 >>> g = Goal()
5740 >>> g.assert_exprs(x > 0, x < 2)
5741 >>> g
5742 [x > 0, x < 2]
5743 """
5744 args = _get_args(args)
5745 s = BoolSort(self.ctx)
5746 for arg in args:
5747 arg = s.cast(arg)
5748 Z3_goal_assert(self.ctx.ref(), self.goal, arg.as_ast())
5749
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 5783 of file z3py.py.

5783 def convert_model(self, model):
5784 """Retrieve model from a satisfiable goal
5785 >>> a, b = Ints('a b')
5786 >>> g = Goal()
5787 >>> g.add(Or(a == 0, a == 1), Or(b == 0, b == 1), a > b)
5788 >>> t = Then(Tactic('split-clause'), Tactic('solve-eqs'))
5789 >>> r = t(g)
5790 >>> r[0]
5791 [Or(b == 0, b == 1), Not(0 <= b)]
5792 >>> r[1]
5793 [Or(b == 0, b == 1), Not(1 <= b)]
5794 >>> # Remark: the subgoal r[0] is unsatisfiable
5795 >>> # Creating a solver for solving the second subgoal
5796 >>> s = Solver()
5797 >>> s.add(r[1])
5798 >>> s.check()
5799 sat
5800 >>> s.model()
5801 [b = 0]
5802 >>> # Model s.model() does not assign a value to `a`
5803 >>> # It is a model for subgoal `r[1]`, but not for goal `g`
5804 >>> # The method convert_model creates a model for `g` from a model for `r[1]`.
5805 >>> r[1].convert_model(s.model())
5806 [b = 0, a = 1]
5807 """
5808 if z3_debug():
5809 _z3_assert(isinstance(model, ModelRef), "Z3 Model expected")
5810 return ModelRef(Z3_goal_convert_model(self.ctx.ref(), self.goal, model.model), self.ctx)
5811
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 5615 of file z3py.py.

5615 def depth(self):
5616 """Return the depth of the goal `self`.
5617 The depth corresponds to the number of tactics applied to `self`.
5618
5619 >>> x, y = Ints('x y')
5620 >>> g = Goal()
5621 >>> g.add(x == 0, y >= x + 1)
5622 >>> g.depth()
5623 0
5624 >>> r = Then('simplify', 'solve-eqs')(g)
5625 >>> # r has 1 subgoal
5626 >>> len(r)
5627 1
5628 >>> r[0].depth()
5629 2
5630 """
5631 return int(Z3_goal_depth(self.ctx.ref(), self.goal))
5632
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 5819 of file z3py.py.

5819 def dimacs(self, include_names=True):
5820 """Return a textual representation of the goal in DIMACS format."""
5821 return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal, include_names)
5822
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 5707 of file z3py.py.

5707 def get(self, i):
5708 """Return a constraint in the goal `self`.
5709
5710 >>> g = Goal()
5711 >>> x, y = Ints('x y')
5712 >>> g.add(x == 0, y > x)
5713 >>> g.get(0)
5714 x == 0
5715 >>> g.get(1)
5716 y > x
5717 """
5718 return _to_expr_ref(Z3_goal_formula(self.ctx.ref(), self.goal, i), self.ctx)
5719
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 5633 of file z3py.py.

5633 def inconsistent(self):
5634 """Return `True` if `self` contains the `False` constraints.
5635
5636 >>> x, y = Ints('x y')
5637 >>> g = Goal()
5638 >>> g.inconsistent()
5639 False
5640 >>> g.add(x == 0, x == 1)
5641 >>> g
5642 [x == 0, x == 1]
5643 >>> g.inconsistent()
5644 False
5645 >>> g2 = Tactic('propagate-values')(g)[0]
5646 >>> g2.inconsistent()
5647 True
5648 """
5649 return Z3_goal_inconsistent(self.ctx.ref(), self.goal)
5650
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 5761 of file z3py.py.

5761 def insert(self, *args):
5762 """Add constraints.
5763
5764 >>> x = Int('x')
5765 >>> g = Goal()
5766 >>> g.insert(x > 0, x < 2)
5767 >>> g
5768 [x > 0, x < 2]
5769 """
5770 self.assert_exprs(*args)
5771

◆ 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 5651 of file z3py.py.

5651 def prec(self):
5652 """Return the precision (under-approximation, over-approximation, or precise) of the goal `self`.
5653
5654 >>> g = Goal()
5655 >>> g.prec() == Z3_GOAL_PRECISE
5656 True
5657 >>> x, y = Ints('x y')
5658 >>> g.add(x == y + 1)
5659 >>> g.prec() == Z3_GOAL_PRECISE
5660 True
5661 >>> t = With(Tactic('add-bounds'), add_bound_lower=0, add_bound_upper=10)
5662 >>> g2 = t(g)[0]
5663 >>> g2
5664 [x == y + 1, x <= 10, x >= 0, y <= 10, y >= 0]
5665 >>> g2.prec() == Z3_GOAL_PRECISE
5666 False
5667 >>> g2.prec() == Z3_GOAL_UNDER
5668 True
5669 """
5670 return Z3_goal_precision(self.ctx.ref(), self.goal)
5671
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 5672 of file z3py.py.

5672 def precision(self):
5673 """Alias for `prec()`.
5674
5675 >>> g = Goal()
5676 >>> g.precision() == Z3_GOAL_PRECISE
5677 True
5678 """
5679 return self.prec()
5680

◆ sexpr()

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

Definition at line 5815 of file z3py.py.

5815 def sexpr(self):
5816 """Return a textual representation of the s-expression representing the goal."""
5817 return Z3_goal_to_string(self.ctx.ref(), self.goal)
5818
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 5852 of file z3py.py.

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

◆ 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 5681 of file z3py.py.

5681 def size(self):
5682 """Return the number of constraints in the goal `self`.
5683
5684 >>> g = Goal()
5685 >>> g.size()
5686 0
5687 >>> x, y = Ints('x y')
5688 >>> g.add(x == 0, y > x)
5689 >>> g.size()
5690 2
5691 """
5692 return int(Z3_goal_size(self.ctx.ref(), self.goal))
5693
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 5823 of file z3py.py.

5823 def translate(self, target):
5824 """Copy goal `self` to context `target`.
5825
5826 >>> x = Int('x')
5827 >>> g = Goal()
5828 >>> g.add(x > 10)
5829 >>> g
5830 [x > 10]
5831 >>> c2 = Context()
5832 >>> g2 = g.translate(c2)
5833 >>> g2
5834 [x > 10]
5835 >>> g.ctx == main_ctx()
5836 True
5837 >>> g2.ctx == c2
5838 True
5839 >>> g2.ctx == main_ctx()
5840 False
5841 """
5842 if z3_debug():
5843 _z3_assert(isinstance(target, Context), "target must be a context")
5844 return Goal(goal=Z3_goal_translate(self.ctx.ref(), self.goal, target.ref()), ctx=target)
5845
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 5605 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(), 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