3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

fixes, tests

This commit is contained in:
Nikolaj Bjorner 2021-09-25 08:38:48 -07:00
parent e6c413b249
commit a574eebd05
9 changed files with 110 additions and 48 deletions

View file

@ -675,6 +675,17 @@ namespace polysat {
s.pop();
}
static void test_var_minimize(unsigned bw = 32) {
scoped_solver s(__func__);
auto x = s.var(s.add_var(bw));
auto y = s.var(s.add_var(bw));
auto z = s.var(s.add_var(bw));
s.add_eq(x);
s.add_eq(4 * y + 8 * z + x + 2); // should only depend on assignment to x
s.check();
s.expect_unsat();
}
/**
* x*x <= z
@ -1036,6 +1047,11 @@ namespace polysat {
void tst_polysat() {
polysat::test_p3();
polysat::test_var_minimize();
//return;
polysat::test_subst();
@ -1045,10 +1061,10 @@ void tst_polysat() {
// polysat::test_monot_bounds_simple(8);
// working
polysat::test_fixed_point_arith_mul_div_inverse();
// NOT: polysat::test_fixed_point_arith_mul_div_inverse();
polysat::test_monot_bounds(8);
// polysat::test_monot_bounds(8);
polysat::test_add_conflicts();
polysat::test_wlist();
@ -1070,6 +1086,8 @@ void tst_polysat() {
polysat::test_monot_bounds(2);
polysat::test_cjust();
return;
polysat::test_ineq_axiom1();
polysat::test_ineq_axiom2();
polysat::test_ineq_axiom3();