#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, char *);
scalar_t__ strcmp(char *, char *);
int main() {
  int i = 0, len = 0, n = 0;
  int a = 0, b = 1, c = 2, d = 3, e = 4, f = 5;
  char cmnd[15];
  char click[15] = "button_clicked";
  char cycle[15] = "cycle_complete";
  int arr[100] = {0};
  while (scanf("%s", cmnd) != EOF) {
    if (0 == strcmp(cmnd, click)) {
      arr[i] = 1;
    }
    if (0 == strcmp(cmnd, cycle)) {
      arr[i] = 0;
    }
    i++;
    len++;
  }
  i = 0;
  printf("Door: CLOSED\n");
  while (i < len) {
    if (arr[i] == 1) {
      switch (n) {
      case 0:
        printf("Door: OPENING\n");
        n = b;
        break;
      case 2:
        printf("Door: CLOSING\n");
        n = d;
        break;
      case 1:
        printf("Door: STOPPED_WHILE_OPENING\n");
        n = c;
        break;
      case 3:
        printf("Door: STOPPED_WHILE_CLOSING\n");
        n = e;
        break;
      case 4:
        printf("Door: OPENING\n");
        n = b;
        break;
      case 5:
        printf("Door: CLOSING\n");
        n = d;
        break;
      }
    }
    if (arr[i] == 0) {
      switch (n) {
      case 1:
        printf("Door: OPEN\n");
        n = f;
        break;
      case 5:
        printf("Door: OPEN\n");
        n = f;
        break;
      case 0:
        printf("Door: CLOSED\n");
        n = a;
        break;
      case 3:
        printf("Door: CLOSED\n");
        n = a;
        break;
      }
    }
    i++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x2,-0x1c(%rbp)
movl   $0x3,-0x20(%rbp)
movl   $0x4,-0x24(%rbp)
movl   $0x5,-0x28(%rbp)
mov    0xe98(%rip),%rax
mov    %rax,-0x46(%rbp)
mov    0xe96(%rip),%eax
mov    %eax,-0x3e(%rbp)
mov    0xe90(%rip),%ax
mov    %ax,-0x3a(%rbp)
mov    0xe88(%rip),%al
mov    %al,-0x38(%rbp)
mov    0xe7f(%rip),%rax
mov    %rax,-0x55(%rbp)
mov    0xe7d(%rip),%eax
mov    %eax,-0x4d(%rbp)
mov    0xe77(%rip),%ax
mov    %ax,-0x49(%rbp)
mov    0xe6f(%rip),%al
mov    %al,-0x47(%rbp)
lea    -0x1f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
lea    -0x37(%rbp),%rsi
lea    0xe4f(%rip),%rdi
call   1060 <scanf@plt>
mov    0x2ddd(%rip),%rcx
cmp    (%rcx),%rax
je     127f <main+0x13f>
lea    -0x37(%rbp),%rdi
lea    -0x46(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    123e <main+0xfe>
movslq -0x8(%rbp),%rax
movl   $0x1,-0x1f0(%rbp,%rax,4)
lea    -0x37(%rbp),%rdi
lea    -0x55(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1268 <main+0x128>
movslq -0x8(%rbp),%rax
movl   $0x0,-0x1f0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f4 <main+0xb4>
movl   $0x0,-0x8(%rbp)
lea    0xdc4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    140c <main+0x2cc>
movslq -0x8(%rbp),%rax
cmpl   $0x1,-0x1f0(%rbp,%rax,4)
01
jne    1365 <main+0x225>
mov    -0x10(%rbp),%eax
mov    %rax,-0x1f8(%rbp)
sub    $0x5,%rax
ja     1360 <main+0x220>
mov    -0x1f8(%rbp),%rax
lea    0xd2e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd7d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1360 <main+0x220>
lea    0xd75(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1360 <main+0x220>
lea    0xd6d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1360 <main+0x220>
lea    0xd73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1360 <main+0x220>
lea    0xd21(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1360 <main+0x220>
lea    0xd19(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1365 <main+0x225>
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0x1f0(%rbp,%rax,4)
jne    13fe <main+0x2be>
mov    -0x10(%rbp),%eax
mov    %rax,-0x200(%rbp)
sub    $0x5,%rax
ja     13f9 <main+0x2b9>
mov    -0x200(%rbp),%rax
lea    0xc7f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd0e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    13f9 <main+0x2b9>
lea    0xcf7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    13f9 <main+0x2b9>
lea    0xc7a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    13f9 <main+0x2b9>
lea    0xc63(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    13fe <main+0x2be>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1292 <main+0x152>
xor    %eax,%eax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1c8,%rsp
movabs $0x64656b63696c63,%rax
mov    %rax,0x17(%rsp)
movabs $0x635f6e6f74747562,%rax
6e 5f 63
mov    %rax,0x10(%rsp)
movabs $0x6574656c706d6f,%rax
mov    %rax,0x7(%rsp)
movabs $0x6f635f656c637963,%rax
5f 63 6f
mov    %rax,(%rsp)
lea    0x30(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0xe7a(%rip),%rdi
lea    0x21(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x2e33(%rip),%r13
cmp    0x0(%r13),%rax
jne    11cc <main+0x8c>
lea    0xe5f(%rip),%rdi
call   1030 <puts@plt>
jmp    12cc <main+0x18c>
xor    %ebp,%ebp
lea    0x21(%rsp),%rbx
lea    0x10(%rsp),%r14
mov    %rsp,%r15
lea    0xe3c(%rip),%r12
jmp    1205 <main+0xc5>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbp
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
cmp    0x0(%r13),%rax
je     1237 <main+0xf7>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    121d <main+0xdd>
movl   $0x1,0x30(%rsp,%rbp,4)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11f0 <main+0xb0>
movl   $0x0,0x30(%rsp,%rbp,4)
jmp    11f0 <main+0xb0>
lea    0xde3(%rip),%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
je     12cc <main+0x18c>
mov    %ebp,%r14d
xor    %ebx,%ebx
mov    $0x2b,%r13d
lea    0xe33(%rip),%rbp
lea    0x2b54(%rip),%r15
xor    %r12d,%r12d
jmp    1289 <main+0x149>
nopl   0x0(%rax)
movslq %r12d,%rdx
mov    (%rax,%rdx,8),%rdi
mov    (%rcx,%rdx,4),%r12d
call   1030 <puts@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
je     12cc <main+0x18c>
mov    0x30(%rsp,%rbx,4),%eax
test   %eax,%eax
je     12b0 <main+0x170>
cmp    $0x1,%eax
jne    1280 <main+0x140>
mov    %r15,%rax
mov    %rbp,%rcx
cmp    $0x6,%r12d
jb     1270 <main+0x130>
jmp    1280 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    $0x5,%r12d
ja     1280 <main+0x140>
bt     %r12d,%r13d
lea    0x2b27(%rip),%rax
lea    0xde0(%rip),%rcx
jb     1270 <main+0x130>
jmp    1280 <main+0x140>
xor    %eax,%eax
add    $0x1c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.click = [15 x i8] c"button_clicked\00"
@__const.main.cycle = [15 x i8] c"cycle_complete\00"
@.str = [3 x i8] c"%s\00"
@EOF = global i64 0
@.str.1 = [14 x i8] c"Door: CLOSED\0A\00"
@.str.2 = [15 x i8] c"Door: OPENING\0A\00"
@.str.3 = [15 x i8] c"Door: CLOSING\0A\00"
@.str.4 = [29 x i8] c"Door: STOPPED_WHILE_OPENING\0A\00"
@.str.5 = [29 x i8] c"Door: STOPPED_WHILE_CLOSING\0A\00"
@.str.6 = [12 x i8] c"Door: OPEN\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [15 x i8]
%12 = alloca [15 x i8]
%13 = alloca [15 x i8]
%14 = alloca [100 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 1, i32* %6
store i32 2, i32* %7
store i32 3, i32* %8
store i32 4, i32* %9
store i32 5, i32* %10
%15 = bitcast [15 x i8]* %12 to i8*
%16 = bitcast [15 x i8]* %13 to i8*
%17 = bitcast [100 x i32]* %14 to i8*
br label %18
18: ; preds = %41, %0
%19 = getelementptr inbounds [15 x i8], [15 x i8]* %11, i64 0, i64 0
%20 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = load i64, i64* @EOF
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %46
23: ; preds = %18
%24 = getelementptr inbounds [15 x i8], [15 x i8]* %11, i64 0, i64 0
%25 = getelementptr inbounds [15 x i8], [15 x i8]* %12, i64 0, i64 0
%26 = call i64 @strcmp(i8* %24, i8* %25)
%27 = icmp eq i64 0, %26
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], [100 x i32]* %14, i64 0, i64 %30
store i32 1, i32* %31
br label %32
32: ; preds = %28, %23
%33 = getelementptr inbounds [15 x i8], [15 x i8]* %11, i64 0, i64 0
%34 = getelementptr inbounds [15 x i8], [15 x i8]* %13, i64 0, i64 0
%35 = call i64 @strcmp(i8* %33, i8* %34)
%36 = icmp eq i64 0, %35
br i1 %36, label %37, label %41
37: ; preds = %32
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [100 x i32], [100 x i32]* %14, i64 0, i64 %39
store i32 0, i32* %40
br label %41
41: ; preds = %37, %32
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %18
46: ; preds = %18
store i32 0, i32* %2
%47 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %48
48: ; preds = %100, %46
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %103
52: ; preds = %48
%53 = load i32, i32* %2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i32], [100 x i32]* %14, i64 0, i64 %54
%56 = load i32, i32* %55
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %79
58: ; preds = %52
%59 = load i32, i32* %4
switch i32 %59, label %78 [
i32 0, label %60
i32 2, label %63
i32 1, label %66
i32 3, label %69
i32 4, label %72
i32 5, label %75
]
60: ; preds = %58
%61 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%62 = load i32, i32* %6
store i32 %62, i32* %4
br label %78
63: ; preds = %58
%64 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32, i32* %8
store i32 %65, i32* %4
br label %78
66: ; preds = %58
%67 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%68 = load i32, i32* %7
store i32 %68, i32* %4
br label %78
69: ; preds = %58
%70 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%71 = load i32, i32* %9
store i32 %71, i32* %4
br label %78
72: ; preds = %58
%73 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%74 = load i32, i32* %6
store i32 %74, i32* %4
br label %78
75: ; preds = %58
%76 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%77 = load i32, i32* %8
store i32 %77, i32* %4
br label %78
78: ; preds = %58, %75, %72, %69, %66, %63, %60
br label %79
79: ; preds = %78, %52
%80 = load i32, i32* %2
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i32], [100 x i32]* %14, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %100
85: ; preds = %79
%86 = load i32, i32* %4
switch i32 %86, label %99 [
i32 1, label %87
i32 5, label %90
i32 0, label %93
i32 3, label %96
]
87: ; preds = %85
%88 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%89 = load i32, i32* %10
store i32 %89, i32* %4
br label %99
90: ; preds = %85
%91 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%92 = load i32, i32* %10
store i32 %92, i32* %4
br label %99
93: ; preds = %85
%94 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%95 = load i32, i32* %5
store i32 %95, i32* %4
br label %99
96: ; preds = %85
%97 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%98 = load i32, i32* %5
store i32 %98, i32* %4
br label %99
99: ; preds = %85, %96, %93, %90, %87
br label %100
100: ; preds = %99, %79
%101 = load i32, i32* %2
%102 = add nsw i32 %101, 1
store i32 %102, i32* %2
br label %48
103: ; preds = %48
ret i32 0
}

LLVM IR (-O2):
@__const.main.click = [15 x i8] c"button_clicked\00"
@__const.main.cycle = [15 x i8] c"cycle_complete\00"
@.str = [3 x i8] c"%s\00"
@EOF = global i64 0
@str.8 = [13 x i8] c"Door: CLOSED\00"
@str.10 = [11 x i8] c"Door: OPEN\00"
@str.13 = [28 x i8] c"Door: STOPPED_WHILE_CLOSING\00"
@str.14 = [28 x i8] c"Door: STOPPED_WHILE_OPENING\00"
@str.15 = [14 x i8] c"Door: CLOSING\00"
@str.16 = [14 x i8] c"Door: OPENING\00"
@switch.table.main = [6 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.16, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @str.14, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.15, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @str.13, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.16, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.15, i64 0, i64 0)]
@switch.table.main.17 = [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 1, i32 3]
@switch.table.main.18 = [6 x i8*] [i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0)]
@switch.table.main.19 = [6 x i32] [i32 0, i32 5, i32 5, i32 0, i32 5, i32 5]
define i32 @main() {
%1 = alloca [15 x i8]
%2 = alloca [15 x i8]
%3 = alloca [15 x i8]
%4 = alloca [100 x i32]
%5 = getelementptr inbounds [15 x i8], [15 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [15 x i8], [15 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [15 x i8], [15 x i8]* %3, i64 0, i64 0
%8 = bitcast [100 x i32]* %4 to i8*
%9 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.8, i64 0, i64 0))
br label %64
14: ; preds = %0, %25
%15 = phi i64 [ %26, %25 ], [ 0, %0 ]
%16 = call i64 @strcmp(i8* %5, i8* %6)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %15
store i32 1, i32* %19
br label %20
20: ; preds = %18, %14
%21 = call i64 @strcmp(i8* %5, i8* %7)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %15
store i32 0, i32* %24
br label %25
25: ; preds = %23, %20
%26 = add nuw i64 %15, 1
%27 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%28 = load i64, i64* @EOF
%29 = icmp eq i64 %27, %28
br i1 %29, label %30, label %14
30: ; preds = %25
%31 = trunc i64 %26 to i32
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.8, i64 0, i64 0))
%33 = icmp eq i32 %31, 0
br i1 %33, label %64, label %34
34: ; preds = %30
%35 = and i64 %26, 4294967295
br label %36
36: ; preds = %34, %60
%37 = phi i64 [ 0, %34 ], [ %62, %60 ]
%38 = phi i32 [ 0, %34 ], [ %61, %60 ]
%39 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %37
%40 = load i32, i32* %39
switch i32 %40, label %60 [
i32 1, label %41
i32 0, label %43
]
41: ; preds = %36
%42 = icmp ult i32 %38, 6
br i1 %42, label %50, label %60
43: ; preds = %36
%44 = icmp ult i32 %38, 6
br i1 %44, label %45, label %60
45: ; preds = %43
%46 = trunc i32 %38 to i8
%47 = lshr i8 43, %46
%48 = and i8 %47, 1
%49 = icmp eq i8 %48, 0
br i1 %49, label %60, label %50
50: ; preds = %45, %41
%51 = phi [6 x i8*]* [ @switch.table.main, %41 ], [ @switch.table.main.18, %45 ]
%52 = phi [6 x i32]* [ @switch.table.main.17, %41 ], [ @switch.table.main.19, %45 ]
%53 = sext i32 %38 to i64
%54 = getelementptr inbounds [6 x i8*], [6 x i8*]* %51, i64 0, i64 %53
%55 = load i8*, i8** %54
%56 = sext i32 %38 to i64
%57 = getelementptr inbounds [6 x i32], [6 x i32]* %52, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = call i32 @puts(i8* dereferenceable(1) %55)
br label %60
60: ; preds = %45, %43, %41, %50, %36
%61 = phi i32 [ %38, %43 ], [ %38, %41 ], [ %38, %36 ], [ %58, %50 ], [ %38, %45 ]
%62 = add nuw nsw i64 %37, 1
%63 = icmp eq i64 %62, %35
br i1 %63, label %64, label %36
64: ; preds = %60, %12, %30
ret i32 0
}