#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 mq_attr {
  int mq_maxmsg;
  int mq_msgsize;
  scalar_t__ mq_curmsgs;
  scalar_t__ mq_flags;
};
typedef scalar_t__ mqd_t;

/* Variables and functions */
scalar_t__ EEXIST;
int O_CREAT;
int O_EXCL;
int O_RDWR;
scalar_t__ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char *malloc(int);
scalar_t__ mq_getattr(scalar_t__, struct mq_attr *);
scalar_t__ mq_open(char *, int, ...);
int mq_receive(scalar_t__, char *, int, unsigned int *);
int /*<<< orphan*/ printf(char *, int, unsigned int, ...);
int /*<<< orphan*/ stderr;
char *strerror(scalar_t__);
int sln_ipc_mq_loop(void) {
  mqd_t mqd;
  struct mq_attr setattr, attr;
  char *recvbuf = NULL;
  unsigned int prio;
  int recvlen;
  setattr.mq_maxmsg = 1024;
  setattr.mq_msgsize = 10;
  setattr.mq_flags = 0;
  setattr.mq_curmsgs = 0;
  mqd = mq_open("/tmp", O_RDWR | O_CREAT | O_EXCL, 0644, &setattr);
  if ((mqd < 0) && (errno != EEXIST)) {
    fprintf(stderr, "mq_open1: %s\n", strerror(errno));
    return -1;
  }
  if ((mqd < 0) && (errno == EEXIST)) {
    mqd = mq_open("/tmp", O_RDWR);
    if (mqd < 0) {
      fprintf(stderr, "mq_open2: %s\n", strerror(errno));
      return -1;
    }
  }
  if (mq_getattr(mqd, &attr) < 0) {
    fprintf(stderr, "mq_getattr: %s\n", strerror(errno));
    return -1;
  }
  printf("flags: %ld, maxmsg: %ld, msgsize: %ld, curmsgs: %ld\n", attr.mq_flags,
         attr.mq_maxmsg, attr.mq_msgsize, attr.mq_curmsgs);
  recvbuf = malloc(attr.mq_msgsize);
  if (NULL == recvbuf) {
    return -1;
  }
  for (;;) {
    recvlen = mq_receive(mqd, recvbuf, attr.mq_msgsize, &prio);
    if (recvlen < 0) {
      fprintf(stderr, "mq_receive: %s\n", strerror(errno));
      continue;
    }
    printf("recvive length: %d, prio: %d, recvbuf: %s\n", recvlen, prio,
           recvbuf);
  }
}


