Commit 6ed0830f authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent 2b4cf8e7
// -*- coding: utf-8 -*-
// Copyright (C) 2015 Laboratoire de Recherche et Développement de
// Copyright (C) 2015, 2016 Laboratoire de Recherche et Développement de
// l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -423,6 +423,7 @@ namespace spot
{
for (i = v.begin(); i != v.end(); ++i)
(*i)->destroy();
assert(abs);
return abs->clone();
}
else
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment