* src/ltlast/formulae.hh: Rename as ...

* src/ltlast/formula.hh: ... this.
* src/ltlast/Makefile.am (libltlast_a_SOURCES): Adjust.
* src/ltlast/formula.hh (formulae): Rename as ...
(formula): ... this.
Adjust all uses.
This commit is contained in:
Alexandre Duret-Lutz 2003-04-16 13:11:34 +00:00
parent 532f9131f5
commit ef2d6323e0
22 changed files with 104 additions and 97 deletions

View file

@ -95,7 +95,7 @@ namespace spot
};
void
dotty(const formulae& f, std::ostream& os)
dotty(const formula& f, std::ostream& os)
{
dotty_visitor v(os);
os << "digraph G {" << std::endl;

View file

@ -1,14 +1,14 @@
#ifndef SPOT_LTLVISIT_DOTTY_HH
# define SPOT_LTLVISIT_DOTTY_HH
#include <ltlast/formulae.hh>
#include <ltlast/formula.hh>
#include <iostream>
namespace spot
{
namespace ltl
{
void dotty(const formulae& f, std::ostream& os);
void dotty(const formula& f, std::ostream& os);
}
}

View file

@ -69,7 +69,7 @@ namespace spot
};
void
dump(const formulae& f, std::ostream& os)
dump(const formula& f, std::ostream& os)
{
dump_visitor v(os);
f.accept(v);

View file

@ -1,14 +1,14 @@
#ifndef SPOT_LTLVISIT_DUMP_HH
# define SPOT_LTLVISIT_DUMP_HH
#include <ltlast/formulae.hh>
#include <ltlast/formula.hh>
#include <iostream>
namespace spot
{
namespace ltl
{
void dump(const formulae& f, std::ostream& os);
void dump(const formula& f, std::ostream& os);
}
}

View file

@ -6,7 +6,7 @@ namespace spot
{
namespace ltl
{
equals_visitor::equals_visitor(const formulae* f)
equals_visitor::equals_visitor(const formula* f)
: f_(f), result_(false)
{
}
@ -84,7 +84,7 @@ namespace spot
for (unsigned nf = 0; nf < m_size; ++nf)
{
unsigned np;
const formulae* mnth = m->nth(nf);
const formula* mnth = m->nth(nf);
for (np = 0; np < p_size; ++np)
{
if (equals(p->nth(np), mnth))
@ -94,7 +94,7 @@ namespace spot
}
}
// We we haven't found mnth in any child of p, then
// the two formulaes aren't equal.
// the two formulas aren't equal.
if (np == p_size)
return;
}
@ -114,7 +114,7 @@ namespace spot
// Compare with marked children.
unsigned np2;
const formulae *pnth = p->nth(np);
const formula *pnth = p->nth(np);
for (np2 = 0; np2 < p_size; ++np2)
if (p_seen[np2] && equals(p->nth(np2), pnth))
break;
@ -124,13 +124,13 @@ namespace spot
return;
}
// The two formulaes match.
// The two formulas match.
result_ = true;
}
bool
equals(const formulae* f1, const formulae* f2)
equals(const formula* f1, const formula* f2)
{
equals_visitor v(f1);
f2->accept(v);

View file

@ -1,4 +1,4 @@
#include "ltlast/formulae.hh"
#include "ltlast/formula.hh"
#include "ltlast/visitor.hh"
namespace spot
@ -10,11 +10,11 @@ namespace spot
class equals_visitor : public const_visitor
{
public:
equals_visitor(const formulae* f);
equals_visitor(const formula* f);
virtual ~equals_visitor();
// Return true iff the visitor has visited a
// formulae which is equal to `f'.
// formula which is equal to `f'.
bool result() const;
void visit(const atomic_prop* ap);
@ -24,11 +24,11 @@ namespace spot
void visit(const constant* c);
private:
const formulae* f_;
const formula* f_;
bool result_;
};
bool equals(const formulae* f1, const formulae* f2);
bool equals(const formula* f1, const formula* f2);
}
}