#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 EXIT_SUCCESS;
int /*<<< orphan*/ test_path_alloc();
int /*<<< orphan*/ test_path_alloc_copy();
int /*<<< orphan*/ test_path_alloc_with_abs_given_path();
int /*<<< orphan*/ test_path_alloc_with_relative_given_path();
int /*<<< orphan*/ test_path_alloc_with_root_working_dir();
int /*<<< orphan*/ test_path_compare_path();
int /*<<< orphan*/ test_path_equals_path();
int /*<<< orphan*/ test_path_is_under_path();
int main(int argc, char *argv[]) {
  test_path_alloc();
  test_path_alloc_copy();
  test_path_alloc_with_abs_given_path();
  test_path_alloc_with_relative_given_path();
  test_path_alloc_with_root_working_dir();
  test_path_compare_path();
  test_path_equals_path();
  test_path_is_under_path();
  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)
mov    $0x0,%al
call   1090 <test_path_alloc@plt>
mov    $0x0,%al
call   1030 <test_path_alloc_copy@plt>
mov    $0x0,%al
call   1050 <test_path_alloc_with_abs_given_path@plt>
mov    $0x0,%al
call   1060 <test_path_alloc_with_relative_given_path@plt>
mov    $0x0,%al
call   1040 <test_path_alloc_with_root_working_dir@plt>
mov    $0x0,%al
call   1080 <test_path_compare_path@plt>
mov    $0x0,%al
call   1070 <test_path_equals_path@plt>
mov    $0x0,%al
call   10a0 <test_path_is_under_path@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1090 <test_path_alloc@plt>
xor    %eax,%eax
call   1030 <test_path_alloc_copy@plt>
xor    %eax,%eax
call   1050 <test_path_alloc_with_abs_given_path@plt>
xor    %eax,%eax
call   1060 <test_path_alloc_with_relative_given_path@plt>
xor    %eax,%eax
call   1040 <test_path_alloc_with_root_working_dir@plt>
xor    %eax,%eax
call   1080 <test_path_compare_path@plt>
xor    %eax,%eax
call   1070 <test_path_equals_path@plt>
xor    %eax,%eax
call   10a0 <test_path_is_under_path@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@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 = call i32 (...) @test_path_alloc()
%7 = call i32 (...) @test_path_alloc_copy()
%8 = call i32 (...) @test_path_alloc_with_abs_given_path()
%9 = call i32 (...) @test_path_alloc_with_relative_given_path()
%10 = call i32 (...) @test_path_alloc_with_root_working_dir()
%11 = call i32 (...) @test_path_compare_path()
%12 = call i32 (...) @test_path_equals_path()
%13 = call i32 (...) @test_path_is_under_path()
%14 = load i32, i32* @EXIT_SUCCESS
ret i32 %14
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_path_alloc()
%4 = tail call i32 (...) @test_path_alloc_copy()
%5 = tail call i32 (...) @test_path_alloc_with_abs_given_path()
%6 = tail call i32 (...) @test_path_alloc_with_relative_given_path()
%7 = tail call i32 (...) @test_path_alloc_with_root_working_dir()
%8 = tail call i32 (...) @test_path_compare_path()
%9 = tail call i32 (...) @test_path_equals_path()
%10 = tail call i32 (...) @test_path_is_under_path()
%11 = load i32, i32* @EXIT_SUCCESS
ret i32 %11
}