#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 int, unsigned int);
int main() {
  unsigned t1, t2, a = 6, b = 8, c = 35, d = 49;
  short i;
  for (i = 0; i < 10; i++) {
    printf("%10u%10u\n", a, b);
    t1 = c;
    t2 = d;
    c = c * 6 - a;
    d = d * 6 - b + 2;
    a = t1;
    b = t2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x6,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
movl   $0x23,-0x18(%rbp)
movl   $0x31,-0x1c(%rbp)
movw   $0x0,-0x1e(%rbp)
movswl -0x1e(%rbp),%eax
cmp    $0xa,%eax
jge    11a0 <main+0x90>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0xc(%rbp)
imul   $0x6,-0x18(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
imul   $0x6,-0x1c(%rbp),%eax
sub    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x1e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x1e(%rbp)
jmp    1141 <main+0x31>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x8,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x23,%esi
mov    $0x31,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xcc,%esi
mov    $0x120,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4a5,%esi
mov    $0x691,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1b12,%esi
mov    $0x2648,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x9dc7,%esi
mov    $0xdf21,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x39798,%esi
mov    $0x51480,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x14efc9,%esi
mov    $0x1d9be1,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7a071e,%esi
mov    $0xac92c8,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2c73aeb,%esi
mov    $0x3edd4d1,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%10u%10u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i16
store i32 0, i32* %1
store i32 6, i32* %4
store i32 8, i32* %5
store i32 35, i32* %6
store i32 49, i32* %7
store i16 0, i16* %8
br label %9
9: ; preds = %30, %0
%10 = load i16, i16* %8
%11 = sext i16 %10 to i32
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %33
13: ; preds = %9
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15)
%17 = load i32, i32* %6
store i32 %17, i32* %2
%18 = load i32, i32* %7
store i32 %18, i32* %3
%19 = load i32, i32* %6
%20 = mul i32 %19, 6
%21 = load i32, i32* %4
%22 = sub i32 %20, %21
store i32 %22, i32* %6
%23 = load i32, i32* %7
%24 = mul i32 %23, 6
%25 = load i32, i32* %5
%26 = sub i32 %24, %25
%27 = add i32 %26, 2
store i32 %27, i32* %7
%28 = load i32, i32* %2
store i32 %28, i32* %4
%29 = load i32, i32* %3
store i32 %29, i32* %5
br label %30
30: ; preds = %13
%31 = load i16, i16* %8
%32 = add i16 %31, 1
store i16 %32, i16* %8
br label %9
33: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%10u%10u\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 6, i32 8)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 35, i32 49)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 204, i32 288)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1189, i32 1681)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 6930, i32 9800)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 40391, i32 57121)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 235416, i32 332928)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1372105, i32 1940449)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 7997214, i32 11309768)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 46611179, i32 65918161)
ret i32 0
}