#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*/ _ensure_pool_cleanup_gracefully_handles_cleaned_up_pool();
int /*<<< orphan*/ _ensure_pool_cleanup_gracefully_handles_null_pool();
int /*<<< orphan*/ _ensure_pool_cleanup_releases_underlying_buffer();
int /*<<< orphan*/ _ensure_pool_delete_gracefully_handles_cleaned_up_pool();
int /*<<< orphan*/ _ensure_pool_delete_gracefully_handles_null_pool();
int /*<<< orphan*/ _ensure_pool_delete_releases_all_allocated_memory();
int /*<<< orphan*/ _ensure_pool_init_gracefully_copes_when_out_of_memory();
int /*<<< orphan*/ _ensure_pool_init_gracefully_handles_null_pool();
int /*<<< orphan*/
_ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool();
int /*<<< orphan*/
_ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool();
int /*<<< orphan*/ _ensure_pool_is_empty_gracefully_handles_cleaned_up_pool();
int /*<<< orphan*/ _ensure_pool_is_empty_gracefully_handles_null_pool();
int /*<<< orphan*/
_ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool();
int /*<<< orphan*/
_ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool();
int /*<<< orphan*/ _ensure_pool_new_returns_initialised_pool();
int /*<<< orphan*/ _ensure_pool_new_returns_null_when_no_more_memory();
int /*<<< orphan*/
_ensure_pool_return_gracefully_handles_address_already_returned();
int /*<<< orphan*/ _ensure_pool_return_gracefully_handles_address_not_in_pool();
int /*<<< orphan*/ _ensure_pool_return_gracefully_handles_cleaned_up_pool();
int /*<<< orphan*/ _ensure_pool_take_gracefully_handles_cleaned_up_pool();
int /*<<< orphan*/ _ensure_pool_take_gracefully_handles_null_pool();
int /*<<< orphan*/ _ensure_pool_take_returns_null_when_empty();
int /*<<< orphan*/ _ensure_pool_take_returns_object_when_not_empty();
int /*<<< orphan*/ _ensure_pool_take_reuses_returned_elements();
int main(int argc, char *argv[]) {
  (void)(argc);
  (void)(argv);
  _ensure_pool_new_returns_initialised_pool();
  _ensure_pool_new_returns_null_when_no_more_memory();
  _ensure_pool_delete_releases_all_allocated_memory();
  _ensure_pool_delete_gracefully_handles_null_pool();
  _ensure_pool_delete_gracefully_handles_cleaned_up_pool();
  _ensure_pool_init_gracefully_handles_null_pool();
  _ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool();
  _ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool();
  _ensure_pool_init_gracefully_copes_when_out_of_memory();
  _ensure_pool_cleanup_releases_underlying_buffer();
  _ensure_pool_cleanup_gracefully_handles_null_pool();
  _ensure_pool_cleanup_gracefully_handles_cleaned_up_pool();
  _ensure_pool_take_returns_object_when_not_empty();
  _ensure_pool_take_returns_null_when_empty();
  _ensure_pool_take_gracefully_handles_null_pool();
  _ensure_pool_take_gracefully_handles_cleaned_up_pool();
  _ensure_pool_take_reuses_returned_elements();
  _ensure_pool_return_gracefully_handles_address_already_returned();
  _ensure_pool_return_gracefully_handles_cleaned_up_pool();
  _ensure_pool_return_gracefully_handles_address_not_in_pool();
  _ensure_pool_is_empty_gracefully_handles_null_pool();
  _ensure_pool_is_empty_gracefully_handles_cleaned_up_pool();
  _ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool();
  _ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool();
  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   1040 <_ensure_pool_new_returns_initialised_pool@plt>
mov    $0x0,%al
call   10f0 <_ensure_pool_new_returns_null_when_no_more_memory@plt>
mov    $0x0,%al
call   1080 <_ensure_pool_delete_releases_all_allocated_memory@plt>
mov    $0x0,%al
call   1130 <_ensure_pool_delete_gracefully_handles_null_pool@plt>
mov    $0x0,%al
call   1180 <_ensure_pool_delete_gracefully_handles_cleaned_up_pool@plt>
mov    $0x0,%al
call   10e0 <_ensure_pool_init_gracefully_handles_null_pool@plt>
mov    $0x0,%al
call   10c0 <_ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool@plt>
mov    $0x0,%al
call   1060 <_ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool@plt>
mov    $0x0,%al
call   1100 <_ensure_pool_init_gracefully_copes_when_out_of_memory@plt>
mov    $0x0,%al
call   1110 <_ensure_pool_cleanup_releases_underlying_buffer@plt>
mov    $0x0,%al
call   11a0 <_ensure_pool_cleanup_gracefully_handles_null_pool@plt>
mov    $0x0,%al
call   1190 <_ensure_pool_cleanup_gracefully_handles_cleaned_up_pool@plt>
mov    $0x0,%al
call   10a0 <_ensure_pool_take_returns_object_when_not_empty@plt>
mov    $0x0,%al
call   1140 <_ensure_pool_take_returns_null_when_empty@plt>
mov    $0x0,%al
call   10b0 <_ensure_pool_take_gracefully_handles_null_pool@plt>
mov    $0x0,%al
call   1170 <_ensure_pool_take_gracefully_handles_cleaned_up_pool@plt>
mov    $0x0,%al
call   1030 <_ensure_pool_take_reuses_returned_elements@plt>
mov    $0x0,%al
call   1050 <_ensure_pool_return_gracefully_handles_address_already_returned@plt>
mov    $0x0,%al
call   10d0 <_ensure_pool_return_gracefully_handles_cleaned_up_pool@plt>
mov    $0x0,%al
call   1070 <_ensure_pool_return_gracefully_handles_address_not_in_pool@plt>
mov    $0x0,%al
call   1160 <_ensure_pool_is_empty_gracefully_handles_null_pool@plt>
mov    $0x0,%al
call   1120 <_ensure_pool_is_empty_gracefully_handles_cleaned_up_pool@plt>
mov    $0x0,%al
call   1150 <_ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool@plt>
mov    $0x0,%al
call   1090 <_ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <_ensure_pool_new_returns_initialised_pool@plt>
xor    %eax,%eax
call   10f0 <_ensure_pool_new_returns_null_when_no_more_memory@plt>
xor    %eax,%eax
call   1080 <_ensure_pool_delete_releases_all_allocated_memory@plt>
xor    %eax,%eax
call   1130 <_ensure_pool_delete_gracefully_handles_null_pool@plt>
xor    %eax,%eax
call   1180 <_ensure_pool_delete_gracefully_handles_cleaned_up_pool@plt>
xor    %eax,%eax
call   10e0 <_ensure_pool_init_gracefully_handles_null_pool@plt>
xor    %eax,%eax
call   10c0 <_ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool@plt>
xor    %eax,%eax
call   1060 <_ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool@plt>
xor    %eax,%eax
call   1100 <_ensure_pool_init_gracefully_copes_when_out_of_memory@plt>
xor    %eax,%eax
call   1110 <_ensure_pool_cleanup_releases_underlying_buffer@plt>
xor    %eax,%eax
call   11a0 <_ensure_pool_cleanup_gracefully_handles_null_pool@plt>
xor    %eax,%eax
call   1190 <_ensure_pool_cleanup_gracefully_handles_cleaned_up_pool@plt>
xor    %eax,%eax
call   10a0 <_ensure_pool_take_returns_object_when_not_empty@plt>
xor    %eax,%eax
call   1140 <_ensure_pool_take_returns_null_when_empty@plt>
xor    %eax,%eax
call   10b0 <_ensure_pool_take_gracefully_handles_null_pool@plt>
xor    %eax,%eax
call   1170 <_ensure_pool_take_gracefully_handles_cleaned_up_pool@plt>
xor    %eax,%eax
call   1030 <_ensure_pool_take_reuses_returned_elements@plt>
xor    %eax,%eax
call   1050 <_ensure_pool_return_gracefully_handles_address_already_returned@plt>
xor    %eax,%eax
call   10d0 <_ensure_pool_return_gracefully_handles_cleaned_up_pool@plt>
xor    %eax,%eax
call   1070 <_ensure_pool_return_gracefully_handles_address_not_in_pool@plt>
xor    %eax,%eax
call   1160 <_ensure_pool_is_empty_gracefully_handles_null_pool@plt>
xor    %eax,%eax
call   1120 <_ensure_pool_is_empty_gracefully_handles_cleaned_up_pool@plt>
xor    %eax,%eax
call   1150 <_ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool@plt>
xor    %eax,%eax
call   1090 <_ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool@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 (...) @_ensure_pool_new_returns_initialised_pool()
%9 = call i32 (...) @_ensure_pool_new_returns_null_when_no_more_memory()
%10 = call i32 (...) @_ensure_pool_delete_releases_all_allocated_memory()
%11 = call i32 (...) @_ensure_pool_delete_gracefully_handles_null_pool()
%12 = call i32 (...) @_ensure_pool_delete_gracefully_handles_cleaned_up_pool()
%13 = call i32 (...) @_ensure_pool_init_gracefully_handles_null_pool()
%14 = call i32 (...) @_ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool()
%15 = call i32 (...) @_ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool()
%16 = call i32 (...) @_ensure_pool_init_gracefully_copes_when_out_of_memory()
%17 = call i32 (...) @_ensure_pool_cleanup_releases_underlying_buffer()
%18 = call i32 (...) @_ensure_pool_cleanup_gracefully_handles_null_pool()
%19 = call i32 (...) @_ensure_pool_cleanup_gracefully_handles_cleaned_up_pool()
%20 = call i32 (...) @_ensure_pool_take_returns_object_when_not_empty()
%21 = call i32 (...) @_ensure_pool_take_returns_null_when_empty()
%22 = call i32 (...) @_ensure_pool_take_gracefully_handles_null_pool()
%23 = call i32 (...) @_ensure_pool_take_gracefully_handles_cleaned_up_pool()
%24 = call i32 (...) @_ensure_pool_take_reuses_returned_elements()
%25 = call i32 (...) @_ensure_pool_return_gracefully_handles_address_already_returned()
%26 = call i32 (...) @_ensure_pool_return_gracefully_handles_cleaned_up_pool()
%27 = call i32 (...) @_ensure_pool_return_gracefully_handles_address_not_in_pool()
%28 = call i32 (...) @_ensure_pool_is_empty_gracefully_handles_null_pool()
%29 = call i32 (...) @_ensure_pool_is_empty_gracefully_handles_cleaned_up_pool()
%30 = call i32 (...) @_ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool()
%31 = call i32 (...) @_ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @_ensure_pool_new_returns_initialised_pool()
%4 = tail call i32 (...) @_ensure_pool_new_returns_null_when_no_more_memory()
%5 = tail call i32 (...) @_ensure_pool_delete_releases_all_allocated_memory()
%6 = tail call i32 (...) @_ensure_pool_delete_gracefully_handles_null_pool()
%7 = tail call i32 (...) @_ensure_pool_delete_gracefully_handles_cleaned_up_pool()
%8 = tail call i32 (...) @_ensure_pool_init_gracefully_handles_null_pool()
%9 = tail call i32 (...) @_ensure_pool_init_with_zero_element_size_constructs_valid_empty_pool()
%10 = tail call i32 (...) @_ensure_pool_init_with_zero_element_count_constructs_valid_empty_pool()
%11 = tail call i32 (...) @_ensure_pool_init_gracefully_copes_when_out_of_memory()
%12 = tail call i32 (...) @_ensure_pool_cleanup_releases_underlying_buffer()
%13 = tail call i32 (...) @_ensure_pool_cleanup_gracefully_handles_null_pool()
%14 = tail call i32 (...) @_ensure_pool_cleanup_gracefully_handles_cleaned_up_pool()
%15 = tail call i32 (...) @_ensure_pool_take_returns_object_when_not_empty()
%16 = tail call i32 (...) @_ensure_pool_take_returns_null_when_empty()
%17 = tail call i32 (...) @_ensure_pool_take_gracefully_handles_null_pool()
%18 = tail call i32 (...) @_ensure_pool_take_gracefully_handles_cleaned_up_pool()
%19 = tail call i32 (...) @_ensure_pool_take_reuses_returned_elements()
%20 = tail call i32 (...) @_ensure_pool_return_gracefully_handles_address_already_returned()
%21 = tail call i32 (...) @_ensure_pool_return_gracefully_handles_cleaned_up_pool()
%22 = tail call i32 (...) @_ensure_pool_return_gracefully_handles_address_not_in_pool()
%23 = tail call i32 (...) @_ensure_pool_is_empty_gracefully_handles_null_pool()
%24 = tail call i32 (...) @_ensure_pool_is_empty_gracefully_handles_cleaned_up_pool()
%25 = tail call i32 (...) @_ensure_pool_is_empty_returns_non_zero_on_empty_legitimate_pool()
%26 = tail call i32 (...) @_ensure_pool_is_empty_returns_zero_on_non_empty_legitimate_pool()
ret i32 0
}