#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_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ _PC_NAME_MAX;
int /*<<< orphan*/ _PC_PATH_MAX;
int /*<<< orphan*/ _PC_PIPE_BUF;
int /*<<< orphan*/ fpathconfPrint(char *, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ helpAndLeave(char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc != 1) {
    helpAndLeave(argv[0], EXIT_FAILURE);
  }
  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);
  return 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)
cmpl   $0x1,-0x8(%rbp)
je     1155 <main+0x35>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
call   1040 <helpAndLeave@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
mov    0x2e5b(%rip),%rax
mov    (%rax),%edx
lea    0xe92(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
mov    0x2e55(%rip),%rax
mov    (%rax),%edx
lea    0xe82(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
mov    0x2e47(%rip),%rax
mov    (%rax),%edx
lea    0xe72(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x1,%edi
je     1137 <main+0x17>
mov    (%rsi),%rdi
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
call   1040 <helpAndLeave@plt>
mov    0x2e7a(%rip),%rbx
mov    (%rbx),%esi
mov    0x2e79(%rip),%rax
mov    (%rax),%edx
lea    0xeb0(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    (%rbx),%esi
mov    0x2e7a(%rip),%rax
mov    (%rax),%edx
lea    0xea7(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    (%rbx),%esi
mov    0x2e73(%rip),%rax
mov    (%rax),%edx
lea    0xe9e(%rip),%rdi
call   1030 <fpathconfPrint@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@.str = [14 x i8] c"_PC_NAME_MAX:\00"
@STDIN_FILENO = global i32 0
@_PC_NAME_MAX = global i32 0
@.str.1 = [14 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* %4
%7 = icmp ne i32 %6, 1
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @helpAndLeave(i8* %11, i32 %12)
br label %14
14: ; preds = %8, %2
%15 = load i32, i32* @STDIN_FILENO
%16 = load i32, i32* @_PC_NAME_MAX
%17 = call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %15, i32 %16)
%18 = load i32, i32* @STDIN_FILENO
%19 = load i32, i32* @_PC_PATH_MAX
%20 = call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %18, i32 %19)
%21 = load i32, i32* @STDIN_FILENO
%22 = load i32, i32* @_PC_PIPE_BUF
%23 = call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %21, i32 %22)
%24 = load i32, i32* @EXIT_SUCCESS
ret i32 %24
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [14 x i8] c"_PC_NAME_MAX:\00"
@STDIN_FILENO = global i32 0
@_PC_NAME_MAX = global i32 0
@.str.1 = [14 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 %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @helpAndLeave(i8* %5, i32 %6)
br label %8
8: ; preds = %4, %2
%9 = load i32, i32* @STDIN_FILENO
%10 = load i32, i32* @_PC_NAME_MAX
%11 = tail call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %10)
%12 = load i32, i32* @STDIN_FILENO
%13 = load i32, i32* @_PC_PATH_MAX
%14 = tail call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* @STDIN_FILENO
%16 = load i32, i32* @_PC_PIPE_BUF
%17 = tail call i32 @fpathconfPrint(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %16)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}