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)
//
// This file is part of Spot, a model checking library.
......@@ -29,10 +30,7 @@
namespace spot
{
// Define in kripkeprint.hh
class KripkeVisitor;
/// \brief Concrete class for kripke states.
/// \brief Concrete class for kripke states.
class state_kripke : public state
{
friend class kripke_explicit;
......
......@@ -34,7 +34,7 @@ namespace spot
// we need to know wich one is go to one when true. So we are looping
// through the conditions until bdd_high is true.
// 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);
if (it != cache_.end())
......@@ -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
// the result is all_.
......
......@@ -30,14 +30,14 @@
namespace spot
{
/// \brief Help class to convert a bdd of an automaton into
/// its complement.
/// This is used when you need to complement all the acceptance
/// conditions in an automaton. For example in the simulation.
class AccCompl
/// \brief Helper class to convert acceptance conditions into promises
///
/// A set of acceptance conditions represented by the sum "à la Spot",
/// is converted into a product of promises.
class acc_compl
{
public:
AccCompl(bdd all, bdd neg)
acc_compl(bdd all, bdd neg)
: all_(all),
neg_(neg)
{
......
......@@ -67,6 +67,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
case $file in
*.test);;
*)
grep -E '[^<]class[ \t]+[A-Z]' $tmp &&
diag 'Use lower case class names.'
grep '[ ]if(' $tmp &&
diag 'Missing space after "if"'
......
This diff is collapsed.
......@@ -35,7 +35,7 @@ namespace spot
/// When the language recognized by one state is included in the
/// language recognized by an another one, the first one is merged
/// 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
/// @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