#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_msgsize;
  int mq_maxmsg;
  int mq_curmsgs;
};
typedef scalar_t__ mqd_t;
typedef int /*<<< orphan*/ buff;

/* Variables and functions */
int O_CREAT;
int O_RDWR;
int /*<<< orphan*/ exit(int);
int mq_close(scalar_t__);
int mq_getattr(scalar_t__, struct mq_attr *);
scalar_t__ mq_open(char *, int, int, struct mq_attr *);
int mq_receive(scalar_t__, char *, int, int /*<<< orphan*/);
int mq_send(scalar_t__, char *, scalar_t__, int);
int mq_unlink(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strlen(char *);
int main() {
  int err, leido;
  char buff[1024];
  mqd_t mqd;
  struct mq_attr attr, attr_rcv;
  attr.mq_msgsize = sizeof(buff);
  attr.mq_maxmsg = 5;
  mqd = mq_open("/MQ_TD3", O_RDWR | O_CREAT, 0777, &attr);
  if (mqd < 0) {
    printf("error en mq_open()");
    exit(-1);
  }
  printf("Cola de mensajes creada\n");
  if (mq_getattr(mqd, &attr_rcv) == -1) {
    printf("error en mq_getattr()");
    exit(-1);
  }
  printf("Nro max. de mensajes en cola de mensajes: %ld\n", attr_rcv.mq_maxmsg);
  printf("Longitud max. de mensaje: %ld\n", attr_rcv.mq_msgsize);
  printf("Nros de mensajes pendientes en cola de mensajes: %ld\n",
         attr_rcv.mq_curmsgs);
  err = mq_send(mqd, "DATA PARA OTROS PROCESOS",
                strlen("DATA PARA OTROS PROCESOS") + 1, 1);
  if (err == -1) {
    printf("error en mq_send()");
    exit(-1);
  }
  printf("Mensaje enviado (%d)\n", err);
  leido = mq_receive(mqd, buff, attr.mq_msgsize, 0);
  if ((leido < 0)) {
    printf("error en mq_receive()");
    exit(-1);
  }
  printf("Mensaje leido: %s\n", buff);
  err = mq_close(mqd);
  if ((err < 0)) {
    printf("error en mq_close()");
    exit(-1);
  }
  printf("Cola de mensajes cerrada (%d)\n", err);
  err = mq_unlink("/MQ_TD3");
  if (err == -1) {
    printf("error en mq_unlink()");
    exit(-1);
  }
  printf("Cola de mensajes eliminada (%d)\n", err);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x400,-0x428(%rbp)
movl   $0x5,-0x424(%rbp)
mov    0x2e23(%rip),%rax
mov    (%rax),%esi
mov    0x2e32(%rip),%rax
or     (%rax),%esi
lea    0xe31(%rip),%rdi
mov    $0x1ff,%edx
lea    -0x428(%rbp),%rcx
call   1070 <mq_open@plt>
mov    %rax,-0x418(%rbp)
cmpq   $0x0,-0x418(%rbp)
jge    120d <main+0x7d>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rdi
lea    -0x438(%rbp),%rsi
call   10b0 <mq_getattr@plt>
cmp    $0xffffffff,%eax
jne    124f <main+0xbf>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x434(%rbp),%esi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x438(%rbp),%esi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x430(%rbp),%esi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rax
mov    %rax,-0x440(%rbp)
lea    0xe2e(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x440(%rbp),%rdi
mov    %rax,%rdx
add    $0x1,%rdx
lea    0xe14(%rip),%rsi
mov    $0x1,%ecx
call   1060 <mq_send@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    12e9 <main+0x159>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x8(%rbp),%esi
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rdi
lea    -0x410(%rbp),%rsi
mov    -0x428(%rbp),%edx
xor    %ecx,%ecx
call   1080 <mq_receive@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    133a <main+0x1aa>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    -0x410(%rbp),%rsi
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rdi
call   1050 <mq_close@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1380 <main+0x1f0>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x8(%rbp),%esi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc68(%rip),%rdi
call   10a0 <mq_unlink@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    13c2 <main+0x232>
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x8(%rbp),%esi
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x420,%rsp
movabs $0x500000400,%rax
mov    %rax,0x10(%rsp)
mov    0x2e32(%rip),%rax
mov    0x2e43(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
lea    0xe40(%rip),%rdi
lea    0x10(%rsp),%rcx
mov    $0x1ff,%edx
call   1070 <mq_open@plt>
test   %rax,%rax
jns    11e0 <main+0x50>
lea    0xe2d(%rip),%rdi
jmp    12ea <main+0x15a>
mov    %rax,%rbx
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   10b0 <mq_getattr@plt>
cmp    $0xffffffff,%eax
jne    120b <main+0x7b>
lea    0xe15(%rip),%rdi
jmp    12ea <main+0x15a>
mov    0x4(%rsp),%esi
lea    0xe1b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%esi
lea    0xe39(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xe46(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe6e(%rip),%rsi
mov    $0x19,%edx
mov    %rbx,%rdi
mov    $0x1,%ecx
call   1060 <mq_send@plt>
cmp    $0xffffffff,%eax
jne    126a <main+0xda>
lea    0xe69(%rip),%rdi
jmp    12ea <main+0x15a>
lea    0xe70(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
xor    %ecx,%ecx
call   1080 <mq_receive@plt>
test   %eax,%eax
jns    129a <main+0x10a>
lea    0xe5f(%rip),%rdi
jmp    12ea <main+0x15a>
lea    0xe6c(%rip),%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <mq_close@plt>
test   %eax,%eax
jns    12c2 <main+0x132>
lea    0xe60(%rip),%rdi
jmp    12ea <main+0x15a>
lea    0xe6b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd27(%rip),%rdi
call   10a0 <mq_unlink@plt>
cmp    $0xffffffff,%eax
jne    12fb <main+0x16b>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    0xe66(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.mq_attr = type { i32, i32, i32 }
@.str = [8 x i8] c"/MQ_TD3\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@.str.1 = [19 x i8] c"error en mq_open()\00"
@.str.2 = [25 x i8] c"Cola de mensajes creada\0A\00"
@.str.3 = [22 x i8] c"error en mq_getattr()\00"
@.str.4 = [47 x i8] c"Nro max. de mensajes en cola de mensajes: %ld\0A\00"
@.str.5 = [31 x i8] c"Longitud max. de mensaje: %ld\0A\00"
@.str.6 = [54 x i8] c"Nros de mensajes pendientes en cola de mensajes: %ld\0A\00"
@.str.7 = [25 x i8] c"DATA PARA OTROS PROCESOS\00"
@.str.8 = [19 x i8] c"error en mq_send()\00"
@.str.9 = [22 x i8] c"Mensaje enviado (%d)\0A\00"
@.str.10 = [22 x i8] c"error en mq_receive()\00"
@.str.11 = [19 x i8] c"Mensaje leido: %s\0A\00"
@.str.12 = [20 x i8] c"error en mq_close()\00"
@.str.13 = [31 x i8] c"Cola de mensajes cerrada (%d)\0A\00"
@.str.14 = [21 x i8] c"error en mq_unlink()\00"
@.str.15 = [33 x i8] c"Cola de mensajes eliminada (%d)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1024 x i8]
%5 = alloca i64
%6 = alloca %struct.mq_attr
%7 = alloca %struct.mq_attr
store i32 0, i32* %1
%8 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %6, i32 0, i32 0
store i32 1024, i32* %8
%9 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %6, i32 0, i32 1
store i32 5, i32* %9
%10 = load i32, i32* @O_RDWR
%11 = load i32, i32* @O_CREAT
%12 = or i32 %10, %11
%13 = call i64 @mq_open(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %12, i32 511, %struct.mq_attr* %6)
store i64 %13, i64* %5
%14 = load i64, i64* %5
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @exit(i32 -1)
unreachable
19: ; preds = %0
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%21 = load i64, i64* %5
%22 = call i32 @mq_getattr(i64 %21, %struct.mq_attr* %7)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 @exit(i32 -1)
unreachable
27: ; preds = %19
%28 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %7, i32 0, i32 1
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %7, i32 0, i32 0
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %7, i32 0, i32 2
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i32 %35)
%37 = load i64, i64* %5
%38 = call i64 @strlen(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%39 = add nsw i64 %38, 1
%40 = call i32 @mq_send(i64 %37, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 %39, i32 1)
store i32 %40, i32* %2
%41 = load i32, i32* %2
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %46
43: ; preds = %27
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%45 = call i32 @exit(i32 -1)
unreachable
46: ; preds = %27
%47 = load i32, i32* %2
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %47)
%49 = load i64, i64* %5
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%51 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %6, i32 0, i32 0
%52 = load i32, i32* %51
%53 = call i32 @mq_receive(i64 %49, i8* %50, i32 %52, i32 0)
store i32 %53, i32* %3
%54 = load i32, i32* %3
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %46
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%58 = call i32 @exit(i32 -1)
unreachable
59: ; preds = %46
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %60)
%62 = load i64, i64* %5
%63 = call i32 @mq_close(i64 %62)
store i32 %63, i32* %2
%64 = load i32, i32* %2
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %59
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%68 = call i32 @exit(i32 -1)
unreachable
69: ; preds = %59
%70 = load i32, i32* %2
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i32 %70)
%72 = call i32 @mq_unlink(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i32 %72, i32* %2
%73 = load i32, i32* %2
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %78
75: ; preds = %69
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%77 = call i32 @exit(i32 -1)
unreachable
78: ; preds = %69
%79 = load i32, i32* %2
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0), i32 %79)
%81 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.mq_attr = type { i32, i32, i32 }
@.str = [8 x i8] c"/MQ_TD3\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@.str.1 = [19 x i8] c"error en mq_open()\00"
@.str.3 = [22 x i8] c"error en mq_getattr()\00"
@.str.4 = [47 x i8] c"Nro max. de mensajes en cola de mensajes: %ld\0A\00"
@.str.5 = [31 x i8] c"Longitud max. de mensaje: %ld\0A\00"
@.str.6 = [54 x i8] c"Nros de mensajes pendientes en cola de mensajes: %ld\0A\00"
@.str.7 = [25 x i8] c"DATA PARA OTROS PROCESOS\00"
@.str.8 = [19 x i8] c"error en mq_send()\00"
@.str.9 = [22 x i8] c"Mensaje enviado (%d)\0A\00"
@.str.10 = [22 x i8] c"error en mq_receive()\00"
@.str.11 = [19 x i8] c"Mensaje leido: %s\0A\00"
@.str.12 = [20 x i8] c"error en mq_close()\00"
@.str.13 = [31 x i8] c"Cola de mensajes cerrada (%d)\0A\00"
@.str.14 = [21 x i8] c"error en mq_unlink()\00"
@.str.15 = [33 x i8] c"Cola de mensajes eliminada (%d)\0A\00"
@str = [24 x i8] c"Cola de mensajes creada\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = alloca %struct.mq_attr
%3 = alloca %struct.mq_attr
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%5 = bitcast %struct.mq_attr* %2 to i8*
%6 = bitcast %struct.mq_attr* %3 to i8*
%7 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 0
store i32 1024, i32* %7
%8 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %2, i64 0, i32 1
store i32 5, i32* %8
%9 = load i32, i32* @O_RDWR
%10 = load i32, i32* @O_CREAT
%11 = or i32 %10, %9
%12 = call i64 @mq_open(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %11, i32 511, %struct.mq_attr* %2)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @exit(i32 -1)
unreachable
17: ; preds = %0
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%19 = call i32 @mq_getattr(i64 %12, %struct.mq_attr* %3)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @exit(i32 -1)
unreachable
24: ; preds = %17
%25 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i64 0, i32 1
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i64 0, i32 0
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds %struct.mq_attr, %struct.mq_attr* %3, i64 0, i32 2
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i32 %32)
%34 = call i32 @mq_send(i64 %12, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 25, i32 1)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %39
36: ; preds = %24
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%38 = call i32 @exit(i32 -1)
unreachable
39: ; preds = %24
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %34)
%41 = load i32, i32* %7
%42 = call i32 @mq_receive(i64 %12, i8* %4, i32 %41, i32 0)
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%46 = call i32 @exit(i32 -1)
unreachable
47: ; preds = %39
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %4)
%49 = call i32 @mq_close(i64 %12)
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %47
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%53 = call i32 @exit(i32 -1)
unreachable
54: ; preds = %47
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i32 %49)
%56 = call i32 @mq_unlink(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%60 = call i32 @exit(i32 -1)
unreachable
61: ; preds = %54
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0), i32 %56)
%63 = call i32 @exit(i32 0)
unreachable
}