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

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  m,
  ctx 
)

Definition at line 6992 of file z3py.py.

6992 def __init__(self, m, ctx):
6993 assert ctx is not None
6994 self.model = m
6995 self.ctx = ctx
6996 Z3_model_inc_ref(self.ctx.ref(), self.model)
6997
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 6998 of file z3py.py.

6998 def __del__(self):
6999 if self.ctx.ref() is not None and Z3_model_dec_ref is not None:
7000 Z3_model_dec_ref(self.ctx.ref(), self.model)
7001
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 7330 of file z3py.py.

7330 def __copy__(self):
7331 return self.translate(self.ctx)
7332

◆ __deepcopy__()

__deepcopy__ (   self,
  memo = {} 
)

Definition at line 7333 of file z3py.py.

7333 def __deepcopy__(self, memo={}):
7334 return self.translate(self.ctx)
7335
7336

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

7210 def __getitem__(self, idx):
7211 """If `idx` is an integer, then the declaration at position `idx` in the model `self` is returned.
7212 If `idx` is a declaration, then the actual interpretation is returned.
7213
7214 The elements can be retrieved using position or the actual declaration.
7215
7216 >>> f = Function('f', IntSort(), IntSort())
7217 >>> x = Int('x')
7218 >>> s = Solver()
7219 >>> s.add(x > 0, x < 2, f(x) == 0)
7220 >>> s.check()
7221 sat
7222 >>> m = s.model()
7223 >>> len(m)
7224 2
7225 >>> m[0]
7226 x
7227 >>> m[1]
7228 f
7229 >>> m[x]
7230 1
7231 >>> m[f]
7232 [else -> 0]
7233 >>> for d in m: print("%s -> %s" % (d, m[d]))
7234 x -> 1
7235 f -> [else -> 0]
7236 """
7237 if _is_int(idx):
7238 if idx < 0:
7239 idx += len(self)
7240 if idx < 0 or idx >= len(self):
7241 raise IndexError
7242 num_consts = Z3_model_get_num_consts(self.ctx.ref(), self.model)
7243 if (idx < num_consts):
7244 return FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, idx), self.ctx)
7245 else:
7246 return FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, idx - num_consts), self.ctx)
7247 if isinstance(idx, FuncDeclRef):
7248 return self.get_interp(idx)
7249 if is_const(idx):
7250 return self.get_interp(idx.decl())
7251 if isinstance(idx, SortRef):
7252 return self.get_universe(idx)
7253 if z3_debug():
7254 _z3_assert(False, "Integer, Z3 declaration, or Z3 constant expected. Use model.eval instead for complicated expressions")
7255 return None
7256
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 7066 of file z3py.py.

7066 def __len__(self):
7067 """Return the number of constant and function declarations in the model `self`.
7068
7069 >>> f = Function('f', IntSort(), IntSort())
7070 >>> x = Int('x')
7071 >>> s = Solver()
7072 >>> s.add(x > 0, f(x) != x)
7073 >>> s.check()
7074 sat
7075 >>> m = s.model()
7076 >>> len(m)
7077 2
7078 """
7079 num_consts = int(Z3_model_get_num_consts(self.ctx.ref(), self.model))
7080 num_funcs = int(Z3_model_get_num_funcs(self.ctx.ref(), self.model))
7081 return num_consts + num_funcs
7082
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 7002 of file z3py.py.

7002 def __repr__(self):
7003 return obj_to_string(self)
7004

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

7257 def decls(self):
7258 """Return a list with all symbols that have an interpretation in the model `self`.
7259 >>> f = Function('f', IntSort(), IntSort())
7260 >>> x = Int('x')
7261 >>> s = Solver()
7262 >>> s.add(x > 0, x < 2, f(x) == 0)
7263 >>> s.check()
7264 sat
7265 >>> m = s.model()
7266 >>> m.decls()
7267 [x, f]
7268 """
7269 r = []
7270 for i in range(Z3_model_get_num_consts(self.ctx.ref(), self.model)):
7271 r.append(FuncDeclRef(Z3_model_get_const_decl(self.ctx.ref(), self.model, i), self.ctx))
7272 for i in range(Z3_model_get_num_funcs(self.ctx.ref(), self.model)):
7273 r.append(FuncDeclRef(Z3_model_get_func_decl(self.ctx.ref(), self.model, i), self.ctx))
7274 return r
7275

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

