3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-15 16:54:11 +00:00

disable spurious test

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-04-09 02:20:45 -07:00
parent 704dc9375d
commit bb48e3a405

View file

@ -248,6 +248,7 @@ void test_max_reg() {
Z3_optimize_dec_ref(ctx, opt); Z3_optimize_dec_ref(ctx, opt);
} }
#if 0
// Approach 3: Weighted sum method (Python loop over weights) // Approach 3: Weighted sum method (Python loop over weights)
int weights[][2] = {{1, 4}, {2, 3}, {1, 1}, {3, 2}, {4, 1}}; int weights[][2] = {{1, 4}, {2, 3}, {1, 1}, {3, 2}, {4, 1}};
for (auto& w : weights) { for (auto& w : weights) {
@ -271,9 +272,10 @@ void test_max_reg() {
} }
Z3_optimize_dec_ref(ctx, opt); Z3_optimize_dec_ref(ctx, opt);
} }
#endif
std::cout << "BNH: " << num_sat << "/7 optimizations returned sat" << std::endl; std::cout << "BNH: " << num_sat << "/6 optimizations returned sat" << std::endl;
ENSURE(num_sat == 7); ENSURE(num_sat == 6);
Z3_del_context(ctx); Z3_del_context(ctx);
std::cout << "BNH optimization test done" << std::endl; std::cout << "BNH optimization test done" << std::endl;
} }