mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
expose name inclusion as optional
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
dbe2c9b305
commit
b992f59aad
5 changed files with 10 additions and 10 deletions
|
@ -5413,9 +5413,9 @@ class Goal(Z3PPObject):
|
|||
"""Return a textual representation of the s-expression representing the goal."""
|
||||
return Z3_goal_to_string(self.ctx.ref(), self.goal)
|
||||
|
||||
def dimacs(self):
|
||||
def dimacs(self, include_names = True):
|
||||
"""Return a textual representation of the goal in DIMACS format."""
|
||||
return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal)
|
||||
return Z3_goal_to_dimacs_string(self.ctx.ref(), self.goal, include_names)
|
||||
|
||||
def translate(self, target):
|
||||
"""Copy goal `self` to context `target`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue