Z3
Public Member Functions | Data Fields
Goal Class Reference
+ Inheritance diagram for Goal:

Public Member Functions

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

Data Fields

 ctx
 
 goal
 

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 5160 of file z3py.py.

5160  def __init__(self, models=True, unsat_cores=False, proofs=False, ctx=None, goal=None):
5161  if z3_debug():
5162  _z3_assert(goal is None or ctx is not None, "If goal is different from None, then ctx must be also different from None")
5163  self.ctx = _get_ctx(ctx)
5164  self.goal = goal
5165  if self.goal is None:
5166  self.goal = Z3_mk_goal(self.ctx.ref(), models, unsat_cores, proofs)
5167  Z3_goal_inc_ref(self.ctx.ref(), self.goal)
5168 
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...
def z3_debug()
Definition: z3py.py:58
void Z3_API Z3_goal_inc_ref(Z3_context c, Z3_goal g)
Increment the reference counter of the given goal.

◆ __del__()

def __del__ (   self)

Definition at line 5172 of file z3py.py.

5172  def __del__(self):
5173  if self.goal is not None and self.ctx.ref() is not None:
5174  Z3_goal_dec_ref(self.ctx.ref(), self.goal)
5175 
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__()

def __copy__ (   self)

Definition at line 5406 of file z3py.py.

5406  def __copy__(self):
5407  return self.translate(self.ctx)
5408 

◆ __deepcopy__() [1/2]

def __deepcopy__ (   self,
  memo = {} 
)

Definition at line 5169 of file z3py.py.

5169  def __deepcopy__(self, memo={}):
5170  return Goal(False, False, False, self.ctx, self.goal)
5171 

Referenced by Goal.__deepcopy__().

◆ __deepcopy__() [2/2]

def __deepcopy__ (   self,
  memo = {} 
)

Definition at line 5409 of file z3py.py.

5409  def __deepcopy__(self, memo={}):
5410  return self.translate(self.ctx)
5411 

◆ __getitem__()

def __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 5280 of file z3py.py.

5280  def __getitem__(self, arg):
5281  """Return a constraint in the goal `self`.
5282 
5283  >>> g = Goal()
5284  >>> x, y = Ints('x y')
5285  >>> g.add(x == 0, y > x)
5286  >>> g[0]
5287  x == 0
5288  >>> g[1]
5289  y > x
5290  """
5291  if arg >= len(self):
5292  raise IndexError
5293  return self.get(arg)
5294 

◆ __len__()

def __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 5254 of file z3py.py.

5254  def __len__(self):
5255  """Return the number of constraints in the goal `self`.
5256 
5257  >>> g = Goal()
5258  >>> len(g)
5259  0
5260  >>> x, y = Ints('x y')
5261  >>> g.add(x == 0, y > x)
5262  >>> len(g)
5263  2
5264  """
5265  return self.size()
5266 

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

◆ __repr__()

def __repr__ (   self)

Definition at line 5372 of file z3py.py.

5372  def __repr__(self):
5373  return obj_to_string(self)
5374 

◆ add()

def add (   self,
args 
)
Add constraints.

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

Definition at line 5332 of file z3py.py.

5332  def add(self, *args):
5333  """Add constraints.
5334 
5335  >>> x = Int('x')
5336  >>> g = Goal()
5337  >>> g.add(x > 0, x < 2)
5338  >>> g
5339  [x > 0, x < 2]
5340  """
5341  self.assert_exprs(*args)
5342 

Referenced by Solver.__iadd__(), Fixedpoint.__iadd__(), and Optimize.__iadd__().

◆ append()

def append (   self,
args 
)
Add constraints.

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

Definition at line 5310 of file z3py.py.

5310  def append(self, *args):
5311  """Add constraints.
5312 
5313  >>> x = Int('x')
5314  >>> g = Goal()
5315  >>> g.append(x > 0, x < 2)
5316  >>> g
5317  [x > 0, x < 2]
5318  """
5319  self.assert_exprs(*args)
5320 

◆ as_expr()

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

5432  def as_expr(self):
5433  """Return goal `self` as a single Z3 expression.
5434 
5435  >>> x = Int('x')
5436  >>> g = Goal()
5437  >>> g.as_expr()
5438  True
5439  >>> g.add(x > 1)
5440  >>> g.as_expr()
5441  x > 1
5442  >>> g.add(x < 10)
5443  >>> g.as_expr()
5444  And(x > 1, x < 10)
5445  """
5446  sz = len(self)
5447  if sz == 0:
5448  return BoolVal(True, self.ctx)
5449  elif sz == 1:
5450  return self.get(0)
5451  else:
5452  return And([ self.get(i) for i in range(len(self)) ], self.ctx)
5453 
expr range(expr const &lo, expr const &hi)
Definition: z3++.h:3370
def And(*args)
Definition: z3py.py:1684
def BoolVal(val, ctx=None)
Definition: z3py.py:1552

◆ assert_exprs()

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

5295  def assert_exprs(self, *args):
5296  """Assert constraints into the goal.
5297 
5298  >>> x = Int('x')
5299  >>> g = Goal()
5300  >>> g.assert_exprs(x > 0, x < 2)
5301  >>> g
5302  [x > 0, x < 2]
5303  """
5304  args = _get_args(args)
5305  s = BoolSort(self.ctx)
5306  for arg in args:
5307  arg = s.cast(arg)
5308  Z3_goal_assert(self.ctx.ref(), self.goal, arg.as_ast())
5309 
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...
def BoolSort(ctx=None)
Definition: z3py.py:1535

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

◆ convert_model()

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

5343  def convert_model(self, model):
5344  """Retrieve model from a satisfiable goal
5345  >>> a, b = Ints('a b')
5346  >>> g = Goal()
5347  >>> g.add(Or(a == 0, a == 1), Or(b == 0, b == 1), a > b)
5348  >>> t = Then(Tactic('split-clause'), Tactic('solve-eqs'))
5349  >>> r = t(g)
5350  >>> r[0]
5351  [Or(b == 0, b == 1), Not(0 <= b)]
5352  >>> r[1]
5353  [Or(b == 0, b == 1), Not(1 <= b)]
5354  >>> # Remark: the subgoal r[0] is unsatisfiable
5355  >>> # Creating a solver for solving the second subgoal
5356  >>> s = Solver()
5357  >>> s.add(r[1])
5358  >>> s.check()
5359  sat
5360  >>> s.model()
5361  [b = 0]
5362  >>> # Model s.model() does not assign a value to `a`
5363  >>> # It is a model for subgoal `r[1]`, but not for goal `g`
5364  >>> # The method convert_model creates a model for `g` from a model for `r[1]`.
5365  >>> r[1].convert_model(s.model())
5366  [b = 0, a = 1]
5367  """
5368  if z3_debug():
5369  _z3_assert(isinstance(model, ModelRef), "Z3 Model expected")
5370  return ModelRef(Z3_goal_convert_model(self.ctx.ref(), self.goal, model.model), self.ctx)
5371 
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,...
def z3_debug()
Definition: z3py.py:58

◆ depth()

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

5176  def depth(self):
5177  """Return the depth of the goal `self`. The depth corresponds to the number of tactics applied to `self`.
5178 
5179  >>> x, y = Ints('x y')
5180  >>> g = Goal()
5181  >>> g.add(x == 0, y >= x + 1)
5182  >>> g.depth()
5183  0
5184  >>> r = Then('simplify', 'solve-eqs')(g)
5185  >>> # r has 1 subgoal
5186  >>> len(r)
5187  1
5188  >>> r[0].depth()
5189  2
5190  """
5191  return int(Z3_goal_depth(self.ctx.ref(), self.goal))
5192 
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()

def dimacs (   self)
Return a textual representation of the goal in DIMACS format.

Definition at line 5379 of file z3py.py.

5379  def dimacs(self):
5380  """Return a textual representation of the goal in DIMACS format."""
5381  return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal)
5382 
Z3_string Z3_API Z3_goal_to_dimacs_string(Z3_context c, Z3_goal g)
Convert a goal into a DIMACS formatted string. The goal must be in CNF. You can convert a goal to CNF...

◆ get()

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

5267  def get(self, i):
5268  """Return a constraint in the goal `self`.
5269 
5270  >>> g = Goal()
5271  >>> x, y = Ints('x y')
5272  >>> g.add(x == 0, y > x)
5273  >>> g.get(0)
5274  x == 0
5275  >>> g.get(1)
5276  y > x
5277  """
5278  return _to_expr_ref(Z3_goal_formula(self.ctx.ref(), self.goal, i), self.ctx)
5279 
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()

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

5193  def inconsistent(self):
5194  """Return `True` if `self` contains the `False` constraints.
5195 
5196  >>> x, y = Ints('x y')
5197  >>> g = Goal()
5198  >>> g.inconsistent()
5199  False
5200  >>> g.add(x == 0, x == 1)
5201  >>> g
5202  [x == 0, x == 1]
5203  >>> g.inconsistent()
5204  False
5205  >>> g2 = Tactic('propagate-values')(g)[0]
5206  >>> g2.inconsistent()
5207  True
5208  """
5209  return Z3_goal_inconsistent(self.ctx.ref(), self.goal)
5210 
bool Z3_API Z3_goal_inconsistent(Z3_context c, Z3_goal g)
Return true if the given goal contains the formula false.

