mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Fixed model translate method in Python API (#4753)
This commit is contained in:
parent
9c08b60b5a
commit
34e0e26e3d
1 changed files with 1 additions and 1 deletions
|
@ -6266,7 +6266,7 @@ class ModelRef(Z3PPObject):
|
|||
if z3_debug():
|
||||
_z3_assert(isinstance(target, Context), "argument must be a Z3 context")
|
||||
model = Z3_model_translate(self.ctx.ref(), self.model, target.ref())
|
||||
return Model(model, target)
|
||||
return ModelRef(model, target)
|
||||
|
||||
def __copy__(self):
|
||||
return self.translate(self.ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue