3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00

address the NB's comments

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-03-19 13:54:02 -07:00
parent d028dd65e4
commit 9c62b431e4
16 changed files with 92 additions and 126 deletions

View file

@ -2761,10 +2761,10 @@ void test_bound_propagation_one_small_sample1() {
vector<std::pair<mpq, var_index>> coeffs;
coeffs.push_back(std::pair<mpq, var_index>(mpq(1), a));
coeffs.push_back(std::pair<mpq, var_index>(mpq(-1), c));
ls.add_term(coeffs);
ls.add_term(coeffs, -1);
coeffs.pop_back();
coeffs.push_back(std::pair<mpq, var_index>(mpq(-1), b));
ls.add_term(coeffs);
ls.add_term(coeffs, -1);
coeffs.clear();
coeffs.push_back(std::pair<mpq, var_index>(mpq(1), a));
coeffs.push_back(std::pair<mpq, var_index>(mpq(-1), b));
@ -2825,8 +2825,7 @@ void test_bound_propagation_one_row() {
vector<std::pair<mpq, var_index>> c;
c.push_back(std::pair<mpq, var_index>(mpq(1), x0));
c.push_back(std::pair<mpq, var_index>(mpq(-1), x1));
explanation e;
ls.add_constraint(c, EQ, one_of_type<mpq>(), e);
ls.add_constraint(c, EQ, one_of_type<mpq>());
vector<implied_bound> ev;
ls.add_var_bound(x0, LE, mpq(1));
ls.solve();
@ -2840,8 +2839,7 @@ void test_bound_propagation_one_row_with_bounded_vars() {
vector<std::pair<mpq, var_index>> c;
c.push_back(std::pair<mpq, var_index>(mpq(1), x0));
c.push_back(std::pair<mpq, var_index>(mpq(-1), x1));
explanation e;
ls.add_constraint(c, EQ, one_of_type<mpq>(), e);
ls.add_constraint(c, EQ, one_of_type<mpq>());
vector<implied_bound> ev;
ls.add_var_bound(x0, GE, mpq(-3));
ls.add_var_bound(x0, LE, mpq(3));
@ -2857,8 +2855,7 @@ void test_bound_propagation_one_row_mixed() {
vector<std::pair<mpq, var_index>> c;
c.push_back(std::pair<mpq, var_index>(mpq(1), x0));
c.push_back(std::pair<mpq, var_index>(mpq(-1), x1));
explanation e;
ls.add_constraint(c, EQ, one_of_type<mpq>(), e);
ls.add_constraint(c, EQ, one_of_type<mpq>());
vector<implied_bound> ev;
ls.add_var_bound(x1, LE, mpq(1));
ls.solve();