#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*/ test_close();
int /*<<< orphan*/ test_fstat();
int /*<<< orphan*/ test_isatty();
int /*<<< orphan*/ test_lseek();
int /*<<< orphan*/ test_open();
int /*<<< orphan*/ test_read();
int /*<<< orphan*/ test_rename();
int /*<<< orphan*/ test_stat();
int /*<<< orphan*/ test_system();
int /*<<< orphan*/ test_time();
int /*<<< orphan*/ test_unlink();
int /*<<< orphan*/ test_write();
int main() {
  test_open();
  test_write();
  test_read();
  test_lseek();
  test_close();
  test_stat();
  test_fstat();
  test_isatty();
  test_system();
  test_rename();
  test_unlink();
  test_time();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10e0 <test_open@plt>
mov    $0x0,%al
call   1030 <test_write@plt>
mov    $0x0,%al
call   1070 <test_read@plt>
mov    $0x0,%al
call   1080 <test_lseek@plt>
mov    $0x0,%al
call   1060 <test_close@plt>
mov    $0x0,%al
call   10d0 <test_stat@plt>
mov    $0x0,%al
call   1040 <test_fstat@plt>
mov    $0x0,%al
call   10a0 <test_isatty@plt>
mov    $0x0,%al
call   10b0 <test_system@plt>
mov    $0x0,%al
call   10c0 <test_rename@plt>
mov    $0x0,%al
call   1050 <test_unlink@plt>
mov    $0x0,%al
call   1090 <test_time@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10e0 <test_open@plt>
xor    %eax,%eax
call   1030 <test_write@plt>
xor    %eax,%eax
call   1070 <test_read@plt>
xor    %eax,%eax
call   1080 <test_lseek@plt>
xor    %eax,%eax
call   1060 <test_close@plt>
xor    %eax,%eax
call   10d0 <test_stat@plt>
xor    %eax,%eax
call   1040 <test_fstat@plt>
xor    %eax,%eax
call   10a0 <test_isatty@plt>
xor    %eax,%eax
call   10b0 <test_system@plt>
xor    %eax,%eax
call   10c0 <test_rename@plt>
xor    %eax,%eax
call   1050 <test_unlink@plt>
xor    %eax,%eax
call   1090 <test_time@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_open()
%3 = call i32 (...) @test_write()
%4 = call i32 (...) @test_read()
%5 = call i32 (...) @test_lseek()
%6 = call i32 (...) @test_close()
%7 = call i32 (...) @test_stat()
%8 = call i32 (...) @test_fstat()
%9 = call i32 (...) @test_isatty()
%10 = call i32 (...) @test_system()
%11 = call i32 (...) @test_rename()
%12 = call i32 (...) @test_unlink()
%13 = call i32 (...) @test_time()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_open()
%2 = tail call i32 (...) @test_write()
%3 = tail call i32 (...) @test_read()
%4 = tail call i32 (...) @test_lseek()
%5 = tail call i32 (...) @test_close()
%6 = tail call i32 (...) @test_stat()
%7 = tail call i32 (...) @test_fstat()
%8 = tail call i32 (...) @test_isatty()
%9 = tail call i32 (...) @test_system()
%10 = tail call i32 (...) @test_rename()
%11 = tail call i32 (...) @test_unlink()
%12 = tail call i32 (...) @test_time()
ret i32 0
}