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

disable regex length constraint generation as it currently makes unsound axioms

This commit is contained in:
Murphy Berzish 2018-01-17 13:32:44 -05:00
parent 26ab91a448
commit c0ed683882

View file

@ -9609,6 +9609,8 @@ namespace smt {
continue;
}
// DISABLED due to bug -- star-over-union (and possibly others) results in unsound constraints
/*
if (!regex_terms_with_length_constraints.contains(str_in_re)) {
if (current_assignment == l_true && check_regex_length_linearity(re)) {
TRACE("str", tout << "regex length constraints expected to be linear -- generating and asserting them" << std::endl;);
@ -9654,6 +9656,7 @@ namespace smt {
regex_axiom_add = true;
}
} // re not in regex_terms_with_length_constraints
*/
rational exact_length_value;
if (get_len_value(str, exact_length_value)) {