Skip to content
Snippets Groups Projects
Commit 8a8b092e authored by Franck Dary's avatar Franck Dary
Browse files

Added debug option to compute_l_rules

parent 98c92be6
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,7 @@ int main(int argc, char * argv[])
std::string rulesFilename = vm["rules"].as<std::string>();
int threshold = vm["threshold"].as<int>();
bool strict = vm.count("strict") == 0 ? false : true;
bool debug = vm.count("debug") == 0 ? false : true;
File fplm(fplmFilename, "r");
char buffer[100000];
......@@ -127,6 +128,16 @@ int main(int argc, char * argv[])
fprintf(exceptionsFile.getDescriptor(), "%s\n", line.c_str());
}
if (debug)
{
for (auto & it : rules)
{
fprintf(stderr, "<%s> : %lu\n", it.first.c_str(), it.second.size());
for (auto & example : it.second)
fprintf(stderr, "\t<%s>\n", example.c_str());
}
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment