mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
z3str3: don't compute intersection difficulty against a null automaton (#4846)
This commit is contained in:
parent
6d427d9dae
commit
b0fd25f041
|
@ -611,7 +611,10 @@ namespace smt {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (regex_get_counter(regex_length_attempt_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_LengthAttemptThreshold) {
|
if (regex_get_counter(regex_length_attempt_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_LengthAttemptThreshold) {
|
||||||
unsigned intersectionDifficulty = estimate_automata_intersection_difficulty(aut_inter, aut.get_automaton());
|
unsigned intersectionDifficulty = 0;
|
||||||
|
if (aut_inter != nullptr) {
|
||||||
|
intersectionDifficulty = estimate_automata_intersection_difficulty(aut_inter, aut.get_automaton());
|
||||||
|
}
|
||||||
TRACE("str", tout << "intersection difficulty is " << intersectionDifficulty << std::endl;);
|
TRACE("str", tout << "intersection difficulty is " << intersectionDifficulty << std::endl;);
|
||||||
if (intersectionDifficulty <= m_params.m_RegexAutomata_IntersectionDifficultyThreshold
|
if (intersectionDifficulty <= m_params.m_RegexAutomata_IntersectionDifficultyThreshold
|
||||||
|| regex_get_counter(regex_intersection_fail_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_FailedIntersectionThreshold) {
|
|| regex_get_counter(regex_intersection_fail_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_FailedIntersectionThreshold) {
|
||||||
|
|
Loading…
Reference in a new issue