#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*/ _PC_CHOWN_RESTRICTED;
int /*<<< orphan*/ _PC_LINK_MAX;
int /*<<< orphan*/ _PC_MAX_CANON;
int /*<<< orphan*/ _PC_MAX_INPUT;
int /*<<< orphan*/ _PC_NAME_MAX;
int /*<<< orphan*/ _PC_NO_TRUNC;
int /*<<< orphan*/ _PC_PIPE_BUF;
int /*<<< orphan*/ prconf(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void prconfall(const char *path, int argc) {
  printf("\"%s\":\n", path);
  prconf(path, _PC_LINK_MAX);
  prconf(path, _PC_MAX_CANON);
  prconf(path, _PC_MAX_INPUT);
  prconf(path, _PC_NAME_MAX);
  prconf(path, _PC_PIPE_BUF);
  prconf(path, _PC_CHOWN_RESTRICTED);
  prconf(path, _PC_NO_TRUNC);
  if (argc > 2)
    printf("\n");
}


x86 assembly (clang, -O0):
<prconfall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e72(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e70(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e44(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2df8(%rip),%rax
mov    (%rax),%esi
call   1040 <prconf@plt>
cmpl   $0x2,-0xc(%rbp)
jle    11d7 <prconfall+0xb7>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prconfall>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xec1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <prconf@plt>
cmp    $0x3,%ebp
jl     11d5 <prconfall+0xa5>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <putchar@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"\22%s\22:\0A\00"
@_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_PIPE_BUF = global i32 0
@_PC_CHOWN_RESTRICTED = global i32 0
@_PC_NO_TRUNC = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
define void @prconfall(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %3
%8 = load i32, i32* @_PC_LINK_MAX
%9 = call i32 @prconf(i8* %7, i32 %8)
%10 = load i8*, i8** %3
%11 = load i32, i32* @_PC_MAX_CANON
%12 = call i32 @prconf(i8* %10, i32 %11)
%13 = load i8*, i8** %3
%14 = load i32, i32* @_PC_MAX_INPUT
%15 = call i32 @prconf(i8* %13, i32 %14)
%16 = load i8*, i8** %3
%17 = load i32, i32* @_PC_NAME_MAX
%18 = call i32 @prconf(i8* %16, i32 %17)
%19 = load i8*, i8** %3
%20 = load i32, i32* @_PC_PIPE_BUF
%21 = call i32 @prconf(i8* %19, i32 %20)
%22 = load i8*, i8** %3
%23 = load i32, i32* @_PC_CHOWN_RESTRICTED
%24 = call i32 @prconf(i8* %22, i32 %23)
%25 = load i8*, i8** %3
%26 = load i32, i32* @_PC_NO_TRUNC
%27 = call i32 @prconf(i8* %25, i32 %26)
%28 = load i32, i32* %4
%29 = icmp sgt i32 %28, 2
br i1 %29, label %30, label %32
30: ; preds = %2
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %32
32: ; preds = %30, %2
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"\22%s\22:\0A\00"
@_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_PIPE_BUF = global i32 0
@_PC_CHOWN_RESTRICTED = global i32 0
@_PC_NO_TRUNC = global i32 0
define void @prconfall(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @_PC_LINK_MAX
%5 = tail call i32 @prconf(i8* %0, i32 %4)
%6 = load i32, i32* @_PC_MAX_CANON
%7 = tail call i32 @prconf(i8* %0, i32 %6)
%8 = load i32, i32* @_PC_MAX_INPUT
%9 = tail call i32 @prconf(i8* %0, i32 %8)
%10 = load i32, i32* @_PC_NAME_MAX
%11 = tail call i32 @prconf(i8* %0, i32 %10)
%12 = load i32, i32* @_PC_PIPE_BUF
%13 = tail call i32 @prconf(i8* %0, i32 %12)
%14 = load i32, i32* @_PC_CHOWN_RESTRICTED
%15 = tail call i32 @prconf(i8* %0, i32 %14)
%16 = load i32, i32* @_PC_NO_TRUNC
%17 = tail call i32 @prconf(i8* %0, i32 %16)
%18 = icmp sgt i32 %1, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = tail call i32 @putchar(i32 10)
br label %21
21: ; preds = %19, %2
ret void
}