#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, unsigned long long);
int main() {
  unsigned long long int lz1, lz2, Lucaz;
  int m;
  lz1 = 2;
  lz2 = 1;
  printf("%llu\n%llu\n", lz1, lz2);
  for (m = 3; m < 101; m++) {
    Lucaz = lz1 + lz2;
    printf("%d => %llu\n", m, Lucaz);
    lz1 = lz2;
    lz2 = Lucaz;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x2,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%esi
mov    -0x18(%rbp),%rdx
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x3,-0x24(%rbp)
cmpl   $0x65,-0x24(%rbp)
jge    1193 <main+0x83>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114c <main+0x3c>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%rdi
mov    $0x1,%r12d
mov    $0x1,%edx
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%eax
mov    $0x3,%ebx
lea    0xec6(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%r15
add    %r12,%r15
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r15,%rdx
call   1030 <printf@plt>
add    $0x1,%ebx
mov    %r12,%rax
mov    %r15,%r12
cmp    $0x65,%ebx
jne    1150 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%llu\0A%llu\0A\00"
@.str.1 = [12 x i8] c"%d => %llu\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i64 1)
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 3, %0 ], [ %8, %2 ]
%4 = phi i64 [ 2, %0 ], [ %5, %2 ]
%5 = phi i64 [ 1, %0 ], [ %6, %2 ]
%6 = add i64 %4, %5
%7 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %3, i64 %6)
%8 = add nuw nsw i32 %3, 1
%9 = icmp eq i32 %8, 101
br i1 %9, label %10, label %2
10: ; preds = %2
ret i32 0
}