From e68f7a74e8f83d4b619049cf0e67f7de5e03cf82 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 2 Jun 2005 18:17:32 +0000 Subject: [PATCH] removed some more debug output --- parser.y | 8 ++++---- planner.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parser.y b/parser.y index a8269f5..ad68377 100644 --- a/parser.y +++ b/parser.y @@ -65,7 +65,7 @@ action : id preconds '\n' exec effects '\n' { //--------------------------------------------- // Debug test print : - cerr << "id: " << *$1 << endl; +/* cerr << "id: " << *$1 << endl; // Precondition flags: cerr << "a: " << (*$2)["a"] << endl; @@ -82,7 +82,7 @@ action : id preconds '\n' exec effects '\n' { cerr << "88: " << (*$5)[88].size() << endl; cerr << endl; - //---------------------------------------------- +*/ //---------------------------------------------- } ; @@ -249,11 +249,11 @@ main (int argc, char** argv) yyparse(); - cerr << (*runlevels)[2].size() << endl; +/* cerr << (*runlevels)[2].size() << endl; cerr << (*runlevels)[3].size() << endl; cerr << (*runlevels)[4].size() << endl; cerr << (*runlevels)[5].size() << endl; - +*/ Planner p(*actions, init, (*runlevels)[atoi(argv[2])]); p.execute(); diff --git a/planner.cpp b/planner.cpp index 02e6342..b38fd47 100644 --- a/planner.cpp +++ b/planner.cpp @@ -146,8 +146,8 @@ void Planner::execute(){ } } - cerr << "Number of nodes: " << _addedNodes.size() << endl; - //Clearing the init vector, effects will be added below. + //Clearing the init and goal vectors, new effects will be added below. + _init.clear(); _goal.clear(); Preconditions goal = _finish->preconditions(); for (Preconditions::const_iterator precond = goal.begin(); precond != goal.end(); ++precond){ -- 2.39.2