#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 q, l1, l0, i, m, j, p;
  l1 = 1;
  l0 = 2;
  i = 0;
  p = 1;
  printf("%llu %llu", l0, l1);
  if (i = 0)
    ;
  {
    do {
      q = l1 + l0;
      m = l1;
      i = i + 1;
      printf(" %llu", q);
    } while (i != 1);
  }
  if (i >= 1)
    ;
  {
    do {
      j = q + m;
      m = q;
      q = j;
      i = i + 1;
      printf(" %llu", j);
    } while (i != 99);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x1,-0x18(%rbp)
movq   $0x2,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x1,-0x40(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x28(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    116c <main+0x5c>
jmp    1171 <main+0x61>
jmp    1171 <main+0x61>
jmp    1176 <main+0x66>
mov    -0x18(%rbp),%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpq   $0x1,-0x28(%rbp)
jne    1176 <main+0x66>
cmpq   $0x1,-0x28(%rbp)
jb     11c3 <main+0xb3>
jmp    11c3 <main+0xb3>
jmp    11c8 <main+0xb8>
mov    -0x10(%rbp),%rax
add    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpq   $0x63,-0x28(%rbp)
jne    11c8 <main+0xb8>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xee0(%rip),%rdi
mov    $0x1,%r12d
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec6(%rip),%r14
mov    $0x3,%r15d
mov    $0x3,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x62,%r13d
nopl   0x0(%rax)
mov    %r12,%rbx
add    %r15,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%r12
mov    %rbx,%r15
add    $0xffffffffffffffff,%r13
jne    1160 <main+0x50>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%llu %llu\00"
@.str.1 = [6 x i8] c" %llu\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
store i32 0, i32* %1
store i64 1, i64* %3
store i64 2, i64* %4
store i64 0, i64* %5
store i64 1, i64* %8
%9 = load i64, i64* %4
%10 = load i64, i64* %3
%11 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64 %9, i64 %10)
store i64 0, i64* %5
br i1 false, label %12, label %13
12: ; preds = %0
br label %13
13: ; preds = %12, %0
br label %14
14: ; preds = %23, %13
%15 = load i64, i64* %3
%16 = load i64, i64* %4
%17 = add i64 %15, %16
store i64 %17, i64* %2
%18 = load i64, i64* %3
store i64 %18, i64* %6
%19 = load i64, i64* %5
%20 = add i64 %19, 1
store i64 %20, i64* %5
%21 = load i64, i64* %2
%22 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %21)
br label %23
23: ; preds = %14
%24 = load i64, i64* %5
%25 = icmp ne i64 %24, 1
br i1 %25, label %14, label %26
26: ; preds = %23
%27 = load i64, i64* %5
%28 = icmp uge i64 %27, 1
br i1 %28, label %29, label %30
29: ; preds = %26
br label %30
30: ; preds = %29, %26
br label %31
31: ; preds = %41, %30
%32 = load i64, i64* %2
%33 = load i64, i64* %6
%34 = add i64 %32, %33
store i64 %34, i64* %7
%35 = load i64, i64* %2
store i64 %35, i64* %6
%36 = load i64, i64* %7
store i64 %36, i64* %2
%37 = load i64, i64* %5
%38 = add i64 %37, 1
store i64 %38, i64* %5
%39 = load i64, i64* %7
%40 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %39)
br label %41
41: ; preds = %31
%42 = load i64, i64* %5
%43 = icmp ne i64 %42, 99
br i1 %43, label %31, label %44
44: ; preds = %41
ret i32 0
}

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