#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_LOGIN_NAME_MAX;
int /*<<< orphan*/ _SC_NGROUPS_MAX;
int /*<<< orphan*/ _SC_OPEN_MAX;
int /*<<< orphan*/ _SC_PAGESIZE;
int /*<<< orphan*/ _SC_RTSIG_MAX;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ sysconfPrint(char *, int /*<<< orphan*/);
int main() {
  sysconfPrint("_SC_ARG_MAX:        ", _SC_ARG_MAX);
  sysconfPrint("_SC_LOGIN_NAME_MAX: ", _SC_LOGIN_NAME_MAX);
  sysconfPrint("_SC_OPEN_MAX:       ", _SC_OPEN_MAX);
  sysconfPrint("_SC_NGROUPS_MAX:    ", _SC_NGROUPS_MAX);
  sysconfPrint("_SC_CHILD_MAX:      ", _SC_CHILD_MAX);
  sysconfPrint("_SC_PAGESIZE:       ", _SC_PAGESIZE);
  sysconfPrint("_SC_RTSIG_MAX:      ", _SC_RTSIG_MAX);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e90(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"_SC_ARG_MAX: \00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [21 x i8] c"_SC_LOGIN_NAME_MAX: \00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.2 = [21 x i8] c"_SC_OPEN_MAX: \00"
@_SC_OPEN_MAX = global i32 0
@.str.3 = [21 x i8] c"_SC_NGROUPS_MAX: \00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [21 x i8] c"_SC_CHILD_MAX: \00"
@_SC_CHILD_MAX = global i32 0
@.str.5 = [21 x i8] c"_SC_PAGESIZE: \00"
@_SC_PAGESIZE = global i32 0
@.str.6 = [21 x i8] c"_SC_RTSIG_MAX: \00"
@_SC_RTSIG_MAX = 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 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @_SC_LOGIN_NAME_MAX
%5 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @_SC_OPEN_MAX
%7 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @_SC_NGROUPS_MAX
%9 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @_SC_CHILD_MAX
%11 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @_SC_PAGESIZE
%13 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @_SC_RTSIG_MAX
%15 = call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @EXIT_SUCCESS
%17 = call i32 @exit(i32 %16)
unreachable
}

LLVM IR (-O2):
@.str = [21 x i8] c"_SC_ARG_MAX: \00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [21 x i8] c"_SC_LOGIN_NAME_MAX: \00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.2 = [21 x i8] c"_SC_OPEN_MAX: \00"
@_SC_OPEN_MAX = global i32 0
@.str.3 = [21 x i8] c"_SC_NGROUPS_MAX: \00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [21 x i8] c"_SC_CHILD_MAX: \00"
@_SC_CHILD_MAX = global i32 0
@.str.5 = [21 x i8] c"_SC_PAGESIZE: \00"
@_SC_PAGESIZE = global i32 0
@.str.6 = [21 x i8] c"_SC_RTSIG_MAX: \00"
@_SC_RTSIG_MAX = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @_SC_ARG_MAX
%2 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @_SC_LOGIN_NAME_MAX
%4 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @_SC_OPEN_MAX
%6 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @_SC_NGROUPS_MAX
%8 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @_SC_CHILD_MAX
%10 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @_SC_PAGESIZE
%12 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @_SC_RTSIG_MAX
%14 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @EXIT_SUCCESS
%16 = tail call i32 @exit(i32 %15)
unreachable
}