Z3
 
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
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
 
 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 5694 of file z3py.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 5702 of file z3py.py.

5702 def __init__(self, models=True, unsat_cores=False, proofs=False, ctx=None, goal=None):
5703 if z3_debug():
5704 _z3_assert(goal is None or ctx is not None,
5705 "If goal is different from None, then ctx must be also different from None")
5706 self.ctx = _get_ctx(ctx)
5707 self.goal = goal
5708 if self.goal is None:
5709 self.goal = Z3_mk_goal(self.ctx.ref(), models, unsat_cores, proofs)
5710 Z3_goal_inc_ref(self.ctx.ref(), self.goal)
5711
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 5712 of file z3py.py.

5712 def __del__(self):
5713 if self.goal is not None and self.ctx.ref() is not None and Z3_goal_dec_ref is not None:
5714 Z3_goal_dec_ref(self.ctx.ref(), self.goal)
5715
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 5947 of file z3py.py.

5947 def __copy__(self):
5948 return self.translate(self.ctx)
5949

◆ __deepcopy__()

__deepcopy__ (   self,
  memo = {} 
)

Definition at line 5950 of file z3py.py.

5950 def __deepcopy__(self, memo={}):
5951 return self.translate(self.ctx)
5952

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

5821 def __getitem__(self, arg):
5822 """Return a constraint in the goal `self`.
5823
5824 >>> g = Goal()
5825 >>> x, y = Ints('x y')
5826 >>> g.add(x == 0, y > x)
5827 >>> g[0]
5828 x == 0
5829 >>> g[1]
5830 y > x
5831 """
5832 if arg >= len(self):
5833 raise IndexError
5834 return self.get(arg)
5835

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

5795 def __len__(self):
5796 """Return the number of constraints in the goal `self`.
5797
5798 >>> g = Goal()
5799 >>> len(g)
5800 0
5801 >>> x, y = Ints('x y')
5802 >>> g.add(x == 0, y > x)
5803 >>> len(g)
5804 2
5805 """
5806 return self.size()
5807

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

◆ __repr__()

__repr__ (   self)

Definition at line 5913 of file z3py.py.

5913 def __repr__(self):
5914 return obj_to_string(self)
5915

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

5873 def add(self, *args):
5874 """Add constraints.
5875
5876 >>> x = Int('x')
5877 >>> g = Goal()
5878 >>> g.add(x > 0, x < 2)
5879 >>> g
5880 [x > 0, x < 2]
5881 """
5882 self.assert_exprs(*args)
5883

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

5851 def append(self, *args):
5852 """Add constraints.
5853
5854 >>> x = Int('x')
5855 >>> g = Goal()
5856 >>> g.append(x > 0, x < 2)
5857 >>> g
5858 [x > 0, x < 2]
5859 """
5860 self.assert_exprs(*args)
5861

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

5973 def as_expr(self):
5974 """Return goal `self` as a single Z3 expression.
5975
5976 >>> x = Int('x')
5977 >>> g = Goal()
5978 >>> g.as_expr()
5979 True
5980 >>> g.add(x > 1)
5981 >>> g.as_expr()
5982 x > 1
5983 >>> g.add(x < 10)
5984 >>> g.as_expr()
5985 And(x > 1, x < 10)
5986 """
5987 sz = len(self)
5988 if sz == 0:
5989 return BoolVal(True, self.ctx)
5990 elif sz == 1:
5991 return self.get(0)
5992 else:
5993 return And([self.get(i) for i in range(len(self))], self.ctx)
5994

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

5836 def assert_exprs(self, *args):
5837 """Assert constraints into the goal.
5838
5839 >>> x = Int('x')
5840 >>> g = Goal()
5841 >>> g.assert_exprs(x > 0, x < 2)
5842 >>> g
5843 [x > 0, x < 2]
5844 """
5845 args = _get_args(args)
5846 s = BoolSort(self.ctx)
5847 for arg in args:
5848 arg = s.cast(arg)
5849 Z3_goal_assert(self.ctx.ref(), self.goal, arg.as_ast())
5850
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 5884 of file z3py.py.

5884 def convert_model(self, model):
5885 """Retrieve model from a satisfiable goal
5886 >>> a, b = Ints('a b')
5887 >>> g = Goal()
5888 >>> g.add(Or(a == 0, a == 1), Or(b == 0, b == 1), a > b)
5889 >>> t = Then(Tactic('split-clause'), Tactic('solve-eqs'))
5890 >>> r = t(g)
5891 >>> r[0]
5892 [Or(b == 0, b == 1), Not(0 <= b)]
5893 >>> r[1]
5894 [Or(b == 0, b == 1), Not(1 <= b)]
5895 >>> # Remark: the subgoal r[0] is unsatisfiable
5896 >>> # Creating a solver for solving the second subgoal
5897 >>> s = Solver()
5898 >>> s.add(r[1])
5899 >>> s.check()
5900 sat
5901 >>> s.model()
5902 [b = 0]
5903 >>> # Model s.model() does not assign a value to `a`
5904 >>> # It is a model for subgoal `r[1]`, but not for goal `g`
5905 >>> # The method convert_model creates a model for `g` from a model for `r[1]`.
5906 >>> r[1].convert_model(s.model())
5907 [b = 0, a = 1]
5908 """
5909 if z3_debug():
5910 _z3_assert(isinstance(model, ModelRef), "Z3 Model expected")
5911 return ModelRef(Z3_goal_convert_model(self.ctx.ref(), self.goal, model.model), self.ctx)
5912
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 5716 of file z3py.py.

5716 def depth(self):
5717 """Return the depth of the goal `self`.
5718 The depth corresponds to the number of tactics applied to `self`.
5719
5720 >>> x, y = Ints('x y')
5721 >>> g = Goal()
5722 >>> g.add(x == 0, y >= x + 1)
5723 >>> g.depth()
5724 0
5725 >>> r = Then('simplify', 'solve-eqs')(g)
5726 >>> # r has 1 subgoal
5727 >>> len(r)
5728 1
5729 >>> r[0].depth()
5730 2
5731 """
5732 return int(Z3_goal_depth(self.ctx.ref(), self.goal))
5733
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 5920 of file z3py.py.

5920 def dimacs(self, include_names=True):
5921 """Return a textual representation of the goal in DIMACS format."""
5922 return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal, include_names)
5923
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 5808 of file z3py.py.

5808 def get(self, i):
5809 """Return a constraint in the goal `self`.
5810
5811 >>> g = Goal()
5812 >>> x, y = Ints('x y')
5813 >>> g.add(x == 0, y > x)
5814 >>> g.get(0)
5815 x == 0
5816 >>> g.get(1)
5817 y > x
5818 """
5819 return _to_expr_ref(Z3_goal_formula(self.ctx.ref(), self.goal, i), self.ctx)
5820
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 5734 of file z3py.py.

5734 def inconsistent(self):
5735 """Return `True` if `self` contains the `False` constraints.
5736
5737 >>> x, y = Ints('x y')
5738 >>> g = Goal()
5739 >>> g.inconsistent()
5740 False
5741 >>> g.add(x == 0, x == 1)
5742 >>> g
5743 [x == 0, x == 1]
5744 >>> g.inconsistent()
5745 False
5746 >>> g2 = Tactic('propagate-values')(g)[0]
5747 >>> g2.inconsistent()
5748 True
5749 """
5750 return Z3_goal_inconsistent(self.ctx.ref(), self.goal)
5751
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 5862 of file z3py.py.

5862 def insert(self, *args):
5863 """Add constraints.
5864
5865 >>> x = Int('x')
5866 >>> g = Goal()
5867 >>> g.insert(x > 0, x < 2)
5868 >>> g
5869 [x > 0, x < 2]
5870 """
5871 self.assert_exprs(*args)
5872

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

5752 def prec(self):
5753 """Return the precision (under-approximation, over-approximation, or precise) of the goal `self`.
5754
5755 >>> g = Goal()
5756 >>> g.prec() == Z3_GOAL_PRECISE
5757 True
5758 >>> x, y = Ints('x y')
5759 >>> g.add(x == y + 1)
5760 >>> g.prec() == Z3_GOAL_PRECISE
5761 True
5762 >>> t = With(Tactic('add-bounds'), add_bound_lower=0, add_bound_upper=10)
5763 >>> g2 = t(g)[0]
5764 >>> g2
5765 [x == y + 1, x <= 10, x >= 0, y <= 10, y >= 0]
5766 >>> g2.prec() == Z3_GOAL_PRECISE
5767 False
5768 >>> g2.prec() == Z3_GOAL_UNDER
5769 True
5770 """
5771 return Z3_goal_precision(self.ctx.ref(), self.goal)
5772
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 5773 of file z3py.py.

5773 def precision(self):
5774 """Alias for `prec()`.
5775
5776 >>> g = Goal()
5777 >>> g.precision() == Z3_GOAL_PRECISE
5778 True
5779 """
5780 return self.prec()
5781

◆ sexpr()

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

Definition at line 5916 of file z3py.py.

5916 def sexpr(self):
5917 """Return a textual representation of the s-expression representing the goal."""
5918 return Z3_goal_to_string(self.ctx.ref(), self.goal)
5919
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 5953 of file z3py.py.

5953 def simplify(self, *arguments, **keywords):
5954 """Return a new simplified goal.
5955
5956 This method is essentially invoking the simplify tactic.
5957
5958 >>> g = Goal()
5959 >>> x = Int('x')
5960 >>> g.add(x + 1 >= 2)
5961 >>> g
5962 [x + 1 >= 2]
5963 >>> g2 = g.simplify()
5964 >>> g2
5965 [x >= 1]
5966 >>> # g was not modified
5967 >>> g
5968 [x + 1 >= 2]
5969 """
5970 t = Tactic("simplify")
5971 return t.apply(self, *arguments, **keywords)[0]
5972

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

5782 def size(self):
5783 """Return the number of constraints in the goal `self`.
5784
5785 >>> g = Goal()
5786 >>> g.size()
5787 0
5788 >>> x, y = Ints('x y')
5789 >>> g.add(x == 0, y > x)
5790 >>> g.size()
5791 2
5792 """
5793 return int(Z3_goal_size(self.ctx.ref(), self.goal))
5794
unsigned Z3_API Z3_goal_size(Z3_context c, Z3_goal g)
Return the number of formulas in the given goal.

Referenced by ParamDescrsRef.__len__(), Goal.__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 5924 of file z3py.py.

5924 def translate(self, target):
5925 """Copy goal `self` to context `target`.
5926
5927 >>> x = Int('x')
5928 >>> g = Goal()
5929 >>> g.add(x > 10)
5930 >>> g
5931 [x > 10]
5932 >>> c2 = Context()
5933 >>> g2 = g.translate(c2)
5934 >>> g2
5935 [x > 10]
5936 >>> g.ctx == main_ctx()
5937 True
5938 >>> g2.ctx == c2
5939 True
5940 >>> g2.ctx == main_ctx()
5941 False
5942 """
5943 if z3_debug():
5944 _z3_assert(isinstance(target, Context), "target must be a context")
5945 return Goal(goal=Z3_goal_translate(self.ctx.ref(), self.goal, target.ref()), ctx=target)
5946
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__(), Goal.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), ModelRef.__copy__(), Goal.__deepcopy__(), AstVector.__deepcopy__(), FuncInterp.__deepcopy__(), and ModelRef.__deepcopy__().

Field Documentation

◆ ctx

ctx

Definition at line 5706 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(), 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(), ParamsRef.validate(), FuncEntry.value(), QuantifierRef.var_name(), and QuantifierRef.var_sort().

◆ goal

goal