7009 def eval(self, t, model_completion=False):
7010 """Evaluate the expression `t` in the model `self`.
7011 If `model_completion` is enabled, then a default interpretation is automatically added
7012 for symbols that do not have an interpretation in the model `self`.
7013
7014 >>> x = Int('x')
7015 >>> s = Solver()
7016 >>> s.add(x > 0, x < 2)
7017 >>> s.check()
7018 sat
7019 >>> m = s.model()
7020 >>> m.eval(x + 1)
7021 2
7022 >>> m.eval(x == 1)
7023 True
7024 >>> y = Int('y')
7025 >>> m.eval(y + x)
7026 1 + y
7027 >>> m.eval(y)
7028 y
7029 >>> m.eval(y, model_completion=True)
7030 0
7031 >>> # Now, m contains an interpretation for y
7032 >>> m.eval(y + x)
7033 1
7034 """
7035 r = (Ast * 1)()
7036 if Z3_model_eval(self.ctx.ref(), self.model, t.as_ast(), model_completion, r):
7037 return _to_expr_ref(r[0], self.ctx)
7038 raise Z3Exception("failed to evaluate expression in the model")
7039
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 7040 of file z3py.py.

7040 def evaluate(self, t, model_completion=False):
7041 """Alias for `eval`.
7042
7043 >>> x = Int('x')
7044 >>> s = Solver()
7045 >>> s.add(x > 0, x < 2)
7046 >>> s.check()
7047 sat
7048 >>> m = s.model()
7049 >>> m.evaluate(x + 1)
7050 2
7051 >>> m.evaluate(x == 1)
7052 True
7053 >>> y = Int('y')
7054 >>> m.evaluate(y + x)
7055 1 + y
7056 >>> m.evaluate(y)
7057 y
7058 >>> m.evaluate(y, model_completion=True)
7059 0
7060 >>> # Now, m contains an interpretation for y
7061 >>> m.evaluate(y + x)
7062 1
7063 """
7064 return self.eval(t, model_completion)
7065

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

7083 def get_interp(self, decl):
7084 """Return the interpretation for a given declaration or constant.
7085
7086 >>> f = Function('f', IntSort(), IntSort())
7087 >>> x = Int('x')
7088 >>> s = Solver()
7089 >>> s.add(x > 0, x < 2, f(x) == 0)
7090 >>> s.check()
7091 sat
7092 >>> m = s.model()
7093 >>> m[x]
7094 1
7095 >>> m[f]
7096 [else -> 0]
7097 """
7098 if z3_debug():
7099 _z3_assert(isinstance(decl, FuncDeclRef) or is_const(decl), "Z3 declaration expected")
7100 if is_const(decl):
7101 decl = decl.decl()
7102 try:
7103 if decl.arity() == 0:
7104 _r = Z3_model_get_const_interp(self.ctx.ref(), self.model, decl.ast)
7105 if _r.value is None:
7106 return None
7107 r = _to_expr_ref(_r, self.ctx)
7108 if is_as_array(r):
7109 fi = self.get_interp(get_as_array_func(r))
7110 if fi is None:
7111 return fi
7112 e = fi.else_value()
7113 if e is None:
7114 return fi
7115 if fi.arity() != 1:
7116 return fi
7117 srt = decl.range()
7118 dom = srt.domain()
7119 e = K(dom, e)
7120 i = 0
7121 sz = fi.num_entries()
7122 n = fi.arity()
7123 while i < sz:
7124 fe = fi.entry(i)
7125 e = Store(e, fe.arg_value(0), fe.value())
7126 i += 1
7127 return e
7128 else:
7129 return r
7130 else:
7131 return FuncInterp(Z3_model_get_func_interp(self.ctx.ref(), self.model, decl.ast), self.ctx)
7132 except Z3Exception:
7133 return None
7134
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 7150 of file z3py.py.

7150 def get_sort(self, idx):
7151 """Return the uninterpreted sort at position `idx` < self.num_sorts().
7152
7153 >>> A = DeclareSort('A')
7154 >>> B = DeclareSort('B')
7155 >>> a1, a2 = Consts('a1 a2', A)
7156 >>> b1, b2 = Consts('b1 b2', B)
7157 >>> s = Solver()
7158 >>> s.add(a1 != a2, b1 != b2)
7159 >>> s.check()
7160 sat
7161 >>> m = s.model()
7162 >>> m.num_sorts()
7163 2
7164 >>> m.get_sort(0)
7165 A
7166 >>> m.get_sort(1)
7167 B
7168 """
7169 if idx >= self.num_sorts():
7170 raise IndexError
7171 return _to_sort_ref(Z3_model_get_sort(self.ctx.ref(), self.model, idx), self.ctx)
7172
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!0, A!val!1]

Definition at line 7190 of file z3py.py.

7190 def get_universe(self, s):
7191 """Return the interpretation for the uninterpreted sort `s` in the model `self`.
7192
7193 >>> A = DeclareSort('A')
7194 >>> a, b = Consts('a b', A)
7195 >>> s = Solver()
7196 >>> s.add(a != b)
7197 >>> s.check()
7198 sat
7199 >>> m = s.model()
7200 >>> m.get_universe(A)
7201 [A!val!0, A!val!1]
7202 """
7203 if z3_debug():
7204 _z3_assert(isinstance(s, SortRef), "Z3 sort expected")
7205 try:
7206 return AstVector(Z3_model_get_sort_universe(self.ctx.ref(), self.model, s.ast), self.ctx)
7207 except Z3Exception:
7208 return None
7209
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 7135 of file z3py.py.

7135 def num_sorts(self):
7136 """Return the number of uninterpreted sorts that contain an interpretation in the model `self`.
7137
7138 >>> A = DeclareSort('A')
7139 >>> a, b = Consts('a b', A)
7140 >>> s = Solver()
7141 >>> s.add(a != b)
7142 >>> s.check()
7143 sat
7144 >>> m = s.model()
7145 >>> m.num_sorts()
7146 1
7147 """
7148 return int(Z3_model_get_num_sorts(self.ctx.ref(), self.model))
7149
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 7306 of file z3py.py.

7306 def project(self, vars, fml):
7307 """Perform model-based projection on fml with respect to vars.
7308 Assume that the model satisfies fml. Then compute a projection fml_p, such
7309 that vars do not occur free in fml_p, fml_p is true in the model and
7310 fml_p => exists vars . fml
7311 """
7312 ctx = self.ctx.ref()
7313 _vars = (Ast * len(vars))()
7314 for i in range(len(vars)):
7315 _vars[i] = vars[i].as_ast()
7316 return _to_expr_ref(Z3_qe_model_project(ctx, self.model, len(vars), _vars, fml.ast), self.ctx)
7317

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

7318 def project_with_witness(self, vars, fml):
7319 """Perform model-based projection, but also include realizer terms for the projected variables"""
7320 ctx = self.ctx.ref()
7321 _vars = (Ast * len(vars))()
7322 for i in range(len(vars)):
7323 _vars[i] = vars[i].as_ast()
7324 defs = AstMap()
7325 result = Z3_qe_model_project_with_witness(ctx, self.model, len(vars), _vars, fml.ast, defs.map)
7326 result = _to_expr_ref(result, self.ctx)
7327 return result, defs
7328
7329

◆ sexpr()

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

Definition at line 7005 of file z3py.py.

7005 def sexpr(self):
7006 """Return a textual representation of the s-expression representing the model."""
7007 return Z3_model_to_string(self.ctx.ref(), self.model)
7008
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 7173 of file z3py.py.

7173 def sorts(self):
7174 """Return all uninterpreted sorts that have an interpretation in the model `self`.
7175
7176 >>> A = DeclareSort('A')
7177 >>> B = DeclareSort('B')
7178 >>> a1, a2 = Consts('a1 a2', A)
7179 >>> b1, b2 = Consts('b1 b2', B)
7180 >>> s = Solver()
7181 >>> s.add(a1 != a2, b1 != b2)
7182 >>> s.check()
7183 sat
7184 >>> m = s.model()
7185 >>> m.sorts()
7186 [A, B]
7187 """
7188 return [self.get_sort(i) for i in range(self.num_sorts())]
7189

◆ translate()

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

Definition at line 7298 of file z3py.py.

7298 def translate(self, target):
7299 """Translate `self` to the context `target`. That is, return a copy of `self` in the context `target`.
7300 """
7301 if z3_debug():
7302 _z3_assert(isinstance(target, Context), "argument must be a Z3 context")
7303 model = Z3_model_translate(self.ctx.ref(), self.model, target.ref())
7304 return ModelRef(model, target)
7305
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 7276 of file z3py.py.

7276 def update_value(self, x, value):
7277 """Update the interpretation of a constant"""
7278 if is_expr(x):
7279 x = x.decl()
7280 if is_func_decl(x) and x.arity() != 0 and isinstance(value, FuncInterp):
7281 fi1 = value.f
7282 fi2 = Z3_add_func_interp(x.ctx_ref(), self.model, x.ast, value.else_value().ast);
7283 fi2 = FuncInterp(fi2, x.ctx)
7284 for i in range(value.num_entries()):
7285 e = value.entry(i)
7286 n = Z3_func_entry_get_num_args(x.ctx_ref(), e.entry)
7287 v = AstVector()
7288 for j in range(n):
7289 v.push(e.arg_value(j))
7290 val = Z3_func_entry_get_value(x.ctx_ref(), e.entry)
7291 Z3_func_interp_add_entry(x.ctx_ref(), fi2.f, v.vector, val)
7292 return
7293 if not is_func_decl(x) or x.arity() != 0:
7294 raise Z3Exception("Expecting 0-ary function or constant expression")
7295 value = _py2expr(value)
7296 Z3_add_const_interp(x.ctx_ref(), self.model, x.ast, value.ast)
7297
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 6995 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(), FiniteSetSortRef.cast(), 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