#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*/ STDIN_FILENO;
int /*<<< orphan*/ _PC_NAME_MAX;
int /*<<< orphan*/ _PC_PATH_MAX;
int /*<<< orphan*/ _PC_PIPE_BUF;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fpathconf_print(char *, int /*<<< orphan*/,
                                   int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  fpathconf_print("_PC_NAME_MAX", STDIN_FILENO, _PC_NAME_MAX);
  fpathconf_print("_PC_PATH_MAX", STDIN_FILENO, _PC_PATH_MAX);
  fpathconf_print("__PC_PIPE_BUF", STDIN_FILENO, _PC_PIPE_BUF);
  exit(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)
mov    0x2e83(%rip),%rax
mov    (%rax),%esi
mov    0x2e82(%rip),%rax
mov    (%rax),%edx
lea    0xeb1(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    0x2e74(%rip),%rax
mov    (%rax),%edx
lea    0xea0(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
mov    0x2e66(%rip),%rax
mov    (%rax),%edx
lea    0xe8f(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e98(%rip),%rbx
mov    (%rbx),%esi
mov    0x2e97(%rip),%rax
mov    (%rax),%edx
lea    0xec6(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    (%rbx),%esi
mov    0x2e90(%rip),%rax
mov    (%rax),%edx
lea    0xebc(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    (%rbx),%esi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
lea    0xeb2(%rip),%rdi
call   1040 <fpathconf_print@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1030 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"_PC_NAME_MAX\00"
@STDIN_FILENO = global i32 0
@_PC_NAME_MAX = global i32 0
@.str.1 = [13 x i8] c"_PC_PATH_MAX\00"
@_PC_PATH_MAX = global i32 0
@.str.2 = [14 x i8] c"__PC_PIPE_BUF\00"
@_PC_PIPE_BUF = 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* @STDIN_FILENO
%7 = load i32, i32* @_PC_NAME_MAX
%8 = call i32 @fpathconf_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
%9 = load i32, i32* @STDIN_FILENO
%10 = load i32, i32* @_PC_PATH_MAX
%11 = call i32 @fpathconf_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %10)
%12 = load i32, i32* @STDIN_FILENO
%13 = load i32, i32* @_PC_PIPE_BUF
%14 = call i32 @fpathconf_print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* @EXIT_SUCCESS
%16 = call i32 @exit(i32 %15)
unreachable
}

LLVM IR (-O2):
@.str = [13 x i8] c"_PC_NAME_MAX\00"
@STDIN_FILENO = global i32 0
@_PC_NAME_MAX = global i32 0
@.str.1 = [13 x i8] c"_PC_PATH_MAX\00"
@_PC_PATH_MAX = global i32 0
@.str.2 = [14 x i8] c"__PC_PIPE_BUF\00"
@_PC_PIPE_BUF = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @STDIN_FILENO
%4 = load i32, i32* @_PC_NAME_MAX
%5 = tail call i32 @fpathconf_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
%6 = load i32, i32* @STDIN_FILENO
%7 = load i32, i32* @_PC_PATH_MAX
%8 = tail call i32 @fpathconf_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %6, i32 %7)
%9 = load i32, i32* @STDIN_FILENO
%10 = load i32, i32* @_PC_PIPE_BUF
%11 = tail call i32 @fpathconf_print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %10)
%12 = load i32, i32* @EXIT_SUCCESS
%13 = tail call i32 @exit(i32 %12)
unreachable
}