mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
working on bcd2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ae1656a92c
commit
e3b346df6f
3 changed files with 77 additions and 38 deletions
|
@ -6333,7 +6333,7 @@ class Optimize(Z3PPObject):
|
|||
if not isinstance(weight, str):
|
||||
raise Z3Exception("weight should be a string or an integer")
|
||||
if id == None:
|
||||
id = 0
|
||||
id = ""
|
||||
id = to_symbol(id, self.ctx)
|
||||
v = Z3_optimize_assert_soft(self.ctx.ref(), self.optimize, arg.as_ast(), weight, id)
|
||||
return OptimizeObjective(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue