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:
parent
2b4cf8e7cb
commit
6ed0830f87
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue