Use SPOT_ASSERT() instead of assert() in public headers
* spot/mc/ec.hh, spot/mc/intersect.hh, spot/mc/reachability.hh, spot/mc/utils.hh: here.
This commit is contained in:
parent
c515ee92e2
commit
fb4ef40d11
4 changed files with 9 additions and 8 deletions
|
|
@ -124,7 +124,7 @@ namespace spot
|
|||
|
||||
std::string trace()
|
||||
{
|
||||
assert(counterexample_found());
|
||||
SPOT_ASSERT(counterexample_found());
|
||||
std::string res = "Prefix:\n";
|
||||
|
||||
// Compute the prefix of the accepting run
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ namespace spot
|
|||
twacube_ptr twa):
|
||||
sys_(sys), twa_(twa)
|
||||
{
|
||||
assert(is_a_kripkecube(sys));
|
||||
SPOT_ASSERT(is_a_kripkecube(sys));
|
||||
map.reserve(2000000);
|
||||
todo.reserve(100000);
|
||||
}
|
||||
|
|
@ -178,8 +178,9 @@ namespace spot
|
|||
/// is slightly different.
|
||||
void forward_iterators(bool just_pushed)
|
||||
{
|
||||
assert(!todo.empty());
|
||||
assert(!(todo.back().it_prop->done() && todo.back().it_kripke->done()));
|
||||
SPOT_ASSERT(!todo.empty());
|
||||
SPOT_ASSERT(!(todo.back().it_prop->done() &&
|
||||
todo.back().it_kripke->done()));
|
||||
|
||||
// Sometimes kripke state may have no successors.
|
||||
if (todo.back().it_kripke->done())
|
||||
|
|
@ -187,7 +188,7 @@ namespace spot
|
|||
|
||||
// The state has just been push and the 2 iterators intersect.
|
||||
// There is no need to move iterators forward.
|
||||
assert(!(todo.back().it_prop->done()));
|
||||
SPOT_ASSERT(!(todo.back().it_prop->done()));
|
||||
if (just_pushed && twa_->get_cubeset()
|
||||
.intersect(twa_->trans_data(todo.back().it_prop).cube_,
|
||||
todo.back().it_kripke->condition()))
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace spot
|
|||
seq_reach_kripke(kripkecube<State, SuccIterator>& sys):
|
||||
sys_(sys)
|
||||
{
|
||||
assert(is_a_kripkecube(sys));
|
||||
SPOT_ASSERT(is_a_kripkecube(sys));
|
||||
visited.reserve(2000000);
|
||||
todo.reserve(100000);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace spot
|
|||
{
|
||||
unsigned st = res_->new_state();
|
||||
names_->push_back(this->sys_.to_string(s));
|
||||
assert(st == i);
|
||||
SPOT_ASSERT(st == i);
|
||||
}
|
||||
|
||||
void edge(unsigned src, unsigned dst)
|
||||
|
|
@ -167,7 +167,7 @@ namespace spot
|
|||
unsigned st = res_->new_state();
|
||||
names_->push_back(this->sys_.to_string(s.st_kripke) +
|
||||
('*' + std::to_string(s.st_prop)));
|
||||
assert(st+1 == i);
|
||||
SPOT_ASSERT(st+1 == i);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue