Ease atomic proposition manipulation for twa.
* doc/org/tut22.org, src/ltlvisit/apcollect.cc, src/ltlvisit/apcollect.hh, src/parseaut/parseaut.yy, src/tests/ikwiad.cc, src/tests/tgbagraph.test, src/tests/twagraph.cc, src/twa/twa.cc, src/twa/twa.hh, src/twaalgos/ltl2tgba_fm.cc, src/twaalgos/randomgraph.cc, src/twaalgos/relabel.cc, src/twaalgos/stutter.cc, src/twaalgos/stutter.hh: here.
This commit is contained in:
parent
953181bbb7
commit
11b9ada2bb
14 changed files with 104 additions and 65 deletions
|
|
@ -555,7 +555,6 @@ ap-name: STRING
|
|||
if (!res.ignore_more_ap)
|
||||
{
|
||||
auto f = res.env->require(*$1);
|
||||
auto d = res.h->aut->get_dict();
|
||||
int b = 0;
|
||||
if (f == nullptr)
|
||||
{
|
||||
|
|
@ -564,11 +563,11 @@ ap-name: STRING
|
|||
error(@1, out.str());
|
||||
f = spot::ltl::default_environment::instance()
|
||||
.require("$unknown$");
|
||||
b = d->register_proposition(f, res.h->aut);
|
||||
b = res.h->aut->register_ap(f);
|
||||
}
|
||||
else
|
||||
{
|
||||
b = d->register_proposition(f, res.h->aut);
|
||||
b = res.h->aut->register_ap(f);
|
||||
if (!res.ap_set.emplace(b).second)
|
||||
{
|
||||
std::ostringstream out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue