#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 *, float, float, float, float);
int /*<<< orphan*/ scanf(char *, float *, float *, float *);
int main() {
  float a, b, c, temp;
  float f1, f2, f3, f4;
  scanf("%f%f%f", &a, &b, &c);
  f1 = (a * b) / c;
  f2 = (a * a) + b + (5 * c);
  f3 = a * b * c + b + (c / 3 * 5) - 1;
  temp = (a * b * c);
  f4 = (temp * temp * temp) / 2;
  printf("%f\n%f\n%f\n%f\n", f1, f2, f3, f4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  0xe89(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  0xe57(%rip),%xmm2
divss  %xmm2,%xmm0
movss  0xe47(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe33(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  0xdfb(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x18(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm1
movss  -0x20(%rbp),%xmm2
movss  -0x24(%rbp),%xmm3
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xee5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm3
movss  0x10(%rsp),%xmm4
movaps %xmm3,%xmm5
mulss  %xmm4,%xmm5
movss  0xc(%rsp),%xmm2
movaps %xmm5,%xmm0
divss  %xmm2,%xmm0
mulss  %xmm3,%xmm3
addss  %xmm4,%xmm3
movss  0xe91(%rip),%xmm6
movaps %xmm2,%xmm1
mulss  %xmm6,%xmm1
addss  %xmm3,%xmm1
mulss  %xmm2,%xmm5
addss  %xmm5,%xmm4
divss  0xe7a(%rip),%xmm2
mulss  %xmm6,%xmm2
addss  %xmm4,%xmm2
addss  0xe6e(%rip),%xmm2
movaps %xmm5,%xmm3
mulss  %xmm5,%xmm3
mulss  %xmm5,%xmm3
mulss  0xe5f(%rip),%xmm3
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%f%f%f\00"
@.str.1 = [13 x i8] c"%f\0A%f\0A%f\0A%f\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 ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3)
%8 = load float, float* %1
%9 = load float, float* %2
%10 = fmul float %8, %9
%11 = load float, float* %3
%12 = fdiv float %10, %11
%13 = call float @llvm.fmuladd.f32(float %8, float %8, float %9)
%14 = call float @llvm.fmuladd.f32(float %11, float 5.000000e+00, float %13)
%15 = call float @llvm.fmuladd.f32(float %10, float %11, float %9)
%16 = fdiv float %11, 3.000000e+00
%17 = call float @llvm.fmuladd.f32(float %16, float 5.000000e+00, float %15)
%18 = fadd float %17, -1.000000e+00
%19 = fmul float %10, %11
%20 = fmul float %19, %19
%21 = fmul float %19, %20
%22 = fmul float %21, 5.000000e-01
%23 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %12, float %14, float %18, float %22)
ret i32 0
}