#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 *, unsigned long long);
int main() {
  long long unsigned int x, y, z;
  x = 2;
  printf("%i, ", x);
  y = 1;
  printf("%i, ", y);
  z = 0;
  while (z < 98) {
    x = y + x;
    y = x + y;
    printf("%llu, ", x);
    printf("%llu, ", y);
    z++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
movq   $0x0,-0x20(%rbp)
cmpq   $0x62,-0x20(%rbp)
jae    11ab <main+0x9b>
mov    -0x18(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1157 <main+0x47>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%r15
mov    $0x2,%r14d
mov    $0x2,%esi
mov    %r15,%rdi
call   1030 <printf@plt>
mov    $0x1,%ebx
mov    $0x1,%esi
mov    %r15,%rdi
call   1030 <printf@plt>
mov    $0x62,%r12d
lea    0xeb4(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    %rbx,%r14
add    %r14,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0xffffffffffffffff,%r12
jne    1160 <main+0x50>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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