* src/sanity/style.test: New file.
* src/sanity/Makefile.am (check-local): Run it. * src/ltlvisit/nenoform.cc, src/ltlvisit/tostring.cc, src/tgba/bdddict.cc, src/tgba/bddprint.cc, src/tgba/tgba.cc, src/tgba/tgbaproduct.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/magic.cc, src/tgbaalgos/powerset.cc, src/tgbaalgos/reachiter.cc, src/tgbaalgos/gtec/ce.cc, src/tgbaalgos/gtec/gtec.cc, src/tgbatest/ltl2tgba.cc: Fix style issues reported by style.test.
This commit is contained in:
parent
69169970a2
commit
c4a5b325a2
16 changed files with 135 additions and 36 deletions
|
|
@ -271,13 +271,13 @@ main(int argc, char** argv)
|
|||
if (strcmp(argv[formula_index], "-"))
|
||||
{
|
||||
std::ifstream fin(argv[formula_index]);
|
||||
if (! fin)
|
||||
if (!fin)
|
||||
{
|
||||
std::cerr << "Cannot open " << argv[formula_index] << std::endl;
|
||||
exit(2);
|
||||
}
|
||||
|
||||
if (! std::getline(fin, input, '\0'))
|
||||
if (!std::getline(fin, input, '\0'))
|
||||
{
|
||||
std::cerr << "Cannot read " << argv[formula_index] << std::endl;
|
||||
exit(2);
|
||||
|
|
@ -320,11 +320,11 @@ main(int argc, char** argv)
|
|||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
spot::ltl::formula* ftmp = f;
|
||||
if (reduc)
|
||||
f = spot::ltl::reduce(f);
|
||||
|
||||
|
||||
if (fm_opt)
|
||||
to_free = a = spot::ltl_to_tgba_fm(f, dict, fm_exprop_opt,
|
||||
fm_symb_merge_opt,
|
||||
|
|
@ -332,7 +332,7 @@ main(int argc, char** argv)
|
|||
fair_loop_approx);
|
||||
else
|
||||
to_free = a = concrete = spot::ltl_to_tgba_lacim(f, dict);
|
||||
|
||||
|
||||
if (reduc)
|
||||
spot::ltl::destroy(ftmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue