sere_to_tgba: produce state-names
This commit is contained in:
parent
7b936819cc
commit
e80c98751d
1 changed files with 4 additions and 0 deletions
|
|
@ -2218,9 +2218,11 @@ namespace spot
|
||||||
const auto acc_mark = res->set_buchi();
|
const auto acc_mark = res->set_buchi();
|
||||||
|
|
||||||
size_t sn = namer->state_to_name.size();
|
size_t sn = namer->state_to_name.size();
|
||||||
|
auto names = new std::vector<std::string>(sn);
|
||||||
for (size_t i = 0; i < sn; ++i)
|
for (size_t i = 0; i < sn; ++i)
|
||||||
{
|
{
|
||||||
formula g = namer->state_to_name[i];
|
formula g = namer->state_to_name[i];
|
||||||
|
(*names)[i] = str_psl(g);
|
||||||
if (g.accepts_eword())
|
if (g.accepts_eword())
|
||||||
{
|
{
|
||||||
if (res->get_graph().state_storage(i).succ == 0)
|
if (res->get_graph().state_storage(i).succ == 0)
|
||||||
|
|
@ -2233,6 +2235,8 @@ namespace spot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res->set_named_prop("state-names", names);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue