3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-02 09:20:22 +00:00

z3str3: detect and give up when symbolic automaton construction fails (#4384)

typically this will happen due to non-constant terms in a RegLan expression
This commit is contained in:
Murphy Berzish 2020-05-28 11:57:33 -05:00 committed by GitHub
parent ccebd4db59
commit 71ea7287bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 7 deletions

View file

@ -8594,7 +8594,10 @@ namespace smt {
}
}
solve_regex_automata();
if (!solve_regex_automata()) {
TRACE("str", tout << "regex engine requested to give up!" << std::endl;);
return FC_GIVEUP;
}
bool needToAssignFreeVars = false;
expr_ref_vector free_variables(m);