mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
add solver_from_string to APIs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
70b344513a
commit
46a96127be
5 changed files with 69 additions and 25 deletions
|
@ -6335,7 +6335,7 @@ class Solver(Z3PPObject):
|
|||
|
||||
def from_string(self, s):
|
||||
"""Parse assertions from a string"""
|
||||
self.add([f for f in parse_smt2_string(s, ctx=self.ctx)])
|
||||
Z3_solver_from_string(self.ctx.ref(), self.solver, filename)
|
||||
|
||||
def assertions(self):
|
||||
"""Return an AST vector containing all added constraints.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue