#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_alloc_fake_ascending();
int /*<<< orphan*/ test_alloc_fake_fixed();
int /*<<< orphan*/ test_alloc_fake_max();
int /*<<< orphan*/ test_alloc_fake_median();
int /*<<< orphan*/ test_alloc_fake_min();
int /*<<< orphan*/ test_alloc_jrand48();
int /*<<< orphan*/ test_alloc_mrand48();
int /*<<< orphan*/ test_global_rnd();
int /*<<< orphan*/ test_rnd_alloc();
int /*<<< orphan*/ test_rnd_shuffle();
int main(int argc, char const *argv[]) {
  test_global_rnd();
  test_rnd_alloc();
  test_alloc_jrand48();
  test_alloc_mrand48();
  test_alloc_fake_min();
  test_alloc_fake_median();
  test_alloc_fake_max();
  test_alloc_fake_fixed();
  test_alloc_fake_ascending();
  test_rnd_shuffle();
  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   10a0 <test_global_rnd@plt>
mov    $0x0,%al
call   10b0 <test_rnd_alloc@plt>
mov    $0x0,%al
call   1050 <test_alloc_jrand48@plt>
mov    $0x0,%al
call   1060 <test_alloc_mrand48@plt>
mov    $0x0,%al
call   1090 <test_alloc_fake_min@plt>
mov    $0x0,%al
call   1040 <test_alloc_fake_median@plt>
mov    $0x0,%al
call   1070 <test_alloc_fake_max@plt>
mov    $0x0,%al
call   1030 <test_alloc_fake_fixed@plt>
mov    $0x0,%al
call   1080 <test_alloc_fake_ascending@plt>
mov    $0x0,%al
call   10c0 <test_rnd_shuffle@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10a0 <test_global_rnd@plt>
xor    %eax,%eax
call   10b0 <test_rnd_alloc@plt>
xor    %eax,%eax
call   1050 <test_alloc_jrand48@plt>
xor    %eax,%eax
call   1060 <test_alloc_mrand48@plt>
xor    %eax,%eax
call   1090 <test_alloc_fake_min@plt>
xor    %eax,%eax
call   1040 <test_alloc_fake_median@plt>
xor    %eax,%eax
call   1070 <test_alloc_fake_max@plt>
xor    %eax,%eax
call   1030 <test_alloc_fake_fixed@plt>
xor    %eax,%eax
call   1080 <test_alloc_fake_ascending@plt>
xor    %eax,%eax
call   10c0 <test_rnd_shuffle@plt>
mov    0x2df2(%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_global_rnd()
%7 = call i32 (...) @test_rnd_alloc()
%8 = call i32 (...) @test_alloc_jrand48()
%9 = call i32 (...) @test_alloc_mrand48()
%10 = call i32 (...) @test_alloc_fake_min()
%11 = call i32 (...) @test_alloc_fake_median()
%12 = call i32 (...) @test_alloc_fake_max()
%13 = call i32 (...) @test_alloc_fake_fixed()
%14 = call i32 (...) @test_alloc_fake_ascending()
%15 = call i32 (...) @test_rnd_shuffle()
%16 = load i32, i32* @EXIT_SUCCESS
ret i32 %16
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_global_rnd()
%4 = tail call i32 (...) @test_rnd_alloc()
%5 = tail call i32 (...) @test_alloc_jrand48()
%6 = tail call i32 (...) @test_alloc_mrand48()
%7 = tail call i32 (...) @test_alloc_fake_min()
%8 = tail call i32 (...) @test_alloc_fake_median()
%9 = tail call i32 (...) @test_alloc_fake_max()
%10 = tail call i32 (...) @test_alloc_fake_fixed()
%11 = tail call i32 (...) @test_alloc_fake_ascending()
%12 = tail call i32 (...) @test_rnd_shuffle()
%13 = load i32, i32* @EXIT_SUCCESS
ret i32 %13
}