ltl2aa: share dict between sere and final aut
This commit is contained in:
parent
c1a0b5aa46
commit
85b8717c05
3 changed files with 18 additions and 8 deletions
|
|
@ -203,9 +203,9 @@ namespace spot
|
|||
}
|
||||
|
||||
twa_graph_ptr
|
||||
derive_finite_automaton_with_first(formula f, bool deterministic)
|
||||
derive_finite_automaton_with_first(formula f, bdd_dict_ptr bdd_dict,
|
||||
bool deterministic)
|
||||
{
|
||||
auto bdd_dict = make_bdd_dict();
|
||||
auto aut = make_twa_graph(bdd_dict);
|
||||
|
||||
aut->prop_state_acc(true);
|
||||
|
|
@ -403,9 +403,11 @@ namespace spot
|
|||
}
|
||||
|
||||
twa_graph_ptr
|
||||
derive_automaton_with_first(formula f, bool deterministic)
|
||||
derive_automaton_with_first(formula f, bdd_dict_ptr bdd_dict,
|
||||
bool deterministic)
|
||||
{
|
||||
auto finite = derive_finite_automaton_with_first(f, deterministic);
|
||||
auto finite = derive_finite_automaton_with_first(f, bdd_dict,
|
||||
deterministic);
|
||||
|
||||
return from_finite(finite);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,13 +39,15 @@ namespace spot
|
|||
derive_automaton(formula f, bool deterministic = true);
|
||||
|
||||
SPOT_API twa_graph_ptr
|
||||
derive_automaton_with_first(formula f, bool deterministic = true);
|
||||
derive_automaton_with_first(formula f, bdd_dict_ptr bdd_dict,
|
||||
bool deterministic = true);
|
||||
|
||||
SPOT_API twa_graph_ptr
|
||||
derive_finite_automaton(formula f, bool deterministic = true);
|
||||
|
||||
SPOT_API twa_graph_ptr
|
||||
derive_finite_automaton_with_first(formula f, bool deterministic = true);
|
||||
derive_finite_automaton_with_first(formula f, bdd_dict_ptr bdd_dict,
|
||||
bool deterministic = true);
|
||||
|
||||
SPOT_API formula
|
||||
rewrite_and_nlm(formula f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue