#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, int, int);
int main() {
  int n0 = 0, n1 = 1, n2 = 2, n3 = 3, n4 = 4, n5 = 5, n6 = 6, n7 = 7, n8 = 8,
      n9 = 9, n10 = 10;
  printf("numero    quadrado  cubo\n%-10i%-10i%-10i", n0, n0, n0);
  printf("\n%-10i%-10i%-10i", n1, n1 * n1, n1 * n1 * n1);
  printf("\n%-10i%-10i%-10i", n2, n2 * n2, n2 * n2 * n2);
  printf("\n%-10i%-10i%-10i", n3, n3 * n3, n3 * n3 * n3);
  printf("\n%-10i%-10i%-10i", n4, n4 * n4, n4 * n4 * n4);
  printf("\n%-10i%-10i%-10i", n5, n5 * n5, n5 * n5 * n5);
  printf("\n%-10i%-10i%-10i", n6, n6 * n6, n6 * n6 * n6);
  printf("\n%-10i%-10i%-10i", n7, n7 * n7, n7 * n7 * n7);
  printf("\n%-10i%-10i%-10i", n8, n8 * n8, n8 * n8 * n8);
  printf("\n%-10i%-10i%-10i", n9, n9 * n9, n9 * n9 * n9);
  printf("\n%-10i%-10i%-10i\n", n10, n10 * n10, n10 * n10 * n10);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
movl   $0x6,-0x1c(%rbp)
movl   $0x7,-0x20(%rbp)
movl   $0x8,-0x24(%rbp)
movl   $0x9,-0x28(%rbp)
movl   $0xa,-0x2c(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x4(%rbp),%ecx
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
imul   -0x8(%rbp),%edx
mov    -0x8(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x8(%rbp),%ecx
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
imul   -0xc(%rbp),%edx
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%edx
imul   -0x10(%rbp),%edx
mov    -0x10(%rbp),%ecx
imul   -0x10(%rbp),%ecx
imul   -0x10(%rbp),%ecx
lea    0xe40(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
imul   -0x14(%rbp),%edx
mov    -0x14(%rbp),%ecx
imul   -0x14(%rbp),%ecx
imul   -0x14(%rbp),%ecx
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
imul   -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
imul   -0x18(%rbp),%ecx
imul   -0x18(%rbp),%ecx
lea    0xdfe(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
mov    -0x1c(%rbp),%edx
imul   -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
lea    0xddd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
mov    -0x20(%rbp),%edx
imul   -0x20(%rbp),%edx
mov    -0x20(%rbp),%ecx
imul   -0x20(%rbp),%ecx
imul   -0x20(%rbp),%ecx
lea    0xdbc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
mov    -0x24(%rbp),%edx
imul   -0x24(%rbp),%edx
mov    -0x24(%rbp),%ecx
imul   -0x24(%rbp),%ecx
imul   -0x24(%rbp),%ecx
lea    0xd9b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
mov    -0x28(%rbp),%edx
imul   -0x28(%rbp),%edx
mov    -0x28(%rbp),%ecx
imul   -0x28(%rbp),%ecx
imul   -0x28(%rbp),%ecx
lea    0xd7a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
imul   -0x2c(%rbp),%edx
mov    -0x2c(%rbp),%ecx
imul   -0x2c(%rbp),%ecx
imul   -0x2c(%rbp),%ecx
lea    0xd6a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [41 x i8] c"numero quadrado cubo\0A%-10i%-10i%-10i\00"
@.str.1 = [17 x i8] c"\0A%-10i%-10i%-10i\00"
@.str.2 = [18 x i8] c"\0A%-10i%-10i%-10i\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
store i32 3, i32* %4
store i32 4, i32* %5
store i32 5, i32* %6
store i32 6, i32* %7
store i32 7, i32* %8
store i32 8, i32* %9
store i32 9, i32* %10
store i32 10, i32* %11
%12 = load i32, i32* %1
%13 = load i32, i32* %1
%14 = load i32, i32* %1
%15 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13, i32 %14)
%16 = load i32, i32* %2
%17 = load i32, i32* %2
%18 = load i32, i32* %2
%19 = mul nsw i32 %17, %18
%20 = load i32, i32* %2
%21 = load i32, i32* %2
%22 = mul nsw i32 %20, %21
%23 = load i32, i32* %2
%24 = mul nsw i32 %22, %23
%25 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %19, i32 %24)
%26 = load i32, i32* %3
%27 = load i32, i32* %3
%28 = load i32, i32* %3
%29 = mul nsw i32 %27, %28
%30 = load i32, i32* %3
%31 = load i32, i32* %3
%32 = mul nsw i32 %30, %31
%33 = load i32, i32* %3
%34 = mul nsw i32 %32, %33
%35 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %26, i32 %29, i32 %34)
%36 = load i32, i32* %4
%37 = load i32, i32* %4
%38 = load i32, i32* %4
%39 = mul nsw i32 %37, %38
%40 = load i32, i32* %4
%41 = load i32, i32* %4
%42 = mul nsw i32 %40, %41
%43 = load i32, i32* %4
%44 = mul nsw i32 %42, %43
%45 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %36, i32 %39, i32 %44)
%46 = load i32, i32* %5
%47 = load i32, i32* %5
%48 = load i32, i32* %5
%49 = mul nsw i32 %47, %48
%50 = load i32, i32* %5
%51 = load i32, i32* %5
%52 = mul nsw i32 %50, %51
%53 = load i32, i32* %5
%54 = mul nsw i32 %52, %53
%55 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %49, i32 %54)
%56 = load i32, i32* %6
%57 = load i32, i32* %6
%58 = load i32, i32* %6
%59 = mul nsw i32 %57, %58
%60 = load i32, i32* %6
%61 = load i32, i32* %6
%62 = mul nsw i32 %60, %61
%63 = load i32, i32* %6
%64 = mul nsw i32 %62, %63
%65 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %56, i32 %59, i32 %64)
%66 = load i32, i32* %7
%67 = load i32, i32* %7
%68 = load i32, i32* %7
%69 = mul nsw i32 %67, %68
%70 = load i32, i32* %7
%71 = load i32, i32* %7
%72 = mul nsw i32 %70, %71
%73 = load i32, i32* %7
%74 = mul nsw i32 %72, %73
%75 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %66, i32 %69, i32 %74)
%76 = load i32, i32* %8
%77 = load i32, i32* %8
%78 = load i32, i32* %8
%79 = mul nsw i32 %77, %78
%80 = load i32, i32* %8
%81 = load i32, i32* %8
%82 = mul nsw i32 %80, %81
%83 = load i32, i32* %8
%84 = mul nsw i32 %82, %83
%85 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %76, i32 %79, i32 %84)
%86 = load i32, i32* %9
%87 = load i32, i32* %9
%88 = load i32, i32* %9
%89 = mul nsw i32 %87, %88
%90 = load i32, i32* %9
%91 = load i32, i32* %9
%92 = mul nsw i32 %90, %91
%93 = load i32, i32* %9
%94 = mul nsw i32 %92, %93
%95 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %86, i32 %89, i32 %94)
%96 = load i32, i32* %10
%97 = load i32, i32* %10
%98 = load i32, i32* %10
%99 = mul nsw i32 %97, %98
%100 = load i32, i32* %10
%101 = load i32, i32* %10
%102 = mul nsw i32 %100, %101
%103 = load i32, i32* %10
%104 = mul nsw i32 %102, %103
%105 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %96, i32 %99, i32 %104)
%106 = load i32, i32* %11
%107 = load i32, i32* %11
%108 = load i32, i32* %11
%109 = mul nsw i32 %107, %108
%110 = load i32, i32* %11
%111 = load i32, i32* %11
%112 = mul nsw i32 %110, %111
%113 = load i32, i32* %11
%114 = mul nsw i32 %112, %113
%115 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %106, i32 %109, i32 %114)
ret i32 0
}

LLVM IR (-O2):
@.str = [41 x i8] c"numero quadrado cubo\0A%-10i%-10i%-10i\00"
@.str.1 = [17 x i8] c"\0A%-10i%-10i%-10i\00"
@.str.2 = [18 x i8] c"\0A%-10i%-10i%-10i\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 1, i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 4, i32 8)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 9, i32 27)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 16, i32 64)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 25, i32 125)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 36, i32 216)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 49, i32 343)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 64, i32 512)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 81, i32 729)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 10, i32 100, i32 1000)
ret i32 0
}