#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*/);
int /*<<< orphan*/ waitpid(scalar_t__, int *, int /*<<< orphan*/);
bool do_mount(const char *device, const char *dir) {
  pid_t pid;
  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 {
        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    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x80(%rbp),%rdi
lea    0x2bc2(%rip),%rsi
mov    $0x58,%edx
call   1060 <memcpy@plt>
cmpq   $0x0,-0x10(%rbp)
je     11ee <do_mount+0x3e>
cmpq   $0x0,-0x18(%rbp)
jne    11fa <do_mount+0x4a>
movl   $0x0,-0x4(%rbp)
jmp    13d6 <do_mount+0x226>
movl   $0x0,-0x84(%rbp)
movslq -0x84(%rbp),%rax
cmp    $0xb,%rax
jae    13cf <do_mount+0x21f>
mov    $0x0,%al
call   10d0 <fork@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jge    1237 <do_mount+0x87>
movl   $0x0,-0x4(%rbp)
jmp    13d6 <do_mount+0x226>
cmpq   $0x0,-0x20(%rbp)
jle    12d2 <do_mount+0x122>
jmp    1247 <do_mount+0x97>
mov    -0x20(%rbp),%rdi
lea    -0x24(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    -0x24(%rbp),%edi
call   10a0 <WIFEXITED@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x85(%rbp)
jne    1289 <do_mount+0xd9>
mov    -0x24(%rbp),%edi
call   1050 <WIFSIGNALED@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x85(%rbp)
mov    -0x85(%rbp),%al
test   $0x1,%al
jne    1247 <do_mount+0x97>
mov    -0x24(%rbp),%edi
call   10a0 <WIFEXITED@plt>
cmp    $0x0,%rax
je     12cd <do_mount+0x11d>
mov    -0x24(%rbp),%edi
call   1070 <WEXITSTATUS@plt>
mov    0x2d08(%rip),%rcx
cmp    (%rcx),%rax
jne    12cd <do_mount+0x11d>
movl   $0x1,-0x4(%rbp)
jmp    13d6 <do_mount+0x226>
jmp    13bb <do_mount+0x20b>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xd5b(%rip),%rdi
call   1030 <debug@plt>
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
call   1040 <close@plt>
mov    0x2cc9(%rip),%rax
mov    (%rax),%esi
lea    0xd2f(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
mov    0x2c7a(%rip),%rax
mov    (%rax),%esi
lea    0xd18(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
mov    0x2c63(%rip),%rax
mov    (%rax),%esi
lea    0xd01(%rip),%rdi
xor    %edx,%edx
call   1090 <open@plt>
movslq -0x84(%rbp),%rax
mov    -0x80(%rbp,%rax,8),%r8
mov    -0x10(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xce9(%rip),%rsi
lea    0xced(%rip),%rdx
lea    0xce9(%rip),%rcx
lea    0xce5(%rip),%r9
lea    0xce1(%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    0x2c14(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1204 <do_mount+0x54>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%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 i32
%8 = alloca [11 x i8*]
%9 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
%10 = bitcast [11 x i8*]* %8 to i8*
%11 = load i8*, i8** %4
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i8*, i8** %5
%15 = icmp ne i8* %14, null
br i1 %15, label %17, label %16
16: ; preds = %13, %2
store i32 0, i32* %3
br label %85
17: ; preds = %13
store i32 0, i32* %9
br label %18
18: ; preds = %81, %17
%19 = load i32, i32* %9
%20 = sext i32 %19 to i64
%21 = icmp ult i64 %20, 11
br i1 %21, label %22, label %84
22: ; preds = %18
%23 = call i64 (...) @fork()
store i64 %23, i64* %6
%24 = load i64, i64* %6
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 0, i32* %3
br label %85
27: ; preds = %22
%28 = load i64, i64* %6
%29 = icmp sgt i64 %28, 0
br i1 %29, label %30, label %56
30: ; preds = %27
br label %31
31: ; preds = %43, %30
%32 = load i64, i64* %6
%33 = call i32 @waitpid(i64 %32, i32* %7, i32 0)
br label %34
34: ; preds = %31
%35 = load i32, i32* %7
%36 = call i64 @WIFEXITED(i32 %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %43, label %38
38: ; preds = %34
%39 = load i32, i32* %7
%40 = call i32 @WIFSIGNALED(i32 %39)
%41 = icmp ne i32 %40, 0
%42 = xor i1 %41, true
br label %43
43: ; preds = %38, %34
%44 = phi i1 [ false, %34 ], [ %42, %38 ]
br i1 %44, label %31, label %45
45: ; preds = %43
%46 = load i32, i32* %7
%47 = call i64 @WIFEXITED(i32 %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, i32* %7
%51 = call i64 @WEXITSTATUS(i32 %50)
%52 = load i64, i64* @EXIT_SUCCESS
%53 = icmp eq i64 %51, %52
br i1 %53, label %54, label %55
54: ; preds = %49
store i32 1, i32* %3
br label %85
55: ; preds = %49, %45
br label %81
56: ; preds = %27
%57 = load i8*, i8** %4
%58 = load i8*, i8** %5
%59 = call i32 @debug(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %57, i8* %58)
%60 = load i32, i32* @STDIN_FILENO
%61 = call i32 @close(i32 %60)
%62 = load i32, i32* @STDOUT_FILENO
%63 = call i32 @close(i32 %62)
%64 = load i32, i32* @STDERR_FILENO
%65 = call i32 @close(i32 %64)
%66 = load i32, i32* @O_RDONLY
%67 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %66, i32 0)
%68 = load i32, i32* @O_WRONLY
%69 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %68, i32 0)
%70 = load i32, i32* @O_WRONLY
%71 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %70, i32 0)
%72 = load i32, i32* %9
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [11 x i8*], [11 x i8*]* %8, i64 0, i64 %73
%75 = load i8*, i8** %74
%76 = load i8*, i8** %4
%77 = load i8*, i8** %5
%78 = 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* %75, 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* %76, i8* %77, i8* null)
%79 = load i32, i32* @EXIT_FAILURE
%80 = call i32 @exit(i32 %79)
unreachable
81: ; preds = %55
%82 = load i32, i32* %9
%83 = add nsw i32 %82, 1
store i32 %83, i32* %9
br label %18
84: ; preds = %18
store i32 0, i32* %3
br label %85
85: ; preds = %84, %54, %26, %16
%86 = load i32, i32* %3
ret i32 %86
}

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 i32 @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
}