3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 03:07:07 +00:00
define the is_bool on ArithSortRef
This commit is contained in:
Nikolaj Bjorner 2022-04-13 16:08:54 +02:00
parent 3f5eb7fcf2
commit ddbe17d581

View file

@ -2279,6 +2279,9 @@ class ArithSortRef(SortRef):
"""
return self.kind() == Z3_INT_SORT
def is_bool(self):
return False
def subsort(self, other):
"""Return `True` if `self` is a subsort of `other`."""
return self.is_int() and is_arith_sort(other) and other.is_real()