#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 */
scalar_t__ check_no_file(char *, int, int);
scalar_t__ check_regular_file(char *, int, int, int);
scalar_t__ check_symlink_file(char *, int, int);
int /*<<< orphan*/ create_file(char *, int /*<<< orphan*/);
int /*<<< orphan*/ hard_link(char *, int, int);
int /*<<< orphan*/ remove_file(char *, int);
int /*<<< orphan*/ sym_link(char *, int, int);
int do_one_test(char *base, int count) {
  int ret = 0;
  int nbLink = 0;
  int i, j;
  for (i = 0; i < (2 * 16); i++) {
    remove_file(base, i);
  }
  for (i = 0; i < (2 * 16); i++) {
    ret += check_no_file(base, i, 217);
  }
  if (ret != 0)
    goto error;
  create_file(base, 0);
  nbLink++;
  for (i = 0; i < nbLink; i++) {
    ret += check_regular_file(base, i, nbLink, 225);
  }
  for (; i < (2 * 16); i++) {
    ret += check_no_file(base, i, 228);
  }
  if (ret != 0)
    goto error;
  for (j = 1; j < 16; j++) {
    hard_link(base, j - 1, j);
    nbLink++;
    for (i = 0; i < nbLink; i++) {
      ret += check_regular_file(base, i, nbLink, 237);
    }
    for (; i < (2 * 16); i++) {
      ret += check_no_file(base, i, 240);
    }
    if (ret != 0)
      goto error;
  }
  for (j = 0; j < 16; j++) {
    sym_link(base, j, j + 16);
    for (i = 0; i < 16; i++) {
      ret += check_regular_file(base, i, nbLink, 249);
    }
    for (; i <= (16 + j); i++) {
      ret += check_symlink_file(base, i, 252);
    }
    for (; i < (2 * 16); i++) {
      ret += check_no_file(base, i, 255);
    }
    if (ret != 0)
      goto error;
  }
  for (j = 0; j < 16; j++) {
    remove_file(base, j);
    nbLink--;
    for (i = 0; i <= j; i++) {
      ret += check_no_file(base, i, 265);
    }
    for (; i < 16; i++) {
      ret += check_regular_file(base, i, nbLink, 268);
    }
    for (; i < (2 * 16); i++) {
      ret += check_symlink_file(base, i, 271);
    }
    if (ret != 0)
      goto error;
  }
  for (j = 0; j < 16; j++) {
    remove_file(base, j + 16);
    nbLink--;
    for (i = 0; i <= (16 + j); i++) {
      ret += check_no_file(base, i, 281);
    }
    for (; i < (2 * 16); i++) {
      ret += check_symlink_file(base, i, 284);
    }
    if (ret != 0)
      goto error;
  }
  return 0;
error:
  for (i = 0; i <= 16; i++)
    remove_file(base, i);
  return -1;
}


