#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 _CS_GNU_LIBC_VERSION;
int _CS_GNU_LIBPTHREAD_VERSION;
int _CS_PATH;
int _CS_POSIX_V6_ILP32_OFF32_CFLAGS;
int _CS_POSIX_V6_ILP32_OFF32_LDFLAGS;
int _CS_POSIX_V6_ILP32_OFF32_LIBS;
int _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS;
int _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS;
int _CS_POSIX_V6_ILP32_OFFBIG_LIBS;
int _CS_POSIX_V6_LP64_OFF64_CFLAGS;
int _CS_POSIX_V6_LP64_OFF64_LDFLAGS;
int _CS_POSIX_V6_LP64_OFF64_LIBS;
int _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS;
int _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS;
int _CS_POSIX_V6_LPBIG_OFFBIG_LIBS;
int _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS;
int confstr(int, char *, int);
int errno;
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int vals[] = {_CS_PATH,
                _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS,
                _CS_GNU_LIBC_VERSION,
                _CS_GNU_LIBPTHREAD_VERSION,
                _CS_POSIX_V6_ILP32_OFF32_LIBS,
                _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
                _CS_POSIX_V6_LP64_OFF64_CFLAGS,
                _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
                _CS_POSIX_V6_LP64_OFF64_LIBS,
                _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
                _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
                _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
                _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
                _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
                _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
                _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS};
  char *names[] = {"_CS_PATH",
                   "_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS",
                   "_CS_GNU_LIBC_VERSION",
                   "_CS_GNU_LIBPTHREAD_VERSION",
                   "_CS_POSIX_V6_ILP32_OFF32_LIBS",
                   "_CS_POSIX_V6_ILP32_OFFBIG_LIBS",
                   "_CS_POSIX_V6_LP64_OFF64_CFLAGS",
                   "_CS_POSIX_V6_LP64_OFF64_LDFLAGS",
                   "_CS_POSIX_V6_LP64_OFF64_LIBS",
                   "_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS",
                   "_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS",
                   "_CS_POSIX_V6_LPBIG_OFFBIG_LIBS",
                   "_CS_POSIX_V6_ILP32_OFF32_CFLAGS",
                   "_CS_POSIX_V6_ILP32_OFF32_LDFLAGS",
                   "_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS",
                   "_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS"};
  char buffer[256];
  for (int i = 0; i < sizeof vals / sizeof vals[0]; i++) {
    printf("ret: %d\n", confstr(vals[i], buffer, 256));
    printf("%s: %s\n", names[i], buffer);
    printf("errno: %d\n\n", errno);
    errno = 0;
  }
  printf("(invalid) ret: %d\n", confstr(-123, buffer, 256));
  printf("errno: %d\n", errno);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2e5b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2e57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2e53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2e57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2e03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2ddf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2e03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2db7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2db3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2e07(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2db7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2db3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2df7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2d7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0x2b00(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x1d4(%rbp)
movslq -0x1d4(%rbp),%rax
cmp    $0x10,%rax
jae    12bd <main+0x18d>
movslq -0x1d4(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edi
lea    -0x1d0(%rbp),%rsi
mov    $0x100,%edx
call   1050 <confstr@plt>
mov    %eax,%esi
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1d4(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%rsi
ff
lea    -0x1d0(%rbp),%rdx
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cf4(%rip),%rax
mov    (%rax),%esi
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cdd(%rip),%rax
movl   $0x0,(%rax)
mov    -0x1d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1d4(%rbp)
jmp    1224 <main+0xf4>
lea    -0x1d0(%rbp),%rsi
mov    $0xffffff85,%edi
mov    $0x100,%edx
call   1050 <confstr@plt>
mov    %eax,%esi
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c96(%rip),%rax
mov    (%rax),%esi
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
mov    %edi,(%rsp)
mov    0x2e74(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x2e6f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2e6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2e6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2e18(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2df3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2e16(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2dc9(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2dc4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2e17(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2d9a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2dc5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2dc0(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2e03(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2d86(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
lea    0x40(%rsp),%rbx
lea    0x1004(%rip),%rbp
lea    0xfc8(%rip),%r15
mov    0x2d6e(%rip),%r13
lea    0xfc2(%rip),%r12
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rsi
mov    $0x100,%edx
call   1040 <confstr@plt>
lea    0xfb5(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movslq (%r14,%rbp,1),%rsi
add    %rbp,%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0x0,0x0(%r13)
cmp    $0x3c,%r14
je     1288 <main+0x168>
mov    0x4(%rsp,%r14,1),%edi
add    $0x4,%r14
jmp    1230 <main+0x110>
lea    0x40(%rsp),%rsi
mov    $0xffffff85,%edi
mov    $0x100,%edx
call   1040 <confstr@plt>
lea    0xf4c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%esi
lea    0xf4b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@_CS_PATH = global i32 0
@_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = global i32 0
@_CS_GNU_LIBC_VERSION = global i32 0
@_CS_GNU_LIBPTHREAD_VERSION = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_LIBS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_LIBS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_CFLAGS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_LDFLAGS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_LIBS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_CFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = global i32 0
@.str = [9 x i8] c"_CS_PATH\00"
@.str.1 = [35 x i8] c"_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS\00"
@.str.2 = [21 x i8] c"_CS_GNU_LIBC_VERSION\00"
@.str.3 = [27 x i8] c"_CS_GNU_LIBPTHREAD_VERSION\00"
@.str.4 = [30 x i8] c"_CS_POSIX_V6_ILP32_OFF32_LIBS\00"
@.str.5 = [31 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_LIBS\00"
@.str.6 = [31 x i8] c"_CS_POSIX_V6_LP64_OFF64_CFLAGS\00"
@.str.7 = [32 x i8] c"_CS_POSIX_V6_LP64_OFF64_LDFLAGS\00"
@.str.8 = [29 x i8] c"_CS_POSIX_V6_LP64_OFF64_LIBS\00"
@.str.9 = [33 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS\00"
@.str.10 = [34 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS\00"
@.str.11 = [31 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_LIBS\00"
@.str.12 = [32 x i8] c"_CS_POSIX_V6_ILP32_OFF32_CFLAGS\00"
@.str.13 = [33 x i8] c"_CS_POSIX_V6_ILP32_OFF32_LDFLAGS\00"
@.str.14 = [34 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS\00"
@.str.15 = [33 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS\00"
@__const.main.names = [16 x i8*] [i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i32 0, i32 0)]
@.str.16 = [9 x i8] c"ret: %d\0A\00"
@.str.17 = [8 x i8] c"%s: %s\0A\00"
@.str.18 = [12 x i8] c"errno: %d\0A\0A\00"
@errno = global i32 0
@.str.19 = [19 x i8] c"(invalid) ret: %d\0A\00"
@.str.20 = [11 x i8] c"errno: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x i32]
%3 = alloca [16 x i8*]
%4 = alloca [256 x i8]
%5 = alloca i32
store i32 0, i32* %1
%6 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 0
%7 = load i32, i32* @_CS_PATH
store i32 %7, i32* %6
%8 = getelementptr inbounds i32, i32* %6, i64 1
%9 = load i32, i32* @_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
store i32 %9, i32* %8
%10 = getelementptr inbounds i32, i32* %8, i64 1
%11 = load i32, i32* @_CS_GNU_LIBC_VERSION
store i32 %11, i32* %10
%12 = getelementptr inbounds i32, i32* %10, i64 1
%13 = load i32, i32* @_CS_GNU_LIBPTHREAD_VERSION
store i32 %13, i32* %12
%14 = getelementptr inbounds i32, i32* %12, i64 1
%15 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_LIBS
store i32 %15, i32* %14
%16 = getelementptr inbounds i32, i32* %14, i64 1
%17 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_LIBS
store i32 %17, i32* %16
%18 = getelementptr inbounds i32, i32* %16, i64 1
%19 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_CFLAGS
store i32 %19, i32* %18
%20 = getelementptr inbounds i32, i32* %18, i64 1
%21 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_LDFLAGS
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
%23 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_LIBS
store i32 %23, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
store i32 %25, i32* %24
%26 = getelementptr inbounds i32, i32* %24, i64 1
%27 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
store i32 %27, i32* %26
%28 = getelementptr inbounds i32, i32* %26, i64 1
%29 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_LIBS
store i32 %29, i32* %28
%30 = getelementptr inbounds i32, i32* %28, i64 1
%31 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_CFLAGS
store i32 %31, i32* %30
%32 = getelementptr inbounds i32, i32* %30, i64 1
%33 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_LDFLAGS
store i32 %33, i32* %32
%34 = getelementptr inbounds i32, i32* %32, i64 1
%35 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
store i32 %35, i32* %34
%36 = getelementptr inbounds i32, i32* %34, i64 1
%37 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
store i32 %37, i32* %36
%38 = bitcast [16 x i8*]* %3 to i8*
store i32 0, i32* %5
br label %39
39: ; preds = %59, %0
%40 = load i32, i32* %5
%41 = sext i32 %40 to i64
%42 = icmp ult i64 %41, 16
br i1 %42, label %43, label %62
43: ; preds = %39
%44 = load i32, i32* %5
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x i32], [16 x i32]* %2, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%49 = call i32 @confstr(i32 %47, i8* %48, i32 256)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %5
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %52
%54 = load i8*, i8** %53
%55 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %54, i8* %55)
%57 = load i32, i32* @errno
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0), i32 %57)
store i32 0, i32* @errno
br label %59
59: ; preds = %43
%60 = load i32, i32* %5
%61 = add nsw i32 %60, 1
store i32 %61, i32* %5
br label %39
62: ; preds = %39
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%64 = call i32 @confstr(i32 -123, i8* %63, i32 256)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i32 %64)
%66 = load i32, i32* @errno
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i32 %66)
ret i32 0
}

LLVM IR (-O2):
@_CS_PATH = global i32 0
@_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = global i32 0
@_CS_GNU_LIBC_VERSION = global i32 0
@_CS_GNU_LIBPTHREAD_VERSION = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_LIBS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_LIBS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_CFLAGS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_LDFLAGS = global i32 0
@_CS_POSIX_V6_LP64_OFF64_LIBS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = global i32 0
@_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_CFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = global i32 0
@_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = global i32 0
@.str = [9 x i8] c"_CS_PATH\00"
@.str.1 = [35 x i8] c"_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS\00"
@.str.2 = [21 x i8] c"_CS_GNU_LIBC_VERSION\00"
@.str.3 = [27 x i8] c"_CS_GNU_LIBPTHREAD_VERSION\00"
@.str.4 = [30 x i8] c"_CS_POSIX_V6_ILP32_OFF32_LIBS\00"
@.str.5 = [31 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_LIBS\00"
@.str.6 = [31 x i8] c"_CS_POSIX_V6_LP64_OFF64_CFLAGS\00"
@.str.7 = [32 x i8] c"_CS_POSIX_V6_LP64_OFF64_LDFLAGS\00"
@.str.8 = [29 x i8] c"_CS_POSIX_V6_LP64_OFF64_LIBS\00"
@.str.9 = [33 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS\00"
@.str.10 = [34 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS\00"
@.str.11 = [31 x i8] c"_CS_POSIX_V6_LPBIG_OFFBIG_LIBS\00"
@.str.12 = [32 x i8] c"_CS_POSIX_V6_ILP32_OFF32_CFLAGS\00"
@.str.13 = [33 x i8] c"_CS_POSIX_V6_ILP32_OFF32_LDFLAGS\00"
@.str.14 = [34 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS\00"
@.str.15 = [33 x i8] c"_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS\00"
@reltable.main = [16 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.1 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.2 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.3 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.4 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.5 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.6 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.7 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.8 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.9 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.10 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.11 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.12 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.13 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.14 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.15 to i64), i64 ptrtoint ([16 x i32]* @reltable.main to i64)) to i32)]
@.str.16 = [9 x i8] c"ret: %d\0A\00"
@.str.17 = [8 x i8] c"%s: %s\0A\00"
@.str.18 = [12 x i8] c"errno: %d\0A\0A\00"
@errno = global i32 0
@.str.19 = [19 x i8] c"(invalid) ret: %d\0A\00"
@.str.20 = [11 x i8] c"errno: %d\0A\00"
define i32 @main() {
%1 = alloca [16 x i32]
%2 = alloca [256 x i8]
%3 = bitcast [16 x i32]* %1 to i8*
%4 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 0
%5 = load i32, i32* @_CS_PATH
store i32 %5, i32* %4
%6 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 1
%7 = load i32, i32* @_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
store i32 %7, i32* %6
%8 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 2
%9 = load i32, i32* @_CS_GNU_LIBC_VERSION
store i32 %9, i32* %8
%10 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 3
%11 = load i32, i32* @_CS_GNU_LIBPTHREAD_VERSION
store i32 %11, i32* %10
%12 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 4
%13 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_LIBS
store i32 %13, i32* %12
%14 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 5
%15 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_LIBS
store i32 %15, i32* %14
%16 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 6
%17 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_CFLAGS
store i32 %17, i32* %16
%18 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 7
%19 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_LDFLAGS
store i32 %19, i32* %18
%20 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 8
%21 = load i32, i32* @_CS_POSIX_V6_LP64_OFF64_LIBS
store i32 %21, i32* %20
%22 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 9
%23 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
store i32 %23, i32* %22
%24 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 10
%25 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
store i32 %25, i32* %24
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 11
%27 = load i32, i32* @_CS_POSIX_V6_LPBIG_OFFBIG_LIBS
store i32 %27, i32* %26
%28 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 12
%29 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_CFLAGS
store i32 %29, i32* %28
%30 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 13
%31 = load i32, i32* @_CS_POSIX_V6_ILP32_OFF32_LDFLAGS
store i32 %31, i32* %30
%32 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 14
%33 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
store i32 %33, i32* %32
%34 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 15
%35 = load i32, i32* @_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
store i32 %35, i32* %34
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
br label %42
37: ; preds = %42
%38 = call i32 @confstr(i32 -123, i8* %36, i32 256)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i32 %38)
%40 = load i32, i32* @errno
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i32 %40)
ret i32 0
42: ; preds = %54, %0
%43 = phi i32 [ %5, %0 ], [ %56, %54 ]
%44 = phi i64 [ 0, %0 ], [ %52, %54 ]
%45 = call i32 @confstr(i32 %43, i8* %36, i32 256)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32 %45)
%47 = shl i64 %44, 2
%48 = call i8* @llvm.load.relative.i64(i8* bitcast ([16 x i32]* @reltable.main to i8*), i64 %47)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %48, i8* %36)
%50 = load i32, i32* @errno
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0), i32 %50)
store i32 0, i32* @errno
%52 = add nuw nsw i64 %44, 1
%53 = icmp eq i64 %52, 16
br i1 %53, label %37, label %54
54: ; preds = %42
%55 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 %52
%56 = load i32, i32* %55
br label %42
}