#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*/ fiboValueReturn(long long);
int /*<<< orphan*/ initialize();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, long long *);
int main() {
  long long int i, n;
  scanf("%lld", &n);
  initialize();
  for (i = 0; i <= n; i++) {
    printf("%lld ", fiboValueReturn(i));
  }
  printf("\n\n");
  printf("%lld\n\n", fiboValueReturn(n));
  printf("%lld\n", fiboValueReturn(n + 1));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
mov    $0x0,%al
call   1040 <initialize@plt>
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jg     11a6 <main+0x66>
mov    -0x10(%rbp),%rdi
call   1060 <fiboValueReturn@plt>
mov    %eax,%esi
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    116e <main+0x2e>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fiboValueReturn@plt>
mov    %eax,%esi
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
add    $0x1,%rdi
call   1060 <fiboValueReturn@plt>
mov    %eax,%esi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xea5(%rip),%rdi
mov    %rsp,%rsi
call   1060 <scanf@plt>
xor    %eax,%eax
call   1050 <initialize@plt>
cmpq   $0x0,(%rsp)
js     119e <main+0x4e>
mov    $0xffffffffffffffff,%rbx
lea    0xe86(%rip),%r14
nop
add    $0x1,%rbx
mov    %rbx,%rdi
call   1070 <fiboValueReturn@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    (%rsp),%rbx
jl     1180 <main+0x30>
lea    0xe6b(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%rdi
call   1070 <fiboValueReturn@plt>
lea    0xe51(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%rdi
add    $0x1,%rdi
call   1070 <fiboValueReturn@plt>
lea    0xe3b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [6 x i8] c"%lld \00"
@.str.2 = [3 x i8] c"\0A\0A\00"
@.str.3 = [7 x i8] c"%lld\0A\0A\00"
@.str.4 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %3)
%5 = call i32 (...) @initialize()
store i64 0, i64* %2
br label %6
6: ; preds = %14, %0
%7 = load i64, i64* %2
%8 = load i64, i64* %3
%9 = icmp sle i64 %7, %8
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i64, i64* %2
%12 = call i32 @fiboValueReturn(i64 %11)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %10
%15 = load i64, i64* %2
%16 = add nsw i64 %15, 1
store i64 %16, i64* %2
br label %6
17: ; preds = %6
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%19 = load i64, i64* %3
%20 = call i32 @fiboValueReturn(i64 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%22 = load i64, i64* %3
%23 = add nsw i64 %22, 1
%24 = call i32 @fiboValueReturn(i64 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [6 x i8] c"%lld \00"
@.str.3 = [7 x i8] c"%lld\0A\0A\00"
@.str.4 = [6 x i8] c"%lld\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = call i32 (...) @initialize()
%5 = load i64, i64* %1
%6 = icmp slt i64 %5, 0
br i1 %6, label %14, label %7
7: ; preds = %0, %7
%8 = phi i64 [ %11, %7 ], [ 0, %0 ]
%9 = call i32 @fiboValueReturn(i64 %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %8, 1
%12 = load i64, i64* %1
%13 = icmp slt i64 %8, %12
br i1 %13, label %7, label %14
14: ; preds = %7, %0
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%16 = load i64, i64* %1
%17 = call i32 @fiboValueReturn(i64 %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = load i64, i64* %1
%20 = add nsw i64 %19, 1
%21 = call i32 @fiboValueReturn(i64 %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %21)
ret i32 0
}