void main(void) {
  char a[3][10] = {"Hello", "New Line", "Once More"};
  int num = 0;
  printf("Enter Statement's Number:\a\n");
  scanf("%d", &num);
  printf("%s\n", get_statement(num, a));
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xec1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xeb9(%rip),%eax
mov    %eax,-0x8(%rbp)
mov    0xeb3(%rip),%ax
mov    %ax,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x24(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <get_statement@plt>
mov    %eax,%esi
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
movups 0xec3(%rip),%xmm0
movups %xmm0,0x1e(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
lea    0xea7(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%edi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <get_statement@plt>
lea    0xe87(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
@__const.main.a = [3 x [10 x i8]] [[10 x i8] c"Hello\00\00\00\00\00", [10 x i8] c"New Line\00\00", [10 x i8] c"Once More\00"]
@.str = [28 x i8] c"Enter Statement's Number:\07\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @main() {
%1 = alloca [3 x [10 x i8]]
%2 = alloca i32
%3 = bitcast [3 x [10 x i8]]* %1 to i8*
store i32 0, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %1, i64 0, i64 0
%8 = call i32 (i32, [10 x i8]*, ...) bitcast (i32 (...)* @get_statement to i32 (i32, [10 x i8]*, ...)*)(i32 %6, [10 x i8]* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %8)
ret void
}

LLVM IR (-O2):
@__const.main.a = [3 x [10 x i8]] [[10 x i8] c"Hello\00\00\00\00\00", [10 x i8] c"New Line\00\00", [10 x i8] c"Once More\00"]
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@str = [27 x i8] c"Enter Statement's Number:\07\00"
define void @main() {
%1 = alloca [3 x [10 x i8]]
%2 = alloca i32
%3 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %1, i64 0, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
%8 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %1, i64 0, i64 0
%9 = call i32 (i32, [10 x i8]*, ...) bitcast (i32 (...)* @get_statement to i32 (i32, [10 x i8]*, ...)*)(i32 %7, [10 x i8]* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %9)
ret void
}