#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void cmdMainScreenFunc() {
  printf("\n========================================\n");
  printf("1. Add a new node with Integer value\n");
  printf("2. Remove the node with Integer value\n");
  printf("3. Print the Tree with \'PreOrder\'\n");
  printf("4. Print the Tree with \'InOrder\'\n");
  printf("5. Print the Tree with \'PostOrder\'\n");
  printf("6. Destroy \'all of the Tree\'\n");
  printf("\'Q\' or \'q\' to quit.\n");
  printf("========================================\n");
  printf(">>> ");
}


x86 assembly (clang, -O0):
<cmdMainScreenFunc>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8d(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmdMainScreenFunc>:
push   %rax
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf44(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6c(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"\0A========================================\0A\00"
@.str.1 = [38 x i8] c"1. Add a new node with Integer value\0A\00"
@.str.2 = [39 x i8] c"2. Remove the node with Integer value\0A\00"
@.str.3 = [35 x i8] c"3. Print the Tree with 'PreOrder'\0A\00"
@.str.4 = [34 x i8] c"4. Print the Tree with 'InOrder'\0A\00"
@.str.5 = [36 x i8] c"5. Print the Tree with 'PostOrder'\0A\00"
@.str.6 = [30 x i8] c"6. Destroy 'all of the Tree'\0A\00"
@.str.7 = [21 x i8] c"'Q' or 'q' to quit.\0A\00"
@.str.8 = [42 x i8] c"========================================\0A\00"
@.str.9 = [5 x i8] c">>> \00"
define void @cmdMainScreenFunc() {
%1 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.9 = [5 x i8] c">>> \00"
@str = [42 x i8] c"\0A========================================\00"
@str.10 = [37 x i8] c"1. Add a new node with Integer value\00"
@str.11 = [38 x i8] c"2. Remove the node with Integer value\00"
@str.12 = [34 x i8] c"3. Print the Tree with 'PreOrder'\00"
@str.13 = [33 x i8] c"4. Print the Tree with 'InOrder'\00"
@str.14 = [35 x i8] c"5. Print the Tree with 'PostOrder'\00"
@str.15 = [29 x i8] c"6. Destroy 'all of the Tree'\00"
@str.16 = [20 x i8] c"'Q' or 'q' to quit.\00"
@str.17 = [41 x i8] c"========================================\00"
define void @cmdMainScreenFunc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
ret void
}