#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 main(void) {
  int i, r;
  long int tmp0front, tmp1front, tmp2front, tmp0back, tmp1back, tmp2back;
  i = 2;
  tmp0back = 1;
  tmp1back = 2;
  tmp0front = 0;
  tmp1front = 0;
  r = 0;
  printf("%li, %li, ", tmp0back, tmp1back);
  while (i < 98) {
    tmp2back = tmp0back + tmp1back;
    if ((tmp2back / 10000000) > 0) {
      r = tmp2back / 10000000;
      tmp2back = tmp2back % 10000000;
    }
    tmp2front = tmp0front + tmp1front + r;
    if (tmp2front > 0)
      printf("%li%07li", tmp2front, tmp2back);
    else
      printf("%li", tmp2back);
    tmp0front = tmp1front;
    tmp1front = tmp2front;
    tmp0back = tmp1back;
    tmp1back = tmp2back;
    r = 0;
    if (i < 97)
      printf(", ");
    i++;
  }
  printf("\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movq   $0x1,-0x30(%rbp)
movq   $0x2,-0x38(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x62,-0x8(%rbp)
jge    124c <main+0x13c>
mov    -0x30(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    $0x989680,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rax
jle    11b4 <main+0xa4>
mov    -0x40(%rbp),%rax
mov    $0x989680,%ecx
cqto
idiv   %rcx
mov    %eax,-0xc(%rbp)
mov    -0x40(%rbp),%rax
mov    $0x989680,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x40(%rbp)
mov    -0x18(%rbp),%rax
add    -0x20(%rbp),%rax
movslq -0xc(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jle    11ed <main+0xdd>
mov    -0x28(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ff <main+0xef>
mov    -0x40(%rbp),%rsi
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61,-0x8(%rbp)
jge    123e <main+0x12e>
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1163 <main+0x53>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
mov    $0x1,%ebp
mov    $0x2,%ebx
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x2,%r15d
lea    0xeb1(%rip),%r12
xor    %r13d,%r13d
xor    %r14d,%r14d
jmp    117e <main+0x5e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15d
cmp    $0x62,%r15d
je     120e <main+0xee>
mov    %r14,%rax
mov    %r13,%r14
mov    %rbp,%rcx
mov    %rbx,%rbp
add    %rbx,%rcx
mov    %ecx,%edx
imul   $0x6b5fca6b,%rdx,%rdx
shr    $0x36,%rdx
imul   $0x989680,%edx,%edx
mov    %ecx,%ebx
sub    %edx,%ebx
xor    %edx,%edx
cmp    $0x989680,%rcx
setge  %dl
cmovl  %rcx,%rbx
add    %r13,%rax
mov    %rax,%r13
add    %rdx,%r13
jle    11e0 <main+0xc0>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x60,%r15d
ja     1170 <main+0x50>
jmp    11fb <main+0xdb>
nopw   0x0(%rax,%rax,1)
lea    0xe2d(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x60,%r15d
ja     1170 <main+0x50>
lea    0xe06(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1170 <main+0x50>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%li, %li, \00"
@.str.1 = [9 x i8] c"%li%07li\00"
@.str.2 = [4 x i8] c"%li\00"
@.str.3 = [3 x i8] c", \00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i64 1, i64 2)
br label %2
2: ; preds = %0, %26
%3 = phi i64 [ 2, %0 ], [ %14, %26 ]
%4 = phi i64 [ 1, %0 ], [ %3, %26 ]
%5 = phi i32 [ 2, %0 ], [ %27, %26 ]
%6 = phi i64 [ 0, %0 ], [ %16, %26 ]
%7 = phi i64 [ 0, %0 ], [ %6, %26 ]
%8 = add nsw i64 %3, %4
%9 = icmp sgt i64 %8, 9999999
%10 = trunc i64 %8 to i32
%11 = urem i32 %10, 10000000
%12 = zext i32 %11 to i64
%13 = zext i1 %9 to i64
%14 = select i1 %9, i64 %12, i64 %8
%15 = add nsw i64 %6, %7
%16 = add nsw i64 %15, %13
%17 = icmp sgt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i64 %16, i64 %14)
br label %22
20: ; preds = %2
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 %14)
br label %22
22: ; preds = %20, %18
%23 = icmp ult i32 %5, 97
br i1 %23, label %24, label %26
24: ; preds = %22
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
%27 = add nuw nsw i32 %5, 1
%28 = icmp eq i32 %27, 98
br i1 %28, label %29, label %2
29: ; preds = %26
%30 = tail call i32 @putchar(i32 10)
ret i32 0
}