Adjust benchmarks that had not been compiled since 0.8...

* bench/scc-stats/stats.cc, bench/split-product/cutscc.cc: Adjust to
use state->destroy() and to use const formula*.
This commit is contained in:
Alexandre Duret-Lutz 2012-05-02 18:19:57 +02:00
parent db4693b303
commit 42963b99c8
2 changed files with 13 additions and 19 deletions

View file

@ -1,5 +1,6 @@
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2010, 2012 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
@ -67,16 +68,14 @@ namespace spot
}
else
// No, free dst.
delete dst;
dst->destroy();
}
delete sit;
}
hash_type::iterator it2;
// Free visited states.
for (it2 = seen.begin(); it2 != seen.end(); it2++)
{
delete *it2;
}
(*it2)->destroy();
return count;
}
}
@ -165,8 +164,7 @@ int main(int argc, char* argv[])
<< " times to improve precision." << std::endl << std::endl;
spot::ltl::ltl_file formulae(argv[1]);
spot::ltl::formula* f;
while((f = formulae.next()))
while (const spot::ltl::formula* f = formulae.next())
{
spot::tgba* a = ltl_to_tgba_fm(f, dict, /* exprop */ true);
++i;