#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 *);
scalar_t__ test_hash_map_binary();
scalar_t__ test_hash_map_string();
scalar_t__ test_list();
int main(int argc, char **argv) {
  (void)argc;
  (void)argv;
  printf("test_list: ");
  test_list() ? printf("failed\n") : printf("passed\n");
  printf("test_hash_map_string: ");
  test_hash_map_string() ? printf("failed\n") : printf("passed\n");
  printf("test_hash_map_binary: ");
  test_hash_map_binary() ? printf("failed\n") : printf("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)
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <test_list@plt>
cmp    $0x0,%rax
je     1184 <main+0x44>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
jmp    1190 <main+0x50>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <test_hash_map_string@plt>
cmp    $0x0,%rax
je     11be <main+0x7e>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
jmp    11ca <main+0x8a>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <test_hash_map_binary@plt>
cmp    $0x0,%rax
je     11f8 <main+0xb8>
lea    0xe1e(%rip),%rdi
call   1030 <printf@plt>
jmp    1204 <main+0xc4>
lea    0xe15(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <test_list@plt>
test   %rax,%rax
lea    0xec9(%rip),%r14
lea    0xec9(%rip),%rbx
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
lea    0xe81(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <test_hash_map_string@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
lea    0xe76(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <test_hash_map_binary@plt>
test   %rax,%rax
cmove  %r14,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [12 x i8] c"test_list: \00"
@.str.1 = [8 x i8] c"failed\0A\00"
@.str.2 = [8 x i8] c"passed\0A\00"
@.str.3 = [23 x i8] c"test_hash_map_string: \00"
@.str.4 = [23 x i8] c"test_hash_map_binary: \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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%9 = call i64 (...) @test_list()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %15
13: ; preds = %2
%14 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = phi i32 [ %12, %11 ], [ %14, %13 ]
%17 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%18 = call i64 (...) @test_hash_map_string()
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %24
22: ; preds = %15
%23 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
%25 = phi i32 [ %21, %20 ], [ %23, %22 ]
%26 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%27 = call i64 (...) @test_hash_map_binary()
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %33
31: ; preds = %24
%32 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %33
33: ; preds = %31, %29
%34 = phi i32 [ %30, %29 ], [ %32, %31 ]
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"test_list: \00"
@.str.3 = [23 x i8] c"test_hash_map_string: \00"
@.str.4 = [23 x i8] c"test_hash_map_binary: \00"
@str.6 = [7 x i8] c"passed\00"
@str.9 = [7 x i8] c"failed\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = tail call i64 (...) @test_list()
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0)
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i64 (...) @test_hash_map_string()
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0)
%12 = tail call i32 @puts(i8* dereferenceable(1) %11)
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i64 (...) @test_hash_map_binary()
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0)
%17 = tail call i32 @puts(i8* dereferenceable(1) %16)
ret i32 0
}