mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
expose assertions that are pushed to the context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
93dfafb6d4
commit
a935c64e15
5 changed files with 50 additions and 1 deletions
|
@ -6145,7 +6145,11 @@ class Fixedpoint(Z3PPObject):
|
|||
def get_rules(self):
|
||||
"""retrieve rules that have been added to fixedpoint context"""
|
||||
return AstVector(Z3_fixedpoint_get_rules(self.ctx.ref(), self.fixedpoint), self.ctx)
|
||||
|
||||
|
||||
def get_assertions(self):
|
||||
"""retrieve assertions that have been added to fixedpoint context"""
|
||||
return AstVector(Z3_fixedpoint_get_assertions(self.ctx.ref(), self.fixedpoint), self.ctx)
|
||||
|
||||
def __repr__(self):
|
||||
"""Return a formatted string with all added rules and constraints."""
|
||||
return self.sexpr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue