#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_mday;
  int tm_mon;
  int tm_year;
  scalar_t__ tm_isdst;
  scalar_t__ tm_sec;
  scalar_t__ tm_min;
  scalar_t__ tm_hour;
};

/* Variables and functions */
void *atoi(char *);
scalar_t__ isdigit(char);
scalar_t__ isspace(char);
int /*<<< orphan*/ mktime(struct tm *);
char *strchr(char *, char);
int /*<<< orphan*/ strncasecmp(char *, char *, int);
time_t parse_rfc822_date(char *date_string) {
  struct tm tm;
  char *s, *z;
  s = date_string;
  z = strchr(s, ',');
  if (z)
    s = z + 1;
  while (*s && isspace(*s))
    s++;
  if (!isdigit(*s))
    goto tough_cheese;
  tm.tm_mday = atoi(s);
  if (tm.tm_mday > 31)
    goto tough_cheese;
  while (isdigit(*s))
    s++;
  while (*s && isspace(*s))
    s++;
  if (!*s)
    goto tough_cheese;
  if (!strncasecmp(s, "jan", 3))
    tm.tm_mon = 0;
  else if (!strncasecmp(s, "feb", 3))
    tm.tm_mon = 1;
  else if (!strncasecmp(s, "mar", 3))
    tm.tm_mon = 2;
  else if (!strncasecmp(s, "apr", 3))
    tm.tm_mon = 3;
  else if (!strncasecmp(s, "may", 3))
    tm.tm_mon = 4;
  else if (!strncasecmp(s, "jun", 3))
    tm.tm_mon = 5;
  else if (!strncasecmp(s, "jul", 3))
    tm.tm_mon = 6;
  else if (!strncasecmp(s, "aug", 3))
    tm.tm_mon = 7;
  else if (!strncasecmp(s, "sep", 3))
    tm.tm_mon = 8;
  else if (!strncasecmp(s, "oct", 3))
    tm.tm_mon = 9;
  else if (!strncasecmp(s, "nov", 3))
    tm.tm_mon = 10;
  else if (!strncasecmp(s, "dec", 3))
    tm.tm_mon = 11;
  else
    goto tough_cheese;
  while (!isspace(*s))
    s++;
  while (*s && isspace(*s))
    s++;
  if (!isdigit(*s))
    goto tough_cheese;
  tm.tm_year = atoi(s);
  if (tm.tm_year < 70) {
    tm.tm_year += 100;
  } else if (tm.tm_year >= 1900) {
    tm.tm_year -= 1900;
  }
  while (isdigit(*s))
    s++;
  while (*s && isspace(*s))
    s++;
  if (!*s)
    goto tough_cheese;
  tm.tm_hour = 0;
  tm.tm_min = 0;
  tm.tm_sec = 0;
  tm.tm_isdst = 0;
  return mktime(&tm);
tough_cheese:
  return (time_t)-1;
}


x86 assembly (clang, -O0):
<parse_rfc822_date>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    $0x2c,%esi
call   1040 <strchr@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     119d <parse_rfc822_date+0x3d>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11a2 <parse_rfc822_date+0x42>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x51(%rbp)
je     11cd <parse_rfc822_date+0x6d>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    11dd <parse_rfc822_date+0x7d>
jmp    11ee <parse_rfc822_date+0x8e>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11a2 <parse_rfc822_date+0x42>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
jne    1209 <parse_rfc822_date+0xa9>
jmp    168c <parse_rfc822_date+0x52c>
mov    -0x48(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x1f,-0x40(%rbp)
jle    1224 <parse_rfc822_date+0xc4>
jmp    168c <parse_rfc822_date+0x52c>
jmp    1229 <parse_rfc822_date+0xc9>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1250 <parse_rfc822_date+0xf0>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1229 <parse_rfc822_date+0xc9>
jmp    1255 <parse_rfc822_date+0xf5>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x52(%rbp)
je     1280 <parse_rfc822_date+0x120>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x52(%rbp)
mov    -0x52(%rbp),%al
test   $0x1,%al
jne    1290 <parse_rfc822_date+0x130>
jmp    12a1 <parse_rfc822_date+0x141>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1255 <parse_rfc822_date+0xf5>
mov    -0x48(%rbp),%rax
cmpb   $0x0,(%rax)
jne    12b3 <parse_rfc822_date+0x153>
jmp    168c <parse_rfc822_date+0x52c>
mov    -0x48(%rbp),%rdi
lea    0xd42(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12dd <parse_rfc822_date+0x17d>
movl   $0x0,-0x3c(%rbp)
jmp    14e7 <parse_rfc822_date+0x387>
mov    -0x48(%rbp),%rdi
lea    0xd1c(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1307 <parse_rfc822_date+0x1a7>
movl   $0x1,-0x3c(%rbp)
jmp    14e2 <parse_rfc822_date+0x382>
mov    -0x48(%rbp),%rdi
lea    0xcf6(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1331 <parse_rfc822_date+0x1d1>
movl   $0x2,-0x3c(%rbp)
jmp    14dd <parse_rfc822_date+0x37d>
mov    -0x48(%rbp),%rdi
lea    0xcd0(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    135b <parse_rfc822_date+0x1fb>
movl   $0x3,-0x3c(%rbp)
jmp    14d8 <parse_rfc822_date+0x378>
mov    -0x48(%rbp),%rdi
lea    0xcaa(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1385 <parse_rfc822_date+0x225>
movl   $0x4,-0x3c(%rbp)
jmp    14d3 <parse_rfc822_date+0x373>
mov    -0x48(%rbp),%rdi
lea    0xc84(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13af <parse_rfc822_date+0x24f>
movl   $0x5,-0x3c(%rbp)
jmp    14ce <parse_rfc822_date+0x36e>
mov    -0x48(%rbp),%rdi
lea    0xc5e(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13d9 <parse_rfc822_date+0x279>
movl   $0x6,-0x3c(%rbp)
jmp    14c9 <parse_rfc822_date+0x369>
mov    -0x48(%rbp),%rdi
lea    0xc38(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1403 <parse_rfc822_date+0x2a3>
movl   $0x7,-0x3c(%rbp)
jmp    14c4 <parse_rfc822_date+0x364>
mov    -0x48(%rbp),%rdi
lea    0xc12(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    142d <parse_rfc822_date+0x2cd>
movl   $0x8,-0x3c(%rbp)
jmp    14bf <parse_rfc822_date+0x35f>
mov    -0x48(%rbp),%rdi
lea    0xbec(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1457 <parse_rfc822_date+0x2f7>
movl   $0x9,-0x3c(%rbp)
jmp    14ba <parse_rfc822_date+0x35a>
mov    -0x48(%rbp),%rdi
lea    0xbc6(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1481 <parse_rfc822_date+0x321>
movl   $0xa,-0x3c(%rbp)
jmp    14b5 <parse_rfc822_date+0x355>
mov    -0x48(%rbp),%rdi
lea    0xba0(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    14ab <parse_rfc822_date+0x34b>
movl   $0xb,-0x3c(%rbp)
jmp    14b0 <parse_rfc822_date+0x350>
jmp    168c <parse_rfc822_date+0x52c>
jmp    14b5 <parse_rfc822_date+0x355>
jmp    14ba <parse_rfc822_date+0x35a>
jmp    14bf <parse_rfc822_date+0x35f>
jmp    14c4 <parse_rfc822_date+0x364>
jmp    14c9 <parse_rfc822_date+0x369>
jmp    14ce <parse_rfc822_date+0x36e>
jmp    14d3 <parse_rfc822_date+0x373>
jmp    14d8 <parse_rfc822_date+0x378>
jmp    14dd <parse_rfc822_date+0x37d>
jmp    14e2 <parse_rfc822_date+0x382>
jmp    14e7 <parse_rfc822_date+0x387>
jmp    14ec <parse_rfc822_date+0x38c>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    150e <parse_rfc822_date+0x3ae>
jmp    151f <parse_rfc822_date+0x3bf>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    14ec <parse_rfc822_date+0x38c>
jmp    1524 <parse_rfc822_date+0x3c4>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x53(%rbp)
je     154f <parse_rfc822_date+0x3ef>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x53(%rbp)
mov    -0x53(%rbp),%al
test   $0x1,%al
jne    155f <parse_rfc822_date+0x3ff>
jmp    1570 <parse_rfc822_date+0x410>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1524 <parse_rfc822_date+0x3c4>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
jne    158b <parse_rfc822_date+0x42b>
jmp    168c <parse_rfc822_date+0x52c>
mov    -0x48(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x46,-0x38(%rbp)
jge    15af <parse_rfc822_date+0x44f>
mov    -0x38(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x38(%rbp)
jmp    15cc <parse_rfc822_date+0x46c>
cmpl   $0x76c,-0x38(%rbp)
jl     15c7 <parse_rfc822_date+0x467>
mov    -0x38(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x38(%rbp)
jmp    15cc <parse_rfc822_date+0x46c>
jmp    15d1 <parse_rfc822_date+0x471>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15f8 <parse_rfc822_date+0x498>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    15d1 <parse_rfc822_date+0x471>
jmp    15fd <parse_rfc822_date+0x49d>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x54(%rbp)
je     1628 <parse_rfc822_date+0x4c8>
mov    -0x48(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x54(%rbp)
mov    -0x54(%rbp),%al
test   $0x1,%al
jne    1638 <parse_rfc822_date+0x4d8>
jmp    1649 <parse_rfc822_date+0x4e9>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    15fd <parse_rfc822_date+0x49d>
mov    -0x48(%rbp),%rax
cmpb   $0x0,(%rax)
jne    165b <parse_rfc822_date+0x4fb>
jmp    168c <parse_rfc822_date+0x52c>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
lea    -0x40(%rbp),%rdi
call   1070 <mktime@plt>
mov    %eax,-0x4(%rbp)
jmp    1693 <parse_rfc822_date+0x533>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_rfc822_date>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rdi,%rbp
mov    $0x2c,%esi
call   1040 <strchr@plt>
lea    0x1(%rax),%rbx
test   %rax,%rax
cmove  %rbp,%rbx
mov    (%rbx),%al
test   %al,%al
je     11a9 <parse_rfc822_date+0x49>
cs nopw 0x0(%rax,%rax,1)
movsbl %al,%edi
call   1050 <isspace@plt>
test   %rax,%rax
je     11ad <parse_rfc822_date+0x4d>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1190 <parse_rfc822_date+0x30>
xor    %eax,%eax
jmp    11af <parse_rfc822_date+0x4f>
mov    (%rbx),%al
movsbl %al,%edi
call   1030 <isdigit@plt>
mov    $0xffffffff,%ebp
test   %rax,%rax
je     11d1 <parse_rfc822_date+0x71>
mov    %rbx,%rdi
call   1080 <atoi@plt>
mov    %eax,(%rsp)
cmp    $0x1f,%eax
jle    11dc <parse_rfc822_date+0x7c>
mov    %ebp,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
add    $0xffffffffffffffff,%rbx
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isdigit@plt>
test   %rax,%rax
jne    11e0 <parse_rfc822_date+0x80>
mov    (%rbx),%al
test   %al,%al
je     11d1 <parse_rfc822_date+0x71>
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1050 <isspace@plt>
test   %rax,%rax
je     121b <parse_rfc822_date+0xbb>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1200 <parse_rfc822_date+0xa0>
jmp    11d1 <parse_rfc822_date+0x71>
cmpb   $0x0,(%rbx)
je     11d1 <parse_rfc822_date+0x71>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1376 <parse_rfc822_date+0x216>
lea    0xdc1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     137b <parse_rfc822_date+0x21b>
lea    0xda9(%rip),%rsi
mov    $0x3,%r14d
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1383 <parse_rfc822_date+0x223>
lea    0xd8b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13c1 <parse_rfc822_date+0x261>
lea    0xd73(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     138b <parse_rfc822_date+0x22b>
lea    0xd5b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1393 <parse_rfc822_date+0x233>
lea    0xd43(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     139b <parse_rfc822_date+0x23b>
lea    0xd2b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13a3 <parse_rfc822_date+0x243>
lea    0xd13(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13ab <parse_rfc822_date+0x24b>
lea    0xcfb(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13b3 <parse_rfc822_date+0x253>
lea    0xce7(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13bb <parse_rfc822_date+0x25b>
lea    0xcd3(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
jne    11d1 <parse_rfc822_date+0x71>
mov    $0xb,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
xor    %r14d,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x1,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x2,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x4,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x5,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x6,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x7,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x8,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0x9,%r14d
jmp    13c1 <parse_rfc822_date+0x261>
mov    $0xa,%r14d
add    $0xffffffffffffffff,%rbx
mov    %r14d,0x4(%rsp)
nopw   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1050 <isspace@plt>
test   %rax,%rax
je     13d0 <parse_rfc822_date+0x270>
mov    (%rbx),%al
test   %al,%al
je     1409 <parse_rfc822_date+0x2a9>
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1050 <isspace@plt>
test   %rax,%rax
je     140d <parse_rfc822_date+0x2ad>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    13f0 <parse_rfc822_date+0x290>
xor    %eax,%eax
jmp    140f <parse_rfc822_date+0x2af>
mov    (%rbx),%al
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     11d1 <parse_rfc822_date+0x71>
mov    %rbx,%rdi
call   1080 <atoi@plt>
mov    %eax,0x8(%rsp)
mov    $0x64,%ecx
cmp    $0x46,%eax
jl     1442 <parse_rfc822_date+0x2e2>
mov    $0xfffff894,%ecx
cmp    $0x76c,%eax
jb     1450 <parse_rfc822_date+0x2f0>
add    %eax,%ecx
mov    %ecx,0x8(%rsp)
nopl   0x0(%rax,%rax,1)
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1450 <parse_rfc822_date+0x2f0>
mov    -0x1(%rbx),%al
test   %al,%al
je     11d1 <parse_rfc822_date+0x71>
nopl   0x0(%rax)
movsbl %al,%edi
call   1050 <isspace@plt>
test   %rax,%rax
je     148d <parse_rfc822_date+0x32d>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1470 <parse_rfc822_date+0x310>
jmp    11d1 <parse_rfc822_date+0x71>
cmpb   $0x0,-0x1(%rbx)
je     11d1 <parse_rfc822_date+0x71>
xorps  %xmm0,%xmm0
movups %xmm0,0x20(%rsp)
movups %xmm0,0x10(%rsp)
mov    %rsp,%rdi
call   1070 <mktime@plt>
mov    %eax,%ebp
jmp    11d1 <parse_rfc822_date+0x71>

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i64, i64, i64, i64 }
@.str = [4 x i8] c"jan\00"
@.str.1 = [4 x i8] c"feb\00"
@.str.2 = [4 x i8] c"mar\00"
@.str.3 = [4 x i8] c"apr\00"
@.str.4 = [4 x i8] c"may\00"
@.str.5 = [4 x i8] c"jun\00"
@.str.6 = [4 x i8] c"jul\00"
@.str.7 = [4 x i8] c"aug\00"
@.str.8 = [4 x i8] c"sep\00"
@.str.9 = [4 x i8] c"oct\00"
@.str.10 = [4 x i8] c"nov\00"
@.str.11 = [4 x i8] c"dec\00"
define i32 @parse_rfc822_date(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.tm
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %3
%7 = load i8*, i8** %3
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = call i8* @strchr(i8* %8, i8 signext 44)
store i8* %9, i8** %6
%10 = load i8*, i8** %6
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load i8*, i8** %6
%14 = getelementptr inbounds i8, i8* %13, i64 1
store i8* %14, i8** %5
br label %15
15: ; preds = %12, %1
br label %16
16: ; preds = %28, %15
%17 = load i8*, i8** %5
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load i8*, i8** %5
%23 = load i8, i8* %22
%24 = call i64 @isspace(i8 signext %23)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %21, %16
%27 = phi i1 [ false, %16 ], [ %25, %21 ]
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = load i8*, i8** %5
%30 = getelementptr inbounds i8, i8* %29, i32 1
store i8* %30, i8** %5
br label %16
31: ; preds = %26
%32 = load i8*, i8** %5
%33 = load i8, i8* %32
%34 = call i64 @isdigit(i8 signext %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %31
br label %249
37: ; preds = %31
%38 = load i8*, i8** %5
%39 = call i8* @atoi(i8* %38)
%40 = ptrtoint i8* %39 to i32
%41 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %40, i32* %41
%42 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
%43 = load i32, i32* %42
%44 = icmp sgt i32 %43, 31
br i1 %44, label %45, label %46
45: ; preds = %37
br label %249
46: ; preds = %37
br label %47
47: ; preds = %52, %46
%48 = load i8*, i8** %5
%49 = load i8, i8* %48
%50 = call i64 @isdigit(i8 signext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load i8*, i8** %5
%54 = getelementptr inbounds i8, i8* %53, i32 1
store i8* %54, i8** %5
br label %47
55: ; preds = %47
br label %56
56: ; preds = %68, %55
%57 = load i8*, i8** %5
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %56
%62 = load i8*, i8** %5
%63 = load i8, i8* %62
%64 = call i64 @isspace(i8 signext %63)
%65 = icmp ne i64 %64, 0
br label %66
66: ; preds = %61, %56
%67 = phi i1 [ false, %56 ], [ %65, %61 ]
br i1 %67, label %68, label %71
68: ; preds = %66
%69 = load i8*, i8** %5
%70 = getelementptr inbounds i8, i8* %69, i32 1
store i8* %70, i8** %5
br label %56
71: ; preds = %66
%72 = load i8*, i8** %5
%73 = load i8, i8* %72
%74 = icmp ne i8 %73, 0
br i1 %74, label %76, label %75
75: ; preds = %71
br label %249
76: ; preds = %71
%77 = load i8*, i8** %5
%78 = call i32 @strncasecmp(i8* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%79 = icmp ne i32 %78, 0
br i1 %79, label %82, label %80
80: ; preds = %76
%81 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 0, i32* %81
br label %160
82: ; preds = %76
%83 = load i8*, i8** %5
%84 = call i32 @strncasecmp(i8* %83, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%85 = icmp ne i32 %84, 0
br i1 %85, label %88, label %86
86: ; preds = %82
%87 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 1, i32* %87
br label %159
88: ; preds = %82
%89 = load i8*, i8** %5
%90 = call i32 @strncasecmp(i8* %89, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%91 = icmp ne i32 %90, 0
br i1 %91, label %94, label %92
92: ; preds = %88
%93 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 2, i32* %93
br label %158
94: ; preds = %88
%95 = load i8*, i8** %5
%96 = call i32 @strncasecmp(i8* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%97 = icmp ne i32 %96, 0
br i1 %97, label %100, label %98
98: ; preds = %94
%99 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 3, i32* %99
br label %157
100: ; preds = %94
%101 = load i8*, i8** %5
%102 = call i32 @strncasecmp(i8* %101, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 3)
%103 = icmp ne i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %100
%105 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 4, i32* %105
br label %156
106: ; preds = %100
%107 = load i8*, i8** %5
%108 = call i32 @strncasecmp(i8* %107, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 3)
%109 = icmp ne i32 %108, 0
br i1 %109, label %112, label %110
110: ; preds = %106
%111 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 5, i32* %111
br label %155
112: ; preds = %106
%113 = load i8*, i8** %5
%114 = call i32 @strncasecmp(i8* %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%115 = icmp ne i32 %114, 0
br i1 %115, label %118, label %116
116: ; preds = %112
%117 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 6, i32* %117
br label %154
118: ; preds = %112
%119 = load i8*, i8** %5
%120 = call i32 @strncasecmp(i8* %119, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 3)
%121 = icmp ne i32 %120, 0
br i1 %121, label %124, label %122
122: ; preds = %118
%123 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 7, i32* %123
br label %153
124: ; preds = %118
%125 = load i8*, i8** %5
%126 = call i32 @strncasecmp(i8* %125, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 3)
%127 = icmp ne i32 %126, 0
br i1 %127, label %130, label %128
128: ; preds = %124
%129 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 8, i32* %129
br label %152
130: ; preds = %124
%131 = load i8*, i8** %5
%132 = call i32 @strncasecmp(i8* %131, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 3)
%133 = icmp ne i32 %132, 0
br i1 %133, label %136, label %134
134: ; preds = %130
%135 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 9, i32* %135
br label %151
136: ; preds = %130
%137 = load i8*, i8** %5
%138 = call i32 @strncasecmp(i8* %137, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 3)
%139 = icmp ne i32 %138, 0
br i1 %139, label %142, label %140
140: ; preds = %136
%141 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 10, i32* %141
br label %150
142: ; preds = %136
%143 = load i8*, i8** %5
%144 = call i32 @strncasecmp(i8* %143, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%145 = icmp ne i32 %144, 0
br i1 %145, label %148, label %146
146: ; preds = %142
%147 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i32 11, i32* %147
br label %149
148: ; preds = %142
br label %249
149: ; preds = %146
br label %150
150: ; preds = %149, %140
br label %151
151: ; preds = %150, %134
br label %152
152: ; preds = %151, %128
br label %153
153: ; preds = %152, %122
br label %154
154: ; preds = %153, %116
br label %155
155: ; preds = %154, %110
br label %156
156: ; preds = %155, %104
br label %157
157: ; preds = %156, %98
br label %158
158: ; preds = %157, %92
br label %159
159: ; preds = %158, %86
br label %160
160: ; preds = %159, %80
br label %161
161: ; preds = %167, %160
%162 = load i8*, i8** %5
%163 = load i8, i8* %162
%164 = call i64 @isspace(i8 signext %163)
%165 = icmp ne i64 %164, 0
%166 = xor i1 %165, true
br i1 %166, label %167, label %170
167: ; preds = %161
%168 = load i8*, i8** %5
%169 = getelementptr inbounds i8, i8* %168, i32 1
store i8* %169, i8** %5
br label %161
170: ; preds = %161
br label %171
171: ; preds = %183, %170
%172 = load i8*, i8** %5
%173 = load i8, i8* %172
%174 = sext i8 %173 to i32
%175 = icmp ne i32 %174, 0
br i1 %175, label %176, label %181
176: ; preds = %171
%177 = load i8*, i8** %5
%178 = load i8, i8* %177
%179 = call i64 @isspace(i8 signext %178)
%180 = icmp ne i64 %179, 0
br label %181
181: ; preds = %176, %171
%182 = phi i1 [ false, %171 ], [ %180, %176 ]
br i1 %182, label %183, label %186
183: ; preds = %181
%184 = load i8*, i8** %5
%185 = getelementptr inbounds i8, i8* %184, i32 1
store i8* %185, i8** %5
br label %171
186: ; preds = %181
%187 = load i8*, i8** %5
%188 = load i8, i8* %187
%189 = call i64 @isdigit(i8 signext %188)
%190 = icmp ne i64 %189, 0
br i1 %190, label %192, label %191
191: ; preds = %186
br label %249
192: ; preds = %186
%193 = load i8*, i8** %5
%194 = call i8* @atoi(i8* %193)
%195 = ptrtoint i8* %194 to i32
%196 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %195, i32* %196
%197 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%198 = load i32, i32* %197
%199 = icmp slt i32 %198, 70
br i1 %199, label %200, label %204
200: ; preds = %192
%201 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%202 = load i32, i32* %201
%203 = add nsw i32 %202, 100
store i32 %203, i32* %201
br label %213
204: ; preds = %192
%205 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%206 = load i32, i32* %205
%207 = icmp sge i32 %206, 1900
br i1 %207, label %208, label %212
208: ; preds = %204
%209 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%210 = load i32, i32* %209
%211 = sub nsw i32 %210, 1900
store i32 %211, i32* %209
br label %212
212: ; preds = %208, %204
br label %213
213: ; preds = %212, %200
br label %214
214: ; preds = %219, %213
%215 = load i8*, i8** %5
%216 = load i8, i8* %215
%217 = call i64 @isdigit(i8 signext %216)
%218 = icmp ne i64 %217, 0
br i1 %218, label %219, label %222
219: ; preds = %214
%220 = load i8*, i8** %5
%221 = getelementptr inbounds i8, i8* %220, i32 1
store i8* %221, i8** %5
br label %214
222: ; preds = %214
br label %223
223: ; preds = %235, %222
%224 = load i8*, i8** %5
%225 = load i8, i8* %224
%226 = sext i8 %225 to i32
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %233
228: ; preds = %223
%229 = load i8*, i8** %5
%230 = load i8, i8* %229
%231 = call i64 @isspace(i8 signext %230)
%232 = icmp ne i64 %231, 0
br label %233
233: ; preds = %228, %223
%234 = phi i1 [ false, %223 ], [ %232, %228 ]
br i1 %234, label %235, label %238
235: ; preds = %233
%236 = load i8*, i8** %5
%237 = getelementptr inbounds i8, i8* %236, i32 1
store i8* %237, i8** %5
br label %223
238: ; preds = %233
%239 = load i8*, i8** %5
%240 = load i8, i8* %239
%241 = icmp ne i8 %240, 0
br i1 %241, label %243, label %242
242: ; preds = %238
br label %249
243: ; preds = %238
%244 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 6
store i64 0, i64* %244
%245 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i64 0, i64* %245
%246 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i64 0, i64* %246
%247 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i64 0, i64* %247
%248 = call i32 @mktime(%struct.tm* %4)
store i32 %248, i32* %2
br label %250
249: ; preds = %242, %191, %148, %75, %45, %36
store i32 -1, i32* %2
br label %250
250: ; preds = %249, %243
%251 = load i32, i32* %2
ret i32 %251
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i64, i64, i64, i64 }
@.str = [4 x i8] c"jan\00"
@.str.1 = [4 x i8] c"feb\00"
@.str.2 = [4 x i8] c"mar\00"
@.str.3 = [4 x i8] c"apr\00"
@.str.4 = [4 x i8] c"may\00"
@.str.5 = [4 x i8] c"jun\00"
@.str.6 = [4 x i8] c"jul\00"
@.str.7 = [4 x i8] c"aug\00"
@.str.8 = [4 x i8] c"sep\00"
@.str.9 = [4 x i8] c"oct\00"
@.str.10 = [4 x i8] c"nov\00"
@.str.11 = [4 x i8] c"dec\00"
define i32 @parse_rfc822_date(i8* %0) {
%2 = alloca %struct.tm
%3 = bitcast %struct.tm* %2 to i8*
%4 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 44)
%5 = icmp eq i8* %4, null
%6 = getelementptr inbounds i8, i8* %4, i64 1
%7 = select i1 %5, i8* %0, i8* %6
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %1, %17
%11 = phi i8 [ %19, %17 ], [ %8, %1 ]
%12 = phi i8* [ %18, %17 ], [ %7, %1 ]
%13 = tail call i64 @isspace(i8 signext %11)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i8, i8* %12
br label %21
17: ; preds = %10
%18 = getelementptr inbounds i8, i8* %12, i64 1
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 0
br i1 %20, label %21, label %10
21: ; preds = %17, %15, %1
%22 = phi i8 [ 0, %1 ], [ %16, %15 ], [ 0, %17 ]
%23 = phi i8* [ %7, %1 ], [ %12, %15 ], [ %18, %17 ]
%24 = tail call i64 @isdigit(i8 signext %22)
%25 = icmp eq i64 %24, 0
br i1 %25, label %154, label %26
26: ; preds = %21
%27 = tail call i8* @atoi(i8* %23)
%28 = ptrtoint i8* %27 to i64
%29 = trunc i64 %28 to i32
%30 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 0
store i32 %29, i32* %30
%31 = icmp sgt i32 %29, 31
br i1 %31, label %154, label %32
32: ; preds = %26, %32
%33 = phi i8* [ %37, %32 ], [ %23, %26 ]
%34 = load i8, i8* %33
%35 = tail call i64 @isdigit(i8 signext %34)
%36 = icmp eq i64 %35, 0
%37 = getelementptr inbounds i8, i8* %33, i64 1
br i1 %36, label %38, label %32
38: ; preds = %32
%39 = load i8, i8* %33
%40 = icmp eq i8 %39, 0
br i1 %40, label %154, label %41
41: ; preds = %38, %46
%42 = phi i8 [ %48, %46 ], [ %39, %38 ]
%43 = phi i8* [ %47, %46 ], [ %33, %38 ]
%44 = tail call i64 @isspace(i8 signext %42)
%45 = icmp eq i64 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %41
%47 = getelementptr inbounds i8, i8* %43, i64 1
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 0
br i1 %49, label %154, label %41
50: ; preds = %41
%51 = load i8, i8* %43
%52 = icmp eq i8 %51, 0
br i1 %52, label %154, label %53
53: ; preds = %50
%54 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%55 = icmp eq i32 %54, 0
br i1 %55, label %89, label %56
56: ; preds = %53
%57 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%58 = icmp eq i32 %57, 0
br i1 %58, label %89, label %59
59: ; preds = %56
%60 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%61 = icmp eq i32 %60, 0
br i1 %61, label %89, label %62
62: ; preds = %59
%63 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%64 = icmp eq i32 %63, 0
br i1 %64, label %89, label %65
65: ; preds = %62
%66 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 3)
%67 = icmp eq i32 %66, 0
br i1 %67, label %89, label %68
68: ; preds = %65
%69 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 3)
%70 = icmp eq i32 %69, 0
br i1 %70, label %89, label %71
71: ; preds = %68
%72 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%73 = icmp eq i32 %72, 0
br i1 %73, label %89, label %74
74: ; preds = %71
%75 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 3)
%76 = icmp eq i32 %75, 0
br i1 %76, label %89, label %77
77: ; preds = %74
%78 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 3)
%79 = icmp eq i32 %78, 0
br i1 %79, label %89, label %80
80: ; preds = %77
%81 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 3)
%82 = icmp eq i32 %81, 0
br i1 %82, label %89, label %83
83: ; preds = %80
%84 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 3)
%85 = icmp eq i32 %84, 0
br i1 %85, label %89, label %86
86: ; preds = %83
%87 = tail call i32 @strncasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 3)
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %154
89: ; preds = %86, %83, %80, %77, %74, %71, %68, %65, %62, %59, %56, %53
%90 = phi i32 [ 0, %53 ], [ 1, %56 ], [ 2, %59 ], [ 3, %62 ], [ 4, %65 ], [ 5, %68 ], [ 6, %71 ], [ 7, %74 ], [ 8, %77 ], [ 9, %80 ], [ 10, %83 ], [ 11, %86 ]
%91 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
store i32 %90, i32* %91
br label %92
92: ; preds = %92, %89
%93 = phi i8* [ %43, %89 ], [ %97, %92 ]
%94 = load i8, i8* %93
%95 = tail call i64 @isspace(i8 signext %94)
%96 = icmp eq i64 %95, 0
%97 = getelementptr inbounds i8, i8* %93, i64 1
br i1 %96, label %92, label %98
98: ; preds = %92
%99 = load i8, i8* %93
%100 = icmp eq i8 %99, 0
br i1 %100, label %112, label %101
101: ; preds = %98, %108
%102 = phi i8 [ %110, %108 ], [ %99, %98 ]
%103 = phi i8* [ %109, %108 ], [ %93, %98 ]
%104 = tail call i64 @isspace(i8 signext %102)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %101
%107 = load i8, i8* %103
br label %112
108: ; preds = %101
%109 = getelementptr inbounds i8, i8* %103, i64 1
%110 = load i8, i8* %109
%111 = icmp eq i8 %110, 0
br i1 %111, label %112, label %101
112: ; preds = %108, %106, %98
%113 = phi i8 [ 0, %98 ], [ %107, %106 ], [ 0, %108 ]
%114 = phi i8* [ %93, %98 ], [ %103, %106 ], [ %109, %108 ]
%115 = tail call i64 @isdigit(i8 signext %113)
%116 = icmp eq i64 %115, 0
br i1 %116, label %154, label %117
117: ; preds = %112
%118 = tail call i8* @atoi(i8* %114)
%119 = ptrtoint i8* %118 to i64
%120 = trunc i64 %119 to i32
%121 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 2
store i32 %120, i32* %121
%122 = icmp slt i32 %120, 70
br i1 %122, label %125, label %123
123: ; preds = %117
%124 = icmp ugt i32 %120, 1899
br i1 %124, label %125, label %128
125: ; preds = %123, %117
%126 = phi i32 [ 100, %117 ], [ -1900, %123 ]
%127 = add nsw i32 %126, %120
store i32 %127, i32* %121
br label %128
128: ; preds = %125, %123
br label %129
129: ; preds = %128, %129
%130 = phi i8* [ %134, %129 ], [ %114, %128 ]
%131 = load i8, i8* %130
%132 = tail call i64 @isdigit(i8 signext %131)
%133 = icmp eq i64 %132, 0
%134 = getelementptr inbounds i8, i8* %130, i64 1
br i1 %133, label %135, label %129
135: ; preds = %129
%136 = load i8, i8* %130
%137 = icmp eq i8 %136, 0
br i1 %137, label %154, label %138
138: ; preds = %135, %143
%139 = phi i8 [ %145, %143 ], [ %136, %135 ]
%140 = phi i8* [ %144, %143 ], [ %130, %135 ]
%141 = tail call i64 @isspace(i8 signext %139)
%142 = icmp eq i64 %141, 0
br i1 %142, label %147, label %143
143: ; preds = %138
%144 = getelementptr inbounds i8, i8* %140, i64 1
%145 = load i8, i8* %144
%146 = icmp eq i8 %145, 0
br i1 %146, label %154, label %138
147: ; preds = %138
%148 = load i8, i8* %140
%149 = icmp eq i8 %148, 0
br i1 %149, label %154, label %150
150: ; preds = %147
%151 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 3
%152 = bitcast i64* %151 to i8*
%153 = call i32 @mktime(%struct.tm* %2)
br label %154
154: ; preds = %46, %143, %38, %135, %21, %26, %50, %86, %112, %147, %150
%155 = phi i32 [ %153, %150 ], [ -1, %147 ], [ -1, %112 ], [ -1, %86 ], [ -1, %50 ], [ -1, %26 ], [ -1, %21 ], [ -1, %135 ], [ -1, %38 ], [ -1, %143 ], [ -1, %46 ]
ret i32 %155
}