3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-06 06:16:02 +00:00

passing with open ai codex on some non-deterministic param eval

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-10-29 06:25:03 -07:00
parent 2b99949ac4
commit ba83ec929a
29 changed files with 665 additions and 371 deletions

View file

@ -1066,8 +1066,9 @@ namespace opt {
expr_ref_vector soft(m);
for (unsigned k = 1; k <= min_cardinality; ++k) {
auto p_k = m.mk_fresh_const("p", m.mk_bool_sort());
// TODO: non-deterministic parameter evaluation
soft.push_back(m.mk_ite(p_k, a.mk_int(1), a.mk_int(0)));
expr* one = a.mk_int(1);
expr* zero = a.mk_int(0);
soft.push_back(m.mk_ite(p_k, one, zero));
for (auto c : cardinalities)
// p_k => c >= k
if (is_max)