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

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  m,
  ctx 
)

Definition at line 6561 of file z3py.py.

6561 def __init__(self, m, ctx):
6562 assert ctx is not None
6563 self.model = m
6564 self.ctx = ctx
6565 Z3_model_inc_ref(self.ctx.ref(), self.model)
6566
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 6567 of file z3py.py.

6567 def __del__(self):
6568 if self.ctx.ref() is not None and Z3_model_dec_ref is not None:
6569 Z3_model_dec_ref(self.ctx.ref(), self.model)
6570
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 6897 of file z3py.py.

6897 def __copy__(self):
6898 return self.translate(self.ctx)
6899

◆ __deepcopy__()

__deepcopy__ (   self,
  memo = {} 
)

Definition at line 6900 of file z3py.py.

6900 def __deepcopy__(self, memo={}):
6901 return self.translate(self.ctx)
6902
6903

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

6779 def __getitem__(self, idx):
6780 """If `idx` is an integer, then the declaration at position `idx` in the model `self` is returned.
6781 If `idx` is a declaration, then the actual interpretation is returned.
6782
6783 The elements can be retrieved using position or the actual declaration.
6784
6785 >>> f = Function('f', IntSort(), IntSort())
6786 >>> x = Int('x')
6787 >>> s = Solver()
6788 >>> s.add(x > 0, x < 2, f(x) == 0)
6789 >>> s.check()
6790 sat
6791 >>> m = s.model()
6792 >>> len(m)
6793 2
6794 >>> m[0]
6795 x
6796 >>> m[1]
6797 f
6798 >>> m[x]
6799 1
6800 >>> m[f]
6801 [else -> 0]
6802 >>> for d in m: print("%s -> %s" % (d, m[d]))
6803 x -> 1
6804 f -> [else -> 0]
6805 """
6806 if _is_int(idx):
6807 if idx >= len(self):
6808 raise IndexError
6809 num_consts = Z3_model_get_num_consts(self.ctx.ref(), self.model)
6810 if (idx < num_consts):
6811 return FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, idx), self.ctx)
6812 else:
6813 return FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, idx - num_consts), self.ctx)
6814 if isinstance(idx, FuncDeclRef):
6815 return self.get_interp(idx)
6816 if is_const(idx):
6817 return self.get_interp(idx.decl())
6818 if isinstance(idx, SortRef):
6819 return self.get_universe(idx)
6820 if z3_debug():
6821 _z3_assert(False, "Integer, Z3 declaration, or Z3 constant expected")
6822 return None
6823
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 6635 of file z3py.py.

6635 def __len__(self):
6636 """Return the number of constant and function declarations in the model `self`.
6637
6638 >>> f = Function('f', IntSort(), IntSort())
6639 >>> x = Int('x')
6640 >>> s = Solver()
6641 >>> s.add(x > 0, f(x) != x)
6642 >>> s.check()
6643 sat
6644 >>> m = s.model()
6645 >>> len(m)
6646 2
6647 """
6648 num_consts = int(Z3_model_get_num_consts(self.ctx.ref(), self.model))
6649 num_funcs = int(Z3_model_get_num_funcs(self.ctx.ref(), self.model))
6650 return num_consts + num_funcs
6651
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 6571 of file z3py.py.

6571 def __repr__(self):
6572 return obj_to_string(self)
6573

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

6824 def decls(self):
6825 """Return a list with all symbols that have an interpretation in the model `self`.
6826 >>> f = Function('f', IntSort(), IntSort())
6827 >>> x = Int('x')
6828 >>> s = Solver()
6829 >>> s.add(x > 0, x < 2, f(x) == 0)
6830 >>> s.check()
6831 sat
6832 >>> m = s.model()
6833 >>> m.decls()
6834 [x, f]
6835 """
6836 r = []
6837 for i in range(Z3_model_get_num_consts(self.ctx.ref(), self.model)):
6838 r.append(FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, i), self.ctx))
6839 for i in range(Z3_model_get_num_funcs(self.ctx.ref(), self.model)):
6840 r.append(FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, i), self.ctx))
6841 return r
6842

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

6578 def eval(self, t, model_completion=False):
6579 """Evaluate the expression `t` in the model `self`.
6580 If `model_completion` is enabled, then a default interpretation is automatically added
6581 for symbols that do not have an interpretation in the model `self`.
6582
6583 >>> x = Int('x')
6584 >>> s = Solver()
6585 >>> s.add(x > 0, x < 2)
6586 >>> s.check()
6587 sat
6588 >>> m = s.model()
6589 >>> m.eval(x + 1)
6590 2
6591 >>> m.eval(x == 1)
6592 True
6593 >>> y = Int('y')
6594 >>> m.eval(y + x)
6595 1 + y
6596 >>> m.eval(y)
6597 y
6598 >>> m.eval(y, model_completion=True)
6599 0
6600 >>> # Now, m contains an interpretation for y
6601 >>> m.eval(y + x)
6602 1
6603 """
6604 r = (Ast * 1)()
6605 if Z3_model_eval(self.ctx.ref(), self.model, t.as_ast(), model_completion, r):
6606 return _to_expr_ref(r[0], self.ctx)
6607 raise Z3Exception("failed to evaluate expression in the model")
6608
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 6609 of file z3py.py.

6609 def evaluate(self, t, model_completion=False):
6610 """Alias for `eval`.
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.evaluate(x + 1)
6619 2
6620 >>> m.evaluate(x == 1)
6621 True
6622 >>> y = Int('y')
6623 >>> m.evaluate(y + x)
6624 1 + y
6625 >>> m.evaluate(y)
6626 y
6627 >>> m.evaluate(y, model_completion=True)
6628 0
6629 >>> # Now, m contains an interpretation for y
6630 >>> m.evaluate(y + x)
6631 1
6632 """
6633 return self.eval(t, model_completion)
6634

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

6652 def get_interp(self, decl):
6653 """Return the interpretation for a given declaration or constant.
6654
6655 >>> f = Function('f', IntSort(), IntSort())
6656 >>> x = Int('x')
6657 >>> s = Solver()
6658 >>> s.add(x > 0, x < 2, f(x) == 0)
6659 >>> s.check()
6660 sat
6661 >>> m = s.model()
6662 >>> m[x]
6663 1
6664 >>> m[f]
6665 [else -> 0]
6666 """
6667 if z3_debug():
6668 _z3_assert(isinstance(decl, FuncDeclRef) or is_const(decl), "Z3 declaration expected")
6669 if is_const(decl):
6670 decl = decl.decl()
6671 try:
6672 if decl.arity() == 0:
6673 _r = Z3_model_get_const_interp(self.ctx.ref(), self.model, decl.ast)
6674 if _r.value is None:
6675 return None
6676 r = _to_expr_ref(_r, self.ctx)
6677 if is_as_array(r):
6678 fi = self.get_interp(get_as_array_func(r))
6679 if fi is None:
6680 return fi
6681 e = fi.else_value()
6682 if e is None:
6683 return fi
6684 if fi.arity() != 1:
6685 return fi
6686 srt = decl.range()
6687 dom = srt.domain()
6688 e = K(dom, e)
6689 i = 0
6690 sz = fi.num_entries()
6691 n = fi.arity()
6692 while i < sz:
6693 fe = fi.entry(i)
6694 e = Store(e, fe.arg_value(0), fe.value())
6695 i += 1
6696 return e
6697 else:
6698 return r
6699 else:
6700 return FuncInterp(Z3_model_get_func_interp(self.ctx.ref(), self.model, decl.ast), self.ctx)
6701 except Z3Exception:
6702 return None
6703
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 6719 of file z3py.py.

6719 def get_sort(self, idx):
6720 """Return the uninterpreted sort at position `idx` < self.num_sorts().
6721
6722 >>> A = DeclareSort('A')
6723 >>> B = DeclareSort('B')
6724 >>> a1, a2 = Consts('a1 a2', A)
6725 >>> b1, b2 = Consts('b1 b2', B)
6726 >>> s = Solver()
6727 >>> s.add(a1 != a2, b1 != b2)
6728 >>> s.check()
6729 sat
6730 >>> m = s.model()
6731 >>> m.num_sorts()
6732 2
6733 >>> m.get_sort(0)
6734 A
6735 >>> m.get_sort(1)
6736 B
6737 """
6738 if idx >= self.num_sorts():
6739 raise IndexError
6740 return _to_sort_ref(Z3_model_get_sort(self.ctx.ref(), self.model, idx), self.ctx)
6741
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 6759 of file z3py.py.

6759 def get_universe(self, s):
6760 """Return the interpretation for the uninterpreted sort `s` in the model `self`.
6761
6762 >>> A = DeclareSort('A')
6763 >>> a, b = Consts('a b', A)
6764 >>> s = Solver()
6765 >>> s.add(a != b)
6766 >>> s.check()
6767 sat
6768 >>> m = s.model()
6769 >>> m.get_universe(A)
6770 [A!val!1, A!val!0]
6771 """
6772 if z3_debug():
6773 _z3_assert(isinstance(s, SortRef), "Z3 sort expected")
6774 try:
6775 return AstVector(Z3_model_get_sort_universe(self.ctx.ref(), self.model, s.ast), self.ctx)
6776 except Z3Exception:
6777 return None
6778
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 6704 of file z3py.py.

