#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 ssize_t;
typedef int mqd_t;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int cpipe(char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ lcase(char *, scalar_t__);
int /*<<< orphan*/ mq_close(int);
int mq_open(char *, int /*<<< orphan*/);
int mq_receive(int, char *, int, unsigned int *);
int /*<<< orphan*/ mq_unlink(char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ ucase(char *, scalar_t__);
int /*<<< orphan*/ unlink(char *);
int write(int, char *, scalar_t__);
int main() {
  int fdlc, fduc;
  printf("open queue\n");
  mqd_t queue = mq_open("/is141315q", O_RDONLY);
  if (queue == -1) {
    perror("/is141315q");
    return 1;
  }
  if ((fdlc = cpipe("/tmp/is141315lc")) == -1) {
    return 1;
  }
  if ((fduc = cpipe("/tmp/is141315uc")) == -1) {
    return 1;
  }
  char line[256];
  do {
    unsigned int prio = 0;
    printf("read queue\n");
    ssize_t len = mq_receive(queue, line, 256, &prio);
    if (len == -1) {
      perror("/is141315q");
      mq_close(queue);
      return 1;
    }
    line[256 - 1] = 0;
    printf("IN > prio: %u, msg:'%s' \n", prio, line);
    fflush(stdout);
    lcase(line, strlen(line));
    printf("OUT(%s) > msg:'%s' \n", "/tmp/is141315lc", line);
    if (write(fdlc, line, strlen(line) + 1) == -1) {
      perror("write");
      break;
    }
    ucase(line, strlen(line));
    printf("OUT(%s) > msg:'%s' \n", "/tmp/is141315uc", line);
    if (write(fduc, line, strlen(line) + 1) == -1) {
      perror("write");
      break;
    }
  } while (strcmp(line, "QUIT"));
  mq_close(queue);
  mq_unlink("/is141315q");
  unlink("/tmp/is141315lc");
  unlink("/tmp/is141315uc");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%esi
lea    0xdfc(%rip),%rdi
call   10a0 <mq_open@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0xffffffff,-0x10(%rbp)
jne    123a <main+0x5a>
lea    0xde3(%rip),%rdi
call   10f0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    14a5 <main+0x2c5>
lea    0xdd6(%rip),%rdi
call   10c0 <cpipe@plt>
mov    %eax,-0x8(%rbp)
cmp    $0xffffffff,%eax
jne    125e <main+0x7e>
movl   $0x1,-0x4(%rbp)
jmp    14a5 <main+0x2c5>
lea    0xdc2(%rip),%rdi
call   10c0 <cpipe@plt>
mov    %eax,-0xc(%rbp)
cmp    $0xffffffff,%eax
jne    1282 <main+0xa2>
movl   $0x1,-0x4(%rbp)
jmp    14a5 <main+0x2c5>
jmp    1287 <main+0xa7>
movl   $0x0,-0x114(%rbp)
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%edi
lea    -0x110(%rbp),%rsi
mov    $0x100,%edx
lea    -0x114(%rbp),%rcx
call   10d0 <mq_receive@plt>
mov    %eax,-0x118(%rbp)
cmpl   $0xffffffff,-0x118(%rbp)
jne    12ed <main+0x10d>
lea    0xd38(%rip),%rdi
call   10f0 <perror@plt>
mov    -0x10(%rbp),%edi
call   1070 <mq_close@plt>
movl   $0x1,-0x4(%rbp)
jmp    14a5 <main+0x2c5>
movb   $0x0,-0x11(%rbp)
mov    -0x114(%rbp),%esi
lea    -0x110(%rbp),%rdx
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2cc5(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
lea    -0x110(%rbp),%rax
mov    %rax,-0x130(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x130(%rbp),%rdi
mov    %rax,%rsi
call   1080 <lcase@plt>
lea    -0x110(%rbp),%rdx
lea    0xd0c(%rip),%rdi
lea    0xcbf(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x124(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x124(%rbp),%edi
mov    -0x120(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
jne    13b5 <main+0x1d5>
lea    0xcc7(%rip),%rdi
call   10f0 <perror@plt>
jmp    1472 <main+0x292>
lea    -0x110(%rbp),%rax
mov    %rax,-0x148(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x148(%rbp),%rdi
mov    %rax,%rsi
call   10e0 <ucase@plt>
lea    -0x110(%rbp),%rdx
lea    0xc71(%rip),%rdi
lea    0xc34(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x13c(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x138(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x13c(%rbp),%edi
mov    -0x138(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
jne    1450 <main+0x270>
lea    0xc2c(%rip),%rdi
call   10f0 <perror@plt>
jmp    1472 <main+0x292>
jmp    1455 <main+0x275>
lea    -0x110(%rbp),%rdi
lea    0xc15(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1287 <main+0xa7>
mov    -0x10(%rbp),%edi
call   1070 <mq_close@plt>
lea    0xb8b(%rip),%rdi
call   1100 <mq_unlink@plt>
lea    0xb8a(%rip),%rdi
call   1030 <unlink@plt>
lea    0xb8e(%rip),%rdi
call   1030 <unlink@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
lea    0xe5d(%rip),%rdi
call   1040 <puts@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%esi
lea    0xde3(%rip),%rdi
call   10b0 <mq_open@plt>
cmp    $0xffffffff,%eax
je     13bc <main+0x1cc>
mov    %eax,%r14d
lea    0xdd6(%rip),%rdi
call   10d0 <cpipe@plt>
mov    $0x1,%ebx
cmp    $0xffffffff,%eax
je     13a8 <main+0x1b8>
mov    %eax,%ebp
lea    0xdca(%rip),%rdi
call   10d0 <cpipe@plt>
cmp    $0xffffffff,%eax
je     13a8 <main+0x1b8>
mov    %eax,%r12d
lea    0x10(%rsp),%rbx
lea    0xdd7(%rip),%r13
lea    0xdeb(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x0,0xc(%rsp)
lea    0xde1(%rip),%rdi
call   1040 <puts@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x100,%edx
lea    0xc(%rsp),%rcx
call   10e0 <mq_receive@plt>
cmp    $0xffffffff,%eax
je     13dd <main+0x1ed>
movb   $0x0,0x10f(%rsp)
mov    0xc(%rsp),%esi
lea    0xd66(%rip),%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1090 <lcase@plt>
mov    %r13,%rdi
lea    0xd11(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1050 <write@plt>
cmp    $0xffffffff,%eax
je     13cf <main+0x1df>
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10f0 <ucase@plt>
mov    %r13,%rdi
lea    0xcdb(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r12d,%edi
mov    %rbx,%rsi
call   1050 <write@plt>
cmp    $0xffffffff,%eax
je     13cf <main+0x1df>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1280 <main+0x90>
mov    %r14d,%edi
call   1080 <mq_close@plt>
lea    0xc77(%rip),%rdi
call   1110 <mq_unlink@plt>
lea    0xc76(%rip),%rdi
call   1030 <unlink@plt>
lea    0xc7a(%rip),%rdi
call   1030 <unlink@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc3d(%rip),%rdi
call   1100 <perror@plt>
mov    $0x1,%ebx
jmp    13a8 <main+0x1b8>
lea    0xc84(%rip),%rdi
call   1100 <perror@plt>
jmp    137a <main+0x18a>
lea    0xc1c(%rip),%rdi
call   1100 <perror@plt>
mov    %r14d,%edi
call   1080 <mq_close@plt>
mov    $0x1,%ebx
jmp    13a8 <main+0x1b8>

LLVM IR (-O0):
@.str = [12 x i8] c"open queue\0A\00"
@.str.1 = [11 x i8] c"/is141315q\00"
@O_RDONLY = global i32 0
@.str.2 = [16 x i8] c"/tmp/is141315lc\00"
@.str.3 = [16 x i8] c"/tmp/is141315uc\00"
@.str.4 = [12 x i8] c"read queue\0A\00"
@.str.5 = [26 x i8] c"IN > prio: %u, msg:'%s' \0A\00"
@stdout = global i32 0
@.str.6 = [21 x i8] c"OUT(%s) > msg:'%s' \0A\00"
@.str.7 = [6 x i8] c"write\00"
@.str.8 = [5 x i8] c"QUIT\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [256 x i8]
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @O_RDONLY
%10 = call i32 @mq_open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %9)
store i32 %10, i32* %4
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %84
15: ; preds = %0
%16 = call i32 @cpipe(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
store i32 %16, i32* %2
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 1, i32* %1
br label %84
19: ; preds = %15
%20 = call i32 @cpipe(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i32 %20, i32* %3
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 1, i32* %1
br label %84
23: ; preds = %19
br label %24
24: ; preds = %74, %23
store i32 0, i32* %6
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%26 = load i32, i32* %4
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%28 = call i32 @mq_receive(i32 %26, i8* %27, i32 256, i32* %6)
store i32 %28, i32* %7
%29 = load i32, i32* %7
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %35
31: ; preds = %24
%32 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%33 = load i32, i32* %4
%34 = call i32 @mq_close(i32 %33)
store i32 1, i32* %1
br label %84
35: ; preds = %24
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 255
store i8 0, i8* %36
%37 = load i32, i32* %6
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %37, i8* %38)
%40 = load i32, i32* @stdout
%41 = call i32 @fflush(i32 %40)
%42 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%44 = call i64 @strlen(i8* %43)
%45 = call i32 @lcase(i8* %42, i64 %44)
%46 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %46)
%48 = load i32, i32* %2
%49 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%51 = call i64 @strlen(i8* %50)
%52 = add nsw i64 %51, 1
%53 = call i32 @write(i32 %48, i8* %49, i64 %52)
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %57
55: ; preds = %35
%56 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %78
57: ; preds = %35
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%59 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%60 = call i64 @strlen(i8* %59)
%61 = call i32 @ucase(i8* %58, i64 %60)
%62 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %62)
%64 = load i32, i32* %3
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%66 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%67 = call i64 @strlen(i8* %66)
%68 = add nsw i64 %67, 1
%69 = call i32 @write(i32 %64, i8* %65, i64 %68)
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %73
71: ; preds = %57
%72 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %78
73: ; preds = %57
br label %74
74: ; preds = %73
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%76 = call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%77 = icmp ne i64 %76, 0
br i1 %77, label %24, label %78
78: ; preds = %74, %71, %55
%79 = load i32, i32* %4
%80 = call i32 @mq_close(i32 %79)
%81 = call i32 @mq_unlink(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%82 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%83 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %84
84: ; preds = %78, %31, %22, %18, %13
%85 = load i32, i32* %1
ret i32 %85
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"/is141315q\00"
@O_RDONLY = global i32 0
@.str.2 = [16 x i8] c"/tmp/is141315lc\00"
@.str.3 = [16 x i8] c"/tmp/is141315uc\00"
@.str.5 = [26 x i8] c"IN > prio: %u, msg:'%s' \0A\00"
@stdout = global i32 0
@.str.6 = [21 x i8] c"OUT(%s) > msg:'%s' \0A\00"
@.str.7 = [6 x i8] c"write\00"
@.str.8 = [5 x i8] c"QUIT\00"
@str = [11 x i8] c"open queue\00"
@str.9 = [11 x i8] c"read queue\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = alloca i32
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @O_RDONLY
%5 = tail call i32 @mq_open(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %58
9: ; preds = %0
%10 = tail call i32 @cpipe(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i32 %10, -1
br i1 %11, label %58, label %12
12: ; preds = %9
%13 = tail call i32 @cpipe(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i32 %13, -1
br i1 %14, label %58, label %15
15: ; preds = %12
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%17 = bitcast i32* %2 to i8*
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 255
br label %19
19: ; preds = %48, %15
store i32 0, i32* %2
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.9, i64 0, i64 0))
%21 = call i32 @mq_receive(i32 %5, i8* %16, i32 256, i32* %2)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @mq_close(i32 %5)
br label %56
26: ; preds = %19
store i8 0, i8* %18
%27 = load i32, i32* %2
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %27, i8* %16)
%29 = load i32, i32* @stdout
%30 = call i32 @fflush(i32 %29)
%31 = call i64 @strlen(i8* %16)
%32 = call i32 @lcase(i8* %16, i64 %31)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%34 = call i64 @strlen(i8* %16)
%35 = add nsw i64 %34, 1
%36 = call i32 @write(i32 %10, i8* %16, i64 %35)
%37 = icmp eq i32 %36, -1
br i1 %37, label %46, label %38
38: ; preds = %26
%39 = call i64 @strlen(i8* %16)
%40 = call i32 @ucase(i8* %16, i64 %39)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%42 = call i64 @strlen(i8* %16)
%43 = add nsw i64 %42, 1
%44 = call i32 @write(i32 %13, i8* %16, i64 %43)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %48
46: ; preds = %38, %26
%47 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %51
48: ; preds = %38
%49 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %19
51: ; preds = %48, %46
%52 = call i32 @mq_close(i32 %5)
%53 = call i32 @mq_unlink(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%54 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%55 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %56
56: ; preds = %23, %51
%57 = phi i32 [ 0, %51 ], [ 1, %23 ]
br label %58
58: ; preds = %12, %9, %56, %7
%59 = phi i32 [ 1, %7 ], [ %57, %56 ], [ 1, %9 ], [ 1, %12 ]
ret i32 %59
}