#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() {
  unsigned long long int a, b, c;
  int br, ostatukA, ostatukB, obshtOstatuk;
  a = 2;
  b = 1;
  printf("%llu, %llu, ", a, b);
  for (br = 0; br <= 90; br++) {
    c = a + b;
    a = b;
    b = c;
    printf("%llu, ", c);
  }
  ostatukA = a % 100;
  a = a / 100;
  ostatukB = b % 100;
  b = b / 100;
  for (br = 1; br <= 8; br++) {
    obshtOstatuk = ostatukA + ostatukB;
    c = a + b;
    if (obshtOstatuk >= 100) {
      c = c + 1;
      obshtOstatuk = obshtOstatuk % 100;
    }
    a = b;
    b = c;
    ostatukA = ostatukB;
    ostatukB = obshtOstatuk;
    printf("%llu%d , ", c, obshtOstatuk);
  }
  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),%rsi
mov    -0x18(%rbp),%rdx
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x5a,-0x24(%rbp)
jg     1192 <main+0x82>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114c <main+0x3c>
mov    -0x10(%rbp),%rax
mov    $0x64,%ecx
xor    %edx,%edx
div    %rcx
mov    %edx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x64,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
mov    $0x64,%ecx
xor    %edx,%edx
div    %rcx
mov    %edx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    $0x64,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x18(%rbp)
movl   $0x1,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jg     1265 <main+0x155>
mov    -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x64,-0x30(%rbp)
jl     1226 <main+0x116>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%edx
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e3 <main+0xd3>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
lea    0xee1(%rip),%rdi
mov    $0x2,%ebx
mov    $0x1,%r15d
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x5b,%ebp
lea    0xebf(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %r15,%r12
add    %r15,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%r15
mov    %r12,%rbx
add    $0xffffffff,%ebp
jne    1150 <main+0x40>
lea    0xe98(%rip),%rbx
movabs $0x3c931af076b729f,%rsi
31 c9 03
mov    %rbx,%rdi
mov    $0x60,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x620305f915ce716,%rsi
30 20 06
mov    %rbx,%rdi
mov    $0x2b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x9e9620e98c859b6,%rsi
62 e9 09
mov    %rbx,%rdi
mov    $0x27,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x1009926e2a2540cc,%rsi
92 09 10
mov    %rbx,%rdi
mov    $0x52,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x19f2f47cc2ed9a83,%rsi
f4 f2 19
mov    %rbx,%rdi
mov    $0x15,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x29fc86eaed12db50,%rsi
86 fc 29
mov    %rbx,%rdi
mov    $0x3,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x43ef7b67b00075d3,%rsi
7b ef 43
mov    %rbx,%rdi
mov    $0x18,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movabs $0x6dec02529d135123,%rsi
02 ec 6d
mov    %rbx,%rdi
mov    $0x1b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"%llu, %llu, \00"
@.str.1 = [7 x i8] c"%llu, \00"
@.str.2 = [10 x i8] c"%llu%d , \00"
define i32 @main() {
%1 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 2, i64 1)
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %8, %2 ]
%4 = phi i64 [ 1, %0 ], [ %6, %2 ]
%5 = phi i64 [ 2, %0 ], [ %4, %2 ]
%6 = add i64 %4, %5
%7 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 %6)
%8 = add nuw nsw i32 %3, 1
%9 = icmp eq i32 %8, 91
br i1 %9, label %10, label %2
10: ; preds = %2
%11 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 272803880246145695, i32 96)
%12 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 441405950501119766, i32 43)
%13 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 714209830747265462, i32 39)
%14 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 1155615781248385228, i32 82)
%15 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 1869825611995650691, i32 21)
%16 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 3025441393244035920, i32 3)
%17 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 4895267005239686611, i32 24)
%18 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i64 7920708398483722531, i32 27)
ret i32 0
}