#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ test_constructors();
int /*<<< orphan*/ test_set_get_lookup_iterate();
int /*<<< orphan*/ test_to_string();
int main() {
  fputs("Initializing Dictionary test...\n", stdout);
  fputs("Test #1: Constructors: ...", stdout);
  test_constructors();
  fputs("SUCCESS!\n", stdout);
  fputs("Test #2: Set, Get, Lookup, Iterate: ...\n", stdout);
  test_set_get_lookup_iterate();
  fputs("SUCCESS!\n", stdout);
  fputs("Test #3: To String: ...\n", stdout);
  test_to_string();
  fputs("SUCCESS!\n", stdout);
  fputs("Finalizing Dictionary test.\n", stdout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
lea    0xeac(%rip),%rdi
call   1060 <fputs@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdi
call   1060 <fputs@plt>
mov    $0x0,%al
call   1040 <test_constructors@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%esi
lea    0xeb7(%rip),%rdi
call   1060 <fputs@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%esi
lea    0xeac(%rip),%rdi
call   1060 <fputs@plt>
mov    $0x0,%al
call   1030 <test_set_get_lookup_iterate@plt>
mov    0x2e33(%rip),%rax
mov    (%rax),%esi
lea    0xe86(%rip),%rdi
call   1060 <fputs@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%esi
lea    0xea4(%rip),%rdi
call   1060 <fputs@plt>
mov    $0x0,%al
call   1050 <test_to_string@plt>
mov    0x2e02(%rip),%rax
mov    (%rax),%esi
lea    0xe55(%rip),%rdi
call   1060 <fputs@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
lea    0xe8c(%rip),%rdi
call   1060 <fputs@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    0x2e95(%rip),%rbx
mov    (%rbx),%esi
lea    0xeac(%rip),%rdi
call   1060 <fputs@plt>
mov    (%rbx),%esi
lea    0xebf(%rip),%rdi
call   1060 <fputs@plt>
xor    %eax,%eax
call   1040 <test_constructors@plt>
mov    (%rbx),%esi
lea    0xec5(%rip),%r14
mov    %r14,%rdi
call   1060 <fputs@plt>
mov    (%rbx),%esi
lea    0xebe(%rip),%rdi
call   1060 <fputs@plt>
xor    %eax,%eax
call   1030 <test_set_get_lookup_iterate@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
call   1060 <fputs@plt>
mov    (%rbx),%esi
lea    0xec8(%rip),%rdi
call   1060 <fputs@plt>
xor    %eax,%eax
call   1050 <test_to_string@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
call   1060 <fputs@plt>
mov    (%rbx),%esi
lea    0xec2(%rip),%rdi
call   1060 <fputs@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Initializing Dictionary test...\0A\00"
@stdout = global i32 0
@.str.1 = [27 x i8] c"Test: Constructors: ...\00"
@.str.2 = [10 x i8] c"SUCCESS!\0A\00"
@.str.3 = [41 x i8] c"Test: Set, Get, Lookup, Iterate: ...\0A\00"
@.str.4 = [25 x i8] c"Test: To String: ...\0A\00"
@.str.5 = [29 x i8] c"Finalizing Dictionary test.\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @test_constructors()
%6 = load i32, i32* @stdout
%7 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stdout
%9 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = call i32 (...) @test_set_get_lookup_iterate()
%11 = load i32, i32* @stdout
%12 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdout
%14 = call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = call i32 (...) @test_to_string()
%16 = load i32, i32* @stdout
%17 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stdout
%19 = call i32 @fputs(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"Initializing Dictionary test...\0A\00"
@stdout = global i32 0
@.str.1 = [27 x i8] c"Test: Constructors: ...\00"
@.str.2 = [10 x i8] c"SUCCESS!\0A\00"
@.str.3 = [41 x i8] c"Test: Set, Get, Lookup, Iterate: ...\0A\00"
@.str.4 = [25 x i8] c"Test: To String: ...\0A\00"
@.str.5 = [29 x i8] c"Finalizing Dictionary test.\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @test_constructors()
%6 = load i32, i32* @stdout
%7 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stdout
%9 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = tail call i32 (...) @test_set_get_lookup_iterate()
%11 = load i32, i32* @stdout
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdout
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = tail call i32 (...) @test_to_string()
%16 = load i32, i32* @stdout
%17 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stdout
%19 = tail call i32 @fputs(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %18)
ret i32 0
}