#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_fd_bad_desc();
int /*<<< orphan*/ test_fd_copy();
int /*<<< orphan*/ test_fd_devnull();
int /*<<< orphan*/ test_fd_dup();
int /*<<< orphan*/ test_fd_multidesc();
int /*<<< orphan*/ test_fd_open_path();
int /*<<< orphan*/ test_fd_pipe();
int /*<<< orphan*/ test_fd_read();
int /*<<< orphan*/ test_fd_readv();
int /*<<< orphan*/ test_fd_readwrite();
int /*<<< orphan*/ test_fd_writev();
int test_fd_all(void) {
  test_fd_read();
  test_fd_readv();
  test_fd_writev();
  test_fd_devnull();
  test_fd_multidesc();
  test_fd_readwrite();
  test_fd_copy();
  test_fd_bad_desc();
  test_fd_open_path();
  test_fd_pipe();
  test_fd_dup();
  return 0;
}


x86 assembly (clang, -O0):
<test_fd_all>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <test_fd_read@plt>
mov    $0x0,%al
call   1040 <test_fd_readv@plt>
mov    $0x0,%al
call   1080 <test_fd_writev@plt>
mov    $0x0,%al
call   1070 <test_fd_devnull@plt>
mov    $0x0,%al
call   10b0 <test_fd_multidesc@plt>
mov    $0x0,%al
call   10a0 <test_fd_readwrite@plt>
mov    $0x0,%al
call   1060 <test_fd_copy@plt>
mov    $0x0,%al
call   10c0 <test_fd_bad_desc@plt>
mov    $0x0,%al
call   10d0 <test_fd_open_path@plt>
mov    $0x0,%al
call   1030 <test_fd_pipe@plt>
mov    $0x0,%al
call   1090 <test_fd_dup@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_fd_all>:
push   %rax
xor    %eax,%eax
call   1050 <test_fd_read@plt>
xor    %eax,%eax
call   1040 <test_fd_readv@plt>
xor    %eax,%eax
call   1080 <test_fd_writev@plt>
xor    %eax,%eax
call   1070 <test_fd_devnull@plt>
xor    %eax,%eax
call   10b0 <test_fd_multidesc@plt>
xor    %eax,%eax
call   10a0 <test_fd_readwrite@plt>
xor    %eax,%eax
call   1060 <test_fd_copy@plt>
xor    %eax,%eax
call   10c0 <test_fd_bad_desc@plt>
xor    %eax,%eax
call   10d0 <test_fd_open_path@plt>
xor    %eax,%eax
call   1030 <test_fd_pipe@plt>
xor    %eax,%eax
call   1090 <test_fd_dup@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @test_fd_all() {
%1 = call i32 (...) @test_fd_read()
%2 = call i32 (...) @test_fd_readv()
%3 = call i32 (...) @test_fd_writev()
%4 = call i32 (...) @test_fd_devnull()
%5 = call i32 (...) @test_fd_multidesc()
%6 = call i32 (...) @test_fd_readwrite()
%7 = call i32 (...) @test_fd_copy()
%8 = call i32 (...) @test_fd_bad_desc()
%9 = call i32 (...) @test_fd_open_path()
%10 = call i32 (...) @test_fd_pipe()
%11 = call i32 (...) @test_fd_dup()
ret i32 0
}

LLVM IR (-O2):
define i32 @test_fd_all() {
%1 = tail call i32 (...) @test_fd_read()
%2 = tail call i32 (...) @test_fd_readv()
%3 = tail call i32 (...) @test_fd_writev()
%4 = tail call i32 (...) @test_fd_devnull()
%5 = tail call i32 (...) @test_fd_multidesc()
%6 = tail call i32 (...) @test_fd_readwrite()
%7 = tail call i32 (...) @test_fd_copy()
%8 = tail call i32 (...) @test_fd_bad_desc()
%9 = tail call i32 (...) @test_fd_open_path()
%10 = tail call i32 (...) @test_fd_pipe()
%11 = tail call i32 (...) @test_fd_dup()
ret i32 0
}