More examples
This commit is contained in:
8
testing/examples/bisimilarity.system
Normal file
8
testing/examples/bisimilarity.system
Normal file
@ -0,0 +1,8 @@
|
||||
Environment: [x = {a}.y, y =({a}.x + {b}.y)]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Bisimilarity ("bisimilarity2.system")
|
||||
relabel label { return true }
|
||||
> Print,
|
||||
4
testing/examples/bisimilarity2.system
Normal file
4
testing/examples/bisimilarity2.system
Normal file
@ -0,0 +1,4 @@
|
||||
Environment: [x = {a}.y, y =({a}.x + {b}.y)]
|
||||
Initial Entities: {a}
|
||||
Context: [{a,b}.{a}.{a,c}.nill]
|
||||
Reactions: ([r: {a,b}, i: {c}, p: {b}])
|
||||
3
testing/examples/deserialize.system
Normal file
3
testing/examples/deserialize.system
Normal file
@ -0,0 +1,3 @@
|
||||
Deserialize ("deserialize.serial")
|
||||
|
||||
Stats > Print
|
||||
16
testing/examples/digraph.system
Normal file
16
testing/examples/digraph.system
Normal file
@ -0,0 +1,16 @@
|
||||
Environment: [x = {a}.y, y =({a}.x + {b}.y) ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Digraph > Dot
|
||||
| Entities " - " Context " - entities masked: " MaskEntities {a}
|
||||
| Entities
|
||||
| Entities < {a} ? "blue" ! "white"
|
||||
| ! "black"
|
||||
> Print,
|
||||
|
||||
Digraph > GraphML
|
||||
| Entities
|
||||
| Entities
|
||||
> Print
|
||||
2
testing/examples/fastfrequency.experiment
Normal file
2
testing/examples/fastfrequency.experiment
Normal file
@ -0,0 +1,2 @@
|
||||
Weights: 10, 5
|
||||
Sets: {a,b}, {a}
|
||||
6
testing/examples/fastfrequency.system
Normal file
6
testing/examples/fastfrequency.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [ x = {b}.{c}.x ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a}, {b}, {b}]; [{b}, {a}, {a}]; [{c}, {b}, {c}])
|
||||
|
||||
FastFrequency("fastfrequency.experiment") > Print
|
||||
6
testing/examples/frequency.system
Normal file
6
testing/examples/frequency.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [x = {a}.y, y =({a}.{a, b}.nill + {b}.nill) ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Frequency > Print
|
||||
2
testing/examples/limitfrequency.experiment
Normal file
2
testing/examples/limitfrequency.experiment
Normal file
@ -0,0 +1,2 @@
|
||||
Weights: 10, 5
|
||||
Sets: {a,b}, {a}
|
||||
6
testing/examples/limitfrequency.system
Normal file
6
testing/examples/limitfrequency.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [ x = {b}.{c}.x ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a}, {b}, {b}]; [{b}, {a}, {a}]; [{c}, {b}, {c}])
|
||||
|
||||
LimitFrequency("limitfrequency.experiment") > Print
|
||||
7
testing/examples/loop.system
Normal file
7
testing/examples/loop.system
Normal file
@ -0,0 +1,7 @@
|
||||
Environment: [ x = {b}.x, y = {a, c}.y ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.y)]
|
||||
Reactions: ([{a}, {b}, {b}]; [{b}, {a}, {a}]; [{c}, {}, {d}])
|
||||
|
||||
Loop (x) > Print,
|
||||
Loop (y) > Print
|
||||
6
testing/examples/run.system
Normal file
6
testing/examples/run.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [x = {a}.y, y =({a}.{a, b}.nill + {b}.nill) ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Run > Print
|
||||
8
testing/examples/serialize.system
Normal file
8
testing/examples/serialize.system
Normal file
@ -0,0 +1,8 @@
|
||||
Environment: [x = {a}.y, y =({a}.x + {b}.y)]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Digraph > Serialize ("deserialize.serial"),
|
||||
|
||||
Stats > Print
|
||||
6
testing/examples/stats.system
Normal file
6
testing/examples/stats.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [x = {a}.y, y =({a}.x + {b}.y) ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Stats > Print
|
||||
6
testing/examples/target.system
Normal file
6
testing/examples/target.system
Normal file
@ -0,0 +1,6 @@
|
||||
Environment: [x = {a}.y, y =({a}.{a, b}.nill + {b}.nill) ]
|
||||
Initial Entities: {a, b}
|
||||
Context: [({a,b}.{a}.{a,c}.x + {a,b}.{a}.{a}.nill)]
|
||||
Reactions: ([{a,b}, {c}, {b}])
|
||||
|
||||
Target > Print
|
||||
Reference in New Issue
Block a user