fix two minor issues reported by clang-analyzer

These are actually two events that should never happen, but let's just
make sure they do not.

* spot/tl/formula.cc: Add an assert.
* spot/twaalgos/emptiness.cc: Add an exception.
This commit is contained in:
Alexandre Duret-Lutz 2016-08-07 19:45:01 +02:00
parent 2b4cf8e7cb
commit 6ed0830f87
2 changed files with 4 additions and 2 deletions

View file

@ -816,8 +816,9 @@ namespace spot
}
s2->destroy();
}
assert(res);
s->destroy();
if (!the_next)
throw std::runtime_error("twa_run::as_twa() unable to replay run");
s = the_next;