mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
Fixed model translate method in Python API (#4753)
This commit is contained in:
parent
9c08b60b5a
commit
34e0e26e3d
|
@ -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…
Reference in a new issue