3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

refine logging for local search, add handling of <= for opb front-end

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-03-02 09:25:05 -08:00
parent b0a47ca897
commit a37dfd3ab9
2 changed files with 7 additions and 2 deletions

View file

@ -254,6 +254,11 @@ class opb {
in.parse_token(";");
break;
}
if (in.parse_token("<=")) {
t = arith.mk_le(t, parse_coeff());
in.parse_token(";");
break;
}
t = arith.mk_add(t, parse_term());
}
opt.add_hard_constraint(t);