#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*/ u_long;
typedef unsigned char u_char;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ PUTLONG(int, unsigned char *);
int /*<<< orphan*/ PUTSHORT(int, unsigned char *);
int dn_comp(char const *, unsigned char *, int, unsigned char **,
            unsigned char **);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(unsigned char, int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main() {
  FILE *f;
  u_char buf[1000];
  u_char *p;
  char *temp, *temp1;
  u_char *comp_dn, *comp_dn2;
  char exp_dn[200], exp_dn2[200];
  u_char **dnptrs, **lastdnptr, **dnptrs2;
  int i, len = 0, comp_size;
  u_long now;
  dnptrs = (unsigned char **)malloc(2 * sizeof(unsigned char *));
  dnptrs2 = (unsigned char **)malloc(2 * sizeof(unsigned char *));
  comp_dn = (unsigned char *)malloc(200 * sizeof(unsigned char));
  comp_dn2 = (unsigned char *)malloc(200 * sizeof(unsigned char));
  temp1 = (char *)malloc(400 * sizeof(char));
  temp = temp1;
  p = buf;
  strcpy(temp, "HEADER JUNK:");
  len += strlen(temp);
  while (*temp != '\0')
    *p++ = *temp++;
  strcpy(exp_dn, "lcs.mit.edu");
  *dnptrs++ = (u_char *)exp_dn;
  *dnptrs-- = NULL;
  lastdnptr = NULL;
  if (0)
    printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn, comp_dn, 200, dnptrs, lastdnptr);
  if (0)
    printf("uncomp_size = %d\n", strlen(exp_dn));
  if (0)
    printf("comp_size = %d\n", comp_size);
  if (0)
    printf("exp_dn = %s, comp_dn = %s\n", exp_dn, (char *)comp_dn);
  for (i = 0; i < comp_size; i++)
    *p++ = *comp_dn++;
  len += comp_size;
  PUTSHORT(30, p);
  p += 2;
  PUTSHORT(255, p);
  p += 2;
  PUTLONG(255, p);
  p += 4;
  PUTSHORT(16, p);
  p += 2;
  len += 10;
  strcpy(exp_dn2, "sls.lcs.mit.edu");
  *dnptrs2++ = (u_char *)exp_dn2;
  *dnptrs2-- = NULL;
  lastdnptr = NULL;
  if (0)
    printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn2, comp_dn2, 200, dnptrs2, lastdnptr);
  if (0)
    printf("uncomp_size = %d\n", strlen(exp_dn2));
  if (0)
    printf("comp_size = %d\n", comp_size);
  if (0)
    printf("exp_dn2 = %s, comp_dn2 = %s\n", exp_dn2, (char *)comp_dn2);
  len += comp_size;
  for (i = 0; i < comp_size; i++)
    *p++ = *comp_dn2++;
  PUTLONG(1 << 24, p);
  p += 4;
  PUTLONG(0, p);
  p += 4;
  PUTLONG(0, p);
  p += 4;
  PUTLONG(0, p);
  p += 4;
  len += 16;
  f = fopen("SIGFILE", "w");
  p = buf;
  if (0)
    printf("len = %d\n", len);
  for (i = 0; i < len; i++, p++)
    fputc(*p, f);
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5f0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x5e0(%rbp)
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,-0x5c8(%rbp)
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,-0x5d8(%rbp)
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,-0x420(%rbp)
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,-0x428(%rbp)
mov    $0x190,%edi
call   1090 <malloc@plt>
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
mov    %rax,-0x410(%rbp)
lea    -0x400(%rbp),%rax
mov    %rax,-0x408(%rbp)
mov    -0x410(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x410(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     128e <main+0xfe>
mov    -0x410(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x410(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
jmp    1248 <main+0xb8>
lea    -0x4f0(%rbp),%rdi
lea    0xd75(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x4f0(%rbp),%rcx
mov    -0x5c8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x5c8(%rbp)
mov    %rcx,(%rax)
mov    -0x5c8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x5c8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x5d0(%rbp)
lea    -0x4f0(%rbp),%rdi
mov    -0x420(%rbp),%rsi
mov    -0x5c8(%rbp),%rcx
mov    -0x5d0(%rbp),%r8
mov    $0xc8,%edx
call   1080 <dn_comp@plt>
mov    %eax,-0x5e4(%rbp)
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e4(%rbp),%eax
jge    1371 <main+0x1e1>
mov    -0x420(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x420(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
jmp    131d <main+0x18d>
mov    -0x5e4(%rbp),%eax
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x1e,%edi
call   10b0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0xff,%edi
call   10b0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0xff,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x10,%edi
call   10b0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x5e0(%rbp)
lea    -0x5c0(%rbp),%rdi
lea    0xbe1(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x5c0(%rbp),%rcx
mov    -0x5d8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x5d8(%rbp)
mov    %rcx,(%rax)
mov    -0x5d8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x5d8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x5d0(%rbp)
lea    -0x5c0(%rbp),%rdi
mov    -0x428(%rbp),%rsi
mov    -0x5d8(%rbp),%rcx
mov    -0x5d0(%rbp),%r8
mov    $0xc8,%edx
call   1080 <dn_comp@plt>
mov    %eax,-0x5e4(%rbp)
mov    -0x5e4(%rbp),%eax
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e4(%rbp),%eax
jge    1513 <main+0x383>
mov    -0x428(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x428(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
jmp    14bf <main+0x32f>
mov    -0x408(%rbp),%rsi
mov    $0x1000000,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
xor    %edi,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
xor    %edi,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
xor    %edi,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x5e0(%rbp)
lea    0xa71(%rip),%rdi
lea    0xa72(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    -0x400(%rbp),%rax
mov    %rax,-0x408(%rbp)
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e0(%rbp),%eax
jge    1621 <main+0x491>
mov    -0x408(%rbp),%rax
mov    (%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1070 <fputc@plt>
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
mov    -0x408(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x408(%rbp)
jmp    15d4 <main+0x444>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x5f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x598,%rsp
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,%r13
mov    $0x190,%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
lea    0xe17(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %rax,(%rsp)
mov    0x0(%rbp),%al
lea    0x1b0(%rsp),%rbx
test   %al,%al
je     1222 <main+0x92>
add    $0x1,%rbp
mov    %al,(%rbx)
add    $0x1,%rbx
movzbl 0x0(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    1210 <main+0x80>
lea    0xde8(%rip),%rsi
lea    0xe0(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %rbp,(%r15)
movq   $0x0,0x8(%r15)
mov    %rbp,%rdi
mov    %r14,%rsi
mov    $0xc8,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
call   1080 <dn_comp@plt>
test   %eax,%eax
mov    %rax,0x8(%rsp)
jle    12be <main+0x12e>
lea    -0x1(%rax),%r9d
mov    %rbx,%rbp
cmp    $0x1f,%r9d
jb     1378 <main+0x1e8>
lea    (%r14,%r9,1),%rcx
add    $0x1,%rcx
cmp    %rcx,%rbx
jae    1295 <main+0x105>
lea    (%rbx,%r9,1),%rcx
add    $0x1,%rcx
mov    %rbx,%rbp
cmp    %r14,%rcx
ja     1378 <main+0x1e8>
lea    0x1(%r9),%r8
mov    %r8,%rcx
and    $0xffffffffffffffe0,%rcx
lea    -0x20(%rcx),%rdx
mov    %rdx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
cmp    $0x60,%rdx
jae    12c6 <main+0x136>
xor    %ebp,%ebp
jmp    1330 <main+0x1a0>
mov    %rbx,%rbp
jmp    1396 <main+0x206>
and    $0xfffffffffffffffc,%rdi
xor    %ebp,%ebp
nopl   0x0(%rax)
movups (%r14,%rbp,1),%xmm0
movups 0x10(%r14,%rbp,1),%xmm1
movups %xmm0,(%rbx,%rbp,1)
movups %xmm1,0x10(%rbx,%rbp,1)
movups 0x20(%r14,%rbp,1),%xmm0
movups 0x30(%r14,%rbp,1),%xmm1
movups %xmm0,0x20(%rbx,%rbp,1)
movups %xmm1,0x30(%rbx,%rbp,1)
movups 0x40(%r14,%rbp,1),%xmm0
movups 0x50(%r14,%rbp,1),%xmm1
movups %xmm0,0x40(%rbx,%rbp,1)
movups %xmm1,0x50(%rbx,%rbp,1)
movups 0x60(%r14,%rbp,1),%xmm0
movups 0x70(%r14,%rbp,1),%xmm1
movups %xmm0,0x60(%rbx,%rbp,1)
movups %xmm1,0x70(%rbx,%rbp,1)
sub    $0xffffffffffffff80,%rbp
add    $0xfffffffffffffffc,%rdi
jne    12d0 <main+0x140>
test   %rsi,%rsi
je     136c <main+0x1dc>
lea    (%r14,%rbp,1),%rdi
add    $0x10,%rdi
add    %rbx,%rbp
add    $0x10,%rbp
shl    $0x5,%rsi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups -0x10(%rdi,%rdx,1),%xmm0
movups (%rdi,%rdx,1),%xmm1
movups %xmm0,-0x10(%rbp,%rdx,1)
movups %xmm1,0x0(%rbp,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rsi
jne    1350 <main+0x1c0>
lea    (%rbx,%rcx,1),%rbp
cmp    %rcx,%r8
je     1396 <main+0x206>
add    %rcx,%r14
add    %r9,%rbx
mov    %rbp,%rax
xchg   %ax,%ax
movzbl (%r14),%ecx
add    $0x1,%r14
lea    0x1(%rax),%rbp
mov    %cl,(%rax)
cmp    %rbx,%rax
mov    %rbp,%rax
jne    1380 <main+0x1f0>
mov    $0x1e,%edi
mov    %rbp,%rsi
call   10b0 <PUTSHORT@plt>
lea    0x2(%rbp),%rsi
mov    $0xff,%edi
call   10b0 <PUTSHORT@plt>
lea    0x4(%rbp),%rsi
mov    $0xff,%edi
call   1060 <PUTLONG@plt>
lea    0x8(%rbp),%rsi
mov    $0x10,%edi
call   10b0 <PUTSHORT@plt>
lea    0xa(%rbp),%rbx
lea    0xc35(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    %r14,(%r12)
movq   $0x0,0x8(%r12)
xor    %r15d,%r15d
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0xc8,%edx
mov    %r12,%rcx
xor    %r8d,%r8d
call   1080 <dn_comp@plt>
mov    %eax,%r12d
test   %eax,%eax
jle    14ec <main+0x35c>
lea    -0x1(%r12),%eax
cmp    $0x1f,%eax
jb     1442 <main+0x2b2>
lea    (%rax,%r13,1),%rcx
add    $0x1,%rcx
cmp    %rcx,%rbx
jae    1595 <main+0x405>
lea    (%rax,%rbp,1),%rcx
add    $0xb,%rcx
cmp    %r13,%rcx
jbe    1595 <main+0x405>
mov    (%rsp),%r14
mov    %r12d,%ecx
sub    %r15d,%ecx
mov    %r15d,%esi
not    %esi
add    %r12d,%esi
and    $0x7,%ecx
je     147a <main+0x2ea>
neg    %ecx
xor    %edx,%edx
nopl   (%rax)
movzbl 0x0(%r13),%eax
add    $0x1,%r13
mov    %al,(%rbx)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rdx
cmp    %edx,%ecx
jne    1460 <main+0x2d0>
sub    %edx,%r15d
cmp    $0x7,%esi
jb     14f0 <main+0x360>
mov    %r12d,%eax
sub    %r15d,%eax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movzbl 0x0(%r13,%rcx,1),%edx
mov    %dl,(%rbx,%rcx,1)
movzbl 0x1(%r13,%rcx,1),%edx
mov    %dl,0x1(%rbx,%rcx,1)
movzbl 0x2(%r13,%rcx,1),%edx
mov    %dl,0x2(%rbx,%rcx,1)
movzbl 0x3(%r13,%rcx,1),%edx
mov    %dl,0x3(%rbx,%rcx,1)
movzbl 0x4(%r13,%rcx,1),%edx
mov    %dl,0x4(%rbx,%rcx,1)
movzbl 0x5(%r13,%rcx,1),%edx
mov    %dl,0x5(%rbx,%rcx,1)
movzbl 0x6(%r13,%rcx,1),%edx
mov    %dl,0x6(%rbx,%rcx,1)
movzbl 0x7(%r13,%rcx,1),%edx
mov    %dl,0x7(%rbx,%rcx,1)
add    $0x8,%rcx
cmp    %ecx,%eax
jne    1490 <main+0x300>
add    %rcx,%rbx
jmp    14f0 <main+0x360>
mov    (%rsp),%r14
mov    $0x1000000,%edi
mov    %rbx,%rsi
call   1060 <PUTLONG@plt>
lea    0x4(%rbx),%rsi
xor    %edi,%edi
call   1060 <PUTLONG@plt>
lea    0x8(%rbx),%rsi
xor    %edi,%edi
call   1060 <PUTLONG@plt>
add    $0xc,%rbx
xor    %edi,%edi
mov    %rbx,%rsi
call   1060 <PUTLONG@plt>
mov    0x8(%rsp),%rbp
lea    (%r14,%rbp,1),%eax
lea    (%r12,%rax,1),%ebx
add    $0x1a,%ebx
lea    0xae5(%rip),%rdi
lea    0xae6(%rip),%rsi
call   10a0 <fopen@plt>
mov    %r14,%rcx
mov    %rax,%r14
test   %ebx,%ebx
jle    1579 <main+0x3e9>
add    %r12d,%ebp
add    %ecx,%ebp
add    $0x19,%ebp
add    $0x1,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
movzbl 0x1b0(%rsp,%rbx,1),%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1560 <main+0x3d0>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x598,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x1,%rax
mov    %rax,%r15
and    $0xffffffffffffffe0,%r15
lea    -0x20(%r15),%rsi
mov    %rsi,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0x60,%rsi
jae    15be <main+0x42e>
xor    %esi,%esi
jmp    1632 <main+0x4a2>
and    $0xfffffffffffffffc,%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups 0x0(%r13,%rsi,1),%xmm0
movups 0x10(%r13,%rsi,1),%xmm1
movups %xmm0,0xa(%rbp,%rsi,1)
movups %xmm1,0x1a(%rbp,%rsi,1)
movups 0x20(%r13,%rsi,1),%xmm0
movups 0x30(%r13,%rsi,1),%xmm1
movups %xmm0,0x2a(%rbp,%rsi,1)
movups %xmm1,0x3a(%rbp,%rsi,1)
movups 0x40(%r13,%rsi,1),%xmm0
movups 0x50(%r13,%rsi,1),%xmm1
movups %xmm0,0x4a(%rbp,%rsi,1)
movups %xmm1,0x5a(%rbp,%rsi,1)
movups 0x60(%r13,%rsi,1),%xmm0
movups 0x70(%r13,%rsi,1),%xmm1
movups %xmm0,0x6a(%rbp,%rsi,1)
movups %xmm1,0x7a(%rbp,%rsi,1)
sub    $0xffffffffffffff80,%rsi
add    $0xfffffffffffffffc,%rdx
jne    15d0 <main+0x440>
test   %rcx,%rcx
je     166b <main+0x4db>
lea    (%rsi,%r13,1),%rdx
add    $0x10,%rdx
add    %rbp,%rsi
add    $0x1a,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
nopl   0x0(%rax)
movups -0x10(%rdx,%rdi,1),%xmm0
movups (%rdx,%rdi,1),%xmm1
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    1650 <main+0x4c0>
add    %r15,%rbx
cmp    %r15,%rax
mov    (%rsp),%r14
je     14f0 <main+0x360>
add    %r15,%r13
jmp    1446 <main+0x2b6>

LLVM IR (-O0):
@.str = [13 x i8] c"HEADER JUNK:\00"
@.str.1 = [12 x i8] c"lcs.mit.edu\00"
@.str.2 = [16 x i8] c"sls.lcs.mit.edu\00"
@.str.3 = [8 x i8] c"SIGFILE\00"
@.str.4 = [2 x i8] c"w\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [1000 x i8]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [200 x i8]
%10 = alloca [200 x i8]
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i8**
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %15
%18 = call i64 @malloc(i32 16)
%19 = inttoptr i64 %18 to i8**
store i8** %19, i8*** %11
%20 = call i64 @malloc(i32 16)
%21 = inttoptr i64 %20 to i8**
store i8** %21, i8*** %13
%22 = call i64 @malloc(i32 200)
%23 = inttoptr i64 %22 to i8*
store i8* %23, i8** %7
%24 = call i64 @malloc(i32 200)
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %8
%26 = call i64 @malloc(i32 400)
%27 = inttoptr i64 %26 to i8*
store i8* %27, i8** %6
%28 = load i8*, i8** %6
store i8* %28, i8** %5
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
store i8* %29, i8** %4
%30 = load i8*, i8** %5
%31 = call i32 @strcpy(i8* %30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%32 = load i8*, i8** %5
%33 = call i32 @strlen(i8* %32)
%34 = load i32, i32* %15
%35 = add nsw i32 %34, %33
store i32 %35, i32* %15
br label %36
36: ; preds = %41, %0
%37 = load i8*, i8** %5
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = load i8*, i8** %5
%43 = getelementptr inbounds i8, i8* %42, i32 1
store i8* %43, i8** %5
%44 = load i8, i8* %42
%45 = load i8*, i8** %4
%46 = getelementptr inbounds i8, i8* %45, i32 1
store i8* %46, i8** %4
store i8 %44, i8* %45
br label %36
47: ; preds = %36
%48 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%49 = call i32 @strcpy(i8* %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%50 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%51 = load i8**, i8*** %11
%52 = getelementptr inbounds i8*, i8** %51, i32 1
store i8** %52, i8*** %11
store i8* %50, i8** %51
%53 = load i8**, i8*** %11
%54 = getelementptr inbounds i8*, i8** %53, i32 -1
store i8** %54, i8*** %11
store i8* null, i8** %53
store i8** null, i8*** %12
%55 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%56 = load i8*, i8** %7
%57 = load i8**, i8*** %11
%58 = load i8**, i8*** %12
%59 = call i32 @dn_comp(i8* %55, i8* %56, i32 200, i8** %57, i8** %58)
store i32 %59, i32* %16
store i32 0, i32* %14
br label %60
60: ; preds = %70, %47
%61 = load i32, i32* %14
%62 = load i32, i32* %16
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %73
64: ; preds = %60
%65 = load i8*, i8** %7
%66 = getelementptr inbounds i8, i8* %65, i32 1
store i8* %66, i8** %7
%67 = load i8, i8* %65
%68 = load i8*, i8** %4
%69 = getelementptr inbounds i8, i8* %68, i32 1
store i8* %69, i8** %4
store i8 %67, i8* %68
br label %70
70: ; preds = %64
%71 = load i32, i32* %14
%72 = add nsw i32 %71, 1
store i32 %72, i32* %14
br label %60
73: ; preds = %60
%74 = load i32, i32* %16
%75 = load i32, i32* %15
%76 = add nsw i32 %75, %74
store i32 %76, i32* %15
%77 = load i8*, i8** %4
%78 = call i32 @PUTSHORT(i32 30, i8* %77)
%79 = load i8*, i8** %4
%80 = getelementptr inbounds i8, i8* %79, i64 2
store i8* %80, i8** %4
%81 = load i8*, i8** %4
%82 = call i32 @PUTSHORT(i32 255, i8* %81)
%83 = load i8*, i8** %4
%84 = getelementptr inbounds i8, i8* %83, i64 2
store i8* %84, i8** %4
%85 = load i8*, i8** %4
%86 = call i32 @PUTLONG(i32 255, i8* %85)
%87 = load i8*, i8** %4
%88 = getelementptr inbounds i8, i8* %87, i64 4
store i8* %88, i8** %4
%89 = load i8*, i8** %4
%90 = call i32 @PUTSHORT(i32 16, i8* %89)
%91 = load i8*, i8** %4
%92 = getelementptr inbounds i8, i8* %91, i64 2
store i8* %92, i8** %4
%93 = load i32, i32* %15
%94 = add nsw i32 %93, 10
store i32 %94, i32* %15
%95 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%96 = call i32 @strcpy(i8* %95, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%97 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%98 = load i8**, i8*** %13
%99 = getelementptr inbounds i8*, i8** %98, i32 1
store i8** %99, i8*** %13
store i8* %97, i8** %98
%100 = load i8**, i8*** %13
%101 = getelementptr inbounds i8*, i8** %100, i32 -1
store i8** %101, i8*** %13
store i8* null, i8** %100
store i8** null, i8*** %12
%102 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%103 = load i8*, i8** %8
%104 = load i8**, i8*** %13
%105 = load i8**, i8*** %12
%106 = call i32 @dn_comp(i8* %102, i8* %103, i32 200, i8** %104, i8** %105)
store i32 %106, i32* %16
%107 = load i32, i32* %16
%108 = load i32, i32* %15
%109 = add nsw i32 %108, %107
store i32 %109, i32* %15
store i32 0, i32* %14
br label %110
110: ; preds = %120, %73
%111 = load i32, i32* %14
%112 = load i32, i32* %16
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %123
114: ; preds = %110
%115 = load i8*, i8** %8
%116 = getelementptr inbounds i8, i8* %115, i32 1
store i8* %116, i8** %8
%117 = load i8, i8* %115
%118 = load i8*, i8** %4
%119 = getelementptr inbounds i8, i8* %118, i32 1
store i8* %119, i8** %4
store i8 %117, i8* %118
br label %120
120: ; preds = %114
%121 = load i32, i32* %14
%122 = add nsw i32 %121, 1
store i32 %122, i32* %14
br label %110
123: ; preds = %110
%124 = load i8*, i8** %4
%125 = call i32 @PUTLONG(i32 16777216, i8* %124)
%126 = load i8*, i8** %4
%127 = getelementptr inbounds i8, i8* %126, i64 4
store i8* %127, i8** %4
%128 = load i8*, i8** %4
%129 = call i32 @PUTLONG(i32 0, i8* %128)
%130 = load i8*, i8** %4
%131 = getelementptr inbounds i8, i8* %130, i64 4
store i8* %131, i8** %4
%132 = load i8*, i8** %4
%133 = call i32 @PUTLONG(i32 0, i8* %132)
%134 = load i8*, i8** %4
%135 = getelementptr inbounds i8, i8* %134, i64 4
store i8* %135, i8** %4
%136 = load i8*, i8** %4
%137 = call i32 @PUTLONG(i32 0, i8* %136)
%138 = load i8*, i8** %4
%139 = getelementptr inbounds i8, i8* %138, i64 4
store i8* %139, i8** %4
%140 = load i32, i32* %15
%141 = add nsw i32 %140, 16
store i32 %141, i32* %15
%142 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %142, i32** %2
%143 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
store i8* %143, i8** %4
store i32 0, i32* %14
br label %144
144: ; preds = %153, %123
%145 = load i32, i32* %14
%146 = load i32, i32* %15
%147 = icmp slt i32 %145, %146
br i1 %147, label %148, label %158
148: ; preds = %144
%149 = load i8*, i8** %4
%150 = load i8, i8* %149
%151 = load i32*, i32** %2
%152 = call i32 @fputc(i8 zeroext %150, i32* %151)
br label %153
153: ; preds = %148
%154 = load i32, i32* %14
%155 = add nsw i32 %154, 1
store i32 %155, i32* %14
%156 = load i8*, i8** %4
%157 = getelementptr inbounds i8, i8* %156, i32 1
store i8* %157, i8** %4
br label %144
158: ; preds = %144
%159 = load i32*, i32** %2
%160 = call i32 @fclose(i32* %159)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"HEADER JUNK:\00"
@.str.1 = [12 x i8] c"lcs.mit.edu\00"
@.str.2 = [16 x i8] c"sls.lcs.mit.edu\00"
@.str.3 = [8 x i8] c"SIGFILE\00"
@.str.4 = [2 x i8] c"w\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [200 x i8]
%3 = alloca [200 x i8]
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%7 = tail call i64 @malloc(i32 16)
%8 = inttoptr i64 %7 to i8**
%9 = tail call i64 @malloc(i32 16)
%10 = inttoptr i64 %9 to i8**
%11 = tail call i64 @malloc(i32 200)
%12 = inttoptr i64 %11 to i8*
%13 = tail call i64 @malloc(i32 200)
%14 = inttoptr i64 %13 to i8*
%15 = tail call i64 @malloc(i32 400)
%16 = inttoptr i64 %15 to i8*
%17 = tail call i32 @strcpy(i8* %16, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @strlen(i8* %16)
%19 = load i8, i8* %16
%20 = icmp eq i8 %19, 0
br i1 %20, label %29, label %21
21: ; preds = %0, %21
%22 = phi i8 [ %27, %21 ], [ %19, %0 ]
%23 = phi i8* [ %26, %21 ], [ %4, %0 ]
%24 = phi i8* [ %25, %21 ], [ %16, %0 ]
%25 = getelementptr inbounds i8, i8* %24, i64 1
%26 = getelementptr inbounds i8, i8* %23, i64 1
store i8 %22, i8* %23
%27 = load i8, i8* %25
%28 = icmp eq i8 %27, 0
br i1 %28, label %29, label %21
29: ; preds = %21, %0
%30 = phi i8* [ %4, %0 ], [ %26, %21 ]
%31 = call i32 @strcpy(i8* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%32 = getelementptr inbounds i8*, i8** %8, i64 1
store i8* %5, i8** %8
store i8* null, i8** %32
%33 = call i32 @dn_comp(i8* %5, i8* %12, i32 200, i8** %8, i8** null)
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %139
35: ; preds = %29
%36 = add nsw i32 %33, -1
%37 = zext i32 %36 to i64
%38 = getelementptr i8, i8* %30, i64 %37
%39 = add nuw nsw i64 %37, 1
%40 = icmp ult i32 %36, 31
br i1 %40, label %129, label %41
41: ; preds = %35
%42 = add nuw nsw i64 %37, 1
%43 = getelementptr i8, i8* %30, i64 %42
%44 = getelementptr i8, i8* %12, i64 %42
%45 = icmp ult i8* %30, %44
%46 = icmp ugt i8* %43, %12
%47 = and i1 %45, %46
br i1 %47, label %129, label %48
48: ; preds = %41
%49 = and i64 %39, 8589934560
%50 = getelementptr i8, i8* %30, i64 %49
%51 = getelementptr i8, i8* %12, i64 %49
%52 = add nsw i64 %49, -32
%53 = lshr exact i64 %52, 5
%54 = add nuw nsw i64 %53, 1
%55 = and i64 %54, 3
%56 = icmp ult i64 %52, 96
br i1 %56, label %108, label %57
57: ; preds = %48
%58 = and i64 %54, 1152921504606846972
br label %59
59: ; preds = %59, %57
%60 = phi i64 [ 0, %57 ], [ %105, %59 ]
%61 = phi i64 [ 0, %57 ], [ %106, %59 ]
%62 = getelementptr i8, i8* %30, i64 %60
%63 = getelementptr i8, i8* %12, i64 %60
%64 = bitcast i8* %63 to <16 x i8>*
%65 = load <16 x i8>, <16 x i8>* %64
%66 = getelementptr i8, i8* %63, i64 16
%67 = bitcast i8* %66 to <16 x i8>*
%68 = load <16 x i8>, <16 x i8>* %67
%69 = bitcast i8* %62 to <16 x i8>*
store <16 x i8> %65, <16 x i8>* %69
%70 = getelementptr i8, i8* %62, i64 16
%71 = bitcast i8* %70 to <16 x i8>*
store <16 x i8> %68, <16 x i8>* %71
%72 = or i64 %60, 32
%73 = getelementptr i8, i8* %30, i64 %72
%74 = getelementptr i8, i8* %12, i64 %72
%75 = bitcast i8* %74 to <16 x i8>*
%76 = load <16 x i8>, <16 x i8>* %75
%77 = getelementptr i8, i8* %74, i64 16
%78 = bitcast i8* %77 to <16 x i8>*
%79 = load <16 x i8>, <16 x i8>* %78
%80 = bitcast i8* %73 to <16 x i8>*
store <16 x i8> %76, <16 x i8>* %80
%81 = getelementptr i8, i8* %73, i64 16
%82 = bitcast i8* %81 to <16 x i8>*
store <16 x i8> %79, <16 x i8>* %82
%83 = or i64 %60, 64
%84 = getelementptr i8, i8* %30, i64 %83
%85 = getelementptr i8, i8* %12, i64 %83
%86 = bitcast i8* %85 to <16 x i8>*
%87 = load <16 x i8>, <16 x i8>* %86
%88 = getelementptr i8, i8* %85, i64 16
%89 = bitcast i8* %88 to <16 x i8>*
%90 = load <16 x i8>, <16 x i8>* %89
%91 = bitcast i8* %84 to <16 x i8>*
store <16 x i8> %87, <16 x i8>* %91
%92 = getelementptr i8, i8* %84, i64 16
%93 = bitcast i8* %92 to <16 x i8>*
store <16 x i8> %90, <16 x i8>* %93
%94 = or i64 %60, 96
%95 = getelementptr i8, i8* %30, i64 %94
%96 = getelementptr i8, i8* %12, i64 %94
%97 = bitcast i8* %96 to <16 x i8>*
%98 = load <16 x i8>, <16 x i8>* %97
%99 = getelementptr i8, i8* %96, i64 16
%100 = bitcast i8* %99 to <16 x i8>*
%101 = load <16 x i8>, <16 x i8>* %100
%102 = bitcast i8* %95 to <16 x i8>*
store <16 x i8> %98, <16 x i8>* %102
%103 = getelementptr i8, i8* %95, i64 16
%104 = bitcast i8* %103 to <16 x i8>*
store <16 x i8> %101, <16 x i8>* %104
%105 = add nuw i64 %60, 128
%106 = add i64 %61, 4
%107 = icmp eq i64 %106, %58
br i1 %107, label %108, label %59
108: ; preds = %59, %48
%109 = phi i64 [ 0, %48 ], [ %105, %59 ]
%110 = icmp eq i64 %55, 0
br i1 %110, label %127, label %111
111: ; preds = %108, %111
%112 = phi i64 [ %124, %111 ], [ %109, %108 ]
%113 = phi i64 [ %125, %111 ], [ 0, %108 ]
%114 = getelementptr i8, i8* %30, i64 %112
%115 = getelementptr i8, i8* %12, i64 %112
%116 = bitcast i8* %115 to <16 x i8>*
%117 = load <16 x i8>, <16 x i8>* %116
%118 = getelementptr i8, i8* %115, i64 16
%119 = bitcast i8* %118 to <16 x i8>*
%120 = load <16 x i8>, <16 x i8>* %119
%121 = bitcast i8* %114 to <16 x i8>*
store <16 x i8> %117, <16 x i8>* %121
%122 = getelementptr i8, i8* %114, i64 16
%123 = bitcast i8* %122 to <16 x i8>*
store <16 x i8> %120, <16 x i8>* %123
%124 = add nuw i64 %112, 32
%125 = add i64 %113, 1
%126 = icmp eq i64 %125, %55
br i1 %126, label %127, label %111
127: ; preds = %111, %108
%128 = icmp eq i64 %39, %49
br i1 %128, label %139, label %129
129: ; preds = %41, %35, %127
%130 = phi i8* [ %30, %41 ], [ %30, %35 ], [ %50, %127 ]
%131 = phi i8* [ %12, %41 ], [ %12, %35 ], [ %51, %127 ]
br label %132
132: ; preds = %129, %132
%133 = phi i8* [ %137, %132 ], [ %130, %129 ]
%134 = phi i8* [ %135, %132 ], [ %131, %129 ]
%135 = getelementptr inbounds i8, i8* %134, i64 1
%136 = load i8, i8* %134
%137 = getelementptr inbounds i8, i8* %133, i64 1
store i8 %136, i8* %133
%138 = icmp eq i8* %133, %38
br i1 %138, label %139, label %132
139: ; preds = %132, %127, %29
%140 = phi i8* [ %30, %29 ], [ %50, %127 ], [ %137, %132 ]
%141 = call i32 @PUTSHORT(i32 30, i8* %140)
%142 = getelementptr inbounds i8, i8* %140, i64 2
%143 = call i32 @PUTSHORT(i32 255, i8* %142)
%144 = getelementptr inbounds i8, i8* %140, i64 4
%145 = call i32 @PUTLONG(i32 255, i8* %144)
%146 = getelementptr inbounds i8, i8* %140, i64 8
%147 = call i32 @PUTSHORT(i32 16, i8* %146)
%148 = getelementptr i8, i8* %140, i64 10
%149 = call i32 @strcpy(i8* %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%150 = getelementptr inbounds i8*, i8** %10, i64 1
store i8* %6, i8** %10
store i8* null, i8** %150
%151 = call i32 @dn_comp(i8* %6, i8* %14, i32 200, i8** %10, i8** null)
%152 = icmp sgt i32 %151, 0
br i1 %152, label %153, label %306
153: ; preds = %139
%154 = add i32 %151, -1
%155 = zext i32 %154 to i64
%156 = add nuw nsw i64 %155, 1
%157 = icmp ult i32 %154, 31
br i1 %157, label %250, label %158
158: ; preds = %153
%159 = add i32 %151, -1
%160 = zext i32 %159 to i64
%161 = add nuw nsw i64 %160, 11
%162 = getelementptr i8, i8* %140, i64 %161
%163 = add nuw nsw i64 %160, 1
%164 = getelementptr i8, i8* %14, i64 %163
%165 = icmp ult i8* %148, %164
%166 = icmp ugt i8* %162, %14
%167 = and i1 %165, %166
br i1 %167, label %250, label %168
168: ; preds = %158
%169 = and i64 %156, 8589934560
%170 = getelementptr i8, i8* %148, i64 %169
%171 = trunc i64 %169 to i32
%172 = getelementptr i8, i8* %14, i64 %169
%173 = add nsw i64 %169, -32
%174 = lshr exact i64 %173, 5
%175 = add nuw nsw i64 %174, 1
%176 = and i64 %175, 3
%177 = icmp ult i64 %173, 96
br i1 %177, label %229, label %178
178: ; preds = %168
%179 = and i64 %175, 1152921504606846972
br label %180
180: ; preds = %180, %178
%181 = phi i64 [ 0, %178 ], [ %226, %180 ]
%182 = phi i64 [ 0, %178 ], [ %227, %180 ]
%183 = getelementptr i8, i8* %148, i64 %181
%184 = getelementptr i8, i8* %14, i64 %181
%185 = bitcast i8* %184 to <16 x i8>*
%186 = load <16 x i8>, <16 x i8>* %185
%187 = getelementptr i8, i8* %184, i64 16
%188 = bitcast i8* %187 to <16 x i8>*
%189 = load <16 x i8>, <16 x i8>* %188
%190 = bitcast i8* %183 to <16 x i8>*
store <16 x i8> %186, <16 x i8>* %190
%191 = getelementptr i8, i8* %183, i64 16
%192 = bitcast i8* %191 to <16 x i8>*
store <16 x i8> %189, <16 x i8>* %192
%193 = or i64 %181, 32
%194 = getelementptr i8, i8* %148, i64 %193
%195 = getelementptr i8, i8* %14, i64 %193
%196 = bitcast i8* %195 to <16 x i8>*
%197 = load <16 x i8>, <16 x i8>* %196
%198 = getelementptr i8, i8* %195, i64 16
%199 = bitcast i8* %198 to <16 x i8>*
%200 = load <16 x i8>, <16 x i8>* %199
%201 = bitcast i8* %194 to <16 x i8>*
store <16 x i8> %197, <16 x i8>* %201
%202 = getelementptr i8, i8* %194, i64 16
%203 = bitcast i8* %202 to <16 x i8>*
store <16 x i8> %200, <16 x i8>* %203
%204 = or i64 %181, 64
%205 = getelementptr i8, i8* %148, i64 %204
%206 = getelementptr i8, i8* %14, i64 %204
%207 = bitcast i8* %206 to <16 x i8>*
%208 = load <16 x i8>, <16 x i8>* %207
%209 = getelementptr i8, i8* %206, i64 16
%210 = bitcast i8* %209 to <16 x i8>*
%211 = load <16 x i8>, <16 x i8>* %210
%212 = bitcast i8* %205 to <16 x i8>*
store <16 x i8> %208, <16 x i8>* %212
%213 = getelementptr i8, i8* %205, i64 16
%214 = bitcast i8* %213 to <16 x i8>*
store <16 x i8> %211, <16 x i8>* %214
%215 = or i64 %181, 96
%216 = getelementptr i8, i8* %148, i64 %215
%217 = getelementptr i8, i8* %14, i64 %215
%218 = bitcast i8* %217 to <16 x i8>*
%219 = load <16 x i8>, <16 x i8>* %218
%220 = getelementptr i8, i8* %217, i64 16
%221 = bitcast i8* %220 to <16 x i8>*
%222 = load <16 x i8>, <16 x i8>* %221
%223 = bitcast i8* %216 to <16 x i8>*
store <16 x i8> %219, <16 x i8>* %223
%224 = getelementptr i8, i8* %216, i64 16
%225 = bitcast i8* %224 to <16 x i8>*
store <16 x i8> %222, <16 x i8>* %225
%226 = add nuw i64 %181, 128
%227 = add i64 %182, 4
%228 = icmp eq i64 %227, %179
br i1 %228, label %229, label %180
229: ; preds = %180, %168
%230 = phi i64 [ 0, %168 ], [ %226, %180 ]
%231 = icmp eq i64 %176, 0
br i1 %231, label %248, label %232
232: ; preds = %229, %232
%233 = phi i64 [ %245, %232 ], [ %230, %229 ]
%234 = phi i64 [ %246, %232 ], [ 0, %229 ]
%235 = getelementptr i8, i8* %148, i64 %233
%236 = getelementptr i8, i8* %14, i64 %233
%237 = bitcast i8* %236 to <16 x i8>*
%238 = load <16 x i8>, <16 x i8>* %237
%239 = getelementptr i8, i8* %236, i64 16
%240 = bitcast i8* %239 to <16 x i8>*
%241 = load <16 x i8>, <16 x i8>* %240
%242 = bitcast i8* %235 to <16 x i8>*
store <16 x i8> %238, <16 x i8>* %242
%243 = getelementptr i8, i8* %235, i64 16
%244 = bitcast i8* %243 to <16 x i8>*
store <16 x i8> %241, <16 x i8>* %244
%245 = add nuw i64 %233, 32
%246 = add i64 %234, 1
%247 = icmp eq i64 %246, %176
br i1 %247, label %248, label %232
248: ; preds = %232, %229
%249 = icmp eq i64 %156, %169
br i1 %249, label %306, label %250
250: ; preds = %158, %153, %248
%251 = phi i8* [ %148, %158 ], [ %148, %153 ], [ %170, %248 ]
%252 = phi i32 [ 0, %158 ], [ 0, %153 ], [ %171, %248 ]
%253 = phi i8* [ %14, %158 ], [ %14, %153 ], [ %172, %248 ]
%254 = sub i32 %151, %252
%255 = xor i32 %252, -1
%256 = add i32 %151, %255
%257 = and i32 %254, 7
%258 = icmp eq i32 %257, 0
br i1 %258, label %270, label %259
259: ; preds = %250, %259
%260 = phi i8* [ %266, %259 ], [ %251, %250 ]
%261 = phi i32 [ %267, %259 ], [ %252, %250 ]
%262 = phi i8* [ %264, %259 ], [ %253, %250 ]
%263 = phi i32 [ %268, %259 ], [ 0, %250 ]
%264 = getelementptr inbounds i8, i8* %262, i64 1
%265 = load i8, i8* %262
%266 = getelementptr inbounds i8, i8* %260, i64 1
store i8 %265, i8* %260
%267 = add nuw nsw i32 %261, 1
%268 = add i32 %263, 1
%269 = icmp eq i32 %268, %257
br i1 %269, label %270, label %259
270: ; preds = %259, %250
%271 = phi i8* [ undef, %250 ], [ %266, %259 ]
%272 = phi i8* [ %251, %250 ], [ %266, %259 ]
%273 = phi i32 [ %252, %250 ], [ %267, %259 ]
%274 = phi i8* [ %253, %250 ], [ %264, %259 ]
%275 = icmp ult i32 %256, 7
br i1 %275, label %306, label %276
276: ; preds = %270, %276
%277 = phi i8* [ %303, %276 ], [ %272, %270 ]
%278 = phi i32 [ %304, %276 ], [ %273, %270 ]
%279 = phi i8* [ %301, %276 ], [ %274, %270 ]
%280 = getelementptr inbounds i8, i8* %279, i64 1
%281 = load i8, i8* %279
%282 = getelementptr inbounds i8, i8* %277, i64 1
store i8 %281, i8* %277
%283 = getelementptr inbounds i8, i8* %279, i64 2
%284 = load i8, i8* %280
%285 = getelementptr inbounds i8, i8* %277, i64 2
store i8 %284, i8* %282
%286 = getelementptr inbounds i8, i8* %279, i64 3
%287 = load i8, i8* %283
%288 = getelementptr inbounds i8, i8* %277, i64 3
store i8 %287, i8* %285
%289 = getelementptr inbounds i8, i8* %279, i64 4
%290 = load i8, i8* %286
%291 = getelementptr inbounds i8, i8* %277, i64 4
store i8 %290, i8* %288
%292 = getelementptr inbounds i8, i8* %279, i64 5
%293 = load i8, i8* %289
%294 = getelementptr inbounds i8, i8* %277, i64 5
store i8 %293, i8* %291
%295 = getelementptr inbounds i8, i8* %279, i64 6
%296 = load i8, i8* %292
%297 = getelementptr inbounds i8, i8* %277, i64 6
store i8 %296, i8* %294
%298 = getelementptr inbounds i8, i8* %279, i64 7
%299 = load i8, i8* %295
%300 = getelementptr inbounds i8, i8* %277, i64 7
store i8 %299, i8* %297
%301 = getelementptr inbounds i8, i8* %279, i64 8
%302 = load i8, i8* %298
%303 = getelementptr inbounds i8, i8* %277, i64 8
store i8 %302, i8* %300
%304 = add nuw nsw i32 %278, 8
%305 = icmp eq i32 %304, %151
br i1 %305, label %306, label %276
306: ; preds = %270, %276, %248, %139
%307 = phi i8* [ %148, %139 ], [ %170, %248 ], [ %271, %270 ], [ %303, %276 ]
%308 = call i32 @PUTLONG(i32 16777216, i8* %307)
%309 = getelementptr inbounds i8, i8* %307, i64 4
%310 = call i32 @PUTLONG(i32 0, i8* %309)
%311 = getelementptr inbounds i8, i8* %307, i64 8
%312 = call i32 @PUTLONG(i32 0, i8* %311)
%313 = getelementptr inbounds i8, i8* %307, i64 12
%314 = call i32 @PUTLONG(i32 0, i8* %313)
%315 = add i32 %18, 26
%316 = add i32 %315, %33
%317 = add i32 %316, %151
%318 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%319 = icmp sgt i32 %317, 0
br i1 %319, label %320, label %332
320: ; preds = %306
%321 = add i32 %33, %151
%322 = add i32 %321, %18
%323 = add i32 %322, 25
%324 = zext i32 %323 to i64
%325 = getelementptr [1000 x i8], [1000 x i8]* %1, i64 0, i64 %324
br label %326
326: ; preds = %320, %326
%327 = phi i8* [ %330, %326 ], [ %4, %320 ]
%328 = load i8, i8* %327
%329 = call i32 @fputc(i8 zeroext %328, i32* %318)
%330 = getelementptr inbounds i8, i8* %327, i64 1
%331 = icmp eq i8* %327, %325
br i1 %331, label %332, label %326
332: ; preds = %326, %306
%333 = call i32 @fclose(i32* %318)
ret i32 0
}