diff --git a/switch_inconsistency_input.txt b/switch_inconsistency_input.txt new file mode 100644 index 0000000..d068f34 --- /dev/null +++ b/switch_inconsistency_input.txt @@ -0,0 +1,72 @@ +add switch (0,0) -> (5,0),(0,5) +add switch (10,0) -> (5,0),(10,5) +set switch 1 position (0,5) +set switch 2 position (10,5) +create train-set a 1 1 true true +add train 1 a-1 +put train 1 at (5,0) in direction 0,1 +put train 1 at (5,0) in direction 0,-1 +put train 1 at (5,0) in direction 1,0 +put train 1 at (5,0) in direction -1,0 +create train-set a 3 3 true true +add train 2 a-3 +put train 2 at (5,0) in direction 0,1 +put train 2 at (5,0) in direction 0,-1 +put train 2 at (5,0) in direction 1,0 +put train 2 at (5,0) in direction -1,0 +create train-set a 5 5 true true +add train 3 a-5 +put train 3 at (5,0) in direction 0,1 +put train 3 at (5,0) in direction 0,-1 +put train 3 at (5,0) in direction 1,0 +put train 3 at (5,0) in direction -1,0 +create train-set a 8 8 true true +add train 4 a-8 +put train 4 at (5,0) in direction 0,1 +put train 4 at (5,0) in direction 0,-1 +put train 4 at (5,0) in direction 1,0 +put train 4 at (5,0) in direction -1,0 +create train-set a 10 10 true true +add train 5 a-10 +put train 5 at (5,0) in direction 0,1 +put train 5 at (5,0) in direction 0,-1 +put train 5 at (5,0) in direction 1,0 +put train 5 at (5,0) in direction -1,0 +create train-set a 12 12 true true +add train 6 a-12 +put train 6 at (5,0) in direction 0,1 +put train 6 at (5,0) in direction 0,-1 +put train 6 at (5,0) in direction 1,0 +put train 6 at (5,0) in direction -1,0 +step 2000 +add track (-5,0) -> (0,0) +put train 2 at (-5,0) in direction -1,0 +step 420 +put train 2 at (-5,0) in direction 0,1 +step 420 +put train 2 at (-5,0) in direction 0,-1 +step 420 +put train 2 at (-5,0) in direction 1,0 +step 420 +add switch (-10,0) -> (-5,0),(-10,5) +set switch 4 position (-10,5) +put train 2 at (-5,0) in direction -1,0 +step 420 +put train 2 at (-5,0) in direction 0,1 +step 420 +put train 2 at (-5,0) in direction 0,-1 +step 420 +put train 2 at (-5,0) in direction 1,0 +step 420 +delete track 4 +add switch (-5,5) -> (-5,0),(-10,5) +set switch 4 position (-10,5) +put train 2 at (-5,0) in direction -1,0 +step 420 +put train 2 at (-5,0) in direction 0,1 +step 420 +put train 2 at (-5,0) in direction 0,-1 +step 420 +put train 2 at (-5,0) in direction 1,0 +step 420 +exit diff --git a/switch_inconsistency_output.txt b/switch_inconsistency_output.txt new file mode 100644 index 0000000..f6b0f6b --- /dev/null +++ b/switch_inconsistency_output.txt @@ -0,0 +1,71 @@ +1 +2 +OK +OK +a-1 +train-set a-1 added to train 1 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +a-3 +train-set a-3 added to train 2 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +a-5 +train-set a-5 added to train 3 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +a-8 +train-set a-8 added to train 4 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +a-10 +train-set a-10 added to train 5 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +a-12 +train-set a-12 added to train 6 +Error, could not place train +Error, could not place train +Error, could not place train +Error, could not place train +OK +3 +OK +Crash of train 2 +Error, could not place train +OK +Error, could not place train +OK +Error, could not place train +OK +4 +OK +OK +Crash of train 2 +Error, could not place train +OK +Error, could not place train +OK +Error, could not place train +OK +OK +4 +OK +OK +Crash of train 2 +OK +Crash of train 2 +Error, could not place train +OK +Error, could not place train +OK