You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

210 lines
6.7 KiB

{
"actions": [],
"automata": [
{
"edges": [
{
"destinations": [
{
"assignments": [
{
"comment": "x <- 0",
"ref": "x",
"value": 0
}
],
"location": "l",
"probability": {
"comment": "(c / 2)",
"exp": {
"left": "c",
"op": "/",
"right": 2
}
}
},
{
"assignments": [
{
"comment": "x <- (x + 1)",
"ref": "x",
"value": {
"left": "x",
"op": "+",
"right": 1
}
}
],
"location": "l",
"probability": {
"comment": "((2 - c) / 2)",
"exp": {
"left": {
"left": 2,
"op": "-",
"right": "c"
},
"op": "/",
"right": 2
}
}
}
],
"guard": {
"comment": "(x < 4)",
"exp": {
"left": "x",
"op": "<",
"right": 4
}
},
"location": "l"
}
],
"initial-locations": [
"l"
],
"locations": [
{
"name": "l"
}
],
"name": "first",
"variables": [
{
"initial-value": 0,
"name": "x",
"type": {
"base": "int",
"kind": "bounded",
"lower-bound": 0,
"upper-bound": 4
}
},
{
"initial-value": 1,
"name": "c",
"type": "real"
}
]
},
{
"edges": [
{
"destinations": [
{
"assignments": [
{
"comment": "y <- 0",
"ref": "y",
"value": 0
}
],
"location": "l",
"probability": {
"comment": "((c + 1) / 2)",
"exp": {
"left": {
"left": "c",
"op": "+",
"right": 1
},
"op": "/",
"right": 2
}
}
},
{
"assignments": [
{
"comment": "y <- (y + 1)",
"ref": "y",
"value": {
"left": "y",
"op": "+",
"right": 1
}
}
],
"location": "l",
"probability": {
"comment": "((1 - c) / 2)",
"exp": {
"left": {
"left": 1,
"op": "-",
"right": "c"
},
"op": "/",
"right": 2
}
}
}
],
"guard": {
"comment": "(y < 4)",
"exp": {
"left": "y",
"op": "<",
"right": 4
}
},
"location": "l"
}
],
"initial-locations": [
"l"
],
"locations": [
{
"name": "l"
}
],
"name": "second",
"variables": [
{
"initial-value": 0,
"name": "y",
"type": {
"base": "int",
"kind": "bounded",
"lower-bound": 0,
"upper-bound": 4
}
},
{
"name": "c",
"type": "int"
}
]
}
],
"constants": [
{
"name": "c",
"type": "int",
"value": 0
}
],
"features": [
"derived-operators"
],
"jani-version": 1,
"name": "realVariables",
"properties": [],
"restrict-initial": {
"exp": true
},
"system": {
"elements": [
{
"automaton": "first"
},
{
"automaton": "second"
}
]
},
"type": "mdp",
"variables": []
}