void hr_f(double *vars, double *ret, double *params, double syn) {
  ret[0] = vars[1] + 3.0 * (vars[0] * vars[0]) - (vars[0] * vars[0] * vars[0]) -
           vars[2] + params[0] - syn;
  ret[1] = 1.0 - 5.0 * (vars[0] * vars[0]) - vars[1];
  ret[2] = (-vars[2] + params[2] * (vars[0] + 1.6)) * params[1];
  return;
}


x86 assembly (clang, -O0):
<hr_f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm1
movsd  0xee2(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
addsd  (%rax),%xmm0
subsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  0xe5d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe59(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0xdfe(%rip),%xmm2
addsd  (%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<hr_f>:
movsd  (%rdi),%xmm1
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
movsd  0xeec(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0x8(%rdi),%xmm3
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm3
subsd  0x10(%rdi),%xmm3
addsd  (%rdx),%xmm3
subsd  %xmm0,%xmm3
movsd  %xmm3,(%rsi)
movsd  (%rdi),%xmm0
mulsd  %xmm0,%xmm0
mulsd  0xec2(%rip),%xmm0
addsd  0xec2(%rip),%xmm0
subsd  0x8(%rdi),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  (%rdi),%xmm0
addsd  0xeb4(%rip),%xmm0
mulsd  0x10(%rdx),%xmm0
subsd  0x10(%rdi),%xmm0
mulsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x10(%rsi)
ret

LLVM IR (-O0):
define void @hr_f(double* %0, double* %1, double* %2, double %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double %3, double* %8
%9 = load double*, double** %5
%10 = getelementptr inbounds double, double* %9, i64 1
%11 = load double, double* %10
%12 = load double*, double** %5
%13 = getelementptr inbounds double, double* %12, i64 0
%14 = load double, double* %13
%15 = load double*, double** %5
%16 = getelementptr inbounds double, double* %15, i64 0
%17 = load double, double* %16
%18 = fmul double %14, %17
%19 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %18, double %11)
%20 = load double*, double** %5
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double, double* %21
%23 = load double*, double** %5
%24 = getelementptr inbounds double, double* %23, i64 0
%25 = load double, double* %24
%26 = fmul double %22, %25
%27 = load double*, double** %5
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = fneg double %26
%31 = call double @llvm.fmuladd.f64(double %30, double %29, double %19)
%32 = load double*, double** %5
%33 = getelementptr inbounds double, double* %32, i64 2
%34 = load double, double* %33
%35 = fsub double %31, %34
%36 = load double*, double** %7
%37 = getelementptr inbounds double, double* %36, i64 0
%38 = load double, double* %37
%39 = fadd double %35, %38
%40 = load double, double* %8
%41 = fsub double %39, %40
%42 = load double*, double** %6
%43 = getelementptr inbounds double, double* %42, i64 0
store double %41, double* %43
%44 = load double*, double** %5
%45 = getelementptr inbounds double, double* %44, i64 0
%46 = load double, double* %45
%47 = load double*, double** %5
%48 = getelementptr inbounds double, double* %47, i64 0
%49 = load double, double* %48
%50 = fmul double %46, %49
%51 = call double @llvm.fmuladd.f64(double -5.000000e+00, double %50, double 1.000000e+00)
%52 = load double*, double** %5
%53 = getelementptr inbounds double, double* %52, i64 1
%54 = load double, double* %53
%55 = fsub double %51, %54
%56 = load double*, double** %6
%57 = getelementptr inbounds double, double* %56, i64 1
store double %55, double* %57
%58 = load double*, double** %5
%59 = getelementptr inbounds double, double* %58, i64 2
%60 = load double, double* %59
%61 = fneg double %60
%62 = load double*, double** %7
%63 = getelementptr inbounds double, double* %62, i64 2
%64 = load double, double* %63
%65 = load double*, double** %5
%66 = getelementptr inbounds double, double* %65, i64 0
%67 = load double, double* %66
%68 = fadd double %67, 1.600000e+00
%69 = call double @llvm.fmuladd.f64(double %64, double %68, double %61)
%70 = load double*, double** %7
%71 = getelementptr inbounds double, double* %70, i64 1
%72 = load double, double* %71
%73 = fmul double %69, %72
%74 = load double*, double** %6
%75 = getelementptr inbounds double, double* %74, i64 2
store double %73, double* %75
ret void
}

LLVM IR (-O2):
define void @hr_f(double* nocapture %0, double* nocapture writeonly %1, double* nocapture %2, double %3) {
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = load double, double* %0
%8 = fmul double %7, %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double 3.000000e+00, double %6)
%10 = fneg double %8
%11 = tail call double @llvm.fmuladd.f64(double %10, double %7, double %9)
%12 = getelementptr inbounds double, double* %0, i64 2
%13 = load double, double* %12
%14 = fsub double %11, %13
%15 = load double, double* %2
%16 = fadd double %15, %14
%17 = fsub double %16, %3
store double %17, double* %1
%18 = load double, double* %0
%19 = fmul double %18, %18
%20 = tail call double @llvm.fmuladd.f64(double %19, double -5.000000e+00, double 1.000000e+00)
%21 = load double, double* %5
%22 = fsub double %20, %21
%23 = getelementptr inbounds double, double* %1, i64 1
store double %22, double* %23
%24 = load double, double* %12
%25 = fneg double %24
%26 = getelementptr inbounds double, double* %2, i64 2
%27 = load double, double* %26
%28 = load double, double* %0
%29 = fadd double %28, 1.600000e+00
%30 = tail call double @llvm.fmuladd.f64(double %27, double %29, double %25)
%31 = getelementptr inbounds double, double* %2, i64 1
%32 = load double, double* %31
%33 = fmul double %32, %30
%34 = getelementptr inbounds double, double* %1, i64 2
store double %33, double* %34
ret void
}