3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

fix incorrect axiom in theory_str for Contains check

this partially fixes a regression in contains-034.smt2, which now
is at least not a SAT-as-UNSAT
This commit is contained in:
Murphy Berzish 2016-09-05 17:45:10 -04:00
parent 7b34efada7
commit c83e39d3b8

View file

@ -4773,7 +4773,7 @@ void theory_str::check_contain_by_eq_nodes(expr * n1, expr * n2) {
// key1.first = key2.first /\ containPairBoolMap[<eqc(key2.second), eqc(key1.second)>]
// ==> (containPairBoolMap[key1] --> containPairBoolMap[key2])
// ------------
expr_ref implR(ctx.mk_eq_atom(contain_pair_bool_map[key1], contain_pair_bool_map[key2]), m);
expr_ref implR(rewrite_implication(contain_pair_bool_map[key1], contain_pair_bool_map[key2]), m);
assert_implication(mk_and(litems4), implR);
}
}