Update the description of the commands options (-TA,-lv,-sp,-in,-TGTA)

* src/tgbatest/ltl2tgba.cc: update the description of the options for
the different kinds of Testing Automata: TA, STA, GTA, SGTA and TGTA.
This commit is contained in:
Ala-Eddine Ben-Salem 2012-04-17 15:26:14 +02:00 committed by Alexandre Duret-Lutz
parent 9319b0ca25
commit 84b1d24e8f

View file

@ -279,22 +279,23 @@ syntax(char* prog)
<< std::endl << std::endl
<< " -v display the BDD variables used by the automaton" << " -v display the BDD variables used by the automaton"
<< std::endl << std::endl
<< std::endl
<< "Options for Testing Automata:" << "Options for Testing Automata:"
<< std::endl << std::endl
<< " -TA Translate an LTL formula into a TA (Testing automata)" << " -TA Translate an LTL formula into a GTA (Generalized"
<< " Testing automata), for Testing Automata (TA) add '-DS' option"
<< std::endl
<< " -lv convert into a (G)TA with an artificial livelock state,"
<< " the obtained automaton is called S(G)TA "
<< "(Single-pass (Generalized) Testing Automata)"
<< std::endl
<< " -sp convert into a (G)TA involving a single-pass emptiness "
<< "check (without adding an artificial livelock state)"
<< std::endl << std::endl
<< std::endl << std::endl
<< " -sp convert into a TA involving a single-pass emptiness check" << " -in convert into a (G)TA without an artificial initial state"
<< std::endl << std::endl
<< " -lv convert into a TA with an artificial livelock accepting"
<< "state (single-pass emptiness check)"
<< std::endl << std::endl
<< std::endl << " -TGTA Translate an LTL formula into a TGTA "
<< " -in convert into a TA without an artificial initial state"
<< std::endl
<< std::endl
<< " -TGTA Translate an LTL formula into a TGTA"
<< "(Transition-based Generalised Testing Automata)" << "(Transition-based Generalised Testing Automata)"
<< std::endl; << std::endl;
@ -1097,15 +1098,16 @@ main(int argc, char** argv)
break; break;
} }
//TA //TA, STA, GTA, SGTA and TGTA
if (ta_opt || tgta_opt)
{
spot::ltl::atomic_prop_set* aps = atomic_prop_collect(f, 0); spot::ltl::atomic_prop_set* aps = atomic_prop_collect(f, 0);
bdd atomic_props_set_bdd = bdd_true(); bdd atomic_props_set_bdd = bdd_true();
for (spot::ltl::atomic_prop_set::const_iterator i = aps->begin(); i for (spot::ltl::atomic_prop_set::const_iterator i = aps->begin(); i
!= aps->end(); ++i) != aps->end(); ++i)
{ {
bdd atomic_prop = bdd_ithvar( bdd atomic_prop = bdd_ithvar((a->get_dict())->var_map[*i]);
(a->get_dict())->var_map[*i]);
atomic_props_set_bdd &= atomic_prop; atomic_props_set_bdd &= atomic_prop;
@ -1146,7 +1148,6 @@ main(int argc, char** argv)
tm.stop("producing output"); tm.stop("producing output");
} }
delete testing_automata_nm; delete testing_automata_nm;
delete testing_automata; delete testing_automata;
a = 0; a = 0;
@ -1156,7 +1157,8 @@ main(int argc, char** argv)
aut_red = 0; aut_red = 0;
output = -1; output = -1;
} else if (tgta_opt) }
if (tgta_opt)
{ {
spot::tgta* tgta = tgba_to_tgta(a, atomic_props_set_bdd); spot::tgta* tgta = tgba_to_tgta(a, atomic_props_set_bdd);
if (opt_minimize) if (opt_minimize)
@ -1171,6 +1173,7 @@ main(int argc, char** argv)
to_free = tgta; to_free = tgta;
} }
}
spot::tgba* product_degeneralized = 0; spot::tgba* product_degeneralized = 0;