Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 13.24 KB | None | 0 0
  1. {
  2.   "transform": {
  3.     "system": "// Place template instantiations here.\n//Process = Template();\n// List one or more processes to be composed into a system.\nsystem env1, env2, sut;",
  4.     "queries": {
  5.       "query": [
  6.         {
  7.           "formula": "A[] P.id1 --> P.id5",
  8.           "comment": ""
  9.         },
  10.         {
  11.           "formula": "deadlock",
  12.           "comment": ""
  13.         }
  14.       ]
  15.     },
  16.     "declarations": [
  17.       {
  18.         "type": "channel",
  19.         "name": "ch"
  20.       },
  21.       {
  22.         "type": "channel",
  23.         "name": "i_ch"
  24.       },
  25.       {
  26.         "type": "channel",
  27.         "name": "o_ch"
  28.       },
  29.       {
  30.         "constant": true,
  31.         "type": "number",
  32.         "name": "i1",
  33.         "value": "1"
  34.       },
  35.       {
  36.         "constant": true,
  37.         "type": "number",
  38.         "name": "i2",
  39.         "value": "2"
  40.       },
  41.       {
  42.         "constant": true,
  43.         "type": "number",
  44.         "name": "i3",
  45.         "value": "3"
  46.       },
  47.       {
  48.         "constant": true,
  49.         "type": "number",
  50.         "name": "i4",
  51.         "value": "4"
  52.       },
  53.       {
  54.         "constant": true,
  55.         "type": "number",
  56.         "name": "i5",
  57.         "value": "5"
  58.       },
  59.       {
  60.         "constant": true,
  61.         "type": "number",
  62.         "name": "i6",
  63.         "value": "6"
  64.       },
  65.       {
  66.         "constant": true,
  67.         "type": "number",
  68.         "name": "i7",
  69.         "value": "7"
  70.       },
  71.       {
  72.         "constant": true,
  73.         "type": "number",
  74.         "name": "i8",
  75.         "value": "8"
  76.       },
  77.       {
  78.         "constant": true,
  79.         "type": "number",
  80.         "name": "o1",
  81.         "value": "1"
  82.       },
  83.       {
  84.         "constant": true,
  85.         "type": "number",
  86.         "name": "o2",
  87.         "value": "2"
  88.       },
  89.       {
  90.         "constant": true,
  91.         "type": "number",
  92.         "name": "o3",
  93.         "value": "3"
  94.       },
  95.       {
  96.         "constant": true,
  97.         "type": "number",
  98.         "name": "o4",
  99.         "value": "4"
  100.       },
  101.       {
  102.         "constant": true,
  103.         "type": "number",
  104.         "name": "o5",
  105.         "value": "5"
  106.       },
  107.       {
  108.         "constant": true,
  109.         "type": "number",
  110.         "name": "o6",
  111.         "value": "6"
  112.       },
  113.       {
  114.         "constant": true,
  115.         "type": "number",
  116.         "name": "o7",
  117.         "value": "7"
  118.       },
  119.       {
  120.         "constant": true,
  121.         "type": "number",
  122.         "name": "o8",
  123.         "value": "8"
  124.       },
  125.       {
  126.         "constant": false,
  127.         "type": "array",
  128.         "name": "t",
  129.         "length": 8,
  130.         "elementType": "boolean",
  131.         "value": [
  132.           "0",
  133.           "0",
  134.           "0",
  135.           "0",
  136.           "0",
  137.           "0",
  138.           "0",
  139.           "0"
  140.         ]
  141.       },
  142.       {
  143.         "constant": false,
  144.         "type": "number",
  145.         "name": "inp",
  146.         "value": "5"
  147.       },
  148.       {
  149.         "constant": false,
  150.         "type": "number",
  151.         "name": "out",
  152.         "value": "5"
  153.       },
  154.       {
  155.         "constant": false,
  156.         "type": "number",
  157.         "name": "i_ch_var"
  158.       },
  159.       {
  160.         "constant": false,
  161.         "type": "number",
  162.         "name": "o_ch_var"
  163.       },
  164.       {
  165.         "constant": false,
  166.         "type": "clock",
  167.         "name": "cl"
  168.       },
  169.       {
  170.         "constant": false,
  171.         "type": "boolean",
  172.         "name": "v",
  173.         "value": "0"
  174.       }
  175.     ],
  176.     "templates": [
  177.       {
  178.         "name": {
  179.           "text": "sut",
  180.           "x": 5,
  181.           "y": 5
  182.         },
  183.         "rootNode": "id0",
  184.         "declarations": [],
  185.         "nodes": [
  186.           {
  187.             "id": "id0",
  188.             "x": -204,
  189.             "y": -102,
  190.             "name": {
  191.               "text": "id0",
  192.               "x": -246,
  193.               "y": -119
  194.             }
  195.           },
  196.           {
  197.             "id": "id1",
  198.             "x": -68,
  199.             "y": -230,
  200.             "name": {
  201.               "text": "id1",
  202.               "x": -102,
  203.               "y": -238
  204.             }
  205.           },
  206.           {
  207.             "id": "id2",
  208.             "x": 59,
  209.             "y": -102,
  210.             "name": {
  211.               "text": "id3",
  212.               "x": 76,
  213.               "y": -119
  214.             }
  215.           },
  216.           {
  217.             "id": "id3",
  218.             "x": -68,
  219.             "y": 42,
  220.             "name": {
  221.               "text": "id2",
  222.               "x": -102,
  223.               "y": 42
  224.             },
  225.             "invariant": {
  226.               "x": -76,
  227.               "y": 59,
  228.               "text": "cl<=15"
  229.             }
  230.           }
  231.         ],
  232.         "transitions": [
  233.           {
  234.             "source": "id2",
  235.             "target": "id3",
  236.             "synchronisation": {
  237.               "x": 8,
  238.               "y": -26,
  239.               "text": "i_ch?"
  240.             },
  241.             "assignment": {
  242.               "x": -8,
  243.               "y": -9,
  244.               "text": "out=o2"
  245.             },
  246.             "comments": {
  247.               "x": 34,
  248.               "y": -51,
  249.               "text": "trans6"
  250.             }
  251.           },
  252.           {
  253.             "source": "id3",
  254.             "target": "id1",
  255.             "guard": {
  256.               "x": 153,
  257.               "y": -170,
  258.               "text": "i_ch_var>=i2 && \ni_ch_var<=6"
  259.             },
  260.             "assignment": {
  261.               "x": 153,
  262.               "y": -128,
  263.               "text": "out=o5"
  264.             },
  265.             "comments": {
  266.               "x": 153,
  267.               "y": -204,
  268.               "text": "trans7"
  269.             }
  270.           },
  271.           {
  272.             "source": "id1",
  273.             "target": "id2",
  274.             "synchronisation": {
  275.               "x": 8,
  276.               "y": -179,
  277.               "text": "o_ch!"
  278.             },
  279.             "assignment": {
  280.               "x": 25,
  281.               "y": -162,
  282.               "text": "o_ch_var=out,\n   cl=0"
  283.             },
  284.             "comments": {
  285.               "x": -8,
  286.               "y": -196,
  287.               "text": "trans5"
  288.             }
  289.           },
  290.           {
  291.             "source": "id1",
  292.             "target": "id0",
  293.             "synchronisation": {
  294.               "x": -221,
  295.               "y": -179,
  296.               "text": "o_ch!"
  297.             },
  298.             "assignment": {
  299.               "x": -272,
  300.               "y": -161,
  301.               "text": "o_ch_var=out,\ncl=0"
  302.             },
  303.             "comments": {
  304.               "x": -204,
  305.               "y": -204,
  306.               "text": "trans3"
  307.             }
  308.           },
  309.           {
  310.             "source": "id0",
  311.             "target": "id3",
  312.             "guard": {
  313.               "x": -119,
  314.               "y": -34,
  315.               "text": "i_ch_var<=i5"
  316.             },
  317.             "synchronisation": {
  318.               "x": -136,
  319.               "y": -51,
  320.               "text": "i_ch?"
  321.             },
  322.             "assignment": {
  323.               "x": -102,
  324.               "y": -17,
  325.               "text": "out=o1"
  326.             },
  327.             "comments": {
  328.               "x": -144,
  329.               "y": -68,
  330.               "text": "trans2"
  331.             }
  332.           },
  333.           {
  334.             "source": "id3",
  335.             "target": "id0",
  336.             "synchronisation": {
  337.               "x": -212,
  338.               "y": -1,
  339.               "text": "o_ch!"
  340.             },
  341.             "assignment": {
  342.               "x": -212,
  343.               "y": 16,
  344.               "text": "o_ch_var=out,\ncl=0"
  345.             },
  346.             "comments": {
  347.               "x": -212,
  348.               "y": -17,
  349.               "text": "trans4"
  350.             }
  351.           },
  352.           {
  353.             "source": "id1",
  354.             "target": "id1",
  355.             "assignment": {
  356.               "x": -93,
  357.               "y": -289,
  358.               "text": "out=o3"
  359.             },
  360.             "comments": {
  361.               "x": -93,
  362.               "y": -315,
  363.               "text": "trans8"
  364.             }
  365.           },
  366.           {
  367.             "source": "id0",
  368.             "target": "id1",
  369.             "guard": {
  370.               "x": -153,
  371.               "y": -128,
  372.               "text": "i_ch_var>5"
  373.             },
  374.             "synchronisation": {
  375.               "x": -136,
  376.               "y": -145,
  377.               "text": "i_ch?"
  378.             },
  379.             "assignment": {
  380.               "x": -153,
  381.               "y": -111,
  382.               "text": "out=o6"
  383.             },
  384.             "comments": {
  385.               "x": -102,
  386.               "y": -170,
  387.               "text": "trans1"
  388.             }
  389.           }
  390.         ]
  391.       },
  392.       {
  393.         "name": {},
  394.         "rootNode": "id4",
  395.         "declarations": [],
  396.         "nodes": [
  397.           {
  398.             "id": "id4",
  399.             "x": 0,
  400.             "y": 0,
  401.             "name": {
  402.               "text": "id30",
  403.               "x": -51,
  404.               "y": -8
  405.             }
  406.           },
  407.           {
  408.             "id": "id5",
  409.             "x": 136,
  410.             "y": 0,
  411.             "name": {
  412.               "text": "id31",
  413.               "x": 153,
  414.               "y": -8
  415.             }
  416.           }
  417.         ],
  418.         "transitions": [
  419.           {
  420.             "source": "id4",
  421.             "target": "id5",
  422.             "synchronisation": {
  423.               "x": 85,
  424.               "y": -34,
  425.               "text": "ch?"
  426.             },
  427.             "assignment": {
  428.               "x": 85,
  429.               "y": -17,
  430.               "text": "v=1"
  431.             },
  432.             "comments": {
  433.               "x": 17,
  434.               "y": -25,
  435.               "text": "trans13"
  436.             }
  437.           },
  438.           {
  439.             "source": "id5",
  440.             "target": "id4",
  441.             "assignment": {
  442.               "x": 85,
  443.               "y": 25,
  444.               "text": "inp=i7"
  445.             },
  446.             "testcode": {
  447.               "text": "trans"
  448.             },
  449.             "comments": {
  450.               "x": 17,
  451.               "y": 17,
  452.               "text": "trans15"
  453.             }
  454.           },
  455.           {
  456.             "source": "id5",
  457.             "target": "id4",
  458.             "assignment": {
  459.               "x": 85,
  460.               "y": -68,
  461.               "text": "inp=i2"
  462.             },
  463.             "comments": {
  464.               "x": 17,
  465.               "y": -68,
  466.               "text": "trans14"
  467.             }
  468.           }
  469.         ]
  470.       },
  471.       {
  472.         "name": {},
  473.         "rootNode": "id6",
  474.         "declarations": [],
  475.         "nodes": [
  476.           {
  477.             "id": "id6",
  478.             "x": -748,
  479.             "y": -357,
  480.             "name": {
  481.               "text": "id20",
  482.               "x": -799,
  483.               "y": -383
  484.             },
  485.             "invariant": {
  486.               "x": -807,
  487.               "y": -366,
  488.               "text": "cl<=20"
  489.             }
  490.           },
  491.           {
  492.             "id": "id7",
  493.             "x": -578,
  494.             "y": -357,
  495.             "name": {
  496.               "text": "id21",
  497.               "x": -561,
  498.               "y": -366
  499.             }
  500.           }
  501.         ],
  502.         "transitions": [
  503.           {
  504.             "source": "id6",
  505.             "target": "id6",
  506.             "guard": {
  507.               "x": -799,
  508.               "y": -451,
  509.               "text": "out>5&&v==0"
  510.             },
  511.             "synchronisation": {
  512.               "x": -773,
  513.               "y": -476,
  514.               "text": "ch!"
  515.             },
  516.             "assignment": {
  517.               "x": -764,
  518.               "y": -425,
  519.               "text": "cl=0"
  520.             },
  521.             "comments": {
  522.               "x": -841,
  523.               "y": -417,
  524.               "text": "trans9"
  525.             }
  526.           },
  527.           {
  528.             "source": "id6",
  529.             "target": "id7",
  530.             "guard": {
  531.               "x": -688,
  532.               "y": -417,
  533.               "text": "v==1"
  534.             },
  535.             "synchronisation": {
  536.               "x": -688,
  537.               "y": -434,
  538.               "text": "i_ch!"
  539.             },
  540.             "assignment": {
  541.               "x": -688,
  542.               "y": -400,
  543.               "text": "i_ch_var=inp"
  544.             },
  545.             "comments": {
  546.               "x": -688,
  547.               "y": -451,
  548.               "text": "trans11"
  549.             }
  550.           },
  551.           {
  552.             "source": "id7",
  553.             "target": "id6",
  554.             "synchronisation": {
  555.               "x": -688,
  556.               "y": -332,
  557.               "text": "o_ch?"
  558.             },
  559.             "assignment": {
  560.               "x": -688,
  561.               "y": -315,
  562.               "text": "out=o_ch_var,\ncl=0"
  563.             },
  564.             "comments": {
  565.               "x": -688,
  566.               "y": -357,
  567.               "text": "trans12"
  568.             }
  569.           },
  570.           {
  571.             "source": "id6",
  572.             "target": "id6",
  573.             "guard": {
  574.               "x": -799,
  575.               "y": -281,
  576.               "text": "out<=5&&v==0"
  577.             },
  578.             "synchronisation": {
  579.               "x": -765,
  580.               "y": -298,
  581.               "text": "ch!"
  582.             },
  583.             "assignment": {
  584.               "x": -765,
  585.               "y": -264,
  586.               "text": "cl=0"
  587.             },
  588.             "comments": {
  589.               "x": -841,
  590.               "y": -315,
  591.               "text": "trans10"
  592.             }
  593.           }
  594.         ]
  595.       }
  596.     ]
  597.   }
  598. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement