#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*/ gzFile;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fread(char *, int, long, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
long ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ gzclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *gzopen(char *, char *);
int /*<<< orphan*/ gzwrite(int /*<<< orphan*/ *, char *, long);
scalar_t__ malloc(long);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
long strlen(char *);
int main(int argc, char **argv) {
  gzFile *gzfp;
  FILE *fp;
  char *filename;
  char *data;
  long size;
  if (argc < 2) {
    fprintf(stderr, "Syntax:  %s <filename>\n", argv[0]);
    fprintf(stderr, "This creates %s_s.gz, %s_f.gz and %s_d.gz\n", argv[0],
            argv[0], argv[0]);
    return 1;
  }
  fp = fopen(argv[1], "rb");
  if (!fp) {
    fprintf(stderr, "Problem opening %s\n", argv[1]);
    return 2;
  }
  filename = (char *)malloc(strlen(argv[1]) + 12);
  if (!filename) {
    fprintf(stderr, "Can't allocate memory\n");
    return 3;
  }
  fseek(fp, 0, SEEK_END);
  size = ftell(fp);
  data = (char *)malloc(size);
  if (!data) {
    fprintf(stderr, "Can't allocate memory for file\n");
    return 4;
  }
  fseek(fp, 0, SEEK_SET);
  fread(data, 1, size, fp);
  strcpy(filename, argv[1]);
  strcat(filename, "_s.gz");
  gzfp = gzopen(filename, "wb0");
  gzwrite(gzfp, data, size);
  gzclose(gzfp);
  strcpy(filename, argv[1]);
  strcat(filename, "_f.gz");
  gzfp = gzopen(filename, "wb1f");
  gzwrite(gzfp, data, size);
  gzclose(gzfp);
  strcpy(filename, argv[1]);
  strcat(filename, "_d.gz");
  gzfp = gzopen(filename, "wb9h");
  gzwrite(gzfp, data, size);
  gzclose(gzfp);
  return 0;
}


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)
cmpl   $0x2,-0x8(%rbp)
jge    1236 <main+0x76>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe09(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2dd3(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%r8
lea    0xdf5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1449 <main+0x289>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfe(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1284 <main+0xc4>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdd5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x2,-0x4(%rbp)
jmp    1449 <main+0x289>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <strlen@plt>
mov    %rax,%rdi
add    $0xc,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12cf <main+0x10f>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
lea    0xd9e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x3,-0x4(%rbp)
jmp    1449 <main+0x289>
mov    -0x20(%rbp),%rdi
mov    0x2d0e(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    -0x20(%rbp),%rdi
call   1080 <ftell@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    132b <main+0x16b>
mov    0x2cc9(%rip),%rax
mov    (%rax),%edi
lea    0xd59(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x4,-0x4(%rbp)
jmp    1449 <main+0x289>
mov    -0x20(%rbp),%rdi
mov    0x2c9a(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fread@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    0xd20(%rip),%rsi
call   10e0 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xd16(%rip),%rsi
call   10c0 <gzopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   10b0 <gzwrite@plt>
mov    -0x18(%rbp),%rdi
call   1030 <gzclose@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   10e0 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   10c0 <gzopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   10b0 <gzwrite@plt>
mov    -0x18(%rbp),%rdi
call   1030 <gzclose@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rdi
lea    0xc97(%rip),%rsi
call   10e0 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xc8d(%rip),%rsi
call   10c0 <gzopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   10b0 <gzwrite@plt>
mov    -0x18(%rbp),%rdi
call   1030 <gzclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     1213 <main+0x53>
mov    0x2dfe(%rip),%rbp
mov    0x0(%rbp),%edi
mov    (%rbx),%rdx
lea    0xe19(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    (%rbx),%rcx
lea    0xe1d(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%r13d
jmp    13d2 <main+0x212>
mov    0x8(%rbx),%rdi
lea    0xe25(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1373 <main+0x1b3>
mov    %rax,%rbp
mov    0x8(%rbx),%rdi
call   1060 <strlen@plt>
lea    0xc(%rax),%rdi
call   1090 <malloc@plt>
test   %rax,%rax
je     1396 <main+0x1d6>
mov    %rax,%r14
mov    0x2d94(%rip),%rax
mov    (%rax),%edx
xor    %r13d,%r13d
mov    %rbp,%rdi
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    %rbp,%rdi
call   1080 <ftell@plt>
mov    %rax,%r15
mov    %rax,%rdi
call   1090 <malloc@plt>
test   %rax,%rax
je     13b5 <main+0x1f5>
mov    %rax,%r12
mov    0x2d47(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %r15,%rdx
mov    %rbp,%rcx
call   1050 <fread@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
lea    0xdd6(%rip),%rsi
mov    %r14,%rdi
call   10e0 <strcat@plt>
lea    0xdcd(%rip),%rsi
mov    %r14,%rdi
call   10c0 <gzopen@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   10b0 <gzwrite@plt>
mov    %rbp,%rdi
call   1030 <gzclose@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
lea    0xd9d(%rip),%rsi
mov    %r14,%rdi
call   10e0 <strcat@plt>
lea    0xd94(%rip),%rsi
mov    %r14,%rdi
call   10c0 <gzopen@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   10b0 <gzwrite@plt>
mov    %rbp,%rdi
call   1030 <gzclose@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
lea    0xd65(%rip),%rsi
mov    %r14,%rdi
call   10e0 <strcat@plt>
lea    0xd5c(%rip),%rsi
mov    %r14,%rdi
call   10c0 <gzopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   10b0 <gzwrite@plt>
mov    %rbx,%rdi
call   1030 <gzclose@plt>
jmp    13d2 <main+0x212>
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xcbf(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x2,%r13d
jmp    13d2 <main+0x212>
mov    0x2c3b(%rip),%rax
mov    (%rax),%edi
lea    0xcb4(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x3,%r13d
jmp    13d2 <main+0x212>
mov    0x2c1c(%rip),%rax
mov    (%rax),%edi
lea    0xcac(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x4,%r13d
mov    %r13d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Syntax: %s <filename>\0A\00"
@.str.1 = [43 x i8] c"This creates %s_s.gz, %s_f.gz and %s_d.gz\0A\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [20 x i8] c"Problem opening %s\0A\00"
@.str.4 = [23 x i8] c"Can't allocate memory\0A\00"
@SEEK_END = global i32 0
@.str.5 = [32 x i8] c"Can't allocate memory for file\0A\00"
@SEEK_SET = global i32 0
@.str.6 = [6 x i8] c"_s.gz\00"
@.str.7 = [4 x i8] c"wb0\00"
@.str.8 = [6 x i8] c"_f.gz\00"
@.str.9 = [5 x i8] c"wb1f\00"
@.str.10 = [6 x i8] c"_d.gz\00"
@.str.11 = [5 x i8] c"wb9h\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 i8*
%9 = alloca i8*
%10 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %30
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i8* %22, i8* %25, i8* %28)
store i32 1, i32* %3
br label %123
30: ; preds = %2
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %34, i32** %7
%35 = load i32*, i32** %7
%36 = icmp ne i32* %35, null
br i1 %36, label %43, label %37
37: ; preds = %30
%38 = load i32, i32* @stderr
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %41)
store i32 2, i32* %3
br label %123
43: ; preds = %30
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 1
%46 = load i8*, i8** %45
%47 = call i64 @strlen(i8* %46)
%48 = add nsw i64 %47, 12
%49 = call i64 @malloc(i64 %48)
%50 = inttoptr i64 %49 to i8*
store i8* %50, i8** %8
%51 = load i8*, i8** %8
%52 = icmp ne i8* %51, null
br i1 %52, label %56, label %53
53: ; preds = %43
%54 = load i32, i32* @stderr
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 3, i32* %3
br label %123
56: ; preds = %43
%57 = load i32*, i32** %7
%58 = load i32, i32* @SEEK_END
%59 = call i32 @fseek(i32* %57, i32 0, i32 %58)
%60 = load i32*, i32** %7
%61 = call i64 @ftell(i32* %60)
store i64 %61, i64* %10
%62 = load i64, i64* %10
%63 = call i64 @malloc(i64 %62)
%64 = inttoptr i64 %63 to i8*
store i8* %64, i8** %9
%65 = load i8*, i8** %9
%66 = icmp ne i8* %65, null
br i1 %66, label %70, label %67
67: ; preds = %56
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
store i32 4, i32* %3
br label %123
70: ; preds = %56
%71 = load i32*, i32** %7
%72 = load i32, i32* @SEEK_SET
%73 = call i32 @fseek(i32* %71, i32 0, i32 %72)
%74 = load i8*, i8** %9
%75 = load i64, i64* %10
%76 = load i32*, i32** %7
%77 = call i32 @fread(i8* %74, i32 1, i64 %75, i32* %76)
%78 = load i8*, i8** %8
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 1
%81 = load i8*, i8** %80
%82 = call i32 @strcpy(i8* %78, i8* %81)
%83 = load i8*, i8** %8
%84 = call i32 @strcat(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%85 = load i8*, i8** %8
%86 = call i32* @gzopen(i8* %85, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
store i32* %86, i32** %6
%87 = load i32*, i32** %6
%88 = load i8*, i8** %9
%89 = load i64, i64* %10
%90 = call i32 @gzwrite(i32* %87, i8* %88, i64 %89)
%91 = load i32*, i32** %6
%92 = call i32 @gzclose(i32* %91)
%93 = load i8*, i8** %8
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 1
%96 = load i8*, i8** %95
%97 = call i32 @strcpy(i8* %93, i8* %96)
%98 = load i8*, i8** %8
%99 = call i32 @strcat(i8* %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%100 = load i8*, i8** %8
%101 = call i32* @gzopen(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
store i32* %101, i32** %6
%102 = load i32*, i32** %6
%103 = load i8*, i8** %9
%104 = load i64, i64* %10
%105 = call i32 @gzwrite(i32* %102, i8* %103, i64 %104)
%106 = load i32*, i32** %6
%107 = call i32 @gzclose(i32* %106)
%108 = load i8*, i8** %8
%109 = load i8**, i8*** %5
%110 = getelementptr inbounds i8*, i8** %109, i64 1
%111 = load i8*, i8** %110
%112 = call i32 @strcpy(i8* %108, i8* %111)
%113 = load i8*, i8** %8
%114 = call i32 @strcat(i8* %113, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%115 = load i8*, i8** %8
%116 = call i32* @gzopen(i8* %115, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
store i32* %116, i32** %6
%117 = load i32*, i32** %6
%118 = load i8*, i8** %9
%119 = load i64, i64* %10
%120 = call i32 @gzwrite(i32* %117, i8* %118, i64 %119)
%121 = load i32*, i32** %6
%122 = call i32 @gzclose(i32* %121)
store i32 0, i32* %3
br label %123
123: ; preds = %70, %67, %53, %37, %13
%124 = load i32, i32* %3
ret i32 %124
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Syntax: %s <filename>\0A\00"
@.str.1 = [43 x i8] c"This creates %s_s.gz, %s_f.gz and %s_d.gz\0A\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [20 x i8] c"Problem opening %s\0A\00"
@.str.4 = [23 x i8] c"Can't allocate memory\0A\00"
@SEEK_END = global i32 0
@.str.5 = [32 x i8] c"Can't allocate memory for file\0A\00"
@SEEK_SET = global i32 0
@.str.6 = [6 x i8] c"_s.gz\00"
@.str.7 = [4 x i8] c"wb0\00"
@.str.8 = [6 x i8] c"_f.gz\00"
@.str.9 = [5 x i8] c"wb1f\00"
@.str.10 = [6 x i8] c"_d.gz\00"
@.str.11 = [5 x i8] c"wb9h\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %11
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %1
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* %9, i8* %9)
br label %62
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %12
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %18)
br label %62
20: ; preds = %11
%21 = load i8*, i8** %12
%22 = tail call i64 @strlen(i8* dereferenceable(1) %21)
%23 = add nsw i64 %22, 12
%24 = tail call i64 @malloc(i64 %23)
%25 = inttoptr i64 %24 to i8*
%26 = icmp eq i64 %24, 0
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %62
30: ; preds = %20
%31 = load i32, i32* @SEEK_END
%32 = tail call i32 @fseek(i32* %14, i32 0, i32 %31)
%33 = tail call i64 @ftell(i32* %14)
%34 = tail call i64 @malloc(i64 %33)
%35 = inttoptr i64 %34 to i8*
%36 = icmp eq i64 %34, 0
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i32, i32* @stderr
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
br label %62
40: ; preds = %30
%41 = load i32, i32* @SEEK_SET
%42 = tail call i32 @fseek(i32* %14, i32 0, i32 %41)
%43 = tail call i32 @fread(i8* %35, i32 1, i64 %33, i32* %14)
%44 = load i8*, i8** %12
%45 = tail call i32 @strcpy(i8* %25, i8* %44)
%46 = tail call i32 @strcat(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%47 = tail call i32* @gzopen(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%48 = tail call i32 @gzwrite(i32* %47, i8* %35, i64 %33)
%49 = tail call i32 @gzclose(i32* %47)
%50 = load i8*, i8** %12
%51 = tail call i32 @strcpy(i8* %25, i8* %50)
%52 = tail call i32 @strcat(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%53 = tail call i32* @gzopen(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%54 = tail call i32 @gzwrite(i32* %53, i8* %35, i64 %33)
%55 = tail call i32 @gzclose(i32* %53)
%56 = load i8*, i8** %12
%57 = tail call i32 @strcpy(i8* %25, i8* %56)
%58 = tail call i32 @strcat(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%59 = tail call i32* @gzopen(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%60 = tail call i32 @gzwrite(i32* %59, i8* %35, i64 %33)
%61 = tail call i32 @gzclose(i32* %59)
br label %62
62: ; preds = %40, %37, %27, %16, %4
%63 = phi i32 [ 1, %4 ], [ 0, %40 ], [ 4, %37 ], [ 3, %27 ], [ 2, %16 ]
ret i32 %63
}