#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*/ fpathconfPrint(char *, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int main() {
  fpathconfPrint("_PC_NAME_MAX: ", STDIN_FILENO, _PC_NAME_MAX);
  fpathconfPrint("_PC_PATH_MAX: ", STDIN_FILENO, _PC_PATH_MAX);
  fpathconfPrint("_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    0x2e8a(%rip),%rax
mov    (%rax),%esi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
lea    0xeb8(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%esi
mov    0x2e7b(%rip),%rax
mov    (%rax),%edx
lea    0xea9(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e4e(%rip),%rax
mov    (%rax),%esi
mov    0x2e6d(%rip),%rax
mov    (%rax),%edx
lea    0xe9a(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
call   1040 <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   1030 <fpathconfPrint@plt>
mov    (%rbx),%esi
mov    0x2e90(%rip),%rax
mov    (%rax),%edx
lea    0xebe(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    (%rbx),%esi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
lea    0xeb6(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

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

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