diff --git a/wrap/python/spot_impl.i b/wrap/python/spot_impl.i index 65928e6f2..d4f6caccf 100644 --- a/wrap/python/spot_impl.i +++ b/wrap/python/spot_impl.i @@ -129,6 +129,7 @@ namespace std { #include "tgbaalgos/magic.hh" #include "tgbaalgos/minimize.hh" #include "tgbaalgos/neverclaim.hh" +#include "tgbaalgos/remfin.hh" #include "tgbaalgos/safety.hh" #include "tgbaalgos/sccfilter.hh" #include "tgbaalgos/stats.hh" @@ -271,6 +272,7 @@ using namespace spot; %include "tgbaalgos/minimize.hh" %include "tgbaalgos/neverclaim.hh" %include "tgbaalgos/safety.hh" +%include "tgbaalgos/remfin.hh" %include "tgbaalgos/sccfilter.hh" %include "tgbaalgos/stats.hh" %include "tgbaalgos/isdet.hh" diff --git a/wrap/python/tests/automata.ipynb b/wrap/python/tests/automata.ipynb index fdf59c20c..2b0f14ae5 100644 --- a/wrap/python/tests/automata.ipynb +++ b/wrap/python/tests/automata.ipynb @@ -18,7 +18,7 @@ "version": "3.4.2" }, "name": "", - "signature": "sha256:a45a88a09bb68e3c3ea4856e0dc7ab83ccc4afa607806beb1fa902de88e28792" + "signature": "sha256:a5b3af236b0c8dbdebad89d23ca023434c02a55b30bf8f5afd206daabc92c25b" }, "nbformat": 3, "nbformat_minor": 0, @@ -171,7 +171,7 @@ "\n" ], "text": [ - " *' at 0x10f07d3c0> >" + " *' at 0x105ac14b0> >" ] } ], @@ -303,7 +303,7 @@ "" ], "text": [ - "" + "" ] } ], @@ -449,7 +449,7 @@ "" ], "text": [ - "" + "" ] } ], @@ -542,7 +542,7 @@ "\n" ], "text": [ - " *' at 0x110aae060> >" + " *' at 0x10747f180> >" ] } ], @@ -612,7 +612,7 @@ "\n" ], "text": [ - " *' at 0x110aae120> >" + " *' at 0x10747f210> >" ] } ], @@ -681,7 +681,7 @@ "\n" ], "text": [ - " *' at 0x110aae030> >" + " *' at 0x10747f0f0> >" ] } ], @@ -797,7 +797,7 @@ "" ], "text": [ - "" + "" ] } ], @@ -987,7 +987,7 @@ "" ], "text": [ - "" + "" ] } ], @@ -1080,7 +1080,7 @@ "\n" ], "text": [ - " *' at 0x10f0ecfc0> >" + " *' at 0x10747f2d0> >" ] } ], @@ -1554,7 +1554,7 @@ "\n" ], "text": [ - " *' at 0x10f0ecba0> >" + " *' at 0x105b2ed80> >" ] } ], @@ -1579,6 +1579,193 @@ } ], "prompt_number": 14 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "%%file example1.aut\n", + "HOA: v1\n", + "States: 3\n", + "Start: 0\n", + "AP: 2 \"a\" \"b\"\n", + "acc-name: Buchi\n", + "Acceptance: 4 Inf(0)&Fin(1)&Fin(3) | Inf(2)&Inf(3) | Inf(1)\n", + "--BODY--\n", + "State: 0 {3}\n", + "[t] 0\n", + "[0] 1 {1}\n", + "[!0] 2 {0}\n", + "State: 1 {3}\n", + "[1] 0\n", + "[0&1] 1 {0}\n", + "[!0&1] 2 {2}\n", + "State: 2\n", + "[!1] 0\n", + "[0&!1] 1 {0}\n", + "[!0&!1] 2 {0}\n", + "--END--" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Writing example1.aut\n" + ] + } + ], + "prompt_number": 15 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "a = spot.automaton('example1.aut')\n", + "spot.remove_fin(a)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "metadata": {}, + "output_type": "pyout", + "prompt_number": 16, + "svg": [ + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "G\n", + "\n", + "\n", + "\n", + "0\n", + "\n", + "0\n", + "\n", + "\n", + "I->0\n", + "\n", + "\n", + "\n", + "\n", + "0->0\n", + "\n", + "\n", + "1\n", + "\u2778\n", + "\n", + "\n", + "1\n", + "\n", + "1\n", + "\n", + "\n", + "0->1\n", + "\n", + "\n", + "a\n", + "\u2776\n", + "\u2778\n", + "\n", + "\n", + "2\n", + "\n", + "2\n", + "\n", + "\n", + "0->2\n", + "\n", + "\n", + "!a\n", + "\u2778\n", + "\n", + "\n", + "1->0\n", + "\n", + "\n", + "b\n", + "\u2778\n", + "\n", + "\n", + "1->1\n", + "\n", + "\n", + "a & b\n", + "\u2778\n", + "\n", + "\n", + "1->2\n", + "\n", + "\n", + "!a & b\n", + "\u2777\n", + "\u2778\n", + "\n", + "\n", + "2->0\n", + "\n", + "\n", + "!b\n", + "\n", + "\n", + "2->1\n", + "\n", + "\n", + "a & !b\n", + "\n", + "\n", + "2->2\n", + "\n", + "\n", + "!a & !b\n", + "\n", + "\n", + "3\n", + "\n", + "3\n", + "\n", + "\n", + "2->3\n", + "\n", + "\n", + "!a & !b\n", + "\n", + "\n", + "3->3\n", + "\n", + "\n", + "!a & !b\n", + "\u24ff\n", + "\n", + "\n", + "\n" + ], + "text": [ + " *' at 0x105b2ec90> >" + ] + } + ], + "prompt_number": 16 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "!rm example1.aut" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 17 } ], "metadata": {}