3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 11:37:54 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-05-01 13:10:34 -07:00
parent 82a364ed7b
commit 20277f4a3f
5 changed files with 250 additions and 72 deletions

View file

@ -9,17 +9,20 @@ namespace polysat {
reslimit lim;
fixplex<uint64_ext> fp(lim);
var_t x = 0, y = 1, z = 2, u = 3;
fp.ensure_var(3);
var_t ys[2] = { y, z };
numeral coeffs[2] = { 1, 4 };
fp.add_row(x, 2, ys, coeffs);
fp.set_lo(x, 1);
fp.set_hi(x, 2);
var_t ys[3] = { x, y, z };
numeral coeffs[3] = { 2, 1, 4 };
fp.add_row(x, 3, ys, coeffs);
fp.set_bounds(x, 1, 2);
std::cout << fp << "\n";
fp.make_feasible();
std::cout << fp << "\n";
statistics st;
fp.collect_statistics(st);
std::cout << st << "\n";
}
}
void tst_fixplex() {
polysat::test1();
}

View file

@ -264,4 +264,5 @@ int main(int argc, char ** argv) {
TST(finder);
TST(polysat);
TST_ARGV(polysat_argv);
TST(fixplex);
}