#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_callback();
int /*<<< orphan*/ test_hb_write_take();
int /*<<< orphan*/ test_init_buffer();
int /*<<< orphan*/ test_new_channel();
int /*<<< orphan*/ test_new_dummy_channel();
int /*<<< orphan*/ test_priority_queue_write_take();
int /*<<< orphan*/ test_rb_take_success();
int /*<<< orphan*/ test_rb_write_success();
int /*<<< orphan*/ test_rb_write_take_full_failure();
int /*<<< orphan*/ test_select();
int /*<<< orphan*/ test_take_put_timeouts();
int /*<<< orphan*/ test_threaded_take_put();
int /*<<< orphan*/ test_timed_select();
int /*<<< orphan*/ test_try_take_put();
int main(int argc, char **argv) {
  (void)argc;
  (void)argv;
  test_init_buffer();
  test_rb_write_success();
  test_rb_take_success();
  test_rb_write_take_full_failure();
  test_new_channel();
  test_new_dummy_channel();
  test_threaded_take_put();
  test_take_put_timeouts();
  test_hb_write_take();
  test_priority_queue_write_take();
  test_callback();
  test_select();
  test_timed_select();
  test_try_take_put();
  return 0;
}


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   1050 <test_init_buffer@plt>
mov    $0x0,%al
call   1040 <test_rb_write_success@plt>
mov    $0x0,%al
call   1030 <test_rb_take_success@plt>
mov    $0x0,%al
call   1060 <test_rb_write_take_full_failure@plt>
mov    $0x0,%al
call   1100 <test_new_channel@plt>
mov    $0x0,%al
call   10a0 <test_new_dummy_channel@plt>
mov    $0x0,%al
call   1080 <test_threaded_take_put@plt>
mov    $0x0,%al
call   10b0 <test_take_put_timeouts@plt>
mov    $0x0,%al
call   10f0 <test_hb_write_take@plt>
mov    $0x0,%al
call   10c0 <test_priority_queue_write_take@plt>
mov    $0x0,%al
call   10e0 <test_callback@plt>
mov    $0x0,%al
call   1090 <test_select@plt>
mov    $0x0,%al
call   1070 <test_timed_select@plt>
mov    $0x0,%al
call   10d0 <test_try_take_put@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test_init_buffer@plt>
xor    %eax,%eax
call   1040 <test_rb_write_success@plt>
xor    %eax,%eax
call   1030 <test_rb_take_success@plt>
xor    %eax,%eax
call   1060 <test_rb_write_take_full_failure@plt>
xor    %eax,%eax
call   1100 <test_new_channel@plt>
xor    %eax,%eax
call   10a0 <test_new_dummy_channel@plt>
xor    %eax,%eax
call   1080 <test_threaded_take_put@plt>
xor    %eax,%eax
call   10b0 <test_take_put_timeouts@plt>
xor    %eax,%eax
call   10f0 <test_hb_write_take@plt>
xor    %eax,%eax
call   10c0 <test_priority_queue_write_take@plt>
xor    %eax,%eax
call   10e0 <test_callback@plt>
xor    %eax,%eax
call   1090 <test_select@plt>
xor    %eax,%eax
call   1070 <test_timed_select@plt>
xor    %eax,%eax
call   10d0 <test_try_take_put@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 (...) @test_init_buffer()
%9 = call i32 (...) @test_rb_write_success()
%10 = call i32 (...) @test_rb_take_success()
%11 = call i32 (...) @test_rb_write_take_full_failure()
%12 = call i32 (...) @test_new_channel()
%13 = call i32 (...) @test_new_dummy_channel()
%14 = call i32 (...) @test_threaded_take_put()
%15 = call i32 (...) @test_take_put_timeouts()
%16 = call i32 (...) @test_hb_write_take()
%17 = call i32 (...) @test_priority_queue_write_take()
%18 = call i32 (...) @test_callback()
%19 = call i32 (...) @test_select()
%20 = call i32 (...) @test_timed_select()
%21 = call i32 (...) @test_try_take_put()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_init_buffer()
%4 = tail call i32 (...) @test_rb_write_success()
%5 = tail call i32 (...) @test_rb_take_success()
%6 = tail call i32 (...) @test_rb_write_take_full_failure()
%7 = tail call i32 (...) @test_new_channel()
%8 = tail call i32 (...) @test_new_dummy_channel()
%9 = tail call i32 (...) @test_threaded_take_put()
%10 = tail call i32 (...) @test_take_put_timeouts()
%11 = tail call i32 (...) @test_hb_write_take()
%12 = tail call i32 (...) @test_priority_queue_write_take()
%13 = tail call i32 (...) @test_callback()
%14 = tail call i32 (...) @test_select()
%15 = tail call i32 (...) @test_timed_select()
%16 = tail call i32 (...) @test_try_take_put()
ret i32 0
}