#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 */
typedef int /*<<< orphan*/ options;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, char *);
void PrintUserMenuChoices() {
  int i;
  char *options[] = {"Unos elementa u stablo",
                     "Pronalazak elementa po vrijednosti",
                     "Brisanje elementa po vrijednosti",
                     "Ispis svih elemenata stabla", "Izlaz"};
  for (i = 0; i < sizeof(options) / sizeof(char *); i++)
    printf("%d.\t%s\n", i + 1, options[i]);
}


x86 assembly (clang, -O0):
<PrintUserMenuChoices>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    0xec1(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xecd(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xee5(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xefb(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xf0c(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x5,%rax
jae    11ad <PrintUserMenuChoices+0x8d>
mov    -0x4(%rbp),%esi
add    $0x1,%esi
movslq -0x4(%rbp),%rax
mov    -0x30(%rbp,%rax,8),%rdx
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1176 <PrintUserMenuChoices+0x56>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintUserMenuChoices>:
push   %rbx
lea    0xf65(%rip),%rbx
lea    0xee1(%rip),%rdx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdx
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdx
mov    %rbx,%rdi
mov    $0x5,%esi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Unos elementa u stablo\00"
@.str.1 = [35 x i8] c"Pronalazak elementa po vrijednosti\00"
@.str.2 = [33 x i8] c"Brisanje elementa po vrijednosti\00"
@.str.3 = [28 x i8] c"Ispis svih elemenata stabla\00"
@.str.4 = [6 x i8] c"Izlaz\00"
@.str.5 = [8 x i8] c"%d.\09%s\0A\00"
define void @PrintUserMenuChoices() {
%1 = alloca i32
%2 = alloca [5 x i8*]
%3 = bitcast [5 x i8*]* %2 to i8*
%4 = bitcast i8* %3 to [5 x i8*]*
%5 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i32 0, i32 0
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i32 0, i32 0), i8** %5
%6 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i32 0, i32 1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i32 0, i32 2
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i32 0, i32 3
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i32 0, i32 4
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8** %9
store i32 0, i32* %1
br label %10
10: ; preds = %22, %0
%11 = load i32, i32* %1
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %12, 5
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
%17 = load i32, i32* %1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 %18
%20 = load i8*, i8** %19
%21 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %16, i8* %20)
br label %22
22: ; preds = %14
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
br label %10
25: ; preds = %10
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Unos elementa u stablo\00"
@.str.1 = [35 x i8] c"Pronalazak elementa po vrijednosti\00"
@.str.2 = [33 x i8] c"Brisanje elementa po vrijednosti\00"
@.str.3 = [28 x i8] c"Ispis svih elemenata stabla\00"
@.str.4 = [6 x i8] c"Izlaz\00"
@.str.5 = [8 x i8] c"%d.\09%s\0A\00"
define void @PrintUserMenuChoices() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
ret void
}