mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
add direct FromFile method to solvers so that model transformations are loaded along with assertions.
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
fd49a0c89c
commit
7c743b3d16
6 changed files with 45 additions and 5 deletions
|
@ -6300,7 +6300,7 @@ class Solver(Z3PPObject):
|
|||
|
||||
def from_file(self, filename):
|
||||
"""Parse assertions from a file"""
|
||||
self.add([f for f in parse_smt2_file(filename, ctx=self.ctx)])
|
||||
Z3_solver_from_file(self.ctx.ref(), self.solver)
|
||||
|
||||
def from_string(self, s):
|
||||
"""Parse assertions from a string"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue