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

/* Variables and functions */
scalar_t__ ENOENT;
scalar_t__ ENOTDIR;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
scalar_t__ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getpid();
int open(char *, int /*<<< orphan*/);
int snprintf(char *, int, char *, int, ...);
int main() {
  int fd;
  int fd_dir;
  int fd_file;
  char path[64];
  int status;
  fd_dir = open("/bin", O_RDONLY);
  if (fd_dir < 0)
    exit(EXIT_FAILURE);
  fd_file = open("/bin/true", O_RDONLY);
  if (fd_file < 0)
    exit(EXIT_FAILURE);
  status = snprintf(path, sizeof(path), "/proc/%d/fd/%d/", getpid(), fd_dir);
  if (status < 0 || status >= sizeof(path))
    exit(EXIT_FAILURE);
  fd = open(path, O_RDONLY);
  if (fd < 0)
    exit(EXIT_FAILURE);
  close(fd);
  status = snprintf(path, sizeof(path), "/proc/%d/fd/%d/..", getpid(), fd_dir);
  if (status < 0 || status >= sizeof(path))
    exit(EXIT_FAILURE);
  fd = open(path, O_RDONLY);
  if (fd < 0)
    exit(EXIT_FAILURE);
  close(fd);
  status = snprintf(path, sizeof(path), "/proc/%d/fd/%d/..", getpid(), fd_file);
  if (status < 0 || status >= sizeof(path))
    exit(EXIT_FAILURE);
  fd = open(path, O_RDONLY);
  if (fd >= 0 || errno != ENOTDIR)
    exit(EXIT_FAILURE);
  status = snprintf(path, sizeof(path), "/proc/%d/fd/999999/..", getpid());
  if (status < 0 || status >= sizeof(path))
    exit(EXIT_FAILURE);
  fd = open(path, O_RDONLY);
  if (fd >= 0 || errno != ENOENT)
    exit(EXIT_FAILURE);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e77(%rip),%rax
mov    (%rax),%esi
lea    0xe8e(%rip),%rdi
call   1060 <open@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1192 <main+0x42>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
lea    0xe63(%rip),%rdi
call   1060 <open@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    11c2 <main+0x72>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%ecx
mov    -0xc(%rbp),%r8d
mov    $0x40,%esi
lea    0xe28(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jl     1209 <main+0xb9>
movslq -0x54(%rbp),%rax
cmp    $0x40,%rax
jb     1217 <main+0xc7>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rdi
mov    0x2dbe(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1244 <main+0xf4>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    -0x8(%rbp),%edi
call   1050 <close@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%ecx
mov    -0xc(%rbp),%r8d
mov    $0x40,%esi
lea    0xdae(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jl     1293 <main+0x143>
movslq -0x54(%rbp),%rax
cmp    $0x40,%rax
jb     12a1 <main+0x151>
mov    0x2d2e(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rdi
mov    0x2d34(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    12ce <main+0x17e>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    -0x8(%rbp),%edi
call   1050 <close@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%ecx
mov    -0x10(%rbp),%r8d
mov    $0x40,%esi
lea    0xd24(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jl     131d <main+0x1cd>
movslq -0x54(%rbp),%rax
cmp    $0x40,%rax
jb     132b <main+0x1db>
mov    0x2ca4(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rdi
mov    0x2caa(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1364 <main+0x214>
mov    0x2c7f(%rip),%rax
mov    (%rax),%rax
mov    0x2c9d(%rip),%rcx
cmp    (%rcx),%rax
je     1372 <main+0x222>
mov    0x2c5d(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%ecx
mov    $0x40,%esi
lea    0xc9e(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jl     13b5 <main+0x265>
movslq -0x54(%rbp),%rax
cmp    $0x40,%rax
jb     13c3 <main+0x273>
mov    0x2c0c(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x50(%rbp),%rdi
mov    0x2c12(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    13fc <main+0x2ac>
mov    0x2be7(%rip),%rax
mov    (%rax),%rax
mov    0x2bbd(%rip),%rcx
cmp    (%rcx),%rax
je     140a <main+0x2ba>
mov    0x2bc5(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    0x2baf(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    0x2e81(%rip),%r14
mov    (%r14),%esi
lea    0xe97(%rip),%rdi
call   1060 <open@plt>
test   %eax,%eax
js     12b7 <main+0x167>
mov    %eax,%ebp
mov    (%r14),%esi
lea    0xe83(%rip),%rdi
call   1060 <open@plt>
test   %eax,%eax
js     12b7 <main+0x167>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xe70(%rip),%rdx
mov    %rsp,%rdi
mov    $0x40,%esi
mov    %eax,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <snprintf@plt>
cmp    $0x40,%eax
jae    12b7 <main+0x167>
mov    (%r14),%esi
mov    %rsp,%rdi
call   1060 <open@plt>
test   %eax,%eax
js     12b7 <main+0x167>
mov    %eax,%edi
call   1050 <close@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xe3b(%rip),%rdx
mov    %rsp,%rdi
mov    $0x40,%esi
mov    %eax,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <snprintf@plt>
cmp    $0x40,%eax
jae    12b7 <main+0x167>
mov    (%r14),%esi
mov    %rsp,%rdi
call   1060 <open@plt>
test   %eax,%eax
js     12b7 <main+0x167>
mov    %eax,%edi
call   1050 <close@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xdf6(%rip),%rdx
mov    %rsp,%rdi
mov    $0x40,%esi
mov    %eax,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <snprintf@plt>
cmp    $0x40,%eax
jae    12b7 <main+0x167>
mov    (%r14),%esi
mov    %rsp,%rdi
call   1060 <open@plt>
test   %eax,%eax
jns    12b7 <main+0x167>
mov    0x2d78(%rip),%rbx
mov    (%rbx),%rax
mov    0x2d96(%rip),%rcx
cmp    (%rcx),%rax
jne    12b7 <main+0x167>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xdbc(%rip),%rdx
mov    %rsp,%rdi
mov    $0x40,%esi
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <snprintf@plt>
cmp    $0x40,%eax
jae    12b7 <main+0x167>
mov    (%r14),%esi
mov    %rsp,%rdi
call   1060 <open@plt>
test   %eax,%eax
jns    12b7 <main+0x167>
mov    (%rbx),%rax
mov    0x2d0c(%rip),%rcx
cmp    (%rcx),%rax
jne    12b7 <main+0x167>
mov    0x2d10(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"/bin\00"
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str.1 = [10 x i8] c"/bin/true\00"
@.str.2 = [16 x i8] c"/proc/%d/fd/%d/\00"
@.str.3 = [18 x i8] c"/proc/%d/fd/%d/..\00"
@errno = global i64 0
@ENOTDIR = global i64 0
@.str.4 = [22 x i8] c"/proc/%d/fd/999999/..\00"
@ENOENT = global i64 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [64 x i8]
%6 = alloca i32
store i32 0, i32* %1
%7 = load i32, i32* @O_RDONLY
%8 = call i32 @open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %7)
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @exit(i32 %12)
unreachable
14: ; preds = %0
%15 = load i32, i32* @O_RDONLY
%16 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %15)
store i32 %16, i32* %4
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %14
%23 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%24 = call i32 (...) @getpid()
%25 = load i32, i32* %3
%26 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %23, i32 64, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %25)
store i32 %26, i32* %6
%27 = load i32, i32* %6
%28 = icmp slt i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %22
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = icmp uge i64 %31, 64
br i1 %32, label %33, label %36
33: ; preds = %29, %22
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %29
%37 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%38 = load i32, i32* @O_RDONLY
%39 = call i32 @open(i8* %37, i32 %38)
store i32 %39, i32* %2
%40 = load i32, i32* %2
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %36
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %36
%46 = load i32, i32* %2
%47 = call i32 @close(i32 %46)
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%49 = call i32 (...) @getpid()
%50 = load i32, i32* %3
%51 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %48, i32 64, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %49, i32 %50)
store i32 %51, i32* %6
%52 = load i32, i32* %6
%53 = icmp slt i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %45
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = icmp uge i64 %56, 64
br i1 %57, label %58, label %61
58: ; preds = %54, %45
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %54
%62 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%63 = load i32, i32* @O_RDONLY
%64 = call i32 @open(i8* %62, i32 %63)
store i32 %64, i32* %2
%65 = load i32, i32* %2
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %61
%68 = load i32, i32* @EXIT_FAILURE
%69 = call i32 @exit(i32 %68)
unreachable
70: ; preds = %61
%71 = load i32, i32* %2
%72 = call i32 @close(i32 %71)
%73 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%74 = call i32 (...) @getpid()
%75 = load i32, i32* %4
%76 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %73, i32 64, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %74, i32 %75)
store i32 %76, i32* %6
%77 = load i32, i32* %6
%78 = icmp slt i32 %77, 0
br i1 %78, label %83, label %79
79: ; preds = %70
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = icmp uge i64 %81, 64
br i1 %82, label %83, label %86
83: ; preds = %79, %70
%84 = load i32, i32* @EXIT_FAILURE
%85 = call i32 @exit(i32 %84)
unreachable
86: ; preds = %79
%87 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%88 = load i32, i32* @O_RDONLY
%89 = call i32 @open(i8* %87, i32 %88)
store i32 %89, i32* %2
%90 = load i32, i32* %2
%91 = icmp sge i32 %90, 0
br i1 %91, label %96, label %92
92: ; preds = %86
%93 = load i64, i64* @errno
%94 = load i64, i64* @ENOTDIR
%95 = icmp ne i64 %93, %94
br i1 %95, label %96, label %99
96: ; preds = %92, %86
%97 = load i32, i32* @EXIT_FAILURE
%98 = call i32 @exit(i32 %97)
unreachable
99: ; preds = %92
%100 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%101 = call i32 (...) @getpid()
%102 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %100, i32 64, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %101)
store i32 %102, i32* %6
%103 = load i32, i32* %6
%104 = icmp slt i32 %103, 0
br i1 %104, label %109, label %105
105: ; preds = %99
%106 = load i32, i32* %6
%107 = sext i32 %106 to i64
%108 = icmp uge i64 %107, 64
br i1 %108, label %109, label %112
109: ; preds = %105, %99
%110 = load i32, i32* @EXIT_FAILURE
%111 = call i32 @exit(i32 %110)
unreachable
112: ; preds = %105
%113 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%114 = load i32, i32* @O_RDONLY
%115 = call i32 @open(i8* %113, i32 %114)
store i32 %115, i32* %2
%116 = load i32, i32* %2
%117 = icmp sge i32 %116, 0
br i1 %117, label %122, label %118
118: ; preds = %112
%119 = load i64, i64* @errno
%120 = load i64, i64* @ENOENT
%121 = icmp ne i64 %119, %120
br i1 %121, label %122, label %125
122: ; preds = %118, %112
%123 = load i32, i32* @EXIT_FAILURE
%124 = call i32 @exit(i32 %123)
unreachable
125: ; preds = %118
%126 = load i32, i32* @EXIT_SUCCESS
%127 = call i32 @exit(i32 %126)
unreachable
}

LLVM IR (-O2):
@.str = [5 x i8] c"/bin\00"
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str.1 = [10 x i8] c"/bin/true\00"
@.str.2 = [16 x i8] c"/proc/%d/fd/%d/\00"
@.str.3 = [18 x i8] c"/proc/%d/fd/%d/..\00"
@errno = global i64 0
@ENOTDIR = global i64 0
@.str.4 = [22 x i8] c"/proc/%d/fd/999999/..\00"
@ENOENT = global i64 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [64 x i8]
%2 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @O_RDONLY
%4 = tail call i32 @open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %0
%10 = load i32, i32* @O_RDONLY
%11 = tail call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i32, i32* @EXIT_FAILURE
%15 = tail call i32 @exit(i32 %14)
unreachable
16: ; preds = %9
%17 = tail call i32 (...) @getpid()
%18 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %2, i32 64, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %17, i32 %4)
%19 = icmp ugt i32 %18, 63
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, i32* @EXIT_FAILURE
%22 = call i32 @exit(i32 %21)
unreachable
23: ; preds = %16
%24 = load i32, i32* @O_RDONLY
%25 = call i32 @open(i8* %2, i32 %24)
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %23
%31 = call i32 @close(i32 %25)
%32 = call i32 (...) @getpid()
%33 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %2, i32 64, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %32, i32 %4)
%34 = icmp ugt i32 %33, 63
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i32, i32* @EXIT_FAILURE
%37 = call i32 @exit(i32 %36)
unreachable
38: ; preds = %30
%39 = load i32, i32* @O_RDONLY
%40 = call i32 @open(i8* %2, i32 %39)
%41 = icmp slt i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %38
%46 = call i32 @close(i32 %40)
%47 = call i32 (...) @getpid()
%48 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %2, i32 64, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %47, i32 %11)
%49 = icmp ugt i32 %48, 63
br i1 %49, label %50, label %53
50: ; preds = %45
%51 = load i32, i32* @EXIT_FAILURE
%52 = call i32 @exit(i32 %51)
unreachable
53: ; preds = %45
%54 = load i32, i32* @O_RDONLY
%55 = call i32 @open(i8* %2, i32 %54)
%56 = icmp sgt i32 %55, -1
br i1 %56, label %61, label %57
57: ; preds = %53
%58 = load i64, i64* @errno
%59 = load i64, i64* @ENOTDIR
%60 = icmp eq i64 %58, %59
br i1 %60, label %64, label %61
61: ; preds = %57, %53
%62 = load i32, i32* @EXIT_FAILURE
%63 = call i32 @exit(i32 %62)
unreachable
64: ; preds = %57
%65 = call i32 (...) @getpid()
%66 = call i32 (i8*, i32, i8*, i32, ...) @snprintf(i8* %2, i32 64, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %65)
%67 = icmp ugt i32 %66, 63
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = load i32, i32* @EXIT_FAILURE
%70 = call i32 @exit(i32 %69)
unreachable
71: ; preds = %64
%72 = load i32, i32* @O_RDONLY
%73 = call i32 @open(i8* %2, i32 %72)
%74 = icmp sgt i32 %73, -1
br i1 %74, label %79, label %75
75: ; preds = %71
%76 = load i64, i64* @errno
%77 = load i64, i64* @ENOENT
%78 = icmp eq i64 %76, %77
br i1 %78, label %82, label %79
79: ; preds = %75, %71
%80 = load i32, i32* @EXIT_FAILURE
%81 = call i32 @exit(i32 %80)
unreachable
82: ; preds = %75
%83 = load i32, i32* @EXIT_SUCCESS
%84 = call i32 @exit(i32 %83)
unreachable
}