Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
define the is_bool on ArithSortRef
  • Loading branch information
NikolajBjorner committed Apr 13, 2022
1 parent 3f5eb7f commit ddbe17d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,9 @@ def is_int(self):
"""
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()
Expand Down

0 comments on commit ddbe17d

Please sign in to comment.