#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 */
double pow(double, double);
void milk() {
  double wf = 0.0;
  double eta_fat = 1.46;
  double eta_cas = 1.503;
  double r_min_fat = 0.005 * 1000.0;
  double r_max_fat = 10.0 * 1000.0;
  double r_min_cas = 0.0;
  double r_max_cas = 150.0;
  double c_v_fat = 0.6;
  double r_vs_fat;
  double r_43_fat;
  if (wf < 2.0) {
    r_43_fat = -0.2528 * wf * wf + 1.419 * wf;
  } else {
    r_43_fat = 1.456 * pow(wf, 0.36);
  }
  r_vs_fat = r_43_fat / (c_v_fat * c_v_fat + 1.0);
}


x86 assembly (clang, -O0):
<milk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  0xf08(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xef3(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xede(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeac(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe97(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe82(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    11ba <milk+0xaa>
movsd  0xebf(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0xea5(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    11e0 <milk+0xd0>
movsd  -0x8(%rbp),%xmm0
movsd  0xe79(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe61(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe5d(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<milk>:
ret

LLVM IR (-O0):
define void @milk() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double 0.000000e+00, double* %1
store double 1.460000e+00, double* %2
store double 1.503000e+00, double* %3
store double 5.000000e+00, double* %4
store double 1.000000e+04, double* %5
store double 0.000000e+00, double* %6
store double 1.500000e+02, double* %7
store double 6.000000e-01, double* %8
%11 = load double, double* %1
%12 = fcmp olt double %11, 2.000000e+00
br i1 %12, label %13, label %20
13: ; preds = %0
%14 = load double, double* %1
%15 = fmul double -2.528000e-01, %14
%16 = load double, double* %1
%17 = load double, double* %1
%18 = fmul double 1.419000e+00, %17
%19 = call double @llvm.fmuladd.f64(double %15, double %16, double %18)
store double %19, double* %10
br label %24
20: ; preds = %0
%21 = load double, double* %1
%22 = call double @pow(double %21, double 3.600000e-01)
%23 = fmul double 1.456000e+00, %22
store double %23, double* %10
br label %24
24: ; preds = %20, %13
%25 = load double, double* %10
%26 = load double, double* %8
%27 = load double, double* %8
%28 = call double @llvm.fmuladd.f64(double %26, double %27, double 1.000000e+00)
%29 = fdiv double %25, %28
store double %29, double* %9
ret void
}

LLVM IR (-O2):
define void @milk() {
ret void
}