x86 assembly (clang, -O0):
<do_one_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x20,-0x20(%rbp)
jge    11b8 <do_one_test+0x48>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1070 <remove_file@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1194 <do_one_test+0x24>
movl   $0x0,-0x20(%rbp)
cmpl   $0x20,-0x20(%rbp)
jge    11f5 <do_one_test+0x85>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xd9,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11bf <do_one_test+0x4f>
cmpl   $0x0,-0x18(%rbp)
je     1204 <do_one_test+0x94>
jmp    1647 <do_one_test+0x4d7>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1090 <create_file@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    125a <do_one_test+0xea>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    $0xe1,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    121f <do_one_test+0xaf>
jmp    125f <do_one_test+0xef>
cmpl   $0x20,-0x20(%rbp)
jge    1295 <do_one_test+0x125>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xe4,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    125f <do_one_test+0xef>
cmpl   $0x0,-0x18(%rbp)
je     12a4 <do_one_test+0x134>
jmp    1647 <do_one_test+0x4d7>
movl   $0x1,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    136f <do_one_test+0x1ff>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
sub    $0x1,%esi
mov    -0x24(%rbp),%edx
call   1030 <hard_link@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1312 <do_one_test+0x1a2>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    $0xed,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12d7 <do_one_test+0x167>
jmp    1317 <do_one_test+0x1a7>
cmpl   $0x20,-0x20(%rbp)
jge    134d <do_one_test+0x1dd>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xf0,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1317 <do_one_test+0x1a7>
cmpl   $0x0,-0x18(%rbp)
je     135c <do_one_test+0x1ec>
jmp    1647 <do_one_test+0x4d7>
jmp    1361 <do_one_test+0x1f1>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12ab <do_one_test+0x13b>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    1471 <do_one_test+0x301>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x24(%rbp),%edx
add    $0x10,%edx
call   1060 <sym_link@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    13d2 <do_one_test+0x262>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1399 <do_one_test+0x229>
jmp    13d7 <do_one_test+0x267>
mov    -0x20(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x10,%ecx
cmp    %ecx,%eax
jg     1414 <do_one_test+0x2a4>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xfc,%edx
call   1040 <check_symlink_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13d7 <do_one_test+0x267>
jmp    1419 <do_one_test+0x2a9>
cmpl   $0x20,-0x20(%rbp)
jge    144f <do_one_test+0x2df>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0xff,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1419 <do_one_test+0x2a9>
cmpl   $0x0,-0x18(%rbp)
je     145e <do_one_test+0x2ee>
jmp    1647 <do_one_test+0x4d7>
jmp    1463 <do_one_test+0x2f3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1376 <do_one_test+0x206>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    1571 <do_one_test+0x401>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1070 <remove_file@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     14d6 <do_one_test+0x366>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0x109,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    149e <do_one_test+0x32e>
jmp    14db <do_one_test+0x36b>
cmpl   $0x10,-0x20(%rbp)
jge    1514 <do_one_test+0x3a4>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    $0x10c,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    14db <do_one_test+0x36b>
jmp    1519 <do_one_test+0x3a9>
cmpl   $0x20,-0x20(%rbp)
jge    154f <do_one_test+0x3df>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0x10f,%edx
call   1040 <check_symlink_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1519 <do_one_test+0x3a9>
cmpl   $0x0,-0x18(%rbp)
je     155e <do_one_test+0x3ee>
jmp    1647 <do_one_test+0x4d7>
jmp    1563 <do_one_test+0x3f3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1478 <do_one_test+0x308>
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    163b <do_one_test+0x4cb>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
add    $0x10,%esi
call   1070 <remove_file@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x10,%ecx
cmp    %ecx,%eax
jg     15de <do_one_test+0x46e>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0x119,%edx
call   1080 <check_no_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    15a1 <do_one_test+0x431>
jmp    15e3 <do_one_test+0x473>
cmpl   $0x20,-0x20(%rbp)
jge    1619 <do_one_test+0x4a9>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0x11c,%edx
call   1040 <check_symlink_file@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    15e3 <do_one_test+0x473>
cmpl   $0x0,-0x18(%rbp)
je     1628 <do_one_test+0x4b8>
jmp    1647 <do_one_test+0x4d7>
jmp    162d <do_one_test+0x4bd>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1578 <do_one_test+0x408>
movl   $0x0,-0x4(%rbp)
jmp    1679 <do_one_test+0x509>
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jg     1672 <do_one_test+0x502>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1070 <remove_file@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    164e <do_one_test+0x4de>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_one_test>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rdi,%r12
xor    %ebp,%ebp
xor    %esi,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x2,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x3,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x4,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x5,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x6,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x7,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x8,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x9,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xa,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xb,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xc,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xd,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xe,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xf,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x10,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x11,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x12,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x13,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x14,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x15,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x16,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x17,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x18,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x19,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1a,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1b,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1c,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1d,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1e,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1f,%esi
call   1070 <remove_file@plt>
xor    %ebx,%ebx
nop
mov    %r12,%rdi
mov    %ebp,%esi
mov    $0xd9,%edx
call   1080 <check_no_file@plt>
add    %eax,%ebx
add    $0x1,%ebp
cmp    $0x20,%ebp
jne    1320 <do_one_test+0x1b0>
test   %ebx,%ebx
jne    1391 <do_one_test+0x221>
mov    %r12,%rdi
xor    %esi,%esi
call   1090 <create_file@plt>
mov    $0x1,%ebp
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0xe1,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,%rdi
mov    %ebp,%esi
mov    $0xe4,%edx
call   1080 <check_no_file@plt>
add    %eax,%ebx
add    $0x1,%ebp
cmp    $0x20,%ebp
jne    1370 <do_one_test+0x200>
test   %ebx,%ebx
je     147f <do_one_test+0x30f>
mov    %r12,%rdi
xor    %esi,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x2,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x3,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x4,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x5,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x6,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x7,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x8,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x9,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xa,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xb,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xc,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xd,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xe,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0xf,%esi
call   1070 <remove_file@plt>
mov    %r12,%rdi
mov    $0x10,%esi
call   1070 <remove_file@plt>
mov    $0xffffffff,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r14d
mov    $0x2,%r15d
nopl   0x0(%rax,%rax,1)
lea    -0x1(%r14),%esi
mov    %r12,%rdi
mov    %r14d,%edx
call   1030 <hard_link@plt>
add    $0x1,%r14d
xor    %ebx,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %ebx,%esi
mov    %r14d,%edx
mov    $0xed,%ecx
call   1050 <check_regular_file@plt>
add    %eax,%ebp
add    $0x1,%ebx
cmp    %ebx,%r15d
jne    14b0 <do_one_test+0x340>
add    $0xffffffff,%ebx
mov    %r15d,%r13d
cmp    $0x1e,%ebx
ja     14fc <do_one_test+0x38c>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r13d,%esi
mov    $0xf0,%edx
call   1080 <check_no_file@plt>
add    %eax,%ebp
add    $0x1,%r13d
cmp    $0x20,%r13d
jne    14e0 <do_one_test+0x370>
test   %ebp,%ebp
jne    1391 <do_one_test+0x221>
add    $0x1,%r15d
cmp    $0x11,%r15d
jne    1490 <do_one_test+0x320>
xor    %esi,%esi
mov    $0x11,%ebp
mov    $0xffffffff,%r15d
nopl   0x0(%rax,%rax,1)
mov    %ebp,(%rsp)
lea    0x10(%rsi),%edx
mov    %r12,%rdi
mov    %rsi,0x20(%rsp)
call   1060 <sym_link@plt>
mov    $0x10,%ebp
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x18(%rsp)
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x10(%rsp)
mov    %r12,%rdi
mov    $0x2,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x8(%rsp)
mov    %r12,%rdi
mov    $0x3,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x70(%rsp)
mov    %r12,%rdi
mov    $0x4,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x68(%rsp)
mov    %r12,%rdi
mov    $0x5,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x60(%rsp)
mov    %r12,%rdi
mov    $0x6,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x58(%rsp)
mov    %r12,%rdi
mov    $0x7,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x50(%rsp)
mov    %r12,%rdi
mov    $0x8,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x48(%rsp)
mov    %r12,%rdi
mov    $0x9,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x40(%rsp)
mov    %r12,%rdi
mov    $0xa,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x38(%rsp)
mov    %r12,%rdi
mov    $0xb,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x30(%rsp)
mov    %r12,%rdi
mov    $0xc,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,0x28(%rsp)
mov    %r12,%rdi
mov    $0xd,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%rbx
mov    %r12,%rdi
mov    $0xe,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%r14
mov    %r12,%rdi
mov    $0xf,%esi
mov    $0x10,%edx
mov    $0xf9,%ecx
call   1050 <check_regular_file@plt>
mov    %rax,%r13
mov    0x10(%rsp),%rax
add    0x18(%rsp),%eax
mov    0x8(%rsp),%rcx
add    %eax,%ecx
mov    0x70(%rsp),%rax
add    %ecx,%eax
mov    0x68(%rsp),%rcx
add    %eax,%ecx
mov    0x60(%rsp),%rax
add    %ecx,%eax
mov    0x58(%rsp),%rcx
add    %eax,%ecx
mov    0x50(%rsp),%rax
add    %ecx,%eax
mov    0x48(%rsp),%rcx
add    %eax,%ecx
mov    0x40(%rsp),%rax
add    %ecx,%eax
mov    0x38(%rsp),%rcx
add    %eax,%ecx
mov    0x30(%rsp),%rax
add    %ecx,%eax
mov    0x28(%rsp),%rcx
add    %eax,%ecx
add    %ecx,%ebx
add    %ebx,%r14d
add    %r14d,%r13d
nopl   (%rax)
mov    %r12,%rdi
mov    %ebp,%esi
mov    $0xfc,%edx
call   1040 <check_symlink_file@plt>
add    %eax,%r13d
lea    (%r15,%rbp,1),%eax
add    $0x1,%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x10,%eax
jne    1750 <do_one_test+0x5e0>
mov    (%rsp),%ebp
mov    %ebp,%ebx
cmp    $0x1f,%ebp
ja     179a <do_one_test+0x62a>
nop
mov    %r12,%rdi
mov    %ebx,%esi
mov    $0xff,%edx
call   1080 <check_no_file@plt>
add    %eax,%r13d
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    1780 <do_one_test+0x610>
test   %r13d,%r13d
jne    1391 <do_one_test+0x221>
mov    0x20(%rsp),%rsi
add    $0x1,%esi
add    $0x1,%ebp
add    $0xffffffff,%r15d
cmp    $0x10,%esi
jne    1520 <do_one_test+0x3b0>
mov    $0x10,%ebp
xor    %r15d,%r15d
mov    $0x1,%r14d
nopl   0x0(%rax)
cmp    $0x10,%r14d
mov    $0xf,%eax
cmovae %r14d,%eax
neg    %eax
mov    %rax,0x18(%rsp)
mov    %r12,%rdi
mov    %r15d,%esi
call   1070 <remove_file@plt>
mov    $0xffffffff,%ebx
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
mov    $0x109,%edx
call   1080 <check_no_file@plt>
add    %eax,%r13d
cmp    %ebx,%r15d
jne    1800 <do_one_test+0x690>
add    $0xffffffff,%ebp
mov    %ebp,(%rsp)
cmp    $0xe,%ebx
ja     1890 <do_one_test+0x720>
mov    %r15d,0x8(%rsp)
cmp    $0x10,%r14d
mov    $0xf,%ebp
cmovae %r14d,%ebp
add    $0x1,%ebp
mov    %r14d,0x10(%rsp)
mov    %r14d,%ebx
mov    (%rsp),%r14d
mov    0x18(%rsp),%r15
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %ebx,%esi
mov    %r14d,%edx
mov    $0x10c,%ecx
call   1050 <check_regular_file@plt>
add    %eax,%r13d
lea    (%r15,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
jne    1850 <do_one_test+0x6e0>
mov    0x10(%rsp),%r14d
mov    0x8(%rsp),%r15d
cmp    $0x1f,%ebp
jbe    18a0 <do_one_test+0x730>
jmp    18ba <do_one_test+0x74a>
nopl   0x0(%rax)
mov    %r14d,%ebp
cmp    $0x1f,%ebp
ja     18ba <do_one_test+0x74a>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %ebp,%esi
mov    $0x10f,%edx
call   1040 <check_symlink_file@plt>
add    %eax,%r13d
add    $0x1,%ebp
cmp    $0x20,%ebp
jne    18a0 <do_one_test+0x730>
test   %r13d,%r13d
jne    1391 <do_one_test+0x221>
add    $0x1,%r15d
add    $0x1,%r14d
cmp    $0x10,%r15d
mov    (%rsp),%ebp
jne    17d0 <do_one_test+0x660>
xor    %ecx,%ecx
mov    $0x11,%r15d
cmp    $0x20,%r15d
mov    $0x1f,%r13d
cmovae %r15d,%r13d
neg    %r13d
mov    %rcx,(%rsp)
lea    0x10(%rcx),%esi
mov    %r12,%rdi
call   1070 <remove_file@plt>
xor    %ebx,%ebx
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %ebx,%esi
mov    $0x119,%edx
call   1080 <check_no_file@plt>
add    %eax,%r14d
add    $0x1,%ebx
cmp    %ebx,%r15d
jne    1910 <do_one_test+0x7a0>
add    $0xffffffff,%ebx
mov    %r15d,%ebp
cmp    $0x1e,%ebx
ja     1963 <do_one_test+0x7f3>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %ebp,%esi
mov    $0x11c,%edx
call   1040 <check_symlink_file@plt>
add    %eax,%r14d
lea    0x1(%r13,%rbp,1),%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
jne    1940 <do_one_test+0x7d0>
test   %r14d,%r14d
jne    1391 <do_one_test+0x221>
mov    (%rsp),%rcx
add    $0x1,%ecx
add    $0x1,%r15d
xor    %eax,%eax
cmp    $0x10,%ecx
jne    18e0 <do_one_test+0x770>
jmp    1470 <do_one_test+0x300>

LLVM IR (-O0):
define i32 @do_one_test(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
br label %10
10: ; preds = %17, %2
%11 = load i32, i32* %8
%12 = icmp slt i32 %11, 32
br i1 %12, label %13, label %20
13: ; preds = %10
%14 = load i8*, i8** %4
%15 = load i32, i32* %8
%16 = call i32 @remove_file(i8* %14, i32 %15)
br label %17
17: ; preds = %13
%18 = load i32, i32* %8
%19 = add nsw i32 %18, 1
store i32 %19, i32* %8
br label %10
20: ; preds = %10
store i32 0, i32* %8
br label %21
21: ; preds = %32, %20
%22 = load i32, i32* %8
%23 = icmp slt i32 %22, 32
br i1 %23, label %24, label %35
24: ; preds = %21
%25 = load i8*, i8** %4
%26 = load i32, i32* %8
%27 = call i64 @check_no_file(i8* %25, i32 %26, i32 217)
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, i32* %6
br label %32
32: ; preds = %24
%33 = load i32, i32* %8
%34 = add nsw i32 %33, 1
store i32 %34, i32* %8
br label %21
35: ; preds = %21
%36 = load i32, i32* %6
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
br label %310
39: ; preds = %35
%40 = load i8*, i8** %4
%41 = call i32 @create_file(i8* %40, i32 0)
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
store i32 %43, i32* %7
store i32 0, i32* %8
br label %44
44: ; preds = %57, %39
%45 = load i32, i32* %8
%46 = load i32, i32* %7
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %60
48: ; preds = %44
%49 = load i8*, i8** %4
%50 = load i32, i32* %8
%51 = load i32, i32* %7
%52 = call i64 @check_regular_file(i8* %49, i32 %50, i32 %51, i32 225)
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = add nsw i64 %54, %52
%56 = trunc i64 %55 to i32
store i32 %56, i32* %6
br label %57
57: ; preds = %48
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
br label %44
60: ; preds = %44
br label %61
61: ; preds = %72, %60
%62 = load i32, i32* %8
%63 = icmp slt i32 %62, 32
br i1 %63, label %64, label %75
64: ; preds = %61
%65 = load i8*, i8** %4
%66 = load i32, i32* %8
%67 = call i64 @check_no_file(i8* %65, i32 %66, i32 228)
%68 = load i32, i32* %6
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, i32* %6
br label %72
72: ; preds = %64
%73 = load i32, i32* %8
%74 = add nsw i32 %73, 1
store i32 %74, i32* %8
br label %61
75: ; preds = %61
%76 = load i32, i32* %6
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %75
br label %310
79: ; preds = %75
store i32 1, i32* %9
br label %80
80: ; preds = %127, %79
%81 = load i32, i32* %9
%82 = icmp slt i32 %81, 16
br i1 %82, label %83, label %130
83: ; preds = %80
%84 = load i8*, i8** %4
%85 = load i32, i32* %9
%86 = sub nsw i32 %85, 1
%87 = load i32, i32* %9
%88 = call i32 @hard_link(i8* %84, i32 %86, i32 %87)
%89 = load i32, i32* %7
%90 = add nsw i32 %89, 1
store i32 %90, i32* %7
store i32 0, i32* %8
br label %91
91: ; preds = %104, %83
%92 = load i32, i32* %8
%93 = load i32, i32* %7
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %107
95: ; preds = %91
%96 = load i8*, i8** %4
%97 = load i32, i32* %8
%98 = load i32, i32* %7
%99 = call i64 @check_regular_file(i8* %96, i32 %97, i32 %98, i32 237)
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = add nsw i64 %101, %99
%103 = trunc i64 %102 to i32
store i32 %103, i32* %6
br label %104
104: ; preds = %95
%105 = load i32, i32* %8
%106 = add nsw i32 %105, 1
store i32 %106, i32* %8
br label %91
107: ; preds = %91
br label %108
108: ; preds = %119, %107
%109 = load i32, i32* %8
%110 = icmp slt i32 %109, 32
br i1 %110, label %111, label %122
111: ; preds = %108
%112 = load i8*, i8** %4
%113 = load i32, i32* %8
%114 = call i64 @check_no_file(i8* %112, i32 %113, i32 240)
%115 = load i32, i32* %6
%116 = sext i32 %115 to i64
%117 = add nsw i64 %116, %114
%118 = trunc i64 %117 to i32
store i32 %118, i32* %6
br label %119
119: ; preds = %111
%120 = load i32, i32* %8
%121 = add nsw i32 %120, 1
store i32 %121, i32* %8
br label %108
122: ; preds = %108
%123 = load i32, i32* %6
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %126
125: ; preds = %122
br label %310
126: ; preds = %122
br label %127
127: ; preds = %126
%128 = load i32, i32* %9
%129 = add nsw i32 %128, 1
store i32 %129, i32* %9
br label %80
130: ; preds = %80
store i32 0, i32* %9
br label %131
131: ; preds = %192, %130
%132 = load i32, i32* %9
%133 = icmp slt i32 %132, 16
br i1 %133, label %134, label %195
134: ; preds = %131
%135 = load i8*, i8** %4
%136 = load i32, i32* %9
%137 = load i32, i32* %9
%138 = add nsw i32 %137, 16
%139 = call i32 @sym_link(i8* %135, i32 %136, i32 %138)
store i32 0, i32* %8
br label %140
140: ; preds = %152, %134
%141 = load i32, i32* %8
%142 = icmp slt i32 %141, 16
br i1 %142, label %143, label %155
143: ; preds = %140
%144 = load i8*, i8** %4
%145 = load i32, i32* %8
%146 = load i32, i32* %7
%147 = call i64 @check_regular_file(i8* %144, i32 %145, i32 %146, i32 249)
%148 = load i32, i32* %6
%149 = sext i32 %148 to i64
%150 = add nsw i64 %149, %147
%151 = trunc i64 %150 to i32
store i32 %151, i32* %6
br label %152
152: ; preds = %143
%153 = load i32, i32* %8
%154 = add nsw i32 %153, 1
store i32 %154, i32* %8
br label %140
155: ; preds = %140
br label %156
156: ; preds = %169, %155
%157 = load i32, i32* %8
%158 = load i32, i32* %9
%159 = add nsw i32 16, %158
%160 = icmp sle i32 %157, %159
br i1 %160, label %161, label %172
161: ; preds = %156
%162 = load i8*, i8** %4
%163 = load i32, i32* %8
%164 = call i64 @check_symlink_file(i8* %162, i32 %163, i32 252)
%165 = load i32, i32* %6
%166 = sext i32 %165 to i64
%167 = add nsw i64 %166, %164
%168 = trunc i64 %167 to i32
store i32 %168, i32* %6
br label %169
169: ; preds = %161
%170 = load i32, i32* %8
%171 = add nsw i32 %170, 1
store i32 %171, i32* %8
br label %156
172: ; preds = %156
br label %173
173: ; preds = %184, %172
%174 = load i32, i32* %8
%175 = icmp slt i32 %174, 32
br i1 %175, label %176, label %187
176: ; preds = %173
%177 = load i8*, i8** %4
%178 = load i32, i32* %8
%179 = call i64 @check_no_file(i8* %177, i32 %178, i32 255)
%180 = load i32, i32* %6
%181 = sext i32 %180 to i64
%182 = add nsw i64 %181, %179
%183 = trunc i64 %182 to i32
store i32 %183, i32* %6
br label %184
184: ; preds = %176
%185 = load i32, i32* %8
%186 = add nsw i32 %185, 1
store i32 %186, i32* %8
br label %173
187: ; preds = %173
%188 = load i32, i32* %6
%189 = icmp ne i32 %188, 0
br i1 %189, label %190, label %191
190: ; preds = %187
br label %310
191: ; preds = %187
br label %192
192: ; preds = %191
%193 = load i32, i32* %9
%194 = add nsw i32 %193, 1
store i32 %194, i32* %9
br label %131
195: ; preds = %131
store i32 0, i32* %9
br label %196
196: ; preds = %256, %195
%197 = load i32, i32* %9
%198 = icmp slt i32 %197, 16
br i1 %198, label %199, label %259
199: ; preds = %196
%200 = load i8*, i8** %4
%201 = load i32, i32* %9
%202 = call i32 @remove_file(i8* %200, i32 %201)
%203 = load i32, i32* %7
%204 = add nsw i32 %203, -1
store i32 %204, i32* %7
store i32 0, i32* %8
br label %205
205: ; preds = %217, %199
%206 = load i32, i32* %8
%207 = load i32, i32* %9
%208 = icmp sle i32 %206, %207
br i1 %208, label %209, label %220
209: ; preds = %205
%210 = load i8*, i8** %4
%211 = load i32, i32* %8
%212 = call i64 @check_no_file(i8* %210, i32 %211, i32 265)
%213 = load i32, i32* %6
%214 = sext i32 %213 to i64
%215 = add nsw i64 %214, %212
%216 = trunc i64 %215 to i32
store i32 %216, i32* %6
br label %217
217: ; preds = %209
%218 = load i32, i32* %8
%219 = add nsw i32 %218, 1
store i32 %219, i32* %8
br label %205
220: ; preds = %205
br label %221
221: ; preds = %233, %220
%222 = load i32, i32* %8
%223 = icmp slt i32 %222, 16
br i1 %223, label %224, label %236
224: ; preds = %221
%225 = load i8*, i8** %4
%226 = load i32, i32* %8
%227 = load i32, i32* %7
%228 = call i64 @check_regular_file(i8* %225, i32 %226, i32 %227, i32 268)
%229 = load i32, i32* %6
%230 = sext i32 %229 to i64
%231 = add nsw i64 %230, %228
%232 = trunc i64 %231 to i32
store i32 %232, i32* %6
br label %233
233: ; preds = %224
%234 = load i32, i32* %8
%235 = add nsw i32 %234, 1
store i32 %235, i32* %8
br label %221
236: ; preds = %221
br label %237
237: ; preds = %248, %236
%238 = load i32, i32* %8
%239 = icmp slt i32 %238, 32
br i1 %239, label %240, label %251
240: ; preds = %237
%241 = load i8*, i8** %4
%242 = load i32, i32* %8
%243 = call i64 @check_symlink_file(i8* %241, i32 %242, i32 271)
%244 = load i32, i32* %6
%245 = sext i32 %244 to i64
%246 = add nsw i64 %245, %243
%247 = trunc i64 %246 to i32
store i32 %247, i32* %6
br label %248
248: ; preds = %240
%249 = load i32, i32* %8
%250 = add nsw i32 %249, 1
store i32 %250, i32* %8
br label %237
251: ; preds = %237
%252 = load i32, i32* %6
%253 = icmp ne i32 %252, 0
br i1 %253, label %254, label %255
254: ; preds = %251
br label %310
255: ; preds = %251
br label %256
256: ; preds = %255
%257 = load i32, i32* %9
%258 = add nsw i32 %257, 1
store i32 %258, i32* %9
br label %196
259: ; preds = %196
store i32 0, i32* %9
br label %260
260: ; preds = %306, %259
%261 = load i32, i32* %9
%262 = icmp slt i32 %261, 16
br i1 %262, label %263, label %309
263: ; preds = %260
%264 = load i8*, i8** %4
%265 = load i32, i32* %9
%266 = add nsw i32 %265, 16
%267 = call i32 @remove_file(i8* %264, i32 %266)
%268 = load i32, i32* %7
%269 = add nsw i32 %268, -1
store i32 %269, i32* %7
store i32 0, i32* %8
br label %270
270: ; preds = %283, %263
%271 = load i32, i32* %8
%272 = load i32, i32* %9
%273 = add nsw i32 16, %272
%274 = icmp sle i32 %271, %273
br i1 %274, label %275, label %286
275: ; preds = %270
%276 = load i8*, i8** %4
%277 = load i32, i32* %8
%278 = call i64 @check_no_file(i8* %276, i32 %277, i32 281)
%279 = load i32, i32* %6
%280 = sext i32 %279 to i64
%281 = add nsw i64 %280, %278
%282 = trunc i64 %281 to i32
store i32 %282, i32* %6
br label %283
283: ; preds = %275
%284 = load i32, i32* %8
%285 = add nsw i32 %284, 1
store i32 %285, i32* %8
br label %270
286: ; preds = %270
br label %287
287: ; preds = %298, %286
%288 = load i32, i32* %8
%289 = icmp slt i32 %288, 32
br i1 %289, label %290, label %301
290: ; preds = %287
%291 = load i8*, i8** %4
%292 = load i32, i32* %8
%293 = call i64 @check_symlink_file(i8* %291, i32 %292, i32 284)
%294 = load i32, i32* %6
%295 = sext i32 %294 to i64
%296 = add nsw i64 %295, %293
%297 = trunc i64 %296 to i32
store i32 %297, i32* %6
br label %298
298: ; preds = %290
%299 = load i32, i32* %8
%300 = add nsw i32 %299, 1
store i32 %300, i32* %8
br label %287
301: ; preds = %287
%302 = load i32, i32* %6
%303 = icmp ne i32 %302, 0
br i1 %303, label %304, label %305
304: ; preds = %301
br label %310
305: ; preds = %301
br label %306
306: ; preds = %305
%307 = load i32, i32* %9
%308 = add nsw i32 %307, 1
store i32 %308, i32* %9
br label %260
309: ; preds = %260
store i32 0, i32* %3
br label %322
310: ; preds = %304, %254, %190, %125, %78, %38
store i32 0, i32* %8
br label %311
311: ; preds = %318, %310
%312 = load i32, i32* %8
%313 = icmp sle i32 %312, 16
br i1 %313, label %314, label %321
314: ; preds = %311
%315 = load i8*, i8** %4
%316 = load i32, i32* %8
%317 = call i32 @remove_file(i8* %315, i32 %316)
br label %318
318: ; preds = %314
%319 = load i32, i32* %8
%320 = add nsw i32 %319, 1
store i32 %320, i32* %8
br label %311
321: ; preds = %311
store i32 -1, i32* %3
br label %322
322: ; preds = %321, %309
%323 = load i32, i32* %3
ret i32 %323
}

LLVM IR (-O2):
define i32 @do_one_test(i8* %0, i32 %1) {
%3 = tail call i32 @remove_file(i8* %0, i32 0)
%4 = tail call i32 @remove_file(i8* %0, i32 1)
%5 = tail call i32 @remove_file(i8* %0, i32 2)
%6 = tail call i32 @remove_file(i8* %0, i32 3)
%7 = tail call i32 @remove_file(i8* %0, i32 4)
%8 = tail call i32 @remove_file(i8* %0, i32 5)
%9 = tail call i32 @remove_file(i8* %0, i32 6)
%10 = tail call i32 @remove_file(i8* %0, i32 7)
%11 = tail call i32 @remove_file(i8* %0, i32 8)
%12 = tail call i32 @remove_file(i8* %0, i32 9)
%13 = tail call i32 @remove_file(i8* %0, i32 10)
%14 = tail call i32 @remove_file(i8* %0, i32 11)
%15 = tail call i32 @remove_file(i8* %0, i32 12)
%16 = tail call i32 @remove_file(i8* %0, i32 13)
%17 = tail call i32 @remove_file(i8* %0, i32 14)
%18 = tail call i32 @remove_file(i8* %0, i32 15)
%19 = tail call i32 @remove_file(i8* %0, i32 16)
%20 = tail call i32 @remove_file(i8* %0, i32 17)
%21 = tail call i32 @remove_file(i8* %0, i32 18)
%22 = tail call i32 @remove_file(i8* %0, i32 19)
%23 = tail call i32 @remove_file(i8* %0, i32 20)
%24 = tail call i32 @remove_file(i8* %0, i32 21)
%25 = tail call i32 @remove_file(i8* %0, i32 22)
%26 = tail call i32 @remove_file(i8* %0, i32 23)
%27 = tail call i32 @remove_file(i8* %0, i32 24)
%28 = tail call i32 @remove_file(i8* %0, i32 25)
%29 = tail call i32 @remove_file(i8* %0, i32 26)
%30 = tail call i32 @remove_file(i8* %0, i32 27)
%31 = tail call i32 @remove_file(i8* %0, i32 28)
%32 = tail call i32 @remove_file(i8* %0, i32 29)
%33 = tail call i32 @remove_file(i8* %0, i32 30)
%34 = tail call i32 @remove_file(i8* %0, i32 31)
br label %35
35: ; preds = %2, %35
%36 = phi i32 [ %41, %35 ], [ 0, %2 ]
%37 = phi i32 [ %40, %35 ], [ 0, %2 ]
%38 = tail call i64 @check_no_file(i8* %0, i32 %36, i32 217)
%39 = trunc i64 %38 to i32
%40 = add i32 %37, %39
%41 = add nuw nsw i32 %36, 1
%42 = icmp eq i32 %41, 32
br i1 %42, label %43, label %35
43: ; preds = %35
%44 = icmp eq i32 %40, 0
br i1 %44, label %45, label %244
45: ; preds = %43
%46 = tail call i32 @create_file(i8* %0, i32 0)
%47 = tail call i64 @check_regular_file(i8* %0, i32 0, i32 1, i32 225)
%48 = trunc i64 %47 to i32
br label %49
49: ; preds = %45, %49
%50 = phi i32 [ 1, %45 ], [ %55, %49 ]
%51 = phi i32 [ %48, %45 ], [ %54, %49 ]
%52 = tail call i64 @check_no_file(i8* %0, i32 %50, i32 228)
%53 = trunc i64 %52 to i32
%54 = add i32 %51, %53
%55 = add nuw nsw i32 %50, 1
%56 = icmp eq i32 %55, 32
br i1 %56, label %57, label %49
57: ; preds = %49
%58 = icmp eq i32 %54, 0
br i1 %58, label %62, label %244
59: ; preds = %86
%60 = add nuw nsw i32 %63, 1
%61 = icmp eq i32 %60, 17
br i1 %61, label %93, label %62
62: ; preds = %57, %59
%63 = phi i32 [ %60, %59 ], [ 2, %57 ]
%64 = phi i32 [ %67, %59 ], [ 1, %57 ]
%65 = add nsw i32 %64, -1
%66 = tail call i32 @hard_link(i8* %0, i32 %65, i32 %64)
%67 = add nuw nsw i32 %64, 1
br label %70
68: ; preds = %70
%69 = icmp ult i32 %71, 31
br i1 %69, label %78, label %86
70: ; preds = %62, %70
%71 = phi i32 [ 0, %62 ], [ %76, %70 ]
%72 = phi i32 [ 0, %62 ], [ %75, %70 ]
%73 = tail call i64 @check_regular_file(i8* %0, i32 %71, i32 %67, i32 237)
%74 = trunc i64 %73 to i32
%75 = add i32 %72, %74
%76 = add nuw nsw i32 %71, 1
%77 = icmp eq i32 %76, %63
br i1 %77, label %68, label %70
78: ; preds = %68, %78
%79 = phi i32 [ %84, %78 ], [ %63, %68 ]
%80 = phi i32 [ %83, %78 ], [ %75, %68 ]
%81 = tail call i64 @check_no_file(i8* %0, i32 %79, i32 240)
%82 = trunc i64 %81 to i32
%83 = add i32 %80, %82
%84 = add nuw nsw i32 %79, 1
%85 = icmp eq i32 %84, 32
br i1 %85, label %86, label %78
86: ; preds = %78, %68
%87 = phi i32 [ %75, %68 ], [ %83, %78 ]
%88 = icmp eq i32 %87, 0
br i1 %88, label %59, label %244
89: ; preds = %163
%90 = add nuw nsw i32 %95, 1
%91 = add nuw nsw i32 %94, 1
%92 = icmp eq i32 %90, 16
br i1 %92, label %170, label %93
93: ; preds = %59, %89
%94 = phi i32 [ %91, %89 ], [ 17, %59 ]
%95 = phi i32 [ %90, %89 ], [ 0, %59 ]
%96 = add nuw nsw i32 %95, 16
%97 = tail call i32 @sym_link(i8* %0, i32 %95, i32 %96)
%98 = tail call i64 @check_regular_file(i8* %0, i32 0, i32 16, i32 249)
%99 = tail call i64 @check_regular_file(i8* %0, i32 1, i32 16, i32 249)
%100 = tail call i64 @check_regular_file(i8* %0, i32 2, i32 16, i32 249)
%101 = tail call i64 @check_regular_file(i8* %0, i32 3, i32 16, i32 249)
%102 = tail call i64 @check_regular_file(i8* %0, i32 4, i32 16, i32 249)
%103 = tail call i64 @check_regular_file(i8* %0, i32 5, i32 16, i32 249)
%104 = tail call i64 @check_regular_file(i8* %0, i32 6, i32 16, i32 249)
%105 = tail call i64 @check_regular_file(i8* %0, i32 7, i32 16, i32 249)
%106 = tail call i64 @check_regular_file(i8* %0, i32 8, i32 16, i32 249)
%107 = tail call i64 @check_regular_file(i8* %0, i32 9, i32 16, i32 249)
%108 = tail call i64 @check_regular_file(i8* %0, i32 10, i32 16, i32 249)
%109 = tail call i64 @check_regular_file(i8* %0, i32 11, i32 16, i32 249)
%110 = tail call i64 @check_regular_file(i8* %0, i32 12, i32 16, i32 249)
%111 = tail call i64 @check_regular_file(i8* %0, i32 13, i32 16, i32 249)
%112 = tail call i64 @check_regular_file(i8* %0, i32 14, i32 16, i32 249)
%113 = tail call i64 @check_regular_file(i8* %0, i32 15, i32 16, i32 249)
%114 = trunc i64 %98 to i32
%115 = trunc i64 %99 to i32
%116 = add i32 %114, %115
%117 = trunc i64 %100 to i32
%118 = add i32 %116, %117
%119 = trunc i64 %101 to i32
%120 = add i32 %118, %119
%121 = trunc i64 %102 to i32
%122 = add i32 %120, %121
%123 = trunc i64 %103 to i32
%124 = add i32 %122, %123
%125 = trunc i64 %104 to i32
%126 = add i32 %124, %125
%127 = trunc i64 %105 to i32
%128 = add i32 %126, %127
%129 = trunc i64 %106 to i32
%130 = add i32 %128, %129
%131 = trunc i64 %107 to i32
%132 = add i32 %130, %131
%133 = trunc i64 %108 to i32
%134 = add i32 %132, %133
%135 = trunc i64 %109 to i32
%136 = add i32 %134, %135
%137 = trunc i64 %110 to i32
%138 = add i32 %136, %137
%139 = trunc i64 %111 to i32
%140 = add i32 %138, %139
%141 = trunc i64 %112 to i32
%142 = add i32 %140, %141
%143 = trunc i64 %113 to i32
%144 = add i32 %142, %143
br label %147
145: ; preds = %147
%146 = icmp ult i32 %94, 32
br i1 %146, label %155, label %163
147: ; preds = %93, %147
%148 = phi i32 [ %153, %147 ], [ 16, %93 ]
%149 = phi i32 [ %152, %147 ], [ %144, %93 ]
%150 = tail call i64 @check_symlink_file(i8* %0, i32 %148, i32 252)
%151 = trunc i64 %150 to i32
%152 = add i32 %149, %151
%153 = add nuw nsw i32 %148, 1
%154 = icmp eq i32 %153, %94
br i1 %154, label %145, label %147
155: ; preds = %145, %155
%156 = phi i32 [ %161, %155 ], [ %94, %145 ]
%157 = phi i32 [ %160, %155 ], [ %152, %145 ]
%158 = tail call i64 @check_no_file(i8* %0, i32 %156, i32 255)
%159 = trunc i64 %158 to i32
%160 = add i32 %157, %159
%161 = add nuw nsw i32 %156, 1
%162 = icmp eq i32 %161, 32
br i1 %162, label %163, label %155
163: ; preds = %155, %145
%164 = phi i32 [ %152, %145 ], [ %160, %155 ]
%165 = icmp eq i32 %164, 0
br i1 %165, label %89, label %244
166: ; preds = %209
%167 = add nuw nsw i32 %172, 1
%168 = add nuw nsw i32 %171, 1
%169 = icmp eq i32 %167, 16
br i1 %169, label %216, label %170
170: ; preds = %89, %166
%171 = phi i32 [ %168, %166 ], [ 1, %89 ]
%172 = phi i32 [ %167, %166 ], [ 0, %89 ]
%173 = phi i32 [ %176, %166 ], [ 16, %89 ]
%174 = tail call i32 @remove_file(i8* %0, i32 %172)
br label %181
175: ; preds = %181
%176 = add nsw i32 %173, -1
%177 = icmp ult i32 %182, 15
br i1 %177, label %178, label %189
178: ; preds = %175
%179 = call i32 @llvm.umax.i32(i32 %171, i32 15)
%180 = add nuw nsw i32 %179, 1
br label %193
181: ; preds = %170, %181
%182 = phi i32 [ 0, %170 ], [ %187, %181 ]
%183 = phi i32 [ 0, %170 ], [ %186, %181 ]
%184 = tail call i64 @check_no_file(i8* %0, i32 %182, i32 265)
%185 = trunc i64 %184 to i32
%186 = add i32 %183, %185
%187 = add nuw nsw i32 %182, 1
%188 = icmp eq i32 %187, %171
br i1 %188, label %175, label %181
189: ; preds = %193, %175
%190 = phi i32 [ %186, %175 ], [ %198, %193 ]
%191 = phi i32 [ %171, %175 ], [ %180, %193 ]
%192 = icmp ult i32 %191, 32
br i1 %192, label %201, label %209
193: ; preds = %178, %193
%194 = phi i32 [ %199, %193 ], [ %171, %178 ]
%195 = phi i32 [ %198, %193 ], [ %186, %178 ]
%196 = tail call i64 @check_regular_file(i8* %0, i32 %194, i32 %176, i32 268)
%197 = trunc i64 %196 to i32
%198 = add i32 %195, %197
%199 = add nuw nsw i32 %194, 1
%200 = icmp eq i32 %194, %179
br i1 %200, label %189, label %193
201: ; preds = %189, %201
%202 = phi i32 [ %207, %201 ], [ %191, %189 ]
%203 = phi i32 [ %206, %201 ], [ %190, %189 ]
%204 = tail call i64 @check_symlink_file(i8* %0, i32 %202, i32 271)
%205 = trunc i64 %204 to i32
%206 = add i32 %203, %205
%207 = add nuw nsw i32 %202, 1
%208 = icmp eq i32 %207, 32
br i1 %208, label %209, label %201
209: ; preds = %201, %189
%210 = phi i32 [ %190, %189 ], [ %206, %201 ]
%211 = icmp eq i32 %210, 0
br i1 %211, label %166, label %244
212: ; preds = %241
%213 = add nuw nsw i32 %218, 1
%214 = add nuw nsw i32 %217, 1
%215 = icmp eq i32 %213, 16
br i1 %215, label %262, label %216
216: ; preds = %166, %212
%217 = phi i32 [ %214, %212 ], [ 17, %166 ]
%218 = phi i32 [ %213, %212 ], [ 0, %166 ]
%219 = add nuw nsw i32 %218, 16
%220 = tail call i32 @remove_file(i8* %0, i32 %219)
br label %225
221: ; preds = %225
%222 = icmp ult i32 %226, 31
br i1 %222, label %223, label %241
223: ; preds = %221
%224 = call i32 @llvm.umax.i32(i32 %217, i32 31)
br label %233
225: ; preds = %216, %225
%226 = phi i32 [ 0, %216 ], [ %231, %225 ]
%227 = phi i32 [ 0, %216 ], [ %230, %225 ]
%228 = tail call i64 @check_no_file(i8* %0, i32 %226, i32 281)
%229 = trunc i64 %228 to i32
%230 = add i32 %227, %229
%231 = add nuw nsw i32 %226, 1
%232 = icmp eq i32 %231, %217
br i1 %232, label %221, label %225
233: ; preds = %223, %233
%234 = phi i32 [ %239, %233 ], [ %217, %223 ]
%235 = phi i32 [ %238, %233 ], [ %230, %223 ]
%236 = tail call i64 @check_symlink_file(i8* %0, i32 %234, i32 284)
%237 = trunc i64 %236 to i32
%238 = add i32 %235, %237
%239 = add nuw nsw i32 %234, 1
%240 = icmp eq i32 %234, %224
br i1 %240, label %241, label %233
241: ; preds = %233, %221
%242 = phi i32 [ %230, %221 ], [ %238, %233 ]
%243 = icmp eq i32 %242, 0
br i1 %243, label %212, label %244
244: ; preds = %86, %163, %209, %241, %57, %43
%245 = tail call i32 @remove_file(i8* %0, i32 0)
%246 = tail call i32 @remove_file(i8* %0, i32 1)
%247 = tail call i32 @remove_file(i8* %0, i32 2)
%248 = tail call i32 @remove_file(i8* %0, i32 3)
%249 = tail call i32 @remove_file(i8* %0, i32 4)
%250 = tail call i32 @remove_file(i8* %0, i32 5)
%251 = tail call i32 @remove_file(i8* %0, i32 6)
%252 = tail call i32 @remove_file(i8* %0, i32 7)
%253 = tail call i32 @remove_file(i8* %0, i32 8)
%254 = tail call i32 @remove_file(i8* %0, i32 9)
%255 = tail call i32 @remove_file(i8* %0, i32 10)
%256 = tail call i32 @remove_file(i8* %0, i32 11)
%257 = tail call i32 @remove_file(i8* %0, i32 12)
%258 = tail call i32 @remove_file(i8* %0, i32 13)
%259 = tail call i32 @remove_file(i8* %0, i32 14)
%260 = tail call i32 @remove_file(i8* %0, i32 15)
%261 = tail call i32 @remove_file(i8* %0, i32 16)
br label %262
262: ; preds = %212, %244
%263 = phi i32 [ -1, %244 ], [ 0, %212 ]
ret i32 %263
}