#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*/ EXIT_SUCCESS;
int /*<<< orphan*/ _SC_ARG_MAX;
int /*<<< orphan*/ _SC_CHILD_MAX;
int /*<<< orphan*/ _SC_CLK_TCK;
int /*<<< orphan*/ _SC_JOB_CONTROL;
int /*<<< orphan*/ _SC_LOGIN_NAME_MAX;
int /*<<< orphan*/ _SC_NGROUPS_MAX;
int /*<<< orphan*/ _SC_OPEN_MAX;
int /*<<< orphan*/ _SC_SAVED_IDS;
int /*<<< orphan*/ _SC_VERSION;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ pr_sysconf(char *, int /*<<< orphan*/);
int main(void) {
  pr_sysconf("ARG_MAX                   =", _SC_ARG_MAX);
  pr_sysconf("CHILD_MAX                 =", _SC_CHILD_MAX);
  pr_sysconf("clock ticks/second        =", _SC_CLK_TCK);
  pr_sysconf("NGROUPS_MAX               =", _SC_NGROUPS_MAX);
  pr_sysconf("OPEN_MAX                  =", _SC_OPEN_MAX);
  pr_sysconf("LOGIN_NAME_MAX            =", _SC_LOGIN_NAME_MAX);
  pr_sysconf("_POSIX_JOB_CONTROL        =", _SC_JOB_CONTROL);
  pr_sysconf("_POSIX_SAVED_IDS          =", _SC_SAVED_IDS);
  pr_sysconf("_POSIX_VERSION            =", _SC_VERSION);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e7a(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e5d(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xed6(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
lea    0xedd(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%esi
lea    0xee4(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%esi
lea    0xeeb(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%esi
lea    0xef2(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
lea    0xef9(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e88(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%esi
lea    0xed6(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
lea    0xedd(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%esi
lea    0xee4(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
lea    0xeeb(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%esi
lea    0xef2(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%esi
lea    0xef9(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%esi
lea    0xf00(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xf07(%rip),%rdi
call   1030 <pr_sysconf@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"ARG_MAX =\00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [28 x i8] c"CHILD_MAX =\00"
@_SC_CHILD_MAX = global i32 0
@.str.2 = [28 x i8] c"clock ticks/second =\00"
@_SC_CLK_TCK = global i32 0
@.str.3 = [28 x i8] c"NGROUPS_MAX =\00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [28 x i8] c"OPEN_MAX =\00"
@_SC_OPEN_MAX = global i32 0
@.str.5 = [28 x i8] c"LOGIN_NAME_MAX =\00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.6 = [28 x i8] c"_POSIX_JOB_CONTROL =\00"
@_SC_JOB_CONTROL = global i32 0
@.str.7 = [28 x i8] c"_POSIX_SAVED_IDS =\00"
@_SC_SAVED_IDS = global i32 0
@.str.8 = [28 x i8] c"_POSIX_VERSION =\00"
@_SC_VERSION = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @_SC_ARG_MAX
%3 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @_SC_CHILD_MAX
%5 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @_SC_CLK_TCK
%7 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @_SC_NGROUPS_MAX
%9 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @_SC_OPEN_MAX
%11 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @_SC_LOGIN_NAME_MAX
%13 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @_SC_JOB_CONTROL
%15 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @_SC_SAVED_IDS
%17 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @_SC_VERSION
%19 = call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @EXIT_SUCCESS
%21 = call i32 @exit(i32 %20)
unreachable
}

LLVM IR (-O2):
@.str = [28 x i8] c"ARG_MAX =\00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [28 x i8] c"CHILD_MAX =\00"
@_SC_CHILD_MAX = global i32 0
@.str.2 = [28 x i8] c"clock ticks/second =\00"
@_SC_CLK_TCK = global i32 0
@.str.3 = [28 x i8] c"NGROUPS_MAX =\00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [28 x i8] c"OPEN_MAX =\00"
@_SC_OPEN_MAX = global i32 0
@.str.5 = [28 x i8] c"LOGIN_NAME_MAX =\00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.6 = [28 x i8] c"_POSIX_JOB_CONTROL =\00"
@_SC_JOB_CONTROL = global i32 0
@.str.7 = [28 x i8] c"_POSIX_SAVED_IDS =\00"
@_SC_SAVED_IDS = global i32 0
@.str.8 = [28 x i8] c"_POSIX_VERSION =\00"
@_SC_VERSION = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @_SC_ARG_MAX
%2 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @_SC_CHILD_MAX
%4 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @_SC_CLK_TCK
%6 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @_SC_NGROUPS_MAX
%8 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @_SC_OPEN_MAX
%10 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @_SC_LOGIN_NAME_MAX
%12 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @_SC_JOB_CONTROL
%14 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @_SC_SAVED_IDS
%16 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @_SC_VERSION
%18 = tail call i32 @pr_sysconf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @EXIT_SUCCESS
%20 = tail call i32 @exit(i32 %19)
unreachable
}