3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

isolate constraints in a constraint_set

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-07 09:24:45 -08:00
parent 024ca86386
commit 800bc757ae
5 changed files with 17 additions and 25 deletions

View file

@ -92,8 +92,11 @@ typedef nla::variable_map_type variable_map_type;
vector<nlsat::assumption, false> core;
// add linear inequalities from lra_solver
for (unsigned i = 0; i < s.constraints().size(); ++i) {
unsigned i = 0;
for (auto const* c : s.constraints()) {
(void)c;
add_constraint(i);
++i;
}
// add polynomial definitions.