* tests/python/atva16-fig2a.ipynb, tests/python/atva16-fig2b.ipynb: New files. * tests/Makefile.am, doc/org/tut.org: Add them.
340 lines
19 KiB
Text
340 lines
19 KiB
Text
{
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.5.2rc1"
|
|
},
|
|
"name": ""
|
|
},
|
|
"nbformat": 3,
|
|
"nbformat_minor": 0,
|
|
"worksheets": [
|
|
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"This example is the right part of Fig.2 in our ATVA'16 paper titled \"*Spot 2.0 \u2014 a framework for LTL and \u03c9-automata manipulation*\"."
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": true,
|
|
"input": [
|
|
"import spot\n",
|
|
"import spot.ltsmin\n",
|
|
"spot.setup(show_default='.abr', max_states=10)\n",
|
|
"# This extra line ensures that our test-suite skips this test if divine is not installed.\n",
|
|
"spot.ltsmin.require('divine')"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 1
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": true,
|
|
"input": [
|
|
"%%dve adding\n",
|
|
"int c=1, x1, x2;\n",
|
|
"process a1 {\n",
|
|
" state Q, R, S; init Q;\n",
|
|
" trans Q -> R { guard c<20; effect x1 = c; },\n",
|
|
" R -> S { effect x1 = x1 + c; },\n",
|
|
" S -> Q { effect c = x1; };\n",
|
|
"}\n",
|
|
"process a2 {\n",
|
|
" state Q, R, S; init Q;\n",
|
|
" trans Q -> R { guard c<20; effect x2 = c; },\n",
|
|
" R -> S { effect x2 = x2 + c; },\n",
|
|
" S -> Q { effect c = x2; };\n",
|
|
"}\n",
|
|
"system async;"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 2
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"adding"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 3,
|
|
"text": [
|
|
"ltsmin model with the following variables:\n",
|
|
" c: int\n",
|
|
" x1: int\n",
|
|
" x2: int\n",
|
|
" a1: ['Q', 'R', 'S']\n",
|
|
" a2: ['Q', 'R', 'S']"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 3
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"adding.kripke(['a1.Q', 'c==17'])"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 4,
|
|
"svg": [
|
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
|
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
|
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
|
"<!-- Generated by graphviz version 2.38.0 (20140413.2041)\n",
|
|
" -->\n",
|
|
"<!-- Title: G Pages: 1 -->\n",
|
|
"<svg width=\"734pt\" height=\"144pt\"\n",
|
|
" viewBox=\"0.00 0.00 734.00 143.62\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
|
|
"<g id=\"graph0\" class=\"graph\" transform=\"scale(0.477539 0.477539) rotate(0) translate(4 296.74)\">\n",
|
|
"<title>G</title>\n",
|
|
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-296.74 1533.05,-296.74 1533.05,4 -4,4\"/>\n",
|
|
"<text text-anchor=\"start\" x=\"761.024\" y=\"-277.54\" font-family=\"Lato\" font-size=\"14.00\">t</text>\n",
|
|
"<!-- I -->\n",
|
|
"<!-- 0 -->\n",
|
|
"<g id=\"node2\" class=\"node\"><title>0</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"201.756\" cy=\"-134.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"201.756\" y=\"-138.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=0, x2=0, a1=0, a2=0</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"201.756\" y=\"-123.67\" font-family=\"Lato\" font-size=\"14.00\">a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- I->0 -->\n",
|
|
"<g id=\"edge1\" class=\"edge\"><title>I->0</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1.14478,-134.87C2.50931,-134.87 13.4162,-134.87 29.4908,-134.87\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"36.6835,-134.87 29.6836,-138.02 33.1835,-134.87 29.6835,-134.87 29.6835,-134.87 29.6835,-134.87 33.1835,-134.87 29.6835,-131.72 36.6835,-134.87 36.6835,-134.87\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 1 -->\n",
|
|
"<g id=\"node3\" class=\"node\"><title>1</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"567.268\" cy=\"-170.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"567.268\" y=\"-174.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=1, x2=0, a1=1, a2=0</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"567.268\" y=\"-159.67\" font-family=\"Lato\" font-size=\"14.00\">!a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->1 -->\n",
|
|
"<g id=\"edge2\" class=\"edge\"><title>0->1</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M343.039,-148.763C367.889,-151.224 393.831,-153.793 418.871,-156.273\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"425.907,-156.97 418.631,-159.414 422.424,-156.625 418.941,-156.28 418.941,-156.28 418.941,-156.28 422.424,-156.625 419.252,-153.145 425.907,-156.97 425.907,-156.97\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 2 -->\n",
|
|
"<g id=\"node4\" class=\"node\"><title>2</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"567.268\" cy=\"-98.8701\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"567.268\" y=\"-102.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=0, x2=1, a1=0, a2=1</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"567.268\" y=\"-87.6701\" font-family=\"Lato\" font-size=\"14.00\">a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- 0->2 -->\n",
|
|
"<g id=\"edge3\" class=\"edge\"><title>0->2</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M343.039,-120.977C367.889,-118.516 393.831,-115.947 418.871,-113.467\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"425.907,-112.77 419.252,-116.595 422.424,-113.115 418.941,-113.46 418.941,-113.46 418.941,-113.46 422.424,-113.115 418.631,-110.326 425.907,-112.77 425.907,-112.77\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 3 -->\n",
|
|
"<g id=\"node5\" class=\"node\"><title>3</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"932.779\" cy=\"-206.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-210.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=2, x2=0, a1=2, a2=0</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-195.67\" font-family=\"Lato\" font-size=\"14.00\">!a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->3 -->\n",
|
|
"<g id=\"edge4\" class=\"edge\"><title>1->3</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M708.551,-184.763C733.401,-187.224 759.343,-189.793 784.382,-192.273\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"791.419,-192.97 784.143,-195.414 787.936,-192.625 784.453,-192.28 784.453,-192.28 784.453,-192.28 787.936,-192.625 784.764,-189.145 791.419,-192.97 791.419,-192.97\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4 -->\n",
|
|
"<g id=\"node6\" class=\"node\"><title>4</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"932.779\" cy=\"-134.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-138.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=1, x2=1, a1=1, a2=1</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-123.67\" font-family=\"Lato\" font-size=\"14.00\">!a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- 1->4 -->\n",
|
|
"<g id=\"edge5\" class=\"edge\"><title>1->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M708.551,-156.977C733.401,-154.516 759.343,-151.947 784.382,-149.467\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"791.419,-148.77 784.764,-152.595 787.936,-149.115 784.453,-149.46 784.453,-149.46 784.453,-149.46 787.936,-149.115 784.143,-146.326 791.419,-148.77 791.419,-148.77\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 2->4 -->\n",
|
|
"<g id=\"edge6\" class=\"edge\"><title>2->4</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M708.551,-112.763C733.401,-115.224 759.343,-117.793 784.382,-120.273\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"791.419,-120.97 784.143,-123.414 787.936,-120.625 784.453,-120.28 784.453,-120.28 784.453,-120.28 787.936,-120.625 784.764,-117.145 791.419,-120.97 791.419,-120.97\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 5 -->\n",
|
|
"<g id=\"node7\" class=\"node\"><title>5</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"932.779\" cy=\"-62.8701\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-66.6701\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=0, x2=2, a1=0, a2=2</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"932.779\" y=\"-51.6701\" font-family=\"Lato\" font-size=\"14.00\">a1.Q & !"c==17" & !dead</text>\n",
|
|
"</g>\n",
|
|
"<!-- 2->5 -->\n",
|
|
"<g id=\"edge7\" class=\"edge\"><title>2->5</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M708.551,-84.9773C733.401,-82.5163 759.343,-79.9471 784.382,-77.4674\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"791.419,-76.7705 784.764,-80.5951 787.936,-77.1155 784.453,-77.4604 784.453,-77.4604 784.453,-77.4604 787.936,-77.1155 784.143,-74.3258 791.419,-76.7705 791.419,-76.7705\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 6 -->\n",
|
|
"<g id=\"node8\" class=\"node\"><title>6</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"1298.29\" cy=\"-242.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-246.67\" font-family=\"Lato\" font-size=\"14.00\">c=2, x1=2, x2=0, a1=0, a2=0</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-231.67\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->6 -->\n",
|
|
"<g id=\"edge8\" class=\"edge\"><title>3->6</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-220.763C1098.91,-223.224 1124.85,-225.793 1149.89,-228.273\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-228.97 1149.65,-231.414 1153.45,-228.625 1149.96,-228.28 1149.96,-228.28 1149.96,-228.28 1153.45,-228.625 1150.28,-225.145 1156.93,-228.97 1156.93,-228.97\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 7 -->\n",
|
|
"<g id=\"node9\" class=\"node\"><title>7</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"1298.29\" cy=\"-170.87\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-174.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=2, x2=1, a1=2, a2=1</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-159.67\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 3->7 -->\n",
|
|
"<g id=\"edge9\" class=\"edge\"><title>3->7</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-192.977C1098.91,-190.516 1124.85,-187.947 1149.89,-185.467\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-184.77 1150.28,-188.595 1153.45,-185.115 1149.96,-185.46 1149.96,-185.46 1149.96,-185.46 1153.45,-185.115 1149.65,-182.326 1156.93,-184.77 1156.93,-184.77\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 4->7 -->\n",
|
|
"<g id=\"edge10\" class=\"edge\"><title>4->7</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-148.763C1098.91,-151.224 1124.85,-153.793 1149.89,-156.273\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-156.97 1149.65,-159.414 1153.45,-156.625 1149.96,-156.28 1149.96,-156.28 1149.96,-156.28 1153.45,-156.625 1150.28,-153.145 1156.93,-156.97 1156.93,-156.97\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 8 -->\n",
|
|
"<g id=\"node10\" class=\"node\"><title>8</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"1298.29\" cy=\"-98.8701\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-102.67\" font-family=\"Lato\" font-size=\"14.00\">c=1, x1=1, x2=2, a1=1, a2=2</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-87.6701\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 4->8 -->\n",
|
|
"<g id=\"edge11\" class=\"edge\"><title>4->8</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-120.977C1098.91,-118.516 1124.85,-115.947 1149.89,-113.467\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-112.77 1150.28,-116.595 1153.45,-113.115 1149.96,-113.46 1149.96,-113.46 1149.96,-113.46 1153.45,-113.115 1149.65,-110.326 1156.93,-112.77 1156.93,-112.77\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 5->8 -->\n",
|
|
"<g id=\"edge12\" class=\"edge\"><title>5->8</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-76.7628C1098.91,-79.2238 1124.85,-81.793 1149.89,-84.2727\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-84.9696 1149.65,-87.4143 1153.45,-84.6246 1149.96,-84.2797 1149.96,-84.2797 1149.96,-84.2797 1153.45,-84.6246 1150.28,-81.145 1156.93,-84.9696 1156.93,-84.9696\"/>\n",
|
|
"</g>\n",
|
|
"<!-- 9 -->\n",
|
|
"<g id=\"node11\" class=\"node\"><title>9</title>\n",
|
|
"<ellipse fill=\"#ffffaa\" stroke=\"black\" cx=\"1298.29\" cy=\"-26.8701\" rx=\"164.512\" ry=\"26.7407\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-30.6701\" font-family=\"Lato\" font-size=\"14.00\">c=2, x1=0, x2=2, a1=0, a2=0</text>\n",
|
|
"<text text-anchor=\"middle\" x=\"1298.29\" y=\"-15.6701\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 5->9 -->\n",
|
|
"<g id=\"edge13\" class=\"edge\"><title>5->9</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" d=\"M1074.06,-48.9773C1098.91,-46.5163 1124.85,-43.9471 1149.89,-41.4674\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1156.93,-40.7705 1150.28,-44.5951 1153.45,-41.1155 1149.96,-41.4604 1149.96,-41.4604 1149.96,-41.4604 1153.45,-41.1155 1149.65,-38.3258 1156.93,-40.7705 1156.93,-40.7705\"/>\n",
|
|
"</g>\n",
|
|
"<!-- u6 -->\n",
|
|
"<g id=\"node12\" class=\"node\"><title>u6</title>\n",
|
|
"<polygon fill=\"#ffffaa\" stroke=\"none\" points=\"1529.05,-254.37 1499.05,-254.37 1499.05,-231.37 1529.05,-231.37 1529.05,-254.37\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1514.05\" y=\"-239.17\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 6->u6 -->\n",
|
|
"<g id=\"edge14\" class=\"edge\"><title>6->u6</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" stroke-dasharray=\"5,2\" d=\"M1463.2,-242.87C1474.02,-242.87 1483.73,-242.87 1491.65,-242.87\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1498.94,-242.87 1491.94,-246.02 1495.44,-242.87 1491.94,-242.87 1491.94,-242.87 1491.94,-242.87 1495.44,-242.87 1491.94,-239.72 1498.94,-242.87 1498.94,-242.87\"/>\n",
|
|
"</g>\n",
|
|
"<!-- u7 -->\n",
|
|
"<g id=\"node13\" class=\"node\"><title>u7</title>\n",
|
|
"<polygon fill=\"#ffffaa\" stroke=\"none\" points=\"1529.05,-182.37 1499.05,-182.37 1499.05,-159.37 1529.05,-159.37 1529.05,-182.37\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1514.05\" y=\"-167.17\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 7->u7 -->\n",
|
|
"<g id=\"edge15\" class=\"edge\"><title>7->u7</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" stroke-dasharray=\"5,2\" d=\"M1463.2,-170.87C1474.02,-170.87 1483.73,-170.87 1491.65,-170.87\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1498.94,-170.87 1491.94,-174.02 1495.44,-170.87 1491.94,-170.87 1491.94,-170.87 1491.94,-170.87 1495.44,-170.87 1491.94,-167.72 1498.94,-170.87 1498.94,-170.87\"/>\n",
|
|
"</g>\n",
|
|
"<!-- u8 -->\n",
|
|
"<g id=\"node14\" class=\"node\"><title>u8</title>\n",
|
|
"<polygon fill=\"#ffffaa\" stroke=\"none\" points=\"1529.05,-110.37 1499.05,-110.37 1499.05,-87.3701 1529.05,-87.3701 1529.05,-110.37\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1514.05\" y=\"-95.1701\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 8->u8 -->\n",
|
|
"<g id=\"edge16\" class=\"edge\"><title>8->u8</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" stroke-dasharray=\"5,2\" d=\"M1463.2,-98.8701C1474.02,-98.8701 1483.73,-98.8701 1491.65,-98.8701\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1498.94,-98.8701 1491.94,-102.02 1495.44,-98.8701 1491.94,-98.8702 1491.94,-98.8702 1491.94,-98.8702 1495.44,-98.8701 1491.94,-95.7202 1498.94,-98.8701 1498.94,-98.8701\"/>\n",
|
|
"</g>\n",
|
|
"<!-- u9 -->\n",
|
|
"<g id=\"node15\" class=\"node\"><title>u9</title>\n",
|
|
"<polygon fill=\"#ffffaa\" stroke=\"none\" points=\"1529.05,-38.3701 1499.05,-38.3701 1499.05,-15.3701 1529.05,-15.3701 1529.05,-38.3701\"/>\n",
|
|
"<text text-anchor=\"middle\" x=\"1514.05\" y=\"-23.1701\" font-family=\"Lato\" font-size=\"14.00\">...</text>\n",
|
|
"</g>\n",
|
|
"<!-- 9->u9 -->\n",
|
|
"<g id=\"edge17\" class=\"edge\"><title>9->u9</title>\n",
|
|
"<path fill=\"none\" stroke=\"black\" stroke-dasharray=\"5,2\" d=\"M1463.2,-26.8701C1474.02,-26.8701 1483.73,-26.8701 1491.65,-26.8701\"/>\n",
|
|
"<polygon fill=\"black\" stroke=\"black\" points=\"1498.94,-26.8701 1491.94,-30.0202 1495.44,-26.8701 1491.94,-26.8702 1491.94,-26.8702 1491.94,-26.8702 1495.44,-26.8701 1491.94,-23.7202 1498.94,-26.8701 1498.94,-26.8701\"/>\n",
|
|
"</g>\n",
|
|
"</g>\n",
|
|
"</svg>\n"
|
|
],
|
|
"text": [
|
|
"<spot.impl.kripke; proxy of <Swig Object of type 'std::shared_ptr< spot::kripke > *' at 0x7f3406f6f5d0> >"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 4
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": true,
|
|
"input": [
|
|
"def model_check(model, f):\n",
|
|
" f = spot.formula(f)\n",
|
|
" ss = model.kripke(spot.atomic_prop_collect(f))\n",
|
|
" nf = spot.formula_Not(f).translate()\n",
|
|
" return spot.otf_product(ss, nf).is_empty()"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"prompt_number": 5
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"model_check(adding, 'F(\"c==2\")')"
|
|
],
|
|
"language": "python",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"metadata": {},
|
|
"output_type": "pyout",
|
|
"prompt_number": 6,
|
|
"text": [
|
|
"True"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 6
|
|
}
|
|
],
|
|
"metadata": {}
|
|
}
|
|
]
|
|
}
|