#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 *, ...);
void main() {
  int sq, cu;
  int num = 0;
  printf("-------------------\n");
  printf("|Number|Square|Cube");
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d     |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d     |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d     |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d     |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d     |%d    |%d", num, sq, cu);
  num = num + 1;
  sq = num * num;
  cu = num * num * num;
  printf("\n|%d    |%d   |%d", num, sq, cu);
  printf("\n-------------------");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0xc(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xcbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x4,%edx
mov    $0x8,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x9,%edx
mov    $0x1b,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe85(%rip),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x10,%edx
mov    $0x40,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x19,%edx
mov    $0x7d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x24,%edx
mov    $0xd8,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x31,%edx
mov    $0x157,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x40,%edx
mov    $0x200,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x51,%edx
mov    $0x2d9,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdfc(%rip),%rdi
mov    $0xa,%esi
mov    $0x64,%edx
mov    $0x3e8,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"-------------------\0A\00"
@.str.1 = [20 x i8] c"|Number|Square|Cube\00"
@.str.2 = [21 x i8] c"\0A|%d |%d |%d\00"
@.str.3 = [20 x i8] c"\0A|%d |%d |%d\00"
@.str.4 = [18 x i8] c"\0A|%d |%d |%d\00"
@.str.5 = [21 x i8] c"\0A-------------------\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %3
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* %3
%7 = load i32, i32* %3
%8 = mul nsw i32 %6, %7
store i32 %8, i32* %1
%9 = load i32, i32* %3
%10 = load i32, i32* %3
%11 = mul nsw i32 %9, %10
%12 = load i32, i32* %3
%13 = mul nsw i32 %11, %12
store i32 %13, i32* %2
%14 = load i32, i32* %3
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %15, i32 %16)
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
%20 = load i32, i32* %3
%21 = load i32, i32* %3
%22 = mul nsw i32 %20, %21
store i32 %22, i32* %1
%23 = load i32, i32* %3
%24 = load i32, i32* %3
%25 = mul nsw i32 %23, %24
%26 = load i32, i32* %3
%27 = mul nsw i32 %25, %26
store i32 %27, i32* %2
%28 = load i32, i32* %3
%29 = load i32, i32* %1
%30 = load i32, i32* %2
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
%34 = load i32, i32* %3
%35 = load i32, i32* %3
%36 = mul nsw i32 %34, %35
store i32 %36, i32* %1
%37 = load i32, i32* %3
%38 = load i32, i32* %3
%39 = mul nsw i32 %37, %38
%40 = load i32, i32* %3
%41 = mul nsw i32 %39, %40
store i32 %41, i32* %2
%42 = load i32, i32* %3
%43 = load i32, i32* %1
%44 = load i32, i32* %2
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %42, i32 %43, i32 %44)
%46 = load i32, i32* %3
%47 = add nsw i32 %46, 1
store i32 %47, i32* %3
%48 = load i32, i32* %3
%49 = load i32, i32* %3
%50 = mul nsw i32 %48, %49
store i32 %50, i32* %1
%51 = load i32, i32* %3
%52 = load i32, i32* %3
%53 = mul nsw i32 %51, %52
%54 = load i32, i32* %3
%55 = mul nsw i32 %53, %54
store i32 %55, i32* %2
%56 = load i32, i32* %3
%57 = load i32, i32* %1
%58 = load i32, i32* %2
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %56, i32 %57, i32 %58)
%60 = load i32, i32* %3
%61 = add nsw i32 %60, 1
store i32 %61, i32* %3
%62 = load i32, i32* %3
%63 = load i32, i32* %3
%64 = mul nsw i32 %62, %63
store i32 %64, i32* %1
%65 = load i32, i32* %3
%66 = load i32, i32* %3
%67 = mul nsw i32 %65, %66
%68 = load i32, i32* %3
%69 = mul nsw i32 %67, %68
store i32 %69, i32* %2
%70 = load i32, i32* %3
%71 = load i32, i32* %1
%72 = load i32, i32* %2
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %70, i32 %71, i32 %72)
%74 = load i32, i32* %3
%75 = add nsw i32 %74, 1
store i32 %75, i32* %3
%76 = load i32, i32* %3
%77 = load i32, i32* %3
%78 = mul nsw i32 %76, %77
store i32 %78, i32* %1
%79 = load i32, i32* %3
%80 = load i32, i32* %3
%81 = mul nsw i32 %79, %80
%82 = load i32, i32* %3
%83 = mul nsw i32 %81, %82
store i32 %83, i32* %2
%84 = load i32, i32* %3
%85 = load i32, i32* %1
%86 = load i32, i32* %2
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %84, i32 %85, i32 %86)
%88 = load i32, i32* %3
%89 = add nsw i32 %88, 1
store i32 %89, i32* %3
%90 = load i32, i32* %3
%91 = load i32, i32* %3
%92 = mul nsw i32 %90, %91
store i32 %92, i32* %1
%93 = load i32, i32* %3
%94 = load i32, i32* %3
%95 = mul nsw i32 %93, %94
%96 = load i32, i32* %3
%97 = mul nsw i32 %95, %96
store i32 %97, i32* %2
%98 = load i32, i32* %3
%99 = load i32, i32* %1
%100 = load i32, i32* %2
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %98, i32 %99, i32 %100)
%102 = load i32, i32* %3
%103 = add nsw i32 %102, 1
store i32 %103, i32* %3
%104 = load i32, i32* %3
%105 = load i32, i32* %3
%106 = mul nsw i32 %104, %105
store i32 %106, i32* %1
%107 = load i32, i32* %3
%108 = load i32, i32* %3
%109 = mul nsw i32 %107, %108
%110 = load i32, i32* %3
%111 = mul nsw i32 %109, %110
store i32 %111, i32* %2
%112 = load i32, i32* %3
%113 = load i32, i32* %1
%114 = load i32, i32* %2
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %112, i32 %113, i32 %114)
%116 = load i32, i32* %3
%117 = add nsw i32 %116, 1
store i32 %117, i32* %3
%118 = load i32, i32* %3
%119 = load i32, i32* %3
%120 = mul nsw i32 %118, %119
store i32 %120, i32* %1
%121 = load i32, i32* %3
%122 = load i32, i32* %3
%123 = mul nsw i32 %121, %122
%124 = load i32, i32* %3
%125 = mul nsw i32 %123, %124
store i32 %125, i32* %2
%126 = load i32, i32* %3
%127 = load i32, i32* %1
%128 = load i32, i32* %2
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %126, i32 %127, i32 %128)
%130 = load i32, i32* %3
%131 = add nsw i32 %130, 1
store i32 %131, i32* %3
%132 = load i32, i32* %3
%133 = load i32, i32* %3
%134 = mul nsw i32 %132, %133
store i32 %134, i32* %1
%135 = load i32, i32* %3
%136 = load i32, i32* %3
%137 = mul nsw i32 %135, %136
%138 = load i32, i32* %3
%139 = mul nsw i32 %137, %138
store i32 %139, i32* %2
%140 = load i32, i32* %3
%141 = load i32, i32* %1
%142 = load i32, i32* %2
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %140, i32 %141, i32 %142)
%144 = load i32, i32* %3
%145 = add nsw i32 %144, 1
store i32 %145, i32* %3
%146 = load i32, i32* %3
%147 = load i32, i32* %3
%148 = mul nsw i32 %146, %147
store i32 %148, i32* %1
%149 = load i32, i32* %3
%150 = load i32, i32* %3
%151 = mul nsw i32 %149, %150
%152 = load i32, i32* %3
%153 = mul nsw i32 %151, %152
store i32 %153, i32* %2
%154 = load i32, i32* %3
%155 = load i32, i32* %1
%156 = load i32, i32* %2
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %154, i32 %155, i32 %156)
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [20 x i8] c"|Number|Square|Cube\00"
@.str.2 = [21 x i8] c"\0A|%d |%d |%d\00"
@.str.3 = [20 x i8] c"\0A|%d |%d |%d\00"
@.str.4 = [18 x i8] c"\0A|%d |%d |%d\00"
@.str.5 = [21 x i8] c"\0A-------------------\00"
@str = [20 x i8] c"-------------------\00"
define void @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 1, i32 1)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 4, i32 8)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 9, i32 27)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 16, i32 64)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 25, i32 125)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 6, i32 36, i32 216)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 49, i32 343)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 64, i32 512)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 9, i32 81, i32 729)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 10, i32 100, i32 1000)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
ret void
}