#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 */
long long fib(long long);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, long long *);
int main() {
  long long int i, j, k;
  long long int t, n;
  scanf("%lld", &t);
  while (t--) {
    scanf("%lld", &n);
    if (n >= 0 && n <= 92) {
      i = fib(n);
      printf("%lld\n", i);
    } else
      printf("number is too large to compute fibonacci\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x28(%rbp)
cmp    $0x0,%rax
je     11c5 <main+0x95>
lea    0xe91(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <scanf@plt>
cmpq   $0x0,-0x30(%rbp)
jl     11b2 <main+0x82>
cmpq   $0x5c,-0x30(%rbp)
jg     11b2 <main+0x82>
mov    -0x30(%rbp),%rdi
call   1050 <fib@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c0 <main+0x90>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    114f <main+0x1f>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xeae(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
subq   $0x1,0x8(%rsp)
jb     11c0 <main+0x80>
lea    0xe95(%rip),%r14
lea    0x10(%rsp),%rbx
lea    0xe8e(%rip),%r15
lea    0xe8d(%rip),%r12
jmp    1190 <main+0x50>
mov    %r12,%rdi
call   1030 <puts@plt>
subq   $0x1,0x8(%rsp)
jb     11c0 <main+0x80>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%rdi
cmp    $0x5c,%rdi
ja     1180 <main+0x40>
call   1060 <fib@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
subq   $0x1,0x8(%rsp)
jae    1190 <main+0x50>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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