* src/ltlenv/environment.hh (require): Return a formula, not

an atomic_prop.
* src/ltlast/atomic_prop.hh (atomic_prop): New argument env.
(environment_): New member.
(env): New method.
* src/ltlast/atomic_prop.cc (atomic_prop, env): Likewise.
* src/ltlenv/defaultenv.cc (require): Pass *this as the
environment argument to atomic_prop.
* src/ltlvisit/clone.cc (visit(const atomic_prop*)): Also copy
the environment.
* src/ltlvisit/nenoform.cc (visit(const atomic_prop*)): Likewise.
This commit is contained in:
Alexandre Duret-Lutz 2003-04-17 15:47:56 +00:00
parent a30a0638b9
commit 2a0f88373e
8 changed files with 37 additions and 10 deletions

View file

@ -22,7 +22,7 @@ namespace spot
void
clone_visitor::visit(const atomic_prop* ap)
{
result_ = new atomic_prop(ap->name());
result_ = new atomic_prop(ap->name(), ap->env());
}
void

View file

@ -27,7 +27,7 @@ namespace spot
void
visit(const atomic_prop* ap)
{
formula* f = new atomic_prop(ap->name());
formula* f = new atomic_prop(ap->name(), ap->env());
if (negated_)
result_ = new unop(unop::Not, f);
else