#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 */
float cbrt(int);
int /*<<< orphan*/ printf(char *, float, float, float, float);
int /*<<< orphan*/ scanf(char *, int *);
float sqrt(int);
int main() {
  int number = 0;
  float quadrado = 0.0;
  float cubo = 0.0;
  float raizq = 0.0;
  float raizc = 0.0;
  scanf("%d", &number);
  quadrado = number * number;
  cubo = number * number * number;
  raizq = sqrt(number);
  raizc = cbrt(number);
  printf("%.1f %.1f %.1f %.1f\n", quadrado, cubo, raizq, raizc);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe83(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <cbrt@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x0,0x8(%rsp)
lea    0xead(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%edi
mov    %edi,%eax
imul   %edi,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x14(%rsp)
imul   %edi,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x10(%rsp)
call   1060 <sqrt@plt>
movss  %xmm0,0xc(%rsp)
mov    0x8(%rsp),%edi
call   1040 <cbrt@plt>
movaps %xmm0,%xmm3
lea    0xe65(%rip),%rdi
movss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [21 x i8] c"%.1f %.1f %.1f %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
store float 0.000000e+00, float* %3
store float 0.000000e+00, float* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = mul nsw i32 %8, %9
%11 = sitofp i32 %10 to float
store float %11, float* %3
%12 = load i32, i32* %2
%13 = load i32, i32* %2
%14 = mul nsw i32 %12, %13
%15 = load i32, i32* %2
%16 = mul nsw i32 %14, %15
%17 = sitofp i32 %16 to float
store float %17, float* %4
%18 = load i32, i32* %2
%19 = call float @sqrt(i32 %18)
store float %19, float* %5
%20 = load i32, i32* %2
%21 = call float @cbrt(i32 %20)
store float %21, float* %6
%22 = load float, float* %3
%23 = load float, float* %4
%24 = load float, float* %5
%25 = load float, float* %6
%26 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), float %22, float %23, float %24, float %25)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [21 x i8] c"%.1f %.1f %.1f %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = mul nsw i32 %4, %4
%6 = sitofp i32 %5 to float
%7 = mul nsw i32 %5, %4
%8 = sitofp i32 %7 to float
%9 = call float @sqrt(i32 %4)
%10 = load i32, i32* %1
%11 = call float @cbrt(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), float %6, float %8, float %9, float %11)
ret i32 0
}