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

Public Member Functions

 __init__ (self, m, ctx)
 
 __del__ (self)
 
 __repr__ (self)
 
 sexpr (self)
 
 eval (self, t, model_completion=False)
 
 evaluate (self, t, model_completion=False)
 
 __len__ (self)
 
 get_interp (self, decl)
 
 num_sorts (self)
 
 get_sort (self, idx)
 
 sorts (self)
 
 get_universe (self, s)
 
 __getitem__ (self, idx)
 
 decls (self)
 
 update_value (self, x, value)
 
 translate (self, target)
 
 project (self, vars, fml)
 
 project_with_witness (self, vars, fml)
 
 __copy__ (self)
 
 __deepcopy__ (self, memo={})
 
- Public Member Functions inherited from Z3PPObject
 use_pp (self)
 

Data Fields

 model
 
 ctx
 

Additional Inherited Members

- Protected Member Functions inherited from Z3PPObject
 _repr_html_ (self)
 

Detailed Description

Model/Solution of a satisfiability problem (aka system of constraints).

Definition at line 6587 of file z3py.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  m,
  ctx 
)

Definition at line 6590 of file z3py.py.

6590 def __init__(self, m, ctx):
6591 assert ctx is not None
6592 self.model = m
6593 self.ctx = ctx
6594 Z3_model_inc_ref(self.ctx.ref(), self.model)
6595
void Z3_API Z3_model_inc_ref(Z3_context c, Z3_model m)
Increment the reference counter of the given model.

◆ __del__()

__del__ (   self)

Definition at line 6596 of file z3py.py.

6596 def __del__(self):
6597 if self.ctx.ref() is not None and Z3_model_dec_ref is not None:
6598 Z3_model_dec_ref(self.ctx.ref(), self.model)
6599
void Z3_API Z3_model_dec_ref(Z3_context c, Z3_model m)
Decrement the reference counter of the given model.

Member Function Documentation

◆ __copy__()

__copy__ (   self)

Definition at line 6928 of file z3py.py.

6928 def __copy__(self):
6929 return self.translate(self.ctx)
6930

◆ __deepcopy__()

__deepcopy__ (   self,
  memo = {} 
)

Definition at line 6931 of file z3py.py.

6931 def __deepcopy__(self, memo={}):
6932 return self.translate(self.ctx)
6933
6934

◆ __getitem__()

__getitem__ (   self,
  idx 
)
If `idx` is an integer, then the declaration at position `idx` in the model `self` is returned.
If `idx` is a declaration, then the actual interpretation is returned.

The elements can be retrieved using position or the actual declaration.

>>> f = Function('f', IntSort(), IntSort())
>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, x < 2, f(x) == 0)
>>> s.check()
sat
>>> m = s.model()
>>> len(m)
2
>>> m[0]
x
>>> m[1]
f
>>> m[x]
1
>>> m[f]
[else -> 0]
>>> for d in m: print("%s -> %s" % (d, m[d]))
x -> 1
f -> [else -> 0]

Definition at line 6808 of file z3py.py.

6808 def __getitem__(self, idx):
6809 """If `idx` is an integer, then the declaration at position `idx` in the model `self` is returned.
6810 If `idx` is a declaration, then the actual interpretation is returned.
6811
6812 The elements can be retrieved using position or the actual declaration.
6813
6814 >>> f = Function('f', IntSort(), IntSort())
6815 >>> x = Int('x')
6816 >>> s = Solver()
6817 >>> s.add(x > 0, x < 2, f(x) == 0)
6818 >>> s.check()
6819 sat
6820 >>> m = s.model()
6821 >>> len(m)
6822 2
6823 >>> m[0]
6824 x
6825 >>> m[1]
6826 f
6827 >>> m[x]
6828 1
6829 >>> m[f]
6830 [else -> 0]
6831 >>> for d in m: print("%s -> %s" % (d, m[d]))
6832 x -> 1
6833 f -> [else -> 0]
6834 """
6835 if _is_int(idx):
6836 if idx < 0:
6837 idx += len(self)
6838 if idx < 0 or idx >= len(self):
6839 raise IndexError
6840 num_consts = Z3_model_get_num_consts(self.ctx.ref(), self.model)
6841 if (idx < num_consts):
6842 return FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, idx), self.ctx)
6843 else:
6844 return FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, idx - num_consts), self.ctx)
6845 if isinstance(idx, FuncDeclRef):
6846 return self.get_interp(idx)
6847 if is_const(idx):
6848 return self.get_interp(idx.decl())
6849 if isinstance(idx, SortRef):
6850 return self.get_universe(idx)
6851 if z3_debug():
6852 _z3_assert(False, "Integer, Z3 declaration, or Z3 constant expected")
6853 return None
6854
Z3_func_decl Z3_API Z3_model_get_func_decl(Z3_context c, Z3_model m, unsigned i)
Return the declaration of the i-th function in the given model.
unsigned Z3_API Z3_model_get_num_consts(Z3_context c, Z3_model m)
Return the number of constants assigned by the given model.
Z3_func_decl Z3_API Z3_model_get_const_decl(Z3_context c, Z3_model m, unsigned i)
Return the i-th constant in the given model.

◆ __len__()

__len__ (   self)
Return the number of constant and function declarations in the model `self`.

>>> f = Function('f', IntSort(), IntSort())
>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, f(x) != x)
>>> s.check()
sat
>>> m = s.model()
>>> len(m)
2

Definition at line 6664 of file z3py.py.

6664 def __len__(self):
6665 """Return the number of constant and function declarations in the model `self`.
6666
6667 >>> f = Function('f', IntSort(), IntSort())
6668 >>> x = Int('x')
6669 >>> s = Solver()
6670 >>> s.add(x > 0, f(x) != x)
6671 >>> s.check()
6672 sat
6673 >>> m = s.model()
6674 >>> len(m)
6675 2
6676 """
6677 num_consts = int(Z3_model_get_num_consts(self.ctx.ref(), self.model))
6678 num_funcs = int(Z3_model_get_num_funcs(self.ctx.ref(), self.model))
6679 return num_consts + num_funcs
6680
unsigned Z3_API Z3_model_get_num_funcs(Z3_context c, Z3_model m)
Return the number of function interpretations in the given model.

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

◆ __repr__()

__repr__ (   self)

Definition at line 6600 of file z3py.py.

6600 def __repr__(self):
6601 return obj_to_string(self)
6602

◆ decls()

decls (   self)
Return a list with all symbols that have an interpretation in the model `self`.
>>> f = Function('f', IntSort(), IntSort())
>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, x < 2, f(x) == 0)
>>> s.check()
sat
>>> m = s.model()
>>> m.decls()
[x, f]

Definition at line 6855 of file z3py.py.

6855 def decls(self):
6856 """Return a list with all symbols that have an interpretation in the model `self`.
6857 >>> f = Function('f', IntSort(), IntSort())
6858 >>> x = Int('x')
6859 >>> s = Solver()
6860 >>> s.add(x > 0, x < 2, f(x) == 0)
6861 >>> s.check()
6862 sat
6863 >>> m = s.model()
6864 >>> m.decls()
6865 [x, f]
6866 """
6867 r = []
6868 for i in range(Z3_model_get_num_consts(self.ctx.ref(), self.model)):
6869 r.append(FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, i), self.ctx))
6870 for i in range(Z3_model_get_num_funcs(self.ctx.ref(), self.model)):
6871 r.append(FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, i), self.ctx))
6872 return r
6873

◆ eval()

eval (   self,
  t,
  model_completion = False 
)
Evaluate the expression `t` in the model `self`.
If `model_completion` is enabled, then a default interpretation is automatically added
for symbols that do not have an interpretation in the model `self`.

>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, x < 2)
>>> s.check()
sat
>>> m = s.model()
>>> m.eval(x + 1)
2
>>> m.eval(x == 1)
True
>>> y = Int('y')
>>> m.eval(y + x)
1 + y
>>> m.eval(y)
y
>>> m.eval(y, model_completion=True)
0
>>> # Now, m contains an interpretation for y
>>> m.eval(y + x)
1

Definition at line 6607 of file z3py.py.

6607 def eval(self, t, model_completion=False):
6608 """Evaluate the expression `t` in the model `self`.
6609 If `model_completion` is enabled, then a default interpretation is automatically added
6610 for symbols that do not have an interpretation in the model `self`.
6611
6612 >>> x = Int('x')
6613 >>> s = Solver()
6614 >>> s.add(x > 0, x < 2)
6615 >>> s.check()
6616 sat
6617 >>> m = s.model()
6618 >>> m.eval(x + 1)
6619 2
6620 >>> m.eval(x == 1)
6621 True
6622 >>> y = Int('y')
6623 >>> m.eval(y + x)
6624 1 + y
6625 >>> m.eval(y)
6626 y
6627 >>> m.eval(y, model_completion=True)
6628 0
6629 >>> # Now, m contains an interpretation for y
6630 >>> m.eval(y + x)
6631 1
6632 """
6633 r = (Ast * 1)()
6634 if Z3_model_eval(self.ctx.ref(), self.model, t.as_ast(), model_completion, r):
6635 return _to_expr_ref(r[0], self.ctx)
6636 raise Z3Exception("failed to evaluate expression in the model")
6637
bool Z3_API Z3_model_eval(Z3_context c, Z3_model m, Z3_ast t, bool model_completion, Z3_ast *v)
Evaluate the AST node t in the given model. Return true if succeeded, and store the result in v.

Referenced by ModelRef.evaluate().

◆ evaluate()

evaluate (   self,
  t,
  model_completion = False 
)
Alias for `eval`.

>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, x < 2)
>>> s.check()
sat
>>> m = s.model()
>>> m.evaluate(x + 1)
2
>>> m.evaluate(x == 1)
True
>>> y = Int('y')
>>> m.evaluate(y + x)
1 + y
>>> m.evaluate(y)
y
>>> m.evaluate(y, model_completion=True)
0
>>> # Now, m contains an interpretation for y
>>> m.evaluate(y + x)
1

Definition at line 6638 of file z3py.py.

6638 def evaluate(self, t, model_completion=False):
6639 """Alias for `eval`.
6640
6641 >>> x = Int('x')
6642 >>> s = Solver()
6643 >>> s.add(x > 0, x < 2)
6644 >>> s.check()
6645 sat
6646 >>> m = s.model()
6647 >>> m.evaluate(x + 1)
6648 2
6649 >>> m.evaluate(x == 1)
6650 True
6651 >>> y = Int('y')
6652 >>> m.evaluate(y + x)
6653 1 + y
6654 >>> m.evaluate(y)
6655 y
6656 >>> m.evaluate(y, model_completion=True)
6657 0
6658 >>> # Now, m contains an interpretation for y
6659 >>> m.evaluate(y + x)
6660 1
6661 """
6662 return self.eval(t, model_completion)
6663

◆ get_interp()

get_interp (   self,
  decl 
)
Return the interpretation for a given declaration or constant.

>>> f = Function('f', IntSort(), IntSort())
>>> x = Int('x')
>>> s = Solver()
>>> s.add(x > 0, x < 2, f(x) == 0)
>>> s.check()
sat
>>> m = s.model()
>>> m[x]
1
>>> m[f]
[else -> 0]

Definition at line 6681 of file z3py.py.

6681 def get_interp(self, decl):
6682 """Return the interpretation for a given declaration or constant.
6683
6684 >>> f = Function('f', IntSort(), IntSort())
6685 >>> x = Int('x')
6686 >>> s = Solver()
6687 >>> s.add(x > 0, x < 2, f(x) == 0)
6688 >>> s.check()
6689 sat
6690 >>> m = s.model()
6691 >>> m[x]
6692 1
6693 >>> m[f]
6694 [else -> 0]
6695 """
6696 if z3_debug():
6697 _z3_assert(isinstance(decl, FuncDeclRef) or is_const(decl), "Z3 declaration expected")
6698 if is_const(decl):
6699 decl = decl.decl()
6700 try:
6701 if decl.arity() == 0:
6702 _r = Z3_model_get_const_interp(self.ctx.ref(), self.model, decl.ast)
6703 if _r.value is None:
6704 return None
6705 r = _to_expr_ref(_r, self.ctx)
6706 if is_as_array(r):
6707 fi = self.get_interp(get_as_array_func(r))
6708 if fi is None:
6709 return fi
6710 e = fi.else_value()
6711 if e is None:
6712 return fi
6713 if fi.arity() != 1:
6714 return fi
6715 srt = decl.range()
6716 dom = srt.domain()
6717 e = K(dom, e)
6718 i = 0
6719 sz = fi.num_entries()
6720 n = fi.arity()
6721 while i < sz:
6722 fe = fi.entry(i)
6723 e = Store(e, fe.arg_value(0), fe.value())
6724 i += 1
6725 return e
6726 else:
6727 return r
6728 else:
6729 return FuncInterp(Z3_model_get_func_interp(self.ctx.ref(), self.model, decl.ast), self.ctx)
6730 except Z3Exception:
6731 return None
6732
Z3_ast Z3_API Z3_model_get_const_interp(Z3_context c, Z3_model m, Z3_func_decl a)
Return the interpretation (i.e., assignment) of constant a in the model m. Return NULL,...
Z3_func_interp Z3_API Z3_model_get_func_interp(Z3_context c, Z3_model m, Z3_func_decl f)
Return the interpretation of the function f in the model m. Return NULL, if the model does not assign...

Referenced by ModelRef.__getitem__(), and ModelRef.get_interp().

◆ get_sort()

get_sort (   self,
  idx 
)
Return the uninterpreted sort at position `idx` < self.num_sorts().

>>> A = DeclareSort('A')
>>> B = DeclareSort('B')
>>> a1, a2 = Consts('a1 a2', A)
>>> b1, b2 = Consts('b1 b2', B)
>>> s = Solver()
>>> s.add(a1 != a2, b1 != b2)
>>> s.check()
sat
>>> m = s.model()
>>> m.num_sorts()
2
>>> m.get_sort(0)
A
>>> m.get_sort(1)
B

Definition at line 6748 of file z3py.py.

6748 def get_sort(self, idx):
6749 """Return the uninterpreted sort at position `idx` < self.num_sorts().
6750
6751 >>> A = DeclareSort('A')
6752 >>> B = DeclareSort('B')
6753 >>> a1, a2 = Consts('a1 a2', A)
6754 >>> b1, b2 = Consts('b1 b2', B)
6755 >>> s = Solver()
6756 >>> s.add(a1 != a2, b1 != b2)
6757 >>> s.check()
6758 sat
6759 >>> m = s.model()
6760 >>> m.num_sorts()
6761 2
6762 >>> m.get_sort(0)
6763 A
6764 >>> m.get_sort(1)
6765 B
6766 """
6767 if idx >= self.num_sorts():
6768 raise IndexError
6769 return _to_sort_ref(Z3_model_get_sort(self.ctx.ref(), self.model, idx), self.ctx)
6770
Z3_sort Z3_API Z3_model_get_sort(Z3_context c, Z3_model m, unsigned i)
Return a uninterpreted sort that m assigns an interpretation.

Referenced by ModelRef.sorts().

◆ get_universe()

get_universe (   self,
  s 
)
Return the interpretation for the uninterpreted sort `s` in the model `self`.

>>> A = DeclareSort('A')
>>> a, b = Consts('a b', A)
>>> s = Solver()
>>> s.add(a != b)
>>> s.check()
sat
>>> m = s.model()
>>> m.get_universe(A)
[A!val!1, A!val!0]

Definition at line 6788 of file z3py.py.

6788 def get_universe(self, s):
6789 """Return the interpretation for the uninterpreted sort `s` in the model `self`.
6790
6791 >>> A = DeclareSort('A')
6792 >>> a, b = Consts('a b', A)
6793 >>> s = Solver()
6794 >>> s.add(a != b)
6795 >>> s.check()
6796 sat
6797 >>> m = s.model()
6798 >>> m.get_universe(A)
6799 [A!val!1, A!val!0]
6800 """
6801 if z3_debug():
6802 _z3_assert(isinstance(s, SortRef), "Z3 sort expected")
6803 try:
6804 return AstVector(Z3_model_get_sort_universe(self.ctx.ref(), self.model, s.ast), self.ctx)
6805 except Z3Exception:
6806 return None
6807
Z3_ast_vector Z3_API Z3_model_get_sort_universe(Z3_context c, Z3_model m, Z3_sort s)
Return the finite set of distinct values that represent the interpretation for sort s.

Referenced by ModelRef.__getitem__().

◆ num_sorts()

num_sorts (   self)
Return the number of uninterpreted sorts that contain an interpretation in the model `self`.

>>> A = DeclareSort('A')
>>> a, b = Consts('a b', A)
>>> s = Solver()
>>> s.add(a != b)
>>> s.check()
sat
>>> m = s.model()
>>> m.num_sorts()
1

Definition at line 6733 of file z3py.py.

6733 def num_sorts(self):
6734 """Return the number of uninterpreted sorts that contain an interpretation in the model `self`.
6735
6736 >>> A = DeclareSort('A')
6737 >>> a, b = Consts('a b', A)
6738 >>> s = Solver()
6739 >>> s.add(a != b)
6740 >>> s.check()
6741 sat
6742 >>> m = s.model()
6743 >>> m.num_sorts()
6744 1
6745 """
6746 return int(Z3_model_get_num_sorts(self.ctx.ref(), self.model))
6747
unsigned Z3_API Z3_model_get_num_sorts(Z3_context c, Z3_model m)
Return the number of uninterpreted sorts that m assigns an interpretation to.

Referenced by ModelRef.get_sort(), and ModelRef.sorts().

◆ project()

project (   self,
  vars,
  fml 
)
Perform model-based projection on fml with respect to vars.
Assume that the model satisfies fml. Then compute a projection fml_p, such
that vars do not occur free in fml_p, fml_p is true in the model and
fml_p => exists vars . fml

Definition at line 6904 of file z3py.py.

6904 def project(self, vars, fml):
6905 """Perform model-based projection on fml with respect to vars.
6906 Assume that the model satisfies fml. Then compute a projection fml_p, such
6907 that vars do not occur free in fml_p, fml_p is true in the model and
6908 fml_p => exists vars . fml
6909 """
6910 ctx = self.ctx.ref()
6911 _vars = (Ast * len(vars))()
6912 for i in range(len(vars)):
6913 _vars[i] = vars[i].as_ast()
6914 return _to_expr_ref(Z3_qe_model_project(ctx, self.model, len(vars), _vars, fml.ast), self.ctx)
6915

◆ project_with_witness()

project_with_witness (   self,
  vars,
  fml 
)
Perform model-based projection, but also include realizer terms for the projected variables

Definition at line 6916 of file z3py.py.

6916 def project_with_witness(self, vars, fml):
6917 """Perform model-based projection, but also include realizer terms for the projected variables"""
6918 ctx = self.ctx.ref()
6919 _vars = (Ast * len(vars))()
6920 for i in range(len(vars)):
6921 _vars[i] = vars[i].as_ast()
6922 defs = AstMap()
6923 result = Z3_qe_model_project_with_witness(ctx, self.model, len(vars), _vars, fml.ast, defs.map)
6924 result = _to_expr_ref(result, self.ctx)
6925 return result, defs
6926
6927

◆ sexpr()

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

Definition at line 6603 of file z3py.py.

6603 def sexpr(self):
6604 """Return a textual representation of the s-expression representing the model."""
6605 return Z3_model_to_string(self.ctx.ref(), self.model)
6606
Z3_string Z3_API Z3_model_to_string(Z3_context c, Z3_model m)
Convert the given model into a string.

◆ sorts()

sorts (   self)
Return all uninterpreted sorts that have an interpretation in the model `self`.

