#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 scalar_t__ pid_t;
typedef int /*<<< orphan*/ fstypes;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
scalar_t__ EXIT_SUCCESS;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ O_WRONLY;
int /*<<< orphan*/ STDERR_FILENO;
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
scalar_t__ WEXITSTATUS(int);
scalar_t__ WIFEXITED(int);
int /*<<< orphan*/ WIFSIGNALED(int);
int /*<<< orphan*/ close(int /*<<< orphan*/);
int /*<<< orphan*/ debug(char *, char const *, char const *);
int /*<<< orphan*/ execl(char *, char *, char *, char *, char *, char *, char *,
                         char const *, char const *, char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ open(char *, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ waitpid(scalar_t__, int *, int /*<<< orphan*/);
bool do_mount(const char *device, const char *dir) {
  pid_t pid;
  pid_t wpid;
  int status;
  char *fstypes[] = {"ext4", "ext3", "ext2", "vfat",    "btrfs", "reiserfs",
                     "xfs",  "jfs",  "ntfs", "iso9660", "udf"};
  int fsindex;
  if (!device || !dir)
    return false;
  for (fsindex = 0; fsindex < (sizeof(fstypes) / sizeof(fstypes[0]));
       fsindex++) {
    pid = fork();
    if (pid < 0) {
      return false;
    } else if (pid > 0) {
      do {
        wpid = waitpid(pid, &status, 0);
      } while (!WIFEXITED(status) && !WIFSIGNALED(status));
      if (WIFEXITED(status) && WEXITSTATUS(status) == EXIT_SUCCESS)
        return true;
      continue;
    } else {
      debug("Mounting %s at %s\n", device, dir);
      close(STDIN_FILENO);
      close(STDOUT_FILENO);
      close(STDERR_FILENO);
      open("/dev/null", O_RDONLY, 0);
      open("/dev/null", O_WRONLY, 0);
      open("/dev/null", O_WRONLY, 0);
      execl("/bin/mount", "/bin/mount", "-n", "-t", fstypes[fsindex], "-o",
            "noatime,nodiratime,nodev,noexec,nosuid,ro", device, dir,
            (char *)NULL);
      exit(EXIT_FAILURE);
    }
  }
  return false;
}


x86 assembly (clang, -O0):
<do_mount>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x90(%rbp),%rdi
lea    0x2bbf(%rip),%rsi
mov    $0x58,%edx
call   1060 <memcpy@plt>
cmpq   $0x0,-0x10(%rbp)
je     11f1 <do_mount+0x41>
cmpq   $0x0,-0x18(%rbp)
jne    11fd <do_mount+0x4d>
movl   $0x0,-0x4(%rbp)
jmp    13e0 <do_mount+0x230>
movl   $0x0,-0x94(%rbp)
movslq -0x94(%rbp),%rax
cmp    $0xb,%rax
jae    13d9 <do_mount+0x229>
mov    $0x0,%al
call   10d0 <fork@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jge    123a <do_mount+0x8a>
movl   $0x0,-0x4(%rbp)
jmp    13e0 <do_mount+0x230>
cmpq   $0x0,-0x20(%rbp)
jle    12d9 <do_mount+0x129>
jmp    124a <do_mount+0x9a>
mov    -0x20(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    %rax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
call   10a0 <WIFEXITED@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x95(%rbp)
jne    1290 <do_mount+0xe0>
mov    -0x2c(%rbp),%edi
call   1050 <WIFSIGNALED@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x95(%rbp)
mov    -0x95(%rbp),%al
test   $0x1,%al
jne    124a <do_mount+0x9a>
mov    -0x2c(%rbp),%edi
call   10a0 <WIFEXITED@plt>
cmp    $0x0,%rax
je     12d4 <do_mount+0x124>
mov    -0x2c(%rbp),%edi
call   1070 <WEXITSTATUS@plt>
mov    0x2d01(%rip),%rcx
cmp    (%rcx),%rax
jne    12d4 <do_mount+0x124>
movl   $0x1,-0x4(%rbp)
jmp    13e0 <do_mount+0x230>
jmp    13c5 <do_mount+0x215>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xd54(%rip),%rdi
call   1030 <debug@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cc2(%rip),%rax
mov    (%rax),%esi
lea    0xd28(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
mov    0x2c73(%rip),%rax
mov    (%rax),%esi
lea    0xd11(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
mov    0x2c5c(%rip),%rax
mov    (%rax),%esi
lea    0xcfa(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%r8
ff
mov    -0x10(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xcdf(%rip),%rsi
lea    0xce3(%rip),%rdx
lea    0xcdf(%rip),%rcx
lea    0xcdb(%rip),%r9
lea    0xcd7(%rip),%r11
xor    %edi,%edi
mov    %rsi,%rdi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movq   $0x0,0x18(%rsp)
call   10c0 <execl@plt>
mov    0x2c0a(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1207 <do_mount+0x57>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_mount>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %r12d,%r12d
test   %rdi,%rdi
je     124a <do_mount+0xaa>
test   %rsi,%rsi
je     124a <do_mount+0xaa>
mov    %rdi,%r15
mov    %rsi,0x10(%rsp)
xor    %r12d,%r12d
lea    0xc(%rsp),%rbx
mov    0x2de6(%rip),%r14
xor    %r13d,%r13d
jmp    11ea <do_mount+0x4a>
nop
add    $0x1,%r13d
cmp    $0xb,%r13d
je     124a <do_mount+0xaa>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     124a <do_mount+0xaa>
je     125c <do_mount+0xbc>
mov    %rax,%rbp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <waitpid@plt>
mov    0xc(%rsp),%edi
call   1090 <WIFEXITED@plt>
test   %rax,%rax
jne    1228 <do_mount+0x88>
mov    0xc(%rsp),%edi
call   1050 <WIFSIGNALED@plt>
test   %eax,%eax
je     1200 <do_mount+0x60>
mov    0xc(%rsp),%edi
call   1090 <WIFEXITED@plt>
test   %rax,%rax
je     11e0 <do_mount+0x40>
mov    0xc(%rsp),%edi
call   1060 <WEXITSTATUS@plt>
cmp    (%r14),%rax
jne    11e0 <do_mount+0x40>
mov    $0x1,%r12d
mov    %r12d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r13d,%r14d
lea    0xdd6(%rip),%rdi
mov    %r15,%rsi
mov    0x10(%rsp),%r12
mov    %r12,%rdx
call   1030 <debug@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2d37(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%esi
lea    0xd9f(%rip),%rbx
mov    %rbx,%rdi
xor    %edx,%edx
call   1080 <open@plt>
mov    0x2ce7(%rip),%rbp
mov    0x0(%rbp),%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   1080 <open@plt>
mov    0x0(%rbp),%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   1080 <open@plt>
lea    0xdb6(%rip),%rax
movslq (%rax,%r14,4),%r8
add    %rax,%r8
lea    0xd7d(%rip),%rax
lea    0xd62(%rip),%rdi
lea    0xd66(%rip),%rdx
lea    0xd62(%rip),%rcx
lea    0xd5e(%rip),%r9
mov    %rdi,%rsi
push   $0x0
push   %r12
push   %r15
push   %rax
call   10b0 <execl@plt>
add    $0x20,%rsp
mov    0x2ca2(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"ext4\00"
@.str.1 = [5 x i8] c"ext3\00"
@.str.2 = [5 x i8] c"ext2\00"
@.str.3 = [5 x i8] c"vfat\00"
@.str.4 = [6 x i8] c"btrfs\00"
@.str.5 = [9 x i8] c"reiserfs\00"
@.str.6 = [4 x i8] c"xfs\00"
@.str.7 = [4 x i8] c"jfs\00"
@.str.8 = [5 x i8] c"ntfs\00"
@.str.9 = [8 x i8] c"iso9660\00"
@.str.10 = [4 x i8] c"udf\00"
@__const.do_mount.fstypes = [11 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0)]
@EXIT_SUCCESS = global i64 0
@.str.11 = [19 x i8] c"Mounting %s at %s\0A\00"
@STDIN_FILENO = global i32 0
@STDOUT_FILENO = global i32 0
@STDERR_FILENO = global i32 0
@.str.12 = [10 x i8] c"/dev/null\00"
@O_RDONLY = global i32 0
@O_WRONLY = global i32 0
@.str.13 = [11 x i8] c"/bin/mount\00"
@.str.14 = [3 x i8] c"-n\00"
@.str.15 = [3 x i8] c"-t\00"
@.str.16 = [3 x i8] c"-o\00"
@.str.17 = [42 x i8] c"noatime,nodiratime,nodev,noexec,nosuid,ro\00"
@EXIT_FAILURE = global i32 0
define i32 @do_mount(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca [11 x i8*]
%10 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
%11 = bitcast [11 x i8*]* %9 to i8*
%12 = load i8*, i8** %4
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i8*, i8** %5
%16 = icmp ne i8* %15, null
br i1 %16, label %18, label %17
17: ; preds = %14, %2
store i32 0, i32* %3
br label %86
18: ; preds = %14
store i32 0, i32* %10
br label %19
19: ; preds = %82, %18
%20 = load i32, i32* %10
%21 = sext i32 %20 to i64
%22 = icmp ult i64 %21, 11
br i1 %22, label %23, label %85
23: ; preds = %19
%24 = call i64 (...) @fork()
store i64 %24, i64* %6
%25 = load i64, i64* %6
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 0, i32* %3
br label %86
28: ; preds = %23
%29 = load i64, i64* %6
%30 = icmp sgt i64 %29, 0
br i1 %30, label %31, label %57
31: ; preds = %28
br label %32
32: ; preds = %44, %31
%33 = load i64, i64* %6
%34 = call i64 @waitpid(i64 %33, i32* %8, i32 0)
store i64 %34, i64* %7
br label %35
35: ; preds = %32
%36 = load i32, i32* %8
%37 = call i64 @WIFEXITED(i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %44, label %39
39: ; preds = %35
%40 = load i32, i32* %8
%41 = call i32 @WIFSIGNALED(i32 %40)
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
br label %44
44: ; preds = %39, %35
%45 = phi i1 [ false, %35 ], [ %43, %39 ]
br i1 %45, label %32, label %46
46: ; preds = %44
%47 = load i32, i32* %8
%48 = call i64 @WIFEXITED(i32 %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = load i32, i32* %8
%52 = call i64 @WEXITSTATUS(i32 %51)
%53 = load i64, i64* @EXIT_SUCCESS
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %56
55: ; preds = %50
store i32 1, i32* %3
br label %86
56: ; preds = %50, %46
br label %82
57: ; preds = %28
%58 = load i8*, i8** %4
%59 = load i8*, i8** %5
%60 = call i32 @debug(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %58, i8* %59)
%61 = load i32, i32* @STDIN_FILENO
%62 = call i32 @close(i32 %61)
%63 = load i32, i32* @STDOUT_FILENO
%64 = call i32 @close(i32 %63)
%65 = load i32, i32* @STDERR_FILENO
%66 = call i32 @close(i32 %65)
%67 = load i32, i32* @O_RDONLY
%68 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %67, i32 0)
%69 = load i32, i32* @O_WRONLY
%70 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %69, i32 0)
%71 = load i32, i32* @O_WRONLY
%72 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %71, i32 0)
%73 = load i32, i32* %10
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [11 x i8*], [11 x i8*]* %9, i64 0, i64 %74
%76 = load i8*, i8** %75
%77 = load i8*, i8** %4
%78 = load i8*, i8** %5
%79 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0), i8* %77, i8* %78, i8* null)
%80 = load i32, i32* @EXIT_FAILURE
%81 = call i32 @exit(i32 %80)
unreachable
82: ; preds = %56
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
br label %19
85: ; preds = %19
store i32 0, i32* %3
br label %86
86: ; preds = %85, %55, %27, %17
%87 = load i32, i32* %3
ret i32 %87
}

LLVM IR (-O2):
@.str = [5 x i8] c"ext4\00"
@.str.1 = [5 x i8] c"ext3\00"
@.str.2 = [5 x i8] c"ext2\00"
@.str.3 = [5 x i8] c"vfat\00"
@.str.4 = [6 x i8] c"btrfs\00"
@.str.5 = [9 x i8] c"reiserfs\00"
@.str.6 = [4 x i8] c"xfs\00"
@.str.7 = [4 x i8] c"jfs\00"
@.str.8 = [5 x i8] c"ntfs\00"
@.str.9 = [8 x i8] c"iso9660\00"
@.str.10 = [4 x i8] c"udf\00"
@reltable.do_mount = [11 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.5 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.6 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.7 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.8 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.9 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([11 x i32]* @reltable.do_mount to i64)) to i32)]
@EXIT_SUCCESS = global i64 0
@.str.11 = [19 x i8] c"Mounting %s at %s\0A\00"
@STDIN_FILENO = global i32 0
@STDOUT_FILENO = global i32 0
@STDERR_FILENO = global i32 0
@.str.12 = [10 x i8] c"/dev/null\00"
@O_RDONLY = global i32 0
@O_WRONLY = global i32 0
@.str.13 = [11 x i8] c"/bin/mount\00"
@.str.14 = [3 x i8] c"-n\00"
@.str.15 = [3 x i8] c"-t\00"
@.str.16 = [3 x i8] c"-o\00"
@.str.17 = [42 x i8] c"noatime,nodiratime,nodev,noexec,nosuid,ro\00"
@EXIT_FAILURE = global i32 0
define i32 @do_mount(i8* %0, i8* %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = icmp ne i8* %0, null
%6 = icmp ne i8* %1, null
%7 = and i1 %5, %6
br i1 %7, label %8, label %55
8: ; preds = %2, %52
%9 = phi i32 [ %53, %52 ], [ 0, %2 ]
%10 = call i64 (...) @fork()
%11 = icmp slt i64 %10, 0
br i1 %11, label %55, label %12
12: ; preds = %8
%13 = icmp eq i64 %10, 0
br i1 %13, label %32, label %14
14: ; preds = %12, %19
%15 = call i64 @waitpid(i64 %10, i32* %3, i32 0)
%16 = load i32, i32* %3
%17 = call i64 @WIFEXITED(i32 %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, i32* %3
%21 = call i32 @WIFSIGNALED(i32 %20)
%22 = icmp eq i32 %21, 0
br i1 %22, label %14, label %23
23: ; preds = %14, %19
%24 = load i32, i32* %3
%25 = call i64 @WIFEXITED(i32 %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %52, label %27
27: ; preds = %23
%28 = load i32, i32* %3
%29 = call i64 @WEXITSTATUS(i32 %28)
%30 = load i64, i64* @EXIT_SUCCESS
%31 = icmp eq i64 %29, %30
br i1 %31, label %55, label %52
32: ; preds = %12
%33 = zext i32 %9 to i64
%34 = call i32 @debug(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %0, i8* %1)
%35 = load i32, i32* @STDIN_FILENO
%36 = call i32 @close(i32 %35)
%37 = load i32, i32* @STDOUT_FILENO
%38 = call i32 @close(i32 %37)
%39 = load i32, i32* @STDERR_FILENO
%40 = call i32 @close(i32 %39)
%41 = load i32, i32* @O_RDONLY
%42 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %41, i32 0)
%43 = load i32, i32* @O_WRONLY
%44 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %43, i32 0)
%45 = load i32, i32* @O_WRONLY
%46 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %45, i32 0)
%47 = shl i64 %33, 2
%48 = call i8* @llvm.load.relative.i64(i8* bitcast ([11 x i32]* @reltable.do_mount to i8*), i64 %47)
%49 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0), i8* %0, i8* %1, i8* null)
%50 = load i32, i32* @EXIT_FAILURE
%51 = call i32 @exit(i32 %50)
unreachable
52: ; preds = %23, %27
%53 = add nuw nsw i32 %9, 1
%54 = icmp eq i32 %53, 11
br i1 %54, label %55, label %8
55: ; preds = %52, %27, %8, %2
%56 = phi i32 [ 0, %2 ], [ 0, %52 ], [ 1, %27 ], [ 0, %8 ]
ret i32 %56
}