int _singularity_runtime_mounts(void) {
  int retval = 0;
  _singularity_message(
      2, __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/Trophime/singularity/refs/heads/master/src/"
      "lib/runtime/mounts/mounts.c",
      50, "Running all mount components\n");
  retval += _singularity_runtime_mount_hostfs();
  retval += _singularity_runtime_mount_binds();
  retval += _singularity_runtime_mount_kernelfs();
  retval += _singularity_runtime_mount_dev();
  retval += _singularity_runtime_mount_home();
  retval += _singularity_runtime_mount_userbinds();
  retval += _singularity_runtime_mount_tmp();
  retval += _singularity_runtime_mount_scratch();
  retval += _singularity_runtime_mount_cwd();
  return (retval);
}


x86 assembly (clang, -O0):
<_singularity_runtime_mounts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2,%edi
lea    0xe45(%rip),%rsi
lea    0xe5a(%rip),%rdx
mov    $0x32,%ecx
lea    0xeef(%rip),%r8
mov    $0x0,%al
call   1040 <_singularity_message@plt>
mov    $0x0,%al
call   10b0 <_singularity_runtime_mount_hostfs@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10c0 <_singularity_runtime_mount_binds@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <_singularity_runtime_mount_kernelfs@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <_singularity_runtime_mount_dev@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <_singularity_runtime_mount_home@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <_singularity_runtime_mount_userbinds@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <_singularity_runtime_mount_tmp@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1090 <_singularity_runtime_mount_scratch@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <_singularity_runtime_mount_cwd@plt>
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_singularity_runtime_mounts>:
push   %rbp
push   %rbx
push   %rax
lea    0xe56(%rip),%rsi
lea    0xe6b(%rip),%rdx
lea    0xf05(%rip),%r8
mov    $0x2,%edi
mov    $0x32,%ecx
xor    %eax,%eax
call   1040 <_singularity_message@plt>
xor    %eax,%eax
call   10b0 <_singularity_runtime_mount_hostfs@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10c0 <_singularity_runtime_mount_binds@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1070 <_singularity_runtime_mount_kernelfs@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1030 <_singularity_runtime_mount_dev@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   10a0 <_singularity_runtime_mount_home@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1050 <_singularity_runtime_mount_userbinds@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1060 <_singularity_runtime_mount_tmp@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1090 <_singularity_runtime_mount_scratch@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1080 <_singularity_runtime_mount_cwd@plt>
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@__func__._singularity_runtime_mounts = [28 x i8] c"_singularity_runtime_mounts\00"
@.str = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Trophime/singularity/refs/heads/master/src/lib/runtime/mounts/mounts.c\00"
@.str.1 = [30 x i8] c"Running all mount components\0A\00"
define i32 @_singularity_runtime_mounts() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_singularity_message to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @__func__._singularity_runtime_mounts, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @_singularity_runtime_mount_hostfs()
%4 = load i32, i32* %1
%5 = add nsw i32 %4, %3
store i32 %5, i32* %1
%6 = call i32 (...) @_singularity_runtime_mount_binds()
%7 = load i32, i32* %1
%8 = add nsw i32 %7, %6
store i32 %8, i32* %1
%9 = call i32 (...) @_singularity_runtime_mount_kernelfs()
%10 = load i32, i32* %1
%11 = add nsw i32 %10, %9
store i32 %11, i32* %1
%12 = call i32 (...) @_singularity_runtime_mount_dev()
%13 = load i32, i32* %1
%14 = add nsw i32 %13, %12
store i32 %14, i32* %1
%15 = call i32 (...) @_singularity_runtime_mount_home()
%16 = load i32, i32* %1
%17 = add nsw i32 %16, %15
store i32 %17, i32* %1
%18 = call i32 (...) @_singularity_runtime_mount_userbinds()
%19 = load i32, i32* %1
%20 = add nsw i32 %19, %18
store i32 %20, i32* %1
%21 = call i32 (...) @_singularity_runtime_mount_tmp()
%22 = load i32, i32* %1
%23 = add nsw i32 %22, %21
store i32 %23, i32* %1
%24 = call i32 (...) @_singularity_runtime_mount_scratch()
%25 = load i32, i32* %1
%26 = add nsw i32 %25, %24
store i32 %26, i32* %1
%27 = call i32 (...) @_singularity_runtime_mount_cwd()
%28 = load i32, i32* %1
%29 = add nsw i32 %28, %27
store i32 %29, i32* %1
%30 = load i32, i32* %1
ret i32 %30
}

LLVM IR (-O2):
@__func__._singularity_runtime_mounts = [28 x i8] c"_singularity_runtime_mounts\00"
@.str = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Trophime/singularity/refs/heads/master/src/lib/runtime/mounts/mounts.c\00"
@.str.1 = [30 x i8] c"Running all mount components\0A\00"
define i32 @_singularity_runtime_mounts() {
%1 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_singularity_message to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @__func__._singularity_runtime_mounts, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @_singularity_runtime_mount_hostfs()
%3 = tail call i32 (...) @_singularity_runtime_mount_binds()
%4 = add nsw i32 %3, %2
%5 = tail call i32 (...) @_singularity_runtime_mount_kernelfs()
%6 = add nsw i32 %4, %5
%7 = tail call i32 (...) @_singularity_runtime_mount_dev()
%8 = add nsw i32 %6, %7
%9 = tail call i32 (...) @_singularity_runtime_mount_home()
%10 = add nsw i32 %8, %9
%11 = tail call i32 (...) @_singularity_runtime_mount_userbinds()
%12 = add nsw i32 %10, %11
%13 = tail call i32 (...) @_singularity_runtime_mount_tmp()
%14 = add nsw i32 %12, %13
%15 = tail call i32 (...) @_singularity_runtime_mount_scratch()
%16 = add nsw i32 %14, %15
%17 = tail call i32 (...) @_singularity_runtime_mount_cwd()
%18 = add nsw i32 %16, %17
ret i32 %18
}