3
0
Fork 0
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:
Nikolaj Bjorner 2014-04-18 08:04:18 -07:00
parent ae1656a92c
commit e3b346df6f
3 changed files with 77 additions and 38 deletions

View file

@ -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)