Skip to content
Snippets Groups Projects
Commit 6360ff39 authored by an7s's avatar an7s
Browse files

diagnostics printed

parent 5419b237
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,12 @@ int main(int argc, char **argv)
nullTransform = new NullTransform(argv[1], argv[2], argv[3]);
nullTransform->rewrite();
vector<wahoo::Function*> ncf = nullTransform->getNonCandidateFunctions();
vector<wahoo::Function*> cf = nullTransform->getCandidateFunctions();
vector<wahoo::Function*> af = nullTransform->getAllFunctions();
std::cout << "#functions: " << af.size() << std::endl;
std::cout << "#candidate functions: " << cf.size() << std::endl;
std::cout << "#non-candidate functions: " << ncf.size() << std::endl;
}
......@@ -31,6 +31,8 @@ void goodTransform(char *progName, char *annot)
fprintf(fp2,"%s\n", nonCandidateFunctions[i]->getName().c_str());
}
fclose(fp2);
fprintf(stderr,"P1xform: #candidate fns: %d #non-candidate fns: %d\n", candidateFunctions.size(), nonCandidateFunctions.size());
}
void badTransform(char *progName, char *annot)
......@@ -48,6 +50,5 @@ int main(int argc, char **argv)
}
goodTransform(argv[1], argv[2]);
// badTransform(argv[1], argv[2]);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment