#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_FILESIZEBITS;
int /*<<< orphan*/ _PC_LINK_MAX;
int /*<<< orphan*/ _PC_MAX_CANON;
int /*<<< orphan*/ _PC_MAX_INPUT;
int /*<<< orphan*/ _PC_NAME_MAX;
int /*<<< orphan*/ _PC_PATH_MAX;
int /*<<< orphan*/ _PC_PIPE_BUF;
int /*<<< orphan*/ _PC_SYMLINK_MAX;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
long pathconf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "usage: pathconf path\n");
    return 0;
  }
  for (int i = 1; i < argc; i++) {
    printf("pathconf of \"%s\":\n", argv[i]);
    do {
      long val = pathconf(argv[i], _PC_FILESIZEBITS);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_FILESIZEBITS"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_FILESIZEBITS"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_LINK_MAX);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_LINK_MAX"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_LINK_MAX"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_MAX_CANON);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_MAX_CANON"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_MAX_CANON"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_MAX_INPUT);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_MAX_INPUT"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_MAX_INPUT"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_NAME_MAX);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_NAME_MAX"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_NAME_MAX"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_PATH_MAX);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_PATH_MAX"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_PATH_MAX"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_PIPE_BUF);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_PIPE_BUF"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_PIPE_BUF"
               " == %ld\n",
               val);
    } while (0);
    do {
      long val = pathconf(argv[i], _PC_SYMLINK_MAX);
      if (val == -1)
        fprintf(stderr,
                "Failed to get pathconf of \""
                "_PC_SYMLINK_MAX"
                "\" for path \"%s\": %s\n",
                argv[i], strerror(errno));
      else
        printf("_PC_SYMLINK_MAX"
               " == %ld\n",
               val);
    } while (0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1186 <main+0x46>
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    166a <main+0x52a>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1663 <main+0x523>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0xffffffffffffffff,-0x20(%rbp)
jne    1223 <main+0xe3>
mov    0x2ddd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x60(%rbp)
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1235 <main+0xf5>
mov    -0x20(%rbp),%rsi
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    123a <main+0xfa>
jmp    123f <main+0xff>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2d3e(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0xffffffffffffffff,-0x28(%rbp)
jne    12af <main+0x16f>
mov    0x2d51(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x70(%rbp)
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xddf(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    12c1 <main+0x181>
mov    -0x28(%rbp),%rsi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c6 <main+0x186>
jmp    12cb <main+0x18b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2cfa(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0xffffffffffffffff,-0x30(%rbp)
jne    1341 <main+0x201>
mov    0x2cc5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x80(%rbp)
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0x84(%rbp),%edi
mov    -0x80(%rbp),%rdx
mov    %rax,%rcx
lea    0xd9e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1353 <main+0x213>
mov    -0x30(%rbp),%rsi
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1358 <main+0x218>
jmp    135d <main+0x21d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2c78(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0xffffffffffffffff,-0x38(%rbp)
jne    13d9 <main+0x299>
mov    0x2c33(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x94(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x90(%rbp)
mov    0x2c09(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0x94(%rbp),%edi
mov    -0x90(%rbp),%rdx
mov    %rax,%rcx
lea    0xd59(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13eb <main+0x2ab>
mov    -0x38(%rbp),%rsi
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13f0 <main+0x2b0>
jmp    13f5 <main+0x2b5>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2b98(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0xffffffffffffffff,-0x40(%rbp)
jne    1471 <main+0x331>
mov    0x2b9b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2b71(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0xa4(%rbp),%edi
mov    -0xa0(%rbp),%rdx
mov    %rax,%rcx
lea    0xd14(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1483 <main+0x343>
mov    -0x40(%rbp),%rsi
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1488 <main+0x348>
jmp    148d <main+0x34d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2b28(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0xffffffffffffffff,-0x48(%rbp)
jne    1509 <main+0x3c9>
mov    0x2b03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2ad9(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0xb4(%rbp),%edi
mov    -0xb0(%rbp),%rdx
mov    %rax,%rcx
lea    0xccd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    151b <main+0x3db>
mov    -0x48(%rbp),%rsi
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1520 <main+0x3e0>
jmp    1525 <main+0x3e5>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2aa8(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0xffffffffffffffff,-0x50(%rbp)
jne    15a1 <main+0x461>
mov    0x2a6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2a41(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0xc4(%rbp),%edi
mov    -0xc0(%rbp),%rdx
mov    %rax,%rcx
lea    0xc86(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    15b3 <main+0x473>
mov    -0x50(%rbp),%rsi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15b8 <main+0x478>
jmp    15bd <main+0x47d>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x29e0(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0xffffffffffffffff,-0x58(%rbp)
jne    1639 <main+0x4f9>
mov    0x29d3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xd4(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xd0(%rbp)
mov    0x29a9(%rip),%rax
mov    (%rax),%edi
call   1060 <strerror@plt>
mov    -0xd4(%rbp),%edi
mov    -0xd0(%rbp),%rdx
mov    %rax,%rcx
lea    0xc3f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    164b <main+0x50b>
mov    -0x58(%rbp),%rsi
lea    0xc67(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1650 <main+0x510>
jmp    1655 <main+0x515>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    118d <main+0x4d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jge    1178 <main+0x38>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
lea    0xea0(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsi,%rbx
mov    %edi,%r12d
mov    $0x1,%r14d
mov    0x2e2d(%rip),%r13
jmp    11aa <main+0x6a>
nopl   (%rax)
lea    0x1114(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r12
je     1167 <main+0x27>
mov    (%rbx,%r14,8),%rsi
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2de1(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     11f0 <main+0xb0>
lea    0xe8e(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1224 <main+0xe4>
nopw   0x0(%rax,%rax,1)
mov    0x2dc9(%rip),%rax
mov    (%rax),%r15d
mov    %r12,%rbp
mov    (%rbx,%r14,8),%r12
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %r15d,%edi
lea    0xe15(%rip),%rsi
mov    %r12,%rdx
mov    %rbp,%r12
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2d61(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     1250 <main+0x110>
lea    0xe7b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    127c <main+0x13c>
nop
mov    0x2d69(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xe13(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2d51(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     12b0 <main+0x170>
lea    0xe75(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12dc <main+0x19c>
nopw   0x0(%rax,%rax,1)
mov    0x2d09(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xe04(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2d01(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     1310 <main+0x1d0>
lea    0xe68(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    133c <main+0x1fc>
nopw   0x0(%rax,%rax,1)
mov    0x2ca9(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xdf7(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2c59(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     1370 <main+0x230>
lea    0xe5a(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    139c <main+0x25c>
nopw   0x0(%rax,%rax,1)
mov    0x2c49(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xdea(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2c21(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     13d0 <main+0x290>
lea    0xe4b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    13fc <main+0x2bc>
nopw   0x0(%rax,%rax,1)
mov    0x2be9(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xddb(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2bd9(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
je     1430 <main+0x2f0>
lea    0xe3c(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    145c <main+0x31c>
nopw   0x0(%rax,%rax,1)
mov    0x2b89(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xdcc(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx,%r14,8),%rdi
mov    0x2b49(%rip),%rax
mov    (%rax),%esi
call   1030 <pathconf@plt>
cmp    $0xffffffffffffffff,%rax
jne    1190 <main+0x50>
mov    0x2b41(%rip),%rax
mov    (%rax),%ebp
mov    (%rbx,%r14,8),%r15
mov    0x0(%r13),%edi
call   1060 <strerror@plt>
mov    %ebp,%edi
lea    0xdd5(%rip),%rsi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    11a1 <main+0x61>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"usage: pathconf path\0A\00"
@.str.1 = [19 x i8] c"pathconf of \22%s\22:\0A\00"
@_PC_FILESIZEBITS = global i32 0
@.str.2 = [64 x i8] c"Failed to get pathconf of \22_PC_FILESIZEBITS\22 for path \22%s\22: %s\0A\00"
@errno = global i32 0
@.str.3 = [25 x i8] c"_PC_FILESIZEBITS == %ld\0A\00"
@_PC_LINK_MAX = global i32 0
@.str.4 = [60 x i8] c"Failed to get pathconf of \22_PC_LINK_MAX\22 for path \22%s\22: %s\0A\00"
@.str.5 = [21 x i8] c"_PC_LINK_MAX == %ld\0A\00"
@_PC_MAX_CANON = global i32 0
@.str.6 = [61 x i8] c"Failed to get pathconf of \22_PC_MAX_CANON\22 for path \22%s\22: %s\0A\00"
@.str.7 = [22 x i8] c"_PC_MAX_CANON == %ld\0A\00"
@_PC_MAX_INPUT = global i32 0
@.str.8 = [61 x i8] c"Failed to get pathconf of \22_PC_MAX_INPUT\22 for path \22%s\22: %s\0A\00"
@.str.9 = [22 x i8] c"_PC_MAX_INPUT == %ld\0A\00"
@_PC_NAME_MAX = global i32 0
@.str.10 = [60 x i8] c"Failed to get pathconf of \22_PC_NAME_MAX\22 for path \22%s\22: %s\0A\00"
@.str.11 = [21 x i8] c"_PC_NAME_MAX == %ld\0A\00"
@_PC_PATH_MAX = global i32 0
@.str.12 = [60 x i8] c"Failed to get pathconf of \22_PC_PATH_MAX\22 for path \22%s\22: %s\0A\00"
@.str.13 = [21 x i8] c"_PC_PATH_MAX == %ld\0A\00"
@_PC_PIPE_BUF = global i32 0
@.str.14 = [60 x i8] c"Failed to get pathconf of \22_PC_PIPE_BUF\22 for path \22%s\22: %s\0A\00"
@.str.15 = [21 x i8] c"_PC_PIPE_BUF == %ld\0A\00"
@_PC_SYMLINK_MAX = global i32 0
@.str.16 = [63 x i8] c"Failed to get pathconf of \22_PC_SYMLINK_MAX\22 for path \22%s\22: %s\0A\00"
@.str.17 = [24 x i8] c"_PC_SYMLINK_MAX == %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %236
20: ; preds = %2
store i32 1, i32* %6
br label %21
21: ; preds = %232, %20
%22 = load i32, i32* %6
%23 = load i32, i32* %4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %235
25: ; preds = %21
%26 = load i8**, i8*** %5
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %26, i64 %28
%30 = load i8*, i8** %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %30)
br label %32
32: ; preds = %25
%33 = load i8**, i8*** %5
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %33, i64 %35
%37 = load i8*, i8** %36
%38 = load i32, i32* @_PC_FILESIZEBITS
%39 = call i64 @pathconf(i8* %37, i32 %38)
store i64 %39, i64* %7
%40 = load i64, i64* %7
%41 = icmp eq i64 %40, -1
br i1 %41, label %42, label %52
42: ; preds = %32
%43 = load i32, i32* @stderr
%44 = load i8**, i8*** %5
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8*, i8** %44, i64 %46
%48 = load i8*, i8** %47
%49 = load i32, i32* @errno
%50 = call i8* @strerror(i32 %49)
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i8* %48, i8* %50)
br label %55
52: ; preds = %32
%53 = load i64, i64* %7
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 %53)
br label %55
55: ; preds = %52, %42
br label %56
56: ; preds = %55
br label %57
57: ; preds = %56
%58 = load i8**, i8*** %5
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = load i32, i32* @_PC_LINK_MAX
%64 = call i64 @pathconf(i8* %62, i32 %63)
store i64 %64, i64* %8
%65 = load i64, i64* %8
%66 = icmp eq i64 %65, -1
br i1 %66, label %67, label %77
67: ; preds = %57
%68 = load i32, i32* @stderr
%69 = load i8**, i8*** %5
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8*, i8** %69, i64 %71
%73 = load i8*, i8** %72
%74 = load i32, i32* @errno
%75 = call i8* @strerror(i32 %74)
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0), i8* %73, i8* %75)
br label %80
77: ; preds = %57
%78 = load i64, i64* %8
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i64 %78)
br label %80
80: ; preds = %77, %67
br label %81
81: ; preds = %80
br label %82
82: ; preds = %81
%83 = load i8**, i8*** %5
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %83, i64 %85
%87 = load i8*, i8** %86
%88 = load i32, i32* @_PC_MAX_CANON
%89 = call i64 @pathconf(i8* %87, i32 %88)
store i64 %89, i64* %9
%90 = load i64, i64* %9
%91 = icmp eq i64 %90, -1
br i1 %91, label %92, label %102
92: ; preds = %82
%93 = load i32, i32* @stderr
%94 = load i8**, i8*** %5
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8*, i8** %94, i64 %96
%98 = load i8*, i8** %97
%99 = load i32, i32* @errno
%100 = call i8* @strerror(i32 %99)
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i8* %98, i8* %100)
br label %105
102: ; preds = %82
%103 = load i64, i64* %9
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 %103)
br label %105
105: ; preds = %102, %92
br label %106
106: ; preds = %105
br label %107
107: ; preds = %106
%108 = load i8**, i8*** %5
%109 = load i32, i32* %6
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8*, i8** %108, i64 %110
%112 = load i8*, i8** %111
%113 = load i32, i32* @_PC_MAX_INPUT
%114 = call i64 @pathconf(i8* %112, i32 %113)
store i64 %114, i64* %10
%115 = load i64, i64* %10
%116 = icmp eq i64 %115, -1
br i1 %116, label %117, label %127
117: ; preds = %107
%118 = load i32, i32* @stderr
%119 = load i8**, i8*** %5
%120 = load i32, i32* %6
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8*, i8** %119, i64 %121
%123 = load i8*, i8** %122
%124 = load i32, i32* @errno
%125 = call i8* @strerror(i32 %124)
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i8* %123, i8* %125)
br label %130
127: ; preds = %107
%128 = load i64, i64* %10
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i64 %128)
br label %130
130: ; preds = %127, %117
br label %131
131: ; preds = %130
br label %132
132: ; preds = %131
%133 = load i8**, i8*** %5
%134 = load i32, i32* %6
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8*, i8** %133, i64 %135
%137 = load i8*, i8** %136
%138 = load i32, i32* @_PC_NAME_MAX
%139 = call i64 @pathconf(i8* %137, i32 %138)
store i64 %139, i64* %11
%140 = load i64, i64* %11
%141 = icmp eq i64 %140, -1
br i1 %141, label %142, label %152
142: ; preds = %132
%143 = load i32, i32* @stderr
%144 = load i8**, i8*** %5
%145 = load i32, i32* %6
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8*, i8** %144, i64 %146
%148 = load i8*, i8** %147
%149 = load i32, i32* @errno
%150 = call i8* @strerror(i32 %149)
%151 = call i32 (i32, i8*, ...) @fprintf(i32 %143, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0), i8* %148, i8* %150)
br label %155
152: ; preds = %132
%153 = load i64, i64* %11
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %153)
br label %155
155: ; preds = %152, %142
br label %156
156: ; preds = %155
br label %157
157: ; preds = %156
%158 = load i8**, i8*** %5
%159 = load i32, i32* %6
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8*, i8** %158, i64 %160
%162 = load i8*, i8** %161
%163 = load i32, i32* @_PC_PATH_MAX
%164 = call i64 @pathconf(i8* %162, i32 %163)
store i64 %164, i64* %12
%165 = load i64, i64* %12
%166 = icmp eq i64 %165, -1
br i1 %166, label %167, label %177
167: ; preds = %157
%168 = load i32, i32* @stderr
%169 = load i8**, i8*** %5
%170 = load i32, i32* %6
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8*, i8** %169, i64 %171
%173 = load i8*, i8** %172
%174 = load i32, i32* @errno
%175 = call i8* @strerror(i32 %174)
%176 = call i32 (i32, i8*, ...) @fprintf(i32 %168, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0), i8* %173, i8* %175)
br label %180
177: ; preds = %157
%178 = load i64, i64* %12
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i64 %178)
br label %180
180: ; preds = %177, %167
br label %181
181: ; preds = %180
br label %182
182: ; preds = %181
%183 = load i8**, i8*** %5
%184 = load i32, i32* %6
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8*, i8** %183, i64 %185
%187 = load i8*, i8** %186
%188 = load i32, i32* @_PC_PIPE_BUF
%189 = call i64 @pathconf(i8* %187, i32 %188)
store i64 %189, i64* %13
%190 = load i64, i64* %13
%191 = icmp eq i64 %190, -1
br i1 %191, label %192, label %202
192: ; preds = %182
%193 = load i32, i32* @stderr
%194 = load i8**, i8*** %5
%195 = load i32, i32* %6
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds i8*, i8** %194, i64 %196
%198 = load i8*, i8** %197
%199 = load i32, i32* @errno
%200 = call i8* @strerror(i32 %199)
%201 = call i32 (i32, i8*, ...) @fprintf(i32 %193, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0), i8* %198, i8* %200)
br label %205
202: ; preds = %182
%203 = load i64, i64* %13
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i64 %203)
br label %205
205: ; preds = %202, %192
br label %206
206: ; preds = %205
br label %207
207: ; preds = %206
%208 = load i8**, i8*** %5
%209 = load i32, i32* %6
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i8*, i8** %208, i64 %210
%212 = load i8*, i8** %211
%213 = load i32, i32* @_PC_SYMLINK_MAX
%214 = call i64 @pathconf(i8* %212, i32 %213)
store i64 %214, i64* %14
%215 = load i64, i64* %14
%216 = icmp eq i64 %215, -1
br i1 %216, label %217, label %227
217: ; preds = %207
%218 = load i32, i32* @stderr
%219 = load i8**, i8*** %5
%220 = load i32, i32* %6
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i8*, i8** %219, i64 %221
%223 = load i8*, i8** %222
%224 = load i32, i32* @errno
%225 = call i8* @strerror(i32 %224)
%226 = call i32 (i32, i8*, ...) @fprintf(i32 %218, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0), i8* %223, i8* %225)
br label %230
227: ; preds = %207
%228 = load i64, i64* %14
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i64 %228)
br label %230
230: ; preds = %227, %217
br label %231
231: ; preds = %230
br label %232
232: ; preds = %231
%233 = load i32, i32* %6
%234 = add nsw i32 %233, 1
store i32 %234, i32* %6
br label %21
235: ; preds = %21
store i32 0, i32* %3
br label %236
236: ; preds = %235, %17
%237 = load i32, i32* %3
ret i32 %237
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"usage: pathconf path\0A\00"
@.str.1 = [19 x i8] c"pathconf of \22%s\22:\0A\00"
@_PC_FILESIZEBITS = global i32 0
@.str.2 = [64 x i8] c"Failed to get pathconf of \22_PC_FILESIZEBITS\22 for path \22%s\22: %s\0A\00"
@errno = global i32 0
@.str.3 = [25 x i8] c"_PC_FILESIZEBITS == %ld\0A\00"
@_PC_LINK_MAX = global i32 0
@.str.4 = [60 x i8] c"Failed to get pathconf of \22_PC_LINK_MAX\22 for path \22%s\22: %s\0A\00"
@.str.5 = [21 x i8] c"_PC_LINK_MAX == %ld\0A\00"
@_PC_MAX_CANON = global i32 0
@.str.6 = [61 x i8] c"Failed to get pathconf of \22_PC_MAX_CANON\22 for path \22%s\22: %s\0A\00"
@.str.7 = [22 x i8] c"_PC_MAX_CANON == %ld\0A\00"
@_PC_MAX_INPUT = global i32 0
@.str.8 = [61 x i8] c"Failed to get pathconf of \22_PC_MAX_INPUT\22 for path \22%s\22: %s\0A\00"
@.str.9 = [22 x i8] c"_PC_MAX_INPUT == %ld\0A\00"
@_PC_NAME_MAX = global i32 0
@.str.10 = [60 x i8] c"Failed to get pathconf of \22_PC_NAME_MAX\22 for path \22%s\22: %s\0A\00"
@.str.11 = [21 x i8] c"_PC_NAME_MAX == %ld\0A\00"
@_PC_PATH_MAX = global i32 0
@.str.12 = [60 x i8] c"Failed to get pathconf of \22_PC_PATH_MAX\22 for path \22%s\22: %s\0A\00"
@.str.13 = [21 x i8] c"_PC_PATH_MAX == %ld\0A\00"
@_PC_PIPE_BUF = global i32 0
@.str.14 = [60 x i8] c"Failed to get pathconf of \22_PC_PIPE_BUF\22 for path \22%s\22: %s\0A\00"
@.str.15 = [21 x i8] c"_PC_PIPE_BUF == %ld\0A\00"
@_PC_SYMLINK_MAX = global i32 0
@.str.16 = [63 x i8] c"Failed to get pathconf of \22_PC_SYMLINK_MAX\22 for path \22%s\22: %s\0A\00"
@.str.17 = [24 x i8] c"_PC_SYMLINK_MAX == %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %9
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %120
9: ; preds = %4, %117
%10 = phi i64 [ 1, %4 ], [ %118, %117 ]
%11 = getelementptr inbounds i8*, i8** %1, i64 %10
%12 = load i8*, i8** %11
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** %11
%15 = load i32, i32* @_PC_FILESIZEBITS
%16 = tail call i64 @pathconf(i8* %14, i32 %15)
%17 = icmp eq i64 %16, -1
br i1 %17, label %18, label %24
18: ; preds = %9
%19 = load i32, i32* @stderr
%20 = load i8*, i8** %11
%21 = load i32, i32* @errno
%22 = tail call i8* @strerror(i32 %21)
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i8* %20, i8* %22)
br label %26
24: ; preds = %9
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 %16)
br label %26
26: ; preds = %24, %18
%27 = load i8*, i8** %11
%28 = load i32, i32* @_PC_LINK_MAX
%29 = tail call i64 @pathconf(i8* %27, i32 %28)
%30 = icmp eq i64 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %26
%32 = load i32, i32* @stderr
%33 = load i8*, i8** %11
%34 = load i32, i32* @errno
%35 = tail call i8* @strerror(i32 %34)
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0), i8* %33, i8* %35)
br label %39
37: ; preds = %26
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i64 %29)
br label %39
39: ; preds = %37, %31
%40 = load i8*, i8** %11
%41 = load i32, i32* @_PC_MAX_CANON
%42 = tail call i64 @pathconf(i8* %40, i32 %41)
%43 = icmp eq i64 %42, -1
br i1 %43, label %44, label %50
44: ; preds = %39
%45 = load i32, i32* @stderr
%46 = load i8*, i8** %11
%47 = load i32, i32* @errno
%48 = tail call i8* @strerror(i32 %47)
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i8* %46, i8* %48)
br label %52
50: ; preds = %39
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 %42)
br label %52
52: ; preds = %50, %44
%53 = load i8*, i8** %11
%54 = load i32, i32* @_PC_MAX_INPUT
%55 = tail call i64 @pathconf(i8* %53, i32 %54)
%56 = icmp eq i64 %55, -1
br i1 %56, label %57, label %63
57: ; preds = %52
%58 = load i32, i32* @stderr
%59 = load i8*, i8** %11
%60 = load i32, i32* @errno
%61 = tail call i8* @strerror(i32 %60)
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i8* %59, i8* %61)
br label %65
63: ; preds = %52
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i64 %55)
br label %65
65: ; preds = %63, %57
%66 = load i8*, i8** %11
%67 = load i32, i32* @_PC_NAME_MAX
%68 = tail call i64 @pathconf(i8* %66, i32 %67)
%69 = icmp eq i64 %68, -1
br i1 %69, label %70, label %76
70: ; preds = %65
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %11
%73 = load i32, i32* @errno
%74 = tail call i8* @strerror(i32 %73)
%75 = tail call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0), i8* %72, i8* %74)
br label %78
76: ; preds = %65
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i64 %68)
br label %78
78: ; preds = %76, %70
%79 = load i8*, i8** %11
%80 = load i32, i32* @_PC_PATH_MAX
%81 = tail call i64 @pathconf(i8* %79, i32 %80)
%82 = icmp eq i64 %81, -1
br i1 %82, label %83, label %89
83: ; preds = %78
%84 = load i32, i32* @stderr
%85 = load i8*, i8** %11
%86 = load i32, i32* @errno
%87 = tail call i8* @strerror(i32 %86)
%88 = tail call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0), i8* %85, i8* %87)
br label %91
89: ; preds = %78
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i64 %81)
br label %91
91: ; preds = %89, %83
%92 = load i8*, i8** %11
%93 = load i32, i32* @_PC_PIPE_BUF
%94 = tail call i64 @pathconf(i8* %92, i32 %93)
%95 = icmp eq i64 %94, -1
br i1 %95, label %96, label %102
96: ; preds = %91
%97 = load i32, i32* @stderr
%98 = load i8*, i8** %11
%99 = load i32, i32* @errno
%100 = tail call i8* @strerror(i32 %99)
%101 = tail call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0), i8* %98, i8* %100)
br label %104
102: ; preds = %91
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i64 %94)
br label %104
104: ; preds = %102, %96
%105 = load i8*, i8** %11
%106 = load i32, i32* @_PC_SYMLINK_MAX
%107 = tail call i64 @pathconf(i8* %105, i32 %106)
%108 = icmp eq i64 %107, -1
br i1 %108, label %109, label %115
109: ; preds = %104
%110 = load i32, i32* @stderr
%111 = load i8*, i8** %11
%112 = load i32, i32* @errno
%113 = tail call i8* @strerror(i32 %112)
%114 = tail call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0), i8* %111, i8* %113)
br label %117
115: ; preds = %104
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i64 %107)
br label %117
117: ; preds = %115, %109
%118 = add nuw nsw i64 %10, 1
%119 = icmp eq i64 %118, %5
br i1 %119, label %120, label %9
120: ; preds = %117, %6
ret i32 0
}