mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
This commit is contained in:
parent
cc39cf037e
commit
dfb7c87448
|
@ -7499,7 +7499,7 @@ class Optimize(Z3PPObject):
|
|||
def asoft(a):
|
||||
v = Z3_optimize_assert_soft(self.ctx.ref(), self.optimize, a.as_ast(), weight, id)
|
||||
return OptimizeObjective(self, v, False)
|
||||
if isinstance(arg, iterable):
|
||||
if isinstance(arg, Iterable):
|
||||
return [asoft(a) for a in arg]
|
||||
return asoft(arg)
|
||||
|
||||
|
|
Loading…
Reference in a new issue