twa: make sure intersection_run and intersection_word use genem

* spot/twa/twa.cc (accepting_word, intersecting_run,
intersecting_word): Refactor.
* tests/python/contains.ipynb: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2019-04-24 16:35:32 +02:00
parent 17f91132f9
commit 84fa824f7e
3 changed files with 52 additions and 27 deletions

View file

@ -326,7 +326,7 @@
"$\\mathsf{cycle}\\{a; \\lnot a\\}$"
],
"text/plain": [
"<spot.twa_word; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_word > *' at 0x7faa9424d9c0> >"
"<spot.twa_word; proxy of <Swig Object of type 'std::shared_ptr< spot::twa_word > *' at 0x7f7c7c425630> >"
]
},
"execution_count": 16,
@ -370,7 +370,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"The following word is only accepted by one automaton: cycle{!a; a; !a}\n"
"The following word is only accepted by one automaton: cycle{a; !a}\n"
]
},
{
@ -505,7 +505,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.3"
}
},
"nbformat": 4,