* 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:
parent
a30a0638b9
commit
2a0f88373e
8 changed files with 37 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue