3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 12:11:23 +00:00

weird latent bug in wmax: init() succeeds and it returns undef

This commit is contained in:
Nikolaj Bjorner 2023-04-24 21:14:42 -07:00
parent fdd5c923ed
commit d8156aeff3
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ namespace opt {
TRACE("opt", tout << "weighted maxsat\n";);
scoped_ensure_theory wth(*this);
reset();
if (init())
if (!init())
return l_undef;
lbool is_sat = l_true;