#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*/ cm_search_array_binary__element_does_not_exist__not_found();
int /*<<< orphan*/ cm_search_array_binary__element_exists__is_found();
int /*<<< orphan*/
cm_search_array_improved_binary__element_does_not_exist__not_found();
int /*<<< orphan*/ cm_search_array_improved_binary__element_exists__is_found();
int /*<<< orphan*/
cm_search_array_interpolation__element_does_not_exist__not_found();
int /*<<< orphan*/ cm_search_array_interpolation__element_exists__is_found();
int /*<<< orphan*/ cm_search_array_linear__element_does_not_exist__not_found();
int /*<<< orphan*/ cm_search_array_linear__element_exists__is_found();
int /*<<< orphan*/
cm_search_array_sentinel_linear__element_does_not_exist__not_found();
int /*<<< orphan*/ cm_search_array_sentinel_linear__element_exists__is_found();
void cm_searching_run_tests(void) {
  cm_search_array_linear__element_exists__is_found();
  cm_search_array_sentinel_linear__element_exists__is_found();
  cm_search_array_binary__element_exists__is_found();
  cm_search_array_improved_binary__element_exists__is_found();
  cm_search_array_interpolation__element_exists__is_found();
  cm_search_array_linear__element_does_not_exist__not_found();
  cm_search_array_sentinel_linear__element_does_not_exist__not_found();
  cm_search_array_binary__element_does_not_exist__not_found();
  cm_search_array_improved_binary__element_does_not_exist__not_found();
  cm_search_array_interpolation__element_does_not_exist__not_found();
}


x86 assembly (clang, -O0):
<cm_searching_run_tests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <cm_search_array_linear__element_exists__is_found@plt>
mov    $0x0,%al
call   1070 <cm_search_array_sentinel_linear__element_exists__is_found@plt>
mov    $0x0,%al
call   1040 <cm_search_array_binary__element_exists__is_found@plt>
mov    $0x0,%al
call   1080 <cm_search_array_improved_binary__element_exists__is_found@plt>
mov    $0x0,%al
call   10c0 <cm_search_array_interpolation__element_exists__is_found@plt>
mov    $0x0,%al
call   1050 <cm_search_array_linear__element_does_not_exist__not_found@plt>
mov    $0x0,%al
call   10a0 <cm_search_array_sentinel_linear__element_does_not_exist__not_found@plt>
mov    $0x0,%al
call   10b0 <cm_search_array_binary__element_does_not_exist__not_found@plt>
mov    $0x0,%al
call   1090 <cm_search_array_improved_binary__element_does_not_exist__not_found@plt>
mov    $0x0,%al
call   1030 <cm_search_array_interpolation__element_does_not_exist__not_found@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cm_searching_run_tests>:
push   %rax
xor    %eax,%eax
call   1060 <cm_search_array_linear__element_exists__is_found@plt>
xor    %eax,%eax
call   1070 <cm_search_array_sentinel_linear__element_exists__is_found@plt>
xor    %eax,%eax
call   1040 <cm_search_array_binary__element_exists__is_found@plt>
xor    %eax,%eax
call   1080 <cm_search_array_improved_binary__element_exists__is_found@plt>
xor    %eax,%eax
call   10c0 <cm_search_array_interpolation__element_exists__is_found@plt>
xor    %eax,%eax
call   1050 <cm_search_array_linear__element_does_not_exist__not_found@plt>
xor    %eax,%eax
call   10a0 <cm_search_array_sentinel_linear__element_does_not_exist__not_found@plt>
xor    %eax,%eax
call   10b0 <cm_search_array_binary__element_does_not_exist__not_found@plt>
xor    %eax,%eax
call   1090 <cm_search_array_improved_binary__element_does_not_exist__not_found@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <cm_search_array_interpolation__element_does_not_exist__not_found@plt>

LLVM IR (-O0):
define void @cm_searching_run_tests() {
%1 = call i32 (...) @cm_search_array_linear__element_exists__is_found()
%2 = call i32 (...) @cm_search_array_sentinel_linear__element_exists__is_found()
%3 = call i32 (...) @cm_search_array_binary__element_exists__is_found()
%4 = call i32 (...) @cm_search_array_improved_binary__element_exists__is_found()
%5 = call i32 (...) @cm_search_array_interpolation__element_exists__is_found()
%6 = call i32 (...) @cm_search_array_linear__element_does_not_exist__not_found()
%7 = call i32 (...) @cm_search_array_sentinel_linear__element_does_not_exist__not_found()
%8 = call i32 (...) @cm_search_array_binary__element_does_not_exist__not_found()
%9 = call i32 (...) @cm_search_array_improved_binary__element_does_not_exist__not_found()
%10 = call i32 (...) @cm_search_array_interpolation__element_does_not_exist__not_found()
ret void
}

LLVM IR (-O2):
define void @cm_searching_run_tests() {
%1 = tail call i32 (...) @cm_search_array_linear__element_exists__is_found()
%2 = tail call i32 (...) @cm_search_array_sentinel_linear__element_exists__is_found()
%3 = tail call i32 (...) @cm_search_array_binary__element_exists__is_found()
%4 = tail call i32 (...) @cm_search_array_improved_binary__element_exists__is_found()
%5 = tail call i32 (...) @cm_search_array_interpolation__element_exists__is_found()
%6 = tail call i32 (...) @cm_search_array_linear__element_does_not_exist__not_found()
%7 = tail call i32 (...) @cm_search_array_sentinel_linear__element_does_not_exist__not_found()
%8 = tail call i32 (...) @cm_search_array_binary__element_does_not_exist__not_found()
%9 = tail call i32 (...) @cm_search_array_improved_binary__element_does_not_exist__not_found()
%10 = tail call i32 (...) @cm_search_array_interpolation__element_does_not_exist__not_found()
ret void
}