* src/tgbatest/ltl2tgba.cc: Clock the time spent reading -P file.

This commit is contained in:
Alexandre Duret-Lutz 2010-11-06 16:40:44 +01:00
parent b1dbfed17f
commit 87f69eaf18
2 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,8 @@
2010-11-06 Alexandre Duret-Lutz <adl@gnu.org> 2010-11-06 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbatest/ltl2tgba.cc: Clock the time spent reading -P file.
2010-11-06 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbatest/neverclaimread.test: Check that Spot can read the * src/tgbatest/neverclaimread.test: Check that Spot can read the
neverclaims it outputs. neverclaims it outputs.

View file

@ -520,6 +520,8 @@ main(int argc, char** argv)
} }
else if (!strncmp(argv[formula_index], "-P", 2)) else if (!strncmp(argv[formula_index], "-P", 2))
{ {
tm.start("reading -P's argument");
spot::tgba_parse_error_list pel; spot::tgba_parse_error_list pel;
system = spot::tgba_parse(argv[formula_index] + 2, system = spot::tgba_parse(argv[formula_index] + 2,
pel, dict, env, env, debug_opt); pel, dict, env, env, debug_opt);
@ -528,8 +530,7 @@ main(int argc, char** argv)
return 2; return 2;
system->merge_transitions(); system->merge_transitions();
if (!paper_opt) tm.stop("reading -P's argument");
std::clog << argv[formula_index] + 2 << " read" << std::endl;
} }
else if (!strcmp(argv[formula_index], "-r")) else if (!strcmp(argv[formula_index], "-r"))
{ {