◆ insert()

def insert (   self,
args 
)
Add constraints.

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

Definition at line 5321 of file z3py.py.

5321  def insert(self, *args):
5322  """Add constraints.
5323 
5324  >>> x = Int('x')
5325  >>> g = Goal()
5326  >>> g.insert(x > 0, x < 2)
5327  >>> g
5328  [x > 0, x < 2]
5329  """
5330  self.assert_exprs(*args)
5331 

◆ prec()

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

5211  def prec(self):
5212  """Return the precision (under-approximation, over-approximation, or precise) of the goal `self`.
5213 
5214  >>> g = Goal()
5215  >>> g.prec() == Z3_GOAL_PRECISE
5216  True
5217  >>> x, y = Ints('x y')
5218  >>> g.add(x == y + 1)
5219  >>> g.prec() == Z3_GOAL_PRECISE
5220  True
5221  >>> t = With(Tactic('add-bounds'), add_bound_lower=0, add_bound_upper=10)
5222  >>> g2 = t(g)[0]
5223  >>> g2
5224  [x == y + 1, x <= 10, x >= 0, y <= 10, y >= 0]
5225  >>> g2.prec() == Z3_GOAL_PRECISE
5226  False
5227  >>> g2.prec() == Z3_GOAL_UNDER
5228  True
5229  """
5230  return Z3_goal_precision(self.ctx.ref(), self.goal)
5231 
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()

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

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

Definition at line 5232 of file z3py.py.

5232  def precision(self):
5233  """Alias for `prec()`.
5234 
5235  >>> g = Goal()
5236  >>> g.precision() == Z3_GOAL_PRECISE
5237  True
5238  """
5239  return self.prec()
5240 

◆ sexpr()

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

Definition at line 5375 of file z3py.py.

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

Referenced by Fixedpoint.__repr__(), and Optimize.__repr__().

◆ simplify()

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

5412  def simplify(self, *arguments, **keywords):
5413  """Return a new simplified goal.
5414 
5415  This method is essentially invoking the simplify tactic.
5416 
5417  >>> g = Goal()
5418  >>> x = Int('x')
5419  >>> g.add(x + 1 >= 2)
5420  >>> g
5421  [x + 1 >= 2]
5422  >>> g2 = g.simplify()
5423  >>> g2
5424  [x >= 1]
5425  >>> # g was not modified
5426  >>> g
5427  [x + 1 >= 2]
5428  """
5429  t = Tactic('simplify')
5430  return t.apply(self, *arguments, **keywords)[0]
5431 
def simplify(a, *arguments, **keywords)
Utils.
Definition: z3py.py:8184

◆ size()

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

5241  def size(self):
5242  """Return the number of constraints in the goal `self`.
5243 
5244  >>> g = Goal()
5245  >>> g.size()
5246  0
5247  >>> x, y = Ints('x y')
5248  >>> g.add(x == 0, y > x)
5249  >>> g.size()
5250  2
5251  """
5252  return int(Z3_goal_size(self.ctx.ref(), self.goal))
5253 
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__().

◆ translate()

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

5383  def translate(self, target):
5384  """Copy goal `self` to context `target`.
5385 
5386  >>> x = Int('x')
5387  >>> g = Goal()
5388  >>> g.add(x > 10)
5389  >>> g
5390  [x > 10]
5391  >>> c2 = Context()
5392  >>> g2 = g.translate(c2)
5393  >>> g2
5394  [x > 10]
5395  >>> g.ctx == main_ctx()
5396  True
5397  >>> g2.ctx == c2
5398  True
5399  >>> g2.ctx == main_ctx()
5400  False
5401  """
5402  if z3_debug():
5403  _z3_assert(isinstance(target, Context), "target must be a context")
5404  return Goal(goal=Z3_goal_translate(self.ctx.ref(), self.goal, target.ref()), ctx=target)
5405 
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.
def z3_debug()
Definition: z3py.py:58

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

Field Documentation

◆ ctx

ctx

Definition at line 5163 of file z3py.py.

Referenced by Probe.__call__(), AstMap.__contains__(), Goal.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), ModelRef.__copy__(), Solver.__copy__(), Goal.__deepcopy__(), AstVector.__deepcopy__(), AstMap.__deepcopy__(), FuncEntry.__deepcopy__(), FuncInterp.__deepcopy__(), ModelRef.__deepcopy__(), Statistics.__deepcopy__(), Solver.__deepcopy__(), Fixedpoint.__deepcopy__(), Optimize.__deepcopy__(), ApplyResult.__deepcopy__(), Tactic.__deepcopy__(), Probe.__deepcopy__(), Goal.__del__(), AstVector.__del__(), AstMap.__del__(), FuncEntry.__del__(), FuncInterp.__del__(), ModelRef.__del__(), Statistics.__del__(), Solver.__del__(), Fixedpoint.__del__(), Optimize.__del__(), ApplyResult.__del__(), Tactic.__del__(), Probe.__del__(), Probe.__eq__(), Probe.__ge__(), AstVector.__getitem__(), AstMap.__getitem__(), ModelRef.__getitem__(), Statistics.__getitem__(), ApplyResult.__getitem__(), Probe.__gt__(), Probe.__le__(), AstVector.__len__(), AstMap.__len__(), ModelRef.__len__(), Statistics.__len__(), ApplyResult.__len__(), Probe.__lt__(), Probe.__ne__(), AstMap.__repr__(), Statistics.__repr__(), AstVector.__setitem__(), AstMap.__setitem__(), Fixedpoint.add_cover(), Fixedpoint.add_rule(), Optimize.add_soft(), Tactic.apply(), FuncEntry.arg_value(), FuncInterp.arity(), Goal.as_expr(), ApplyResult.as_expr(), Solver.assert_and_track(), Optimize.assert_and_track(), Goal.assert_exprs(), Solver.assert_exprs(), Fixedpoint.assert_exprs(), Optimize.assert_exprs(), Solver.assertions(), Optimize.assertions(), Solver.check(), Optimize.check(), Solver.consequences(), Goal.convert_model(), ModelRef.decls(), Goal.depth(), Goal.dimacs(), Solver.dimacs(), FuncInterp.else_value(), FuncInterp.entry(), AstMap.erase(), ModelRef.eval(), Solver.from_file(), Optimize.from_file(), Solver.from_string(), Optimize.from_string(), Goal.get(), Fixedpoint.get_answer(), Fixedpoint.get_assertions(), Fixedpoint.get_cover_delta(), Fixedpoint.get_ground_sat_answer(), ModelRef.get_interp(), Statistics.get_key_value(), Fixedpoint.get_num_levels(), Fixedpoint.get_rule_names_along_trace(), Fixedpoint.get_rules(), Fixedpoint.get_rules_along_trace(), ModelRef.get_sort(), ModelRef.get_universe(), Solver.help(), Fixedpoint.help(), Optimize.help(), Tactic.help(), Solver.import_model_converter(), Goal.inconsistent(), AstMap.keys(), Statistics.keys(), Optimize.maximize(), Optimize.minimize(), Solver.model(), Optimize.model(), Solver.non_units(), FuncEntry.num_args(), FuncInterp.num_entries(), Solver.num_scopes(), ModelRef.num_sorts(), Optimize.objectives(), Solver.param_descrs(), Fixedpoint.param_descrs(), Optimize.param_descrs(), Tactic.param_descrs(), Fixedpoint.parse_file(), Fixedpoint.parse_string(), Solver.pop(), Optimize.pop(), Goal.prec(), Solver.proof(), AstVector.push(), Solver.push(), Optimize.push(), Fixedpoint.query(), Fixedpoint.query_from_lvl(), Solver.reason_unknown(), Fixedpoint.reason_unknown(), Optimize.reason_unknown(), Fixedpoint.register_relation(), AstMap.reset(), Solver.reset(), AstVector.resize(), Solver.set(), Fixedpoint.set(), Optimize.set(), Fixedpoint.set_predicate_representation(), Goal.sexpr(), AstVector.sexpr(), ModelRef.sexpr(), Solver.sexpr(), Fixedpoint.sexpr(), Optimize.sexpr(), ApplyResult.sexpr(), Goal.size(), Tactic.solver(), Solver.statistics(), Fixedpoint.statistics(), Optimize.statistics(), Solver.to_smt2(), Fixedpoint.to_string(), Solver.trail(), Solver.trail_levels(), Goal.translate(), AstVector.translate(), FuncInterp.translate(), ModelRef.translate(), Solver.translate(), Solver.units(), Solver.unsat_core(), Optimize.unsat_core(), Fixedpoint.update_rule(), and FuncEntry.value().

◆ goal

goal