#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 EXIT_SUCCESS;
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main(void) {
  int n, i;
  double N[51];
  printf("½Ð¿é¤J¦³´X­Ó¥¿¤è§Î¡G");
  fflush(stdin);
  scanf("%d", &n);
  N[1] = 1;
  N[2] = 1;
  if ((n > 0) && (n < 50)) {
    for (i = 3; i <= n; i++)
      N[i] = N[i - 1] + N[i - 2];
    printf("²Ä%d­ÓªºÃäªø¬°¡G%.0lf", n, N[n]);
  } else
    printf("¿é¤J¿ù»~\7\7\7");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xec9(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movsd  0xe8a(%rip),%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  0xe7a(%rip),%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
cmpl   $0x0,-0x8(%rbp)
jle    1215 <main+0xe5>
cmpl   $0x32,-0x8(%rbp)
jge    1215 <main+0xe5>
movl   $0x3,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11f2 <main+0xc2>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x1b0(%rbp,%rax,8),%xmm0
ff ff
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
cltq
addsd  -0x1b0(%rbp,%rax,8),%xmm0
ff ff
movslq -0xc(%rbp),%rax
movsd  %xmm0,-0x1b0(%rbp,%rax,8)
ff ff
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a9 <main+0x79>
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm0
lea    0xe28(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1223 <main+0xf3>
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x1a8,%rsp
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xee4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
movapd 0xe94(%rip),%xmm0
movupd %xmm0,0x18(%rsp)
mov    0xc(%rsp),%edx
mov    %edx,%esi
lea    -0x1(%rsi),%eax
cmp    $0x30,%eax
ja     11d7 <main+0xa7>
movslq %esi,%r8
cmp    $0x3,%edx
jb     1279 <main+0x149>
add    $0x1,%rdx
movabs $0x4000000000000000,%rcx
mov    %rcx,0x28(%rsp)
cmp    $0x4,%edx
je     1279 <main+0x149>
lea    -0x5(%rdx),%rdi
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0x3,%rdi
jae    11ea <main+0xba>
mov    $0x3,%edi
movsd  0xe4c(%rip),%xmm0
mov    $0x4,%edx
test   %rcx,%rcx
jne    1260 <main+0x130>
jmp    1279 <main+0x149>
lea    0xe86(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    128e <main+0x15e>
add    $0xfffffffffffffffc,%rdx
and    $0xfffffffffffffffc,%rdx
neg    %rdx
movsd  0xe13(%rip),%xmm0
mov    $0x3,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addsd  0x8(%rsp,%rdi,8),%xmm0
movsd  %xmm0,0x18(%rsp,%rdi,8)
movsd  0x10(%rsp,%rdi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp,%rdi,8)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp,%rdi,8)
addsd  %xmm1,%xmm0
movsd  %xmm0,0x30(%rsp,%rdi,8)
lea    (%rdx,%rdi,1),%rax
add    $0x4,%rax
add    $0x4,%rdi
cmp    $0x3,%rax
jne    1210 <main+0xe0>
lea    0x1(%rdi),%rdx
test   %rcx,%rcx
je     1279 <main+0x149>
nopl   0x0(%rax,%rax,1)
addsd  0x8(%rsp,%rdi,8),%xmm0
movsd  %xmm0,0x10(%rsp,%rdx,8)
mov    %rdx,%rdi
add    $0x1,%rdx
add    $0xffffffffffffffff,%rcx
jne    1260 <main+0x130>
movsd  0x10(%rsp,%r8,8),%xmm0
lea    0xdba(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2d43(%rip),%rax
mov    (%rax),%eax
add    $0x1a8,%rsp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"\C2\BD\C3\90\C2\BF\C3\A9\C2\A4J\C2\A6\C2\B3\C2\B4X\C2\AD\C3\93\C2\A5\C2\BF\C2\A4\C3\A8\C2\A7\C3\8E\C2\A1G\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [35 x i8] c"\C2\B2\C3\84%d\C2\AD\C3\93\C2\AA\C2\BA\C3\83\C3\A4\C2\AA\C3\B8\C2\AC\C2\B0\C2\A1G%.0lf\00"
@.str.3 = [18 x i8] c"\C2\BF\C3\A9\C2\A4J\C2\BF\C3\B9\C2\BB~\07\07\07\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [51 x double]
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdin
%7 = call i32 @fflush(i32 %6)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 1
store double 1.000000e+00, double* %9
%10 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 2
store double 1.000000e+00, double* %10
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %46
13: ; preds = %0
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 50
br i1 %15, label %16, label %46
16: ; preds = %13
store i32 3, i32* %3
br label %17
17: ; preds = %36, %16
%18 = load i32, i32* %3
%19 = load i32, i32* %2
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %39
21: ; preds = %17
%22 = load i32, i32* %3
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 %24
%26 = load double, double* %25
%27 = load i32, i32* %3
%28 = sub nsw i32 %27, 2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 %29
%31 = load double, double* %30
%32 = fadd double %26, %31
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 %34
store double %32, double* %35
br label %36
36: ; preds = %21
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %17
39: ; preds = %17
%40 = load i32, i32* %2
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [51 x double], [51 x double]* %4, i64 0, i64 %42
%44 = load double, double* %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %40, double %44)
br label %48
46: ; preds = %13, %0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %48
48: ; preds = %46, %39
%49 = load i32, i32* @EXIT_SUCCESS
ret i32 %49
}

LLVM IR (-O2):
@.str = [38 x i8] c"\C2\BD\C3\90\C2\BF\C3\A9\C2\A4J\C2\A6\C2\B3\C2\B4X\C2\AD\C3\93\C2\A5\C2\BF\C2\A4\C3\A8\C2\A7\C3\8E\C2\A1G\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [35 x i8] c"\C2\B2\C3\84%d\C2\AD\C3\93\C2\AA\C2\BA\C3\83\C3\A4\C2\AA\C3\B8\C2\AC\C2\B0\C2\A1G%.0lf\00"
@.str.3 = [18 x i8] c"\C2\BF\C3\A9\C2\A4J\C2\BF\C3\B9\C2\BB~\07\07\07\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [51 x double]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [51 x double]* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdin
%7 = tail call i32 @fflush(i32 %6)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 1
%10 = bitcast double* %9 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %10
%11 = load i32, i32* %1
%12 = add i32 %11, -1
%13 = icmp ult i32 %12, 49
br i1 %13, label %14, label %80
14: ; preds = %0
%15 = icmp ult i32 %11, 3
br i1 %15, label %75, label %16
16: ; preds = %14
%17 = add nuw nsw i32 %11, 1
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 3
store double 2.000000e+00, double* %19
%20 = icmp eq i32 %17, 4
br i1 %20, label %75, label %21
21: ; preds = %16
%22 = add nsw i64 %18, -5
%23 = and i64 %18, 3
%24 = icmp ult i64 %22, 3
br i1 %24, label %57, label %25
25: ; preds = %21
%26 = add nsw i64 %18, -4
%27 = and i64 %26, -4
br label %28
28: ; preds = %28, %25
%29 = phi i64 [ 4, %25 ], [ %54, %28 ]
%30 = phi double [ 2.000000e+00, %25 ], [ %52, %28 ]
%31 = phi i64 [ 3, %25 ], [ %49, %28 ]
%32 = phi i64 [ 0, %25 ], [ %55, %28 ]
%33 = add nsw i64 %31, -1
%34 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %33
%35 = load double, double* %34
%36 = fadd double %30, %35
%37 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %29
store double %36, double* %37
%38 = or i64 %29, 1
%39 = add nsw i64 %29, -1
%40 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %39
%41 = load double, double* %40
%42 = fadd double %36, %41
%43 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %38
store double %42, double* %43
%44 = or i64 %29, 2
%45 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %29
%46 = load double, double* %45
%47 = fadd double %42, %46
%48 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %44
store double %47, double* %48
%49 = or i64 %29, 3
%50 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %38
%51 = load double, double* %50
%52 = fadd double %47, %51
%53 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %49
store double %52, double* %53
%54 = add nuw nsw i64 %29, 4
%55 = add i64 %32, 4
%56 = icmp eq i64 %55, %27
br i1 %56, label %57, label %28
57: ; preds = %28, %21
%58 = phi i64 [ 4, %21 ], [ %54, %28 ]
%59 = phi double [ 2.000000e+00, %21 ], [ %52, %28 ]
%60 = phi i64 [ 3, %21 ], [ %49, %28 ]
%61 = icmp eq i64 %23, 0
br i1 %61, label %75, label %62
62: ; preds = %57, %62
%63 = phi i64 [ %72, %62 ], [ %58, %57 ]
%64 = phi double [ %70, %62 ], [ %59, %57 ]
%65 = phi i64 [ %63, %62 ], [ %60, %57 ]
%66 = phi i64 [ %73, %62 ], [ 0, %57 ]
%67 = add nsw i64 %65, -1
%68 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %67
%69 = load double, double* %68
%70 = fadd double %64, %69
%71 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %63
store double %70, double* %71
%72 = add nuw nsw i64 %63, 1
%73 = add i64 %66, 1
%74 = icmp eq i64 %73, %23
br i1 %74, label %75, label %62
75: ; preds = %57, %62, %16, %14
%76 = sext i32 %11 to i64
%77 = getelementptr inbounds [51 x double], [51 x double]* %2, i64 0, i64 %76
%78 = load double, double* %77
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %11, double %78)
br label %82
80: ; preds = %0
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %82
82: ; preds = %80, %75
%83 = load i32, i32* @EXIT_SUCCESS
ret i32 %83
}