#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 /*<<< orphan*/ strcmp(char *, char *);
int Clock_ScanMonth(char *ptr) {
  switch (*ptr) {
  case 'A':
    if ((strcmp(ptr, "APR") == 0) || (strcmp(ptr, "APRIL") == 0))
      return 4;
    else if ((strcmp(ptr, "AUG") == 0) || (strcmp(ptr, "AUGUST") == 0))
      return 8;
    return -1;
  case 'D':
    if ((strcmp(ptr, "DEC") == 0) || (strcmp(ptr, "DECEMBER") == 0))
      return 12;
    return -1;
  case 'F':
    if ((strcmp(ptr, "FEB") == 0) || (strcmp(ptr, "FEBRUARY") == 0))
      return 2;
    return -1;
  case 'J':
    if ((strcmp(ptr, "JAN") == 0) || (strcmp(ptr, "JANUARY") == 0))
      return 1;
    else if ((strcmp(ptr, "JUN") == 0) || (strcmp(ptr, "JUNE") == 0))
      return 6;
    else if ((strcmp(ptr, "JUL") == 0) || (strcmp(ptr, "JULY") == 0))
      return 7;
    return -1;
  case 'M':
    if ((strcmp(ptr, "MAR") == 0) || (strcmp(ptr, "MARCH") == 0))
      return 3;
    else if (strcmp(ptr, "MAY") == 0)
      return 5;
    return -1;
  case 'N':
    if ((strcmp(ptr, "NOV") == 0) || (strcmp(ptr, "NOVEMBER") == 0))
      return 11;
    return -1;
  case 'O':
    if ((strcmp(ptr, "OCT") == 0) || (strcmp(ptr, "OCTOBER") == 0))
      return 10;
    return -1;
  case 'S':
    if ((strcmp(ptr, "SEP") == 0) || (strcmp(ptr, "SEPTEMBER") == 0))
      return 9;
    return -1;
  }
  return -1;
}


x86 assembly (clang, -O0):
<Clock_ScanMonth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x12,%eax
ja     148c <Clock_ScanMonth+0x37c>
mov    -0x18(%rbp),%rax
lea    0xec0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
lea    0xef8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     117b <Clock_ScanMonth+0x6b>
mov    -0x10(%rbp),%rdi
lea    0xee3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1187 <Clock_ScanMonth+0x77>
movl   $0x4,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     11b9 <Clock_ScanMonth+0xa9>
mov    -0x10(%rbp),%rdi
lea    0xeaf(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11c5 <Clock_ScanMonth+0xb5>
movl   $0x8,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
jmp    11ca <Clock_ScanMonth+0xba>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xe80(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1208 <Clock_ScanMonth+0xf8>
mov    -0x10(%rbp),%rdi
lea    0xe6b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1214 <Clock_ScanMonth+0x104>
movl   $0xc,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xe43(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1252 <Clock_ScanMonth+0x142>
mov    -0x10(%rbp),%rdi
lea    0xe2e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    125e <Clock_ScanMonth+0x14e>
movl   $0x2,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     129c <Clock_ScanMonth+0x18c>
mov    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12a8 <Clock_ScanMonth+0x198>
movl   $0x1,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xdd4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     12da <Clock_ScanMonth+0x1ca>
mov    -0x10(%rbp),%rdi
lea    0xdbf(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12e6 <Clock_ScanMonth+0x1d6>
movl   $0x6,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xd9f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1318 <Clock_ScanMonth+0x208>
mov    -0x10(%rbp),%rdi
lea    0xd8a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1324 <Clock_ScanMonth+0x214>
movl   $0x7,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
jmp    1329 <Clock_ScanMonth+0x219>
jmp    132e <Clock_ScanMonth+0x21e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xd54(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     136c <Clock_ScanMonth+0x25c>
mov    -0x10(%rbp),%rdi
lea    0xd3f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1378 <Clock_ScanMonth+0x268>
movl   $0x3,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xd20(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    139d <Clock_ScanMonth+0x28d>
movl   $0x5,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
jmp    13a2 <Clock_ScanMonth+0x292>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xcee(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     13e0 <Clock_ScanMonth+0x2d0>
mov    -0x10(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    13ec <Clock_ScanMonth+0x2dc>
movl   $0xb,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xcb1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     142a <Clock_ScanMonth+0x31a>
mov    -0x10(%rbp),%rdi
lea    0xc9c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1436 <Clock_ScanMonth+0x326>
movl   $0xa,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
mov    -0x10(%rbp),%rdi
lea    0xc73(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     1474 <Clock_ScanMonth+0x364>
mov    -0x10(%rbp),%rdi
lea    0xc5e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1480 <Clock_ScanMonth+0x370>
movl   $0x9,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
jmp    1493 <Clock_ScanMonth+0x383>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Clock_ScanMonth>:
push   %rbp
push   %rbx
push   %rax
movsbl (%rdi),%eax
mov    $0xffffffff,%ebp
add    $0xffffffbf,%eax
cmp    $0x12,%eax
ja     139c <Clock_ScanMonth+0x28c>
mov    %rdi,%rbx
lea    0xecf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf0b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x4,%ebp
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xef3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xee2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1390 <Clock_ScanMonth+0x280>
lea    0xecf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0x8,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     136d <Clock_ScanMonth+0x25d>
lea    0xea8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0xc,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xe96(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1374 <Clock_ScanMonth+0x264>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0x2,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xe71(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xe59(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xe4a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x6,%ebp
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xe32(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1397 <Clock_ScanMonth+0x287>
lea    0xe0d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0x7,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xdf7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x3,%ebp
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xddf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     139c <Clock_ScanMonth+0x28c>
lea    0xdce(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0x5,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xdb7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     137b <Clock_ScanMonth+0x26b>
lea    0xda8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0xb,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xd96(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1382 <Clock_ScanMonth+0x272>
lea    0xd87(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0xa,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
lea    0xd77(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1389 <Clock_ScanMonth+0x279>
lea    0xd68(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %eax
sbb    %ebp,%ebp
or     $0x9,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0xc,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0x2,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0xb,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0xa,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0x9,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0x8,%ebp
jmp    139c <Clock_ScanMonth+0x28c>
mov    $0x7,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"APR\00"
@.str.1 = [6 x i8] c"APRIL\00"
@.str.2 = [4 x i8] c"AUG\00"
@.str.3 = [7 x i8] c"AUGUST\00"
@.str.4 = [4 x i8] c"DEC\00"
@.str.5 = [9 x i8] c"DECEMBER\00"
@.str.6 = [4 x i8] c"FEB\00"
@.str.7 = [9 x i8] c"FEBRUARY\00"
@.str.8 = [4 x i8] c"JAN\00"
@.str.9 = [8 x i8] c"JANUARY\00"
@.str.10 = [4 x i8] c"JUN\00"
@.str.11 = [5 x i8] c"JUNE\00"
@.str.12 = [4 x i8] c"JUL\00"
@.str.13 = [5 x i8] c"JULY\00"
@.str.14 = [4 x i8] c"MAR\00"
@.str.15 = [6 x i8] c"MARCH\00"
@.str.16 = [4 x i8] c"MAY\00"
@.str.17 = [4 x i8] c"NOV\00"
@.str.18 = [9 x i8] c"NOVEMBER\00"
@.str.19 = [4 x i8] c"OCT\00"
@.str.20 = [8 x i8] c"OCTOBER\00"
@.str.21 = [4 x i8] c"SEP\00"
@.str.22 = [10 x i8] c"SEPTEMBER\00"
define i32 @Clock_ScanMonth(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
switch i32 %6, label %123 [
i32 65, label %7
i32 68, label %27
i32 70, label %37
i32 74, label %47
i32 77, label %77
i32 78, label %93
i32 79, label %103
i32 83, label %113
]
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = load i8*, i8** %3
%13 = call i32 @strcmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11, %7
store i32 4, i32* %2
br label %124
16: ; preds = %11
%17 = load i8*, i8** %3
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i8*, i8** %3
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20, %16
store i32 8, i32* %2
br label %124
25: ; preds = %20
br label %26
26: ; preds = %25
store i32 -1, i32* %2
br label %124
27: ; preds = %1
%28 = load i8*, i8** %3
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %27
%32 = load i8*, i8** %3
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %31, %27
store i32 12, i32* %2
br label %124
36: ; preds = %31
store i32 -1, i32* %2
br label %124
37: ; preds = %1
%38 = load i8*, i8** %3
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = load i8*, i8** %3
%43 = call i32 @strcmp(i8* %42, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %41, %37
store i32 2, i32* %2
br label %124
46: ; preds = %41
store i32 -1, i32* %2
br label %124
47: ; preds = %1
%48 = load i8*, i8** %3
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %47
%52 = load i8*, i8** %3
%53 = call i32 @strcmp(i8* %52, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %51, %47
store i32 1, i32* %2
br label %124
56: ; preds = %51
%57 = load i8*, i8** %3
%58 = call i32 @strcmp(i8* %57, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%59 = icmp eq i32 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %56
%61 = load i8*, i8** %3
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60, %56
store i32 6, i32* %2
br label %124
65: ; preds = %60
%66 = load i8*, i8** %3
%67 = call i32 @strcmp(i8* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%68 = icmp eq i32 %67, 0
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load i8*, i8** %3
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %69, %65
store i32 7, i32* %2
br label %124
74: ; preds = %69
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
store i32 -1, i32* %2
br label %124
77: ; preds = %1
%78 = load i8*, i8** %3
%79 = call i32 @strcmp(i8* %78, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
br i1 %80, label %85, label %81
81: ; preds = %77
%82 = load i8*, i8** %3
%83 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81, %77
store i32 3, i32* %2
br label %124
86: ; preds = %81
%87 = load i8*, i8** %3
%88 = call i32 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
store i32 5, i32* %2
br label %124
91: ; preds = %86
br label %92
92: ; preds = %91
store i32 -1, i32* %2
br label %124
93: ; preds = %1
%94 = load i8*, i8** %3
%95 = call i32 @strcmp(i8* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%96 = icmp eq i32 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %93
%98 = load i8*, i8** %3
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97, %93
store i32 11, i32* %2
br label %124
102: ; preds = %97
store i32 -1, i32* %2
br label %124
103: ; preds = %1
%104 = load i8*, i8** %3
%105 = call i32 @strcmp(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%106 = icmp eq i32 %105, 0
br i1 %106, label %111, label %107
107: ; preds = %103
%108 = load i8*, i8** %3
%109 = call i32 @strcmp(i8* %108, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107, %103
store i32 10, i32* %2
br label %124
112: ; preds = %107
store i32 -1, i32* %2
br label %124
113: ; preds = %1
%114 = load i8*, i8** %3
%115 = call i32 @strcmp(i8* %114, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%116 = icmp eq i32 %115, 0
br i1 %116, label %121, label %117
117: ; preds = %113
%118 = load i8*, i8** %3
%119 = call i32 @strcmp(i8* %118, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117, %113
store i32 9, i32* %2
br label %124
122: ; preds = %117
store i32 -1, i32* %2
br label %124
123: ; preds = %1
store i32 -1, i32* %2
br label %124
124: ; preds = %123, %122, %121, %112, %111, %102, %101, %92, %90, %85, %76, %73, %64, %55, %46, %45, %36, %35, %26, %24, %15
%125 = load i32, i32* %2
ret i32 %125
}

LLVM IR (-O2):
@.str = [4 x i8] c"APR\00"
@.str.1 = [6 x i8] c"APRIL\00"
@.str.2 = [4 x i8] c"AUG\00"
@.str.3 = [7 x i8] c"AUGUST\00"
@.str.4 = [4 x i8] c"DEC\00"
@.str.5 = [9 x i8] c"DECEMBER\00"
@.str.6 = [4 x i8] c"FEB\00"
@.str.7 = [9 x i8] c"FEBRUARY\00"
@.str.8 = [4 x i8] c"JAN\00"
@.str.9 = [8 x i8] c"JANUARY\00"
@.str.10 = [4 x i8] c"JUN\00"
@.str.11 = [5 x i8] c"JUNE\00"
@.str.12 = [4 x i8] c"JUL\00"
@.str.13 = [5 x i8] c"JULY\00"
@.str.14 = [4 x i8] c"MAR\00"
@.str.15 = [6 x i8] c"MARCH\00"
@.str.16 = [4 x i8] c"MAY\00"
@.str.17 = [4 x i8] c"NOV\00"
@.str.18 = [9 x i8] c"NOVEMBER\00"
@.str.19 = [4 x i8] c"OCT\00"
@.str.20 = [8 x i8] c"OCTOBER\00"
@.str.21 = [4 x i8] c"SEP\00"
@.str.22 = [10 x i8] c"SEPTEMBER\00"
define i32 @Clock_ScanMonth(i8* %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
switch i32 %3, label %81 [
i32 65, label %4
i32 68, label %17
i32 70, label %24
i32 74, label %31
i32 77, label %50
i32 78, label %60
i32 79, label %67
i32 83, label %74
]
4: ; preds = %1
%5 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %81, label %7
7: ; preds = %4
%8 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %81, label %10
10: ; preds = %7
%11 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %81, label %13
13: ; preds = %10
%14 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i32 8, i32 -1
br label %81
17: ; preds = %1
%18 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %81, label %20
20: ; preds = %17
%21 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
%23 = select i1 %22, i32 12, i32 -1
br label %81
24: ; preds = %1
%25 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %81, label %27
27: ; preds = %24
%28 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
%30 = select i1 %29, i32 2, i32 -1
br label %81
31: ; preds = %1
%32 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %81, label %34
34: ; preds = %31
%35 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %81, label %37
37: ; preds = %34
%38 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %81, label %40
40: ; preds = %37
%41 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %81, label %43
43: ; preds = %40
%44 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %81, label %46
46: ; preds = %43
%47 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%48 = icmp eq i32 %47, 0
%49 = select i1 %48, i32 7, i32 -1
br label %81
50: ; preds = %1
%51 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %81, label %53
53: ; preds = %50
%54 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %81, label %56
56: ; preds = %53
%57 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
%59 = select i1 %58, i32 5, i32 -1
br label %81
60: ; preds = %1
%61 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
br i1 %62, label %81, label %63
63: ; preds = %60
%64 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
%66 = select i1 %65, i32 11, i32 -1
br label %81
67: ; preds = %1
%68 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%69 = icmp eq i32 %68, 0
br i1 %69, label %81, label %70
70: ; preds = %67
%71 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
%73 = select i1 %72, i32 10, i32 -1
br label %81
74: ; preds = %1
%75 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%76 = icmp eq i32 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %74
%78 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%79 = icmp eq i32 %78, 0
%80 = select i1 %79, i32 9, i32 -1
br label %81
81: ; preds = %77, %70, %63, %46, %27, %20, %13, %1, %74, %67, %60, %56, %50, %53, %43, %37, %40, %31, %34, %24, %17, %10, %4, %7
%82 = phi i32 [ 4, %7 ], [ 4, %4 ], [ 8, %10 ], [ 12, %17 ], [ 2, %24 ], [ 1, %34 ], [ 1, %31 ], [ 6, %40 ], [ 6, %37 ], [ 7, %43 ], [ 3, %53 ], [ 3, %50 ], [ %59, %56 ], [ 11, %60 ], [ 10, %67 ], [ 9, %74 ], [ -1, %1 ], [ %16, %13 ], [ %23, %20 ], [ %30, %27 ], [ %49, %46 ], [ %66, %63 ], [ %73, %70 ], [ %80, %77 ]
ret i32 %82
}