#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 */
scalar_t__ pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  printf("%-10s%-10s%-10s\n", "Number", "Square", "Cube");
  for (int i = 1; i < 10 + 1; i++) {
    printf("%-10d%-10d%-10d\n", i, (int)pow(i, 2), (int)pow(i, 3));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    0xecd(%rip),%rsi
lea    0xecd(%rip),%rdx
lea    0xecd(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0xb,-0x14(%rbp)
jge    11b1 <main+0x91>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    %eax,%ecx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0xedf(%rip),%rsi
lea    0xedf(%rip),%rdx
lea    0xedf(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x1,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
lea    0xeb5(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x2,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x3,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x4,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x4,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x5,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x5,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x6,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x6,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x6,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x7,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x7,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x7,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x8,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x8,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x9,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0x9,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0x9,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xa,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
mov    %rax,%rbx
mov    $0xa,%edi
mov    $0x3,%esi
call   1040 <pow@plt>
mov    %r14,%rdi
mov    $0xa,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [17 x i8] c"%-10s%-10s%-10s\0A\00"
@.str.1 = [7 x i8] c"Number\00"
@.str.2 = [7 x i8] c"Square\00"
@.str.3 = [5 x i8] c"Cube\00"
@.str.4 = [17 x i8] c"%-10d%-10d%-10d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %6
br label %8
8: ; preds = %20, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 11
br i1 %10, label %11, label %23
11: ; preds = %8
%12 = load i32, i32* %6
%13 = load i32, i32* %6
%14 = call i64 @pow(i32 %13, i32 2)
%15 = trunc i64 %14 to i32
%16 = load i32, i32* %6
%17 = call i64 @pow(i32 %16, i32 3)
%18 = trunc i64 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %12, i32 %15, i32 %18)
br label %20
20: ; preds = %11
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
br label %8
23: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"%-10s%-10s%-10s\0A\00"
@.str.1 = [7 x i8] c"Number\00"
@.str.2 = [7 x i8] c"Square\00"
@.str.3 = [5 x i8] c"Cube\00"
@.str.4 = [17 x i8] c"%-10d%-10d%-10d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i64 @pow(i32 1, i32 2)
%5 = trunc i64 %4 to i32
%6 = tail call i64 @pow(i32 1, i32 3)
%7 = trunc i64 %6 to i32
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 %5, i32 %7)
%9 = tail call i64 @pow(i32 2, i32 2)
%10 = trunc i64 %9 to i32
%11 = tail call i64 @pow(i32 2, i32 3)
%12 = trunc i64 %11 to i32
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 2, i32 %10, i32 %12)
%14 = tail call i64 @pow(i32 3, i32 2)
%15 = trunc i64 %14 to i32
%16 = tail call i64 @pow(i32 3, i32 3)
%17 = trunc i64 %16 to i32
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 3, i32 %15, i32 %17)
%19 = tail call i64 @pow(i32 4, i32 2)
%20 = trunc i64 %19 to i32
%21 = tail call i64 @pow(i32 4, i32 3)
%22 = trunc i64 %21 to i32
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 4, i32 %20, i32 %22)
%24 = tail call i64 @pow(i32 5, i32 2)
%25 = trunc i64 %24 to i32
%26 = tail call i64 @pow(i32 5, i32 3)
%27 = trunc i64 %26 to i32
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 5, i32 %25, i32 %27)
%29 = tail call i64 @pow(i32 6, i32 2)
%30 = trunc i64 %29 to i32
%31 = tail call i64 @pow(i32 6, i32 3)
%32 = trunc i64 %31 to i32
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 6, i32 %30, i32 %32)
%34 = tail call i64 @pow(i32 7, i32 2)
%35 = trunc i64 %34 to i32
%36 = tail call i64 @pow(i32 7, i32 3)
%37 = trunc i64 %36 to i32
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 7, i32 %35, i32 %37)
%39 = tail call i64 @pow(i32 8, i32 2)
%40 = trunc i64 %39 to i32
%41 = tail call i64 @pow(i32 8, i32 3)
%42 = trunc i64 %41 to i32
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 8, i32 %40, i32 %42)
%44 = tail call i64 @pow(i32 9, i32 2)
%45 = trunc i64 %44 to i32
%46 = tail call i64 @pow(i32 9, i32 3)
%47 = trunc i64 %46 to i32
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 9, i32 %45, i32 %47)
%49 = tail call i64 @pow(i32 10, i32 2)
%50 = trunc i64 %49 to i32
%51 = tail call i64 @pow(i32 10, i32 3)
%52 = trunc i64 %51 to i32
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 10, i32 %50, i32 %52)
ret i32 0
}