#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*/ printf(char *);
int /*<<< orphan*/ test_ht32();
int /*<<< orphan*/ test_ht32rh();
int /*<<< orphan*/ test_ht64();
int /*<<< orphan*/ test_ht64rh();
int /*<<< orphan*/ test_str_set();
int /*<<< orphan*/ test_str_set2();
int /*<<< orphan*/ test_str_set3();
int /*<<< orphan*/ test_str_set4();
int /*<<< orphan*/ test_token_map();
int main(int argc, char *argv[]) {
  test_str_set();
  test_str_set2();
  test_str_set3();
  test_str_set4();
  test_token_map();
  test_ht32();
  test_ht64();
  test_ht32rh();
  test_ht64rh();
  printf("all tests passed\n");
  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   1080 <test_str_set@plt>
mov    $0x0,%al
call   1050 <test_str_set2@plt>
mov    $0x0,%al
call   1090 <test_str_set3@plt>
mov    $0x0,%al
call   1040 <test_str_set4@plt>
mov    $0x0,%al
call   1070 <test_token_map@plt>
mov    $0x0,%al
call   10a0 <test_ht32@plt>
mov    $0x0,%al
call   10b0 <test_ht64@plt>
mov    $0x0,%al
call   1030 <test_ht32rh@plt>
mov    $0x0,%al
call   10c0 <test_ht64rh@plt>
lea    0xe04(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <test_str_set@plt>
xor    %eax,%eax
call   1060 <test_str_set2@plt>
xor    %eax,%eax
call   1090 <test_str_set3@plt>
xor    %eax,%eax
call   1050 <test_str_set4@plt>
xor    %eax,%eax
call   1070 <test_token_map@plt>
xor    %eax,%eax
call   10a0 <test_ht32@plt>
xor    %eax,%eax
call   10b0 <test_ht64@plt>
xor    %eax,%eax
call   1040 <test_ht32rh@plt>
xor    %eax,%eax
call   10c0 <test_ht64rh@plt>
lea    0xe19(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"all tests passed\0A\00"
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_str_set()
%7 = call i32 (...) @test_str_set2()
%8 = call i32 (...) @test_str_set3()
%9 = call i32 (...) @test_str_set4()
%10 = call i32 (...) @test_token_map()
%11 = call i32 (...) @test_ht32()
%12 = call i32 (...) @test_ht64()
%13 = call i32 (...) @test_ht32rh()
%14 = call i32 (...) @test_ht64rh()
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [17 x i8] c"all tests passed\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_str_set()
%4 = tail call i32 (...) @test_str_set2()
%5 = tail call i32 (...) @test_str_set3()
%6 = tail call i32 (...) @test_str_set4()
%7 = tail call i32 (...) @test_token_map()
%8 = tail call i32 (...) @test_ht32()
%9 = tail call i32 (...) @test_ht64()
%10 = tail call i32 (...) @test_ht32rh()
%11 = tail call i32 (...) @test_ht64rh()
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret i32 0
}