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

/* Variables and functions */
int ENOENT;
int ENOTDIR;
int /*<<< orphan*/ F_OK;
int access(char *, int /*<<< orphan*/);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, int, int);
int /*<<< orphan*/ stderr;
char *strerror(int);
int list_driver_accessible(int bus) {
  ((void)0);
  int ret = -1;
  char *dev_file_format = "/sys/bus/i2c/devices"
                          "/%d-00%02x/eeprom";
  char dev_file_name[40];
  bool driver_found = false;
  if (access("/sys/bus/i2c/devices", F_OK) < 0) {
    fprintf(stderr, "Failed accessing path %s: %s (%d)\n",
            "/sys/bus/i2c/devices", strerror(errno), -errno);
    return ret;
  }
  int i = (bus < 0) ? 0 : bus;
  int end = (bus < 0) ? 255 : bus;
  for (; i <= end; i++) {
    for (int j = 0x03; j <= 0x77; j++) {
      sprintf(dev_file_name, dev_file_format, i, j);
      int res = access(dev_file_name, F_OK);
      if (res < 0 && (errno == ENOENT || errno == ENOTDIR))
        continue;
      driver_found = true;
      if (res < 0) {
        fprintf(stderr, "Failed accessing device %s: %s (%d)\n", dev_file_name,
                strerror(errno), -errno);
        continue;
      }
      ret = 0;
      printf("EEPROM device file found at: %s\n", dev_file_name);
    }
  }
  if (!driver_found) {
    fprintf(stderr, "No "
                    "EEPROM device"
                    " was found");
    (bus >= 0) ? fprintf(stderr, " on bus %d\n", bus) : fprintf(stderr, "\n");
    fprintf(stderr, "Is "
                    "EEPROM"
                    " driver loaded?\n");
  }
  return ret;
}


x86 assembly (clang, -O0):
<list_driver_accessible>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
lea    0xe97(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x44(%rbp)
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
lea    0xea2(%rip),%rdi
call   1050 <access@plt>
cmp    $0x0,%eax
jge    11df <list_driver_accessible+0x8f>
mov    0x2e3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x58(%rbp),%edi
mov    %rax,%rcx
xor    %r8d,%r8d
mov    0x2e14(%rip),%rax
sub    (%rax),%r8d
lea    0xe75(%rip),%rsi
lea    0xe59(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13b9 <list_driver_accessible+0x269>
cmpl   $0x0,-0x8(%rbp)
jge    11f3 <list_driver_accessible+0xa3>
xor    %eax,%eax
mov    %eax,-0x5c(%rbp)
jmp    11f9 <list_driver_accessible+0xa9>
mov    -0x8(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1216 <list_driver_accessible+0xc6>
mov    $0xff,%eax
mov    %eax,-0x60(%rbp)
jmp    121c <list_driver_accessible+0xcc>
mov    -0x8(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jg     133b <list_driver_accessible+0x1eb>
movl   $0x3,-0x50(%rbp)
cmpl   $0x77,-0x50(%rbp)
jg     1328 <list_driver_accessible+0x1d8>
lea    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x48(%rbp),%edx
mov    -0x50(%rbp),%ecx
call   1060 <sprintf@plt>
lea    -0x40(%rbp),%rdi
mov    0x2d5b(%rip),%rax
mov    (%rax),%esi
call   1050 <access@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jge    12a6 <list_driver_accessible+0x156>
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
mov    0x2d3f(%rip),%rcx
cmp    (%rcx),%eax
je     12a1 <list_driver_accessible+0x151>
mov    0x2d40(%rip),%rax
mov    (%rax),%eax
mov    0x2d5f(%rip),%rcx
cmp    (%rcx),%eax
jne    12a6 <list_driver_accessible+0x156>
jmp    131a <list_driver_accessible+0x1ca>
movl   $0x1,-0x44(%rbp)
cmpl   $0x0,-0x54(%rbp)
jge    1303 <list_driver_accessible+0x1b3>
mov    0x2d1a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
call   1070 <strerror@plt>
mov    -0x6c(%rbp),%edi
mov    -0x68(%rbp),%rdx
mov    %rax,%rcx
xor    %r8d,%r8d
mov    0x2ce3(%rip),%rax
sub    (%rax),%r8d
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    131a <list_driver_accessible+0x1ca>
movl   $0x0,-0xc(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xd6e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1235 <list_driver_accessible+0xe5>
jmp    132d <list_driver_accessible+0x1dd>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1222 <list_driver_accessible+0xd2>
cmpl   $0x0,-0x44(%rbp)
jne    13b3 <list_driver_accessible+0x263>
mov    0x2c8c(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
cmpl   $0x0,-0x8(%rbp)
jl     1385 <list_driver_accessible+0x235>
mov    0x2c6b(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xd46(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    139c <list_driver_accessible+0x24c>
mov    0x2c4c(%rip),%rax
mov    (%rax),%edi
lea    0xcec(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c35(%rip),%rax
mov    (%rax),%edi
lea    0xd1f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<list_driver_accessible>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %edi,%ebp
mov    0x2e51(%rip),%rax
mov    (%rax),%esi
lea    0xeb6(%rip),%rdi
call   1050 <access@plt>
test   %eax,%eax
js     1284 <list_driver_accessible+0x134>
xor    %eax,%eax
test   %ebp,%ebp
mov    %ebp,%r15d
cmovs  %eax,%r15d
mov    $0xff,%ecx
cmovns %ebp,%ecx
mov    $0xffffffff,%r14d
cmp    %ecx,%r15d
ja     12cd <list_driver_accessible+0x17d>
mov    %ebp,0x8(%rsp)
mov    $0xffffffff,%r14d
lea    0xe50(%rip),%r12
lea    0x10(%rsp),%rbx
xor    %ebp,%ebp
mov    %ecx,0xc(%rsp)
jmp    11d4 <list_driver_accessible+0x84>
nopl   (%rax)
lea    0x1(%r15),%eax
mov    0xc(%rsp),%ecx
cmp    %ecx,%r15d
mov    %eax,%r15d
je     12c5 <list_driver_accessible+0x175>
mov    $0x3,%r13d
jmp    1201 <list_driver_accessible+0xb1>
nopl   0x0(%rax)
lea    0xe9c(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %r14d,%r14d
mov    $0x1,%ebp
add    $0x1,%r13d
cmp    $0x78,%r13d
je     11c0 <list_driver_accessible+0x70>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
mov    %r13d,%ecx
call   1060 <sprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <access@plt>
test   %eax,%eax
jns    11e0 <list_driver_accessible+0x90>
mov    0x2da2(%rip),%rax
mov    (%rax),%edi
mov    0x2d89(%rip),%rax
cmp    (%rax),%edi
je     11f7 <list_driver_accessible+0xa7>
mov    0x2db6(%rip),%rax
cmp    (%rax),%edi
je     11f7 <list_driver_accessible+0xa7>
mov    %r14d,%ebp
mov    0x2d88(%rip),%rax
mov    (%rax),%r14d
call   1070 <strerror@plt>
xor    %r8d,%r8d
mov    0x2d6e(%rip),%rcx
sub    (%rcx),%r8d
mov    %r14d,%edi
mov    %ebp,%r14d
lea    0xdec(%rip),%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    11f2 <list_driver_accessible+0xa2>
mov    0x2d4d(%rip),%rax
mov    (%rax),%ebx
mov    0x2d3c(%rip),%rbp
mov    0x0(%rbp),%edi
call   1070 <strerror@plt>
xor    %r8d,%r8d
sub    0x0(%rbp),%r8d
lea    0xd91(%rip),%rsi
lea    0xd75(%rip),%rdx
mov    %ebx,%edi
mov    %rax,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xffffffff,%r14d
jmp    131a <list_driver_accessible+0x1ca>
test   %ebp,%ebp
mov    0x8(%rsp),%ebp
jne    131a <list_driver_accessible+0x1ca>
mov    0x2d04(%rip),%rbx
mov    (%rbx),%edi
lea    0xdc7(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
test   %ebp,%ebp
js     12fc <list_driver_accessible+0x1ac>
lea    0xdce(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    130a <list_driver_accessible+0x1ba>
lea    0xd7e(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdb8(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %r14d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"/sys/bus/i2c/devices/%d-00%02x/eeprom\00"
@.str.1 = [21 x i8] c"/sys/bus/i2c/devices\00"
@F_OK = global i32 0
@stderr = global i32 0
@.str.2 = [35 x i8] c"Failed accessing path %s: %s (%d)\0A\00"
@errno = global i32 0
@ENOENT = global i32 0
@ENOTDIR = global i32 0
@.str.3 = [37 x i8] c"Failed accessing device %s: %s (%d)\0A\00"
@.str.4 = [33 x i8] c"EEPROM device file found at: %s\0A\00"
@.str.5 = [27 x i8] c"No EEPROM device was found\00"
@.str.6 = [12 x i8] c" on bus %d\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [26 x i8] c"Is EEPROM driver loaded?\0A\00"
define i32 @list_driver_accessible(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca [40 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %3
store i32 -1, i32* %4
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8** %5
store i32 0, i32* %7
%12 = load i32, i32* @F_OK
%13 = call i32 @access(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %1
%16 = load i32, i32* @stderr
%17 = load i32, i32* @errno
%18 = call i8* @strerror(i32 %17)
%19 = load i32, i32* @errno
%20 = sub nsw i32 0, %19
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %18, i32 %20)
%22 = load i32, i32* %4
store i32 %22, i32* %2
br label %108
23: ; preds = %1
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %23
br label %29
27: ; preds = %23
%28 = load i32, i32* %3
br label %29
29: ; preds = %27, %26
%30 = phi i32 [ 0, %26 ], [ %28, %27 ]
store i32 %30, i32* %8
%31 = load i32, i32* %3
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
br label %36
34: ; preds = %29
%35 = load i32, i32* %3
br label %36
36: ; preds = %34, %33
%37 = phi i32 [ 255, %33 ], [ %35, %34 ]
store i32 %37, i32* %9
br label %38
38: ; preds = %84, %36
%39 = load i32, i32* %8
%40 = load i32, i32* %9
%41 = icmp sle i32 %39, %40
br i1 %41, label %42, label %87
42: ; preds = %38
store i32 3, i32* %10
br label %43
43: ; preds = %80, %42
%44 = load i32, i32* %10
%45 = icmp sle i32 %44, 119
br i1 %45, label %46, label %83
46: ; preds = %43
%47 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%48 = load i8*, i8** %5
%49 = load i32, i32* %8
%50 = load i32, i32* %10
%51 = call i32 @sprintf(i8* %47, i8* %48, i32 %49, i32 %50)
%52 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%53 = load i32, i32* @F_OK
%54 = call i32 @access(i8* %52, i32 %53)
store i32 %54, i32* %11
%55 = load i32, i32* %11
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %66
57: ; preds = %46
%58 = load i32, i32* @errno
%59 = load i32, i32* @ENOENT
%60 = icmp eq i32 %58, %59
br i1 %60, label %65, label %61
61: ; preds = %57
%62 = load i32, i32* @errno
%63 = load i32, i32* @ENOTDIR
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %66
65: ; preds = %61, %57
br label %80
66: ; preds = %61, %46
store i32 1, i32* %7
%67 = load i32, i32* %11
%68 = icmp slt i32 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %66
%70 = load i32, i32* @stderr
%71 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%72 = load i32, i32* @errno
%73 = call i8* @strerror(i32 %72)
%74 = load i32, i32* @errno
%75 = sub nsw i32 0, %74
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* %71, i8* %73, i32 %75)
br label %80
77: ; preds = %66
store i32 0, i32* %4
%78 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%79 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %78)
br label %80
80: ; preds = %77, %69, %65
%81 = load i32, i32* %10
%82 = add nsw i32 %81, 1
store i32 %82, i32* %10
br label %43
83: ; preds = %43
br label %84
84: ; preds = %83
%85 = load i32, i32* %8
%86 = add nsw i32 %85, 1
store i32 %86, i32* %8
br label %38
87: ; preds = %38
%88 = load i32, i32* %7
%89 = icmp ne i32 %88, 0
br i1 %89, label %106, label %90
90: ; preds = %87
%91 = load i32, i32* @stderr
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%93 = load i32, i32* %3
%94 = icmp sge i32 %93, 0
br i1 %94, label %95, label %99
95: ; preds = %90
%96 = load i32, i32* @stderr
%97 = load i32, i32* %3
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %97)
br label %102
99: ; preds = %90
%100 = load i32, i32* @stderr
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %102
102: ; preds = %99, %95
%103 = phi i32 [ %98, %95 ], [ %101, %99 ]
%104 = load i32, i32* @stderr
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
br label %106
106: ; preds = %102, %87
%107 = load i32, i32* %4
store i32 %107, i32* %2
br label %108
108: ; preds = %106, %15
%109 = load i32, i32* %2
ret i32 %109
}

LLVM IR (-O2):
@.str = [38 x i8] c"/sys/bus/i2c/devices/%d-00%02x/eeprom\00"
@.str.1 = [21 x i8] c"/sys/bus/i2c/devices\00"
@F_OK = global i32 0
@stderr = global i32 0
@.str.2 = [35 x i8] c"Failed accessing path %s: %s (%d)\0A\00"
@errno = global i32 0
@ENOENT = global i32 0
@ENOTDIR = global i32 0
@.str.3 = [37 x i8] c"Failed accessing device %s: %s (%d)\0A\00"
@.str.4 = [33 x i8] c"EEPROM device file found at: %s\0A\00"
@.str.5 = [27 x i8] c"No EEPROM device was found\00"
@.str.6 = [12 x i8] c" on bus %d\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [26 x i8] c"Is EEPROM driver loaded?\0A\00"
define i32 @list_driver_accessible(i32 %0) {
%2 = alloca [40 x i8]
%3 = getelementptr inbounds [40 x i8], [40 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @F_OK
%5 = tail call i32 @access(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = load i32, i32* @errno
%10 = tail call i8* @strerror(i32 %9)
%11 = load i32, i32* @errno
%12 = sub nsw i32 0, %11
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %10, i32 %12)
br label %69
14: ; preds = %1
%15 = icmp slt i32 %0, 0
%16 = select i1 %15, i32 0, i32 %0
%17 = select i1 %15, i32 255, i32 %0
%18 = icmp ugt i32 %16, %17
br i1 %18, label %56, label %19
19: ; preds = %14, %23
%20 = phi i32 [ %51, %23 ], [ -1, %14 ]
%21 = phi i32 [ %24, %23 ], [ %16, %14 ]
%22 = phi i32 [ %50, %23 ], [ 0, %14 ]
br label %26
23: ; preds = %49
%24 = add nuw i32 %21, 1
%25 = icmp eq i32 %21, %17
br i1 %25, label %54, label %19
26: ; preds = %19, %49
%27 = phi i32 [ 3, %19 ], [ %52, %49 ]
%28 = phi i32 [ %20, %19 ], [ %51, %49 ]
%29 = phi i32 [ %22, %19 ], [ %50, %49 ]
%30 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %21, i32 %27)
%31 = load i32, i32* @F_OK
%32 = call i32 @access(i8* %3, i32 %31)
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %47
34: ; preds = %26
%35 = load i32, i32* @errno
%36 = load i32, i32* @ENOENT
%37 = icmp eq i32 %35, %36
%38 = load i32, i32* @ENOTDIR
%39 = icmp eq i32 %35, %38
%40 = select i1 %37, i1 true, i1 %39
br i1 %40, label %49, label %41
41: ; preds = %34
%42 = load i32, i32* @stderr
%43 = call i8* @strerror(i32 %35)
%44 = load i32, i32* @errno
%45 = sub nsw i32 0, %44
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %43, i32 %45)
br label %49
47: ; preds = %26
%48 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %3)
br label %49
49: ; preds = %34, %47, %41
%50 = phi i32 [ 1, %41 ], [ 1, %47 ], [ %29, %34 ]
%51 = phi i32 [ %28, %41 ], [ 0, %47 ], [ %28, %34 ]
%52 = add nuw nsw i32 %27, 1
%53 = icmp eq i32 %52, 120
br i1 %53, label %23, label %26
54: ; preds = %23
%55 = icmp eq i32 %50, 0
br i1 %55, label %56, label %69
56: ; preds = %14, %54
%57 = phi i32 [ %51, %54 ], [ -1, %14 ]
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%60 = icmp sgt i32 %0, -1
%61 = load i32, i32* @stderr
br i1 %60, label %62, label %64
62: ; preds = %56
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %0)
br label %66
64: ; preds = %56
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %66
66: ; preds = %64, %62
%67 = load i32, i32* @stderr
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
br label %69
69: ; preds = %54, %66, %7
%70 = phi i32 [ -1, %7 ], [ %57, %66 ], [ %51, %54 ]
ret i32 %70
}