#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_size;
  long st_mtime;
  scalar_t__ st_blocks;
};

/* Variables and functions */
int O_CREAT;
int /*<<< orphan*/ O_RDONLY;
int O_RDWR;
int errno;
scalar_t__ fstat(int, struct stat *);
int open(char *, int, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sleep(int);
char *strerror(int);
scalar_t__ strlen(char *);
scalar_t__ write(int, char *, scalar_t__);
int main(int argc, char **argv) {
  int fd1, fd2;
  struct stat st1, st2;
  if (argc != 3) {
    printf("Usage %s file1 file2\n", argv[0]);
    return 1;
  }
  fd1 = open(argv[1], O_CREAT | O_RDWR, 0666);
  if (fd1 == -1) {
    printf("Error opening %s: %s\n", argv[1], strerror(errno));
    return errno;
  }
  fd2 = open(argv[2], O_RDONLY);
  if (fd2 == -1) {
    printf("Error opening %s: %s\n", argv[2], strerror(errno));
    return errno;
  }
  sleep(1);
  if (write(fd1, "hello", strlen("hello")) != strlen("hello")) {
    printf("Error writing: %s\n", strerror(errno));
    return errno;
  }
  if (fstat(fd1, &st1)) {
    printf("Error statting %s: %s\n", argv[1], strerror(errno));
    return errno;
  }
  if (fstat(fd2, &st2)) {
    printf("Error statting %s: %s\n", argv[2], strerror(errno));
    return errno;
  }
  if (st1.st_size != st2.st_size) {
    printf("Sizes don't match %lu, %lu\n", (unsigned long)st1.st_size,
           (unsigned long)st2.st_size);
    return 1;
  }
  if (st1.st_mtime != st2.st_mtime) {
    printf("Mtimes don't match %ld, %ld\n", st1.st_mtime, st2.st_mtime);
    return 1;
  }
  if (st1.st_blocks != st2.st_blocks) {
    printf("Blocks don't match %ld, %ld\n", (long)st1.st_blocks,
           (long)st2.st_blocks);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11b4 <main+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
mov    0x2e14(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
mov    $0x0,%al
call   1060 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    1227 <main+0xb7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x50(%rbp)
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x50(%rbp),%rsi
mov    %rax,%rdx
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2dab(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2da2(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1060 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    128c <main+0x11c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x58(%rbp)
mov    0x2d69(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x58(%rbp),%rsi
mov    %rax,%rdx
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2d46(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    $0x1,%edi
call   1080 <sleep@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x64(%rbp)
lea    0xd89(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x64(%rbp),%edi
mov    %rax,%rdx
lea    0xd77(%rip),%rsi
call   1030 <write@plt>
mov    %rax,-0x60(%rbp)
lea    0xd67(%rip),%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
mov    -0x60(%rbp),%rax
cmp    %rcx,%rax
je     130a <main+0x19a>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    %rax,%rsi
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2cc8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x14(%rbp),%edi
lea    -0x30(%rbp),%rsi
call   1090 <fstat@plt>
cmp    $0x0,%rax
je     1360 <main+0x1f0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x70(%rbp)
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x70(%rbp),%rsi
mov    %rax,%rdx
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2c72(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x18(%rbp),%edi
lea    -0x48(%rbp),%rsi
call   1090 <fstat@plt>
cmp    $0x0,%rax
je     13b6 <main+0x246>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x78(%rbp)
mov    0x2c3f(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x78(%rbp),%rsi
mov    %rax,%rdx
lea    0xca7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2c1c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x30(%rbp),%rax
cmp    -0x48(%rbp),%rax
je     13e6 <main+0x276>
mov    -0x30(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x28(%rbp),%rax
cmp    -0x40(%rbp),%rax
je     1416 <main+0x2a6>
mov    -0x28(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x2dd>
mov    -0x20(%rbp),%rax
cmp    -0x38(%rbp),%rax
je     1446 <main+0x2d6>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x2dd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
jne    11ef <main+0x8f>
mov    0x8(%rbx),%rdi
mov    0x2e7d(%rip),%rax
mov    0x2e5e(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    $0x1b6,%edx
xor    %eax,%eax
call   1050 <open@plt>
cmp    $0xffffffff,%eax
je     1207 <main+0xa7>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
call   1050 <open@plt>
cmp    $0xffffffff,%eax
je     120d <main+0xad>
mov    %eax,%r14d
mov    $0x1,%edi
call   1070 <sleep@plt>
lea    0xe66(%rip),%rsi
mov    $0x5,%edx
mov    %ebp,%edi
call   1030 <write@plt>
cmp    $0x5,%rax
jne    1229 <main+0xc9>
lea    0x18(%rsp),%rsi
mov    %ebp,%edi
call   1080 <fstat@plt>
test   %rax,%rax
je     124c <main+0xec>
mov    0x8(%rbx),%rbx
jmp    1260 <main+0x100>
mov    (%rbx),%rsi
lea    0xe07(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%eax
jmp    1286 <main+0x126>
mov    0x8(%rbx),%rbx
jmp    1211 <main+0xb1>
mov    0x10(%rbx),%rbx
mov    0x2db0(%rip),%rbp
mov    0x0(%rbp),%edi
call   1060 <strerror@plt>
lea    0xdef(%rip),%rdi
jmp    1276 <main+0x116>
mov    0x2d98(%rip),%rbx
mov    (%rbx),%edi
call   1060 <strerror@plt>
lea    0xdf4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%eax
jmp    1286 <main+0x126>
mov    %rsp,%rsi
mov    %r14d,%edi
call   1080 <fstat@plt>
test   %rax,%rax
je     128f <main+0x12f>
mov    0x10(%rbx),%rbx
mov    0x2d61(%rip),%rbp
mov    0x0(%rbp),%edi
call   1060 <strerror@plt>
lea    0xdcf(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%rbp),%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x18(%rsp),%rsi
mov    (%rsp),%rdx
cmp    %rdx,%rsi
jne    12c6 <main+0x166>
mov    0x20(%rsp),%rsi
mov    0x8(%rsp),%rdx
cmp    %rdx,%rsi
jne    12cf <main+0x16f>
mov    0x28(%rsp),%rsi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
cmp    %rdx,%rsi
je     1286 <main+0x126>
lea    0xdd1(%rip),%rdi
jmp    12d6 <main+0x176>
lea    0xd8f(%rip),%rdi
jmp    12d6 <main+0x176>
lea    0xda2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1200 <main+0xa0>

LLVM IR (-O0):
%struct.stat = type { i64, i64, i64 }
@.str = [22 x i8] c"Usage %s file1 file2\0A\00"
@O_CREAT = global i32 0
@O_RDWR = global i32 0
@.str.1 = [22 x i8] c"Error opening %s: %s\0A\00"
@errno = global i32 0
@O_RDONLY = global i32 0
@.str.2 = [6 x i8] c"hello\00"
@.str.3 = [19 x i8] c"Error writing: %s\0A\00"
@.str.4 = [23 x i8] c"Error statting %s: %s\0A\00"
@.str.5 = [28 x i8] c"Sizes don't match %lu, %lu\0A\00"
@.str.6 = [29 x i8] c"Mtimes don't match %ld, %ld\0A\00"
@.str.7 = [29 x i8] c"Blocks don't match %ld, %ld\0A\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 %struct.stat
%9 = alloca %struct.stat
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %15)
store i32 1, i32* %3
br label %124
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = load i32, i32* @O_CREAT
%22 = load i32, i32* @O_RDWR
%23 = or i32 %21, %22
%24 = call i32 (i8*, i32, ...) @open(i8* %20, i32 %23, i32 438)
store i32 %24, i32* %6
%25 = load i32, i32* %6
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %35
27: ; preds = %17
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = load i32, i32* @errno
%32 = call i8* @strerror(i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %30, i8* %32)
%34 = load i32, i32* @errno
store i32 %34, i32* %3
br label %124
35: ; preds = %17
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = load i32, i32* @O_RDONLY
%40 = call i32 (i8*, i32, ...) @open(i8* %38, i32 %39)
store i32 %40, i32* %7
%41 = load i32, i32* %7
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %51
43: ; preds = %35
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = load i32, i32* @errno
%48 = call i8* @strerror(i32 %47)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %46, i8* %48)
%50 = load i32, i32* @errno
store i32 %50, i32* %3
br label %124
51: ; preds = %35
%52 = call i32 @sleep(i32 1)
%53 = load i32, i32* %6
%54 = call i64 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%55 = call i64 @write(i32 %53, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 %54)
%56 = call i64 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%57 = icmp ne i64 %55, %56
br i1 %57, label %58, label %63
58: ; preds = %51
%59 = load i32, i32* @errno
%60 = call i8* @strerror(i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %60)
%62 = load i32, i32* @errno
store i32 %62, i32* %3
br label %124
63: ; preds = %51
%64 = load i32, i32* %6
%65 = call i64 @fstat(i32 %64, %struct.stat* %8)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %75
67: ; preds = %63
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 1
%70 = load i8*, i8** %69
%71 = load i32, i32* @errno
%72 = call i8* @strerror(i32 %71)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %70, i8* %72)
%74 = load i32, i32* @errno
store i32 %74, i32* %3
br label %124
75: ; preds = %63
%76 = load i32, i32* %7
%77 = call i64 @fstat(i32 %76, %struct.stat* %9)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %75
%80 = load i8**, i8*** %5
%81 = getelementptr inbounds i8*, i8** %80, i64 2
%82 = load i8*, i8** %81
%83 = load i32, i32* @errno
%84 = call i8* @strerror(i32 %83)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %82, i8* %84)
%86 = load i32, i32* @errno
store i32 %86, i32* %3
br label %124
87: ; preds = %75
%88 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%89 = load i64, i64* %88
%90 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%91 = load i64, i64* %90
%92 = icmp ne i64 %89, %91
br i1 %92, label %93, label %99
93: ; preds = %87
%94 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%95 = load i64, i64* %94
%96 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%97 = load i64, i64* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %95, i64 %97)
store i32 1, i32* %3
br label %124
99: ; preds = %87
%100 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 1
%101 = load i64, i64* %100
%102 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 1
%103 = load i64, i64* %102
%104 = icmp ne i64 %101, %103
br i1 %104, label %105, label %111
105: ; preds = %99
%106 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 1
%107 = load i64, i64* %106
%108 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 1
%109 = load i64, i64* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i64 %107, i64 %109)
store i32 1, i32* %3
br label %124
111: ; preds = %99
%112 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 2
%113 = load i64, i64* %112
%114 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 2
%115 = load i64, i64* %114
%116 = icmp ne i64 %113, %115
br i1 %116, label %117, label %123
117: ; preds = %111
%118 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 2
%119 = load i64, i64* %118
%120 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 2
%121 = load i64, i64* %120
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i64 %119, i64 %121)
store i32 1, i32* %3
br label %124
123: ; preds = %111
store i32 0, i32* %3
br label %124
124: ; preds = %123, %117, %105, %93, %79, %67, %58, %43, %27, %12
%125 = load i32, i32* %3
ret i32 %125
}

LLVM IR (-O2):
%struct.stat = type { i64, i64, i64 }
@.str = [22 x i8] c"Usage %s file1 file2\0A\00"
@O_CREAT = global i32 0
@O_RDWR = global i32 0
@.str.1 = [22 x i8] c"Error opening %s: %s\0A\00"
@errno = global i32 0
@O_RDONLY = global i32 0
@.str.2 = [6 x i8] c"hello\00"
@.str.3 = [19 x i8] c"Error writing: %s\0A\00"
@.str.4 = [23 x i8] c"Error statting %s: %s\0A\00"
@.str.5 = [28 x i8] c"Sizes don't match %lu, %lu\0A\00"
@.str.6 = [29 x i8] c"Mtimes don't match %ld, %ld\0A\00"
@.str.7 = [29 x i8] c"Blocks don't match %ld, %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = alloca %struct.stat
%5 = bitcast %struct.stat* %3 to i8*
%6 = bitcast %struct.stat* %4 to i8*
%7 = icmp eq i32 %0, 3
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %9)
br label %88
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = load i32, i32* @O_CREAT
%15 = load i32, i32* @O_RDWR
%16 = or i32 %15, %14
%17 = tail call i32 (i8*, i32, ...) @open(i8* %13, i32 %16, i32 438)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %25
19: ; preds = %11
%20 = load i8*, i8** %12
%21 = load i32, i32* @errno
%22 = tail call i8* @strerror(i32 %21)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* %22)
%24 = load i32, i32* @errno
br label %88
25: ; preds = %11
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = load i32, i32* @O_RDONLY
%29 = tail call i32 (i8*, i32, ...) @open(i8* %27, i32 %28)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = load i8*, i8** %26
%33 = load i32, i32* @errno
%34 = tail call i8* @strerror(i32 %33)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %32, i8* %34)
%36 = load i32, i32* @errno
br label %88
37: ; preds = %25
%38 = tail call i32 @sleep(i32 1)
%39 = tail call i64 @write(i32 %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5)
%40 = icmp eq i64 %39, 5
br i1 %40, label %46, label %41
41: ; preds = %37
%42 = load i32, i32* @errno
%43 = tail call i8* @strerror(i32 %42)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %43)
%45 = load i32, i32* @errno
br label %88
46: ; preds = %37
%47 = call i64 @fstat(i32 %17, %struct.stat* %3)
%48 = icmp eq i64 %47, 0
br i1 %48, label %55, label %49
49: ; preds = %46
%50 = load i8*, i8** %12
%51 = load i32, i32* @errno
%52 = tail call i8* @strerror(i32 %51)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %50, i8* %52)
%54 = load i32, i32* @errno
br label %88
55: ; preds = %46
%56 = call i64 @fstat(i32 %29, %struct.stat* %4)
%57 = icmp eq i64 %56, 0
br i1 %57, label %64, label %58
58: ; preds = %55
%59 = load i8*, i8** %26
%60 = load i32, i32* @errno
%61 = tail call i8* @strerror(i32 %60)
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %59, i8* %61)
%63 = load i32, i32* @errno
br label %88
64: ; preds = %55
%65 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%66 = load i64, i64* %65
%67 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%68 = load i64, i64* %67
%69 = icmp eq i64 %66, %68
br i1 %69, label %72, label %70
70: ; preds = %64
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 %66, i64 %68)
br label %88
72: ; preds = %64
%73 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%74 = load i64, i64* %73
%75 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 1
%76 = load i64, i64* %75
%77 = icmp eq i64 %74, %76
br i1 %77, label %80, label %78
78: ; preds = %72
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i64 %74, i64 %76)
br label %88
80: ; preds = %72
%81 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 2
%82 = load i64, i64* %81
%83 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 2
%84 = load i64, i64* %83
%85 = icmp eq i64 %82, %84
br i1 %85, label %88, label %86
86: ; preds = %80
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i64 %82, i64 %84)
br label %88
88: ; preds = %80, %86, %78, %70, %58, %49, %41, %31, %19, %8
%89 = phi i32 [ 1, %8 ], [ %24, %19 ], [ %36, %31 ], [ %45, %41 ], [ %54, %49 ], [ %63, %58 ], [ 1, %70 ], [ 1, %78 ], [ 1, %86 ], [ 0, %80 ]
ret i32 %89
}