#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_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ _SC_ARG_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*/ helpAndLeave(char *, int /*<<< orphan*/);
int /*<<< orphan*/ sysconfPrint(char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc != 1) {
    helpAndLeave(argv[0], EXIT_FAILURE);
  }
  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_PAGESIZE:      ", _SC_PAGESIZE);
  sysconfPrint("_SC_RTSIG_MAX:     ", _SC_RTSIG_MAX);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     1155 <main+0x35>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2e62(%rip),%rax
mov    (%rax),%esi
call   1040 <helpAndLeave@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0xe9b(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xe9a(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
lea    0xe99(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
lea    0xe98(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
lea    0xe97(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%esi
lea    0xe96(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x1,%edi
je     1137 <main+0x17>
mov    (%rsi),%rdi
mov    0x2e80(%rip),%rax
mov    (%rax),%esi
call   1040 <helpAndLeave@plt>
mov    0x2e7a(%rip),%rax
mov    (%rax),%esi
lea    0xeb9(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%esi
lea    0xeb7(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%esi
lea    0xeb6(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
lea    0xeb5(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%esi
lea    0xeb4(%rip),%rdi
call   1030 <sysconfPrint@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@.str = [20 x i8] c"_SC_ARG_MAX: \00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [20 x i8] c"_SC_LOGIN_NAME_MAX:\00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.2 = [20 x i8] c"_SC_OPEN_MAX: \00"
@_SC_OPEN_MAX = global i32 0
@.str.3 = [20 x i8] c"_SC_NGROUPS_MAX: \00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [20 x i8] c"_SC_PAGESIZE: \00"
@_SC_PAGESIZE = global i32 0
@.str.5 = [20 x i8] c"_SC_RTSIG_MAX: \00"
@_SC_RTSIG_MAX = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 1
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @helpAndLeave(i8* %11, i32 %12)
br label %14
14: ; preds = %8, %2
%15 = load i32, i32* @_SC_ARG_MAX
%16 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @_SC_LOGIN_NAME_MAX
%18 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @_SC_OPEN_MAX
%20 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @_SC_NGROUPS_MAX
%22 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @_SC_PAGESIZE
%24 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @_SC_RTSIG_MAX
%26 = call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @EXIT_SUCCESS
ret i32 %27
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [20 x i8] c"_SC_ARG_MAX: \00"
@_SC_ARG_MAX = global i32 0
@.str.1 = [20 x i8] c"_SC_LOGIN_NAME_MAX:\00"
@_SC_LOGIN_NAME_MAX = global i32 0
@.str.2 = [20 x i8] c"_SC_OPEN_MAX: \00"
@_SC_OPEN_MAX = global i32 0
@.str.3 = [20 x i8] c"_SC_NGROUPS_MAX: \00"
@_SC_NGROUPS_MAX = global i32 0
@.str.4 = [20 x i8] c"_SC_PAGESIZE: \00"
@_SC_PAGESIZE = global i32 0
@.str.5 = [20 x i8] c"_SC_RTSIG_MAX: \00"
@_SC_RTSIG_MAX = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @helpAndLeave(i8* %5, i32 %6)
br label %8
8: ; preds = %4, %2
%9 = load i32, i32* @_SC_ARG_MAX
%10 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @_SC_LOGIN_NAME_MAX
%12 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @_SC_OPEN_MAX
%14 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @_SC_NGROUPS_MAX
%16 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @_SC_PAGESIZE
%18 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @_SC_RTSIG_MAX
%20 = tail call i32 @sysconfPrint(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @EXIT_SUCCESS
ret i32 %21
}