]> ruin.nu Git - popboot.git/commitdiff
removed some more debug output
authorMichael Andreen <harv@ruin.nu>
Thu, 2 Jun 2005 18:17:32 +0000 (18:17 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 2 Jun 2005 18:17:32 +0000 (18:17 +0000)
parser.y
planner.cpp

index a8269f54e3931b11dfdfe6abd61dcd8a557c695a..ad68377a79770ad4c4403dd80e29bffc68d682d6 100644 (file)
--- 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();
 
index 02e634220921971f7c9ff3f42bd873585789adac..b38fd4797b8e73784b9b1ea2792546c188584517 100644 (file)
@@ -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){