#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[] = {"Izlist liste",
                     "Unos elementa na pocetak liste",
                     "Unos elementa na kraj liste",
                     "Pronalazak elementa po prezimenu",
                     "Brisanje elementa po prezimenu",
                     "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    $0x40,%rsp
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
lea    0xec1(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xed7(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xee8(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xefe(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xf12(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rax
cmp    $0x6,%rax
jae    11b8 <PrintUserMenuChoices+0x98>
mov    -0x4(%rbp),%esi
add    $0x1,%esi
movslq -0x4(%rbp),%rax
mov    -0x40(%rbp,%rax,8),%rdx
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1181 <PrintUserMenuChoices+0x61>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintUserMenuChoices>:
push   %rbx
lea    0xf76(%rip),%rbx
lea    0xee1(%rip),%rdx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdx
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdx
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdx
mov    %rbx,%rdi
mov    $0x6,%esi
pop    %rbx
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [13 x i8] c"Izlist liste\00"
@.str.1 = [31 x i8] c"Unos elementa na pocetak liste\00"
@.str.2 = [28 x i8] c"Unos elementa na kraj liste\00"
@.str.3 = [33 x i8] c"Pronalazak elementa po prezimenu\00"
@.str.4 = [31 x i8] c"Brisanje elementa po prezimenu\00"
@.str.5 = [6 x i8] c"Izlaz\00"
@.str.6 = [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.6, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret void
}