mirror of
https://github.com/Z3Prover/z3
synced 2026-05-16 23:25:36 +00:00
avoid crashes in cases like wildcard-matching-regex-67.smt2, need regex constraint solving
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e172aa370d
commit
c18188cba8
1 changed files with 9 additions and 0 deletions
|
|
@ -656,6 +656,13 @@ namespace smt {
|
|||
return FC_DONE;
|
||||
}
|
||||
|
||||
if (!has_eq_or_mem && has_unhandled_preds()) {
|
||||
TRACE(seq, tout << "nielsen root if null\n");
|
||||
// this can happen for regex constraint only benchmarks
|
||||
// qf_s\20250410-matching\wildcard-matching-regex-67.smt2
|
||||
return FC_GIVEUP;
|
||||
}
|
||||
|
||||
populate_nielsen_graph();
|
||||
|
||||
// assert length constraints derived from string equalities
|
||||
|
|
@ -664,6 +671,8 @@ namespace smt {
|
|||
return FC_CONTINUE;
|
||||
}
|
||||
|
||||
SASSERT(m_nielsen.root());
|
||||
|
||||
m_nielsen.assert_node_new_int_constraints(m_nielsen.root());
|
||||
|
||||
++m_num_final_checks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue