#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int compress(char, char);
int decompress();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char const *,
                           char const *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, const char *argv[]) {
  int retVal = 1;
  int nextOption;
  int thisOption;
  char LFonly = 0;
  char doThis = 0;
  char zipMode = 2;
  for (nextOption = 1; nextOption < argc; ++nextOption) {
    thisOption = 0;
    if (argv[nextOption][thisOption] == '-')
      ++thisOption;
    switch (argv[nextOption][thisOption]) {
    case 'h':
      if (doThis)
        goto PrezipUsage;
      doThis = 'h';
      retVal = 0;
      break;
    case 'v':
    case 'V':
      if (doThis)
        goto PrezipUsage;
      doThis = 'v';
      break;
    case 'd':
      if (doThis)
        goto PrezipUsage;
      doThis = 'd';
      break;
    case 'c':
      if (doThis)
        goto PrezipUsage;
      doThis = 'c';
      zipMode = 1;
      break;
    case 'z':
      if (doThis)
        goto PrezipUsage;
      doThis = 'c';
      zipMode = 2;
      break;
    case 'l':
      LFonly = 1;
      break;
    default:
      goto PrezipUsage;
    }
  }
  switch (doThis) {
  case 'c':
    retVal = compress(LFonly, zipMode);
    break;
  case 'd':
    retVal = decompress();
    break;
  case 'v':
    fputs("prezip, a prefix delta compressor. Version 0.2.0, 2005-02-02\n",
          stdout);
    retVal = 0;
    break;
  default:
  PrezipUsage:
    retVal = 1;
  case 'h':
    fprintf(stdout,
            "%s"
            "Usage:\n"
            "  %s [options] <filein >fileout\n"
            "Option:\n"
            "  -c = Compress (word-list-compress)\n"
            "  -z = Compress (prezip-bin)\n"
            "  -d = Decompress\n"
            "  -h = this Help message\n"
            "  -v = %s Version\n"
            "Extra option for use with -z:\n"
            "  -l = Autodetect EOL <CR><LF>, Remove <CR>\n",
            "prezip, a prefix delta compressor. Version 0.2.0, 2005-02-02\n",
            argv[0], argv[0]);
  }
  assert(retVal >= 0);
  if (retVal > 1)
    fputs("ERROR: ", stderr);
  switch (retVal) {
  case 2:
    fputs("Unknown Format\n", stderr);
    break;
  case 3:
    fputs("Corrupt Input\n", stderr);
    break;
  case 4:
    fputs("Unexpected EOF\n", stderr);
    break;
  case 5:
    fputs("Output Data Error\n", stderr);
    break;
  case 6:
    fputs("Memory Allocation Error\n", stderr);
  }
  return retVal;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movb   $0x0,-0x1d(%rbp)
movb   $0x0,-0x1e(%rbp)
movb   $0x2,-0x1f(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    129b <main+0x14b>
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2d,%eax
jne    11b9 <main+0x69>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
add    $0xffffffaa,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x24,%eax
ja     1283 <main+0x133>
mov    -0x28(%rbp),%rax
lea    0xe66(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmpb   $0x0,-0x1e(%rbp)
je     1202 <main+0xb2>
jmp    1311 <main+0x1c1>
movb   $0x68,-0x1e(%rbp)
movl   $0x0,-0x14(%rbp)
jmp    1288 <main+0x138>
cmpb   $0x0,-0x1e(%rbp)
je     1221 <main+0xd1>
jmp    1311 <main+0x1c1>
movb   $0x76,-0x1e(%rbp)
jmp    1288 <main+0x138>
cmpb   $0x0,-0x1e(%rbp)
je     1239 <main+0xe9>
jmp    1311 <main+0x1c1>
movb   $0x64,-0x1e(%rbp)
jmp    1288 <main+0x138>
cmpb   $0x0,-0x1e(%rbp)
je     1251 <main+0x101>
jmp    1311 <main+0x1c1>
movb   $0x63,-0x1e(%rbp)
movb   $0x1,-0x1f(%rbp)
jmp    1288 <main+0x138>
cmpb   $0x0,-0x1e(%rbp)
je     126d <main+0x11d>
jmp    1311 <main+0x1c1>
movb   $0x63,-0x1e(%rbp)
movb   $0x2,-0x1f(%rbp)
jmp    1288 <main+0x138>
movb   $0x1,-0x1d(%rbp)
jmp    1288 <main+0x138>
jmp    1311 <main+0x1c1>
jmp    128d <main+0x13d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1180 <main+0x30>
movsbl -0x1e(%rbp),%eax
add    $0xffffff9d,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x13,%eax
ja     130c <main+0x1bc>
mov    -0x30(%rbp),%rax
lea    0xd44(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x1d(%rbp),%al
movsbl %al,%edi
movsbl -0x1f(%rbp),%esi
call   1030 <compress@plt>
mov    %eax,-0x14(%rbp)
jmp    1342 <main+0x1f2>
mov    $0x0,%al
call   1070 <decompress@plt>
mov    %eax,-0x14(%rbp)
jmp    1342 <main+0x1f2>
mov    0x2ce6(%rip),%rax
mov    (%rax),%esi
lea    0xdfd(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x14(%rbp)
jmp    1342 <main+0x1f2>
jmp    1311 <main+0x1c1>
movl   $0x1,-0x14(%rbp)
mov    0x2cb9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%r8
lea    0xe00(%rip),%rsi
lea    0xdbb(%rip),%rdx
call   1060 <fprintf@plt>
cmpl   $0x0,-0x14(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
cmpl   $0x1,-0x14(%rbp)
jle    1372 <main+0x222>
mov    0x2c7c(%rip),%rax
mov    (%rax),%esi
lea    0xec4(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x14(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x4,%eax
ja     1418 <main+0x2c8>
mov    -0x38(%rbp),%rax
lea    0xd52(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2c3e(%rip),%rax
mov    (%rax),%esi
lea    0xe8e(%rip),%rdi
call   1040 <fputs@plt>
jmp    1418 <main+0x2c8>
mov    0x2c24(%rip),%rax
mov    (%rax),%esi
lea    0xe84(%rip),%rdi
call   1040 <fputs@plt>
jmp    1418 <main+0x2c8>
mov    0x2c0a(%rip),%rax
mov    (%rax),%esi
lea    0xe79(%rip),%rdi
call   1040 <fputs@plt>
jmp    1418 <main+0x2c8>
mov    0x2bf0(%rip),%rax
mov    (%rax),%esi
lea    0xe6f(%rip),%rdi
call   1040 <fputs@plt>
jmp    1418 <main+0x2c8>
mov    0x2bd6(%rip),%rax
mov    (%rax),%esi
lea    0xe68(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x14(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
cmp    $0x2,%edi
jl     120a <main+0xba>
mov    %edi,%r9d
mov    $0x1,%r14d
mov    $0x2,%r8b
mov    $0x1,%edx
xor    %eax,%eax
lea    0xe89(%rip),%r10
xor    %ebx,%ebx
jmp    1193 <main+0x43>
test   %al,%al
jne    120a <main+0xba>
mov    $0x2,%r8b
mov    $0x63,%al
mov    %ecx,%ebx
add    $0x1,%rdx
cmp    %rdx,%r9
je     11e0 <main+0x90>
mov    %ebx,%ecx
mov    (%rsi,%rdx,8),%rdi
xor    %ebx,%ebx
cmpb   $0x2d,(%rdi)
sete   %bl
movsbl (%rdi,%rbx,1),%edi
add    $0xffffffaa,%edi
cmp    $0x24,%edi
ja     120a <main+0xba>
mov    $0x1,%bl
movslq (%r10,%rdi,4),%rdi
add    %r10,%rdi
jmp    *%rdi
mov    %ecx,%ebx
test   %al,%al
mov    $0x76,%al
je     118a <main+0x3a>
jmp    120a <main+0xba>
test   %al,%al
jne    120a <main+0xba>
mov    $0x1,%r8b
jmp    1186 <main+0x36>
mov    %ecx,%ebx
test   %al,%al
mov    $0x64,%al
je     118a <main+0x3a>
jmp    120a <main+0xba>
test   %al,%al
jne    120a <main+0xba>
mov    $0x68,%al
xor    %r14d,%r14d
jmp    1188 <main+0x38>
add    $0x9d,%al
cmp    $0x13,%al
ja     120a <main+0xba>
movzbl %al,%eax
lea    0xea4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl %bl,%edi
movsbl %r8b,%esi
call   1030 <compress@plt>
mov    %eax,%r14d
jmp    1232 <main+0xe2>
mov    $0x1,%r14d
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rcx
lea    0xf13(%rip),%rsi
lea    0xece(%rip),%rdx
mov    %rcx,%r8
call   1060 <fprintf@plt>
mov    %r14d,%edi
not    %edi
shr    $0x1f,%edi
call   1050 <assert@plt>
cmp    $0x2,%r14d
jl     125a <main+0x10a>
mov    0x2d94(%rip),%rax
mov    (%rax),%esi
lea    0xfdc(%rip),%rdi
call   1040 <fputs@plt>
lea    -0x2(%r14),%eax
cmp    $0x4,%eax
ja     1281 <main+0x131>
cltq
lea    0xe78(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
mov    0x2d66(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
xor    %eax,%eax
call   1070 <decompress@plt>
mov    %eax,%r14d
jmp    1232 <main+0xe2>
mov    0x2d39(%rip),%rax
mov    (%rax),%esi
lea    0xe50(%rip),%rdi
call   1040 <fputs@plt>
xor    %r14d,%r14d
jmp    1232 <main+0xe2>

LLVM IR (-O0):
@.str = [62 x i8] c"prezip, a prefix delta compressor. Version 0.2.0, 2005-02-02\0A\00"
@stdout = global i32 0
@.str.1 = [251 x i8] c"%sUsage:\0A %s [options] <filein >fileout\0AOption:\0A -c = Compress (word-list-compress)\0A -z = Compress (prezip-bin)\0A -d = Decompress\0A -h = this Help message\0A -v = %s Version\0AExtra option for use with -z:\0A -l = Autodetect EOL <CR><LF>, Remove <CR>\0A\00"
@.str.2 = [8 x i8] c"ERROR: \00"
@stderr = global i32 0
@.str.3 = [16 x i8] c"Unknown Format\0A\00"
@.str.4 = [15 x i8] c"Corrupt Input\0A\00"
@.str.5 = [16 x i8] c"Unexpected EOF\0A\00"
@.str.6 = [19 x i8] c"Output Data Error\0A\00"
@.str.7 = [25 x i8] c"Memory Allocation Error\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 i8
%10 = alloca i8
%11 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
store i8 0, i8* %9
store i8 0, i8* %10
store i8 2, i8* %11
store i32 1, i32* %7
br label %12
12: ; preds = %70, %2
%13 = load i32, i32* %7
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %73
16: ; preds = %12
store i32 0, i32* %8
%17 = load i8**, i8*** %5
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %28, label %31
28: ; preds = %16
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 1
store i32 %30, i32* %8
br label %31
31: ; preds = %28, %16
%32 = load i8**, i8*** %5
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %36, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
switch i32 %41, label %68 [
i32 104, label %42
i32 118, label %47
i32 86, label %47
i32 100, label %52
i32 99, label %57
i32 122, label %62
i32 108, label %67
]
42: ; preds = %31
%43 = load i8, i8* %10
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %42
br label %86
46: ; preds = %42
store i8 104, i8* %10
store i32 0, i32* %6
br label %69
47: ; preds = %31, %31
%48 = load i8, i8* %10
%49 = icmp ne i8 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
br label %86
51: ; preds = %47
store i8 118, i8* %10
br label %69
52: ; preds = %31
%53 = load i8, i8* %10
%54 = icmp ne i8 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %52
br label %86
56: ; preds = %52
store i8 100, i8* %10
br label %69
57: ; preds = %31
%58 = load i8, i8* %10
%59 = icmp ne i8 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
br label %86
61: ; preds = %57
store i8 99, i8* %10
store i8 1, i8* %11
br label %69
62: ; preds = %31
%63 = load i8, i8* %10
%64 = icmp ne i8 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %62
br label %86
66: ; preds = %62
store i8 99, i8* %10
store i8 2, i8* %11
br label %69
67: ; preds = %31
store i8 1, i8* %9
br label %69
68: ; preds = %31
br label %86
69: ; preds = %67, %66, %61, %56, %51, %46
br label %70
70: ; preds = %69
%71 = load i32, i32* %7
%72 = add nsw i32 %71, 1
store i32 %72, i32* %7
br label %12
73: ; preds = %12
%74 = load i8, i8* %10
%75 = sext i8 %74 to i32
switch i32 %75, label %85 [
i32 99, label %76
i32 100, label %80
i32 118, label %82
i32 104, label %87
]
76: ; preds = %73
%77 = load i8, i8* %9
%78 = load i8, i8* %11
%79 = call i32 @compress(i8 signext %77, i8 signext %78)
store i32 %79, i32* %6
br label %96
80: ; preds = %73
%81 = call i32 (...) @decompress()
store i32 %81, i32* %6
br label %96
82: ; preds = %73
%83 = load i32, i32* @stdout
%84 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i32 %83)
store i32 0, i32* %6
br label %96
85: ; preds = %73
br label %86
86: ; preds = %85, %68, %65, %60, %55, %50, %45
store i32 1, i32* %6
br label %87
87: ; preds = %73, %86
%88 = load i32, i32* @stdout
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 0
%91 = load i8*, i8** %90
%92 = load i8**, i8*** %5
%93 = getelementptr inbounds i8*, i8** %92, i64 0
%94 = load i8*, i8** %93
%95 = call i32 @fprintf(i32 %88, i8* getelementptr inbounds ([251 x i8], [251 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %91, i8* %94)
br label %96
96: ; preds = %87, %82, %80, %76
%97 = load i32, i32* %6
%98 = icmp sge i32 %97, 0
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = load i32, i32* %6
%102 = icmp sgt i32 %101, 1
br i1 %102, label %103, label %106
103: ; preds = %96
%104 = load i32, i32* @stderr
%105 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %103, %96
%107 = load i32, i32* %6
switch i32 %107, label %123 [
i32 2, label %108
i32 3, label %111
i32 4, label %114
i32 5, label %117
i32 6, label %120
]
108: ; preds = %106
%109 = load i32, i32* @stderr
%110 = call i32 @fputs(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %109)
br label %123
111: ; preds = %106
%112 = load i32, i32* @stderr
%113 = call i32 @fputs(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %112)
br label %123
114: ; preds = %106
%115 = load i32, i32* @stderr
%116 = call i32 @fputs(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %115)
br label %123
117: ; preds = %106
%118 = load i32, i32* @stderr
%119 = call i32 @fputs(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %118)
br label %123
120: ; preds = %106
%121 = load i32, i32* @stderr
%122 = call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %121)
br label %123
123: ; preds = %120, %106, %117, %114, %111, %108
%124 = load i32, i32* %6
ret i32 %124
}

LLVM IR (-O2):
@.str = [62 x i8] c"prezip, a prefix delta compressor. Version 0.2.0, 2005-02-02\0A\00"
@stdout = global i32 0
@.str.1 = [251 x i8] c"%sUsage:\0A %s [options] <filein >fileout\0AOption:\0A -c = Compress (word-list-compress)\0A -z = Compress (prezip-bin)\0A -d = Decompress\0A -h = this Help message\0A -v = %s Version\0AExtra option for use with -z:\0A -l = Autodetect EOL <CR><LF>, Remove <CR>\0A\00"
@.str.2 = [8 x i8] c"ERROR: \00"
@stderr = global i32 0
@.str.3 = [16 x i8] c"Unknown Format\0A\00"
@.str.4 = [15 x i8] c"Corrupt Input\0A\00"
@.str.5 = [16 x i8] c"Unexpected EOF\0A\00"
@.str.6 = [19 x i8] c"Output Data Error\0A\00"
@.str.7 = [25 x i8] c"Memory Allocation Error\0A\00"
@reltable.main = [5 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.3 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.4 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.5 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.6 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.7 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32)]
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %45
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %30
%7 = phi i64 [ 1, %4 ], [ %35, %30 ]
%8 = phi i8 [ 2, %4 ], [ %34, %30 ]
%9 = phi i8 [ 0, %4 ], [ %33, %30 ]
%10 = phi i8 [ 0, %4 ], [ %32, %30 ]
%11 = phi i32 [ 1, %4 ], [ %31, %30 ]
%12 = getelementptr inbounds i8*, i8** %1, i64 %7
%13 = load i8*, i8** %12
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 45
%16 = zext i1 %15 to i64
%17 = getelementptr inbounds i8, i8* %13, i64 %16
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
switch i32 %19, label %45 [
i32 104, label %20
i32 118, label %22
i32 86, label %22
i32 100, label %24
i32 99, label %26
i32 122, label %28
i32 108, label %30
]
20: ; preds = %6
%21 = icmp eq i8 %9, 0
br i1 %21, label %30, label %45
22: ; preds = %6, %6
%23 = icmp eq i8 %9, 0
br i1 %23, label %30, label %45
24: ; preds = %6
%25 = icmp eq i8 %9, 0
br i1 %25, label %30, label %45
26: ; preds = %6
%27 = icmp eq i8 %9, 0
br i1 %27, label %30, label %45
28: ; preds = %6
%29 = icmp eq i8 %9, 0
br i1 %29, label %30, label %45
30: ; preds = %6, %28, %26, %24, %22, %20
%31 = phi i32 [ 0, %20 ], [ %11, %22 ], [ %11, %24 ], [ %11, %26 ], [ %11, %28 ], [ %11, %6 ]
%32 = phi i8 [ %10, %20 ], [ %10, %22 ], [ %10, %24 ], [ %10, %26 ], [ %10, %28 ], [ 1, %6 ]
%33 = phi i8 [ 104, %20 ], [ 118, %22 ], [ 100, %24 ], [ 99, %26 ], [ 99, %28 ], [ %9, %6 ]
%34 = phi i8 [ %8, %20 ], [ %8, %22 ], [ %8, %24 ], [ 1, %26 ], [ 2, %28 ], [ %8, %6 ]
%35 = add nuw nsw i64 %7, 1
%36 = icmp eq i64 %35, %5
br i1 %36, label %37, label %6
37: ; preds = %30
switch i8 %33, label %45 [
i8 99, label %38
i8 100, label %40
i8 118, label %42
i8 104, label %46
]
38: ; preds = %37
%39 = tail call i32 @compress(i8 signext %32, i8 signext %34)
br label %51
40: ; preds = %37
%41 = tail call i32 (...) @decompress()
br label %51
42: ; preds = %37
%43 = load i32, i32* @stdout
%44 = tail call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i32 %43)
br label %51
45: ; preds = %6, %28, %26, %24, %22, %20, %2, %37
br label %46
46: ; preds = %37, %45
%47 = phi i32 [ 1, %45 ], [ %31, %37 ]
%48 = load i32, i32* @stdout
%49 = load i8*, i8** %1
%50 = tail call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([251 x i8], [251 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %49, i8* %49)
br label %51
51: ; preds = %46, %42, %40, %38
%52 = phi i32 [ %47, %46 ], [ 0, %42 ], [ %41, %40 ], [ %39, %38 ]
%53 = xor i32 %52, -1
%54 = lshr i32 %53, 31
%55 = tail call i32 @assert(i32 %54)
%56 = icmp sgt i32 %52, 1
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = load i32, i32* @stderr
%59 = tail call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %58)
br label %60
60: ; preds = %57, %51
%61 = add i32 %52, -2
%62 = icmp ult i32 %61, 5
br i1 %62, label %63, label %69
63: ; preds = %60
%64 = sext i32 %61 to i64
%65 = shl i64 %64, 2
%66 = call i8* @llvm.load.relative.i64(i8* bitcast ([5 x i32]* @reltable.main to i8*), i64 %65)
%67 = load i32, i32* @stderr
%68 = tail call i32 @fputs(i8* %66, i32 %67)
br label %69
69: ; preds = %60, %63
ret i32 %52
}