Fix errors reported by clang++-2.9.

* src/evtgbaalgos/tgba2evtgba.cc (process_link): Fix prototype
to match tgba_reachable_iterator::process_link.
* src/ltlvisit/tunabbrev.hh: Add using super::visit, so that the
other visit() method are in scope when we overload one.
* src/tgba/tgbareduc.hh, src/tgba/tgbareduc.cc (start, end,
process_link): Remove these empty methods.  The default
implementations are empty too, and process_link had the
wrong prototype.
* src/tgbaalgos/reductgba_sim.hh, src/tgbaalgos/reductgba_sim.cc
(start, end, process_link): Likewise.
This commit is contained in:
Alexandre Duret-Lutz 2011-08-28 10:35:36 +02:00
parent 92ef9d6e07
commit 101b18b24b
7 changed files with 28 additions and 46 deletions

View file

@ -1,3 +1,18 @@
2011-08-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix errors reported by clang++-2.9.
* src/evtgbaalgos/tgba2evtgba.cc (process_link): Fix prototype
to match tgba_reachable_iterator::process_link.
* src/ltlvisit/tunabbrev.hh: Add using super::visit, so that the
other visit() method are in scope when we overload one.
* src/tgba/tgbareduc.hh, src/tgba/tgbareduc.cc (start, end,
process_link): Remove these empty methods. The default
implementations are empty too, and process_link had the
wrong prototype.
* src/tgbaalgos/reductgba_sim.hh, src/tgbaalgos/reductgba_sim.cc
(start, end, process_link): Likewise.
2011-08-27 Alexandre Duret-Lutz <adl@lrde.epita.fr> 2011-08-27 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Improve SCC simplification by removing implied acceptance conditions. Improve SCC simplification by removing implied acceptance conditions.

View file

@ -64,7 +64,9 @@ namespace spot
} }
virtual void virtual void
process_link(int in, int out, const tgba_succ_iterator* si) process_link(const state*, int in,
const state*, int out,
const tgba_succ_iterator* si)
{ {
// We might need to format out before process_state is called. // We might need to format out before process_state is called.
name_map_::const_iterator i = name_.find(out); name_map_::const_iterator i = name_.find(out);

View file

@ -1,3 +1,5 @@
// Copyright (C) 2011 Laboratoire de Recherche et Développement de
// l'Epita (LRDE).
// Copyright (C) 2003, 2004 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 // département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie. // et Marie Curie.
@ -50,6 +52,7 @@ namespace spot
unabbreviate_ltl_visitor(); unabbreviate_ltl_visitor();
virtual ~unabbreviate_ltl_visitor(); virtual ~unabbreviate_ltl_visitor();
using super::visit;
void visit(unop* uo); void visit(unop* uo);
formula* recurse(formula* f); formula* recurse(formula* f);

View file

@ -129,16 +129,6 @@ namespace spot
//////////////////////////////////////////// ////////////////////////////////////////////
// for build tgba_reduc // for build tgba_reduc
void
tgba_reduc::start()
{
}
void
tgba_reduc::end()
{
}
void void
tgba_reduc::process_state(const spot::state* s, int, tgba_succ_iterator* si) tgba_reduc::process_state(const spot::state* s, int, tgba_succ_iterator* si)
{ {
@ -158,11 +148,6 @@ namespace spot
} }
} }
void
tgba_reduc::process_link(int, int, const tgba_succ_iterator*)
{
}
tgba_explicit::transition* tgba_explicit::transition*
tgba_reduc::create_transition(const spot::state* source, tgba_reduc::create_transition(const spot::state* source,
const spot::state* dest) const spot::state* dest)

View file

@ -1,4 +1,4 @@
// Copyright (C) 2008, 2009, 2011 Laboratoire de Recherche et Développement // Copyright (C) 2008, 2009, 2011 Laboratoire de Recherche et Développement
// de l'Epita (LRDE). // de l'Epita (LRDE).
// Copyright (C) 2004, 2005, 2006 Laboratoire d'Informatique de // Copyright (C) 2004, 2005, 2006 Laboratoire d'Informatique de
// Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC), // Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
@ -81,10 +81,7 @@ namespace spot
sp_map state_predecessor_map_; sp_map state_predecessor_map_;
// Interface of tgba_reachable_iterator_breadth_first // Interface of tgba_reachable_iterator_breadth_first
void start();
void end();
void process_state(const spot::state* s, int n, tgba_succ_iterator* si); void process_state(const spot::state* s, int n, tgba_succ_iterator* si);
void process_link(int in, int out, const tgba_succ_iterator* si);
/// Create a transition using two state of a TGBA. /// Create a transition using two state of a TGBA.
transition* create_transition(const spot::state* source, transition* create_transition(const spot::state* source,
@ -124,15 +121,15 @@ namespace spot
/// this is explain in /// this is explain in
/// \verbatim /// \verbatim
/// @InProceedings{ etessami.00.concur, /// @InProceedings{ etessami.00.concur,
/// author = {Kousha Etessami and Gerard J. Holzmann}, /// author = {Kousha Etessami and Gerard J. Holzmann},
/// title = {Optimizing {B\"u}chi Automata}, /// title = {Optimizing {B\"u}chi Automata},
/// booktitle = {Proceedings of the 11th International Conference on /// booktitle = {Proceedings of the 11th International Conference on
/// Concurrency Theory (Concur'2000)}, /// Concurrency Theory (Concur'2000)},
/// pages = {153--167}, /// pages = {153--167},
/// year = {2000}, /// year = {2000},
/// editor = {C. Palamidessi}, /// editor = {C. Palamidessi},
/// volume = {1877}, /// volume = {1877},
/// series = {Lecture Notes in Computer Science}, /// series = {Lecture Notes in Computer Science},
/// publisher = {Springer-Verlag} /// publisher = {Springer-Verlag}
/// } /// }
/// \endverbatim /// \endverbatim

View file

@ -267,16 +267,6 @@ namespace spot
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
// parity_game_graph // parity_game_graph
void
parity_game_graph::start()
{
}
void
parity_game_graph::end()
{
}
void void
parity_game_graph::process_state(const state* s, parity_game_graph::process_state(const state* s,
int, int,
@ -285,13 +275,6 @@ namespace spot
tgba_state_.push_back(s); tgba_state_.push_back(s);
} }
void
parity_game_graph::process_link(int,
int,
const tgba_succ_iterator*)
{
}
void void
parity_game_graph::print(std::ostream& os) parity_game_graph::print(std::ostream& os)
{ {

View file

@ -1,5 +1,5 @@
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement // Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et
// de l'Epita (LRDE). // Développement de l'Epita (LRDE).
// Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6), // Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre // département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie. // et Marie Curie.
@ -116,10 +116,7 @@ namespace spot
s_v tgba_state_; s_v tgba_state_;
int nb_node_parity_game; int nb_node_parity_game;
void start();
void end();
void process_state(const state* s, int n, tgba_succ_iterator* si); void process_state(const state* s, int n, tgba_succ_iterator* si);
void process_link(int in, int out, const tgba_succ_iterator* si);
/// \brief Compute each node of the graph. /// \brief Compute each node of the graph.
virtual void build_graph() = 0; virtual void build_graph() = 0;