#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 */
unsigned int atoi(char const *);
scalar_t__ strcmp(char const *, char const *);
int strlen(char const *);
long parse_timezone(const char *tz) {
  const char *rfc822_timezones[][4] = {
      {"M", NULL},
      {"L", NULL},
      {"K", NULL},
      {"I", NULL},
      {"H", "PST", NULL},
      {"G", "MST", "PDT", NULL},
      {"F", "CST", "MDT", NULL},
      {"E", "EST", "CDT", NULL},
      {"D", "EDT", NULL},
      {"C", NULL},
      {"B", NULL},
      {"A", NULL},
      {"Z", "UT", "GMT", NULL},
      {"N", NULL},
      {"O", NULL},
      {"P", NULL},
      {"Q", NULL},
      {"R", NULL},
      {"S", NULL},
      {"T", NULL},
      {"U", NULL},
      {"V", NULL},
      {"W", NULL},
      {"X", NULL},
      {"Y", NULL},
      {NULL},
  };
  unsigned int i, j;
  if ((*tz == '+' || *tz == '-') && strlen(tz) == 5) {
    i = atoi(tz);
    return ((i / 100) * 60 + i % 100) * 60;
  }
  for (i = 0; i < (sizeof((rfc822_timezones)) / sizeof((rfc822_timezones)[0]));
       ++i)
    for (j = 0; rfc822_timezones[i][j] != NULL; ++j)
      if (strcmp(rfc822_timezones[i][j], tz) == 0)
        return (i - 12) * 3600;
  return 0;
}


x86 assembly (clang, -O0):
<parse_timezone>:
push   %rbp
mov    %rsp,%rbp
sub    $0x360,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x350(%rbp),%rdi
lea    0x2983(%rip),%rsi
mov    $0x340,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     1187 <parse_timezone+0x47>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11e5 <parse_timezone+0xa5>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x5,%eax
jne    11e5 <parse_timezone+0xa5>
mov    -0x10(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x354(%rbp)
mov    -0x354(%rbp),%eax
mov    $0x64,%ecx
xor    %edx,%edx
div    %ecx
imul   $0x3c,%eax,%eax
mov    %eax,-0x35c(%rbp)
mov    -0x354(%rbp),%eax
mov    $0x64,%ecx
xor    %edx,%edx
div    %ecx
mov    -0x35c(%rbp),%eax
add    %edx,%eax
imul   $0x3c,%eax,%eax
mov    %eax,%eax
mov    %rax,-0x8(%rbp)
jmp    12b7 <parse_timezone+0x177>
movl   $0x0,-0x354(%rbp)
mov    -0x354(%rbp),%eax
cmp    $0x1a,%rax
jae    12af <parse_timezone+0x16f>
movl   $0x0,-0x358(%rbp)
mov    -0x354(%rbp),%eax
mov    %eax,%ecx
lea    -0x350(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x358(%rbp),%ecx
cmpq   $0x0,(%rax,%rcx,8)
je     1296 <parse_timezone+0x156>
mov    -0x354(%rbp),%eax
mov    %eax,%ecx
lea    -0x350(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x358(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    127d <parse_timezone+0x13d>
mov    -0x354(%rbp),%eax
sub    $0xc,%eax
imul   $0xe10,%eax,%eax
mov    %eax,%eax
mov    %rax,-0x8(%rbp)
jmp    12b7 <parse_timezone+0x177>
jmp    1282 <parse_timezone+0x142>
mov    -0x358(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x358(%rbp)
jmp    1209 <parse_timezone+0xc9>
jmp    129b <parse_timezone+0x15b>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
jmp    11ef <parse_timezone+0xaf>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x360,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_timezone>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r13
mov    (%rdi),%al
cmp    $0x2d,%al
je     1148 <parse_timezone+0x18>
cmp    $0x2b,%al
jne    117a <parse_timezone+0x4a>
mov    %r13,%rdi
call   1030 <strlen@plt>
cmp    $0x5,%eax
jne    117a <parse_timezone+0x4a>
mov    %r13,%rdi
call   1050 <atoi@plt>
mov    %eax,%ecx
imul   $0x51eb851f,%rcx,%rcx
shr    $0x25,%rcx
imul   $0x3c,%ecx,%edx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
add    %edx,%eax
imul   $0x3c,%eax,%r14d
jmp    11d9 <parse_timezone+0xa9>
xor    %r14d,%r14d
lea    0x295c(%rip),%r12
xor    %r15d,%r15d
cmp    $0x19,%r15
je     11d9 <parse_timezone+0xa9>
mov    %r15,%rbx
shl    $0x5,%rbx
mov    (%rbx,%r12,1),%rdi
mov    $0x1,%ebp
nopl   (%rax)
mov    %r13,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11cb <parse_timezone+0x9b>
mov    %ebp,%eax
lea    (%r12,%rbx,1),%rcx
mov    (%rcx,%rax,8),%rdi
add    $0x1,%ebp
test   %rdi,%rdi
jne    11a0 <parse_timezone+0x70>
add    $0x1,%r15
cmp    $0x1a,%r15
jne    1187 <parse_timezone+0x57>
jmp    11d9 <parse_timezone+0xa9>
imul   $0xe10,%r15d,%r14d
add    $0xffff5740,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"M\00"
@.str.1 = [2 x i8] c"L\00"
@.str.2 = [2 x i8] c"K\00"
@.str.3 = [2 x i8] c"I\00"
@.str.4 = [2 x i8] c"H\00"
@.str.5 = [4 x i8] c"PST\00"
@.str.6 = [2 x i8] c"G\00"
@.str.7 = [4 x i8] c"MST\00"
@.str.8 = [4 x i8] c"PDT\00"
@.str.9 = [2 x i8] c"F\00"
@.str.10 = [4 x i8] c"CST\00"
@.str.11 = [4 x i8] c"MDT\00"
@.str.12 = [2 x i8] c"E\00"
@.str.13 = [4 x i8] c"EST\00"
@.str.14 = [4 x i8] c"CDT\00"
@.str.15 = [2 x i8] c"D\00"
@.str.16 = [4 x i8] c"EDT\00"
@.str.17 = [2 x i8] c"C\00"
@.str.18 = [2 x i8] c"B\00"
@.str.19 = [2 x i8] c"A\00"
@.str.20 = [2 x i8] c"Z\00"
@.str.21 = [3 x i8] c"UT\00"
@.str.22 = [4 x i8] c"GMT\00"
@.str.23 = [2 x i8] c"N\00"
@.str.24 = [2 x i8] c"O\00"
@.str.25 = [2 x i8] c"P\00"
@.str.26 = [2 x i8] c"Q\00"
@.str.27 = [2 x i8] c"R\00"
@.str.28 = [2 x i8] c"S\00"
@.str.29 = [2 x i8] c"T\00"
@.str.30 = [2 x i8] c"U\00"
@.str.31 = [2 x i8] c"V\00"
@.str.32 = [2 x i8] c"W\00"
@.str.33 = [2 x i8] c"X\00"
@.str.34 = [2 x i8] c"Y\00"
@__const.parse_timezone.rfc822_timezones = [26 x [4 x i8*]] [[4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] zeroinitializer]
define i64 @parse_timezone(i8* %0) {
%2 = alloca i64
%3 = alloca i8*
%4 = alloca [26 x [4 x i8*]]
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
%7 = bitcast [26 x [4 x i8*]]* %4 to i8*
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 43
br i1 %11, label %17, label %12
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 45
br i1 %16, label %17, label %32
17: ; preds = %12, %1
%18 = load i8*, i8** %3
%19 = call i32 @strlen(i8* %18)
%20 = icmp eq i32 %19, 5
br i1 %20, label %21, label %32
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = call i32 @atoi(i8* %22)
store i32 %23, i32* %5
%24 = load i32, i32* %5
%25 = udiv i32 %24, 100
%26 = mul i32 %25, 60
%27 = load i32, i32* %5
%28 = urem i32 %27, 100
%29 = add i32 %26, %28
%30 = mul i32 %29, 60
%31 = zext i32 %30 to i64
store i64 %31, i64* %2
br label %72
32: ; preds = %17, %12
store i32 0, i32* %5
br label %33
33: ; preds = %68, %32
%34 = load i32, i32* %5
%35 = zext i32 %34 to i64
%36 = icmp ult i64 %35, 26
br i1 %36, label %37, label %71
37: ; preds = %33
store i32 0, i32* %6
br label %38
38: ; preds = %64, %37
%39 = load i32, i32* %5
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* %4, i64 0, i64 %40
%42 = load i32, i32* %6
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds [4 x i8*], [4 x i8*]* %41, i64 0, i64 %43
%45 = load i8*, i8** %44
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %67
47: ; preds = %38
%48 = load i32, i32* %5
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* %4, i64 0, i64 %49
%51 = load i32, i32* %6
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds [4 x i8*], [4 x i8*]* %50, i64 0, i64 %52
%54 = load i8*, i8** %53
%55 = load i8*, i8** %3
%56 = call i64 @strcmp(i8* %54, i8* %55)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %63
58: ; preds = %47
%59 = load i32, i32* %5
%60 = sub i32 %59, 12
%61 = mul i32 %60, 3600
%62 = zext i32 %61 to i64
store i64 %62, i64* %2
br label %72
63: ; preds = %47
br label %64
64: ; preds = %63
%65 = load i32, i32* %6
%66 = add i32 %65, 1
store i32 %66, i32* %6
br label %38
67: ; preds = %38
br label %68
68: ; preds = %67
%69 = load i32, i32* %5
%70 = add i32 %69, 1
store i32 %70, i32* %5
br label %33
71: ; preds = %33
store i64 0, i64* %2
br label %72
72: ; preds = %71, %58, %21
%73 = load i64, i64* %2
ret i64 %73
}

LLVM IR (-O2):
@.str = [2 x i8] c"M\00"
@.str.1 = [2 x i8] c"L\00"
@.str.2 = [2 x i8] c"K\00"
@.str.3 = [2 x i8] c"I\00"
@.str.4 = [2 x i8] c"H\00"
@.str.5 = [4 x i8] c"PST\00"
@.str.6 = [2 x i8] c"G\00"
@.str.7 = [4 x i8] c"MST\00"
@.str.8 = [4 x i8] c"PDT\00"
@.str.9 = [2 x i8] c"F\00"
@.str.10 = [4 x i8] c"CST\00"
@.str.11 = [4 x i8] c"MDT\00"
@.str.12 = [2 x i8] c"E\00"
@.str.13 = [4 x i8] c"EST\00"
@.str.14 = [4 x i8] c"CDT\00"
@.str.15 = [2 x i8] c"D\00"
@.str.16 = [4 x i8] c"EDT\00"
@.str.17 = [2 x i8] c"C\00"
@.str.18 = [2 x i8] c"B\00"
@.str.19 = [2 x i8] c"A\00"
@.str.20 = [2 x i8] c"Z\00"
@.str.21 = [3 x i8] c"UT\00"
@.str.22 = [4 x i8] c"GMT\00"
@.str.23 = [2 x i8] c"N\00"
@.str.24 = [2 x i8] c"O\00"
@.str.25 = [2 x i8] c"P\00"
@.str.26 = [2 x i8] c"Q\00"
@.str.27 = [2 x i8] c"R\00"
@.str.28 = [2 x i8] c"S\00"
@.str.29 = [2 x i8] c"T\00"
@.str.30 = [2 x i8] c"U\00"
@.str.31 = [2 x i8] c"V\00"
@.str.32 = [2 x i8] c"W\00"
@.str.33 = [2 x i8] c"X\00"
@.str.34 = [2 x i8] c"Y\00"
@__const.parse_timezone.rfc822_timezones = [26 x [4 x i8*]] [[4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] zeroinitializer]
define i64 @parse_timezone(i8* %0) {
%2 = load i8, i8* %0
switch i8 %2, label %6 [
i8 43, label %3
i8 45, label %3
]
3: ; preds = %1, %1
%4 = tail call i32 @strlen(i8* %0)
%5 = icmp eq i32 %4, 5
br i1 %5, label %7, label %6
6: ; preds = %1, %3
br label %14
7: ; preds = %3
%8 = tail call i32 @atoi(i8* %0)
%9 = udiv i32 %8, 100
%10 = mul nuw i32 %9, 60
%11 = urem i32 %8, 100
%12 = add nuw i32 %10, %11
%13 = mul i32 %12, 60
br label %38
14: ; preds = %6, %35
%15 = phi i64 [ %36, %35 ], [ 0, %6 ]
%16 = icmp eq i64 %15, 25
br i1 %16, label %38, label %17
17: ; preds = %14
%18 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* @__const.parse_timezone.rfc822_timezones, i64 0, i64 %15, i64 0
%19 = load i8*, i8** %18
br label %25
20: ; preds = %25
%21 = zext i32 %30 to i64
%22 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* @__const.parse_timezone.rfc822_timezones, i64 0, i64 %15, i64 %21
%23 = load i8*, i8** %22
%24 = icmp eq i8* %23, null
br i1 %24, label %35, label %25
25: ; preds = %17, %20
%26 = phi i8* [ %23, %20 ], [ %19, %17 ]
%27 = phi i32 [ %30, %20 ], [ 0, %17 ]
%28 = tail call i64 @strcmp(i8* %26, i8* %0)
%29 = icmp eq i64 %28, 0
%30 = add i32 %27, 1
br i1 %29, label %31, label %20
31: ; preds = %25
%32 = trunc i64 %15 to i32
%33 = mul i32 %32, 3600
%34 = add i32 %33, -43200
br label %38
35: ; preds = %20
%36 = add nuw nsw i64 %15, 1
%37 = icmp eq i64 %36, 26
br i1 %37, label %38, label %14
38: ; preds = %14, %35, %31, %7
%39 = phi i32 [ %13, %7 ], [ %34, %31 ], [ 0, %35 ], [ 0, %14 ]
%40 = zext i32 %39 to i64
ret i64 %40
}