mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix sort retrieval for lambdas
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6dcec4ce79
commit
aaba1b9b15
2 changed files with 15 additions and 4 deletions
|
@ -1749,7 +1749,9 @@ class QuantifierRef(BoolRef):
|
|||
return Z3_get_ast_id(self.ctx_ref(), self.as_ast())
|
||||
|
||||
def sort(self):
|
||||
"""Return the Boolean sort."""
|
||||
"""Return the Boolean sort or sort of Lambda."""
|
||||
if self.is_lambda():
|
||||
return _sort(self.ctx, self.as_ast())
|
||||
return BoolSort(self.ctx)
|
||||
|
||||
def is_forall(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue