mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 12:51:22 +00:00
allow coercion from Boolean to Int/Real, fixes #78
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
99861ffc32
commit
45eda4bee7
1 changed files with 1 additions and 0 deletions
|
@ -1237,6 +1237,7 @@ class BoolSortRef(SortRef):
|
||||||
def is_bool(self):
|
def is_bool(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class BoolRef(ExprRef):
|
class BoolRef(ExprRef):
|
||||||
"""All Boolean expressions are instances of this class."""
|
"""All Boolean expressions are instances of this class."""
|
||||||
def sort(self):
|
def sort(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue