#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__ errno;
char *getenv(char *);
int /*<<< orphan*/ isdigit(char);
int /*<<< orphan*/ strcasecmp(char *, char *);
long strtol(char *, char **, int);
long get_word_rate(void) {
  char *s;
  long r;
  errno = 0;
  s = getenv("READ_QUICKLY_RATE");
  if (!s || !*s || !isdigit(*s))
    return 120;
  r = strtol(s, &s, 10);
  if (r <= 0)
    return 120;
  while (*s == ' ')
    s++;
  if (!*s)
    r *= 1;
  else if (!strcasecmp(s, "wpm"))
    r *= 1;
  else if (!strcasecmp(s, "w/m"))
    r *= 1;
  else if (!strcasecmp(s, "/m"))
    r *= 1;
  else if (!strcasecmp(s, "wpmin"))
    r *= 1;
  else if (!strcasecmp(s, "w/min"))
    r *= 1;
  else if (!strcasecmp(s, "/min"))
    r *= 1;
  else if (!strcasecmp(s, "wps"))
    r *= 60;
  else if (!strcasecmp(s, "w/s"))
    r *= 60;
  else if (!strcasecmp(s, "/s"))
    r *= 60;
  else if (!strcasecmp(s, "wpsec"))
    r *= 60;
  else if (!strcasecmp(s, "w/sec"))
    r *= 60;
  else if (!strcasecmp(s, "/sec"))
    r *= 60;
  else if (!strcasecmp(s, "hz"))
    r *= 60;
  else
    return 120;
  return r;
}


x86 assembly (clang, -O0):
<get_word_rate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2e91(%rip),%rax
movq   $0x0,(%rax)
lea    0xea3(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1193 <get_word_rate+0x53>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1193 <get_word_rate+0x53>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
jne    11a0 <get_word_rate+0x60>
movq   $0x78,-0x8(%rbp)
jmp    1475 <get_word_rate+0x335>
mov    -0x10(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jg     11ce <get_word_rate+0x8e>
movq   $0x78,-0x8(%rbp)
jmp    1475 <get_word_rate+0x335>
jmp    11d3 <get_word_rate+0x93>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    11f4 <get_word_rate+0xb4>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11d3 <get_word_rate+0x93>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1212 <get_word_rate+0xd2>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    146d <get_word_rate+0x32d>
mov    -0x10(%rbp),%rdi
lea    0xdf5(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    123c <get_word_rate+0xfc>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    1468 <get_word_rate+0x328>
mov    -0x10(%rbp),%rdi
lea    0xdcf(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1266 <get_word_rate+0x126>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    1463 <get_word_rate+0x323>
mov    -0x10(%rbp),%rdi
lea    0xda6(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1290 <get_word_rate+0x150>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    145e <get_word_rate+0x31e>
mov    -0x10(%rbp),%rdi
lea    0xd7f(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    12ba <get_word_rate+0x17a>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    1459 <get_word_rate+0x319>
mov    -0x10(%rbp),%rdi
lea    0xd5b(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    12e4 <get_word_rate+0x1a4>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    1454 <get_word_rate+0x314>
mov    -0x10(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    130e <get_word_rate+0x1ce>
mov    -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %rax,-0x18(%rbp)
jmp    144f <get_word_rate+0x30f>
mov    -0x10(%rbp),%rdi
lea    0xd0d(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1335 <get_word_rate+0x1f5>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    144a <get_word_rate+0x30a>
mov    -0x10(%rbp),%rdi
lea    0xcea(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    135c <get_word_rate+0x21c>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1445 <get_word_rate+0x305>
mov    -0x10(%rbp),%rdi
lea    0xcc4(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1383 <get_word_rate+0x243>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1440 <get_word_rate+0x300>
mov    -0x10(%rbp),%rdi
lea    0xca0(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    13aa <get_word_rate+0x26a>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    143b <get_word_rate+0x2fb>
mov    -0x10(%rbp),%rdi
lea    0xc7f(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    13d1 <get_word_rate+0x291>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1436 <get_word_rate+0x2f6>
mov    -0x10(%rbp),%rdi
lea    0xc59(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    13f8 <get_word_rate+0x2b8>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1431 <get_word_rate+0x2f1>
mov    -0x10(%rbp),%rdi
lea    0xc37(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    141f <get_word_rate+0x2df>
imul   $0x3c,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    142c <get_word_rate+0x2ec>
movq   $0x78,-0x8(%rbp)
jmp    1475 <get_word_rate+0x335>
jmp    1431 <get_word_rate+0x2f1>
jmp    1436 <get_word_rate+0x2f6>
jmp    143b <get_word_rate+0x2fb>
jmp    1440 <get_word_rate+0x300>
jmp    1445 <get_word_rate+0x305>
jmp    144a <get_word_rate+0x30a>
jmp    144f <get_word_rate+0x30f>
jmp    1454 <get_word_rate+0x314>
jmp    1459 <get_word_rate+0x319>
jmp    145e <get_word_rate+0x31e>
jmp    1463 <get_word_rate+0x323>
jmp    1468 <get_word_rate+0x328>
jmp    146d <get_word_rate+0x32d>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_word_rate>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    0x2e90(%rip),%rax
movq   $0x0,(%rax)
lea    0xea2(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,0x8(%rsp)
mov    $0x78,%r15d
test   %rax,%rax
je     12fa <get_word_rate+0x1ba>
mov    %rax,%rbx
mov    (%rax),%al
test   %al,%al
je     12fa <get_word_rate+0x1ba>
movsbl %al,%edi
call   1050 <isdigit@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1060 <strtol@plt>
test   %rax,%rax
jle    12fa <get_word_rate+0x1ba>
mov    %rax,%r14
mov    %rax,%r15
mov    0x8(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
movzbl (%rbx),%eax
cmp    $0x20,%al
jne    11cd <get_word_rate+0x8d>
add    $0x1,%rbx
jmp    11c0 <get_word_rate+0x80>
test   %al,%al
je     12fa <get_word_rate+0x1ba>
lea    0xe36(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xe23(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xe0d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xdf9(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xde8(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xdd2(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12fa <get_word_rate+0x1ba>
lea    0xdc0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xdad(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xd9b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xd8b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xd7e(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xd6c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     12f6 <get_word_rate+0x1b6>
lea    0xd5e(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
imul   $0x3c,%r14,%rcx
test   %eax,%eax
mov    $0x78,%r15d
cmove  %rcx,%r15
jmp    12fa <get_word_rate+0x1ba>
imul   $0x3c,%r14,%r15
mov    %r15,%rax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@errno = global i64 0
@.str = [18 x i8] c"READ_QUICKLY_RATE\00"
@.str.1 = [4 x i8] c"wpm\00"
@.str.2 = [4 x i8] c"w/m\00"
@.str.3 = [3 x i8] c"/m\00"
@.str.4 = [6 x i8] c"wpmin\00"
@.str.5 = [6 x i8] c"w/min\00"
@.str.6 = [5 x i8] c"/min\00"
@.str.7 = [4 x i8] c"wps\00"
@.str.8 = [4 x i8] c"w/s\00"
@.str.9 = [3 x i8] c"/s\00"
@.str.10 = [6 x i8] c"wpsec\00"
@.str.11 = [6 x i8] c"w/sec\00"
@.str.12 = [5 x i8] c"/sec\00"
@.str.13 = [3 x i8] c"hz\00"
define i64 @get_word_rate() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
store i64 0, i64* @errno
%3 = tail call i8* @getenv(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store i8* %3, i8** %1
%4 = icmp eq i8* %3, null
br i1 %4, label %74, label %5
5: ; preds = %0
%6 = load i8, i8* %3
%7 = icmp eq i8 %6, 0
br i1 %7, label %74, label %8
8: ; preds = %5
%9 = tail call i32 @isdigit(i8 signext %6)
%10 = icmp eq i32 %9, 0
br i1 %10, label %74, label %11
11: ; preds = %8
%12 = call i64 @strtol(i8* %3, i8** %1, i32 10)
%13 = icmp slt i64 %12, 1
br i1 %13, label %74, label %14
14: ; preds = %11
%15 = load i8*, i8** %1
br label %16
16: ; preds = %14, %19
%17 = phi i8* [ %15, %14 ], [ %20, %19 ]
%18 = load i8, i8* %17
switch i8 %18, label %21 [
i8 32, label %19
i8 0, label %74
]
19: ; preds = %16
%20 = getelementptr inbounds i8, i8* %17, i64 1
br label %16
21: ; preds = %16
%22 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %74, label %24
24: ; preds = %21
%25 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %74, label %27
27: ; preds = %24
%28 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %74, label %30
30: ; preds = %27
%31 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %74, label %33
33: ; preds = %30
%34 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %74, label %36
36: ; preds = %33
%37 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i32 %37, 0
br i1 %38, label %74, label %39
39: ; preds = %36
%40 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = mul nsw i64 %12, 60
br label %74
44: ; preds = %39
%45 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = mul nsw i64 %12, 60
br label %74
49: ; preds = %44
%50 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = mul nsw i64 %12, 60
br label %74
54: ; preds = %49
%55 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = mul nsw i64 %12, 60
br label %74
59: ; preds = %54
%60 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = mul nsw i64 %12, 60
br label %74
64: ; preds = %59
%65 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = mul nsw i64 %12, 60
br label %74
69: ; preds = %64
%70 = tail call i32 @strcasecmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%71 = icmp eq i32 %70, 0
%72 = mul nsw i64 %12, 60
%73 = select i1 %71, i64 %72, i64 120
br label %74
74: ; preds = %16, %69, %47, %57, %67, %62, %52, %42, %21, %24, %27, %30, %33, %36, %11, %0, %5, %8
%75 = phi i64 [ 120, %8 ], [ 120, %5 ], [ 120, %0 ], [ 120, %11 ], [ %68, %67 ], [ %63, %62 ], [ %58, %57 ], [ %53, %52 ], [ %48, %47 ], [ %43, %42 ], [ %12, %21 ], [ %12, %24 ], [ %12, %27 ], [ %12, %30 ], [ %12, %33 ], [ %12, %36 ], [ %73, %69 ], [ %12, %16 ]
ret i64 %75
}