acc: extend top_disjuncts and top_conjuncts to acc_cond as well

* spot/twa/acc.hh, spot/twa/acc.cc: Implement the new methods.
* python/spot/impl.i: Add bindings for vectors of acc_cond.
* tests/python/acc_cond.ipynb: Test the two methods.
* NEWS: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2019-03-29 11:39:40 +01:00
parent 01edf4f8e1
commit 0d9c81a6d9
5 changed files with 87 additions and 16 deletions

View file

@ -1383,6 +1383,32 @@
"print(acc)\n",
"print(acc.unsat_mark())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`top_conjuncts` and `top_disjuncts` also work on `acc_cond`. In this case they return tuple of `acc_cond` with the same number of sets."
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(spot.acc_cond(4, \"(Fin(0) | Inf(1)) & (Fin(2) | Inf(3))\"),)\n",
"(spot.acc_cond(4, \"Fin(0) | Inf(1)\"), spot.acc_cond(4, \"Fin(2) | Inf(3)\"))\n"
]
}
],
"source": [
"print(acc.top_disjuncts())\n",
"print(acc.top_conjuncts())"
]
}
],
"metadata": {