6704 def num_sorts(self):
6705 """Return the number of uninterpreted sorts that contain an interpretation in the model `self`.
6706
6707 >>> A = DeclareSort('A')
6708 >>> a, b = Consts('a b', A)
6709 >>> s = Solver()
6710 >>> s.add(a != b)
6711 >>> s.check()
6712 sat
6713 >>> m = s.model()
6714 >>> m.num_sorts()
6715 1
6716 """
6717 return int(Z3_model_get_num_sorts(self.ctx.ref(), self.model))
6718
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 6873 of file z3py.py.

6873 def project(self, vars, fml):
6874 """Perform model-based projection on fml with respect to vars.
6875 Assume that the model satisfies fml. Then compute a projection fml_p, such
6876 that vars do not occur free in fml_p, fml_p is true in the model and
6877 fml_p => exists vars . fml
6878 """
6879 ctx = self.ctx.ref()
6880 _vars = (Ast * len(vars))()
6881 for i in range(len(vars)):
6882 _vars[i] = vars[i].as_ast()
6883 return _to_expr_ref(Z3_qe_model_project(ctx, self.model, len(vars), _vars, fml.ast), self.ctx)
6884

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

6885 def project_with_witness(self, vars, fml):
6886 """Perform model-based projection, but also include realizer terms for the projected variables"""
6887 ctx = self.ctx.ref()
6888 _vars = (Ast * len(vars))()
6889 for i in range(len(vars)):
6890 _vars[i] = vars[i].as_ast()
6891 defs = AstMap()
6892 result = Z3_qe_model_project_with_witness(ctx, self.model, len(vars), _vars, fml.ast, defs.map)
6893 result = _to_expr_ref(result, self.ctx)
6894 return result, defs
6895
6896

◆ sexpr()

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

Definition at line 6574 of file z3py.py.

6574 def sexpr(self):
6575 """Return a textual representation of the s-expression representing the model."""
6576 return Z3_model_to_string(self.ctx.ref(), self.model)
6577
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 6742 of file z3py.py.

6742 def sorts(self):
6743 """Return all uninterpreted sorts that have an interpretation in the model `self`.
6744
6745 >>> A = DeclareSort('A')
6746 >>> B = DeclareSort('B')
6747 >>> a1, a2 = Consts('a1 a2', A)
6748 >>> b1, b2 = Consts('b1 b2', B)
6749 >>> s = Solver()
6750 >>> s.add(a1 != a2, b1 != b2)
6751 >>> s.check()
6752 sat
6753 >>> m = s.model()
6754 >>> m.sorts()
6755 [A, B]
6756 """
6757 return [self.get_sort(i) for i in range(self.num_sorts())]
6758

◆ translate()

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

Definition at line 6865 of file z3py.py.

6865 def translate(self, target):
6866 """Translate `self` to the context `target`. That is, return a copy of `self` in the context `target`.
6867 """
6868 if z3_debug():
6869 _z3_assert(isinstance(target, Context), "argument must be a Z3 context")
6870 model = Z3_model_translate(self.ctx.ref(), self.model, target.ref())
6871 return ModelRef(model, target)
6872
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 6843 of file z3py.py.

6843 def update_value(self, x, value):
6844 """Update the interpretation of a constant"""
6845 if is_expr(x):
6846 x = x.decl()
6847 if is_func_decl(x) and x.arity() != 0 and isinstance(value, FuncInterp):
6848 fi1 = value.f
6849 fi2 = Z3_add_func_interp(x.ctx_ref(), self.model, x.ast, value.else_value().ast);
6850 fi2 = FuncInterp(fi2, x.ctx)
6851 for i in range(value.num_entries()):
6852 e = value.entry(i)
6853 n = Z3_func_entry_get_num_args(x.ctx_ref(), e.entry)
6854 v = AstVector()
6855 for j in range(n):
6856 v.push(e.arg_value(j))
6857 val = Z3_func_entry_get_value(x.ctx_ref(), e.entry)
6858 Z3_func_interp_add_entry(x.ctx_ref(), fi2.f, v.vector, val)
6859 return
6860 if not is_func_decl(x) or x.arity() != 0:
6861 raise Z3Exception("Expecting 0-ary function or constant expression")
6862 value = _py2expr(value)
6863 Z3_add_const_interp(x.ctx_ref(), self.model, x.ast, value.ast)
6864
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 6564 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(), ParamsRef.validate(), FuncEntry.value(), QuantifierRef.var_name(), and QuantifierRef.var_sort().

◆ model

model