X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=uppaal%2F2.xml;h=dcbd6c3fa8407b0143f20d8c60941afcf1ccc383;hb=175407c2b06242eca3a373fd6e75f8bb46bffa19;hp=29e4e8f5da335c65c2f3d26d0da9e875a48ea584;hpb=53484c4fd63f80db558d9c0a4f00b3e8e61f2db2;p=mc1516the.git diff --git a/uppaal/2.xml b/uppaal/2.xml index 29e4e8f..dcbd6c3 100644 --- a/uppaal/2.xml +++ b/uppaal/2.xml @@ -3,11 +3,15 @@ // Place global declarations here. // Intermediate -const int N = 13; +//const int N=13; // Advanced -//const int N = 7 +//const int N = 7; +//hard from website 1 +const int N=13; +//hard from website 2 +//const int N=9; -typedef int[0,N-1] id_c; +typedef int[0, N-1] id_c; broadcast chan up[N], down[N], left[N], right[N], start, leftRed, rightRed; @@ -48,7 +52,7 @@ void register() { - + @@ -59,7 +63,7 @@ x:=x-1 - + @@ -89,7 +93,7 @@ x:=x+1 - + @@ -101,10 +105,10 @@ x:=x+1 - - - - - - Player int[0,N] registered; bool done = 0; - + - + - + - - + + - - + + - - - - - + + + + + // Place template instantiations here. + + +//easy test puzzle +/* +RED = RedCar(0,2); +V1 = VertCar(2, 1, 4, 3); +V2 = VertCar(3, 2, 5, 2); +system RED, V1, V2, Player; +*/ + // Intermediate puzzle + H1 = HorzCar(2, 0, 0, 5); H2 = HorzCar(2, 1, 2, 5); V3 = VertCar(2, 2, 4, 4); @@ -221,13 +266,14 @@ V4 = VertCar(2, 3, 2, 3); V5 = VertCar(3, 4, 5, 2); V6 = VertCar(2, 5, 1, 3); H7 = HorzCar(2, 6, 3, 4); -H8 = RedCar(7, 2); //RED +RED = RedCar(7, 2); //RED V9 = VertCar(3, 8, 0, 0); HA = HorzCar(2, 9, 1, 0); VB = VertCar(2, 10, 3, 0); HC = HorzCar(2, 11, 4, 1); HD = HorzCar(2, 12, 4, 0); -system H1, H2, V3, V4, V5, V6, H7, H8, V9, HA, VB, HC, HD, Player; +system H1, H2, V3, V4, V5, V6, H7, RED, V9, HA, VB, HC, HD, Player; + // Advanced puzzle /* @@ -235,15 +281,44 @@ H1 = HorzCar(2, 0, 0, 5); V2 = VertCar(2, 1, 2, 4); V3 = VertCar(3, 2, 3, 3); V4 = VertCar(3, 3, 0, 2); -H5 = HorzCar(2, 4, 1, 3); +RED = RedCar(4, 1); H6 = HorzCar(3, 5, 1, 2); H7 = HorzCar(3, 6, 3, 0); -system H1, V2, V3, V4, H5, H6, H7 +system H1, V2, V3, V4, RED, H6, H7, Player; */ -// List one or more processes to be composed into a system. +//Hard from website 1 +//Can not be solved +/* +V1 = VertCar(2, 0, 0, 3); +V2 = VertCar(2, 1, 1, 0); +V3 = VertCar(2, 2, 2, 1); +V4 = VertCar(2, 3, 3, 4); +V5 = VertCar(3, 4, 4, 3); +V6 = VertCar(3, 5, 5, 3); +H7 = HorzCar(2, 6, 0, 2); +H8 = HorzCar(3, 7, 0, 5); +H85= HorzCar(3,12, 1, 4); +H9 = HorzCar(2, 8, 2, 0); +RED = RedCar(9, 2); +HB = HorzCar(2,10, 4, 0); +HC = HorzCar(2,11, 4, 1); +system V1, V2, V3, V4, V5, V6, H7, H8, H85, H9, RED, HB, HC, Player; +*/ - +//Hard from website 2 +/* +V1 = VertCar(2, 0, 0, 0); +V2 = VertCar(3, 1, 2, 3); +V3 = VertCar(3, 2, 3, 0); +V4 = VertCar(3, 3, 5, 3); +H5 = HorzCar(2, 4, 1, 1); +RED = RedCar(5, 3); +H7 = HorzCar(2, 6, 3, 5); +H8 = HorzCar(2, 7, 4, 0); +H9 = HorzCar(2, 8, 4, 2); +system V1, V2, V3, V4, H5, RED, H7, H8, H9, Player; +*/ E<> Player.done == 1