#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*/ buf;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int read(int /*<<< orphan*/, unsigned char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
main(int argc, char *argv[]) {
  int i, cnt, pos, len;
  unsigned int cksum, val;
  unsigned char *lp;
  unsigned char buf[8192];
  if (argc != 1) {
    fprintf(stderr, "usage: %s <in-file >out-file\n", argv[0]);
    exit(1);
  }
  fprintf(stdout, "#\n");
  fprintf(stdout, "# Miscellaneous data structures:\n");
  fprintf(stdout, "# WARNING - this file is automatically generated!\n");
  fprintf(stdout, "#\n");
  fprintf(stdout, "\n");
  fprintf(stdout, "\t.data\n");
  fprintf(stdout, "\t.globl input_data\n");
  fprintf(stdout, "input_data:\n");
  pos = 0;
  cksum = 0;
  while ((len = read(0, buf, sizeof(buf))) > 0) {
    cnt = 0;
    lp = (unsigned char *)buf;
    len = (len + 3) & ~3;
    for (i = 0; i < len; i += 4) {
      if (cnt == 0) {
        fprintf(stdout, "\t.long\t");
      }
      fprintf(stdout, "0x%02X%02X%02X%02X", lp[0], lp[1], lp[2], lp[3]);
      val = *(unsigned long *)lp;
      cksum ^= val;
      lp += 4;
      if (++cnt == 4) {
        cnt = 0;
        fprintf(stdout, " # %x \n", pos + i - 12);
        fflush(stdout);
      } else {
        fprintf(stdout, ",");
      }
    }
    if (cnt) {
      fprintf(stdout, "0\n");
    }
    pos += len;
  }
  fprintf(stdout, "\t.globl input_len\n");
  fprintf(stdout, "input_len:\t.long\t0x%x\n", pos);
  fflush(stdout);
  fclose(stdout);
  fprintf(stderr, "cksum = %x\n", cksum);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2030,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     119b <main+0x4b>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xe6a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
lea    0xeb9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
lea    0xe58(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
lea    0xe49(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x24(%rbp)
lea    -0x2030(%rbp),%rsi
xor    %edi,%edi
mov    $0x2000,%edx
call   1040 <read@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jle    13ce <main+0x27e>
movl   $0x0,-0x18(%rbp)
lea    -0x2030(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%eax
add    $0x3,%eax
and    $0xfffffffc,%eax
mov    %eax,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    139f <main+0x24f>
cmpl   $0x0,-0x18(%rbp)
jne    12d2 <main+0x182>
mov    0x2d16(%rip),%rax
mov    (%rax),%edi
lea    0xdd4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2cff(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
movzbl (%rax),%edx
mov    -0x30(%rbp),%rax
movzbl 0x1(%rax),%ecx
mov    -0x30(%rbp),%rax
movzbl 0x2(%rax),%r8d
mov    -0x30(%rbp),%rax
movzbl 0x3(%rax),%r9d
lea    0xda4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
xor    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmp    $0x4,%eax
jne    1375 <main+0x225>
movl   $0x0,-0x18(%rbp)
mov    0x2c8f(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
add    -0x14(%rbp),%edx
sub    $0xc,%edx
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c6f(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
jmp    138c <main+0x23c>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
lea    0xd3d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1391 <main+0x241>
mov    -0x14(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x14(%rbp)
jmp    12a5 <main+0x155>
cmpl   $0x0,-0x18(%rbp)
je     13c0 <main+0x270>
mov    0x2c28(%rip),%rax
mov    (%rax),%edi
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1261 <main+0x111>
mov    0x2c03(%rip),%rax
mov    (%rax),%edi
lea    0xce9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bec(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xce2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    0x2bc4(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    0x2bbe(%rip),%rax
mov    (%rax),%edi
mov    -0x24(%rbp),%edx
lea    0xcc3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2018,%rsp
cmp    $0x1,%edi
jne    1320 <main+0x1d0>
mov    0x2e67(%rip),%r12
mov    (%r12),%edi
lea    0xea2(%rip),%rbx
xor    %r14d,%r14d
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe8d(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe9d(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe9e(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe94(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe96(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0x10(%rsp),%rsi
xor    %edi,%edi
mov    $0x2000,%edx
call   1040 <read@plt>
mov    $0x0,%ebp
test   %eax,%eax
jle    1344 <main+0x1f4>
mov    %eax,%ebx
xor    %ebp,%ebp
xor    %r14d,%r14d
jmp    1253 <main+0x103>
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%r14
add    %ebx,%r14d
xor    %edi,%edi
lea    0x10(%rsp),%rsi
mov    $0x2000,%edx
call   1040 <read@plt>
mov    %eax,%ebx
test   %eax,%eax
jle    1344 <main+0x1f4>
add    $0x3,%ebx
and    $0xfffffffc,%ebx
je     1235 <main+0xe5>
mov    %r14,0x8(%rsp)
add    $0xfffffff4,%r14d
xor    %r15d,%r15d
xor    %r13d,%r13d
jmp    12c4 <main+0x174>
nopl   0x0(%rax)
mov    (%r12),%edi
movzbl 0x10(%rsp,%r15,1),%edx
movzbl 0x11(%rsp,%r15,1),%ecx
movzbl 0x12(%rsp,%r15,1),%r8d
movzbl 0x13(%rsp,%r15,1),%r9d
lea    0xe14(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    0x10(%rsp,%r15,1),%ebp
add    $0x1,%r13d
mov    (%r12),%edi
cmp    $0x4,%r13d
je     12e0 <main+0x190>
lea    0xe0e(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x4,%r15
cmp    %ebx,%r15d
jge    1300 <main+0x1b0>
test   %r13d,%r13d
jne    1270 <main+0x120>
mov    (%r12),%edi
lea    0xdcb(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1270 <main+0x120>
nopl   (%rax)
lea    (%r14,%r15,1),%edx
xor    %r13d,%r13d
lea    0xdcc(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
call   1060 <fflush@plt>
jmp    12bb <main+0x16b>
test   %r13d,%r13d
je     1230 <main+0xe0>
mov    (%r12),%edi
lea    0xdb0(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1230 <main+0xe0>
mov    0x2cb9(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xccd(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    (%r12),%edi
lea    0xd78(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xd79(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
call   1060 <fflush@plt>
mov    (%r12),%edi
call   1030 <fclose@plt>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
lea    0xd64(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [30 x i8] c"usage: %s <in-file >out-file\0A\00"
@stdout = global i32 0
@.str.1 = [3 x i8] c"#\0A\00"
@.str.2 = [34 x i8] c"# Miscellaneous data structures:\0A\00"
@.str.3 = [51 x i8] c"# WARNING - this file is automatically generated!\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [8 x i8] c"\09.data\0A\00"
@.str.6 = [20 x i8] c"\09.globl input_data\0A\00"
@.str.7 = [13 x i8] c"input_data:\0A\00"
@.str.8 = [8 x i8] c"\09.long\09\00"
@.str.9 = [19 x i8] c"0x%02X%02X%02X%02X\00"
@.str.10 = [8 x i8] c" # %x \0A\00"
@.str.11 = [2 x i8] c",\00"
@.str.12 = [3 x i8] c"0\0A\00"
@.str.13 = [19 x i8] c"\09.globl input_len\0A\00"
@.str.14 = [23 x i8] c"input_len:\09.long\090x%x\0A\00"
@.str.15 = [12 x i8] c"cksum = %x\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca [8192 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = load i32, i32* @stdout
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%28 = load i32, i32* @stdout
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%30 = load i32, i32* @stdout
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%34 = load i32, i32* @stdout
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%36 = load i32, i32* @stdout
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%38 = load i32, i32* @stdout
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %8
store i32 0, i32* %10
br label %40
40: ; preds = %112, %23
%41 = getelementptr inbounds [8192 x i8], [8192 x i8]* %13, i64 0, i64 0
%42 = call i32 @read(i32 0, i8* %41, i32 8192)
store i32 %42, i32* %9
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %116
44: ; preds = %40
store i32 0, i32* %7
%45 = getelementptr inbounds [8192 x i8], [8192 x i8]* %13, i64 0, i64 0
store i8* %45, i8** %12
%46 = load i32, i32* %9
%47 = add nsw i32 %46, 3
%48 = and i32 %47, -4
store i32 %48, i32* %9
store i32 0, i32* %6
br label %49
49: ; preds = %103, %44
%50 = load i32, i32* %6
%51 = load i32, i32* %9
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %106
53: ; preds = %49
%54 = load i32, i32* %7
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load i32, i32* @stdout
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %59
59: ; preds = %56, %53
%60 = load i32, i32* @stdout
%61 = load i8*, i8** %12
%62 = getelementptr inbounds i8, i8* %61, i64 0
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = load i8*, i8** %12
%66 = getelementptr inbounds i8, i8* %65, i64 1
%67 = load i8, i8* %66
%68 = zext i8 %67 to i32
%69 = load i8*, i8** %12
%70 = getelementptr inbounds i8, i8* %69, i64 2
%71 = load i8, i8* %70
%72 = zext i8 %71 to i32
%73 = load i8*, i8** %12
%74 = getelementptr inbounds i8, i8* %73, i64 3
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %64, i32 %68, i32 %72, i32 %76)
%78 = load i8*, i8** %12
%79 = bitcast i8* %78 to i64*
%80 = load i64, i64* %79
%81 = trunc i64 %80 to i32
store i32 %81, i32* %11
%82 = load i32, i32* %11
%83 = load i32, i32* %10
%84 = xor i32 %83, %82
store i32 %84, i32* %10
%85 = load i8*, i8** %12
%86 = getelementptr inbounds i8, i8* %85, i64 4
store i8* %86, i8** %12
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
%89 = icmp eq i32 %88, 4
br i1 %89, label %90, label %99
90: ; preds = %59
store i32 0, i32* %7
%91 = load i32, i32* @stdout
%92 = load i32, i32* %8
%93 = load i32, i32* %6
%94 = add nsw i32 %92, %93
%95 = sub nsw i32 %94, 12
%96 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %95)
%97 = load i32, i32* @stdout
%98 = call i32 @fflush(i32 %97)
br label %102
99: ; preds = %59
%100 = load i32, i32* @stdout
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %102
102: ; preds = %99, %90
br label %103
103: ; preds = %102
%104 = load i32, i32* %6
%105 = add nsw i32 %104, 4
store i32 %105, i32* %6
br label %49
106: ; preds = %49
%107 = load i32, i32* %7
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %106
%110 = load i32, i32* @stdout
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
br label %112
112: ; preds = %109, %106
%113 = load i32, i32* %9
%114 = load i32, i32* %8
%115 = add nsw i32 %114, %113
store i32 %115, i32* %8
br label %40
116: ; preds = %40
%117 = load i32, i32* @stdout
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %117, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%119 = load i32, i32* @stdout
%120 = load i32, i32* %8
%121 = call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i32 %120)
%122 = load i32, i32* @stdout
%123 = call i32 @fflush(i32 %122)
%124 = load i32, i32* @stdout
%125 = call i32 @fclose(i32 %124)
%126 = load i32, i32* @stderr
%127 = load i32, i32* %10
%128 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %127)
%129 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [30 x i8] c"usage: %s <in-file >out-file\0A\00"
@stdout = global i32 0
@.str.1 = [3 x i8] c"#\0A\00"
@.str.2 = [34 x i8] c"# Miscellaneous data structures:\0A\00"
@.str.3 = [51 x i8] c"# WARNING - this file is automatically generated!\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [8 x i8] c"\09.data\0A\00"
@.str.6 = [20 x i8] c"\09.globl input_data\0A\00"
@.str.7 = [13 x i8] c"input_data:\0A\00"
@.str.8 = [8 x i8] c"\09.long\09\00"
@.str.9 = [19 x i8] c"0x%02X%02X%02X%02X\00"
@.str.10 = [8 x i8] c" # %x \0A\00"
@.str.11 = [2 x i8] c",\00"
@.str.12 = [3 x i8] c"0\0A\00"
@.str.13 = [19 x i8] c"\09.globl input_len\0A\00"
@.str.14 = [23 x i8] c"input_len:\09.long\090x%x\0A\00"
@.str.15 = [12 x i8] c"cksum = %x\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [8192 x i8]
%4 = getelementptr inbounds [8192 x i8], [8192 x i8]* %3, i64 0, i64 0
%5 = icmp eq i32 %0, 1
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %1
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%28 = call i32 @read(i32 0, i8* %4, i32 8192)
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %91
30: ; preds = %11, %86
%31 = phi i32 [ %89, %86 ], [ %28, %11 ]
%32 = phi i32 [ %87, %86 ], [ 0, %11 ]
%33 = phi i32 [ %88, %86 ], [ 0, %11 ]
%34 = add nuw nsw i32 %31, 3
%35 = and i32 %34, -4
%36 = icmp eq i32 %35, 0
br i1 %36, label %86, label %37
37: ; preds = %30
%38 = add i32 %33, -12
br label %39
39: ; preds = %37, %77
%40 = phi i8* [ %4, %37 ], [ %66, %77 ]
%41 = phi i32 [ 0, %37 ], [ %79, %77 ]
%42 = phi i32 [ %32, %37 ], [ %65, %77 ]
%43 = phi i32 [ 0, %37 ], [ %78, %77 ]
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load i32, i32* @stdout
%47 = tail call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %48
48: ; preds = %45, %39
%49 = load i32, i32* @stdout
%50 = load i8, i8* %40
%51 = zext i8 %50 to i32
%52 = getelementptr inbounds i8, i8* %40, i64 1
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = getelementptr inbounds i8, i8* %40, i64 2
%56 = load i8, i8* %55
%57 = zext i8 %56 to i32
%58 = getelementptr inbounds i8, i8* %40, i64 3
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = tail call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %51, i32 %54, i32 %57, i32 %60)
%62 = bitcast i8* %40 to i64*
%63 = load i64, i64* %62
%64 = trunc i64 %63 to i32
%65 = xor i32 %42, %64
%66 = getelementptr inbounds i8, i8* %40, i64 4
%67 = add nsw i32 %43, 1
%68 = icmp eq i32 %67, 4
%69 = load i32, i32* @stdout
br i1 %68, label %70, label %75
70: ; preds = %48
%71 = add i32 %38, %41
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %71)
%73 = load i32, i32* @stdout
%74 = tail call i32 @fflush(i32 %73)
br label %77
75: ; preds = %48
%76 = tail call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %77
77: ; preds = %70, %75
%78 = phi i32 [ 0, %70 ], [ %67, %75 ]
%79 = add nuw nsw i32 %41, 4
%80 = icmp slt i32 %79, %35
br i1 %80, label %39, label %81
81: ; preds = %77
%82 = icmp eq i32 %78, 0
br i1 %82, label %86, label %83
83: ; preds = %81
%84 = load i32, i32* @stdout
%85 = tail call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
br label %86
86: ; preds = %30, %83, %81
%87 = phi i32 [ %65, %83 ], [ %65, %81 ], [ %32, %30 ]
%88 = add nsw i32 %35, %33
%89 = call i32 @read(i32 0, i8* %4, i32 8192)
%90 = icmp sgt i32 %89, 0
br i1 %90, label %30, label %91
91: ; preds = %86, %11
%92 = phi i32 [ 0, %11 ], [ %88, %86 ]
%93 = phi i32 [ 0, %11 ], [ %87, %86 ]
%94 = load i32, i32* @stdout
%95 = tail call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%96 = load i32, i32* @stdout
%97 = tail call i32 (i32, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i32 %92)
%98 = load i32, i32* @stdout
%99 = tail call i32 @fflush(i32 %98)
%100 = load i32, i32* @stdout
%101 = tail call i32 @fclose(i32 %100)
%102 = load i32, i32* @stderr
%103 = tail call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %93)
%104 = tail call i32 @exit(i32 0)
unreachable
}