>>> A = DeclareSort('A')
>>> B = DeclareSort('B')
>>> a1, a2 = Consts('a1 a2', A)
>>> b1, b2 = Consts('b1 b2', B)
>>> s = Solver()
>>> s.add(a1 != a2, b1 != b2)
>>> s.check()
sat
>>> m = s.model()
>>> m.sorts()
[A, B]

Definition at line 6771 of file z3py.py.

6771 def sorts(self):
6772 """Return all uninterpreted sorts that have an interpretation in the model `self`.
6773
6774 >>> A = DeclareSort('A')
6775 >>> B = DeclareSort('B')
6776 >>> a1, a2 = Consts('a1 a2', A)
6777 >>> b1, b2 = Consts('b1 b2', B)
6778 >>> s = Solver()
6779 >>> s.add(a1 != a2, b1 != b2)
6780 >>> s.check()
6781 sat
6782 >>> m = s.model()
6783 >>> m.sorts()
6784 [A, B]
6785 """
6786 return [self.get_sort(i) for i in range(self.num_sorts())]
6787

◆ translate()

translate (   self,
  target 
)
Translate `self` to the context `target`. That is, return a copy of `self` in the context `target`.

Definition at line 6896 of file z3py.py.

6896 def translate(self, target):
6897 """Translate `self` to the context `target`. That is, return a copy of `self` in the context `target`.
6898 """
6899 if z3_debug():
6900 _z3_assert(isinstance(target, Context), "argument must be a Z3 context")
6901 model = Z3_model_translate(self.ctx.ref(), self.model, target.ref())
6902 return ModelRef(model, target)
6903
Z3_model Z3_API Z3_model_translate(Z3_context c, Z3_model m, Z3_context dst)
translate model from context c to context dst.

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

◆ update_value()

update_value (   self,
  x,
  value 
)
Update the interpretation of a constant

Definition at line 6874 of file z3py.py.

6874 def update_value(self, x, value):
6875 """Update the interpretation of a constant"""
6876 if is_expr(x):
6877 x = x.decl()
6878 if is_func_decl(x) and x.arity() != 0 and isinstance(value, FuncInterp):
6879 fi1 = value.f
6880 fi2 = Z3_add_func_interp(x.ctx_ref(), self.model, x.ast, value.else_value().ast);
6881 fi2 = FuncInterp(fi2, x.ctx)
6882 for i in range(value.num_entries()):
6883 e = value.entry(i)
6884 n = Z3_func_entry_get_num_args(x.ctx_ref(), e.entry)
6885 v = AstVector()
6886 for j in range(n):
6887 v.push(e.arg_value(j))
6888 val = Z3_func_entry_get_value(x.ctx_ref(), e.entry)
6889 Z3_func_interp_add_entry(x.ctx_ref(), fi2.f, v.vector, val)
6890 return
6891 if not is_func_decl(x) or x.arity() != 0:
6892 raise Z3Exception("Expecting 0-ary function or constant expression")
6893 value = _py2expr(value)
6894 Z3_add_const_interp(x.ctx_ref(), self.model, x.ast, value.ast)
6895
Z3_func_interp Z3_API Z3_add_func_interp(Z3_context c, Z3_model m, Z3_func_decl f, Z3_ast default_value)
Create a fresh func_interp object, add it to a model for a specified function. It has reference count...
unsigned Z3_API Z3_func_entry_get_num_args(Z3_context c, Z3_func_entry e)
Return the number of arguments in a Z3_func_entry object.
Z3_ast Z3_API Z3_func_entry_get_value(Z3_context c, Z3_func_entry e)
Return the value of this point.
void Z3_API Z3_add_const_interp(Z3_context c, Z3_model m, Z3_func_decl f, Z3_ast a)
Add a constant interpretation.
void Z3_API Z3_func_interp_add_entry(Z3_context c, Z3_func_interp fi, Z3_ast_vector args, Z3_ast value)
add a function entry to a function interpretation.

Field Documentation

◆ ctx

ctx

Definition at line 6593 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(), ExprRef.update(), DatatypeRef.update_field(), ParamsRef.validate(), FuncEntry.value(), QuantifierRef.var_name(), and QuantifierRef.var_sort().

◆ model

model