mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1884ad5b2f
commit
7f88cfe727
|
@ -6566,7 +6566,7 @@ class ModelRef(Z3PPObject):
|
|||
if is_expr(x):
|
||||
x = x.decl()
|
||||
if not is_func_decl(x) or x.arity() != 0:
|
||||
raise Z3Exception(f"Expecting 0-ary function or constant expression {x}")
|
||||
raise Z3Exception("Expecting 0-ary function or constant expression")
|
||||
value = _py2expr(value)
|
||||
Z3_add_const_interp(x.ctx_ref(), self.model, x.ast, value.ast)
|
||||
|
||||
|
|
Loading…
Reference in a new issue