#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 ssize_t;
typedef int off_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int O_CREAT;
int /*<<< orphan*/ O_RDONLY;
int O_TRUNC;
int O_WRONLY;
int /*<<< orphan*/ SEEK_SET;
int S_IRUSR;
int S_IWUSR;
int atoi(char *);
int close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int lseek(int, int, int /*<<< orphan*/);
int open(char const *, int, ...);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int write(int, char *, int);
int main(int argc, char **argv) {
  int ifd, ofd, opt, opt_index, size = 1024, seek = 1024;
  off_t curr, offset = 0;
  ssize_t r_ret, w_ret;
  const char *infile;
  const char *outfile;
  if (argc != 5) {
    printf("Usage: %s <infile> <outfile> <seek> <size>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  infile = argv[1];
  outfile = argv[2];
  seek = atoi(argv[3]);
  size = atoi(argv[4]);
  char buffer[size];
  if ((ifd = open(infile, O_RDONLY)) == -1) {
    perror("open");
    exit(EXIT_FAILURE);
  }
  if ((ofd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) ==
      -1) {
    perror("open");
    exit(EXIT_FAILURE);
  }
  while (((r_ret = read(ifd, buffer, size)) > 0)) {
    if (r_ret == -1) {
      perror("read");
      exit(EXIT_FAILURE);
    }
    if ((w_ret = write(ofd, buffer, r_ret)) > 0) {
      if (w_ret == -1) {
        perror("write");
        exit(EXIT_FAILURE);
      }
    }
    offset += seek;
    if ((curr = lseek(ifd, offset, SEEK_SET))) {
      if (curr == -1) {
        perror("lseek");
        exit(EXIT_FAILURE);
      }
      printf("Offset %lld, Bytes Written(size) %lu\n", curr, w_ret);
    }
  }
  if (close(ifd) == -1) {
    perror("close");
  }
  if (close(ofd) == -1) {
    perror("close");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x400,-0x24(%rbp)
movl   $0x400,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     11e8 <main+0x58>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rdi
mov    0x2d87(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1080 <open@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
jne    1280 <main+0xf0>
lea    0xdbf(%rip),%rdi
call   1090 <perror@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x48(%rbp),%rdi
mov    0x2d15(%rip),%rax
mov    (%rax),%esi
mov    0x2d64(%rip),%rax
or     (%rax),%esi
mov    0x2d53(%rip),%rax
or     (%rax),%esi
mov    0x2d0a(%rip),%rax
mov    (%rax),%edx
mov    0x2d21(%rip),%rax
or     (%rax),%edx
mov    $0x0,%al
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmp    $0xffffffff,%eax
jne    12de <main+0x14e>
lea    0xd61(%rip),%rdi
call   1090 <perror@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
jmp    12e3 <main+0x153>
mov    -0x60(%rbp),%rsi
mov    -0x14(%rbp),%edi
mov    -0x24(%rbp),%edx
call   1070 <read@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jle    13cc <main+0x23c>
cmpl   $0xffffffff,-0x34(%rbp)
jne    1322 <main+0x192>
lea    0xd22(%rip),%rdi
call   1090 <perror@plt>
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x60(%rbp),%rsi
mov    -0x18(%rbp),%edi
mov    -0x34(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
jle    1366 <main+0x1d6>
cmpl   $0xffffffff,-0x38(%rbp)
jne    1361 <main+0x1d1>
lea    0xce8(%rip),%rdi
call   1090 <perror@plt>
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
jmp    1366 <main+0x1d6>
mov    -0x28(%rbp),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    0x2c44(%rip),%rax
mov    (%rax),%edx
call   1050 <lseek@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0x0,%eax
je     13c7 <main+0x237>
cmpl   $0xffffffff,-0x2c(%rbp)
jne    13b3 <main+0x223>
lea    0xc9c(%rip),%rdi
call   1090 <perror@plt>
mov    0x2c0c(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x2c(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e3 <main+0x153>
mov    -0x14(%rbp),%edi
call   1060 <close@plt>
cmp    $0xffffffff,%eax
jne    13e9 <main+0x259>
lea    0xc84(%rip),%rdi
call   1090 <perror@plt>
mov    -0x18(%rbp),%edi
call   1060 <close@plt>
cmp    $0xffffffff,%eax
jne    1406 <main+0x276>
lea    0xc67(%rip),%rdi
call   1090 <perror@plt>
mov    -0x50(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x5,%edi
jne    131f <main+0x18f>
mov    0x8(%rbx),%r14
mov    0x10(%rbx),%r13
mov    0x18(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x2c(%rbp)
mov    0x20(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x30(%rbp)
mov    %eax,%eax
mov    %rsp,%r12
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     1316 <main+0x186>
mov    %eax,%ebx
mov    0x2d9e(%rip),%rax
mov    0x2def(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2ddc(%rip),%rax
or     (%rax),%esi
mov    0x2d93(%rip),%rax
mov    0x2dac(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    %r13,%rdi
xor    %eax,%eax
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     1316 <main+0x186>
mov    %eax,%r13d
mov    %ebx,%edi
mov    %r12,%rsi
mov    -0x30(%rbp),%edx
call   1070 <read@plt>
test   %eax,%eax
jle    12b6 <main+0x126>
mov    -0x2c(%rbp),%r14d
jmp    1275 <main+0xe5>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
mov    %r12,%rsi
mov    -0x30(%rbp),%edx
call   1070 <read@plt>
add    -0x2c(%rbp),%r14d
test   %eax,%eax
jle    12b6 <main+0x126>
mov    %r13d,%edi
mov    %r12,%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    %eax,%r15d
mov    0x2d34(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    %r14d,%esi
call   1050 <lseek@plt>
test   %eax,%eax
je     1260 <main+0xd0>
cmp    $0xffffffff,%eax
je     12fc <main+0x16c>
lea    0xd8f(%rip),%rdi
mov    %eax,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1260 <main+0xd0>
mov    %ebx,%edi
call   1060 <close@plt>
cmp    $0xffffffff,%eax
je     12e0 <main+0x150>
mov    %r13d,%edi
call   1060 <close@plt>
cmp    $0xffffffff,%eax
je     12ee <main+0x15e>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd76(%rip),%rdi
call   1090 <perror@plt>
jmp    12c2 <main+0x132>
lea    0xd68(%rip),%rdi
call   1090 <perror@plt>
jmp    12cf <main+0x13f>
lea    0xd2e(%rip),%rdi
call   1090 <perror@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
lea    0xd0f(%rip),%rdi
jmp    1303 <main+0x173>
mov    (%rbx),%rsi
lea    0xcd7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1308 <main+0x178>

LLVM IR (-O0):
@.str = [44 x i8] c"Usage: %s <infile> <outfile> <seek> <size>\0A\00"
@EXIT_FAILURE = global i32 0
@O_RDONLY = global i32 0
@.str.1 = [5 x i8] c"open\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.2 = [5 x i8] c"read\00"
@.str.3 = [6 x i8] c"write\00"
@SEEK_SET = global i32 0
@.str.4 = [6 x i8] c"lseek\00"
@.str.5 = [38 x i8] c"Offset %lld, Bytes Written(size) %lu\0A\00"
@.str.6 = [6 x i8] c"close\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 i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1024, i32* %10
store i32 1024, i32* %11
store i32 0, i32* %13
%20 = load i32, i32* %4
%21 = icmp ne i32 %20, 5
br i1 %21, label %22, label %29
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
store i8* %32, i8** %16
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
store i8* %35, i8** %17
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 3
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
store i32 %39, i32* %11
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 4
%42 = load i8*, i8** %41
%43 = call i32 @atoi(i8* %42)
store i32 %43, i32* %10
%44 = load i32, i32* %10
%45 = zext i32 %44 to i64
%46 = call i8* @llvm.stacksave()
store i8* %46, i8** %18
%47 = alloca i8, i64 %45
store i64 %45, i64* %19
%48 = load i8*, i8** %16
%49 = load i32, i32* @O_RDONLY
%50 = call i32 (i8*, i32, ...) @open(i8* %48, i32 %49)
store i32 %50, i32* %6
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %56
52: ; preds = %29
%53 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%54 = load i32, i32* @EXIT_FAILURE
%55 = call i32 @exit(i32 %54)
unreachable
56: ; preds = %29
%57 = load i8*, i8** %17
%58 = load i32, i32* @O_WRONLY
%59 = load i32, i32* @O_CREAT
%60 = or i32 %58, %59
%61 = load i32, i32* @O_TRUNC
%62 = or i32 %60, %61
%63 = load i32, i32* @S_IRUSR
%64 = load i32, i32* @S_IWUSR
%65 = or i32 %63, %64
%66 = call i32 (i8*, i32, ...) @open(i8* %57, i32 %62, i32 %65)
store i32 %66, i32* %7
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %72
68: ; preds = %56
%69 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%70 = load i32, i32* @EXIT_FAILURE
%71 = call i32 @exit(i32 %70)
unreachable
72: ; preds = %56
br label %73
73: ; preds = %118, %72
%74 = load i32, i32* %6
%75 = load i32, i32* %10
%76 = call i32 @read(i32 %74, i8* %47, i32 %75)
store i32 %76, i32* %14
%77 = icmp sgt i32 %76, 0
br i1 %77, label %78, label %119
78: ; preds = %73
%79 = load i32, i32* %14
%80 = icmp eq i32 %79, -1
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%83 = load i32, i32* @EXIT_FAILURE
%84 = call i32 @exit(i32 %83)
unreachable
85: ; preds = %78
%86 = load i32, i32* %7
%87 = load i32, i32* %14
%88 = call i32 @write(i32 %86, i8* %47, i32 %87)
store i32 %88, i32* %15
%89 = icmp sgt i32 %88, 0
br i1 %89, label %90, label %98
90: ; preds = %85
%91 = load i32, i32* %15
%92 = icmp eq i32 %91, -1
br i1 %92, label %93, label %97
93: ; preds = %90
%94 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%95 = load i32, i32* @EXIT_FAILURE
%96 = call i32 @exit(i32 %95)
unreachable
97: ; preds = %90
br label %98
98: ; preds = %97, %85
%99 = load i32, i32* %11
%100 = load i32, i32* %13
%101 = add nsw i32 %100, %99
store i32 %101, i32* %13
%102 = load i32, i32* %6
%103 = load i32, i32* %13
%104 = load i32, i32* @SEEK_SET
%105 = call i32 @lseek(i32 %102, i32 %103, i32 %104)
store i32 %105, i32* %12
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %118
107: ; preds = %98
%108 = load i32, i32* %12
%109 = icmp eq i32 %108, -1
br i1 %109, label %110, label %114
110: ; preds = %107
%111 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%112 = load i32, i32* @EXIT_FAILURE
%113 = call i32 @exit(i32 %112)
unreachable
114: ; preds = %107
%115 = load i32, i32* %12
%116 = load i32, i32* %15
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %115, i32 %116)
br label %118
118: ; preds = %114, %98
br label %73
119: ; preds = %73
%120 = load i32, i32* %6
%121 = call i32 @close(i32 %120)
%122 = icmp eq i32 %121, -1
br i1 %122, label %123, label %125
123: ; preds = %119
%124 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %125
125: ; preds = %123, %119
%126 = load i32, i32* %7
%127 = call i32 @close(i32 %126)
%128 = icmp eq i32 %127, -1
br i1 %128, label %129, label %131
129: ; preds = %125
%130 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %131
131: ; preds = %129, %125
%132 = load i8*, i8** %18
%133 = load i32, i32* %3
ret i32 %133
}

LLVM IR (-O2):
@.str = [44 x i8] c"Usage: %s <infile> <outfile> <seek> <size>\0A\00"
@EXIT_FAILURE = global i32 0
@O_RDONLY = global i32 0
@.str.1 = [5 x i8] c"open\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@SEEK_SET = global i32 0
@.str.4 = [6 x i8] c"lseek\00"
@.str.5 = [38 x i8] c"Offset %lld, Bytes Written(size) %lu\0A\00"
@.str.6 = [6 x i8] c"close\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 5
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = getelementptr inbounds i8*, i8** %1, i64 4
%18 = load i8*, i8** %17
%19 = tail call i32 @atoi(i8* %18)
%20 = zext i32 %19 to i64
%21 = alloca i8, i64 %20
%22 = load i32, i32* @O_RDONLY
%23 = tail call i32 (i8*, i32, ...) @open(i8* %11, i32 %22)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %29
25: ; preds = %9
%26 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* @EXIT_FAILURE
%28 = tail call i32 @exit(i32 %27)
unreachable
29: ; preds = %9
%30 = load i32, i32* @O_WRONLY
%31 = load i32, i32* @O_CREAT
%32 = or i32 %31, %30
%33 = load i32, i32* @O_TRUNC
%34 = or i32 %32, %33
%35 = load i32, i32* @S_IRUSR
%36 = load i32, i32* @S_IWUSR
%37 = or i32 %36, %35
%38 = tail call i32 (i8*, i32, ...) @open(i8* %13, i32 %34, i32 %37)
%39 = icmp eq i32 %38, -1
br i1 %39, label %43, label %40
40: ; preds = %29
%41 = call i32 @read(i32 %23, i8* %21, i32 %19)
%42 = icmp sgt i32 %41, 0
br i1 %42, label %47, label %63
43: ; preds = %29
%44 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%45 = load i32, i32* @EXIT_FAILURE
%46 = tail call i32 @exit(i32 %45)
unreachable
47: ; preds = %40, %60
%48 = phi i32 [ %61, %60 ], [ %41, %40 ]
%49 = phi i32 [ %51, %60 ], [ 0, %40 ]
%50 = call i32 @write(i32 %38, i8* %21, i32 %48)
%51 = add nsw i32 %49, %16
%52 = load i32, i32* @SEEK_SET
%53 = tail call i32 @lseek(i32 %23, i32 %51, i32 %52)
switch i32 %53, label %58 [
i32 0, label %60
i32 -1, label %54
]
54: ; preds = %47
%55 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%56 = load i32, i32* @EXIT_FAILURE
%57 = tail call i32 @exit(i32 %56)
unreachable
58: ; preds = %47
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %53, i32 %50)
br label %60
60: ; preds = %47, %58
%61 = call i32 @read(i32 %23, i8* %21, i32 %19)
%62 = icmp sgt i32 %61, 0
br i1 %62, label %47, label %63
63: ; preds = %60, %40
%64 = tail call i32 @close(i32 %23)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %68
68: ; preds = %66, %63
%69 = tail call i32 @close(i32 %38)
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %73
73: ; preds = %71, %68
ret i32 0
}