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

/* Variables and functions */
char EOF;
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
char *calloc(long, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ dup2(int, int /*<<< orphan*/);
int /*<<< orphan*/ execlp(char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fork();
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
long ftell(int /*<<< orphan*/ *);
char getc(int /*<<< orphan*/ *);
int pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read(int, char *, long);
int /*<<< orphan*/ write(int, char *, long);
int main(int argc, char **argv) {
  if (argc != 2) {
    printf("Error! I must get one argument!\n");
    exit(-1);
  }
  FILE *f;
  f = fopen(argv[1], "r");
  if (f == NULL) {
    printf("Error! Could not open file!\n");
    exit(-2);
  }
  int pfd[2], pfd2[2];
  if (pipe(pfd) == -1) {
    printf("Error! Could not open pipe!\n");
    exit(-3);
  };
  if (pipe(pfd2) == -1) {
    printf("Error! Could not open pipe!\n");
    exit(-3);
  };
  if (fork() == 0) {
    close(pfd[1]);
    close(pfd2[0]);
    dup2(pfd[0], STDIN_FILENO);
    dup2(pfd2[1], STDOUT_FILENO);
    execlp("sort", "sort", NULL);
    printf("Error calling exec!\n");
    exit(-10);
  }
  close(pfd[0]);
  close(pfd2[1]);
  fseek(f, 0, SEEK_END);
  long fsize = ftell(f);
  char *buf = calloc(fsize + 1, 1);
  fseek(f, 0, SEEK_SET);
  char c;
  int i = 0;
  while ((c = getc(f)) != EOF) {
    buf[i++] = c;
  }
  write(pfd[1], buf, fsize);
  close(pfd[1]);
  fclose(f);
  read(pfd2[0], buf, fsize + 1);
  printf("%s", buf);
  free(buf);
}


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)
je     1238 <main+0x38>
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdda(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1273 <main+0x73>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xfffffffe,%edi
call   10f0 <exit@plt>
lea    -0x20(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0xffffffff,%eax
jne    129d <main+0x9d>
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xfffffffd,%edi
call   10f0 <exit@plt>
lea    -0x28(%rbp),%rdi
call   1090 <pipe@plt>
cmp    $0xffffffff,%eax
jne    12c7 <main+0xc7>
lea    0xd8a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xfffffffd,%edi
call   10f0 <exit@plt>
mov    $0x0,%al
call   1120 <fork@plt>
cmp    $0x0,%rax
jne    1335 <main+0x135>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
mov    -0x28(%rbp),%edi
call   1080 <close@plt>
mov    -0x20(%rbp),%edi
mov    0x2cce(%rip),%rax
mov    (%rax),%esi
call   1060 <dup2@plt>
mov    -0x24(%rbp),%edi
mov    0x2ced(%rip),%rax
mov    (%rax),%esi
call   1060 <dup2@plt>
lea    0xd4c(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    %rsi,%rdi
call   1100 <execlp@plt>
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xfffffff6,%edi
call   10f0 <exit@plt>
mov    -0x20(%rbp),%edi
call   1080 <close@plt>
mov    -0x24(%rbp),%edi
call   1080 <close@plt>
mov    -0x18(%rbp),%rdi
mov    0x2c90(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x18(%rbp),%rdi
call   10c0 <ftell@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2c41(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1110 <getc@plt>
mov    %al,-0x39(%rbp)
movsbl %al,%eax
mov    0x2c2b(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     13d5 <main+0x1d5>
mov    -0x39(%rbp),%dl
mov    -0x38(%rbp),%rax
mov    -0x40(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x40(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1397 <main+0x197>
mov    -0x1c(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1040 <write@plt>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rdx
add    $0x1,%rdx
call   10a0 <read@plt>
mov    -0x38(%rbp),%rsi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
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
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    1372 <main+0x162>
mov    0x8(%rsi),%rdi
lea    0xdce(%rip),%rsi
call   10f0 <fopen@plt>
test   %rax,%rax
je     1388 <main+0x178>
mov    %rax,%r13
lea    0x8(%rsp),%rdi
call   10a0 <pipe@plt>
cmp    $0xffffffff,%eax
je     135c <main+0x14c>
lea    0x10(%rsp),%rdi
call   10a0 <pipe@plt>
cmp    $0xffffffff,%eax
je     135c <main+0x14c>
xor    %eax,%eax
call   1130 <fork@plt>
test   %rax,%rax
je     139e <main+0x18e>
mov    0x8(%rsp),%edi
call   1090 <close@plt>
mov    0x14(%rsp),%edi
call   1090 <close@plt>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10e0 <fseek@plt>
mov    %r13,%rdi
call   10d0 <ftell@plt>
mov    %rax,%r12
mov    %rax,%r15
add    $0x1,%r15
mov    %r15,%rdi
mov    $0x1,%esi
call   10c0 <calloc@plt>
mov    %rax,%r14
mov    0x2d01(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10e0 <fseek@plt>
mov    %r13,%rdi
call   1120 <getc@plt>
mov    0x2cf6(%rip),%rbx
cmp    (%rbx),%al
je     1303 <main+0xf3>
mov    %r14,%rbp
nopl   0x0(%rax)
mov    %al,0x0(%rbp)
mov    %r13,%rdi
call   1120 <getc@plt>
add    $0x1,%rbp
cmp    (%rbx),%al
jne    12f0 <main+0xe0>
mov    0xc(%rsp),%edi
mov    %r14,%rsi
mov    %r12,%rdx
call   1050 <write@plt>
mov    0xc(%rsp),%edi
call   1090 <close@plt>
mov    %r13,%rdi
call   1060 <fclose@plt>
mov    0x10(%rsp),%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   10b0 <read@plt>
lea    0xcce(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcbb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffd,%edi
call   1100 <exit@plt>
lea    0xcdd(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1100 <exit@plt>
lea    0xcab(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffffe,%edi
call   1100 <exit@plt>
mov    0xc(%rsp),%edi
call   1090 <close@plt>
mov    0x10(%rsp),%edi
call   1090 <close@plt>
mov    0x8(%rsp),%edi
mov    0x2c05(%rip),%rax
mov    (%rax),%esi
call   1070 <dup2@plt>
mov    0x14(%rsp),%edi
mov    0x2c23(%rip),%rax
mov    (%rax),%esi
call   1070 <dup2@plt>
lea    0xc27(%rip),%rdi
mov    %rdi,%rsi
xor    %edx,%edx
call   1110 <execlp@plt>
lea    0xc1e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xfffffff6,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"Error! I must get one argument!\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [29 x i8] c"Error! Could not open file!\0A\00"
@.str.3 = [29 x i8] c"Error! Could not open pipe!\0A\00"
@STDIN_FILENO = global i32 0
@STDOUT_FILENO = global i32 0
@.str.4 = [5 x i8] c"sort\00"
@.str.5 = [21 x i8] c"Error calling exec!\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@EOF = global i8 0
@.str.6 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [2 x i32]
%8 = alloca [2 x i32]
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i8
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 -1)
unreachable
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %22, i32** %6
%23 = load i32*, i32** %6
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %28
25: ; preds = %18
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%27 = call i32 @exit(i32 -2)
unreachable
28: ; preds = %18
%29 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%30 = call i32 @pipe(i32* %29)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 @exit(i32 -3)
unreachable
35: ; preds = %28
%36 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%37 = call i32 @pipe(i32* %36)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 @exit(i32 -3)
unreachable
42: ; preds = %35
%43 = call i64 (...) @fork()
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %63
45: ; preds = %42
%46 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%47 = load i32, i32* %46
%48 = call i32 @close(i32 %47)
%49 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%50 = load i32, i32* %49
%51 = call i32 @close(i32 %50)
%52 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%53 = load i32, i32* %52
%54 = load i32, i32* @STDIN_FILENO
%55 = call i32 @dup2(i32 %53, i32 %54)
%56 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%57 = load i32, i32* %56
%58 = load i32, i32* @STDOUT_FILENO
%59 = call i32 @dup2(i32 %57, i32 %58)
%60 = call i32 @execlp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32* null)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%62 = call i32 @exit(i32 -10)
unreachable
63: ; preds = %42
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%65 = load i32, i32* %64
%66 = call i32 @close(i32 %65)
%67 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%68 = load i32, i32* %67
%69 = call i32 @close(i32 %68)
%70 = load i32*, i32** %6
%71 = load i32, i32* @SEEK_END
%72 = call i32 @fseek(i32* %70, i32 0, i32 %71)
%73 = load i32*, i32** %6
%74 = call i64 @ftell(i32* %73)
store i64 %74, i64* %9
%75 = load i64, i64* %9
%76 = add nsw i64 %75, 1
%77 = call i8* @calloc(i64 %76, i32 1)
store i8* %77, i8** %10
%78 = load i32*, i32** %6
%79 = load i32, i32* @SEEK_SET
%80 = call i32 @fseek(i32* %78, i32 0, i32 %79)
store i32 0, i32* %12
br label %81
81: ; preds = %88, %63
%82 = load i32*, i32** %6
%83 = call signext i8 @getc(i32* %82)
store i8 %83, i8* %11
%84 = sext i8 %83 to i32
%85 = load i8, i8* @EOF
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %84, %86
br i1 %87, label %88, label %95
88: ; preds = %81
%89 = load i8, i8* %11
%90 = load i8*, i8** %10
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
store i32 %92, i32* %12
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds i8, i8* %90, i64 %93
store i8 %89, i8* %94
br label %81
95: ; preds = %81
%96 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%97 = load i32, i32* %96
%98 = load i8*, i8** %10
%99 = load i64, i64* %9
%100 = call i32 @write(i32 %97, i8* %98, i64 %99)
%101 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%102 = load i32, i32* %101
%103 = call i32 @close(i32 %102)
%104 = load i32*, i32** %6
%105 = call i32 @fclose(i32* %104)
%106 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%107 = load i32, i32* %106
%108 = load i8*, i8** %10
%109 = load i64, i64* %9
%110 = add nsw i64 %109, 1
%111 = call i32 @read(i32 %107, i8* %108, i64 %110)
%112 = load i8*, i8** %10
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %112)
%114 = load i8*, i8** %10
%115 = call i32 @free(i8* %114)
%116 = load i32, i32* %3
ret i32 %116
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@STDIN_FILENO = global i32 0
@STDOUT_FILENO = global i32 0
@.str.4 = [5 x i8] c"sort\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@EOF = global i8 0
@.str.6 = [3 x i8] c"%s\00"
@str = [20 x i8] c"Error calling exec!\00"
@str.8 = [28 x i8] c"Error! Could not open pipe!\00"
@str.9 = [28 x i8] c"Error! Could not open file!\00"
@str.10 = [32 x i8] c"Error! I must get one argument!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x i32]
%4 = alloca [2 x i32]
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
%8 = tail call i32 @exit(i32 -1)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.9, i64 0, i64 0))
%16 = tail call i32 @exit(i32 -2)
unreachable
17: ; preds = %9
%18 = bitcast [2 x i32]* %3 to i8*
%19 = bitcast [2 x i32]* %4 to i8*
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%21 = call i32 @pipe(i32* %20)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.8, i64 0, i64 0))
%25 = call i32 @exit(i32 -3)
unreachable
26: ; preds = %17
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%28 = call i32 @pipe(i32* %27)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.8, i64 0, i64 0))
%32 = call i32 @exit(i32 -3)
unreachable
33: ; preds = %26
%34 = call i64 (...) @fork()
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %52
36: ; preds = %33
%37 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%38 = load i32, i32* %37
%39 = call i32 @close(i32 %38)
%40 = load i32, i32* %27
%41 = call i32 @close(i32 %40)
%42 = load i32, i32* %20
%43 = load i32, i32* @STDIN_FILENO
%44 = call i32 @dup2(i32 %42, i32 %43)
%45 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%46 = load i32, i32* %45
%47 = load i32, i32* @STDOUT_FILENO
%48 = call i32 @dup2(i32 %46, i32 %47)
%49 = call i32 @execlp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32* null)
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%51 = call i32 @exit(i32 -10)
unreachable
52: ; preds = %33
%53 = load i32, i32* %20
%54 = call i32 @close(i32 %53)
%55 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%56 = load i32, i32* %55
%57 = call i32 @close(i32 %56)
%58 = load i32, i32* @SEEK_END
%59 = call i32 @fseek(i32* %12, i32 0, i32 %58)
%60 = call i64 @ftell(i32* %12)
%61 = add nsw i64 %60, 1
%62 = call i8* @calloc(i64 %61, i32 1)
%63 = load i32, i32* @SEEK_SET
%64 = call i32 @fseek(i32* %12, i32 0, i32 %63)
%65 = call signext i8 @getc(i32* %12)
%66 = load i8, i8* @EOF
%67 = icmp eq i8 %65, %66
br i1 %67, label %76, label %68
68: ; preds = %52, %68
%69 = phi i64 [ %71, %68 ], [ 0, %52 ]
%70 = phi i8 [ %73, %68 ], [ %65, %52 ]
%71 = add nuw i64 %69, 1
%72 = getelementptr inbounds i8, i8* %62, i64 %69
store i8 %70, i8* %72
%73 = call signext i8 @getc(i32* %12)
%74 = load i8, i8* @EOF
%75 = icmp eq i8 %73, %74
br i1 %75, label %76, label %68
76: ; preds = %68, %52
%77 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%78 = load i32, i32* %77
%79 = call i32 @write(i32 %78, i8* %62, i64 %60)
%80 = load i32, i32* %77
%81 = call i32 @close(i32 %80)
%82 = call i32 @fclose(i32* %12)
%83 = load i32, i32* %27
%84 = call i32 @read(i32 %83, i8* %62, i64 %61)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %62)
%86 = call i32 @free(i8* %62)
ret i32 0
}