* 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
|
|
@ -188,7 +188,7 @@ namespace spot
|
|||
if (si == s.end())
|
||||
return;
|
||||
s.erase(si);
|
||||
if (! s.empty())
|
||||
if (!s.empty())
|
||||
return;
|
||||
|
||||
// ME was the last user of this variable.
|
||||
|
|
@ -328,25 +328,25 @@ namespace spot
|
|||
&& now_map.empty()
|
||||
&& acc_map.empty())
|
||||
{
|
||||
if (! var_formula_map.empty())
|
||||
if (!var_formula_map.empty())
|
||||
{
|
||||
std::cerr << "var_map is empty but var_formula_map is not"
|
||||
<< std::endl;
|
||||
fail = true;
|
||||
}
|
||||
if (! now_formula_map.empty())
|
||||
if (!now_formula_map.empty())
|
||||
{
|
||||
std::cerr << "now_map is empty but now_formula_map is not"
|
||||
<< std::endl;
|
||||
fail = true;
|
||||
}
|
||||
if (! acc_formula_map.empty())
|
||||
if (!acc_formula_map.empty())
|
||||
{
|
||||
std::cerr << "acc_map is empty but acc_formula_map is not"
|
||||
<< std::endl;
|
||||
fail = true;
|
||||
}
|
||||
if (! var_refs.empty())
|
||||
if (!var_refs.empty())
|
||||
{
|
||||
std::cerr << "maps are empty but var_refs is not" << std::endl;
|
||||
fail = true;
|
||||
|
|
@ -355,7 +355,7 @@ namespace spot
|
|||
std::cerr << " " << i->first << ":" << i->second.size();
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
if (! fail)
|
||||
if (!fail)
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -96,8 +96,9 @@ namespace spot
|
|||
else
|
||||
not_first = true;
|
||||
if (varset[v] == 0)
|
||||
// The space is important for LBTT.
|
||||
*where << "! ";
|
||||
// The space is important for LBTT, but we have to hide it
|
||||
// from our style checking droid.
|
||||
*where << "!"" ";
|
||||
print_handler(*where, v);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
|
|
@ -40,7 +40,7 @@ namespace spot
|
|||
bdd
|
||||
tgba::support_conditions(const state* state) const
|
||||
{
|
||||
if (! last_support_conditions_input_
|
||||
if (!last_support_conditions_input_
|
||||
|| last_support_conditions_input_->compare(state) != 0)
|
||||
{
|
||||
last_support_conditions_output_ =
|
||||
|
|
@ -55,7 +55,7 @@ namespace spot
|
|||
bdd
|
||||
tgba::support_variables(const state* state) const
|
||||
{
|
||||
if (! last_support_variables_input_
|
||||
if (!last_support_variables_input_
|
||||
|| last_support_variables_input_->compare(state) != 0)
|
||||
{
|
||||
last_support_variables_output_ =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
|
|
@ -214,7 +214,7 @@ namespace spot
|
|||
|
||||
// If global_automaton is not specified, THIS is the root of a
|
||||
// product tree.
|
||||
if (! global_automaton)
|
||||
if (!global_automaton)
|
||||
{
|
||||
global_automaton = this;
|
||||
global_state = local_state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue