derive: no nullptr handling
This commit is contained in:
parent
edb4645a6a
commit
cc32f35f45
1 changed files with 0 additions and 9 deletions
|
|
@ -141,12 +141,6 @@ namespace spot
|
|||
aut->new_edge(curr_state, curr_state, bddfalse, acc_mark);
|
||||
}
|
||||
|
||||
// if we only have an initial state with no transitions, then our language
|
||||
// is empty
|
||||
if (aut->num_states() == 1
|
||||
&& aut->get_graph().state_storage(aut->get_init_state_number()).succ == 0)
|
||||
return nullptr;
|
||||
|
||||
aut->set_named_prop("state-names", state_names);
|
||||
|
||||
aut->merge_edges();
|
||||
|
|
@ -159,9 +153,6 @@ namespace spot
|
|||
{
|
||||
auto finite = derive_finite_automaton(f, deterministic);
|
||||
|
||||
if (finite == nullptr)
|
||||
return nullptr;
|
||||
|
||||
return from_finite(finite);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue