summaryrefslogtreecommitdiff
path: root/test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp')
-rw-r--r--test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp282
1 files changed, 282 insertions, 0 deletions
diff --git a/test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp b/test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp
new file mode 100644
index 00000000..ee1f4211
--- /dev/null
+++ b/test/rlhc.d/case/caseindep_go.go-Z-G0--goto-backend.exp
@@ -0,0 +1,282 @@
+package main
+import "fmt"
+
+
+
+
+
+
+var cs int;
+var blen int;
+var buffer [1024] byte;
+
+var _indep_nfa_targs [] int8 = [] int8 { 0, 0 }
+var _indep_nfa_offsets [] int8 = [] int8 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
+var _indep_nfa_push_actions [] int8 = [] int8 { 0, 0 }
+var _indep_nfa_pop_trans [] int8 = [] int8 { 0, 0 }
+var indep_start int = 1
+var indep_first_final int = 13
+var indep_error int = 0
+var indep_en_main int = 1
+func prepare() {
+
+ {
+ cs = int(indep_start);
+ }
+}
+
+func exec(data string) {
+ var p int = 0
+ var pe int = len(data)
+
+ {
+
+ if p == pe {
+ goto _test_eof;
+
+ }
+ if cs == 0 {
+ goto _out;
+
+ }
+ _resume:
+ switch cs {
+ case 1:
+ switch {
+ case ( data[p ]) > 51 :
+ {
+ if ( data[p ]) <= 54 {
+ {
+ goto ctr2;
+ }
+
+ }
+ }
+ case ( data[p ]) >= 49 :
+ {
+ goto ctr0;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 0:
+ goto _out;
+ case 2:
+ if ( data[p ]) == 104 {
+ {
+ goto ctr3;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 3:
+ if ( data[p ]) == 101 {
+ {
+ goto ctr4;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 4:
+ if ( data[p ]) == 108 {
+ {
+ goto ctr5;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 5:
+ if ( data[p ]) == 108 {
+ {
+ goto ctr6;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 6:
+ if ( data[p ]) == 111 {
+ {
+ goto ctr7;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 7:
+ if ( data[p ]) == 10 {
+ {
+ goto ctr8;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 13:
+ {
+ goto ctr1;
+ }
+ case 8:
+ switch ( data[p ]) {
+ case 72:
+ {
+ goto ctr9;
+ }
+ case 104:
+ {
+ goto ctr9;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 9:
+ switch ( data[p ]) {
+ case 69:
+ {
+ goto ctr10;
+ }
+ case 101:
+ {
+ goto ctr10;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 10:
+ switch ( data[p ]) {
+ case 76:
+ {
+ goto ctr11;
+ }
+ case 108:
+ {
+ goto ctr11;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 11:
+ switch ( data[p ]) {
+ case 76:
+ {
+ goto ctr12;
+ }
+ case 108:
+ {
+ goto ctr12;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+ case 12:
+ switch ( data[p ]) {
+ case 79:
+ {
+ goto ctr7;
+ }
+ case 111:
+ {
+ goto ctr7;
+ }
+
+ }
+ {
+ goto ctr1;
+ }
+
+ }
+ ctr1: cs = 0;
+ goto _again;
+ ctr0: cs = 2;
+ goto _again;
+ ctr3: cs = 3;
+ goto _again;
+ ctr4: cs = 4;
+ goto _again;
+ ctr5: cs = 5;
+ goto _again;
+ ctr6: cs = 6;
+ goto _again;
+ ctr7: cs = 7;
+ goto _again;
+ ctr2: cs = 8;
+ goto _again;
+ ctr9: cs = 9;
+ goto _again;
+ ctr10: cs = 10;
+ goto _again;
+ ctr11: cs = 11;
+ goto _again;
+ ctr12: cs = 12;
+ goto _again;
+ ctr8: cs = 13;
+ goto _again;
+
+ _again:
+ if cs == 0 {
+ goto _out;
+
+ }
+ p += 1;
+ if p != pe {
+ goto _resume;
+
+ }
+ _test_eof: {}
+ _out: {}
+ }
+}
+func finish() {
+ if cs >= indep_first_final {
+ fmt.Println("ACCEPT")
+ } else {
+ fmt.Println("FAIL")
+ }
+}
+var inp []string = []string {
+ "1hello\n",
+ "1HELLO\n",
+ "1HeLLo\n",
+ "2hello\n",
+ "2HELLO\n",
+ "2HeLLo\n",
+ "3hello\n",
+ "3HELLO\n",
+ "3HeLLo\n",
+ "4hello\n",
+ "4HELLO\n",
+ "4HeLLo\n",
+ "5hello\n",
+ "5HELLO\n",
+ "5HeLLo\n",
+ "6hello\n",
+ "6HELLO\n",
+ "6HeLLo\n",
+};
+
+func main() {
+ for _, data := range inp {
+ prepare()
+ exec(data)
+ finish()
+ }
+}