#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 */
struct stat {
  int st_size;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/);
scalar_t__ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strerror(int);
int main(int argc, char *argv[]) {
  FILE *fp;
  struct stat bufstat;
  int c, cur_pos;
  char *input_file;
  if (argc < 2) {
    fprintf(stderr, "Uso: %s <input_file>\n", argv[0]);
    exit(-1);
  }
  input_file = argv[1];
  if ((fp = fopen(input_file, "r")) == NULL) {
    fprintf(stderr, "Err(%d) %s: %s", errno, strerror(errno), input_file);
    exit(EXIT_FAILURE);
  }
  if (fseek(fp, 0L, SEEK_END) < 0) {
    fprintf(stderr, "Err(%d) %s: fseek() SEEK_END", errno, strerror(errno));
    exit(EXIT_FAILURE);
  }
  cur_pos = ftell(fp);
  if (stat(input_file, &bufstat) < 0) {
    fprintf(stderr, "Err(%d) %s: %s", errno, strerror(errno), input_file);
    exit(EXIT_FAILURE);
  }
  if (bufstat.st_size == cur_pos) {
    printf("%d bytes\n", (int)bufstat.st_size);
  }
  while ((c = fgetc(fp)) != EOF) {
    fputc(c, stdout);
  }
  if (fseek(fp, 0L, SEEK_SET) < 0) {
    fprintf(stderr, "Err(%d) %s: fseek() SEEK_SET", errno, strerror(errno));
    exit(EXIT_FAILURE);
  }
  while ((c = fgetc(fp)) != EOF)
    fputc(c, stdout);
  fclose(fp);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11f8 <main+0x48>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1271 <main+0xc1>
mov    0x2da7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2d93(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2d87(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%edx
mov    %rax,%rcx
mov    -0x30(%rbp),%r8
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    0x2d6c(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10a0 <fseek@plt>
cmp    $0x0,%rax
jge    12dc <main+0x12c>
mov    0x2d38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2d24(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d18(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%edx
mov    %rax,%rcx
lea    0xd60(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%rdi
call   1080 <ftell@plt>
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <stat@plt>
cmp    $0x0,%rax
jge    134e <main+0x19e>
mov    0x2cca(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2cb6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x48(%rbp),%edi
mov    -0x44(%rbp),%edx
mov    %rax,%rcx
mov    -0x30(%rbp),%r8
lea    0xcdf(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c71(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    1369 <main+0x1b9>
mov    -0x20(%rbp),%esi
lea    0xce0(%rip),%rdi
call   1040 <printf@plt>
jmp    136e <main+0x1be>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x24(%rbp)
mov    0x2c5f(%rip),%rcx
cmp    (%rcx),%eax
je     139f <main+0x1ef>
mov    -0x24(%rbp),%edi
mov    0x2c1d(%rip),%rax
mov    (%rax),%esi
call   1060 <fputc@plt>
jmp    136e <main+0x1be>
mov    -0x18(%rbp),%rdi
mov    0x2c16(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10a0 <fseek@plt>
cmp    $0x0,%rax
jge    140a <main+0x25a>
mov    0x2c0a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2bf6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2bea(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x50(%rbp),%edi
mov    -0x4c(%rbp),%edx
mov    %rax,%rcx
lea    0xc59(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2bb5(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
jmp    140f <main+0x25f>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x24(%rbp)
mov    0x2bbe(%rip),%rcx
cmp    (%rcx),%eax
je     1440 <main+0x290>
mov    -0x24(%rbp),%edi
mov    0x2b7c(%rip),%rax
mov    (%rax),%esi
call   1060 <fputc@plt>
jmp    140f <main+0x25f>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    0x2b58(%rip),%rax
mov    (%rax),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    1306 <main+0x156>
mov    0x8(%rsi),%r14
lea    0xe4b(%rip),%rsi
mov    %r14,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     12d3 <main+0x123>
mov    %rax,%rbx
mov    0x2e02(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10a0 <fseek@plt>
test   %rax,%rax
js     132a <main+0x17a>
mov    %rbx,%rdi
call   1080 <ftell@plt>
mov    %eax,%ebp
mov    %rsp,%rsi
mov    %r14,%rdi
call   1090 <stat@plt>
test   %rax,%rax
js     12d3 <main+0x123>
cmp    %ebp,(%rsp)
jne    122c <main+0x7c>
lea    0xe1f(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <fgetc@plt>
mov    0x2da5(%rip),%r15
cmp    (%r15),%eax
je     1267 <main+0xb7>
mov    0x2d69(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    0x0(%rbp),%esi
mov    %eax,%edi
call   1060 <fputc@plt>
mov    %rbx,%rdi
call   1050 <fgetc@plt>
cmp    (%r15),%eax
jne    1250 <main+0xa0>
mov    0x2d52(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10a0 <fseek@plt>
test   %rax,%rax
js     134c <main+0x19c>
mov    %rbx,%rdi
call   1050 <fgetc@plt>
cmp    (%r15),%eax
je     12b7 <main+0x107>
mov    0x2d19(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    (%r14),%esi
mov    %eax,%edi
call   1060 <fputc@plt>
mov    %rbx,%rdi
call   1050 <fgetc@plt>
cmp    (%r15),%eax
jne    12a0 <main+0xf0>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cf6(%rip),%rax
mov    (%rax),%ebx
mov    0x2ce5(%rip),%rax
mov    (%rax),%ebp
mov    %ebp,%edi
call   10d0 <strerror@plt>
lea    0xd25(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %rax,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    137a <main+0x1ca>
mov    0x2cc3(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xce7(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    0x2c9f(%rip),%rax
mov    (%rax),%ebx
mov    0x2c8e(%rip),%rax
mov    (%rax),%ebp
mov    %ebp,%edi
call   10d0 <strerror@plt>
lea    0xcdd(%rip),%rsi
jmp    136c <main+0x1bc>
mov    0x2c7d(%rip),%rax
mov    (%rax),%ebx
mov    0x2c6c(%rip),%rax
mov    (%rax),%ebp
mov    %ebp,%edi
call   10d0 <strerror@plt>
lea    0xce2(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c37(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i32 }
@stderr = global i32 0
@.str = [22 x i8] c"Uso: %s <input_file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [15 x i8] c"Err(%d) %s: %s\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@SEEK_END = global i32 0
@.str.3 = [29 x i8] c"Err(%d) %s: fseek() SEEK_END\00"
@.str.4 = [10 x i8] c"%d bytes\0A\00"
@EOF = global i32 0
@stdout = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [29 x i8] c"Err(%d) %s: fseek() SEEK_SET\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca %struct.stat
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
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 %20
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 ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = call i32 @exit(i32 -1)
unreachable
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
store i8* %23, i8** %10
%24 = load i8*, i8** %10
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %6
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %36
27: ; preds = %20
%28 = load i32, i32* @stderr
%29 = load i32, i32* @errno
%30 = load i32, i32* @errno
%31 = call i8* @strerror(i32 %30)
%32 = load i8*, i8** %10
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %29, i8* %31, i8* %32)
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %20
%37 = load i32*, i32** %6
%38 = load i32, i32* @SEEK_END
%39 = call i64 @fseek(i32* %37, i64 0, i32 %38)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %49
41: ; preds = %36
%42 = load i32, i32* @stderr
%43 = load i32, i32* @errno
%44 = load i32, i32* @errno
%45 = call i8* @strerror(i32 %44)
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %43, i8* %45)
%47 = load i32, i32* @EXIT_FAILURE
%48 = call i32 @exit(i32 %47)
unreachable
49: ; preds = %36
%50 = load i32*, i32** %6
%51 = call i32 @ftell(i32* %50)
store i32 %51, i32* %9
%52 = load i8*, i8** %10
%53 = call i64 @stat(i8* %52, %struct.stat* %7)
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %64
55: ; preds = %49
%56 = load i32, i32* @stderr
%57 = load i32, i32* @errno
%58 = load i32, i32* @errno
%59 = call i8* @strerror(i32 %58)
%60 = load i8*, i8** %10
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %57, i8* %59, i8* %60)
%62 = load i32, i32* @EXIT_FAILURE
%63 = call i32 @exit(i32 %62)
unreachable
64: ; preds = %49
%65 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%66 = load i32, i32* %65
%67 = load i32, i32* %9
%68 = icmp eq i32 %66, %67
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%71 = load i32, i32* %70
%72 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %69, %64
br label %74
74: ; preds = %79, %73
%75 = load i32*, i32** %6
%76 = call i32 @fgetc(i32* %75)
store i32 %76, i32* %8
%77 = load i32, i32* @EOF
%78 = icmp ne i32 %76, %77
br i1 %78, label %79, label %83
79: ; preds = %74
%80 = load i32, i32* %8
%81 = load i32, i32* @stdout
%82 = call i32 @fputc(i32 %80, i32 %81)
br label %74
83: ; preds = %74
%84 = load i32*, i32** %6
%85 = load i32, i32* @SEEK_SET
%86 = call i64 @fseek(i32* %84, i64 0, i32 %85)
%87 = icmp slt i64 %86, 0
br i1 %87, label %88, label %96
88: ; preds = %83
%89 = load i32, i32* @stderr
%90 = load i32, i32* @errno
%91 = load i32, i32* @errno
%92 = call i8* @strerror(i32 %91)
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %90, i8* %92)
%94 = load i32, i32* @EXIT_FAILURE
%95 = call i32 @exit(i32 %94)
unreachable
96: ; preds = %83
br label %97
97: ; preds = %102, %96
%98 = load i32*, i32** %6
%99 = call i32 @fgetc(i32* %98)
store i32 %99, i32* %8
%100 = load i32, i32* @EOF
%101 = icmp ne i32 %99, %100
br i1 %101, label %102, label %106
102: ; preds = %97
%103 = load i32, i32* %8
%104 = load i32, i32* @stdout
%105 = call i32 @fputc(i32 %103, i32 %104)
br label %97
106: ; preds = %97
%107 = load i32*, i32** %6
%108 = call i32 @fclose(i32* %107)
%109 = load i32, i32* @EXIT_SUCCESS
ret i32 %109
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@stderr = global i32 0
@.str = [22 x i8] c"Uso: %s <input_file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [15 x i8] c"Err(%d) %s: %s\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@SEEK_END = global i32 0
@.str.3 = [29 x i8] c"Err(%d) %s: fseek() SEEK_END\00"
@.str.4 = [10 x i8] c"%d bytes\0A\00"
@EOF = global i32 0
@stdout = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [29 x i8] c"Err(%d) %s: fseek() SEEK_SET\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %11
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 ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = tail call i32 @exit(i32 -1)
unreachable
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 ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %23
16: ; preds = %11
%17 = load i32, i32* @stderr
%18 = load i32, i32* @errno
%19 = tail call i8* @strerror(i32 %18)
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %18, i8* %19, i8* %13)
%21 = load i32, i32* @EXIT_FAILURE
%22 = tail call i32 @exit(i32 %21)
unreachable
23: ; preds = %11
%24 = load i32, i32* @SEEK_END
%25 = tail call i64 @fseek(i32* %14, i64 0, i32 %24)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %34
27: ; preds = %23
%28 = load i32, i32* @stderr
%29 = load i32, i32* @errno
%30 = tail call i8* @strerror(i32 %29)
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %29, i8* %30)
%32 = load i32, i32* @EXIT_FAILURE
%33 = tail call i32 @exit(i32 %32)
unreachable
34: ; preds = %23
%35 = tail call i32 @ftell(i32* %14)
%36 = call i64 @stat(i8* %13, %struct.stat* %3)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = load i32, i32* @stderr
%40 = load i32, i32* @errno
%41 = call i8* @strerror(i32 %40)
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %40, i8* %41, i8* %13)
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %34
%46 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%47 = load i32, i32* %46
%48 = icmp eq i32 %47, %35
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %35)
br label %51
51: ; preds = %49, %45
%52 = call i32 @fgetc(i32* %14)
%53 = load i32, i32* @EOF
%54 = icmp eq i32 %52, %53
br i1 %54, label %62, label %55
55: ; preds = %51, %55
%56 = phi i32 [ %59, %55 ], [ %52, %51 ]
%57 = load i32, i32* @stdout
%58 = call i32 @fputc(i32 %56, i32 %57)
%59 = call i32 @fgetc(i32* %14)
%60 = load i32, i32* @EOF
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %55
62: ; preds = %55, %51
%63 = load i32, i32* @SEEK_SET
%64 = call i64 @fseek(i32* %14, i64 0, i32 %63)
%65 = icmp slt i64 %64, 0
br i1 %65, label %70, label %66
66: ; preds = %62
%67 = call i32 @fgetc(i32* %14)
%68 = load i32, i32* @EOF
%69 = icmp eq i32 %67, %68
br i1 %69, label %84, label %77
70: ; preds = %62
%71 = load i32, i32* @stderr
%72 = load i32, i32* @errno
%73 = call i8* @strerror(i32 %72)
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %72, i8* %73)
%75 = load i32, i32* @EXIT_FAILURE
%76 = call i32 @exit(i32 %75)
unreachable
77: ; preds = %66, %77
%78 = phi i32 [ %81, %77 ], [ %67, %66 ]
%79 = load i32, i32* @stdout
%80 = call i32 @fputc(i32 %78, i32 %79)
%81 = call i32 @fgetc(i32* %14)
%82 = load i32, i32* @EOF
%83 = icmp eq i32 %81, %82
br i1 %83, label %84, label %77
84: ; preds = %77, %66
%85 = call i32 @fclose(i32* %14)
%86 = load i32, i32* @EXIT_SUCCESS
ret i32 %86
}