x86 assembly (clang, -O0):
<sln_ipc_mq_loop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movq   $0x0,-0x48(%rbp)
movl   $0x400,-0x28(%rbp)
movl   $0xa,-0x24(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    0x2e3b(%rip),%rax
mov    (%rax),%esi
mov    0x2e4a(%rip),%rax
or     (%rax),%esi
mov    0x2e09(%rip),%rax
or     (%rax),%esi
lea    0xe40(%rip),%rdi
mov    $0x1a4,%edx
lea    -0x28(%rbp),%rcx
mov    $0x0,%al
call   1050 <mq_open@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    1232 <sln_ipc_mq_loop+0xc2>
mov    0x2dd2(%rip),%rax
mov    (%rax),%rax
mov    0x2de0(%rip),%rcx
cmp    (%rcx),%rax
je     1232 <sln_ipc_mq_loop+0xc2>
mov    0x2dc8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2dac(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    %rax,%rdx
lea    0xde4(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <sln_ipc_mq_loop+0x252>
cmpq   $0x0,-0x10(%rbp)
jge    12bb <sln_ipc_mq_loop+0x14b>
mov    0x2d74(%rip),%rax
mov    (%rax),%rax
mov    0x2d82(%rip),%rcx
cmp    (%rcx),%rax
jne    12bb <sln_ipc_mq_loop+0x14b>
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1050 <mq_open@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    12b6 <sln_ipc_mq_loop+0x146>
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2d28(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
mov    -0x58(%rbp),%edi
mov    %rax,%rdx
lea    0xd6e(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <sln_ipc_mq_loop+0x252>
jmp    12bb <sln_ipc_mq_loop+0x14b>
mov    -0x10(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1090 <mq_getattr@plt>
cmp    $0x0,%rax
jge    130b <sln_ipc_mq_loop+0x19b>
mov    0x2cef(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2cd3(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
mov    -0x5c(%rbp),%edi
mov    %rax,%rdx
lea    0xd27(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <sln_ipc_mq_loop+0x252>
mov    -0x30(%rbp),%rax
mov    %eax,%esi
mov    -0x40(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%r8
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
xor    %eax,%eax
cmp    -0x48(%rbp),%rax
jne    134d <sln_ipc_mq_loop+0x1dd>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c2 <sln_ipc_mq_loop+0x252>
jmp    1352 <sln_ipc_mq_loop+0x1e2>
mov    -0x10(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x3c(%rbp),%edx
lea    -0x4c(%rbp),%rcx
call   1070 <mq_receive@plt>
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jge    13a5 <sln_ipc_mq_loop+0x235>
mov    0x2c4e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2c32(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
mov    -0x60(%rbp),%edi
mov    %rax,%rdx
lea    0xccb(%rip),%rsi
call   1040 <fprintf@plt>
jmp    1352 <sln_ipc_mq_loop+0x1e2>
mov    -0x50(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    -0x48(%rbp),%rcx
lea    0xcc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1352 <sln_ipc_mq_loop+0x1e2>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sln_ipc_mq_loop>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movabs $0xa00000400,%rax
mov    %rax,0x20(%rsp)
xorps  %xmm0,%xmm0
mov    0x2e49(%rip),%rbx
mov    0x2e5a(%rip),%rax
mov    (%rax),%esi
or     (%rbx),%esi
movups %xmm0,0x28(%rsp)
mov    0x2e12(%rip),%rax
or     (%rax),%esi
lea    0xe49(%rip),%rdi
lea    0x20(%rsp),%rcx
mov    $0x1a4,%edx
xor    %eax,%eax
call   1050 <mq_open@plt>
mov    %rax,%r14
test   %rax,%rax
js     1296 <sln_ipc_mq_loop+0x126>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1090 <mq_getattr@plt>
test   %rax,%rax
js     12e4 <sln_ipc_mq_loop+0x174>
mov    0x18(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    0x10(%rsp),%r8
lea    0xe2f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%ebp
mov    %ebp,%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     1324 <sln_ipc_mq_loop+0x1b4>
mov    %rax,%rbx
lea    0x4(%rsp),%r15
lea    0xe3a(%rip),%r12
lea    0xe43(%rip),%r13
jmp    1257 <sln_ipc_mq_loop+0xe7>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x4(%rsp),%edx
mov    %r13,%rdi
mov    %eax,%esi
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%ebp
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %r15,%rcx
call   1070 <mq_receive@plt>
test   %eax,%eax
jns    1240 <sln_ipc_mq_loop+0xd0>
mov    0x2d56(%rip),%rax
mov    (%rax),%ebp
mov    0x2d3d(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
mov    %ebp,%edi
mov    %r12,%rsi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    0xc(%rsp),%ebp
jmp    1257 <sln_ipc_mq_loop+0xe7>
mov    0x2d1b(%rip),%rbp
mov    0x0(%rbp),%rdi
mov    0x2d28(%rip),%rax
cmp    (%rax),%rdi
jne    1305 <sln_ipc_mq_loop+0x195>
mov    (%rbx),%esi
lea    0xd4a(%rip),%rdi
xor    %eax,%eax
call   1050 <mq_open@plt>
mov    %rax,%r14
test   %rax,%rax
jns    11d4 <sln_ipc_mq_loop+0x64>
mov    0x2cf8(%rip),%rax
mov    (%rax),%ebx
mov    0x0(%rbp),%rdi
call   1080 <strerror@plt>
lea    0xd31(%rip),%rsi
jmp    131a <sln_ipc_mq_loop+0x1aa>
mov    0x2cdd(%rip),%rax
mov    (%rax),%ebx
mov    0x2cc4(%rip),%rax
mov    (%rax),%rdi
call   1080 <strerror@plt>
lea    0xd1e(%rip),%rsi
jmp    131a <sln_ipc_mq_loop+0x1aa>
mov    0x2cbc(%rip),%rax
mov    (%rax),%ebx
call   1080 <strerror@plt>
lea    0xceb(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.mq_attr = type { i32, i32, i64, i64 }
@.str = [5 x i8] c"/tmp\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_EXCL = global i32 0
@errno = global i64 0
@EEXIST = global i64 0
@stderr = global i32 0
@.str.1 = [14 x i8] c"mq_open1: %s\0A\00"
@.str.2 = [14 x i8] c"mq_open2: %s\0A\00"
@.str.3 = [16 x i8] c"mq_getattr: %s\0A\00"
@.str.4 = [53 x i8] c"flags: %ld, maxmsg: %ld, msgsize: %ld, curmsgs: %ld\0A\00"
@.str.5 = [16 x i8] c"mq_receive: %s\0A\00"
@.str.6 = [43 x i8] c"recvive length: %d, prio: %d, recvbuf: %s\0A\00"
define i32 @sln_ipc_mq_loop() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca %struct.mq_attr
%4 = alloca %struct.mq_attr
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* null, i8** %5
%8 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i32 0, i32 0
store i32 1024, i32* %8
%9 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i32 0, i32 1
store i32 10, i32* %9
%10 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i32 0, i32 3
store i64 0, i64* %10
%11 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i32 0, i32 2
store i64 0, i64* %11
%12 = load i32, i32* @O_RDWR
%13 = load i32, i32* @O_CREAT
%14 = or i32 %12, %13
%15 = load i32, i32* @O_EXCL
%16 = or i32 %14, %15
%17 = call i64 (i8*, i32, ...) @mq_open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %16, i32 420, %struct.mq_attr* %3)
store i64 %17, i64* %2
%18 = load i64, i64* %2
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %29
20: ; preds = %0
%21 = load i64, i64* @errno
%22 = load i64, i64* @EEXIST
%23 = icmp ne i64 %21, %22
br i1 %23, label %24, label %29
24: ; preds = %20
%25 = load i32, i32* @stderr
%26 = load i64, i64* @errno
%27 = call i8* @strerror(i64 %26)
%28 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %27)
store i32 -1, i32* %1
br label %92
29: ; preds = %20, %0
%30 = load i64, i64* %2
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %47
32: ; preds = %29
%33 = load i64, i64* @errno
%34 = load i64, i64* @EEXIST
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %47
36: ; preds = %32
%37 = load i32, i32* @O_RDWR
%38 = call i64 (i8*, i32, ...) @mq_open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %37)
store i64 %38, i64* %2
%39 = load i64, i64* %2
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = load i32, i32* @stderr
%43 = load i64, i64* @errno
%44 = call i8* @strerror(i64 %43)
%45 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %44)
store i32 -1, i32* %1
br label %92
46: ; preds = %36
br label %47
47: ; preds = %46, %32, %29
%48 = load i64, i64* %2
%49 = call i64 @mq_getattr(i64 %48, %struct.mq_attr* %4)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = load i64, i64* @errno
%54 = call i8* @strerror(i64 %53)
%55 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %54)
store i32 -1, i32* %1
br label %92
56: ; preds = %47
%57 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 3
%58 = load i64, i64* %57
%59 = trunc i64 %58 to i32
%60 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 0
%61 = load i32, i32* %60
%62 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 1
%63 = load i32, i32* %62
%64 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 2
%65 = load i64, i64* %64
%66 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %61, i32 %63, i64 %65)
%67 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 1
%68 = load i32, i32* %67
%69 = call i8* @malloc(i32 %68)
store i8* %69, i8** %5
%70 = load i8*, i8** %5
%71 = icmp eq i8* null, %70
br i1 %71, label %72, label %73
72: ; preds = %56
store i32 -1, i32* %1
br label %92
73: ; preds = %56
br label %74
74: ; preds = %87, %82, %73
%75 = load i64, i64* %2
%76 = load i8*, i8** %5
%77 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %4, i32 0, i32 1
%78 = load i32, i32* %77
%79 = call i32 @mq_receive(i64 %75, i8* %76, i32 %78, i32* %6)
store i32 %79, i32* %7
%80 = load i32, i32* %7
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %74
%83 = load i32, i32* @stderr
%84 = load i64, i64* @errno
%85 = call i8* @strerror(i64 %84)
%86 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %85)
br label %74
87: ; preds = %74
%88 = load i32, i32* %7
%89 = load i32, i32* %6
%90 = load i8*, i8** %5
%91 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %88, i32 %89, i8* %90)
br label %74
92: ; preds = %72, %51, %41, %24
%93 = load i32, i32* %1
ret i32 %93
}

LLVM IR (-O2):
%struct.mq_attr = type { i32, i32, i64, i64 }
@.str = [5 x i8] c"/tmp\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_EXCL = global i32 0
@errno = global i64 0
@EEXIST = global i64 0
@stderr = global i32 0
@.str.1 = [14 x i8] c"mq_open1: %s\0A\00"
@.str.2 = [14 x i8] c"mq_open2: %s\0A\00"
@.str.3 = [16 x i8] c"mq_getattr: %s\0A\00"
@.str.4 = [53 x i8] c"flags: %ld, maxmsg: %ld, msgsize: %ld, curmsgs: %ld\0A\00"
@.str.5 = [16 x i8] c"mq_receive: %s\0A\00"
@.str.6 = [43 x i8] c"recvive length: %d, prio: %d, recvbuf: %s\0A\00"
define i32 @sln_ipc_mq_loop() {
%1 = alloca %struct.mq_attr
%2 = alloca %struct.mq_attr
%3 = alloca i32
%4 = bitcast %struct.mq_attr* %1 to i8*
%5 = bitcast %struct.mq_attr* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %1, i64 0, i32 0
store i32 1024, i32* %7
%8 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %1, i64 0, i32 1
store i32 10, i32* %8
%9 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %1, i64 0, i32 2
%10 = bitcast i64* %9 to i8*
%11 = load i32, i32* @O_RDWR
%12 = load i32, i32* @O_CREAT
%13 = or i32 %12, %11
%14 = load i32, i32* @O_EXCL
%15 = or i32 %13, %14
%16 = call i64 (i8*, i32, ...) @mq_open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %15, i32 420, %struct.mq_attr* %1)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %35
18: ; preds = %0
%19 = load i64, i64* @errno
%20 = load i64, i64* @EEXIST
%21 = icmp eq i64 %19, %20
br i1 %21, label %26, label %22
22: ; preds = %18
%23 = load i32, i32* @stderr
%24 = call i8* @strerror(i64 %19)
%25 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %24)
br label %72
26: ; preds = %18
%27 = load i32, i32* @O_RDWR
%28 = call i64 (i8*, i32, ...) @mq_open(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = load i32, i32* @stderr
%32 = load i64, i64* @errno
%33 = call i8* @strerror(i64 %32)
%34 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %33)
br label %72
35: ; preds = %0, %26
%36 = phi i64 [ %28, %26 ], [ %16, %0 ]
%37 = call i64 @mq_getattr(i64 %36, %struct.mq_attr* %2)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = load i32, i32* @stderr
%41 = load i64, i64* @errno
%42 = call i8* @strerror(i64 %41)
%43 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %42)
br label %72
44: ; preds = %35
%45 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 3
%46 = load i64, i64* %45
%47 = trunc i64 %46 to i32
%48 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 0
%49 = load i32, i32* %48
%50 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 1
%51 = load i32, i32* %50
%52 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 2
%53 = load i64, i64* %52
%54 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %47, i32 %49, i32 %51, i64 %53)
%55 = load i32, i32* %50
%56 = call i8* @malloc(i32 %55)
%57 = icmp eq i8* %56, null
br i1 %57, label %72, label %58
58: ; preds = %44, %67
%59 = phi i32 [ %68, %67 ], [ %55, %44 ]
%60 = call i32 @mq_receive(i64 %36, i8* %56, i32 %59, i32* %3)
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = load i32, i32* @stderr
%64 = load i64, i64* @errno
%65 = call i8* @strerror(i64 %64)
%66 = call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %65)
br label %67
67: ; preds = %62, %69
%68 = load i32, i32* %50
br label %58
69: ; preds = %58
%70 = load i32, i32* %3
%71 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %60, i32 %70, i8* %56)
br label %67
72: ; preds = %44, %39, %30, %22
ret i32 -1
}