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

/* Variables and functions */
struct ts_eit *ts_eit_alloc_init(int, int, int, int, int /*<<< orphan*/,
                                 int /*<<< orphan*/);
int /*<<< orphan*/ ts_eit_dump(struct ts_eit *);
int /*<<< orphan*/ ts_eit_free(struct ts_eit **);
int /*<<< orphan*/ ts_eit_test1(struct ts_eit *);
int /*<<< orphan*/ ts_eit_test2(struct ts_eit *);
int /*<<< orphan*/ ts_eit_test3(struct ts_eit *);
int /*<<< orphan*/ ts_eit_test4(struct ts_eit *);
void ts_eit_test(void) {
  struct ts_eit *eit;
  eit = ts_eit_alloc_init(1, 2, 3, 1, 0, 0);
  ts_eit_test1(eit);
  ts_eit_dump(eit);
  ts_eit_free(&eit);
  eit = ts_eit_alloc_init(1, 2, 3, 1, 0, 0);
  ts_eit_test2(eit);
  ts_eit_dump(eit);
  ts_eit_free(&eit);
  eit = ts_eit_alloc_init(1, 2, 3, 1, 0, 0);
  ts_eit_test3(eit);
  ts_eit_dump(eit);
  ts_eit_free(&eit);
  eit = ts_eit_alloc_init(1, 2, 3, 1, 0, 0);
  ts_eit_test4(eit);
  ts_eit_dump(eit);
  ts_eit_free(&eit);
}


x86 assembly (clang, -O0):
<ts_eit_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%ecx
mov    $0x2,%esi
mov    $0x3,%edx
xor    %r9d,%r9d
mov    %ecx,%edi
mov    %r9d,%r8d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1090 <ts_eit_test1@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ts_eit_dump@plt>
lea    -0x8(%rbp),%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%ecx
mov    $0x2,%esi
mov    $0x3,%edx
xor    %r9d,%r9d
mov    %ecx,%edi
mov    %r9d,%r8d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <ts_eit_test2@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ts_eit_dump@plt>
lea    -0x8(%rbp),%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%ecx
mov    $0x2,%esi
mov    $0x3,%edx
xor    %r9d,%r9d
mov    %ecx,%edi
mov    %r9d,%r8d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <ts_eit_test3@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ts_eit_dump@plt>
lea    -0x8(%rbp),%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%ecx
mov    $0x2,%esi
mov    $0x3,%edx
xor    %r9d,%r9d
mov    %ecx,%edi
mov    %r9d,%r8d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <ts_eit_test4@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ts_eit_dump@plt>
lea    -0x8(%rbp),%rdi
call   1040 <ts_eit_free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_eit_test>:
push   %rbx
sub    $0x10,%rsp
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,%rbx
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
call   1090 <ts_eit_test1@plt>
mov    %rbx,%rdi
call   1030 <ts_eit_dump@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
call   1050 <ts_eit_test2@plt>
mov    0x8(%rsp),%rdi
call   1030 <ts_eit_dump@plt>
mov    %rbx,%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
call   1080 <ts_eit_test3@plt>
mov    0x8(%rsp),%rdi
call   1030 <ts_eit_dump@plt>
mov    %rbx,%rdi
call   1040 <ts_eit_free@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1070 <ts_eit_alloc_init@plt>
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
call   1060 <ts_eit_test4@plt>
mov    0x8(%rsp),%rdi
call   1030 <ts_eit_dump@plt>
mov    %rbx,%rdi
call   1040 <ts_eit_free@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.ts_eit = type { i32 }
define void @ts_eit_test() {
%1 = alloca %struct.ts_eit*
%2 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %2, %struct.ts_eit** %1
%3 = load %struct.ts_eit*, %struct.ts_eit** %1
%4 = call i32 @ts_eit_test1(%struct.ts_eit* %3)
%5 = load %struct.ts_eit*, %struct.ts_eit** %1
%6 = call i32 @ts_eit_dump(%struct.ts_eit* %5)
%7 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%8 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %8, %struct.ts_eit** %1
%9 = load %struct.ts_eit*, %struct.ts_eit** %1
%10 = call i32 @ts_eit_test2(%struct.ts_eit* %9)
%11 = load %struct.ts_eit*, %struct.ts_eit** %1
%12 = call i32 @ts_eit_dump(%struct.ts_eit* %11)
%13 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%14 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %14, %struct.ts_eit** %1
%15 = load %struct.ts_eit*, %struct.ts_eit** %1
%16 = call i32 @ts_eit_test3(%struct.ts_eit* %15)
%17 = load %struct.ts_eit*, %struct.ts_eit** %1
%18 = call i32 @ts_eit_dump(%struct.ts_eit* %17)
%19 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%20 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %20, %struct.ts_eit** %1
%21 = load %struct.ts_eit*, %struct.ts_eit** %1
%22 = call i32 @ts_eit_test4(%struct.ts_eit* %21)
%23 = load %struct.ts_eit*, %struct.ts_eit** %1
%24 = call i32 @ts_eit_dump(%struct.ts_eit* %23)
%25 = call i32 @ts_eit_free(%struct.ts_eit** %1)
ret void
}

LLVM IR (-O2):
%struct.ts_eit = type { i32 }
define void @ts_eit_test() {
%1 = alloca %struct.ts_eit*
%2 = bitcast %struct.ts_eit** %1 to i8*
%3 = tail call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %3, %struct.ts_eit** %1
%4 = tail call i32 @ts_eit_test1(%struct.ts_eit* %3)
%5 = tail call i32 @ts_eit_dump(%struct.ts_eit* %3)
%6 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%7 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %7, %struct.ts_eit** %1
%8 = call i32 @ts_eit_test2(%struct.ts_eit* %7)
%9 = load %struct.ts_eit*, %struct.ts_eit** %1
%10 = call i32 @ts_eit_dump(%struct.ts_eit* %9)
%11 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%12 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %12, %struct.ts_eit** %1
%13 = call i32 @ts_eit_test3(%struct.ts_eit* %12)
%14 = load %struct.ts_eit*, %struct.ts_eit** %1
%15 = call i32 @ts_eit_dump(%struct.ts_eit* %14)
%16 = call i32 @ts_eit_free(%struct.ts_eit** %1)
%17 = call %struct.ts_eit* @ts_eit_alloc_init(i32 1, i32 2, i32 3, i32 1, i32 0, i32 0)
store %struct.ts_eit* %17, %struct.ts_eit** %1
%18 = call i32 @ts_eit_test4(%struct.ts_eit* %17)
%19 = load %struct.ts_eit*, %struct.ts_eit** %1
%20 = call i32 @ts_eit_dump(%struct.ts_eit* %19)
%21 = call i32 @ts_eit_free(%struct.ts_eit** %1)
ret void
}