patrick
/
plasp
Archived
1
0
Fork 0

Added missing recursion step in PDDL reduction.

This commit is contained in:
Patrick Lühne 2017-06-27 11:34:53 +02:00
parent 6c9ca0ccb8
commit 729ecc9475
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 2 additions and 1 deletions

View File

@ -237,9 +237,10 @@ void eliminateForAll(ast::Precondition &precondition)
const auto handleForAll =
[&](ast::ForAllPointer<ast::Precondition> &forAll)
{
eliminateForAll(forAll->argument);
auto negatedArgument = std::make_unique<ast::Not<ast::Precondition>>(std::move(forAll->argument));
auto exists = std::make_unique<ast::Exists<ast::Precondition>>(std::move(forAll->parameters), std::move(negatedArgument));
precondition = std::make_unique<ast::Not<ast::Precondition>>(std::move(exists));
};