#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_allocator_alloc_calls_alloc_fn();
int /*<<< orphan*/ _ensure_allocator_alloc_copes_with_null_alloc_fn();
int /*<<< orphan*/ _ensure_allocator_alloc_returns_null_when_allocator_fails();
int /*<<< orphan*/
_ensure_allocator_alloc_returns_null_when_passed_null_allocator();
int /*<<< orphan*/ _ensure_allocator_always_fail_free_copes_with_null_address();
int /*<<< orphan*/ _ensure_allocator_always_fail_returns_an_allocator();
int /*<<< orphan*/ _ensure_allocator_always_fail_returns_null_memory();
int /*<<< orphan*/ _ensure_allocator_default_can_allocate_and_release_memory();
int /*<<< orphan*/ _ensure_allocator_default_free_copes_with_null_address();
int /*<<< orphan*/ _ensure_allocator_default_returns_an_allocator();
int /*<<< orphan*/
_ensure_allocator_default_returns_null_for_zero_length_allocation();
int /*<<< orphan*/ _ensure_allocator_free_calls_free_fn();
int /*<<< orphan*/ _ensure_allocator_free_copes_with_null_address();
int /*<<< orphan*/ _ensure_allocator_free_copes_with_null_allocator();
int /*<<< orphan*/ _ensure_allocator_free_copes_with_null_free_fn();
int main(int argc, char *argv[]) {
  (void)(argc);
  (void)(argv);
  _ensure_allocator_alloc_returns_null_when_passed_null_allocator();
  _ensure_allocator_alloc_returns_null_when_allocator_fails();
  _ensure_allocator_alloc_calls_alloc_fn();
  _ensure_allocator_alloc_copes_with_null_alloc_fn();
  _ensure_allocator_free_copes_with_null_address();
  _ensure_allocator_free_copes_with_null_allocator();
  _ensure_allocator_free_calls_free_fn();
  _ensure_allocator_free_copes_with_null_free_fn();
  _ensure_allocator_default_returns_an_allocator();
  _ensure_allocator_default_can_allocate_and_release_memory();
  _ensure_allocator_default_returns_null_for_zero_length_allocation();
  _ensure_allocator_default_free_copes_with_null_address();
  _ensure_allocator_always_fail_returns_an_allocator();
  _ensure_allocator_always_fail_returns_null_memory();
  _ensure_allocator_always_fail_free_copes_with_null_address();
  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   1100 <_ensure_allocator_alloc_returns_null_when_passed_null_allocator@plt>
mov    $0x0,%al
call   1110 <_ensure_allocator_alloc_returns_null_when_allocator_fails@plt>
mov    $0x0,%al
call   1070 <_ensure_allocator_alloc_calls_alloc_fn@plt>
mov    $0x0,%al
call   1090 <_ensure_allocator_alloc_copes_with_null_alloc_fn@plt>
mov    $0x0,%al
call   10b0 <_ensure_allocator_free_copes_with_null_address@plt>
mov    $0x0,%al
call   1030 <_ensure_allocator_free_copes_with_null_allocator@plt>
mov    $0x0,%al
call   1040 <_ensure_allocator_free_calls_free_fn@plt>
mov    $0x0,%al
call   10c0 <_ensure_allocator_free_copes_with_null_free_fn@plt>
mov    $0x0,%al
call   1050 <_ensure_allocator_default_returns_an_allocator@plt>
mov    $0x0,%al
call   10f0 <_ensure_allocator_default_can_allocate_and_release_memory@plt>
mov    $0x0,%al
call   10d0 <_ensure_allocator_default_returns_null_for_zero_length_allocation@plt>
mov    $0x0,%al
call   10e0 <_ensure_allocator_default_free_copes_with_null_address@plt>
mov    $0x0,%al
call   1080 <_ensure_allocator_always_fail_returns_an_allocator@plt>
mov    $0x0,%al
call   10a0 <_ensure_allocator_always_fail_returns_null_memory@plt>
mov    $0x0,%al
call   1060 <_ensure_allocator_always_fail_free_copes_with_null_address@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1100 <_ensure_allocator_alloc_returns_null_when_passed_null_allocator@plt>
xor    %eax,%eax
call   1110 <_ensure_allocator_alloc_returns_null_when_allocator_fails@plt>
xor    %eax,%eax
call   1070 <_ensure_allocator_alloc_calls_alloc_fn@plt>
xor    %eax,%eax
call   1090 <_ensure_allocator_alloc_copes_with_null_alloc_fn@plt>
xor    %eax,%eax
call   10b0 <_ensure_allocator_free_copes_with_null_address@plt>
xor    %eax,%eax
call   1030 <_ensure_allocator_free_copes_with_null_allocator@plt>
xor    %eax,%eax
call   1040 <_ensure_allocator_free_calls_free_fn@plt>
xor    %eax,%eax
call   10c0 <_ensure_allocator_free_copes_with_null_free_fn@plt>
xor    %eax,%eax
call   1050 <_ensure_allocator_default_returns_an_allocator@plt>
xor    %eax,%eax
call   10f0 <_ensure_allocator_default_can_allocate_and_release_memory@plt>
xor    %eax,%eax
call   10d0 <_ensure_allocator_default_returns_null_for_zero_length_allocation@plt>
xor    %eax,%eax
call   10e0 <_ensure_allocator_default_free_copes_with_null_address@plt>
xor    %eax,%eax
call   1080 <_ensure_allocator_always_fail_returns_an_allocator@plt>
xor    %eax,%eax
call   10a0 <_ensure_allocator_always_fail_returns_null_memory@plt>
xor    %eax,%eax
call   1060 <_ensure_allocator_always_fail_free_copes_with_null_address@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_allocator_alloc_returns_null_when_passed_null_allocator()
%9 = call i32 (...) @_ensure_allocator_alloc_returns_null_when_allocator_fails()
%10 = call i32 (...) @_ensure_allocator_alloc_calls_alloc_fn()
%11 = call i32 (...) @_ensure_allocator_alloc_copes_with_null_alloc_fn()
%12 = call i32 (...) @_ensure_allocator_free_copes_with_null_address()
%13 = call i32 (...) @_ensure_allocator_free_copes_with_null_allocator()
%14 = call i32 (...) @_ensure_allocator_free_calls_free_fn()
%15 = call i32 (...) @_ensure_allocator_free_copes_with_null_free_fn()
%16 = call i32 (...) @_ensure_allocator_default_returns_an_allocator()
%17 = call i32 (...) @_ensure_allocator_default_can_allocate_and_release_memory()
%18 = call i32 (...) @_ensure_allocator_default_returns_null_for_zero_length_allocation()
%19 = call i32 (...) @_ensure_allocator_default_free_copes_with_null_address()
%20 = call i32 (...) @_ensure_allocator_always_fail_returns_an_allocator()
%21 = call i32 (...) @_ensure_allocator_always_fail_returns_null_memory()
%22 = call i32 (...) @_ensure_allocator_always_fail_free_copes_with_null_address()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @_ensure_allocator_alloc_returns_null_when_passed_null_allocator()
%4 = tail call i32 (...) @_ensure_allocator_alloc_returns_null_when_allocator_fails()
%5 = tail call i32 (...) @_ensure_allocator_alloc_calls_alloc_fn()
%6 = tail call i32 (...) @_ensure_allocator_alloc_copes_with_null_alloc_fn()
%7 = tail call i32 (...) @_ensure_allocator_free_copes_with_null_address()
%8 = tail call i32 (...) @_ensure_allocator_free_copes_with_null_allocator()
%9 = tail call i32 (...) @_ensure_allocator_free_calls_free_fn()
%10 = tail call i32 (...) @_ensure_allocator_free_copes_with_null_free_fn()
%11 = tail call i32 (...) @_ensure_allocator_default_returns_an_allocator()
%12 = tail call i32 (...) @_ensure_allocator_default_can_allocate_and_release_memory()
%13 = tail call i32 (...) @_ensure_allocator_default_returns_null_for_zero_length_allocation()
%14 = tail call i32 (...) @_ensure_allocator_default_free_copes_with_null_address()
%15 = tail call i32 (...) @_ensure_allocator_always_fail_returns_an_allocator()
%16 = tail call i32 (...) @_ensure_allocator_always_fail_returns_null_memory()
%17 = tail call i32 (...) @_ensure_allocator_always_fail_free_copes_with_null_address()
ret i32 0
}