#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 */
int /*<<< orphan*/ abms_system(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
void ramfs_init(void) {
  char lcmd[255];
  sprintf(lcmd, "%s%s /proc /dev /root /sys /dev/pts /dev/shm",
          "/app/os/sys/bin/", "mkdir");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s -vt tmpfs shm /dev/shm", "/app/os/sys/bin/", "mount");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s -vt proc proc /proc", "/app/os/sys/bin/", "mount");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s -vt sysfs sysfs /sys", "/app/os/sys/bin/", "mount");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/tty c 5 0", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/random c 1 8", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/urandom c 1 9", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/frandom c 235 11", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/erandom c 235 12", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/ptmx c 5 2", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/loop0 b 7 0", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /dev/grsec c 1 13", "/app/os/sys/bin/", "mknod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s 666 /dev/ptmx", "/app/os/sys/bin/", "chmod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s 666 /dev/tty", "/app/os/sys/bin/", "chmod");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s -vt devpts devpts /dev/pts", "/app/os/sys/bin/", "mount");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /app/os/var/dhcpcd -p", "/app/os/sys/bin/", "mkdir");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s /app/os/var/run -p", "/app/os/sys/bin/", "mkdir");
  abms_system(lcmd);
  return;
}


x86 assembly (clang, -O0):
<ramfs_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
lea    -0x100(%rbp),%rdi
lea    0xec7(%rip),%rsi
lea    0xeed(%rip),%rdx
lea    0xef7(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xede(%rip),%rsi
lea    0xec0(%rip),%rdx
lea    0xeec(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xed3(%rip),%rsi
lea    0xe93(%rip),%rdx
lea    0xebf(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xebf(%rip),%rsi
lea    0xe66(%rip),%rdx
lea    0xe92(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xeac(%rip),%rsi
lea    0xe39(%rip),%rdx
lea    0xeb2(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe99(%rip),%rsi
lea    0xe0c(%rip),%rdx
lea    0xe85(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe83(%rip),%rsi
lea    0xddf(%rip),%rdx
lea    0xe58(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe6e(%rip),%rsi
lea    0xdb2(%rip),%rdx
lea    0xe2b(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe5c(%rip),%rsi
lea    0xd85(%rip),%rdx
lea    0xdfe(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe4a(%rip),%rsi
lea    0xd58(%rip),%rdx
lea    0xdd1(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe32(%rip),%rsi
lea    0xd2b(%rip),%rdx
lea    0xda4(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe1b(%rip),%rsi
lea    0xcfe(%rip),%rdx
lea    0xd77(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xe05(%rip),%rsi
lea    0xcd1(%rip),%rdx
lea    0xe0a(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xdf1(%rip),%rsi
lea    0xca4(%rip),%rdx
lea    0xddd(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xdd6(%rip),%rsi
lea    0xc77(%rip),%rdx
lea    0xca3(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xdc9(%rip),%rsi
lea    0xc4a(%rip),%rdx
lea    0xc54(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xdb7(%rip),%rsi
lea    0xc1d(%rip),%rdx
lea    0xc27(%rip),%rcx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ramfs_init>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x100,%rsp
lea    0xec9(%rip),%rsi
lea    0xeef(%rip),%r14
lea    0xef9(%rip),%r15
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xedf(%rip),%rsi
lea    0xef4(%rip),%r12
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xedd(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xed9(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xed6(%rip),%rsi
lea    0xee3(%rip),%r13
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xecc(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xec1(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xebf(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xebd(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xeb5(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xea8(%rip),%rsi
lea    0xeb4(%rip),%r13
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r15,%rcx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
add    $0x100,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [45 x i8] c"%s%s /proc /dev /root /sys /dev/pts /dev/shm\00"
@.str.1 = [17 x i8] c"/app/os/sys/bin/\00"
@.str.2 = [6 x i8] c"mkdir\00"
@.str.3 = [28 x i8] c"%s%s -vt tmpfs shm /dev/shm\00"
@.str.4 = [6 x i8] c"mount\00"
@.str.5 = [25 x i8] c"%s%s -vt proc proc /proc\00"
@.str.6 = [26 x i8] c"%s%s -vt sysfs sysfs /sys\00"
@.str.7 = [20 x i8] c"%s%s /dev/tty c 5 0\00"
@.str.8 = [6 x i8] c"mknod\00"
@.str.9 = [23 x i8] c"%s%s /dev/random c 1 8\00"
@.str.10 = [24 x i8] c"%s%s /dev/urandom c 1 9\00"
@.str.11 = [27 x i8] c"%s%s /dev/frandom c 235 11\00"
@.str.12 = [27 x i8] c"%s%s /dev/erandom c 235 12\00"
@.str.13 = [21 x i8] c"%s%s /dev/ptmx c 5 2\00"
@.str.14 = [22 x i8] c"%s%s /dev/loop0 b 7 0\00"
@.str.15 = [23 x i8] c"%s%s /dev/grsec c 1 13\00"
@.str.16 = [19 x i8] c"%s%s 666 /dev/ptmx\00"
@.str.17 = [6 x i8] c"chmod\00"
@.str.18 = [18 x i8] c"%s%s 666 /dev/tty\00"
@.str.19 = [32 x i8] c"%s%s -vt devpts devpts /dev/pts\00"
@.str.20 = [27 x i8] c"%s%s /app/os/var/dhcpcd -p\00"
@.str.21 = [24 x i8] c"%s%s /app/os/var/run -p\00"
define void @ramfs_init() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%5 = call i32 @abms_system(i8* %4)
%6 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%7 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%9 = call i32 @abms_system(i8* %8)
%10 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%11 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%12 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%13 = call i32 @abms_system(i8* %12)
%14 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%15 = call i32 @sprintf(i8* %14, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%16 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%17 = call i32 @abms_system(i8* %16)
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%19 = call i32 @sprintf(i8* %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%20 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%21 = call i32 @abms_system(i8* %20)
%22 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%23 = call i32 @sprintf(i8* %22, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%24 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%25 = call i32 @abms_system(i8* %24)
%26 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%27 = call i32 @sprintf(i8* %26, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%28 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%29 = call i32 @abms_system(i8* %28)
%30 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%31 = call i32 @sprintf(i8* %30, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%32 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%33 = call i32 @abms_system(i8* %32)
%34 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%35 = call i32 @sprintf(i8* %34, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%36 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%37 = call i32 @abms_system(i8* %36)
%38 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%39 = call i32 @sprintf(i8* %38, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%40 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%41 = call i32 @abms_system(i8* %40)
%42 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%43 = call i32 @sprintf(i8* %42, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%44 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%45 = call i32 @abms_system(i8* %44)
%46 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%47 = call i32 @sprintf(i8* %46, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%48 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%49 = call i32 @abms_system(i8* %48)
%50 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%51 = call i32 @sprintf(i8* %50, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%52 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%53 = call i32 @abms_system(i8* %52)
%54 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%55 = call i32 @sprintf(i8* %54, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%56 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%57 = call i32 @abms_system(i8* %56)
%58 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%59 = call i32 @sprintf(i8* %58, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%60 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%61 = call i32 @abms_system(i8* %60)
%62 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%63 = call i32 @sprintf(i8* %62, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%64 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%65 = call i32 @abms_system(i8* %64)
%66 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%67 = call i32 @sprintf(i8* %66, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%68 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%69 = call i32 @abms_system(i8* %68)
ret void
}

LLVM IR (-O2):
@.str = [45 x i8] c"%s%s /proc /dev /root /sys /dev/pts /dev/shm\00"
@.str.1 = [17 x i8] c"/app/os/sys/bin/\00"
@.str.2 = [6 x i8] c"mkdir\00"
@.str.3 = [28 x i8] c"%s%s -vt tmpfs shm /dev/shm\00"
@.str.4 = [6 x i8] c"mount\00"
@.str.5 = [25 x i8] c"%s%s -vt proc proc /proc\00"
@.str.6 = [26 x i8] c"%s%s -vt sysfs sysfs /sys\00"
@.str.7 = [20 x i8] c"%s%s /dev/tty c 5 0\00"
@.str.8 = [6 x i8] c"mknod\00"
@.str.9 = [23 x i8] c"%s%s /dev/random c 1 8\00"
@.str.10 = [24 x i8] c"%s%s /dev/urandom c 1 9\00"
@.str.11 = [27 x i8] c"%s%s /dev/frandom c 235 11\00"
@.str.12 = [27 x i8] c"%s%s /dev/erandom c 235 12\00"
@.str.13 = [21 x i8] c"%s%s /dev/ptmx c 5 2\00"
@.str.14 = [22 x i8] c"%s%s /dev/loop0 b 7 0\00"
@.str.15 = [23 x i8] c"%s%s /dev/grsec c 1 13\00"
@.str.16 = [19 x i8] c"%s%s 666 /dev/ptmx\00"
@.str.17 = [6 x i8] c"chmod\00"
@.str.18 = [18 x i8] c"%s%s 666 /dev/tty\00"
@.str.19 = [32 x i8] c"%s%s -vt devpts devpts /dev/pts\00"
@.str.20 = [27 x i8] c"%s%s /app/os/var/dhcpcd -p\00"
@.str.21 = [24 x i8] c"%s%s /app/os/var/run -p\00"
define void @ramfs_init() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @abms_system(i8* %2)
%5 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @abms_system(i8* %2)
%7 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @abms_system(i8* %2)
%9 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @abms_system(i8* %2)
%11 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @abms_system(i8* %2)
%13 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 @abms_system(i8* %2)
%15 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 @abms_system(i8* %2)
%17 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @abms_system(i8* %2)
%19 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%20 = call i32 @abms_system(i8* %2)
%21 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%22 = call i32 @abms_system(i8* %2)
%23 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%24 = call i32 @abms_system(i8* %2)
%25 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%26 = call i32 @abms_system(i8* %2)
%27 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%28 = call i32 @abms_system(i8* %2)
%29 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%30 = call i32 @abms_system(i8* %2)
%31 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 @abms_system(i8* %2)
%33 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @abms_system(i8* %2)
%35 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%36 = call i32 @abms_system(i8* %2)
ret void
}