#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 check_int(char *);
int /*<<< orphan*/ ewe(char *, char *);
int /*<<< orphan*/ sscanf(char *, char *, int *);
scalar_t__ strcmp(char *, char *);
int english_to_bin(char *in) {
  int ret = 0;
  if (check_int(in) == 1) {
    sscanf(in, "%d", &ret);
    return ret;
  }
  if (strcmp(in, "true") == 0) {
    return 1;
  } else if (strcmp(in, "false") == 0) {
    return 0;
  } else if (strcmp(in, "yes") == 0) {
    return 1;
  } else if (strcmp(in, "no") == 0) {
    return 0;
  } else if (strcmp(in, "left") == 0) {
    return 0;
  } else if (strcmp(in, "right") == 0) {
    return 1;
  } else if (strcmp(in, "gaus") == 0) {
    return 0;
  } else if (strcmp(in, "exp") == 0) {
    return 1;
  } else if (strcmp(in, "tpv_set_light") == 0) {
    return 0;
  } else if (strcmp(in, "tpv_set_voltage") == 0) {
    return 1;
  } else if (strcmp(in, "tpv_mode_laser") == 0) {
    return 0;
  } else if (strcmp(in, "tpv_mode_sun") == 0) {
    return 1;
  } else if (strcmp(in, "jv") == 0) {
    return 0;
  } else if (strcmp(in, "tpv") == 0) {
    return 1;
  } else if (strcmp(in, "ce") == 0) {
    return 2;
  } else if (strcmp(in, "tpc") == 0) {
    return 4;
  } else if (strcmp(in, "tof") == 0) {
    return 11;
  } else if (strcmp(in, "otrace") == 0) {
    return 15;
  } else if (strcmp(in, "celiv") == 0) {
    return 14;
  } else if (strcmp(in, "stark") == 0) {
    return 17;
  } else if (strcmp(in, "pulse") == 0) {
    return 22;
  } else if (strcmp(in, "photokit") == 0) {
    return 25;
  } else if (strcmp(in, "pulse_voc") == 0) {
    return 27;
  } else if (strcmp(in, "jv_simple") == 0) {
    return 28;
  } else if (strcmp(in, "find_voc") == 0) {
    return 7;
  } else if (strcmp(in, "exponential") == 0) {
    return 0;
  } else if (strcmp(in, "complex") == 0) {
    return 1;
  }
  ewe("I don't understand the command %s\n", in);
  return 0;
}


x86 assembly (clang, -O0):
<english_to_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <check_int@plt>
cmp    $0x1,%eax
jne    1184 <english_to_bin+0x44>
mov    -0x10(%rbp),%rdi
lea    0xe90(%rip),%rsi
lea    -0x14(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xe74(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11aa <english_to_bin+0x6a>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xe53(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11d0 <english_to_bin+0x90>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11f6 <english_to_bin+0xb6>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    121c <english_to_bin+0xdc>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1242 <english_to_bin+0x102>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xdcd(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1268 <english_to_bin+0x128>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    128e <english_to_bin+0x14e>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd8c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12b4 <english_to_bin+0x174>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12da <english_to_bin+0x19a>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <english_to_bin+0x1c0>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1326 <english_to_bin+0x1e6>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd25(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    134c <english_to_bin+0x20c>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xd0c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1372 <english_to_bin+0x232>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xce9(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1398 <english_to_bin+0x258>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xcd3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13be <english_to_bin+0x27e>
movl   $0x2,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xca1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13e4 <english_to_bin+0x2a4>
movl   $0x4,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xc7f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    140a <english_to_bin+0x2ca>
movl   $0xb,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xc5d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1430 <english_to_bin+0x2f0>
movl   $0xf,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xc3e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1456 <english_to_bin+0x316>
movl   $0xe,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xc1e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    147c <english_to_bin+0x33c>
movl   $0x11,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xbfe(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14a2 <english_to_bin+0x362>
movl   $0x16,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xbde(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14c8 <english_to_bin+0x388>
movl   $0x19,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xbc1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14ee <english_to_bin+0x3ae>
movl   $0x1b,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xba5(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1514 <english_to_bin+0x3d4>
movl   $0x1c,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xb89(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    153a <english_to_bin+0x3fa>
movl   $0x7,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xb6c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1560 <english_to_bin+0x420>
movl   $0x0,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
mov    -0x10(%rbp),%rdi
lea    0xb52(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1586 <english_to_bin+0x446>
movl   $0x1,-0x4(%rbp)
jmp    161f <english_to_bin+0x4df>
jmp    158b <english_to_bin+0x44b>
jmp    1590 <english_to_bin+0x450>
jmp    1595 <english_to_bin+0x455>
jmp    159a <english_to_bin+0x45a>
jmp    159f <english_to_bin+0x45f>
jmp    15a4 <english_to_bin+0x464>
jmp    15a9 <english_to_bin+0x469>
jmp    15ae <english_to_bin+0x46e>
jmp    15b3 <english_to_bin+0x473>
jmp    15b8 <english_to_bin+0x478>
jmp    15bd <english_to_bin+0x47d>
jmp    15c2 <english_to_bin+0x482>
jmp    15c7 <english_to_bin+0x487>
jmp    15cc <english_to_bin+0x48c>
jmp    15d1 <english_to_bin+0x491>
jmp    15d6 <english_to_bin+0x496>
jmp    15db <english_to_bin+0x49b>
jmp    15e0 <english_to_bin+0x4a0>
jmp    15e5 <english_to_bin+0x4a5>
jmp    15ea <english_to_bin+0x4aa>
jmp    15ef <english_to_bin+0x4af>
jmp    15f4 <english_to_bin+0x4b4>
jmp    15f9 <english_to_bin+0x4b9>
jmp    15fe <english_to_bin+0x4be>
jmp    1603 <english_to_bin+0x4c3>
jmp    1608 <english_to_bin+0x4c8>
mov    -0x10(%rbp),%rsi
lea    0xab2(%rip),%rdi
call   1040 <ewe@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<english_to_bin>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
movl   $0x0,0x4(%rsp)
call   1030 <check_int@plt>
cmp    $0x1,%eax
jne    1175 <english_to_bin+0x35>
lea    0xea1(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <sscanf@plt>
mov    0x4(%rsp),%ebp
jmp    140b <english_to_bin+0x2cb>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xe6f(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xe49(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xe34(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xe0f(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xde8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xdd6(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xdcd(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xdc2(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xdad(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xda5(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1414 <english_to_bin+0x2d4>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     141b <english_to_bin+0x2db>
lea    0xd6d(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1422 <english_to_bin+0x2e2>
lea    0xd59(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1429 <english_to_bin+0x2e9>
lea    0xd48(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1430 <english_to_bin+0x2f0>
lea    0xd36(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1437 <english_to_bin+0x2f7>
lea    0xd24(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     143e <english_to_bin+0x2fe>
lea    0xd12(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1445 <english_to_bin+0x305>
lea    0xd03(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144c <english_to_bin+0x30c>
lea    0xcf5(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1453 <english_to_bin+0x313>
lea    0xce7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     145a <english_to_bin+0x31a>
lea    0xcd8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <english_to_bin+0x2c9>
lea    0xcd0(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <english_to_bin+0x2cb>
lea    0xcc4(%rip),%rdi
mov    %rbx,%rsi
call   1040 <ewe@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0x2,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x4,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0xb,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0xf,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0xe,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x11,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x16,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x19,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x1b,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x1c,%ebp
jmp    140b <english_to_bin+0x2cb>
mov    $0x7,%ebp
jmp    140b <english_to_bin+0x2cb>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [4 x i8] c"yes\00"
@.str.4 = [3 x i8] c"no\00"
@.str.5 = [5 x i8] c"left\00"
@.str.6 = [6 x i8] c"right\00"
@.str.7 = [5 x i8] c"gaus\00"
@.str.8 = [4 x i8] c"exp\00"
@.str.9 = [14 x i8] c"tpv_set_light\00"
@.str.10 = [16 x i8] c"tpv_set_voltage\00"
@.str.11 = [15 x i8] c"tpv_mode_laser\00"
@.str.12 = [13 x i8] c"tpv_mode_sun\00"
@.str.13 = [3 x i8] c"jv\00"
@.str.14 = [4 x i8] c"tpv\00"
@.str.15 = [3 x i8] c"ce\00"
@.str.16 = [4 x i8] c"tpc\00"
@.str.17 = [4 x i8] c"tof\00"
@.str.18 = [7 x i8] c"otrace\00"
@.str.19 = [6 x i8] c"celiv\00"
@.str.20 = [6 x i8] c"stark\00"
@.str.21 = [6 x i8] c"pulse\00"
@.str.22 = [9 x i8] c"photokit\00"
@.str.23 = [10 x i8] c"pulse_voc\00"
@.str.24 = [10 x i8] c"jv_simple\00"
@.str.25 = [9 x i8] c"find_voc\00"
@.str.26 = [12 x i8] c"exponential\00"
@.str.27 = [8 x i8] c"complex\00"
@.str.28 = [35 x i8] c"I don't understand the command %s\0A\00"
define i32 @english_to_bin(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 @check_int(i8* %5)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %4
store i32 %11, i32* %2
br label %176
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, i32* %2
br label %176
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 0, i32* %2
br label %176
22: ; preds = %17
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, i32* %2
br label %176
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 0, i32* %2
br label %176
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 0, i32* %2
br label %176
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 1, i32* %2
br label %176
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 0, i32* %2
br label %176
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 1, i32* %2
br label %176
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 0, i32* %2
br label %176
57: ; preds = %52
%58 = load i8*, i8** %3
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 1, i32* %2
br label %176
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 0, i32* %2
br label %176
67: ; preds = %62
%68 = load i8*, i8** %3
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 1, i32* %2
br label %176
72: ; preds = %67
%73 = load i8*, i8** %3
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 0, i32* %2
br label %176
77: ; preds = %72
%78 = load i8*, i8** %3
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %77
store i32 1, i32* %2
br label %176
82: ; preds = %77
%83 = load i8*, i8** %3
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 2, i32* %2
br label %176
87: ; preds = %82
%88 = load i8*, i8** %3
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 4, i32* %2
br label %176
92: ; preds = %87
%93 = load i8*, i8** %3
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 11, i32* %2
br label %176
97: ; preds = %92
%98 = load i8*, i8** %3
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 15, i32* %2
br label %176
102: ; preds = %97
%103 = load i8*, i8** %3
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 14, i32* %2
br label %176
107: ; preds = %102
%108 = load i8*, i8** %3
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 17, i32* %2
br label %176
112: ; preds = %107
%113 = load i8*, i8** %3
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 22, i32* %2
br label %176
117: ; preds = %112
%118 = load i8*, i8** %3
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117
store i32 25, i32* %2
br label %176
122: ; preds = %117
%123 = load i8*, i8** %3
%124 = call i64 @strcmp(i8* %123, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %127
126: ; preds = %122
store i32 27, i32* %2
br label %176
127: ; preds = %122
%128 = load i8*, i8** %3
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %132
131: ; preds = %127
store i32 28, i32* %2
br label %176
132: ; preds = %127
%133 = load i8*, i8** %3
%134 = call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %137
136: ; preds = %132
store i32 7, i32* %2
br label %176
137: ; preds = %132
%138 = load i8*, i8** %3
%139 = call i64 @strcmp(i8* %138, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %142
141: ; preds = %137
store i32 0, i32* %2
br label %176
142: ; preds = %137
%143 = load i8*, i8** %3
%144 = call i64 @strcmp(i8* %143, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %147
146: ; preds = %142
store i32 1, i32* %2
br label %176
147: ; preds = %142
br label %148
148: ; preds = %147
br label %149
149: ; preds = %148
br label %150
150: ; preds = %149
br label %151
151: ; preds = %150
br label %152
152: ; preds = %151
br label %153
153: ; preds = %152
br label %154
154: ; preds = %153
br label %155
155: ; preds = %154
br label %156
156: ; preds = %155
br label %157
157: ; preds = %156
br label %158
158: ; preds = %157
br label %159
159: ; preds = %158
br label %160
160: ; preds = %159
br label %161
161: ; preds = %160
br label %162
162: ; preds = %161
br label %163
163: ; preds = %162
br label %164
164: ; preds = %163
br label %165
165: ; preds = %164
br label %166
166: ; preds = %165
br label %167
167: ; preds = %166
br label %168
168: ; preds = %167
br label %169
169: ; preds = %168
br label %170
170: ; preds = %169
br label %171
171: ; preds = %170
br label %172
172: ; preds = %171
br label %173
173: ; preds = %172
%174 = load i8*, i8** %3
%175 = call i32 @ewe(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.28, i64 0, i64 0), i8* %174)
store i32 0, i32* %2
br label %176
176: ; preds = %173, %146, %141, %136, %131, %126, %121, %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %8
%177 = load i32, i32* %2
ret i32 %177
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [4 x i8] c"yes\00"
@.str.4 = [3 x i8] c"no\00"
@.str.5 = [5 x i8] c"left\00"
@.str.6 = [6 x i8] c"right\00"
@.str.7 = [5 x i8] c"gaus\00"
@.str.8 = [4 x i8] c"exp\00"
@.str.9 = [14 x i8] c"tpv_set_light\00"
@.str.10 = [16 x i8] c"tpv_set_voltage\00"
@.str.11 = [15 x i8] c"tpv_mode_laser\00"
@.str.12 = [13 x i8] c"tpv_mode_sun\00"
@.str.13 = [3 x i8] c"jv\00"
@.str.14 = [4 x i8] c"tpv\00"
@.str.15 = [3 x i8] c"ce\00"
@.str.16 = [4 x i8] c"tpc\00"
@.str.17 = [4 x i8] c"tof\00"
@.str.18 = [7 x i8] c"otrace\00"
@.str.19 = [6 x i8] c"celiv\00"
@.str.20 = [6 x i8] c"stark\00"
@.str.21 = [6 x i8] c"pulse\00"
@.str.22 = [9 x i8] c"photokit\00"
@.str.23 = [10 x i8] c"pulse_voc\00"
@.str.24 = [10 x i8] c"jv_simple\00"
@.str.25 = [9 x i8] c"find_voc\00"
@.str.26 = [12 x i8] c"exponential\00"
@.str.27 = [8 x i8] c"complex\00"
@.str.28 = [35 x i8] c"I don't understand the command %s\0A\00"
define i32 @english_to_bin(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%4 = tail call i32 @check_int(i8* %0)
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
br label %92
9: ; preds = %1
%10 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %92, label %12
12: ; preds = %9
%13 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %92, label %15
15: ; preds = %12
%16 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %92, label %18
18: ; preds = %15
%19 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %92, label %21
21: ; preds = %18
%22 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %92, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %92, label %27
27: ; preds = %24
%28 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %92, label %30
30: ; preds = %27
%31 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %92, label %33
33: ; preds = %30
%34 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %92, label %36
36: ; preds = %33
%37 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %92, label %39
39: ; preds = %36
%40 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %92, label %42
42: ; preds = %39
%43 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %92, label %45
45: ; preds = %42
%46 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %92, label %48
48: ; preds = %45
%49 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %92, label %51
51: ; preds = %48
%52 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %92, label %54
54: ; preds = %51
%55 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %92, label %57
57: ; preds = %54
%58 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %92, label %60
60: ; preds = %57
%61 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %92, label %63
63: ; preds = %60
%64 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %92, label %66
66: ; preds = %63
%67 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %92, label %69
69: ; preds = %66
%70 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %92, label %72
72: ; preds = %69
%73 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %92, label %75
75: ; preds = %72
%76 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %92, label %78
78: ; preds = %75
%79 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %92, label %81
81: ; preds = %78
%82 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %92, label %84
84: ; preds = %81
%85 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %92, label %87
87: ; preds = %84
%88 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %87
%91 = tail call i32 @ewe(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.28, i64 0, i64 0), i8* %0)
br label %92
92: ; preds = %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %90, %6
%93 = phi i32 [ %8, %6 ], [ 0, %90 ], [ 1, %9 ], [ 0, %12 ], [ 1, %15 ], [ 0, %18 ], [ 0, %21 ], [ 1, %24 ], [ 0, %27 ], [ 1, %30 ], [ 0, %33 ], [ 1, %36 ], [ 0, %39 ], [ 1, %42 ], [ 0, %45 ], [ 1, %48 ], [ 2, %51 ], [ 4, %54 ], [ 11, %57 ], [ 15, %60 ], [ 14, %63 ], [ 17, %66 ], [ 22, %69 ], [ 25, %72 ], [ 27, %75 ], [ 28, %78 ], [ 7, %81 ], [ 0, %84 ], [ 1, %87 ]
ret i32 %93
}