fix(library/tactic/smt/ematch.cpp) check if new_states is empty before pushing
This commit is contained in:
parent
9535a14e94
commit
41c648905e
1 changed files with 4 additions and 0 deletions
|
|
@ -697,6 +697,10 @@ class ematch_fn {
|
|||
new_states.emplace_back(new_state, std::max(m_gen, gen));
|
||||
}
|
||||
}
|
||||
if (new_states.empty()) {
|
||||
lean_trace(name({"debug", "smt", "ematch"}), tout() << "(no new states)\n";);
|
||||
return false;
|
||||
}
|
||||
push_states(new_states);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue