#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(double, double);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i;
  i = 1;
  printf("Início\n");
  while (i <= 10) {
    int q = (int)pow((double)i, 2.0);
    int c = (int)pow((double)i, 3.0);
    printf("%4i", i);
    printf(" %4i", q);
    printf(" %4i", c);
    printf("\n");
    i = i + 1;
  }
  printf("Fim\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0xa,-0x8(%rbp)
jg     11c7 <main+0xa7>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xead(%rip),%xmm1
call   1040 <pow@plt>
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe90(%rip),%xmm1
call   1040 <pow@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <main+0x24>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xf06(%rip),%rdi
call   1040 <puts@plt>
movsd  0xea4(%rip),%xmm0
movsd  0xea4(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xe9c(%rip),%xmm1
movsd  0xe84(%rip),%xmm0
call   1060 <pow@plt>
mov    %rax,%rbx
lea    0xec6(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeaf(%rip),%r15
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xe3c(%rip),%xmm0
movaps %xmm0,%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xe29(%rip),%xmm0
movsd  0xe29(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xde7(%rip),%xmm0
movsd  0xdd7(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xdcf(%rip),%xmm0
movaps %xmm0,%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xd92(%rip),%xmm0
movsd  0xd7a(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xd7a(%rip),%xmm0
movsd  0xd6a(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xd38(%rip),%xmm0
movsd  0xd18(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xd20(%rip),%xmm0
movsd  0xd08(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xcde(%rip),%xmm0
movsd  0xcb6(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xcc6(%rip),%xmm0
movsd  0xca6(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xc84(%rip),%xmm0
movsd  0xc54(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xc6c(%rip),%xmm0
movsd  0xc44(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xc2a(%rip),%xmm0
movsd  0xbf2(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xc12(%rip),%xmm0
movsd  0xbe2(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xbd0(%rip),%xmm0
movsd  0xb90(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xbb8(%rip),%xmm0
movsd  0xb80(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  0xb76(%rip),%xmm0
movsd  0xb2e(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%r12
movsd  0xb5e(%rip),%xmm0
movsd  0xb1e(%rip),%xmm1
call   1060 <pow@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xb2a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"In\C3\ADcio\0A\00"
@.str.1 = [4 x i8] c"%4i\00"
@.str.2 = [5 x i8] c" %4i\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [5 x i8] c"Fim\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %9, %0
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 10
br i1 %8, label %9, label %27
9: ; preds = %6
%10 = load i32, i32* %2
%11 = sitofp i32 %10 to double
%12 = call i64 @pow(double %11, double 2.000000e+00)
%13 = trunc i64 %12 to i32
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = sitofp i32 %14 to double
%16 = call i64 @pow(double %15, double 3.000000e+00)
%17 = trunc i64 %16 to i32
store i32 %17, i32* %4
%18 = load i32, i32* %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %3
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %4
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %6
27: ; preds = %6
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%4i\00"
@.str.2 = [5 x i8] c" %4i\00"
@str = [8 x i8] c"In\C3\ADcio\00"
@str.5 = [4 x i8] c"Fim\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i64 @pow(double 1.000000e+00, double 2.000000e+00)
%3 = trunc i64 %2 to i32
%4 = tail call i64 @pow(double 1.000000e+00, double 3.000000e+00)
%5 = trunc i64 %4 to i32
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i64 @pow(double 2.000000e+00, double 2.000000e+00)
%11 = trunc i64 %10 to i32
%12 = tail call i64 @pow(double 2.000000e+00, double 3.000000e+00)
%13 = trunc i64 %12 to i32
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i64 @pow(double 3.000000e+00, double 2.000000e+00)
%19 = trunc i64 %18 to i32
%20 = tail call i64 @pow(double 3.000000e+00, double 3.000000e+00)
%21 = trunc i64 %20 to i32
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i64 @pow(double 4.000000e+00, double 2.000000e+00)
%27 = trunc i64 %26 to i32
%28 = tail call i64 @pow(double 4.000000e+00, double 3.000000e+00)
%29 = trunc i64 %28 to i32
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 4)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %29)
%33 = tail call i32 @putchar(i32 10)
%34 = tail call i64 @pow(double 5.000000e+00, double 2.000000e+00)
%35 = trunc i64 %34 to i32
%36 = tail call i64 @pow(double 5.000000e+00, double 3.000000e+00)
%37 = trunc i64 %36 to i32
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 5)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %35)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%41 = tail call i32 @putchar(i32 10)
%42 = tail call i64 @pow(double 6.000000e+00, double 2.000000e+00)
%43 = trunc i64 %42 to i32
%44 = tail call i64 @pow(double 6.000000e+00, double 3.000000e+00)
%45 = trunc i64 %44 to i32
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %43)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %45)
%49 = tail call i32 @putchar(i32 10)
%50 = tail call i64 @pow(double 7.000000e+00, double 2.000000e+00)
%51 = trunc i64 %50 to i32
%52 = tail call i64 @pow(double 7.000000e+00, double 3.000000e+00)
%53 = trunc i64 %52 to i32
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 7)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %51)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%57 = tail call i32 @putchar(i32 10)
%58 = tail call i64 @pow(double 8.000000e+00, double 2.000000e+00)
%59 = trunc i64 %58 to i32
%60 = tail call i64 @pow(double 8.000000e+00, double 3.000000e+00)
%61 = trunc i64 %60 to i32
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %59)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %61)
%65 = tail call i32 @putchar(i32 10)
%66 = tail call i64 @pow(double 9.000000e+00, double 2.000000e+00)
%67 = trunc i64 %66 to i32
%68 = tail call i64 @pow(double 9.000000e+00, double 3.000000e+00)
%69 = trunc i64 %68 to i32
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 9)
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %67)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %69)
%73 = tail call i32 @putchar(i32 10)
%74 = tail call i64 @pow(double 1.000000e+01, double 2.000000e+00)
%75 = trunc i64 %74 to i32
%76 = tail call i64 @pow(double 1.000000e+01, double 3.000000e+00)
%77 = trunc i64 %76 to i32
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 10)
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %75)
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%81 = tail call i32 @putchar(i32 10)
%82 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}