* 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
|
|
@ -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.
|
||||
//
|
||||
|
|
@ -59,7 +59,7 @@ namespace spot
|
|||
void
|
||||
visit(constant* c)
|
||||
{
|
||||
if (! negated_)
|
||||
if (!negated_)
|
||||
{
|
||||
result_ = c;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ namespace spot
|
|||
visit(const atomic_prop* ap)
|
||||
{
|
||||
std::string str = ap->name();
|
||||
if (str[0] == 'F' || str[0] == 'G' || str[0] == 'X' )
|
||||
if (str[0] == 'F' || str[0] == 'G' || str[0] == 'X')
|
||||
{
|
||||
os_ << '"' << str << '"';
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ namespace spot
|
|||
{
|
||||
// The parser treats F0, F1, G0, G1, X0, and X1 as atomic
|
||||
// propositions. So make sure we output F(0), G(1), etc.
|
||||
bool need_parent = !! dynamic_cast<const constant*>(uo->child());
|
||||
bool need_parent = !!dynamic_cast<const constant*>(uo->child());
|
||||
switch(uo->op())
|
||||
{
|
||||
case unop::Not:
|
||||
|
|
@ -241,7 +241,7 @@ namespace spot
|
|||
os_ << "!";
|
||||
break;
|
||||
case unop::X:
|
||||
need_parent = !! dynamic_cast<const constant*>(uo->child());
|
||||
need_parent = !!dynamic_cast<const constant*>(uo->child());
|
||||
os_ << "X";
|
||||
break;
|
||||
case unop::F:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue