#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 {
  scalar_t__ st_ino;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ O_RDONLY;
int close(int);
int creat(char *, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ oops(char *, char *);
int open(char *, int /*<<< orphan*/);
int read(int, char *, int);
int stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int write(int, char *, int);
int main(int argc, char *argv[]) {
  if (argc != 3) {
    fprintf(stderr, "Usage: %s source destination\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  struct stat src_stat;
  struct stat dst_stat;
  if (stat(argv[1], &src_stat) == -1)
    oops("Can not stat", argv[1]);
  if (stat(argv[2], &dst_stat) == -1)
    oops("Can not stat", argv[2]);
  if (src_stat.st_ino == dst_stat.st_ino) {
    fprintf(stderr, "%s: \"%s\" and \"%s\" are the same file\n", argv[0],
            argv[1], argv[2]);
    exit(EXIT_FAILURE);
  }
  int src_fd = open(argv[1], O_RDONLY);
  if (src_fd == -1) {
    oops("Can not open", argv[1]);
  }
  int dst_fd = creat(argv[2], 0644);
  if (dst_fd == -1) {
    oops("Can not create", argv[2]);
  }
  char buf[4096];
  int buf_size;
  while ((buf_size = read(src_fd, buf, 4096)) > 0)
    if (write(dst_fd, buf, buf_size) != buf_size)
      oops("Failed to create", argv[2]);
  if (buf_size == -1)
    oops("Failed to read", argv[1]);
  if (close(src_fd) == -1 || close(dst_fd) == -1)
    oops("Faile to close files.", "");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1040,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11df <main+0x4f>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe36(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1080 <stat@plt>
cmp    $0xffffffff,%eax
jne    120d <main+0x7d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe16(%rip),%rdi
call   1040 <oops@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x20(%rbp),%rsi
call   1080 <stat@plt>
cmp    $0xffffffff,%eax
jne    123b <main+0xab>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xde8(%rip),%rdi
call   1040 <oops@plt>
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jne    1285 <main+0xf5>
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%r8
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2d54(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    12bc <main+0x12c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd99(%rip),%rdi
call   1040 <oops@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    $0x1a4,%esi
call   10a0 <creat@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0xffffffff,-0x28(%rbp)
jne    12ef <main+0x15f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xd73(%rip),%rdi
call   1040 <oops@plt>
jmp    12f4 <main+0x164>
mov    -0x24(%rbp),%edi
lea    -0x1030(%rbp),%rsi
mov    $0x1000,%edx
call   1060 <read@plt>
mov    %eax,-0x1034(%rbp)
cmp    $0x0,%eax
jle    1351 <main+0x1c1>
mov    -0x28(%rbp),%edi
lea    -0x1030(%rbp),%rsi
mov    -0x1034(%rbp),%edx
call   1030 <write@plt>
cmp    -0x1034(%rbp),%eax
je     134c <main+0x1bc>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xd25(%rip),%rdi
call   1040 <oops@plt>
jmp    12f4 <main+0x164>
cmpl   $0xffffffff,-0x1034(%rbp)
jne    1372 <main+0x1e2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd10(%rip),%rdi
call   1040 <oops@plt>
mov    -0x24(%rbp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     1394 <main+0x204>
mov    -0x28(%rbp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    13a7 <main+0x217>
lea    0xcf1(%rip),%rdi
lea    0xcad(%rip),%rsi
call   1040 <oops@plt>
mov    0x2c1a(%rip),%rax
mov    (%rax),%eax
add    $0x1040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1018,%rsp
mov    %rsi,%r14
cmp    $0x3,%edi
jne    1312 <main+0x182>
mov    0x8(%r14),%rdi
lea    0x8(%rsp),%rsi
call   1080 <stat@plt>
cmp    $0xffffffff,%eax
jne    11d0 <main+0x40>
mov    0x8(%r14),%rsi
lea    0xe53(%rip),%rdi
call   1040 <oops@plt>
mov    0x10(%r14),%rdi
mov    %rsp,%rsi
call   1080 <stat@plt>
cmp    $0xffffffff,%eax
jne    11f1 <main+0x61>
mov    0x10(%r14),%rsi
lea    0xe32(%rip),%rdi
call   1040 <oops@plt>
mov    0x8(%rsp),%rax
cmp    (%rsp),%rax
je     132e <main+0x19e>
mov    0x8(%r14),%rdi
mov    0x2ddd(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,%r15d
cmp    $0xffffffff,%eax
jne    122a <main+0x9a>
mov    0x8(%r14),%rsi
lea    0xe2b(%rip),%rdi
call   1040 <oops@plt>
mov    0x10(%r14),%rdi
mov    $0x1a4,%esi
call   10a0 <creat@plt>
mov    %eax,%r13d
cmp    $0xffffffff,%eax
jne    1250 <main+0xc0>
mov    0x10(%r14),%rsi
lea    0xe12(%rip),%rdi
call   1040 <oops@plt>
lea    0x10(%rsp),%rsi
mov    %r15d,%edi
mov    $0x1000,%edx
call   1060 <read@plt>
mov    %eax,%ebx
test   %eax,%eax
jle    12b5 <main+0x125>
lea    0x10(%rsp),%rbp
lea    0xdf8(%rip),%r12
jmp    1296 <main+0x106>
cs nopw 0x0(%rax,%rax,1)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0x1000,%edx
call   1060 <read@plt>
mov    %eax,%ebx
test   %eax,%eax
jle    12b5 <main+0x125>
mov    %r13d,%edi
mov    %rbp,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
cmp    %ebx,%eax
je     1280 <main+0xf0>
mov    0x10(%r14),%rsi
mov    %r12,%rdi
call   1040 <oops@plt>
jmp    1280 <main+0xf0>
cmp    $0xffffffff,%ebx
jne    12ca <main+0x13a>
mov    0x8(%r14),%rsi
lea    0xdb8(%rip),%rdi
call   1040 <oops@plt>
mov    %r15d,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     12e4 <main+0x154>
mov    %r13d,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    12f7 <main+0x167>
lea    0xda1(%rip),%rdi
lea    0xd5d(%rip),%rsi
call   1040 <oops@plt>
mov    0x2cca(%rip),%rax
mov    (%rax),%eax
add    $0x1018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xcdb(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    1350 <main+0x1c0>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
mov    0x8(%r14),%rcx
mov    0x10(%r14),%r8
lea    0xce2(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c79(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i64 }
@stderr = global i32 0
@.str = [30 x i8] c"Usage: %s source destination\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [13 x i8] c"Can not stat\00"
@.str.2 = [37 x i8] c"%s: \22%s\22 and \22%s\22 are the same file\0A\00"
@O_RDONLY = global i32 0
@.str.3 = [13 x i8] c"Can not open\00"
@.str.4 = [15 x i8] c"Can not create\00"
@.str.5 = [17 x i8] c"Failed to create\00"
@.str.6 = [15 x i8] c"Failed to read\00"
@.str.7 = [22 x i8] c"Faile to close files.\00"
@.str.8 = [1 x i8] zeroinitializer
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
%7 = alloca %struct.stat
%8 = alloca i32
%9 = alloca i32
%10 = alloca [4096 x i8]
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %22
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @stat(i8* %25, %struct.stat* %6)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %33
28: ; preds = %22
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %31)
br label %33
33: ; preds = %28, %22
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 @stat(i8* %36, %struct.stat* %7)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %44
39: ; preds = %33
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %42)
br label %44
44: ; preds = %39, %33
%45 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%46 = load i64, i64* %45
%47 = getelementptr inbounds %struct.stat, %struct.stat* %7, i32 0, i32 0
%48 = load i64, i64* %47
%49 = icmp eq i64 %46, %48
br i1 %49, label %50, label %64
50: ; preds = %44
%51 = load i32, i32* @stderr
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 0
%54 = load i8*, i8** %53
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 2
%60 = load i8*, i8** %59
%61 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %54, i8* %57, i8* %60)
%62 = load i32, i32* @EXIT_FAILURE
%63 = call i32 @exit(i32 %62)
unreachable
64: ; preds = %44
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 1
%67 = load i8*, i8** %66
%68 = load i32, i32* @O_RDONLY
%69 = call i32 @open(i8* %67, i32 %68)
store i32 %69, i32* %8
%70 = load i32, i32* %8
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %77
72: ; preds = %64
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 1
%75 = load i8*, i8** %74
%76 = call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %72, %64
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 2
%80 = load i8*, i8** %79
%81 = call i32 @creat(i8* %80, i32 420)
store i32 %81, i32* %9
%82 = load i32, i32* %9
%83 = icmp eq i32 %82, -1
br i1 %83, label %84, label %89
84: ; preds = %77
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i64 2
%87 = load i8*, i8** %86
%88 = call i32 @oops(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %87)
br label %89
89: ; preds = %84, %77
br label %90
90: ; preds = %107, %89
%91 = load i32, i32* %8
%92 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%93 = call i32 @read(i32 %91, i8* %92, i32 4096)
store i32 %93, i32* %11
%94 = icmp sgt i32 %93, 0
br i1 %94, label %95, label %108
95: ; preds = %90
%96 = load i32, i32* %9
%97 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%98 = load i32, i32* %11
%99 = call i32 @write(i32 %96, i8* %97, i32 %98)
%100 = load i32, i32* %11
%101 = icmp ne i32 %99, %100
br i1 %101, label %102, label %107
102: ; preds = %95
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 2
%105 = load i8*, i8** %104
%106 = call i32 @oops(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %105)
br label %107
107: ; preds = %102, %95
br label %90
108: ; preds = %90
%109 = load i32, i32* %11
%110 = icmp eq i32 %109, -1
br i1 %110, label %111, label %116
111: ; preds = %108
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 1
%114 = load i8*, i8** %113
%115 = call i32 @oops(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %114)
br label %116
116: ; preds = %111, %108
%117 = load i32, i32* %8
%118 = call i32 @close(i32 %117)
%119 = icmp eq i32 %118, -1
br i1 %119, label %124, label %120
120: ; preds = %116
%121 = load i32, i32* %9
%122 = call i32 @close(i32 %121)
%123 = icmp eq i32 %122, -1
br i1 %123, label %124, label %126
124: ; preds = %120, %116
%125 = call i32 @oops(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %126
126: ; preds = %124, %120
%127 = load i32, i32* @EXIT_SUCCESS
ret i32 %127
}

LLVM IR (-O2):
%struct.stat = type { i64 }
@stderr = global i32 0
@.str = [30 x i8] c"Usage: %s source destination\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [13 x i8] c"Can not stat\00"
@.str.2 = [37 x i8] c"%s: \22%s\22 and \22%s\22 are the same file\0A\00"
@O_RDONLY = global i32 0
@.str.3 = [13 x i8] c"Can not open\00"
@.str.4 = [15 x i8] c"Can not create\00"
@.str.5 = [17 x i8] c"Failed to create\00"
@.str.6 = [15 x i8] c"Failed to read\00"
@.str.7 = [22 x i8] c"Faile to close files.\00"
@.str.8 = [1 x i8] zeroinitializer
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = alloca %struct.stat
%5 = alloca [4096 x i8]
%6 = icmp eq i32 %0, 3
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %1
%10 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* @EXIT_FAILURE
%12 = tail call i32 @exit(i32 %11)
unreachable
13: ; preds = %2
%14 = bitcast %struct.stat* %3 to i8*
%15 = bitcast %struct.stat* %4 to i8*
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @stat(i8* %17, %struct.stat* %3)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load i8*, i8** %16
%22 = tail call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %21)
br label %23
23: ; preds = %20, %13
%24 = getelementptr inbounds i8*, i8** %1, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @stat(i8* %25, %struct.stat* %4)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load i8*, i8** %24
%30 = tail call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %29)
br label %31
31: ; preds = %28, %23
%32 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%33 = load i64, i64* %32
%34 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%35 = load i64, i64* %34
%36 = icmp eq i64 %33, %35
br i1 %36, label %37, label %45
37: ; preds = %31
%38 = load i32, i32* @stderr
%39 = load i8*, i8** %1
%40 = load i8*, i8** %16
%41 = load i8*, i8** %24
%42 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %39, i8* %40, i8* %41)
%43 = load i32, i32* @EXIT_FAILURE
%44 = tail call i32 @exit(i32 %43)
unreachable
45: ; preds = %31
%46 = load i8*, i8** %16
%47 = load i32, i32* @O_RDONLY
%48 = tail call i32 @open(i8* %46, i32 %47)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %53
50: ; preds = %45
%51 = load i8*, i8** %16
%52 = tail call i32 @oops(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %51)
br label %53
53: ; preds = %50, %45
%54 = load i8*, i8** %24
%55 = tail call i32 @creat(i8* %54, i32 420)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load i8*, i8** %24
%59 = tail call i32 @oops(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %58)
br label %60
60: ; preds = %57, %53
%61 = getelementptr inbounds [4096 x i8], [4096 x i8]* %5, i64 0, i64 0
%62 = call i32 @read(i32 %48, i8* %61, i32 4096)
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %74
64: ; preds = %60, %71
%65 = phi i32 [ %72, %71 ], [ %62, %60 ]
%66 = call i32 @write(i32 %55, i8* %61, i32 %65)
%67 = icmp eq i32 %66, %65
br i1 %67, label %71, label %68
68: ; preds = %64
%69 = load i8*, i8** %24
%70 = tail call i32 @oops(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %69)
br label %71
71: ; preds = %68, %64
%72 = call i32 @read(i32 %48, i8* %61, i32 4096)
%73 = icmp sgt i32 %72, 0
br i1 %73, label %64, label %74
74: ; preds = %71, %60
%75 = phi i32 [ %62, %60 ], [ %72, %71 ]
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i8*, i8** %16
%79 = tail call i32 @oops(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %78)
br label %80
80: ; preds = %77, %74
%81 = tail call i32 @close(i32 %48)
%82 = icmp eq i32 %81, -1
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = tail call i32 @close(i32 %55)
%85 = icmp eq i32 %84, -1
br i1 %85, label %86, label %88
86: ; preds = %83, %80
%87 = tail call i32 @oops(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %88
88: ; preds = %86, %83
%89 = load i32, i32* @EXIT_SUCCESS
ret i32 %89
}