#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 inotify_event {
  int dummy;
};
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ IN_NONBLOCK;
int /*<<< orphan*/ IN_OPEN;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ PATH_MAX;
int /*<<< orphan*/ close(int);
scalar_t__ creat(char *, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int inotify_add_watch(int, char *, int /*<<< orphan*/);
int inotify_init1(int /*<<< orphan*/);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int open(char *, int /*<<< orphan*/);
scalar_t__ read(int, char *, int);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int /*<<< orphan*/ test_daemon();
int /*<<< orphan*/ test_init(int, char **);
int /*<<< orphan*/ test_msg(char *, ...);
int /*<<< orphan*/ test_waitsig();
int /*<<< orphan*/ unlink(char *);
int main(int argc, char *argv[]) {
  char buf[((sizeof(struct inotify_event) + PATH_MAX))];
  int fd, wd;
  test_init(argc, argv);
  unlink("/etc"
         "/zdtm-test");
  if (creat("/etc"
            "/zdtm-test",
            0600) < 0) {
    test_msg("ERR: %s:%d: "
             "Can't make test file"
             " (errno = %d (%s))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/"
             "zdtm/live/static/inotify_irmap.c",
             35, errno, strerror(errno));
    exit(1);
  }
  fd = inotify_init1(IN_NONBLOCK);
  if (fd < 0) {
    test_msg("FAIL: %s:%d: "
             "inotify_init failed"
             " (errno = %d (%s))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/"
             "zdtm/live/static/inotify_irmap.c",
             41, errno, strerror(errno));
    unlink("/etc"
           "/zdtm-test");
    exit(1);
  }
  wd = inotify_add_watch(fd,
                         "/etc"
                         "/zdtm-test",
                         IN_OPEN);
  if (wd < 0) {
    test_msg("FAIL: %s:%d: "
             "inotify_add_watch failed"
             " (errno = %d (%s))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/"
             "zdtm/live/static/inotify_irmap.c",
             48, errno, strerror(errno));
    unlink("/etc"
           "/zdtm-test");
    exit(1);
  }
  test_daemon();
  test_waitsig();
  memset(buf, 0, sizeof(buf));
  wd = open("/etc"
            "/zdtm-test",
            O_RDONLY);
  if (read(fd, buf, sizeof(buf)) <= 0) {
    unlink("/etc"
           "/zdtm-test");
    test_msg("FAIL: %s:%d: "
             "No events in queue"
             " (errno = %d (%s))\n",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/"
             "zdtm/live/static/inotify_irmap.c",
             60, errno, strerror(errno));
    exit(1);
  }
  close(wd);
  close(fd);
  unlink("/etc"
         "/zdtm-test");
  test_msg("PASS\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2df3(%rip),%rax
movslq (%rax),%rdx
mov    %rdx,%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
add    $0x13,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <test_init@plt>
lea    0xdc2(%rip),%rdi
call   1030 <unlink@plt>
lea    0xdb6(%rip),%rdi
mov    $0x180,%esi
call   10d0 <creat@plt>
cmp    $0x0,%rax
jge    12a2 <main+0xc2>
mov    0x2d63(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
mov    -0x3c(%rbp),%ecx
mov    %eax,%r8d
lea    0xd8a(%rip),%rdi
lea    0xdb7(%rip),%rsi
mov    $0x23,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x2d27(%rip),%rax
mov    (%rax),%edi
call   1100 <inotify_init1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    130d <main+0x12d>
mov    0x2d04(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
mov    -0x40(%rbp),%ecx
mov    %eax,%r8d
lea    0xe00(%rip),%rdi
lea    0xd58(%rip),%rsi
mov    $0x29,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
lea    0xd02(%rip),%rdi
call   1030 <unlink@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x24(%rbp),%edi
mov    0x2ca1(%rip),%rax
mov    (%rax),%edx
lea    0xce0(%rip),%rsi
call   10b0 <inotify_add_watch@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jge    1382 <main+0x1a2>
mov    0x2c8f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2c83(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
mov    -0x44(%rbp),%ecx
mov    %eax,%r8d
lea    0xdbf(%rip),%rdi
lea    0xce3(%rip),%rsi
mov    $0x30,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
lea    0xc8d(%rip),%rdi
call   1030 <unlink@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    $0x0,%al
call   1050 <test_daemon@plt>
mov    $0x0,%al
call   10a0 <test_waitsig@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rax
mov    %eax,%edx
xor    %esi,%esi
call   1060 <memset@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%esi
lea    0xc4f(%rip),%rdi
call   10c0 <open@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    %eax,%edx
call   1090 <read@plt>
cmp    $0x0,%rax
jg     1427 <main+0x247>
lea    0xc22(%rip),%rdi
call   1030 <unlink@plt>
mov    0x2bde(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
mov    -0x48(%rbp),%ecx
mov    %eax,%r8d
lea    0xd47(%rip),%rdi
lea    0xc32(%rip),%rsi
mov    $0x3c,%edx
mov    $0x0,%al
call   1080 <test_msg@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x28(%rbp),%edi
call   1070 <close@plt>
mov    -0x24(%rbp),%edi
call   1070 <close@plt>
lea    0xbc2(%rip),%rdi
call   1030 <unlink@plt>
lea    0xd3a(%rip),%rdi
mov    $0x0,%al
call   1080 <test_msg@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    0x2dfe(%rip),%rax
movslq (%rax),%r14
mov    %rsp,%rbx
lea    0x13(%r14),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
call   1040 <test_init@plt>
lea    0xdee(%rip),%r15
mov    %r15,%rdi
call   1030 <unlink@plt>
mov    %r15,%rdi
mov    $0x180,%esi
call   10d0 <creat@plt>
test   %rax,%rax
js     12f0 <main+0x110>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   1100 <inotify_init1@plt>
test   %eax,%eax
js     1318 <main+0x138>
mov    %eax,%r15d
mov    0x2d68(%rip),%rax
mov    (%rax),%edx
lea    0xda7(%rip),%rsi
mov    %r15d,%edi
call   10b0 <inotify_add_watch@plt>
test   %eax,%eax
js     133d <main+0x15d>
add    $0x4,%r14
xor    %eax,%eax
call   1050 <test_daemon@plt>
xor    %eax,%eax
call   10a0 <test_waitsig@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14d,%edx
call   1060 <memset@plt>
mov    0x2d51(%rip),%rax
mov    (%rax),%esi
lea    0xd68(%rip),%rdi
call   10c0 <open@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1090 <read@plt>
test   %rax,%rax
jle    1382 <main+0x1a2>
mov    %r12d,%edi
call   1070 <close@plt>
mov    %r15d,%edi
call   1070 <close@plt>
lea    0xd32(%rip),%rdi
call   1030 <unlink@plt>
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
call   1080 <test_msg@plt>
xor    %eax,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cd1(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%edi
call   10f0 <strerror@plt>
lea    0xd08(%rip),%rdi
lea    0xd35(%rip),%rsi
mov    $0x23,%edx
jmp    13b1 <main+0x1d1>
mov    0x2ca9(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%edi
call   10f0 <strerror@plt>
lea    0xdb5(%rip),%rdi
lea    0xd0d(%rip),%rsi
mov    $0x29,%edx
jmp    1360 <main+0x180>
mov    0x2c84(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%edi
call   10f0 <strerror@plt>
lea    0xdc4(%rip),%rdi
lea    0xce8(%rip),%rsi
mov    $0x30,%edx
mov    %ebx,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1080 <test_msg@plt>
lea    0xc8d(%rip),%rdi
call   1030 <unlink@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xc77(%rip),%rdi
call   1030 <unlink@plt>
mov    0x2c33(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%edi
call   10f0 <strerror@plt>
lea    0xdac(%rip),%rdi
lea    0xc97(%rip),%rsi
mov    $0x3c,%edx
mov    %ebx,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1080 <test_msg@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@PATH_MAX = global i32 0
@.str = [15 x i8] c"/etc/zdtm-test\00"
@.str.1 = [52 x i8] c"ERR: %s:%d: Can't make test file (errno = %d (%s))\0A\00"
@.str.2 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/zdtm/live/static/inotify_irmap.c\00"
@errno = global i32 0
@IN_NONBLOCK = global i32 0
@.str.3 = [52 x i8] c"FAIL: %s:%d: inotify_init failed (errno = %d (%s))\0A\00"
@IN_OPEN = global i32 0
@.str.4 = [57 x i8] c"FAIL: %s:%d: inotify_add_watch failed (errno = %d (%s))\0A\00"
@O_RDONLY = global i32 0
@.str.5 = [51 x i8] c"FAIL: %s:%d: No events in queue (errno = %d (%s))\0A\00"
@.str.6 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* @PATH_MAX
%11 = sext i32 %10 to i64
%12 = add i64 4, %11
%13 = call i8* @llvm.stacksave()
store i8* %13, i8** %6
%14 = alloca i8, i64 %12
store i64 %12, i64* %7
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @test_init(i32 %15, i8** %16)
%18 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%19 = call i64 @creat(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 384)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = load i32, i32* @errno
%23 = load i32, i32* @errno
%24 = call i32 @strerror(i32 %23)
%25 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 35, i32 %22, i32 %24)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %2
%28 = load i32, i32* @IN_NONBLOCK
%29 = call i32 @inotify_init1(i32 %28)
store i32 %29, i32* %8
%30 = load i32, i32* %8
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %27
%33 = load i32, i32* @errno
%34 = load i32, i32* @errno
%35 = call i32 @strerror(i32 %34)
%36 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 41, i32 %33, i32 %35)
%37 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %27
%40 = load i32, i32* %8
%41 = load i32, i32* @IN_OPEN
%42 = call i32 @inotify_add_watch(i32 %40, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %41)
store i32 %42, i32* %9
%43 = load i32, i32* %9
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %39
%46 = load i32, i32* @errno
%47 = load i32, i32* @errno
%48 = call i32 @strerror(i32 %47)
%49 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 48, i32 %46, i32 %48)
%50 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %39
%53 = call i32 (...) @test_daemon()
%54 = call i32 (...) @test_waitsig()
%55 = trunc i64 %12 to i32
%56 = call i32 @memset(i8* %14, i32 0, i32 %55)
%57 = load i32, i32* @O_RDONLY
%58 = call i32 @open(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %57)
store i32 %58, i32* %9
%59 = load i32, i32* %8
%60 = trunc i64 %12 to i32
%61 = call i64 @read(i32 %59, i8* %14, i32 %60)
%62 = icmp sle i64 %61, 0
br i1 %62, label %63, label %70
63: ; preds = %52
%64 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%65 = load i32, i32* @errno
%66 = load i32, i32* @errno
%67 = call i32 @strerror(i32 %66)
%68 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 60, i32 %65, i32 %67)
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %52
%71 = load i32, i32* %9
%72 = call i32 @close(i32 %71)
%73 = load i32, i32* %8
%74 = call i32 @close(i32 %73)
%75 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%76 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
%77 = load i8*, i8** %6
%78 = load i32, i32* %3
ret i32 %78
}

LLVM IR (-O2):
@PATH_MAX = global i32 0
@.str = [15 x i8] c"/etc/zdtm-test\00"
@.str.1 = [52 x i8] c"ERR: %s:%d: Can't make test file (errno = %d (%s))\0A\00"
@.str.2 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fbocharov/criu/refs/heads/master/test/zdtm/live/static/inotify_irmap.c\00"
@errno = global i32 0
@IN_NONBLOCK = global i32 0
@.str.3 = [52 x i8] c"FAIL: %s:%d: inotify_init failed (errno = %d (%s))\0A\00"
@IN_OPEN = global i32 0
@.str.4 = [57 x i8] c"FAIL: %s:%d: inotify_add_watch failed (errno = %d (%s))\0A\00"
@O_RDONLY = global i32 0
@.str.5 = [51 x i8] c"FAIL: %s:%d: No events in queue (errno = %d (%s))\0A\00"
@.str.6 = [6 x i8] c"PASS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = load i32, i32* @PATH_MAX
%4 = sext i32 %3 to i64
%5 = add nsw i64 %4, 4
%6 = alloca i8, i64 %5
%7 = tail call i32 @test_init(i32 %0, i8** %1)
%8 = tail call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%9 = tail call i64 @creat(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 384)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, i32* @errno
%13 = tail call i32 @strerror(i32 %12)
%14 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 35, i32 %12, i32 %13)
%15 = tail call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = load i32, i32* @IN_NONBLOCK
%18 = tail call i32 @inotify_init1(i32 %17)
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i32, i32* @errno
%22 = tail call i32 @strerror(i32 %21)
%23 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 41, i32 %21, i32 %22)
%24 = tail call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%25 = tail call i32 @exit(i32 1)
unreachable
26: ; preds = %16
%27 = load i32, i32* @IN_OPEN
%28 = tail call i32 @inotify_add_watch(i32 %18, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %26
%31 = load i32, i32* @errno
%32 = tail call i32 @strerror(i32 %31)
%33 = tail call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 48, i32 %31, i32 %32)
%34 = tail call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%35 = tail call i32 @exit(i32 1)
unreachable
36: ; preds = %26
%37 = tail call i32 (...) @test_daemon()
%38 = tail call i32 (...) @test_waitsig()
%39 = trunc i64 %5 to i32
%40 = call i32 @memset(i8* %6, i32 0, i32 %39)
%41 = load i32, i32* @O_RDONLY
%42 = call i32 @open(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %41)
%43 = call i64 @read(i32 %18, i8* %6, i32 %39)
%44 = icmp slt i64 %43, 1
br i1 %44, label %45, label %51
45: ; preds = %36
%46 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%47 = load i32, i32* @errno
%48 = call i32 @strerror(i32 %47)
%49 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 60, i32 %47, i32 %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %36
%52 = call i32 @close(i32 %42)
%53 = call i32 @close(i32 %18)
%54 = call i32 @unlink(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%55 = call i32 (i8*, ...) @test_msg(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}