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

/* Variables and functions */
int /*<<< orphan*/ free_inode(struct inode *);
int /*<<< orphan*/ insert(int, struct inode *);
struct inode *new_inode(int);
int main(void) {
  struct inode *root = new_inode(8);
  insert(3, root);
  insert(10, root);
  insert(1, root);
  insert(6, root);
  insert(14, root);
  insert(4, root);
  insert(7, root);
  insert(13, root);
  free_inode(root);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x8,%edi
call   1030 <new_inode@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x3,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0xa,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0x1,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0x6,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0xe,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0x4,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0x7,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rsi
mov    $0xd,%edi
call   1050 <insert@plt>
mov    -0x10(%rbp),%rdi
call   1040 <free_inode@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x8,%edi
call   1030 <new_inode@plt>
mov    %rax,%rbx
mov    $0x3,%edi
mov    %rax,%rsi
call   1050 <insert@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0x6,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0xe,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0x4,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0x7,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    $0xd,%edi
mov    %rbx,%rsi
call   1050 <insert@plt>
mov    %rbx,%rdi
call   1040 <free_inode@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.inode = type { i32 }
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.inode*
store i32 0, i32* %1
%3 = call %struct.inode* @new_inode(i32 8)
store %struct.inode* %3, %struct.inode** %2
%4 = load %struct.inode*, %struct.inode** %2
%5 = call i32 @insert(i32 3, %struct.inode* %4)
%6 = load %struct.inode*, %struct.inode** %2
%7 = call i32 @insert(i32 10, %struct.inode* %6)
%8 = load %struct.inode*, %struct.inode** %2
%9 = call i32 @insert(i32 1, %struct.inode* %8)
%10 = load %struct.inode*, %struct.inode** %2
%11 = call i32 @insert(i32 6, %struct.inode* %10)
%12 = load %struct.inode*, %struct.inode** %2
%13 = call i32 @insert(i32 14, %struct.inode* %12)
%14 = load %struct.inode*, %struct.inode** %2
%15 = call i32 @insert(i32 4, %struct.inode* %14)
%16 = load %struct.inode*, %struct.inode** %2
%17 = call i32 @insert(i32 7, %struct.inode* %16)
%18 = load %struct.inode*, %struct.inode** %2
%19 = call i32 @insert(i32 13, %struct.inode* %18)
%20 = load %struct.inode*, %struct.inode** %2
%21 = call i32 @free_inode(%struct.inode* %20)
ret i32 0
}

LLVM IR (-O2):
%struct.inode = type { i32 }
define i32 @main() {
%1 = tail call %struct.inode* @new_inode(i32 8)
%2 = tail call i32 @insert(i32 3, %struct.inode* %1)
%3 = tail call i32 @insert(i32 10, %struct.inode* %1)
%4 = tail call i32 @insert(i32 1, %struct.inode* %1)
%5 = tail call i32 @insert(i32 6, %struct.inode* %1)
%6 = tail call i32 @insert(i32 14, %struct.inode* %1)
%7 = tail call i32 @insert(i32 4, %struct.inode* %1)
%8 = tail call i32 @insert(i32 7, %struct.inode* %1)
%9 = tail call i32 @insert(i32 13, %struct.inode* %1)
%10 = tail call i32 @free_inode(%struct.inode* %1)
ret i32 0
}