#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 *, double);
int main() {
  double f;
  double x = 77617;
  double y = 33096;
  f = 333.75 * y * y * y * y * y * y;
  f += x * x *
       (11 * x * x * y * y - y * y * y * y * y * y - 121 * y * y * y * y - 2);
  f += 5.5 * y * y * y * y * y * y * y * y;
  f += x / (2 * y);
  printf("Result is %f\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xf09(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xef4(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xedf(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xea2(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe41(%rip),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xdf6(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xde0(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xd91(%rip),%xmm1
mulsd  -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xdaa(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movsd  0xee0(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Result is %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
store double 7.761700e+04, double* %3
store double 3.309600e+04, double* %4
%5 = load double, double* %4
%6 = fmul double 3.337500e+02, %5
%7 = load double, double* %4
%8 = fmul double %6, %7
%9 = load double, double* %4
%10 = fmul double %8, %9
%11 = load double, double* %4
%12 = fmul double %10, %11
%13 = load double, double* %4
%14 = fmul double %12, %13
%15 = load double, double* %4
%16 = fmul double %14, %15
store double %16, double* %2
%17 = load double, double* %3
%18 = load double, double* %3
%19 = fmul double %17, %18
%20 = load double, double* %3
%21 = fmul double 1.100000e+01, %20
%22 = load double, double* %3
%23 = fmul double %21, %22
%24 = load double, double* %4
%25 = fmul double %23, %24
%26 = load double, double* %4
%27 = load double, double* %4
%28 = load double, double* %4
%29 = fmul double %27, %28
%30 = load double, double* %4
%31 = fmul double %29, %30
%32 = load double, double* %4
%33 = fmul double %31, %32
%34 = load double, double* %4
%35 = fmul double %33, %34
%36 = load double, double* %4
%37 = fmul double %35, %36
%38 = fneg double %37
%39 = call double @llvm.fmuladd.f64(double %25, double %26, double %38)
%40 = load double, double* %4
%41 = fmul double 1.210000e+02, %40
%42 = load double, double* %4
%43 = fmul double %41, %42
%44 = load double, double* %4
%45 = fmul double %43, %44
%46 = load double, double* %4
%47 = fneg double %45
%48 = call double @llvm.fmuladd.f64(double %47, double %46, double %39)
%49 = fsub double %48, 2.000000e+00
%50 = load double, double* %2
%51 = call double @llvm.fmuladd.f64(double %19, double %49, double %50)
store double %51, double* %2
%52 = load double, double* %4
%53 = fmul double 5.500000e+00, %52
%54 = load double, double* %4
%55 = fmul double %53, %54
%56 = load double, double* %4
%57 = fmul double %55, %56
%58 = load double, double* %4
%59 = fmul double %57, %58
%60 = load double, double* %4
%61 = fmul double %59, %60
%62 = load double, double* %4
%63 = fmul double %61, %62
%64 = load double, double* %4
%65 = fmul double %63, %64
%66 = load double, double* %4
%67 = load double, double* %2
%68 = call double @llvm.fmuladd.f64(double %65, double %66, double %67)
store double %68, double* %2
%69 = load double, double* %3
%70 = load double, double* %4
%71 = fmul double 2.000000e+00, %70
%72 = fdiv double %69, %71
%73 = load double, double* %2
%74 = fadd double %73, %72
store double %74, double* %2
%75 = load double, double* %2
%76 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double %75)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"Result is %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), double 0x443B7C0000000000)
ret i32 0
}