3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-12-27 20:19:26 -08:00
parent abef260d67
commit ec74a87423
2 changed files with 2 additions and 607 deletions

View file

@ -1560,9 +1560,9 @@ class BoolRef(ExprRef):
"""Create the Z3 expression `self * other`.
"""
if isinstance(other, int) and other == 1:
return self
return If(self, 1, 0)
if isinstance(other, int) and other == 0:
return
return IntVal(0, self.ctx)
if isinstance(other, BoolRef):
other = If(other, 1, 0)
return If(self, other, 0)