#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 BUFSIZ;
int CHAR_BIT;
int CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int /*<<< orphan*/ _PC_LINK_MAX;
int /*<<< orphan*/ _PC_MAX_CANON;
int /*<<< orphan*/ _PC_MAX_INPUT;
int /*<<< orphan*/ _PC_NAME_MAX;
int /*<<< orphan*/ _PC_PATH_MAX;
int /*<<< orphan*/ _PC_PIPE_BUF;
int /*<<< orphan*/ _PC_SYMLINK_MAX;
int /*<<< orphan*/ _SC_CHILD_MAX;
int /*<<< orphan*/ _SC_CLK_TCK;
int /*<<< orphan*/ _SC_HOST_NAME_MAX;
int /*<<< orphan*/ _SC_IOV_MAX;
int /*<<< orphan*/ _SC_LINE_MAX;
int /*<<< orphan*/ _SC_OPEN_MAX;
int /*<<< orphan*/ _SC_PAGE_SIZE;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int pathconf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int sysconf(int /*<<< orphan*/);
int main(int argc, char **argv) {
  if (argc != 2) {
    fprintf(stderr, "Usage: limits path\n");
    return 0;
  }
  printf("==========through sysconf==========\n");
  printf("CHILD_MAX= %ld\n", sysconf(_SC_CHILD_MAX));
  printf("OPEN_MAX= %ld\n", sysconf(_SC_OPEN_MAX));
  printf("CLK_TCK= %ld\n", sysconf(_SC_CLK_TCK));
  printf("HOST_NAME_MAX = %ld\n", sysconf(_SC_HOST_NAME_MAX));
  printf("IOV_MAX= %ld\n", sysconf(_SC_IOV_MAX));
  printf("LINE_MAX= %ld\n", sysconf(_SC_LINE_MAX));
  printf("PAGE_SIZE= %ld\n", sysconf(_SC_PAGE_SIZE));
  printf("========================compile time limits, defined in "
         "<limits.h>================\n");
  printf("CHAR_BIT= %d\n", CHAR_BIT);
  printf("CHAR_MAX= %d\n", CHAR_MAX);
  printf("SHRT_MAX= %d\n", SHRT_MAX);
  printf("INT_MAX= %d\n", INT_MAX);
  printf("LONG_MAX= %ld\n", LONG_MAX);
  printf("CHAR_MIN= %d\n", CHAR_MIN);
  printf("SHRT_MIN= %d\n", SHRT_MIN);
  printf("INT_MIN= %d\n", INT_MIN);
  printf("LONG_MIN= %ld\n", LONG_MIN);
  printf("##not part of limits, in <stdio.h> BUFSIZ= %d\n", BUFSIZ);
  printf("==========through sysconf==========\n");
  printf("LINK_MAX= %ld\n", pathconf(*++argv, _PC_LINK_MAX));
  printf("MAX_CANON= %ld\n", pathconf(*argv, _PC_MAX_CANON));
  printf("MAX_INPUT= %ld\n", pathconf(*argv, _PC_MAX_INPUT));
  printf("NAME_MAX= %ld\n", pathconf(*argv, _PC_NAME_MAX));
  printf("Path_max= %ld\n", pathconf(*argv, _PC_PATH_MAX));
  printf("PIPE_BUF= %ld\n", pathconf(*argv, _PC_PIPE_BUF));
  printf("SYMLINK_MAX= %ld\n", pathconf(*argv, _PC_SYMLINK_MAX));
  return 0;
}


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   $0x2,-0x8(%rbp)
je     1181 <main+0x41>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe90(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1479 <main+0x339>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2db6(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2dbc(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
mov    %eax,%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d53(%rip),%rax
mov    (%rax),%esi
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2ca4(%rip),%rax
mov    (%rax),%esi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d0d(%rip),%rax
mov    (%rax),%esi
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c8e(%rip),%rax
mov    (%rax),%esi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2cef(%rip),%rax
mov    (%rax),%esi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c50(%rip),%rax
mov    (%rax),%esi
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c99(%rip),%rax
mov    (%rax),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c92(%rip),%rax
mov    (%rax),%esi
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c13(%rip),%rax
mov    (%rax),%esi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
mov    0x2b9b(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2bfe(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2c09(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2b3c(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2b67(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2b72(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2add(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    142b <main+0x2db>
mov    %rsi,%rbx
lea    0x107b(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe90(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe82(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe73(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe63(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe5a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe4a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
call   1070 <sysconf@plt>
lea    0xe3b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d2c(%rip),%rax
mov    (%rax),%esi
lea    0xe26(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cc6(%rip),%rax
mov    (%rax),%esi
lea    0xe14(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d2f(%rip),%rax
mov    (%rax),%esi
lea    0xe0b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cb0(%rip),%rax
mov    (%rax),%esi
lea    0xe01(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%esi
lea    0xdf9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c72(%rip),%rax
mov    (%rax),%esi
lea    0xdf0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cbb(%rip),%rax
mov    (%rax),%esi
lea    0xde7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cb4(%rip),%rax
mov    (%rax),%esi
lea    0xddd(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c35(%rip),%rax
mov    (%rax),%esi
lea    0xdd5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    0x8(%rbx),%rdi
mov    0x2bd2(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xe2c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2c38(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xdba(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2c46(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xda8(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2b7c(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xd96(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2baa(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xd83(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2bb8(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xd70(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
mov    0x2b26(%rip),%rax
mov    (%rax),%esi
call   1040 <pathconf@plt>
lea    0xd5d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1440 <main+0x2f0>
mov    0x2b3e(%rip),%rax
mov    (%rax),%edi
lea    0xbc5(%rip),%rsi
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"Usage: limits path\0A\00"
@.str.1 = [37 x i8] c"==========through sysconf==========\0A\00"
@.str.2 = [16 x i8] c"CHILD_MAX= %ld\0A\00"
@_SC_CHILD_MAX = global i32 0
@.str.3 = [15 x i8] c"OPEN_MAX= %ld\0A\00"
@_SC_OPEN_MAX = global i32 0
@.str.4 = [14 x i8] c"CLK_TCK= %ld\0A\00"
@_SC_CLK_TCK = global i32 0
@.str.5 = [21 x i8] c"HOST_NAME_MAX = %ld\0A\00"
@_SC_HOST_NAME_MAX = global i32 0
@.str.6 = [14 x i8] c"IOV_MAX= %ld\0A\00"
@_SC_IOV_MAX = global i32 0
@.str.7 = [15 x i8] c"LINE_MAX= %ld\0A\00"
@_SC_LINE_MAX = global i32 0
@.str.8 = [16 x i8] c"PAGE_SIZE= %ld\0A\00"
@_SC_PAGE_SIZE = global i32 0
@.str.9 = [84 x i8] c"========================compile time limits, defined in <limits.h>================\0A\00"
@.str.10 = [14 x i8] c"CHAR_BIT= %d\0A\00"
@CHAR_BIT = global i32 0
@.str.11 = [14 x i8] c"CHAR_MAX= %d\0A\00"
@CHAR_MAX = global i32 0
@.str.12 = [14 x i8] c"SHRT_MAX= %d\0A\00"
@SHRT_MAX = global i32 0
@.str.13 = [13 x i8] c"INT_MAX= %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [15 x i8] c"LONG_MAX= %ld\0A\00"
@LONG_MAX = global i32 0
@.str.15 = [14 x i8] c"CHAR_MIN= %d\0A\00"
@CHAR_MIN = global i32 0
@.str.16 = [14 x i8] c"SHRT_MIN= %d\0A\00"
@SHRT_MIN = global i32 0
@.str.17 = [13 x i8] c"INT_MIN= %d\0A\00"
@INT_MIN = global i32 0
@.str.18 = [15 x i8] c"LONG_MIN= %ld\0A\00"
@LONG_MIN = global i32 0
@.str.19 = [47 x i8] c"##not part of limits, in <stdio.h> BUFSIZ= %d\0A\00"
@BUFSIZ = global i32 0
@.str.20 = [15 x i8] c"LINK_MAX= %ld\0A\00"
@_PC_LINK_MAX = global i32 0
@.str.21 = [16 x i8] c"MAX_CANON= %ld\0A\00"
@_PC_MAX_CANON = global i32 0
@.str.22 = [16 x i8] c"MAX_INPUT= %ld\0A\00"
@_PC_MAX_INPUT = global i32 0
@.str.23 = [15 x i8] c"NAME_MAX= %ld\0A\00"
@_PC_NAME_MAX = global i32 0
@.str.24 = [15 x i8] c"Path_max= %ld\0A\00"
@_PC_PATH_MAX = global i32 0
@.str.25 = [15 x i8] c"PIPE_BUF= %ld\0A\00"
@_PC_PIPE_BUF = global i32 0
@.str.26 = [18 x i8] c"SYMLINK_MAX= %ld\0A\00"
@_PC_SYMLINK_MAX = 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, 2
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %92
11: ; preds = %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* @_SC_CHILD_MAX
%14 = call i32 @sysconf(i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @_SC_OPEN_MAX
%17 = call i32 @sysconf(i32 %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @_SC_CLK_TCK
%20 = call i32 @sysconf(i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @_SC_HOST_NAME_MAX
%23 = call i32 @sysconf(i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @_SC_IOV_MAX
%26 = call i32 @sysconf(i32 %25)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @_SC_LINE_MAX
%29 = call i32 @sysconf(i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @_SC_PAGE_SIZE
%32 = call i32 @sysconf(i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.9, i64 0, i64 0))
%35 = load i32, i32* @CHAR_BIT
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @CHAR_MAX
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @SHRT_MAX
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @INT_MAX
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @LONG_MAX
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i32 %43)
%45 = load i32, i32* @CHAR_MIN
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @SHRT_MIN
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i32 %47)
%49 = load i32, i32* @INT_MIN
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %49)
%51 = load i32, i32* @LONG_MIN
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 %51)
%53 = load i32, i32* @BUFSIZ
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0), i32 %53)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i32 1
store i8** %57, i8*** %5
%58 = load i8*, i8** %57
%59 = load i32, i32* @_PC_LINK_MAX
%60 = call i32 @pathconf(i8* %58, i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %60)
%62 = load i8**, i8*** %5
%63 = load i8*, i8** %62
%64 = load i32, i32* @_PC_MAX_CANON
%65 = call i32 @pathconf(i8* %63, i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i32 %65)
%67 = load i8**, i8*** %5
%68 = load i8*, i8** %67
%69 = load i32, i32* @_PC_MAX_INPUT
%70 = call i32 @pathconf(i8* %68, i32 %69)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i32 %70)
%72 = load i8**, i8*** %5
%73 = load i8*, i8** %72
%74 = load i32, i32* @_PC_NAME_MAX
%75 = call i32 @pathconf(i8* %73, i32 %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i32 %75)
%77 = load i8**, i8*** %5
%78 = load i8*, i8** %77
%79 = load i32, i32* @_PC_PATH_MAX
%80 = call i32 @pathconf(i8* %78, i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i32 %80)
%82 = load i8**, i8*** %5
%83 = load i8*, i8** %82
%84 = load i32, i32* @_PC_PIPE_BUF
%85 = call i32 @pathconf(i8* %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i32 %85)
%87 = load i8**, i8*** %5
%88 = load i8*, i8** %87
%89 = load i32, i32* @_PC_SYMLINK_MAX
%90 = call i32 @pathconf(i8* %88, i32 %89)
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0), i32 %90)
store i32 0, i32* %3
br label %92
92: ; preds = %11, %8
%93 = load i32, i32* %3
ret i32 %93
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"Usage: limits path\0A\00"
@.str.2 = [16 x i8] c"CHILD_MAX= %ld\0A\00"
@_SC_CHILD_MAX = global i32 0
@.str.3 = [15 x i8] c"OPEN_MAX= %ld\0A\00"
@_SC_OPEN_MAX = global i32 0
@.str.4 = [14 x i8] c"CLK_TCK= %ld\0A\00"
@_SC_CLK_TCK = global i32 0
@.str.5 = [21 x i8] c"HOST_NAME_MAX = %ld\0A\00"
@_SC_HOST_NAME_MAX = global i32 0
@.str.6 = [14 x i8] c"IOV_MAX= %ld\0A\00"
@_SC_IOV_MAX = global i32 0
@.str.7 = [15 x i8] c"LINE_MAX= %ld\0A\00"
@_SC_LINE_MAX = global i32 0
@.str.8 = [16 x i8] c"PAGE_SIZE= %ld\0A\00"
@_SC_PAGE_SIZE = global i32 0
@.str.10 = [14 x i8] c"CHAR_BIT= %d\0A\00"
@CHAR_BIT = global i32 0
@.str.11 = [14 x i8] c"CHAR_MAX= %d\0A\00"
@CHAR_MAX = global i32 0
@.str.12 = [14 x i8] c"SHRT_MAX= %d\0A\00"
@SHRT_MAX = global i32 0
@.str.13 = [13 x i8] c"INT_MAX= %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [15 x i8] c"LONG_MAX= %ld\0A\00"
@LONG_MAX = global i32 0
@.str.15 = [14 x i8] c"CHAR_MIN= %d\0A\00"
@CHAR_MIN = global i32 0
@.str.16 = [14 x i8] c"SHRT_MIN= %d\0A\00"
@SHRT_MIN = global i32 0
@.str.17 = [13 x i8] c"INT_MIN= %d\0A\00"
@INT_MIN = global i32 0
@.str.18 = [15 x i8] c"LONG_MIN= %ld\0A\00"
@LONG_MIN = global i32 0
@.str.19 = [47 x i8] c"##not part of limits, in <stdio.h> BUFSIZ= %d\0A\00"
@BUFSIZ = global i32 0
@.str.20 = [15 x i8] c"LINK_MAX= %ld\0A\00"
@_PC_LINK_MAX = global i32 0
@.str.21 = [16 x i8] c"MAX_CANON= %ld\0A\00"
@_PC_MAX_CANON = global i32 0
@.str.22 = [16 x i8] c"MAX_INPUT= %ld\0A\00"
@_PC_MAX_INPUT = global i32 0
@.str.23 = [15 x i8] c"NAME_MAX= %ld\0A\00"
@_PC_NAME_MAX = global i32 0
@.str.24 = [15 x i8] c"Path_max= %ld\0A\00"
@_PC_PATH_MAX = global i32 0
@.str.25 = [15 x i8] c"PIPE_BUF= %ld\0A\00"
@_PC_PIPE_BUF = global i32 0
@.str.26 = [18 x i8] c"SYMLINK_MAX= %ld\0A\00"
@_PC_SYMLINK_MAX = global i32 0
@str.27 = [83 x i8] c"========================compile time limits, defined in <limits.h>================\00"
@str.28 = [36 x i8] c"==========through sysconf==========\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %81
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%9 = load i32, i32* @_SC_CHILD_MAX
%10 = tail call i32 @sysconf(i32 %9)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @_SC_OPEN_MAX
%13 = tail call i32 @sysconf(i32 %12)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @_SC_CLK_TCK
%16 = tail call i32 @sysconf(i32 %15)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @_SC_HOST_NAME_MAX
%19 = tail call i32 @sysconf(i32 %18)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @_SC_IOV_MAX
%22 = tail call i32 @sysconf(i32 %21)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @_SC_LINE_MAX
%25 = tail call i32 @sysconf(i32 %24)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @_SC_PAGE_SIZE
%28 = tail call i32 @sysconf(i32 %27)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %28)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.27, i64 0, i64 0))
%31 = load i32, i32* @CHAR_BIT
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @CHAR_MAX
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @SHRT_MAX
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @INT_MAX
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @LONG_MAX
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @CHAR_MIN
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @SHRT_MIN
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i32 %43)
%45 = load i32, i32* @INT_MIN
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @LONG_MIN
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 %47)
%49 = load i32, i32* @BUFSIZ
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0), i32 %49)
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%52 = getelementptr inbounds i8*, i8** %1, i64 1
%53 = load i8*, i8** %52
%54 = load i32, i32* @_PC_LINK_MAX
%55 = tail call i32 @pathconf(i8* %53, i32 %54)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i32 %55)
%57 = load i8*, i8** %52
%58 = load i32, i32* @_PC_MAX_CANON
%59 = tail call i32 @pathconf(i8* %57, i32 %58)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i32 %59)
%61 = load i8*, i8** %52
%62 = load i32, i32* @_PC_MAX_INPUT
%63 = tail call i32 @pathconf(i8* %61, i32 %62)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i32 %63)
%65 = load i8*, i8** %52
%66 = load i32, i32* @_PC_NAME_MAX
%67 = tail call i32 @pathconf(i8* %65, i32 %66)
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i32 %67)
%69 = load i8*, i8** %52
%70 = load i32, i32* @_PC_PATH_MAX
%71 = tail call i32 @pathconf(i8* %69, i32 %70)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i32 %71)
%73 = load i8*, i8** %52
%74 = load i32, i32* @_PC_PIPE_BUF
%75 = tail call i32 @pathconf(i8* %73, i32 %74)
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i32 %75)
%77 = load i8*, i8** %52
%78 = load i32, i32* @_PC_SYMLINK_MAX
%79 = tail call i32 @pathconf(i8* %77, i32 %78)
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %7, %4
ret i32 0
}