#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int __BNF_trans_string(char *);
int move_action(void) {
  int state;
  do {
    state = __BNF_trans_string("enter");
    if (!state)
      break;
    state = __BNF_trans_string("return");
    if (!state)
      break;
    state = __BNF_trans_string("jump");
    if (!state)
      break;
    state = __BNF_trans_string("climb");
    if (!state)
      break;
    state = __BNF_trans_string("retreat");
    if (!state)
      break;
    state = __BNF_trans_string("retread");
    if (!state)
      break;
    state = __BNF_trans_string("continue");
    if (!state)
      break;
    state = __BNF_trans_string("walk");
    if (!state)
      break;
    state = __BNF_trans_string("run");
    if (!state)
      break;
    state = __BNF_trans_string("exit");
    if (!state)
      break;
    state = __BNF_trans_string("leave");
    if (!state)
      break;
    state = __BNF_trans_string("crawl");
    if (!state)
      break;
    state = __BNF_trans_string("ascend");
    if (!state)
      break;
    state = __BNF_trans_string("descend");
    if (!state)
      break;
    state = __BNF_trans_string("cross");
    if (!state)
      break;
    state = __BNF_trans_string("swim");
  } while (0);
  return state;
}


x86 assembly (clang, -O0):
<move_action>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1136 <move_action+0x26>
jmp    12e9 <move_action+0x1d9>
lea    0xec9(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1154 <move_action+0x44>
jmp    12e9 <move_action+0x1d9>
lea    0xeb2(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1172 <move_action+0x62>
jmp    12e9 <move_action+0x1d9>
lea    0xe99(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1190 <move_action+0x80>
jmp    12e9 <move_action+0x1d9>
lea    0xe81(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    11ae <move_action+0x9e>
jmp    12e9 <move_action+0x1d9>
lea    0xe6b(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    11cc <move_action+0xbc>
jmp    12e9 <move_action+0x1d9>
lea    0xe55(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    11ea <move_action+0xda>
jmp    12e9 <move_action+0x1d9>
lea    0xe40(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1208 <move_action+0xf8>
jmp    12e9 <move_action+0x1d9>
lea    0xe27(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1226 <move_action+0x116>
jmp    12e9 <move_action+0x1d9>
lea    0xe0d(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1244 <move_action+0x134>
jmp    12e9 <move_action+0x1d9>
lea    0xdf4(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1262 <move_action+0x152>
jmp    12e9 <move_action+0x1d9>
lea    0xddc(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1280 <move_action+0x170>
jmp    12e9 <move_action+0x1d9>
lea    0xdc4(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    129e <move_action+0x18e>
jmp    12e9 <move_action+0x1d9>
lea    0xdad(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    12bc <move_action+0x1ac>
jmp    12e9 <move_action+0x1d9>
lea    0xd97(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    12da <move_action+0x1ca>
jmp    12e9 <move_action+0x1d9>
lea    0xd7f(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<move_action>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xeda(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xecd(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xebe(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xeb0(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xea4(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe98(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe8d(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe82(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe76(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe6b(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe61(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe57(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe4e(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe46(%rip),%rdi
call   1030 <__BNF_trans_string@plt>
test   %eax,%eax
je     122a <move_action+0x11a>
lea    0xe3c(%rip),%rdi
pop    %rax
jmp    1030 <__BNF_trans_string@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"enter\00"
@.str.1 = [7 x i8] c"return\00"
@.str.2 = [5 x i8] c"jump\00"
@.str.3 = [6 x i8] c"climb\00"
@.str.4 = [8 x i8] c"retreat\00"
@.str.5 = [8 x i8] c"retread\00"
@.str.6 = [9 x i8] c"continue\00"
@.str.7 = [5 x i8] c"walk\00"
@.str.8 = [4 x i8] c"run\00"
@.str.9 = [5 x i8] c"exit\00"
@.str.10 = [6 x i8] c"leave\00"
@.str.11 = [6 x i8] c"crawl\00"
@.str.12 = [7 x i8] c"ascend\00"
@.str.13 = [8 x i8] c"descend\00"
@.str.14 = [6 x i8] c"cross\00"
@.str.15 = [5 x i8] c"swim\00"
define i32 @move_action() {
%1 = alloca i32
br label %2
2: ; preds = %0
%3 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp ne i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %2
br label %79
7: ; preds = %2
%8 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 %8, i32* %1
%9 = load i32, i32* %1
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %7
br label %79
12: ; preds = %7
%13 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 %13, i32* %1
%14 = load i32, i32* %1
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %12
br label %79
17: ; preds = %12
%18 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i32 %18, i32* %1
%19 = load i32, i32* %1
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %17
br label %79
22: ; preds = %17
%23 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
store i32 %23, i32* %1
%24 = load i32, i32* %1
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %22
br label %79
27: ; preds = %22
%28 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
store i32 %28, i32* %1
%29 = load i32, i32* %1
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %27
br label %79
32: ; preds = %27
%33 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 %33, i32* %1
%34 = load i32, i32* %1
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %32
br label %79
37: ; preds = %32
%38 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
store i32 %38, i32* %1
%39 = load i32, i32* %1
%40 = icmp ne i32 %39, 0
br i1 %40, label %42, label %41
41: ; preds = %37
br label %79
42: ; preds = %37
%43 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
store i32 %43, i32* %1
%44 = load i32, i32* %1
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %42
br label %79
47: ; preds = %42
%48 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
store i32 %48, i32* %1
%49 = load i32, i32* %1
%50 = icmp ne i32 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %47
br label %79
52: ; preds = %47
%53 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
store i32 %53, i32* %1
%54 = load i32, i32* %1
%55 = icmp ne i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %52
br label %79
57: ; preds = %52
%58 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
store i32 %58, i32* %1
%59 = load i32, i32* %1
%60 = icmp ne i32 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %57
br label %79
62: ; preds = %57
%63 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
store i32 %63, i32* %1
%64 = load i32, i32* %1
%65 = icmp ne i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %62
br label %79
67: ; preds = %62
%68 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
store i32 %68, i32* %1
%69 = load i32, i32* %1
%70 = icmp ne i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %67
br label %79
72: ; preds = %67
%73 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
store i32 %73, i32* %1
%74 = load i32, i32* %1
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %72
br label %79
77: ; preds = %72
%78 = call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
store i32 %78, i32* %1
br label %79
79: ; preds = %77, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11, %6
%80 = load i32, i32* %1
ret i32 %80
}

LLVM IR (-O2):
@.str = [6 x i8] c"enter\00"
@.str.1 = [7 x i8] c"return\00"
@.str.2 = [5 x i8] c"jump\00"
@.str.3 = [6 x i8] c"climb\00"
@.str.4 = [8 x i8] c"retreat\00"
@.str.5 = [8 x i8] c"retread\00"
@.str.6 = [9 x i8] c"continue\00"
@.str.7 = [5 x i8] c"walk\00"
@.str.8 = [4 x i8] c"run\00"
@.str.9 = [5 x i8] c"exit\00"
@.str.10 = [6 x i8] c"leave\00"
@.str.11 = [6 x i8] c"crawl\00"
@.str.12 = [7 x i8] c"ascend\00"
@.str.13 = [8 x i8] c"descend\00"
@.str.14 = [6 x i8] c"cross\00"
@.str.15 = [5 x i8] c"swim\00"
define i32 @move_action() {
%1 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %47, label %3
3: ; preds = %0
%4 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %47, label %6
6: ; preds = %3
%7 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %47, label %9
9: ; preds = %6
%10 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %47, label %12
12: ; preds = %9
%13 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %47, label %15
15: ; preds = %12
%16 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %47, label %18
18: ; preds = %15
%19 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %47, label %21
21: ; preds = %18
%22 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %47, label %24
24: ; preds = %21
%25 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %47, label %27
27: ; preds = %24
%28 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %47, label %30
30: ; preds = %27
%31 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %47, label %33
33: ; preds = %30
%34 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %47, label %36
36: ; preds = %33
%37 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%38 = icmp eq i32 %37, 0
br i1 %38, label %47, label %39
39: ; preds = %36
%40 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %39
%43 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = tail call i32 @__BNF_trans_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %47
47: ; preds = %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %0, %45
%48 = phi i32 [ %46, %45 ], [ 0, %42 ], [ 0, %39 ], [ 0, %36 ], [ 0, %33 ], [ 0, %30 ], [ 0, %27 ], [ 0, %24 ], [ 0, %21 ], [ 0, %18 ], [ 0, %15 ], [ 0, %12 ], [ 0, %9 ], [ 0, %6 ], [ 0, %3 ], [ 0, %0 ]
ret i32 %48
}