3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 02:25:32 +00:00

add API to access symbols associated with quantifiers

This commit is contained in:
Nikolaj Bjorner 2023-11-19 16:30:09 -08:00
parent d272acc3ac
commit 9382b96a32
3 changed files with 58 additions and 0 deletions

View file

@ -2081,6 +2081,16 @@ class QuantifierRef(BoolRef):
"""
return int(Z3_get_quantifier_weight(self.ctx_ref(), self.ast))
def skolem_id(self):
"""Return the skolem id of `self`.
"""
return _symbol2py(self.ctx, Z3_get_quantifier_skolem_id(self.ctx_ref(), self.ast))
def qid(self):
"""Return the quantifier id of `self`.
"""
return _symbol2py(self.ctx, Z3_get_quantifier_id(self.ctx_ref(), self.ast))
def num_patterns(self):
"""Return the number of patterns (i.e., quantifier instantiation hints) in `self`.