#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 ttrie__obj {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ choice_tables_teardown(struct ttrie__obj *);
int /*<<< orphan*/ infix_teardown(struct ttrie__obj *);
int /*<<< orphan*/ passthrough_teardown(struct ttrie__obj *);
int /*<<< orphan*/ suffix_teardown(struct ttrie__obj *);
int /*<<< orphan*/ terminator_teardown(struct ttrie__obj *);
int /*<<< orphan*/ ttrie__unindex(struct ttrie__obj *);
int ttrie__close(struct ttrie__obj *tt) {
  ttrie__unindex(tt);
  infix_teardown(tt);
  suffix_teardown(tt);
  passthrough_teardown(tt);
  terminator_teardown(tt);
  choice_tables_teardown(tt);
  return 0;
}


x86 assembly (clang, -O0):
<ttrie__close>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <ttrie__unindex@plt>
mov    -0x8(%rbp),%rdi
call   1070 <infix_teardown@plt>
mov    -0x8(%rbp),%rdi
call   1030 <suffix_teardown@plt>
mov    -0x8(%rbp),%rdi
call   1080 <passthrough_teardown@plt>
mov    -0x8(%rbp),%rdi
call   1060 <terminator_teardown@plt>
mov    -0x8(%rbp),%rdi
call   1040 <choice_tables_teardown@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ttrie__close>:
push   %rbx
mov    %rdi,%rbx
call   1050 <ttrie__unindex@plt>
mov    %rbx,%rdi
call   1070 <infix_teardown@plt>
mov    %rbx,%rdi
call   1030 <suffix_teardown@plt>
mov    %rbx,%rdi
call   1080 <passthrough_teardown@plt>
mov    %rbx,%rdi
call   1060 <terminator_teardown@plt>
mov    %rbx,%rdi
call   1040 <choice_tables_teardown@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.ttrie__obj = type { i32 }
define i32 @ttrie__close(%struct.ttrie__obj* %0) {
%2 = alloca %struct.ttrie__obj*
store %struct.ttrie__obj* %0, %struct.ttrie__obj** %2
%3 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%4 = call i32 @ttrie__unindex(%struct.ttrie__obj* %3)
%5 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%6 = call i32 @infix_teardown(%struct.ttrie__obj* %5)
%7 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%8 = call i32 @suffix_teardown(%struct.ttrie__obj* %7)
%9 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%10 = call i32 @passthrough_teardown(%struct.ttrie__obj* %9)
%11 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%12 = call i32 @terminator_teardown(%struct.ttrie__obj* %11)
%13 = load %struct.ttrie__obj*, %struct.ttrie__obj** %2
%14 = call i32 @choice_tables_teardown(%struct.ttrie__obj* %13)
ret i32 0
}

LLVM IR (-O2):
%struct.ttrie__obj = type { i32 }
define i32 @ttrie__close(%struct.ttrie__obj* %0) {
%2 = tail call i32 @ttrie__unindex(%struct.ttrie__obj* %0)
%3 = tail call i32 @infix_teardown(%struct.ttrie__obj* %0)
%4 = tail call i32 @suffix_teardown(%struct.ttrie__obj* %0)
%5 = tail call i32 @passthrough_teardown(%struct.ttrie__obj* %0)
%6 = tail call i32 @terminator_teardown(%struct.ttrie__obj* %0)
%7 = tail call i32 @choice_tables_teardown(%struct.ttrie__obj* %0)
ret i32 0
}