3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

Fixed model translate method in Python API ()

This commit is contained in:
Andy Wright 2020-10-25 18:42:17 -04:00 committed by GitHub
parent 9c08b60b5a
commit 34e0e26e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)