#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 */
struct rlimit {
  int rlim_max;
  int rlim_cur;
};

/* Variables and functions */
int MS_NODEV;
int MS_NOEXEC;
int MS_NOSUID;
int MS_RDONLY;
int /*<<< orphan*/ RLIMIT_NPROC;
int /*<<< orphan*/ check(char *, int /*<<< orphan*/);
int /*<<< orphan*/ die(char *, char *);
int /*<<< orphan*/ *freopen(char *, char *, int /*<<< orphan*/);
char *getenv(char *);
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
int /*<<< orphan*/ mount(char *, char *, char *, int, char *);
int /*<<< orphan*/ run_control();
int /*<<< orphan*/ setrlimit(int /*<<< orphan*/, struct rlimit *);
int /*<<< orphan*/ shutdown();
int /*<<< orphan*/ stdin;
size_t strlen(char const *);
int main() {
  const char *disksize;
  size_t disksize_len;
  char tmpfsdata[sizeof("mode=777,size=") + 10];
  struct rlimit rlim;
  disksize = getenv("disksize");
  if (disksize == NULL)
    disksize = "50%";
  disksize_len = strlen(disksize);
  if (disksize_len > 10)
    die("disksize", "parameter is too long");
  memcpy(tmpfsdata, "mode=777,size=", sizeof("mode=777,size=") - 1);
  memcpy(tmpfsdata + sizeof("mode=777,size=") - 1, disksize, disksize_len + 1);
  check("mount /proc",
        mount("proc", "/proc", "proc", MS_NODEV | MS_NOSUID | MS_NOEXEC, NULL));
  check("mount /sys",
        mount("sys", "/sys", "sysfs", MS_NODEV | MS_NOSUID | MS_NOEXEC, NULL));
  check("mount /tmp",
        mount("none", "/tmp", "tmpfs", MS_NODEV | MS_NOSUID, tmpfsdata));
  check("mount /task", mount("/dev/ubdb", "/task", "squashfs",
                             MS_NODEV | MS_NOSUID | MS_RDONLY, NULL));
  rlim.rlim_max = rlim.rlim_cur = 100;
  check("setrlimit", setrlimit(RLIMIT_NPROC, &rlim));
  check("open /dev/ubdc", freopen("/dev/ubdc", "r", stdin) == NULL);
  run_control();
  shutdown();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe4a(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11d5 <main+0x35>
lea    0xe38(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0xa,-0x18(%rbp)
jbe    1200 <main+0x60>
lea    0xe0c(%rip),%rdi
lea    0xe12(%rip),%rsi
call   10b0 <die@plt>
lea    -0x40(%rbp),%rdi
lea    0xe18(%rip),%rsi
mov    $0xe,%edx
call   1080 <memcpy@plt>
lea    -0x40(%rbp),%rdi
add    $0xf,%rdi
add    $0xffffffffffffffff,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
add    $0x1,%rdx
call   1080 <memcpy@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%ecx
mov    0x2d9e(%rip),%rax
or     (%rax),%ecx
mov    0x2d65(%rip),%rax
or     (%rax),%ecx
lea    0xde5(%rip),%rdx
lea    0xddd(%rip),%rsi
xor    %eax,%eax
mov    %eax,%r8d
mov    %rdx,%rdi
call   1060 <mount@plt>
mov    %eax,%esi
lea    0xdc1(%rip),%rdi
call   10c0 <check@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%ecx
mov    0x2d5a(%rip),%rax
or     (%rax),%ecx
mov    0x2d21(%rip),%rax
or     (%rax),%ecx
lea    0xdad(%rip),%rdi
lea    0xda5(%rip),%rsi
lea    0xda3(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <mount@plt>
mov    %eax,%esi
lea    0xd85(%rip),%rdi
call   10c0 <check@plt>
mov    0x2d2b(%rip),%rax
mov    (%rax),%ecx
mov    0x2d12(%rip),%rax
or     (%rax),%ecx
lea    -0x40(%rbp),%r8
lea    0xd7f(%rip),%rdi
lea    0xd73(%rip),%rsi
lea    0xd76(%rip),%rdx
call   1060 <mount@plt>
mov    %eax,%esi
lea    0xd58(%rip),%rdi
call   10c0 <check@plt>
mov    0x2ced(%rip),%rax
mov    (%rax),%ecx
mov    0x2cd4(%rip),%rax
or     (%rax),%ecx
mov    0x2cb3(%rip),%rax
or     (%rax),%ecx
lea    0xd53(%rip),%rdi
lea    0xd46(%rip),%rsi
lea    0xd4f(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <mount@plt>
mov    %eax,%esi
lea    0xd26(%rip),%rdi
call   10c0 <check@plt>
movl   $0x64,-0x44(%rbp)
movl   $0x64,-0x48(%rbp)
mov    0x2c77(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   10a0 <setrlimit@plt>
mov    %eax,%esi
lea    0xd17(%rip),%rdi
call   10c0 <check@plt>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edx
lea    0xd11(%rip),%rdi
lea    0xd14(%rip),%rsi
call   1070 <freopen@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xced(%rip),%rdi
call   10c0 <check@plt>
mov    $0x0,%al
call   1090 <run_control@plt>
mov    $0x0,%al
call   1040 <shutdown@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xe4e(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
lea    0xe48(%rip),%r15
cmovne %rax,%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %rax,%rbx
cmp    $0xb,%rax
jb     11e9 <main+0x49>
lea    0xe23(%rip),%rdi
lea    0xe29(%rip),%rsi
call   10b0 <die@plt>
lea    0xe33(%rip),%rsi
lea    0x10(%rsp),%r14
mov    $0xe,%edx
mov    %r14,%rdi
call   1080 <memcpy@plt>
lea    0x1e(%rsp),%rdi
add    $0x1,%rbx
mov    %r15,%rsi
mov    %rbx,%rdx
call   1080 <memcpy@plt>
mov    0x2dd3(%rip),%r15
mov    0x2dbc(%rip),%r12
mov    (%r12),%ecx
or     (%r15),%ecx
mov    0x2d7e(%rip),%rbx
or     (%rbx),%ecx
lea    0xdfd(%rip),%rsi
lea    0xdf7(%rip),%rdi
mov    %rdi,%rdx
xor    %r8d,%r8d
call   1060 <mount@plt>
lea    0xdde(%rip),%rdi
mov    %eax,%esi
call   10c0 <check@plt>
mov    (%r12),%ecx
or     (%r15),%ecx
or     (%rbx),%ecx
lea    0xdda(%rip),%rdi
lea    0xdd2(%rip),%rsi
lea    0xdd0(%rip),%rdx
xor    %r8d,%r8d
call   1060 <mount@plt>
lea    0xdb6(%rip),%rdi
mov    %eax,%esi
call   10c0 <check@plt>
mov    (%r12),%ecx
or     (%r15),%ecx
lea    0xdbd(%rip),%rdi
lea    0xdb1(%rip),%rsi
lea    0xdb4(%rip),%rdx
mov    %r14,%r8
call   1060 <mount@plt>
lea    0xd95(%rip),%rdi
mov    %eax,%esi
call   10c0 <check@plt>
mov    (%r12),%ecx
or     (%r15),%ecx
mov    0x2cf9(%rip),%rax
or     (%rax),%ecx
lea    0xd99(%rip),%rdi
lea    0xd8c(%rip),%rsi
lea    0xd95(%rip),%rdx
xor    %r8d,%r8d
call   1060 <mount@plt>
lea    0xd70(%rip),%rdi
mov    %eax,%esi
call   10c0 <check@plt>
movabs $0x6400000064,%rax
mov    %rax,0x8(%rsp)
mov    0x2cbe(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   10a0 <setrlimit@plt>
lea    0xd5f(%rip),%rdi
mov    %eax,%esi
call   10c0 <check@plt>
mov    0x2ca5(%rip),%rax
mov    (%rax),%edx
lea    0xd57(%rip),%rdi
lea    0xd5a(%rip),%rsi
call   1070 <freopen@plt>
xor    %esi,%esi
test   %rax,%rax
sete   %sil
lea    0xd36(%rip),%rdi
call   10c0 <check@plt>
xor    %eax,%eax
call   1090 <run_control@plt>
xor    %eax,%eax
call   1040 <shutdown@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.rlimit = type { i32, i32 }
@.str = [9 x i8] c"disksize\00"
@.str.1 = [4 x i8] c"50%\00"
@.str.2 = [22 x i8] c"parameter is too long\00"
@.str.3 = [15 x i8] c"mode=777,size=\00"
@.str.4 = [12 x i8] c"mount /proc\00"
@.str.5 = [5 x i8] c"proc\00"
@.str.6 = [6 x i8] c"/proc\00"
@MS_NODEV = global i32 0
@MS_NOSUID = global i32 0
@MS_NOEXEC = global i32 0
@.str.7 = [11 x i8] c"mount /sys\00"
@.str.8 = [4 x i8] c"sys\00"
@.str.9 = [5 x i8] c"/sys\00"
@.str.10 = [6 x i8] c"sysfs\00"
@.str.11 = [11 x i8] c"mount /tmp\00"
@.str.12 = [5 x i8] c"none\00"
@.str.13 = [5 x i8] c"/tmp\00"
@.str.14 = [6 x i8] c"tmpfs\00"
@.str.15 = [12 x i8] c"mount /task\00"
@.str.16 = [10 x i8] c"/dev/ubdb\00"
@.str.17 = [6 x i8] c"/task\00"
@.str.18 = [9 x i8] c"squashfs\00"
@MS_RDONLY = global i32 0
@.str.19 = [10 x i8] c"setrlimit\00"
@RLIMIT_NPROC = global i32 0
@.str.20 = [15 x i8] c"open /dev/ubdc\00"
@.str.21 = [10 x i8] c"/dev/ubdc\00"
@.str.22 = [2 x i8] c"r\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i64
%4 = alloca [25 x i8]
%5 = alloca %struct.rlimit
store i32 0, i32* %1
%6 = call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %2
%7 = load i8*, i8** %2
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %10
9: ; preds = %0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %10
10: ; preds = %9, %0
%11 = load i8*, i8** %2
%12 = call i64 @strlen(i8* %11)
store i64 %12, i64* %3
%13 = load i64, i64* %3
%14 = icmp ugt i64 %13, 10
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %10
%18 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%19 = call i32 @memcpy(i8* %18, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 14)
%20 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%21 = getelementptr inbounds i8, i8* %20, i64 15
%22 = getelementptr inbounds i8, i8* %21, i64 -1
%23 = load i8*, i8** %2
%24 = load i64, i64* %3
%25 = add i64 %24, 1
%26 = call i32 @memcpy(i8* %22, i8* %23, i64 %25)
%27 = load i32, i32* @MS_NODEV
%28 = load i32, i32* @MS_NOSUID
%29 = or i32 %27, %28
%30 = load i32, i32* @MS_NOEXEC
%31 = or i32 %29, %30
%32 = call i32 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %31, i8* null)
%33 = call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = load i32, i32* @MS_NODEV
%35 = load i32, i32* @MS_NOSUID
%36 = or i32 %34, %35
%37 = load i32, i32* @MS_NOEXEC
%38 = or i32 %36, %37
%39 = call i32 @mount(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %38, i8* null)
%40 = call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @MS_NODEV
%42 = load i32, i32* @MS_NOSUID
%43 = or i32 %41, %42
%44 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%45 = call i32 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i32 %43, i8* %44)
%46 = call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @MS_NODEV
%48 = load i32, i32* @MS_NOSUID
%49 = or i32 %47, %48
%50 = load i32, i32* @MS_RDONLY
%51 = or i32 %49, %50
%52 = call i32 @mount(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i32 %51, i8* null)
%53 = call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %52)
%54 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %5, i32 0, i32 1
store i32 100, i32* %54
%55 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %5, i32 0, i32 0
store i32 100, i32* %55
%56 = load i32, i32* @RLIMIT_NPROC
%57 = call i32 @setrlimit(i32 %56, %struct.rlimit* %5)
%58 = call i32 @check(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %57)
%59 = load i32, i32* @stdin
%60 = call i32* @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 %59)
%61 = icmp eq i32* %60, null
%62 = zext i1 %61 to i32
%63 = call i32 @check(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %62)
%64 = call i32 (...) @run_control()
%65 = call i32 (...) @shutdown()
ret i32 0
}

LLVM IR (-O2):
%struct.rlimit = type { i32, i32 }
@.str = [9 x i8] c"disksize\00"
@.str.1 = [4 x i8] c"50%\00"
@.str.2 = [22 x i8] c"parameter is too long\00"
@.str.3 = [15 x i8] c"mode=777,size=\00"
@.str.4 = [12 x i8] c"mount /proc\00"
@.str.5 = [5 x i8] c"proc\00"
@.str.6 = [6 x i8] c"/proc\00"
@MS_NODEV = global i32 0
@MS_NOSUID = global i32 0
@MS_NOEXEC = global i32 0
@.str.7 = [11 x i8] c"mount /sys\00"
@.str.8 = [4 x i8] c"sys\00"
@.str.9 = [5 x i8] c"/sys\00"
@.str.10 = [6 x i8] c"sysfs\00"
@.str.11 = [11 x i8] c"mount /tmp\00"
@.str.12 = [5 x i8] c"none\00"
@.str.13 = [5 x i8] c"/tmp\00"
@.str.14 = [6 x i8] c"tmpfs\00"
@.str.15 = [12 x i8] c"mount /task\00"
@.str.16 = [10 x i8] c"/dev/ubdb\00"
@.str.17 = [6 x i8] c"/task\00"
@.str.18 = [9 x i8] c"squashfs\00"
@MS_RDONLY = global i32 0
@.str.19 = [10 x i8] c"setrlimit\00"
@RLIMIT_NPROC = global i32 0
@.str.20 = [15 x i8] c"open /dev/ubdc\00"
@.str.21 = [10 x i8] c"/dev/ubdc\00"
@.str.22 = [2 x i8] c"r\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca [25 x i8]
%2 = alloca %struct.rlimit
%3 = getelementptr inbounds [25 x i8], [25 x i8]* %1, i64 0, i64 0
%4 = bitcast %struct.rlimit* %2 to i8*
%5 = tail call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i8* %5, null
%7 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5
%8 = tail call i64 @strlen(i8* dereferenceable(1) %7)
%9 = icmp ugt i64 %8, 10
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = tail call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %0
%13 = call i32 @memcpy(i8* %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 14)
%14 = getelementptr inbounds [25 x i8], [25 x i8]* %1, i64 0, i64 14
%15 = add i64 %8, 1
%16 = call i32 @memcpy(i8* %14, i8* %7, i64 %15)
%17 = load i32, i32* @MS_NODEV
%18 = load i32, i32* @MS_NOSUID
%19 = or i32 %18, %17
%20 = load i32, i32* @MS_NOEXEC
%21 = or i32 %19, %20
%22 = call i32 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %21, i8* null)
%23 = call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @MS_NODEV
%25 = load i32, i32* @MS_NOSUID
%26 = or i32 %25, %24
%27 = load i32, i32* @MS_NOEXEC
%28 = or i32 %26, %27
%29 = call i32 @mount(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %28, i8* null)
%30 = call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @MS_NODEV
%32 = load i32, i32* @MS_NOSUID
%33 = or i32 %32, %31
%34 = call i32 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i32 %33, i8* %3)
%35 = call i32 @check(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %34)
%36 = load i32, i32* @MS_NODEV
%37 = load i32, i32* @MS_NOSUID
%38 = or i32 %37, %36
%39 = load i32, i32* @MS_RDONLY
%40 = or i32 %38, %39
%41 = call i32 @mount(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i32 %40, i8* null)
%42 = call i32 @check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %2, i64 0, i32 1
store i32 100, i32* %43
%44 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %2, i64 0, i32 0
store i32 100, i32* %44
%45 = load i32, i32* @RLIMIT_NPROC
%46 = call i32 @setrlimit(i32 %45, %struct.rlimit* %2)
%47 = call i32 @check(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %46)
%48 = load i32, i32* @stdin
%49 = call i32* @freopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 %48)
%50 = icmp eq i32* %49, null
%51 = zext i1 %50 to i32
%52 = call i32 @check(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %51)
%53 = call i32 (...) @run_control()
%54 = call i32 (...) @shutdown()
ret i32 0
}