mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 10:05:32 +00:00
parent
abef260d67
commit
ec74a87423
2 changed files with 2 additions and 607 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue