#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 */
struct dict_radix {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ allocate_nodes(struct dict_radix *, int, int, int);
struct dict_radix *new_dict_radix();
int /*<<< orphan*/ print_sizes(struct dict_radix *);
int /*<<< orphan*/ print_stats(struct dict_radix *);
int /*<<< orphan*/ read_dict(struct dict_radix *, int /*<<< orphan*/ *);
main(int argc, char *argv[]) {
  struct dict_radix *dict = new_dict_radix();
  allocate_nodes(dict, 200000, 100000, 10000);
  read_dict(dict, NULL);
  print_sizes(dict);
  print_stats(dict);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <new_dict_radix@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x30d40,%esi
mov    $0x186a0,%edx
mov    $0x2710,%ecx
call   1030 <allocate_nodes@plt>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <read_dict@plt>
mov    -0x18(%rbp),%rdi
call   1050 <print_sizes@plt>
mov    -0x18(%rbp),%rdi
call   1040 <print_stats@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1060 <new_dict_radix@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x30d40,%esi
mov    $0x186a0,%edx
mov    $0x2710,%ecx
call   1030 <allocate_nodes@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <read_dict@plt>
mov    %rbx,%rdi
call   1050 <print_sizes@plt>
mov    %rbx,%rdi
call   1040 <print_stats@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.dict_radix = type { i32 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.dict_radix*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call %struct.dict_radix* (...) @new_dict_radix()
store %struct.dict_radix* %7, %struct.dict_radix** %6
%8 = load %struct.dict_radix*, %struct.dict_radix** %6
%9 = call i32 @allocate_nodes(%struct.dict_radix* %8, i32 200000, i32 100000, i32 10000)
%10 = load %struct.dict_radix*, %struct.dict_radix** %6
%11 = call i32 @read_dict(%struct.dict_radix* %10, i32* null)
%12 = load %struct.dict_radix*, %struct.dict_radix** %6
%13 = call i32 @print_sizes(%struct.dict_radix* %12)
%14 = load %struct.dict_radix*, %struct.dict_radix** %6
%15 = call i32 @print_stats(%struct.dict_radix* %14)
ret i32 0
}

LLVM IR (-O2):
%struct.dict_radix = type { i32 }
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call %struct.dict_radix* (...) @new_dict_radix()
%4 = tail call i32 @allocate_nodes(%struct.dict_radix* %3, i32 200000, i32 100000, i32 10000)
%5 = tail call i32 @read_dict(%struct.dict_radix* %3, i32* null)
%6 = tail call i32 @print_sizes(%struct.dict_radix* %3)
%7 = tail call i32 @print_stats(%struct.dict_radix* %3)
ret i32 0
}