#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*/ printf(char *, int, ...);
int main() {
  unsigned long long int a = 2;
  unsigned long long int b = 1;
  unsigned long long int modA;
  unsigned long long int modB;
  unsigned long long int modSum;
  unsigned long long int c;
  unsigned long long int tempA;
  unsigned long long int tempB;
  int i;
  printf("%d\n", a);
  printf("%d\n", b);
  for (i = 1; i <= 98; i++) {
    tempA = a;
    tempB = b;
    if (a / 10000000000000000 > 0) {
      modA = a % 10000000000000000;
      modB = b % 10000000000000000;
      modSum = modA + modB;
      a /= 10000000000000000;
      b /= 10000000000000000;
      c = a + b;
      if (modSum / 100000000000000000 > 0) {
        c += 1;
        modSum = modSum % 10000000000000000;
      }
      printf("%d. %llu%llu \n", i, c, modSum);
      a = tempB;
      b = c * 10000000000000000 + modSum;
    } else {
      c = a + b;
      printf("%d. %llu \n", i, c);
      a = tempB;
      b = c;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x2,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%esi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    %eax,%esi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4c(%rbp)
cmpl   $0x62,-0x4c(%rbp)
jg     12ca <main+0x1ba>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
cmp    $0x0,%rax
jbe    1286 <main+0x176>
mov    -0x10(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
mov    %rdx,-0x28(%rbp)
mov    -0x20(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movabs $0x16345785d8a0000,%rcx
45 63 01
xor    %edx,%edx
div    %rcx
cmp    $0x0,%rax
jbe    1249 <main+0x139>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movabs $0x2386f26fc10000,%rcx
xor    %edx,%edx
div    %rcx
mov    %rdx,-0x30(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x10(%rbp)
movabs $0x2386f26fc10000,%rax
imul   -0x38(%rbp),%rax
add    -0x30(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    12b7 <main+0x1a7>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x38(%rbp),%rdx
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    12bc <main+0x1ac>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    115e <main+0x4e>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movabs $0x2386f26fc10000,%r12
lea    0xed4(%rip),%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%r13d
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%r15d
mov    $0x2,%ebx
jmp    118a <main+0x7a>
nopl   (%rax)
add    %r15,%rbx
lea    0xea9(%rip),%rdi
mov    %r13d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rbp
add    $0x1,%r13d
mov    %r15,%rbx
mov    %rbp,%r15
cmp    $0x63,%r13d
je     11ea <main+0xda>
cmp    %r12,%rbx
jb     1160 <main+0x50>
mov    %rbx,%rax
movabs $0x39a5652fb1137857,%rcx
65 a5 39
mul    %rcx
mov    %rdx,%rbp
shr    $0x33,%rbp
mov    %rbp,%rax
imul   %r12,%rax
sub    %rax,%rbx
mov    %r15,%rax
mul    %rcx
shr    $0x33,%rdx
add    %rdx,%rbp
imul   %r12,%rdx
mov    %r15,%r14
sub    %rdx,%r14
add    %rbx,%r14
lea    0xe33(%rip),%rdi
mov    %r13d,%esi
mov    %rbp,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
imul   %r12,%rbp
add    %r14,%rbp
jmp    117a <main+0x6a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [15 x i8] c"%d. %llu%llu \0A\00"
@.str.2 = [11 x i8] c"%d. %llu \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32
store i32 0, i32* %1
store i64 2, i64* %2
store i64 1, i64* %3
%11 = load i64, i64* %2
%12 = trunc i64 %11 to i32
%13 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = load i64, i64* %3
%15 = trunc i64 %14 to i32
%16 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
store i32 1, i32* %10
br label %17
17: ; preds = %69, %0
%18 = load i32, i32* %10
%19 = icmp sle i32 %18, 98
br i1 %19, label %20, label %72
20: ; preds = %17
%21 = load i64, i64* %2
store i64 %21, i64* %8
%22 = load i64, i64* %3
store i64 %22, i64* %9
%23 = load i64, i64* %2
%24 = udiv i64 %23, 10000000000000000
%25 = icmp ugt i64 %24, 0
br i1 %25, label %26, label %59
26: ; preds = %20
%27 = load i64, i64* %2
%28 = urem i64 %27, 10000000000000000
store i64 %28, i64* %4
%29 = load i64, i64* %3
%30 = urem i64 %29, 10000000000000000
store i64 %30, i64* %5
%31 = load i64, i64* %4
%32 = load i64, i64* %5
%33 = add i64 %31, %32
store i64 %33, i64* %6
%34 = load i64, i64* %2
%35 = udiv i64 %34, 10000000000000000
store i64 %35, i64* %2
%36 = load i64, i64* %3
%37 = udiv i64 %36, 10000000000000000
store i64 %37, i64* %3
%38 = load i64, i64* %2
%39 = load i64, i64* %3
%40 = add i64 %38, %39
store i64 %40, i64* %7
%41 = load i64, i64* %6
%42 = udiv i64 %41, 100000000000000000
%43 = icmp ugt i64 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %26
%45 = load i64, i64* %7
%46 = add i64 %45, 1
store i64 %46, i64* %7
%47 = load i64, i64* %6
%48 = urem i64 %47, 10000000000000000
store i64 %48, i64* %6
br label %49
49: ; preds = %44, %26
%50 = load i32, i32* %10
%51 = load i64, i64* %7
%52 = load i64, i64* %6
%53 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %50, i64 %51, i64 %52)
%54 = load i64, i64* %9
store i64 %54, i64* %2
%55 = load i64, i64* %7
%56 = mul i64 %55, 10000000000000000
%57 = load i64, i64* %6
%58 = add i64 %56, %57
store i64 %58, i64* %3
br label %68
59: ; preds = %20
%60 = load i64, i64* %2
%61 = load i64, i64* %3
%62 = add i64 %60, %61
store i64 %62, i64* %7
%63 = load i32, i32* %10
%64 = load i64, i64* %7
%65 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %63, i64 %64)
%66 = load i64, i64* %9
store i64 %66, i64* %2
%67 = load i64, i64* %7
store i64 %67, i64* %3
br label %68
68: ; preds = %59, %49
br label %69
69: ; preds = %68
%70 = load i32, i32* %10
%71 = add nsw i32 %70, 1
store i32 %71, i32* %10
br label %17
72: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [15 x i8] c"%d. %llu%llu \0A\00"
@.str.2 = [11 x i8] c"%d. %llu \0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
br label %3
3: ; preds = %0, %21
%4 = phi i32 [ 1, %0 ], [ %23, %21 ]
%5 = phi i64 [ 2, %0 ], [ %6, %21 ]
%6 = phi i64 [ 1, %0 ], [ %22, %21 ]
%7 = icmp ult i64 %5, 10000000000000000
br i1 %7, label %18, label %8
8: ; preds = %3
%9 = udiv i64 %5, 10000000000000000
%10 = urem i64 %5, 10000000000000000
%11 = urem i64 %6, 10000000000000000
%12 = add nuw nsw i64 %10, %11
%13 = udiv i64 %6, 10000000000000000
%14 = add nuw nsw i64 %9, %13
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %4, i64 %14, i64 %12)
%16 = mul i64 %14, 10000000000000000
%17 = add i64 %16, %12
br label %21
18: ; preds = %3
%19 = add i64 %5, %6
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %4, i64 %19)
br label %21
21: ; preds = %8, %18
%22 = phi i64 [ %17, %8 ], [ %19, %18 ]
%23 = add nuw nsw i32 %4, 1
%24 = icmp eq i32 %23, 99
br i1 %24, label %25, label %3
25: ; preds = %21
ret i32 0
}