Commit db4693b3 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Downcase a couple of misnamed class names.

* src/misc/acccompl.hh, src/misc/acccompl.cc (AccCompl): Rename to
acc_compl.
* src/tgbaalgos/simulation.cc (AccComplAutomaton, Simulation): Rename
to acc_compl_automaton and direct_simulation.  At the same time,
reindent the whole file.
* src/sanity/style.test: Detect capitalized class names.
* src/kripke/kripkeexplicit.hh (KripkePrint): Remove useless
predeclaration.
* src/tgbaalgos/simulation.hh: Typo in comment.
parent dadfbdad
// Copyright (C) 2011 Laboratoire de Recherche et Developpement // -*- coding: utf-8 -*-
// Copyright (C) 2011, 2012 Laboratoire de Recherche et Développement
// de l'Epita (LRDE) // de l'Epita (LRDE)
// //
// This file is part of Spot, a model checking library. // This file is part of Spot, a model checking library.
...@@ -29,10 +30,7 @@ ...@@ -29,10 +30,7 @@
namespace spot namespace spot
{ {
// Define in kripkeprint.hh /// \brief Concrete class for kripke states.
class KripkeVisitor;
/// \brief Concrete class for kripke states.
class state_kripke : public state class state_kripke : public state
{ {
friend class kripke_explicit; friend class kripke_explicit;
......
...@@ -34,7 +34,7 @@ namespace spot ...@@ -34,7 +34,7 @@ namespace spot
// we need to know wich one is go to one when true. So we are looping // we need to know wich one is go to one when true. So we are looping
// through the conditions until bdd_high is true. // through the conditions until bdd_high is true.
// Once found, we keep only it. // Once found, we keep only it.
bdd AccCompl::complement(const bdd acc) bdd acc_compl::complement(const bdd acc)
{ {
bdd_cache_t::const_iterator it = cache_.find(acc); bdd_cache_t::const_iterator it = cache_.find(acc);
if (it != cache_.end()) if (it != cache_.end())
...@@ -70,7 +70,7 @@ namespace spot ...@@ -70,7 +70,7 @@ namespace spot
} }
bdd AccCompl::reverse_complement(const bdd acc) bdd acc_compl::reverse_complement(const bdd acc)
{ {
// We are sure that if we have no acceptance condition // We are sure that if we have no acceptance condition
// the result is all_. // the result is all_.
......
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
namespace spot namespace spot
{ {
/// \brief Help class to convert a bdd of an automaton into /// \brief Helper class to convert acceptance conditions into promises
/// its complement. ///
/// This is used when you need to complement all the acceptance /// A set of acceptance conditions represented by the sum "à la Spot",
/// conditions in an automaton. For example in the simulation. /// is converted into a product of promises.
class AccCompl class acc_compl
{ {
public: public:
AccCompl(bdd all, bdd neg) acc_compl(bdd all, bdd neg)
: all_(all), : all_(all),
neg_(neg) neg_(neg)
{ {
......
...@@ -67,6 +67,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do ...@@ -67,6 +67,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
case $file in case $file in
*.test);; *.test);;
*) *)
grep -E '[^<]class[ \t]+[A-Z]' $tmp &&
diag 'Use lower case class names.'
grep '[ ]if(' $tmp && grep '[ ]if(' $tmp &&
diag 'Missing space after "if"' diag 'Missing space after "if"'
......
This diff is collapsed.
...@@ -35,7 +35,7 @@ namespace spot ...@@ -35,7 +35,7 @@ namespace spot
/// When the language recognized by one state is included in the /// When the language recognized by one state is included in the
/// language recognized by an another one, the first one is merged /// language recognized by an another one, the first one is merged
/// with the second. The algorithm is based on the following /// with the second. The algorithm is based on the following
/// paper, but generalized to handled TGBA directly. /// paper, but generalized to handle TGBA directly.
/// ///
/// \verbatim /// \verbatim
/// @InProceedings{ etessami.00.concur, /// @InProceedings{ etessami.00.concur,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment