3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-23 07:22:33 +00:00

Create dummy sat-node to avoid problems in case the preprocessor solves the problem entirely

This commit is contained in:
CEisenhofer 2026-03-19 16:02:51 +01:00
parent 9f4e823c8b
commit 51f3996464
3 changed files with 32 additions and 11 deletions

View file

@ -371,8 +371,12 @@ namespace smt {
return FC_CONTINUE;
}
// there is nothing to do for the string solver, as there are no string constraints
if (m_state.empty() && m_ho_terms.empty() && !has_unhandled_preds()) {
IF_VERBOSE(1, verbose_stream() << "nseq final_check: empty state+ho, FC_DONE (no solve)\n";);
m_nielsen.reset();
m_nielsen.create_root();
m_nielsen.set_sat_node(m_nielsen.root());
return FC_DONE;
}
@ -384,6 +388,9 @@ namespace smt {
if (m_state.empty() && !has_unhandled_preds()) {
IF_VERBOSE(1, verbose_stream() << "nseq final_check: empty state (after ho), FC_DONE (no solve)\n";);
m_nielsen.reset();
m_nielsen.create_root();
m_nielsen.set_sat_node(m_nielsen.root());
return FC_DONE;
}