#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 getWord(char *, char *, int);
int /*<<< orphan*/ isNumerics(char *);
int /*<<< orphan*/ isOperation(char *);
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int checkScheme(char *scheme) {
  char tmp[100];
  int i = 0, c, sp = 0;
  while ((c = getWord(tmp, &scheme[i], 100)) && strlen(tmp)) {
    if (!isOperation(tmp) && !isNumerics(tmp))
      return 0;
    if (strcmp(tmp, "+") == 0)
      sp -= 1;
    else if (strcmp(tmp, "-") == 0)
      sp -= 1;
    else if (strcmp(tmp, "*") == 0)
      sp -= 1;
    else if (strcmp(tmp, "/") == 0)
      sp -= 1;
    else if (strcmp(tmp, "exp") == 0)
      sp -= 1;
    else if (strcmp(tmp, "sin") == 0)
      ;
    else if (strcmp(tmp, "cos") == 0)
      ;
    else if (strcmp(tmp, "tan") == 0)
      ;
    else if (strcmp(tmp, "sqrt") == 0)
      ;
    else if (strcmp(tmp, "log") == 0)
      ;
    else if (strcmp(tmp, "log10") == 0)
      ;
    else if (strcmp(tmp, "pi") == 0)
      sp++;
    else if (strcmp(tmp, "e") == 0)
      sp++;
    else
      sp++;
    if ((sp < 0) || (100 <= sp))
      return 0;
    i += c;
  }
  if (sp == 1)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<checkScheme>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x8c(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x84(%rbp),%rax
add    %rax,%rsi
mov    $0x64,%edx
call   1070 <getWord@plt>
mov    %eax,%ecx
mov    %ecx,-0x88(%rbp)
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x8d(%rbp)
je     11be <checkScheme+0x6e>
lea    -0x80(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x8d(%rbp)
mov    -0x8d(%rbp),%al
test   $0x1,%al
jne    11d1 <checkScheme+0x81>
jmp    1489 <checkScheme+0x339>
lea    -0x80(%rbp),%rdi
call   1060 <isOperation@plt>
cmp    $0x0,%eax
jne    1201 <checkScheme+0xb1>
lea    -0x80(%rbp),%rdi
call   1040 <isNumerics@plt>
cmp    $0x0,%eax
jne    1201 <checkScheme+0xb1>
movl   $0x0,-0x4(%rbp)
jmp    14a9 <checkScheme+0x359>
lea    -0x80(%rbp),%rdi
lea    0xdf4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    122f <checkScheme+0xdf>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1448 <checkScheme+0x2f8>
lea    -0x80(%rbp),%rdi
lea    0xdc8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    125d <checkScheme+0x10d>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1443 <checkScheme+0x2f3>
lea    -0x80(%rbp),%rdi
lea    0xd9c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    128b <checkScheme+0x13b>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    143e <checkScheme+0x2ee>
lea    -0x80(%rbp),%rdi
lea    0xd70(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12b9 <checkScheme+0x169>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1439 <checkScheme+0x2e9>
lea    -0x80(%rbp),%rdi
lea    0xd44(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12e7 <checkScheme+0x197>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1434 <checkScheme+0x2e4>
lea    -0x80(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1306 <checkScheme+0x1b6>
jmp    142f <checkScheme+0x2df>
lea    -0x80(%rbp),%rdi
lea    0xcff(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1325 <checkScheme+0x1d5>
jmp    142a <checkScheme+0x2da>
lea    -0x80(%rbp),%rdi
lea    0xce4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1344 <checkScheme+0x1f4>
jmp    1425 <checkScheme+0x2d5>
lea    -0x80(%rbp),%rdi
lea    0xcc9(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1363 <checkScheme+0x213>
jmp    1420 <checkScheme+0x2d0>
lea    -0x80(%rbp),%rdi
lea    0xcaf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1382 <checkScheme+0x232>
jmp    141b <checkScheme+0x2cb>
lea    -0x80(%rbp),%rdi
lea    0xc94(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13a1 <checkScheme+0x251>
jmp    1416 <checkScheme+0x2c6>
lea    -0x80(%rbp),%rdi
lea    0xc7b(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13cf <checkScheme+0x27f>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1411 <checkScheme+0x2c1>
lea    -0x80(%rbp),%rdi
lea    0xc50(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13fd <checkScheme+0x2ad>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    140c <checkScheme+0x2bc>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1411 <checkScheme+0x2c1>
jmp    1416 <checkScheme+0x2c6>
jmp    141b <checkScheme+0x2cb>
jmp    1420 <checkScheme+0x2d0>
jmp    1425 <checkScheme+0x2d5>
jmp    142a <checkScheme+0x2da>
jmp    142f <checkScheme+0x2df>
jmp    1434 <checkScheme+0x2e4>
jmp    1439 <checkScheme+0x2e9>
jmp    143e <checkScheme+0x2ee>
jmp    1443 <checkScheme+0x2f3>
jmp    1448 <checkScheme+0x2f8>
cmpl   $0x0,-0x8c(%rbp)
jl     1466 <checkScheme+0x316>
mov    $0x64,%eax
cmp    -0x8c(%rbp),%eax
jg     1472 <checkScheme+0x322>
movl   $0x0,-0x4(%rbp)
jmp    14a9 <checkScheme+0x359>
mov    -0x88(%rbp),%eax
add    -0x84(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1173 <checkScheme+0x23>
cmpl   $0x1,-0x8c(%rbp)
jne    14a2 <checkScheme+0x352>
movl   $0x1,-0x4(%rbp)
jmp    14a9 <checkScheme+0x359>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkScheme>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,%r14
mov    %rsp,%rdi
mov    %r14,%rsi
mov    $0x64,%edx
call   1060 <getWord@plt>
xor    %r13d,%r13d
test   %eax,%eax
je     130f <checkScheme+0x1cf>
cmpb   $0x0,(%rsp)
je     130f <checkScheme+0x1cf>
mov    %eax,%ebp
xor    %r13d,%r13d
mov    %rsp,%rbx
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1050 <isOperation@plt>
test   %eax,%eax
jne    11ac <checkScheme+0x6c>
mov    %rbx,%rdi
call   1030 <isNumerics@plt>
test   %eax,%eax
je     131a <checkScheme+0x1da>
mov    %rbx,%rdi
lea    0xe4a(%rip),%rsi
call   1040 <strcmp@plt>
mov    $0xffffffff,%r15d
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xe2e(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xe18(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xe02(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xdec(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xdd8(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xdc4(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xdb0(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xda0(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xd91(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xd81(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e9 <checkScheme+0x1a9>
mov    %rbx,%rdi
lea    0xd73(%rip),%rsi
call   1040 <strcmp@plt>
mov    $0x1,%r15d
test   %rax,%rax
je     12e0 <checkScheme+0x1a0>
mov    %rbx,%rdi
lea    0xd5c(%rip),%rsi
call   1040 <strcmp@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    %r15d,%r13d
cmp    $0x63,%r13d
ja     131a <checkScheme+0x1da>
add    %ebp,%r12d
movslq %r12d,%rsi
add    %r14,%rsi
mov    %rbx,%rdi
mov    $0x64,%edx
call   1060 <getWord@plt>
test   %eax,%eax
je     130f <checkScheme+0x1cf>
mov    %eax,%ebp
cmpb   $0x0,(%rsp)
jne    1190 <checkScheme+0x50>
xor    %eax,%eax
cmp    $0x1,%r13d
sete   %al
jmp    131c <checkScheme+0x1dc>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"+\00"
@.str.1 = [2 x i8] c"-\00"
@.str.2 = [2 x i8] c"*\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [4 x i8] c"exp\00"
@.str.5 = [4 x i8] c"sin\00"
@.str.6 = [4 x i8] c"cos\00"
@.str.7 = [4 x i8] c"tan\00"
@.str.8 = [5 x i8] c"sqrt\00"
@.str.9 = [4 x i8] c"log\00"
@.str.10 = [6 x i8] c"log10\00"
@.str.11 = [3 x i8] c"pi\00"
@.str.12 = [2 x i8] c"e\00"
define i32 @checkScheme(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [100 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %5
store i32 0, i32* %7
br label %8
8: ; preds = %132, %1
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%10 = load i8*, i8** %3
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %10, i64 %12
%14 = call i32 @getWord(i8* %9, i8* %13, i32 100)
store i32 %14, i32* %6
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %8
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%18 = call i64 @strlen(i8* %17)
%19 = icmp ne i64 %18, 0
br label %20
20: ; preds = %16, %8
%21 = phi i1 [ false, %8 ], [ %19, %16 ]
br i1 %21, label %22, label %136
22: ; preds = %20
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%24 = call i32 @isOperation(i8* %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %31, label %26
26: ; preds = %22
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%28 = call i32 @isNumerics(i8* %27)
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %26
store i32 0, i32* %2
br label %141
31: ; preds = %26, %22
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, i32* %7
%37 = sub nsw i32 %36, 1
store i32 %37, i32* %7
br label %125
38: ; preds = %31
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i32, i32* %7
%44 = sub nsw i32 %43, 1
store i32 %44, i32* %7
br label %124
45: ; preds = %38
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i32, i32* %7
%51 = sub nsw i32 %50, 1
store i32 %51, i32* %7
br label %123
52: ; preds = %45
%53 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = load i32, i32* %7
%58 = sub nsw i32 %57, 1
store i32 %58, i32* %7
br label %122
59: ; preds = %52
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32, i32* %7
%65 = sub nsw i32 %64, 1
store i32 %65, i32* %7
br label %121
66: ; preds = %59
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %66
br label %120
71: ; preds = %66
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %71
br label %119
76: ; preds = %71
%77 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
br label %118
81: ; preds = %76
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81
br label %117
86: ; preds = %81
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
br label %116
91: ; preds = %86
%92 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %91
br label %115
96: ; preds = %91
%97 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %96
%101 = load i32, i32* %7
%102 = add nsw i32 %101, 1
store i32 %102, i32* %7
br label %114
103: ; preds = %96
%104 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %103
%108 = load i32, i32* %7
%109 = add nsw i32 %108, 1
store i32 %109, i32* %7
br label %113
110: ; preds = %103
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
store i32 %112, i32* %7
br label %113
113: ; preds = %110, %107
br label %114
114: ; preds = %113, %100
br label %115
115: ; preds = %114, %95
br label %116
116: ; preds = %115, %90
br label %117
117: ; preds = %116, %85
br label %118
118: ; preds = %117, %80
br label %119
119: ; preds = %118, %75
br label %120
120: ; preds = %119, %70
br label %121
121: ; preds = %120, %63
br label %122
122: ; preds = %121, %56
br label %123
123: ; preds = %122, %49
br label %124
124: ; preds = %123, %42
br label %125
125: ; preds = %124, %35
%126 = load i32, i32* %7
%127 = icmp slt i32 %126, 0
br i1 %127, label %131, label %128
128: ; preds = %125
%129 = load i32, i32* %7
%130 = icmp sle i32 100, %129
br i1 %130, label %131, label %132
131: ; preds = %128, %125
store i32 0, i32* %2
br label %141
132: ; preds = %128
%133 = load i32, i32* %6
%134 = load i32, i32* %5
%135 = add nsw i32 %134, %133
store i32 %135, i32* %5
br label %8
136: ; preds = %20
%137 = load i32, i32* %7
%138 = icmp eq i32 %137, 1
br i1 %138, label %139, label %140
139: ; preds = %136
store i32 1, i32* %2
br label %141
140: ; preds = %136
store i32 0, i32* %2
br label %141
141: ; preds = %140, %139, %131, %30
%142 = load i32, i32* %2
ret i32 %142
}

LLVM IR (-O2):
@.str = [2 x i8] c"+\00"
@.str.1 = [2 x i8] c"-\00"
@.str.2 = [2 x i8] c"*\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [4 x i8] c"exp\00"
@.str.5 = [4 x i8] c"sin\00"
@.str.6 = [4 x i8] c"cos\00"
@.str.7 = [4 x i8] c"tan\00"
@.str.8 = [5 x i8] c"sqrt\00"
@.str.9 = [4 x i8] c"log\00"
@.str.10 = [6 x i8] c"log10\00"
@.str.11 = [3 x i8] c"pi\00"
@.str.12 = [2 x i8] c"e\00"
define i32 @checkScheme(i8* %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = call i32 @getWord(i8* %3, i8* %0, i32 100)
%5 = icmp eq i32 %4, 0
%6 = load i8, i8* %3
%7 = icmp eq i8 %6, 0
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %70, label %9
9: ; preds = %1, %60
%10 = phi i32 [ %65, %60 ], [ %4, %1 ]
%11 = phi i32 [ %61, %60 ], [ 0, %1 ]
%12 = phi i32 [ %62, %60 ], [ 0, %1 ]
%13 = call i32 @isOperation(i8* %3)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = call i32 @isNumerics(i8* %3)
%17 = icmp eq i32 %16, 0
br i1 %17, label %74, label %18
18: ; preds = %15, %9
%19 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %56, label %21
21: ; preds = %18
%22 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %56, label %24
24: ; preds = %21
%25 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %56, label %27
27: ; preds = %24
%28 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %56, label %30
30: ; preds = %27
%31 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %56, label %33
33: ; preds = %30
%34 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %60, label %36
36: ; preds = %33
%37 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %60, label %39
39: ; preds = %36
%40 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %60, label %42
42: ; preds = %39
%43 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %60, label %45
45: ; preds = %42
%46 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %60, label %48
48: ; preds = %45
%49 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %60, label %51
51: ; preds = %48
%52 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %51
%55 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %56
56: ; preds = %51, %30, %27, %24, %21, %18, %54
%57 = phi i32 [ 1, %54 ], [ -1, %18 ], [ -1, %21 ], [ -1, %24 ], [ -1, %27 ], [ -1, %30 ], [ 1, %51 ]
%58 = add nsw i32 %11, %57
%59 = icmp ugt i32 %58, 99
br i1 %59, label %74, label %60
60: ; preds = %48, %45, %42, %39, %36, %33, %56
%61 = phi i32 [ %58, %56 ], [ %11, %33 ], [ %11, %36 ], [ %11, %39 ], [ %11, %42 ], [ %11, %45 ], [ %11, %48 ]
%62 = add nsw i32 %10, %12
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %0, i64 %63
%65 = call i32 @getWord(i8* %3, i8* %64, i32 100)
%66 = icmp eq i32 %65, 0
%67 = load i8, i8* %3
%68 = icmp eq i8 %67, 0
%69 = select i1 %66, i1 true, i1 %68
br i1 %69, label %70, label %9
70: ; preds = %60, %1
%71 = phi i32 [ 0, %1 ], [ %61, %60 ]
%72 = icmp eq i32 %71, 1
%73 = zext i1 %72 to i32
br label %74
74: ; preds = %56, %15, %70
%75 = phi i32 [ %73, %70 ], [ 0, %15 ], [ 0, %56 ]
ret i32 %75
}