#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 _PC_2_SYMLINKS;
int _PC_ALLOC_SIZE_MIN;
int _PC_ASYNC_IO;
int _PC_CHOWN_RESTRICTED;
int _PC_FILESIZEBITS;
int _PC_LINK_MAX;
int _PC_MAX_CANON;
int _PC_MAX_INPUT;
int _PC_NAME_MAX;
int _PC_NO_TRUNC;
int _PC_PATH_MAX;
int _PC_PIPE_BUF;
int _PC_PRIO_IO;
int _PC_REC_INCR_XFER_SIZE;
int _PC_REC_MAX_XFER_SIZE;
int _PC_REC_MIN_XFER_SIZE;
int _PC_REC_XFER_ALIGN;
int _PC_SOCK_MAXBUF;
int _PC_SYMLINK_MAX;
int _PC_SYNC_IO;
int _PC_VDISABLE;
int errno;
int pathconf(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int vals[] = {
      _PC_LINK_MAX,          _PC_MAX_CANON,      _PC_MAX_INPUT,
      _PC_NAME_MAX,          _PC_PATH_MAX,       _PC_PIPE_BUF,
      _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, _PC_ALLOC_SIZE_MIN,
      _PC_CHOWN_RESTRICTED,  _PC_NO_TRUNC,       _PC_2_SYMLINKS,
      _PC_VDISABLE,          _PC_SYNC_IO,        _PC_ASYNC_IO,
      _PC_PRIO_IO,           _PC_SOCK_MAXBUF,    _PC_REC_INCR_XFER_SIZE,
      _PC_REC_MAX_XFER_SIZE, _PC_SYMLINK_MAX,    _PC_FILESIZEBITS};
  char *names[] = {
      "_PC_LINK_MAX",          "_PC_MAX_CANON",      "_PC_MAX_INPUT",
      "_PC_NAME_MAX",          "_PC_PATH_MAX",       "_PC_PIPE_BUF",
      "_PC_REC_MIN_XFER_SIZE", "_PC_REC_XFER_ALIGN", "_PC_ALLOC_SIZE_MIN",
      "_PC_CHOWN_RESTRICTED",  "_PC_NO_TRUNC",       "_PC_2_SYMLINKS",
      "_PC_VDISABLE",          "_PC_SYNC_IO",        "_PC_ASYNC_IO",
      "_PC_PRIO_IO",           "_PC_SOCK_MAXBUF",    "_PC_REC_INCR_XFER_SIZE",
      "_PC_REC_MAX_XFER_SIZE", "_PC_SYMLINK_MAX",    "_PC_FILESIZEBITS"};
  for (int i = 0; i < sizeof vals / sizeof vals[0]; i++) {
    printf("%s: %ld\n", names[i], pathconf("/", vals[i]));
    printf("errno: %d\n\n", errno);
    errno = 0;
  }
  printf("(invalid): %ld\n", pathconf("/", -123));
  printf("errno: %d\n", errno);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2e53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2e6f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2ddb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2e1f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2e2b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2e2f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2dcb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2e3b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2deb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2def(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2e03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2d5f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d2b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2d6f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2d4b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2d5f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2d43(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2d1f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
lea    -0x110(%rbp),%rdi
lea    0x2a74(%rip),%rsi
mov    $0xa8,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x114(%rbp)
movslq -0x114(%rbp),%rax
cmp    $0x15,%rax
jae    12ed <main+0x1bd>
movslq -0x114(%rbp),%rax
mov    -0x110(%rbp,%rax,8),%rax
ff
mov    %rax,-0x120(%rbp)
movslq -0x114(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    0xebd(%rip),%rdi
call   1030 <pathconf@plt>
mov    -0x120(%rbp),%rsi
mov    %eax,%edx
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2ccc(%rip),%rax
mov    (%rax),%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2cb5(%rip),%rax
movl   $0x0,(%rax)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1260 <main+0x130>
lea    0xe62(%rip),%rdi
mov    $0xffffff85,%esi
call   1030 <pathconf@plt>
mov    %eax,%esi
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c73(%rip),%rax
mov    (%rax),%esi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    0x2e03(%rip),%rax
mov    (%rax),%esi
mov    %esi,(%rsp)
mov    0x2e6f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2df5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2e38(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2e43(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2e46(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2de1(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2dfc(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2e4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2d8a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2dfd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2e00(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2e13(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2d6e(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2d39(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
mov    0x2d7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x44(%rsp)
mov    0x2d6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x48(%rsp)
mov    0x2d4d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4c(%rsp)
mov    0x2d28(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x50(%rsp)
lea    0xf11(%rip),%rdi
call   1030 <pathconf@plt>
lea    0xefc(%rip),%r15
lea    0xda8(%rip),%rsi
mov    %r15,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d25(%rip),%r13
mov    0x0(%r13),%esi
lea    0xee2(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x0(%r13)
mov    $0x1,%ebp
lea    0xeec(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rsp,%rbp,4),%esi
movslq (%r14,%rbp,4),%rbx
add    %r14,%rbx
lea    0xea5(%rip),%rdi
call   1030 <pathconf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x0(%r13)
add    $0x1,%rbp
cmp    $0x15,%rbp
jne    12a0 <main+0x180>
lea    0xe6a(%rip),%rdi
mov    $0xffffff85,%esi
call   1030 <pathconf@plt>
lea    0xe67(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%esi
lea    0xe63(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@_PC_LINK_MAX = global i32 0
@_PC_MAX_CANON = global i32 0
@_PC_MAX_INPUT = global i32 0
@_PC_NAME_MAX = global i32 0
@_PC_PATH_MAX = global i32 0
@_PC_PIPE_BUF = global i32 0
@_PC_REC_MIN_XFER_SIZE = global i32 0
@_PC_REC_XFER_ALIGN = global i32 0
@_PC_ALLOC_SIZE_MIN = global i32 0
@_PC_CHOWN_RESTRICTED = global i32 0
@_PC_NO_TRUNC = global i32 0
@_PC_2_SYMLINKS = global i32 0
@_PC_VDISABLE = global i32 0
@_PC_SYNC_IO = global i32 0
@_PC_ASYNC_IO = global i32 0
@_PC_PRIO_IO = global i32 0
@_PC_SOCK_MAXBUF = global i32 0
@_PC_REC_INCR_XFER_SIZE = global i32 0
@_PC_REC_MAX_XFER_SIZE = global i32 0
@_PC_SYMLINK_MAX = global i32 0
@_PC_FILESIZEBITS = global i32 0
@.str = [13 x i8] c"_PC_LINK_MAX\00"
@.str.1 = [14 x i8] c"_PC_MAX_CANON\00"
@.str.2 = [14 x i8] c"_PC_MAX_INPUT\00"
@.str.3 = [13 x i8] c"_PC_NAME_MAX\00"
@.str.4 = [13 x i8] c"_PC_PATH_MAX\00"
@.str.5 = [13 x i8] c"_PC_PIPE_BUF\00"
@.str.6 = [22 x i8] c"_PC_REC_MIN_XFER_SIZE\00"
@.str.7 = [19 x i8] c"_PC_REC_XFER_ALIGN\00"
@.str.8 = [19 x i8] c"_PC_ALLOC_SIZE_MIN\00"
@.str.9 = [21 x i8] c"_PC_CHOWN_RESTRICTED\00"
@.str.10 = [13 x i8] c"_PC_NO_TRUNC\00"
@.str.11 = [15 x i8] c"_PC_2_SYMLINKS\00"
@.str.12 = [13 x i8] c"_PC_VDISABLE\00"
@.str.13 = [12 x i8] c"_PC_SYNC_IO\00"
@.str.14 = [13 x i8] c"_PC_ASYNC_IO\00"
@.str.15 = [12 x i8] c"_PC_PRIO_IO\00"
@.str.16 = [16 x i8] c"_PC_SOCK_MAXBUF\00"
@.str.17 = [23 x i8] c"_PC_REC_INCR_XFER_SIZE\00"
@.str.18 = [22 x i8] c"_PC_REC_MAX_XFER_SIZE\00"
@.str.19 = [16 x i8] c"_PC_SYMLINK_MAX\00"
@.str.20 = [17 x i8] c"_PC_FILESIZEBITS\00"
@__const.main.names = [21 x i8*] [i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i32 0, i32 0)]
@.str.21 = [9 x i8] c"%s: %ld\0A\00"
@.str.22 = [2 x i8] c"/\00"
@.str.23 = [12 x i8] c"errno: %d\0A\0A\00"
@errno = global i32 0
@.str.24 = [16 x i8] c"(invalid): %ld\0A\00"
@.str.25 = [11 x i8] c"errno: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [21 x i32]
%3 = alloca [21 x i8*]
%4 = alloca i32
store i32 0, i32* %1
%5 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 0
%6 = load i32, i32* @_PC_LINK_MAX
store i32 %6, i32* %5
%7 = getelementptr inbounds i32, i32* %5, i64 1
%8 = load i32, i32* @_PC_MAX_CANON
store i32 %8, i32* %7
%9 = getelementptr inbounds i32, i32* %7, i64 1
%10 = load i32, i32* @_PC_MAX_INPUT
store i32 %10, i32* %9
%11 = getelementptr inbounds i32, i32* %9, i64 1
%12 = load i32, i32* @_PC_NAME_MAX
store i32 %12, i32* %11
%13 = getelementptr inbounds i32, i32* %11, i64 1
%14 = load i32, i32* @_PC_PATH_MAX
store i32 %14, i32* %13
%15 = getelementptr inbounds i32, i32* %13, i64 1
%16 = load i32, i32* @_PC_PIPE_BUF
store i32 %16, i32* %15
%17 = getelementptr inbounds i32, i32* %15, i64 1
%18 = load i32, i32* @_PC_REC_MIN_XFER_SIZE
store i32 %18, i32* %17
%19 = getelementptr inbounds i32, i32* %17, i64 1
%20 = load i32, i32* @_PC_REC_XFER_ALIGN
store i32 %20, i32* %19
%21 = getelementptr inbounds i32, i32* %19, i64 1
%22 = load i32, i32* @_PC_ALLOC_SIZE_MIN
store i32 %22, i32* %21
%23 = getelementptr inbounds i32, i32* %21, i64 1
%24 = load i32, i32* @_PC_CHOWN_RESTRICTED
store i32 %24, i32* %23
%25 = getelementptr inbounds i32, i32* %23, i64 1
%26 = load i32, i32* @_PC_NO_TRUNC
store i32 %26, i32* %25
%27 = getelementptr inbounds i32, i32* %25, i64 1
%28 = load i32, i32* @_PC_2_SYMLINKS
store i32 %28, i32* %27
%29 = getelementptr inbounds i32, i32* %27, i64 1
%30 = load i32, i32* @_PC_VDISABLE
store i32 %30, i32* %29
%31 = getelementptr inbounds i32, i32* %29, i64 1
%32 = load i32, i32* @_PC_SYNC_IO
store i32 %32, i32* %31
%33 = getelementptr inbounds i32, i32* %31, i64 1
%34 = load i32, i32* @_PC_ASYNC_IO
store i32 %34, i32* %33
%35 = getelementptr inbounds i32, i32* %33, i64 1
%36 = load i32, i32* @_PC_PRIO_IO
store i32 %36, i32* %35
%37 = getelementptr inbounds i32, i32* %35, i64 1
%38 = load i32, i32* @_PC_SOCK_MAXBUF
store i32 %38, i32* %37
%39 = getelementptr inbounds i32, i32* %37, i64 1
%40 = load i32, i32* @_PC_REC_INCR_XFER_SIZE
store i32 %40, i32* %39
%41 = getelementptr inbounds i32, i32* %39, i64 1
%42 = load i32, i32* @_PC_REC_MAX_XFER_SIZE
store i32 %42, i32* %41
%43 = getelementptr inbounds i32, i32* %41, i64 1
%44 = load i32, i32* @_PC_SYMLINK_MAX
store i32 %44, i32* %43
%45 = getelementptr inbounds i32, i32* %43, i64 1
%46 = load i32, i32* @_PC_FILESIZEBITS
store i32 %46, i32* %45
%47 = bitcast [21 x i8*]* %3 to i8*
store i32 0, i32* %4
br label %48
48: ; preds = %65, %0
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = icmp ult i64 %50, 21
br i1 %51, label %52, label %68
52: ; preds = %48
%53 = load i32, i32* %4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [21 x i8*], [21 x i8*]* %3, i64 0, i64 %54
%56 = load i8*, i8** %55
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = call i32 @pathconf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i8* %56, i32 %61)
%63 = load i32, i32* @errno
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i32 %63)
store i32 0, i32* @errno
br label %65
65: ; preds = %52
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %48
68: ; preds = %48
%69 = call i32 @pathconf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 -123)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), i32 %69)
%71 = load i32, i32* @errno
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %71)
ret i32 0
}

LLVM IR (-O2):
@_PC_LINK_MAX = global i32 0
@_PC_MAX_CANON = global i32 0
@_PC_MAX_INPUT = global i32 0
@_PC_NAME_MAX = global i32 0
@_PC_PATH_MAX = global i32 0
@_PC_PIPE_BUF = global i32 0
@_PC_REC_MIN_XFER_SIZE = global i32 0
@_PC_REC_XFER_ALIGN = global i32 0
@_PC_ALLOC_SIZE_MIN = global i32 0
@_PC_CHOWN_RESTRICTED = global i32 0
@_PC_NO_TRUNC = global i32 0
@_PC_2_SYMLINKS = global i32 0
@_PC_VDISABLE = global i32 0
@_PC_SYNC_IO = global i32 0
@_PC_ASYNC_IO = global i32 0
@_PC_PRIO_IO = global i32 0
@_PC_SOCK_MAXBUF = global i32 0
@_PC_REC_INCR_XFER_SIZE = global i32 0
@_PC_REC_MAX_XFER_SIZE = global i32 0
@_PC_SYMLINK_MAX = global i32 0
@_PC_FILESIZEBITS = global i32 0
@.str = [13 x i8] c"_PC_LINK_MAX\00"
@.str.1 = [14 x i8] c"_PC_MAX_CANON\00"
@.str.2 = [14 x i8] c"_PC_MAX_INPUT\00"
@.str.3 = [13 x i8] c"_PC_NAME_MAX\00"
@.str.4 = [13 x i8] c"_PC_PATH_MAX\00"
@.str.5 = [13 x i8] c"_PC_PIPE_BUF\00"
@.str.6 = [22 x i8] c"_PC_REC_MIN_XFER_SIZE\00"
@.str.7 = [19 x i8] c"_PC_REC_XFER_ALIGN\00"
@.str.8 = [19 x i8] c"_PC_ALLOC_SIZE_MIN\00"
@.str.9 = [21 x i8] c"_PC_CHOWN_RESTRICTED\00"
@.str.10 = [13 x i8] c"_PC_NO_TRUNC\00"
@.str.11 = [15 x i8] c"_PC_2_SYMLINKS\00"
@.str.12 = [13 x i8] c"_PC_VDISABLE\00"
@.str.13 = [12 x i8] c"_PC_SYNC_IO\00"
@.str.14 = [13 x i8] c"_PC_ASYNC_IO\00"
@.str.15 = [12 x i8] c"_PC_PRIO_IO\00"
@.str.16 = [16 x i8] c"_PC_SOCK_MAXBUF\00"
@.str.17 = [23 x i8] c"_PC_REC_INCR_XFER_SIZE\00"
@.str.18 = [22 x i8] c"_PC_REC_MAX_XFER_SIZE\00"
@.str.19 = [16 x i8] c"_PC_SYMLINK_MAX\00"
@.str.20 = [17 x i8] c"_PC_FILESIZEBITS\00"
@reltable.main = [21 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.1 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.2 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.3 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.4 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.5 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.6 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.7 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.8 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.9 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.10 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.11 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.12 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.13 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.14 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.15 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.16 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.17 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.18 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.19 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.20 to i64), i64 ptrtoint ([21 x i32]* @reltable.main to i64)) to i32)]
@.str.21 = [9 x i8] c"%s: %ld\0A\00"
@.str.22 = [2 x i8] c"/\00"
@.str.23 = [12 x i8] c"errno: %d\0A\0A\00"
@errno = global i32 0
@.str.24 = [16 x i8] c"(invalid): %ld\0A\00"
@.str.25 = [11 x i8] c"errno: %d\0A\00"
define i32 @main() {
%1 = alloca [21 x i32]
%2 = bitcast [21 x i32]* %1 to i8*
%3 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 0
%4 = load i32, i32* @_PC_LINK_MAX
store i32 %4, i32* %3
%5 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 1
%6 = load i32, i32* @_PC_MAX_CANON
store i32 %6, i32* %5
%7 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 2
%8 = load i32, i32* @_PC_MAX_INPUT
store i32 %8, i32* %7
%9 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 3
%10 = load i32, i32* @_PC_NAME_MAX
store i32 %10, i32* %9
%11 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 4
%12 = load i32, i32* @_PC_PATH_MAX
store i32 %12, i32* %11
%13 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 5
%14 = load i32, i32* @_PC_PIPE_BUF
store i32 %14, i32* %13
%15 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 6
%16 = load i32, i32* @_PC_REC_MIN_XFER_SIZE
store i32 %16, i32* %15
%17 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 7
%18 = load i32, i32* @_PC_REC_XFER_ALIGN
store i32 %18, i32* %17
%19 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 8
%20 = load i32, i32* @_PC_ALLOC_SIZE_MIN
store i32 %20, i32* %19
%21 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 9
%22 = load i32, i32* @_PC_CHOWN_RESTRICTED
store i32 %22, i32* %21
%23 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 10
%24 = load i32, i32* @_PC_NO_TRUNC
store i32 %24, i32* %23
%25 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 11
%26 = load i32, i32* @_PC_2_SYMLINKS
store i32 %26, i32* %25
%27 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 12
%28 = load i32, i32* @_PC_VDISABLE
store i32 %28, i32* %27
%29 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 13
%30 = load i32, i32* @_PC_SYNC_IO
store i32 %30, i32* %29
%31 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 14
%32 = load i32, i32* @_PC_ASYNC_IO
store i32 %32, i32* %31
%33 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 15
%34 = load i32, i32* @_PC_PRIO_IO
store i32 %34, i32* %33
%35 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 16
%36 = load i32, i32* @_PC_SOCK_MAXBUF
store i32 %36, i32* %35
%37 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 17
%38 = load i32, i32* @_PC_REC_INCR_XFER_SIZE
store i32 %38, i32* %37
%39 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 18
%40 = load i32, i32* @_PC_REC_MAX_XFER_SIZE
store i32 %40, i32* %39
%41 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 19
%42 = load i32, i32* @_PC_SYMLINK_MAX
store i32 %42, i32* %41
%43 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 20
%44 = load i32, i32* @_PC_FILESIZEBITS
store i32 %44, i32* %43
%45 = tail call i32 @pathconf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 %4)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @errno
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i32 %47)
store i32 0, i32* @errno
br label %54
49: ; preds = %54
%50 = tail call i32 @pathconf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 -123)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), i32 %50)
%52 = load i32, i32* @errno
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %52)
ret i32 0
54: ; preds = %0, %54
%55 = phi i64 [ 1, %0 ], [ %64, %54 ]
%56 = getelementptr inbounds [21 x i32], [21 x i32]* %1, i64 0, i64 %55
%57 = load i32, i32* %56
%58 = shl i64 %55, 2
%59 = call i8* @llvm.load.relative.i64(i8* bitcast ([21 x i32]* @reltable.main to i8*), i64 %58)
%60 = tail call i32 @pathconf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 %57)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i8* %59, i32 %60)
%62 = load i32, i32* @errno
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i32 %62)
store i32 0, i32* @errno
%64 = add nuw nsw i64 %55, 1
%65 = icmp eq i64 %64, 21
br i1 %65, label %49, label %54
}