* src/ltlvisit/basereduc.cc, src/ltlvisit/reducform.cc: Use

dynamic_cast instead of node_type_form_visitor, this is usually
smaller.
* src/ltlvisit/reducform.hh,
src/ltlvisit/forminf.cc (node_type_form_visitor): Delete.
* src/sanity/style.test: Two more checks.
This commit is contained in:
Alexandre Duret-Lutz 2004-05-26 12:48:22 +00:00
parent d973c1dad0
commit cdbb199c4d
6 changed files with 120 additions and 180 deletions

View file

@ -74,24 +74,6 @@ namespace spot
/// FIXME: Describe what universal formulae are. Cite paper.
bool is_universal(const formula* f);
/// Type the first node of a formula.
class node_type_form_visitor : public const_visitor
{
public:
enum type { Atom, Const, Unop, Binop, Multop };
node_type_form_visitor();
virtual ~node_type_form_visitor(){};
type result() const;
void visit(const atomic_prop* ap);
void visit(const constant* c);
void visit(const unop* uo);
void visit(const binop* bo);
void visit(const multop* mo);
protected:
type result_;
};
node_type_form_visitor::type node_type(const formula* f);
/// Whether a formula starts with GF.
bool is_GF(const formula* f);
/// Whether a formula starts with FG.