diff --git a/test/compiler/sncExOpt_DuplOpt.st b/test/compiler/sncExOpt_DuplOpt.st index de11bf650cb2fa384afc8073da2964109961181c..3f08c83207a0ad8f4f8310f115afa6b8b2c951c4 100644 --- a/test/compiler/sncExOpt_DuplOpt.st +++ b/test/compiler/sncExOpt_DuplOpt.st @@ -3,39 +3,28 @@ float v; assign v to "grw:xxxExample"; monitor v; -ss ss1 -{ - state low - { - option +t; - entry - { - printf("Will do this on entry"); - printf("Another thing to do on entry"); - } - when(v>5.0) - { - printf("now changing to high\n"); - } state high - when(delay(.1)) - { - } state low - exit - { - printf("Something to do on exit"); - } - - } - state high - { - option -t; - option +t; - when(v<=5.0) - { - printf("changing to low\n"); - } state low - when(delay(.1)) - { - } state high - } +ss ss1 { + state low { + option + t; + entry { + printf("Will do this on entry"); + printf("Another thing to do on entry"); + } + when(v > 5.0) { + printf("now changing to high\n"); + } state high + when(delay(.1)) { + } state low + exit { + printf("Something to do on exit"); + } + } state high { + option - t; + option + t; + when(v <= 5.0) { + printf("changing to low\n"); + } state low + when(delay(.1)) { + } state high + } } diff --git a/test/compiler/sncExOpt_UnrecOpt.st b/test/compiler/sncExOpt_UnrecOpt.st index ee0707455b802e6280f113974df587d4c4bd4521..8b1cf90c2fc15fca615cfa252b56e5bc9d3dbef9 100644 --- a/test/compiler/sncExOpt_UnrecOpt.st +++ b/test/compiler/sncExOpt_UnrecOpt.st @@ -3,38 +3,27 @@ float v; assign v to "grw:xxxExample"; monitor v; -ss ss1 -{ - state low - { - option +tc; - entry - { - printf("Will do this on entry"); - printf("Another thing to do on entry"); - } - when(v>5.0) - { - printf("now changing to high\n"); - } state high - when(delay(.1)) - { - } state low - exit - { - printf("Something to do on exit"); - } - - } - state high - { - option -t; - when(v<=5.0) - { - printf("changing to low\n"); - } state low - when(delay(.1)) - { - } state high - } +ss ss1 { + state low { + option + tc; + entry { + printf("Will do this on entry"); + printf("Another thing to do on entry"); + } + when(v > 5.0) { + printf("now changing to high\n"); + } state high + when(delay(.1)) { + } state low + exit { + printf("Something to do on exit"); + } + } state high { + option - t; + when(v <= 5.0) { + printf("changing to low\n"); + } state low + when(delay(.1)) { + } state high + } }