3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 21:08:46 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-22 20:40:34 -07:00
parent 2c078b01da
commit 19c72ab519

View file

@ -24,7 +24,8 @@ namespace smt2 {
void scanner::next() {
if (m_cache_input)
m_cache.push_back(m_curr);
SASSERT(!m_at_eof);
if (m_at_eof)
throw scanner_exception("unexpected end of file");
if (m_interactive) {
m_curr = m_stream.get();
if (m_stream.eof())