#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*/ url;
typedef int /*<<< orphan*/ text;
typedef int /*<<< orphan*/ tag;
typedef int /*<<< orphan*/ sev;
typedef int /*<<< orphan*/ s;
typedef int /*<<< orphan*/ name;
typedef int /*<<< orphan*/ mon;
typedef int /*<<< orphan*/ arch;

/* Variables and functions */
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, int, int, int, int, char *, char *, char *,
                          char *);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strcmp(char *, char const *);
int /*<<< orphan*/ strlcat(char *, char *, int);
int strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
int main(void) {
  const char *months[12] = {"January",   "February", "March",    "April",
                            "May",       "June",     "July",     "August",
                            "September", "October",  "November", "December"};
  char s[8192], name[64], sev[64], mon[32], tag[32], arch[256], text[8192],
      url[8192];
  int num, day, year, entry = 0, patch = 0;
  memset(name, 0, sizeof(name));
  while (fgets(s, sizeof(s), stdin) != NULL) {
    s[strlen(s) - 1] = 0;
    if (entry) {
      if (!strcmp(s, "<p>")) {
        int i;
        for (i = 0; i < 12; ++i)
          if (!strcmp(mon, months[i]))
            break;
        printf("%4.4d-%2.2d-%2.2d %d %s %s %s %s\n", year, i + 1, day, num,
               name, sev, url, text);
        entry = 0;
      } else if (!strncmp(s, "<font color=", 12)) {
        int i;
        memset(sev, 0, sizeof(sev));
        memset(mon, 0, sizeof(mon));
        memset(tag, 0, sizeof(tag));
        memset(arch, 0, sizeof(arch));
        memset(url, 0, sizeof(url));
        sscanf(s,
               "<font color=\"#009000\"><strong>%d: "
               "%63[^:]: %31s %d, %d</strong></font> "
               "&nbsp; <%31[^>]>%255[^<]</%31[^>]><br>",
               &num, sev, mon, &day, &year, tag, arch, tag);
        for (i = 0; i < strlen(sev) && sev[i] != ' '; i++)
          ;
        if (sev[i] == ' ')
          sev[i] = '\0';
        text[0] = 0;
      } else if (!strcmp(s, "<br>")) {
        patch = 1;
      } else if (patch) {
        if (!strncmp(s, "<a href=\"", 9))
          sscanf(s, "<a href=\"%255[^\"]", url);
      } else {
        if (text[0])
          strlcat(text, " ", sizeof(text));
        strlcat(text, s, sizeof(text));
      }
    } else {
      memset(name, 0, sizeof(name));
      if (sscanf(s, "<li><a name=\"%63[^\"]c\"></a>", name) == 1) {
        entry = 1;
        patch = 0;
      }
    }
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x6278,%rsp
movl   $0x0,-0xc(%rbp)
lea    -0x70(%rbp),%rdi
lea    0x2c02(%rip),%rsi
mov    $0x60,%edx
call   10a0 <memcpy@plt>
movl   $0x0,-0x6240(%rbp)
movl   $0x0,-0x6244(%rbp)
lea    -0x20b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
lea    -0x2070(%rbp),%rdi
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
mov    $0x2000,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     15b1 <main+0x421>
lea    -0x2070(%rbp),%rdi
call   1050 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0x2070(%rbp,%rax,1)
cmpl   $0x0,-0x6240(%rbp)
je     155b <main+0x3cb>
lea    -0x2070(%rbp),%rdi
lea    0xe1f(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    12fc <main+0x16c>
movl   $0x0,-0x6248(%rbp)
cmpl   $0xc,-0x6248(%rbp)
jge    129b <main+0x10b>
lea    -0x2110(%rbp),%rdi
movslq -0x6248(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1282 <main+0xf2>
jmp    129b <main+0x10b>
jmp    1287 <main+0xf7>
mov    -0x6248(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6248(%rbp)
jmp    124f <main+0xbf>
mov    -0x623c(%rbp),%esi
mov    -0x6248(%rbp),%edx
add    $0x1,%edx
mov    -0x6238(%rbp),%ecx
mov    -0x6234(%rbp),%r8d
lea    -0x20b0(%rbp),%r9
lea    -0x20f0(%rbp),%r11
lea    -0x6230(%rbp),%r10
lea    -0x4230(%rbp),%rax
lea    0xd80(%rip),%rdi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1060 <printf@plt>
movl   $0x0,-0x6240(%rbp)
jmp    1556 <main+0x3c6>
lea    -0x2070(%rbp),%rdi
lea    0xd72(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1490 <main+0x300>
lea    -0x20f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
lea    -0x2110(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1070 <memset@plt>
lea    -0x2130(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1070 <memset@plt>
lea    -0x2230(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1070 <memset@plt>
lea    -0x6230(%rbp),%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1070 <memset@plt>
lea    -0x2070(%rbp),%rdi
lea    -0x20f0(%rbp),%rcx
lea    -0x2110(%rbp),%r8
lea    -0x2130(%rbp),%r11
lea    -0x2230(%rbp),%r10
lea    -0x2130(%rbp),%rax
lea    0xcdc(%rip),%rsi
lea    -0x6234(%rbp),%rdx
lea    -0x6238(%rbp),%r9
lea    -0x623c(%rbp),%rbx
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   10b0 <sscanf@plt>
movl   $0x0,-0x624c(%rbp)
mov    -0x624c(%rbp),%eax
mov    %eax,-0x6254(%rbp)
lea    -0x20f0(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x6254(%rbp),%ecx
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x624d(%rbp)
jge    1431 <main+0x2a1>
movslq -0x624c(%rbp),%rax
movsbl -0x20f0(%rbp,%rax,1),%eax
ff
cmp    $0x20,%eax
setne  %al
mov    %al,-0x624d(%rbp)
mov    -0x624d(%rbp),%al
test   $0x1,%al
jne    1444 <main+0x2b4>
jmp    145d <main+0x2cd>
jmp    1449 <main+0x2b9>
mov    -0x624c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x624c(%rbp)
jmp    13e6 <main+0x256>
movslq -0x624c(%rbp),%rax
movsbl -0x20f0(%rbp,%rax,1),%eax
ff
cmp    $0x20,%eax
jne    1484 <main+0x2f4>
movslq -0x624c(%rbp),%rax
movb   $0x0,-0x20f0(%rbp,%rax,1)
movb   $0x0,-0x4230(%rbp)
jmp    1551 <main+0x3c1>
lea    -0x2070(%rbp),%rdi
lea    0xc54(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    14bb <main+0x32b>
movl   $0x1,-0x6244(%rbp)
jmp    154c <main+0x3bc>
cmpl   $0x0,-0x6244(%rbp)
je     150a <main+0x37a>
lea    -0x2070(%rbp),%rdi
lea    0xc21(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1505 <main+0x375>
lea    -0x2070(%rbp),%rdi
lea    -0x6230(%rbp),%rdx
lea    0xc03(%rip),%rsi
mov    $0x0,%al
call   10b0 <sscanf@plt>
jmp    1547 <main+0x3b7>
cmpb   $0x0,-0x4230(%rbp)
je     152f <main+0x39f>
lea    -0x4230(%rbp),%rdi
lea    0xbee(%rip),%rsi
mov    $0x2000,%edx
call   1040 <strlcat@plt>
lea    -0x4230(%rbp),%rdi
lea    -0x2070(%rbp),%rsi
mov    $0x2000,%edx
call   1040 <strlcat@plt>
jmp    154c <main+0x3bc>
jmp    1551 <main+0x3c1>
jmp    1556 <main+0x3c6>
jmp    15ac <main+0x41c>
lea    -0x20b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
lea    -0x2070(%rbp),%rdi
lea    -0x20b0(%rbp),%rdx
lea    0xb92(%rip),%rsi
mov    $0x0,%al
call   10b0 <sscanf@plt>
cmp    $0x1,%eax
jne    15a7 <main+0x417>
movl   $0x1,-0x6240(%rbp)
movl   $0x0,-0x6244(%rbp)
jmp    15ac <main+0x41c>
jmp    11df <main+0x4f>
xor    %eax,%eax
add    $0x6278,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x61d8,%rsp
lea    0x70(%rsp),%rdi
xor    %r14d,%r14d
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edx
lea    0x21d0(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2000,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     15d0 <main+0x460>
lea    0x70(%rsp),%rbp
lea    0x30(%rsp),%r15
xor    %r12d,%r12d
xor    %r13d,%r13d
jmp    1220 <main+0xb0>
xchg   %ax,%ax
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
mov    %rbx,%rdi
lea    0xf14(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <sscanf@plt>
xor    %r13d,%r13d
cmp    $0x1,%eax
sete   %r13b
cmove  %r14d,%r12d
mov    0x2de0(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x2000,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     15d0 <main+0x460>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
test   %r13d,%r13d
je     11d0 <main+0x60>
cmpl   $0x3e703c,0x21d0(%rsp)
jne    1390 <main+0x220>
mov    $0x1,%edx
movabs $0x797261756e614a,%rax
cmp    %rax,(%rsp)
je     1590 <main+0x420>
mov    (%rsp),%rax
movabs $0x7972617572626546,%rcx
61 72 79
xor    %rcx,%rax
movzbl 0x8(%rsp),%ecx
or     %rax,%rcx
je     14e3 <main+0x373>
mov    (%rsp),%eax
mov    $0x6372614d,%ecx
xor    %ecx,%eax
movzwl 0x4(%rsp),%ecx
xor    $0x68,%ecx
or     %eax,%ecx
je     1530 <main+0x3c0>
mov    (%rsp),%eax
mov    $0x69727041,%ecx
xor    %ecx,%eax
movzwl 0x4(%rsp),%ecx
xor    $0x6c,%ecx
or     %eax,%ecx
je     155b <main+0x3eb>
mov    $0x5,%edx
cmpl   $0x79614d,(%rsp)
je     1590 <main+0x420>
mov    (%rsp),%eax
mov    $0x656e754a,%ecx
xor    %ecx,%eax
movzbl 0x4(%rsp),%ecx
or     %eax,%ecx
je     1562 <main+0x3f2>
mov    (%rsp),%eax
mov    $0x796c754a,%ecx
xor    %ecx,%eax
movzbl 0x4(%rsp),%ecx
or     %eax,%ecx
je     1569 <main+0x3f9>
mov    (%rsp),%eax
mov    $0x75677541,%ecx
xor    %ecx,%eax
mov    0x3(%rsp),%ecx
mov    $0x747375,%edx
xor    %edx,%ecx
or     %eax,%ecx
je     1570 <main+0x400>
mov    (%rsp),%rax
movabs $0x65626d6574706553,%rcx
6d 62 65
xor    %rcx,%rax
movzwl 0x8(%rsp),%ecx
xor    $0x72,%rcx
or     %rax,%rcx
je     1577 <main+0x407>
mov    $0xa,%edx
movabs $0x7265626f74634f,%rax
cmp    %rax,(%rsp)
je     1590 <main+0x420>
movabs $0x7265626d65636544,%rdx
62 65 72
lea    0x130a0a(%rdx),%rax
xor    (%rsp),%rax
movzbl 0x8(%rsp),%ecx
or     %rax,%rcx
je     157e <main+0x40e>
mov    (%rsp),%rax
xor    %rdx,%rax
movzbl 0x8(%rsp),%ecx
xor    %edx,%edx
or     %rax,%rcx
sete   %dl
xor    $0xd,%edx
jmp    1590 <main+0x420>
nopl   0x0(%rax)
mov    %rbx,%rdi
lea    0xcca(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     13f8 <main+0x288>
mov    0x21d0(%rsp),%eax
mov    $0x3e72623c,%ecx
xor    %ecx,%eax
movzbl 0x21d4(%rsp),%ecx
mov    $0x1,%r13d
or     %eax,%ecx
je     13ed <main+0x27d>
test   %r12d,%r12d
je     14ed <main+0x37d>
mov    %rbx,%rdi
lea    0xd04(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1537 <main+0x3c7>
mov    $0x1,%r12d
jmp    1201 <main+0x91>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1070 <memset@plt>
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1070 <memset@plt>
lea    0xb0(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1070 <memset@plt>
lea    0xd0(%rsp),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1070 <memset@plt>
lea    0x41d0(%rsp),%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1070 <memset@plt>
mov    %rbx,%rdi
lea    0xc0c(%rip),%rsi
lea    0x2c(%rsp),%rdx
mov    %r15,%rcx
mov    %r14,%r8
lea    0x28(%rsp),%r9
xor    %eax,%eax
push   %rbp
push   %r13
push   %rbp
lea    0x3c(%rsp),%rbp
push   %rbp
call   1090 <sscanf@plt>
add    $0x20,%rsp
mov    %r15,%rdi
call   1050 <strlen@plt>
xor    %ebp,%ebp
test   %eax,%eax
jle    14ba <main+0x34a>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,0x30(%rsp,%rbp,1)
je     14ba <main+0x34a>
add    $0x1,%rbp
mov    %r15,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     14a0 <main+0x330>
mov    %ebp,%eax
cmpb   $0x20,0x30(%rsp,%rax,1)
jne    14c8 <main+0x358>
movb   $0x0,0x30(%rsp,%rax,1)
movb   $0x0,0x1d0(%rsp)
mov    $0x1,%r13d
xor    %r14d,%r14d
lea    0x70(%rsp),%rbp
jmp    1201 <main+0x91>
mov    $0x2,%edx
jmp    1590 <main+0x420>
cmpb   $0x0,0x1d0(%rsp)
lea    0x1d0(%rsp),%rbp
je     1513 <main+0x3a3>
mov    %rbp,%rdi
lea    0xbf2(%rip),%rsi
mov    $0x2000,%edx
call   1040 <strlcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x2000,%edx
call   1040 <strlcat@plt>
xor    %r12d,%r12d
lea    0x70(%rsp),%rbp
jmp    1201 <main+0x91>
mov    $0x3,%edx
jmp    1590 <main+0x420>
mov    %rbx,%rdi
lea    0xba8(%rip),%rsi
lea    0x41d0(%rsp),%rdx
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    $0x1,%r12d
jmp    1201 <main+0x91>
mov    $0x4,%edx
jmp    1590 <main+0x420>
mov    $0x6,%edx
jmp    1590 <main+0x420>
mov    $0x7,%edx
jmp    1590 <main+0x420>
mov    $0x8,%edx
jmp    1590 <main+0x420>
mov    $0x9,%edx
jmp    1590 <main+0x420>
mov    $0xb,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x24(%rsp),%esi
mov    0x28(%rsp),%ecx
mov    0x2c(%rsp),%r8d
sub    $0x8,%rsp
lea    0xa9a(%rip),%rdi
mov    %rbp,%r9
lea    0x1d8(%rsp),%rax
push   %rax
lea    0x41e0(%rsp),%rax
push   %rax
push   %r15
call   1060 <printf@plt>
add    $0x20,%rsp
xor    %r13d,%r13d
jmp    1201 <main+0x91>
xor    %eax,%eax
add    $0x61d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"January\00"
@.str.1 = [9 x i8] c"February\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.4 = [4 x i8] c"May\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.9 = [8 x i8] c"October\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
@__const.main.months = [12 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i32 0, i32 0)]
@stdin = global i32 0
@.str.12 = [4 x i8] c"<p>\00"
@.str.13 = [34 x i8] c"%4.4d-%2.2d-%2.2d %d %s %s %s %s\0A\00"
@.str.14 = [13 x i8] c"<font color=\00"
@.str.15 = [110 x i8] c"<font color=\22\22><strong>%d: %63[^:]: %31s %d, %d</strong></font> &nbsp; <%31[^>]>%255[^<]</%31[^>]><br>\00"
@.str.16 = [5 x i8] c"<br>\00"
@.str.17 = [10 x i8] c"<a href=\22\00"
@.str.18 = [18 x i8] c"<a href=\22%255[^\22]\00"
@.str.19 = [2 x i8] c" \00"
@.str.20 = [28 x i8] c"<li><a name=\22%63[^\22]c\22></a>\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x i8*]
%3 = alloca [8192 x i8]
%4 = alloca [64 x i8]
%5 = alloca [64 x i8]
%6 = alloca [32 x i8]
%7 = alloca [32 x i8]
%8 = alloca [256 x i8]
%9 = alloca [8192 x i8]
%10 = alloca [8192 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
%18 = bitcast [12 x i8*]* %2 to i8*
store i32 0, i32* %14
store i32 0, i32* %15
%19 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%20 = call i32 @memset(i8* %19, i32 0, i32 64)
br label %21
21: ; preds = %160, %0
%22 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%23 = load i32, i32* @stdin
%24 = call i32* @fgets(i8* %22, i32 8192, i32 %23)
%25 = icmp ne i32* %24, null
br i1 %25, label %26, label %161
26: ; preds = %21
%27 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%28 = call i32 @strlen(i8* %27)
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 %30
store i8 0, i8* %31
%32 = load i32, i32* %14
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %151
34: ; preds = %26
%35 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
br i1 %37, label %66, label %38
38: ; preds = %34
store i32 0, i32* %16
br label %39
39: ; preds = %52, %38
%40 = load i32, i32* %16
%41 = icmp slt i32 %40, 12
br i1 %41, label %42, label %55
42: ; preds = %39
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%44 = load i32, i32* %16
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [12 x i8*], [12 x i8*]* %2, i64 0, i64 %45
%47 = load i8*, i8** %46
%48 = call i32 @strcmp(i8* %43, i8* %47)
%49 = icmp ne i32 %48, 0
br i1 %49, label %51, label %50
50: ; preds = %42
br label %55
51: ; preds = %42
br label %52
52: ; preds = %51
%53 = load i32, i32* %16
%54 = add nsw i32 %53, 1
store i32 %54, i32* %16
br label %39
55: ; preds = %50, %39
%56 = load i32, i32* %13
%57 = load i32, i32* %16
%58 = add nsw i32 %57, 1
%59 = load i32, i32* %12
%60 = load i32, i32* %11
%61 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%63 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%64 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%65 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %56, i32 %58, i32 %59, i32 %60, i8* %61, i8* %62, i8* %63, i8* %64)
store i32 0, i32* %14
br label %150
66: ; preds = %34
%67 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%68 = call i32 @strncmp(i8* %67, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 12)
%69 = icmp ne i32 %68, 0
br i1 %69, label %119, label %70
70: ; preds = %66
%71 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%72 = call i32 @memset(i8* %71, i32 0, i32 64)
%73 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%74 = call i32 @memset(i8* %73, i32 0, i32 32)
%75 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%76 = call i32 @memset(i8* %75, i32 0, i32 32)
%77 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%78 = call i32 @memset(i8* %77, i32 0, i32 256)
%79 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%80 = call i32 @memset(i8* %79, i32 0, i32 8192)
%81 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%82 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%83 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%84 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%85 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%86 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%87 = call i32 (i8*, i8*, ...) @sscanf(i8* %81, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.15, i64 0, i64 0), i32* %11, i8* %82, i8* %83, i32* %12, i32* %13, i8* %84, i8* %85, i8* %86)
store i32 0, i32* %17
br label %88
88: ; preds = %103, %70
%89 = load i32, i32* %17
%90 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%91 = call i32 @strlen(i8* %90)
%92 = icmp slt i32 %89, %91
br i1 %92, label %93, label %100
93: ; preds = %88
%94 = load i32, i32* %17
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 32
br label %100
100: ; preds = %93, %88
%101 = phi i1 [ false, %88 ], [ %99, %93 ]
br i1 %101, label %102, label %106
102: ; preds = %100
br label %103
103: ; preds = %102
%104 = load i32, i32* %17
%105 = add nsw i32 %104, 1
store i32 %105, i32* %17
br label %88
106: ; preds = %100
%107 = load i32, i32* %17
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 32
br i1 %112, label %113, label %117
113: ; preds = %106
%114 = load i32, i32* %17
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 %115
store i8 0, i8* %116
br label %117
117: ; preds = %113, %106
%118 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
store i8 0, i8* %118
br label %149
119: ; preds = %66
%120 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%121 = call i32 @strcmp(i8* %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%122 = icmp ne i32 %121, 0
br i1 %122, label %124, label %123
123: ; preds = %119
store i32 1, i32* %15
br label %148
124: ; preds = %119
%125 = load i32, i32* %15
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %136
127: ; preds = %124
%128 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%129 = call i32 @strncmp(i8* %128, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i32 9)
%130 = icmp ne i32 %129, 0
br i1 %130, label %135, label %131
131: ; preds = %127
%132 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%133 = getelementptr inbounds [8192 x i8], [8192 x i8]* %10, i64 0, i64 0
%134 = call i32 (i8*, i8*, ...) @sscanf(i8* %132, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %133)
br label %135
135: ; preds = %131, %127
br label %147
136: ; preds = %124
%137 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%138 = load i8, i8* %137
%139 = icmp ne i8 %138, 0
br i1 %139, label %140, label %143
140: ; preds = %136
%141 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%142 = call i32 @strlcat(i8* %141, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32 8192)
br label %143
143: ; preds = %140, %136
%144 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%145 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%146 = call i32 @strlcat(i8* %144, i8* %145, i32 8192)
br label %147
147: ; preds = %143, %135
br label %148
148: ; preds = %147, %123
br label %149
149: ; preds = %148, %117
br label %150
150: ; preds = %149, %55
br label %160
151: ; preds = %26
%152 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%153 = call i32 @memset(i8* %152, i32 0, i32 64)
%154 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%155 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%156 = call i32 (i8*, i8*, ...) @sscanf(i8* %154, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.20, i64 0, i64 0), i8* %155)
%157 = icmp eq i32 %156, 1
br i1 %157, label %158, label %159
158: ; preds = %151
store i32 1, i32* %14
store i32 0, i32* %15
br label %159
159: ; preds = %158, %151
br label %160
160: ; preds = %159, %150
br label %21
161: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [9 x i8] c"February\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
@stdin = global i32 0
@.str.13 = [34 x i8] c"%4.4d-%2.2d-%2.2d %d %s %s %s %s\0A\00"
@.str.14 = [13 x i8] c"<font color=\00"
@.str.15 = [110 x i8] c"<font color=\22\22><strong>%d: %63[^:]: %31s %d, %d</strong></font> &nbsp; <%31[^>]>%255[^<]</%31[^>]><br>\00"
@.str.16 = [5 x i8] c"<br>\00"
@.str.17 = [10 x i8] c"<a href=\22\00"
@.str.18 = [18 x i8] c"<a href=\22%255[^\22]\00"
@.str.19 = [2 x i8] c" \00"
@.str.20 = [28 x i8] c"<li><a name=\22%63[^\22]c\22></a>\00"
define i32 @main() {
%1 = alloca [8192 x i8]
%2 = alloca [64 x i8]
%3 = alloca [64 x i8]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [256 x i8]
%7 = alloca [8192 x i8]
%8 = alloca [8192 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = getelementptr inbounds [8192 x i8], [8192 x i8]* %1, i64 0, i64 0
%13 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%14 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%18 = getelementptr inbounds [8192 x i8], [8192 x i8]* %7, i64 0, i64 0
%19 = getelementptr inbounds [8192 x i8], [8192 x i8]* %8, i64 0, i64 0
%20 = bitcast i32* %9 to i8*
%21 = bitcast i32* %10 to i8*
%22 = bitcast i32* %11 to i8*
%23 = call i32 @memset(i8* %13, i32 0, i32 64)
%24 = load i32, i32* @stdin
%25 = call i32* @fgets(i8* %12, i32 8192, i32 %24)
%26 = icmp eq i32* %25, null
br i1 %26, label %145, label %27
27: ; preds = %0
%28 = bitcast [8192 x i8]* %1 to i32*
%29 = bitcast [32 x i8]* %4 to i64*
%30 = bitcast [32 x i8]* %4 to i32*
%31 = bitcast [32 x i8]* %4 to i64*
br label %32
32: ; preds = %27, %139
%33 = phi i32 [ 0, %27 ], [ %141, %139 ]
%34 = phi i32 [ 0, %27 ], [ %140, %139 ]
%35 = call i32 @strlen(i8* %12)
%36 = add nsw i32 %35, -1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [8192 x i8], [8192 x i8]* %1, i64 0, i64 %37
store i8 0, i8* %38
%39 = icmp eq i32 %34, 0
br i1 %39, label %133, label %40
40: ; preds = %32
%41 = load i32, i32* %28
%42 = icmp eq i32 %41, 4091964
br i1 %42, label %43, label %86
43: ; preds = %40
%44 = load i64, i64* %29
%45 = icmp eq i64 %44, 34184235089551690
br i1 %45, label %80, label %46
46: ; preds = %43
%47 = call i32 @bcmp(i8* dereferenceable(9) %15, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i64 9)
%48 = icmp eq i32 %47, 0
br i1 %48, label %80, label %49
49: ; preds = %46
%50 = call i32 @bcmp(i8* dereferenceable(6) %15, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 6)
%51 = icmp eq i32 %50, 0
br i1 %51, label %80, label %52
52: ; preds = %49
%53 = call i32 @bcmp(i8* dereferenceable(6) %15, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i64 6)
%54 = icmp eq i32 %53, 0
br i1 %54, label %80, label %55
55: ; preds = %52
%56 = load i32, i32* %30
%57 = icmp eq i32 %56, 7954765
br i1 %57, label %80, label %58
58: ; preds = %55
%59 = call i32 @bcmp(i8* dereferenceable(5) %15, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 5)
%60 = icmp eq i32 %59, 0
br i1 %60, label %80, label %61
61: ; preds = %58
%62 = call i32 @bcmp(i8* dereferenceable(5) %15, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i64 5)
%63 = icmp eq i32 %62, 0
br i1 %63, label %80, label %64
64: ; preds = %61
%65 = call i32 @bcmp(i8* dereferenceable(7) %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i64 7)
%66 = icmp eq i32 %65, 0
br i1 %66, label %80, label %67
67: ; preds = %64
%68 = call i32 @bcmp(i8* dereferenceable(10) %15, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i64 10)
%69 = icmp eq i32 %68, 0
br i1 %69, label %80, label %70
70: ; preds = %67
%71 = load i64, i64* %31
%72 = icmp eq i64 %71, 32199620796113743
br i1 %72, label %80, label %73
73: ; preds = %70
%74 = call i32 @bcmp(i8* dereferenceable(9) %15, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i64 9)
%75 = icmp eq i32 %74, 0
br i1 %75, label %80, label %76
76: ; preds = %73
%77 = call i32 @bcmp(i8* dereferenceable(9) %15, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i64 9)
%78 = icmp eq i32 %77, 0
%79 = select i1 %78, i32 12, i32 13
br label %80
80: ; preds = %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43
%81 = phi i32 [ 1, %43 ], [ 2, %46 ], [ 3, %49 ], [ 4, %52 ], [ 5, %55 ], [ 6, %58 ], [ 7, %61 ], [ 8, %64 ], [ 9, %67 ], [ 10, %70 ], [ 11, %73 ], [ %79, %76 ]
%82 = load i32, i32* %11
%83 = load i32, i32* %10
%84 = load i32, i32* %9
%85 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i32 %82, i32 %81, i32 %83, i32 %84, i8* %13, i8* %14, i8* %19, i8* %18)
br label %139
86: ; preds = %40
%87 = call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 12)
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %116
89: ; preds = %86
%90 = call i32 @memset(i8* %14, i32 0, i32 64)
%91 = call i32 @memset(i8* %15, i32 0, i32 32)
%92 = call i32 @memset(i8* %16, i32 0, i32 32)
%93 = call i32 @memset(i8* %17, i32 0, i32 256)
%94 = call i32 @memset(i8* %19, i32 0, i32 8192)
%95 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.15, i64 0, i64 0), i32* %9, i8* %14, i8* %15, i32* %10, i32* %11, i8* %16, i8* %17, i8* %16)
%96 = call i32 @strlen(i8* %14)
%97 = icmp sgt i32 %96, 0
br i1 %97, label %98, label %108
98: ; preds = %89, %103
%99 = phi i64 [ %104, %103 ], [ 0, %89 ]
%100 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 %99
%101 = load i8, i8* %100
%102 = icmp eq i8 %101, 32
br i1 %102, label %108, label %103
103: ; preds = %98
%104 = add nuw nsw i64 %99, 1
%105 = call i32 @strlen(i8* %14)
%106 = sext i32 %105 to i64
%107 = icmp slt i64 %104, %106
br i1 %107, label %98, label %108
108: ; preds = %98, %103, %89
%109 = phi i64 [ 0, %89 ], [ %104, %103 ], [ %99, %98 ]
%110 = and i64 %109, 4294967295
%111 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 %110
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 32
br i1 %113, label %114, label %115
114: ; preds = %108
store i8 0, i8* %111
br label %115
115: ; preds = %114, %108
store i8 0, i8* %18
br label %139
116: ; preds = %86
%117 = call i32 @bcmp(i8* dereferenceable(5) %12, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i64 5)
%118 = icmp eq i32 %117, 0
br i1 %118, label %139, label %119
119: ; preds = %116
%120 = icmp eq i32 %33, 0
br i1 %120, label %126, label %121
121: ; preds = %119
%122 = call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i32 9)
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %139
124: ; preds = %121
%125 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %19)
br label %139
126: ; preds = %119
%127 = load i8, i8* %18
%128 = icmp eq i8 %127, 0
br i1 %128, label %131, label %129
129: ; preds = %126
%130 = call i32 @strlcat(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i32 8192)
br label %131
131: ; preds = %129, %126
%132 = call i32 @strlcat(i8* %18, i8* %12, i32 8192)
br label %139
133: ; preds = %32
%134 = call i32 @memset(i8* %13, i32 0, i32 64)
%135 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.20, i64 0, i64 0), i8* %13)
%136 = icmp eq i32 %135, 1
%137 = zext i1 %136 to i32
%138 = select i1 %136, i32 0, i32 %33
br label %139
139: ; preds = %133, %116, %80, %121, %124, %131, %115
%140 = phi i32 [ 1, %121 ], [ 1, %124 ], [ 1, %131 ], [ 1, %115 ], [ 0, %80 ], [ 1, %116 ], [ %137, %133 ]
%141 = phi i32 [ 1, %121 ], [ 1, %124 ], [ 0, %131 ], [ %33, %115 ], [ %33, %80 ], [ 1, %116 ], [ %138, %133 ]
%142 = load i32, i32* @stdin
%143 = call i32* @fgets(i8* %12, i32 8192, i32 %142)
%144 = icmp eq i32* %143, null
br i1 %144, label %145, label %32
145: ; preds = %139, %0
ret i32 0
}