Commit 78e63d03 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

nra2nba: Fix initial state construction.

This bug caused tgbatest/ltl2dstar.test to fail but because I had
no ltl2dstar on my computer for a while, I only discovered it after
David Müller and Joachim Klein reported a bug against ltlcross.
It might be the case that their bug is different (I can't reproduce it
using their format), but I hope it was caused by this as well.

* src/dstarparse/nra2nba.cc: Revert 57cda2d9, with a comment.
* THANKS: Add David.
parent 856adef9
......@@ -4,6 +4,7 @@ suggestions.
Akim Demaille
Caroline Lemieux
Christian Dax
David Müller
Ernesto Posse
Étienne Renault
Fabrice Kordon
......
......@@ -48,7 +48,11 @@ namespace spot
out_->set_single_acceptance_set();
out_->prop_state_based_acc();
out_->new_states(num_states_ * (d_->accpair_count + 1));
out_->set_init_state(a->aut->get_init_state_number());
// This converts the initial state of aut (not a->aut) into a
// state number in a->aut.
auto i = aut->get_init_state();
out_->set_init_state(a->aut->state_number(i));
i->destroy();
}
tgba_digraph_ptr
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment