fix(library/tactic/smt/ematch.cpp) check if new_states is empty before pushing

This commit is contained in:
Scott Morrison 2017-04-28 21:35:21 +10:00 committed by Leonardo de Moura
parent 9535a14e94
commit 41c648905e

View file

@ -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;
}