#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(float, int);
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float massaAviao, aceleracao, tempo;
  scanf("%f", &massaAviao);
  scanf("%f", &aceleracao);
  scanf("%f", &tempo);
  float velocidade = aceleracao * tempo;
  float velocidadeKm = velocidade * 3.6f;
  float tempo2 = (float)pow(tempo, 2);
  float comprimento = (aceleracao * tempo2) / 2;
  float velocidade2 = (float)pow(velocidade, 2);
  float massaKg = massaAviao * 1000;
  float trabalho = (massaKg * velocidade2) / 2;
  printf("%.2f\n", velocidadeKm);
  printf("%.2f\n", comprimento);
  printf("%.2f\n", trabalho);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xecd(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xead(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xe89(%rip),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  0xe4c(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe26(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
mulss  -0x20(%rbp),%xmm0
movss  0xe06(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x14(%rbp),%xmm0
lea    0xe00(%rip),%rdi
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
movss  -0x28(%rbp),%xmm0
lea    0xdde(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed0(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x18(%rsp),%xmm0
movss  0xc(%rsp),%xmm2
mulss  %xmm0,%xmm2
movss  %xmm2,0x8(%rsp)
movss  0xe7f(%rip),%xmm1
mulss  %xmm2,%xmm1
movss  %xmm1,0x14(%rsp)
mov    $0x2,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
mulss  0xc(%rsp),%xmm0
mulss  0xe59(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0x1c(%rsp),%xmm1
mulss  0xe31(%rip),%xmm1
mulss  %xmm0,%xmm1
mulss  0xe21(%rip),%xmm1
movss  %xmm1,0x8(%rsp)
lea    0xe1f(%rip),%rbx
mov    %rbx,%rdi
movss  0x14(%rsp),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0x10(%rsp),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0x8(%rsp),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [6 x i8] c"%.2f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%14 = load float, float* %2
%15 = load float, float* %3
%16 = fmul float %14, %15
store float %16, float* %4
%17 = load float, float* %4
%18 = fmul float %17, 0x400CCCCCC0000000
store float %18, float* %5
%19 = load float, float* %3
%20 = call i64 @pow(float %19, i32 2)
%21 = sitofp i64 %20 to float
store float %21, float* %6
%22 = load float, float* %2
%23 = load float, float* %6
%24 = fmul float %22, %23
%25 = fdiv float %24, 2.000000e+00
store float %25, float* %7
%26 = load float, float* %4
%27 = call i64 @pow(float %26, i32 2)
%28 = sitofp i64 %27 to float
store float %28, float* %8
%29 = load float, float* %1
%30 = fmul float %29, 1.000000e+03
store float %30, float* %9
%31 = load float, float* %9
%32 = load float, float* %8
%33 = fmul float %31, %32
%34 = fdiv float %33, 2.000000e+00
store float %34, float* %10
%35 = load float, float* %5
%36 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %35)
%37 = load float, float* %7
%38 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %37)
%39 = load float, float* %10
%40 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %39)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [6 x i8] c"%.2f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%10 = load float, float* %2
%11 = load float, float* %3
%12 = fmul float %10, %11
%13 = fmul float %12, 0x400CCCCCC0000000
%14 = call i64 @pow(float %11, i32 2)
%15 = sitofp i64 %14 to float
%16 = load float, float* %2
%17 = fmul float %16, %15
%18 = fmul float %17, 5.000000e-01
%19 = call i64 @pow(float %12, i32 2)
%20 = sitofp i64 %19 to float
%21 = load float, float* %1
%22 = fmul float %21, 1.000000e+03
%23 = fmul float %22, %20
%24 = fmul float %23, 5.000000e-01
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %13)
%26 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %18)
%27 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %24)
ret i32 0
}