#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*/ RLIMIT_AS;
int /*<<< orphan*/ RLIMIT_CPU;
int /*<<< orphan*/ RLIMIT_FSIZE;
int /*<<< orphan*/ RLIMIT_NOFILE;
int /*<<< orphan*/ RLIMIT_NPROC;
int /*<<< orphan*/ pr_limits(char *, int /*<<< orphan*/);
void status_sandbox() {
  pr_limits("RLIMIT_AS", RLIMIT_AS);
  pr_limits("RLIMIT_CPU", RLIMIT_CPU);
  pr_limits("RLIMIT_FSIZE", RLIMIT_FSIZE);
  pr_limits("RLIMIT_NOFILE", RLIMIT_NOFILE);
  pr_limits("RLIMIT_NPROC", RLIMIT_NPROC);
}


x86 assembly (clang, -O0):
<status_sandbox>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdi
call   1030 <pr_limits@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<status_sandbox>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%esi
lea    0xed4(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
call   1030 <pr_limits@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
lea    0xebb(%rip),%rdi
pop    %rax
jmp    1030 <pr_limits@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"RLIMIT_AS\00"
@RLIMIT_AS = global i32 0
@.str.1 = [11 x i8] c"RLIMIT_CPU\00"
@RLIMIT_CPU = global i32 0
@.str.2 = [13 x i8] c"RLIMIT_FSIZE\00"
@RLIMIT_FSIZE = global i32 0
@.str.3 = [14 x i8] c"RLIMIT_NOFILE\00"
@RLIMIT_NOFILE = global i32 0
@.str.4 = [13 x i8] c"RLIMIT_NPROC\00"
@RLIMIT_NPROC = global i32 0
define void @status_sandbox() {
%1 = load i32, i32* @RLIMIT_AS
%2 = call i32 @pr_limits(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @RLIMIT_CPU
%4 = call i32 @pr_limits(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @RLIMIT_FSIZE
%6 = call i32 @pr_limits(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @RLIMIT_NOFILE
%8 = call i32 @pr_limits(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @RLIMIT_NPROC
%10 = call i32 @pr_limits(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"RLIMIT_AS\00"
@RLIMIT_AS = global i32 0
@.str.1 = [11 x i8] c"RLIMIT_CPU\00"
@RLIMIT_CPU = global i32 0
@.str.2 = [13 x i8] c"RLIMIT_FSIZE\00"
@RLIMIT_FSIZE = global i32 0
@.str.3 = [14 x i8] c"RLIMIT_NOFILE\00"
@RLIMIT_NOFILE = global i32 0
@.str.4 = [13 x i8] c"RLIMIT_NPROC\00"
@RLIMIT_NPROC = global i32 0
define void @status_sandbox() {
%1 = load i32, i32* @RLIMIT_AS
%2 = tail call i32 @pr_limits(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @RLIMIT_CPU
%4 = tail call i32 @pr_limits(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @RLIMIT_FSIZE
%6 = tail call i32 @pr_limits(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @RLIMIT_NOFILE
%8 = tail call i32 @pr_limits(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @RLIMIT_NPROC
%10 = tail call i32 @pr_limits(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret void
}