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

/* Variables and functions */
int /*<<< orphan*/ inorder(struct node *);
int /*<<< orphan*/ insert(struct node **, int);
struct node *nil();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int main() {
  struct node *root = nil();
  insert(&root, 5);
  insert(&root, 3);
  insert(&root, 7);
  insert(&root, 2);
  insert(&root, 4);
  insert(&root, 6);
  insert(&root, 8);
  insert(&root, 11);
  printf("inorder Traversal Is : ");
  inorder(root);
  puts("");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <nil@plt>
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
mov    $0x5,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x7,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x4,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x6,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0x8,%esi
call   1070 <insert@plt>
lea    -0x10(%rbp),%rdi
mov    $0xb,%esi
call   1070 <insert@plt>
lea    0xe1f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1060 <inorder@plt>
lea    0xe21(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1040 <nil@plt>
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x5,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1070 <insert@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1070 <insert@plt>
lea    0xe2b(%rip),%rdi
call   1050 <printf@plt>
mov    0x8(%rsp),%rdi
call   1060 <inorder@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.node = type { i32 }
@.str = [24 x i8] c"inorder Traversal Is : \00"
@.str.1 = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.node*
store i32 0, i32* %1
%3 = call %struct.node* (...) @nil()
store %struct.node* %3, %struct.node** %2
%4 = call i32 @insert(%struct.node** %2, i32 5)
%5 = call i32 @insert(%struct.node** %2, i32 3)
%6 = call i32 @insert(%struct.node** %2, i32 7)
%7 = call i32 @insert(%struct.node** %2, i32 2)
%8 = call i32 @insert(%struct.node** %2, i32 4)
%9 = call i32 @insert(%struct.node** %2, i32 6)
%10 = call i32 @insert(%struct.node** %2, i32 8)
%11 = call i32 @insert(%struct.node** %2, i32 11)
%12 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%13 = load %struct.node*, %struct.node** %2
%14 = call i32 @inorder(%struct.node* %13)
%15 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.node = type { i32 }
@.str = [24 x i8] c"inorder Traversal Is : \00"
define i32 @main() {
%1 = alloca %struct.node*
%2 = bitcast %struct.node** %1 to i8*
%3 = tail call %struct.node* (...) @nil()
store %struct.node* %3, %struct.node** %1
%4 = call i32 @insert(%struct.node** %1, i32 5)
%5 = call i32 @insert(%struct.node** %1, i32 3)
%6 = call i32 @insert(%struct.node** %1, i32 7)
%7 = call i32 @insert(%struct.node** %1, i32 2)
%8 = call i32 @insert(%struct.node** %1, i32 4)
%9 = call i32 @insert(%struct.node** %1, i32 6)
%10 = call i32 @insert(%struct.node** %1, i32 8)
%11 = call i32 @insert(%struct.node** %1, i32 11)
%12 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%13 = load %struct.node*, %struct.node** %1
%14 = call i32 @inorder(%struct.node* %13)
%15 = call i32 @putchar(i32 10)
ret i32 0
}