#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 M_PI;
int cos(double);
double pow(double, int);
double sin(double);
double Q_w_viscous(double DMu_Dx, double DMu_Dy, double DMu_Dz, double L,
                   double Mu, double a_ux, double a_uz, double a_vy,
                   double a_vz, double a_wx, double a_wy, double a_wz,
                   double u_x, double u_z, double v_y, double v_z, double w_x,
                   double w_y, double w_z, double x, double y, double z) {
  return M_PI * DMu_Dx *
             (a_uz * u_z * sin(M_PI * a_uz * z / L) -
              a_wx * w_x * cos(M_PI * a_wx * x / L)) /
             L +
         M_PI * DMu_Dy *
             (-a_vz * v_z * cos(M_PI * a_vz * z / L) -
              a_wy * w_y * cos(M_PI * a_wy * y / L)) /
             L +
         M_PI * DMu_Dz *
             (2 * a_ux * u_x * cos(M_PI * a_ux * x / L) / 3 +
              2 * a_vy * v_y * cos(M_PI * a_vy * y / L) / 3 +
              4 * a_wz * w_z * sin(M_PI * a_wz * z / L) / 3) /
             L +
         Mu * pow(M_PI, 2) *
             (w_x * pow(a_wx, 2) * sin(M_PI * a_wx * x / L) +
              w_y * pow(a_wy, 2) * sin(M_PI * a_wy * y / L) +
              4 * w_z * pow(a_wz, 2) * cos(M_PI * a_wz * z / L) / 3) /
             pow(L, 2);
}


x86 assembly (clang, -O0):
<Q_w_viscous>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movsd  0x78(%rbp),%xmm8
movsd  0x70(%rbp),%xmm8
movsd  0x68(%rbp),%xmm8
movsd  0x60(%rbp),%xmm8
movsd  0x58(%rbp),%xmm8
movsd  0x50(%rbp),%xmm8
movsd  0x48(%rbp),%xmm8
movsd  0x40(%rbp),%xmm8
movsd  0x38(%rbp),%xmm8
movsd  0x30(%rbp),%xmm8
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    0x2e2a(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  0x38(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
mov    0x2e00(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0x18(%rbp),%xmm0
mulsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
mov    0x2dc7(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0x118(%rbp),%xmm1
ff
movsd  -0x110(%rbp),%xmm3
ff
movsd  -0x108(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm4
mulsd  %xmm4,%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
mov    0x2d50(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  0x48(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    0x2d0f(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0x20(%rbp),%xmm0
mulsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
mov    0x2cd2(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x100(%rbp),%xmm3
ff
movsd  -0xf8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm4
ff
movsd  -0xe8(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm5
mulsd  %xmm5,%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x2c4f(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xc5e(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x30(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
mov    0x2c1d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xd8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc05(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xc01(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x2bc0(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xd0(%rbp),%xmm1
ff
movsd  -0xc8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xba0(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xb90(%rip),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x2b57(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xc0(%rbp),%xmm3
ff
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm1
ff
movaps %xmm0,%xmm4
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm4,%xmm3
movsd  0xb28(%rip),%xmm4
divsd  %xmm4,%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2ae2(%rip),%rax
movsd  (%rax),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x2a89(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x2a32(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xa0c(%rip),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x29bb(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x68(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
movsd  0x99c(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Q_w_viscous>:
push   %r14
push   %rbx
sub    $0xa8,%rsp
movaps %xmm7,0x60(%rsp)
movapd %xmm6,0x50(%rsp)
movaps %xmm5,0x40(%rsp)
movaps %xmm4,0x30(%rsp)
movapd %xmm3,(%rsp)
movaps %xmm2,0x80(%rsp)
movaps %xmm1,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
mov    0x2e7b(%rip),%r14
movsd  (%r14),%xmm0
movapd %xmm0,0x90(%rsp)
mulsd  %xmm6,%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  %xmm3,%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x70(%rsp)
movsd  (%r14),%xmm0
mulsd  0xc8(%rsp),%xmm0
mulsd  0x118(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
mov    %eax,%ebx
movsd  (%r14),%xmm0
movapd 0x90(%rsp),%xmm3
unpcklpd %xmm0,%xmm3
movapd 0x10(%rsp),%xmm1
unpcklpd 0x20(%rsp),%xmm1
movsd  0xc0(%rsp),%xmm2
mulsd  %xmm2,%xmm0
xorpd  0xe13(%rip),%xmm2
mulpd  %xmm3,%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0xe8(%rsp),%xmm3
movhpd 0xf8(%rsp),%xmm3
movapd 0x50(%rsp),%xmm1
unpcklpd %xmm2,%xmm1
mulpd  %xmm1,%xmm3
movapd %xmm3,0x20(%rsp)
mulsd  0x128(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,0x50(%rsp)
movsd  (%r14),%xmm0
mulsd  0xd0(%rsp),%xmm0
mulsd  0x120(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
movupd 0xc8(%rsp),%xmm1
mulpd  0x100(%rsp),%xmm1
mulpd  %xmm0,%xmm1
movapd 0x70(%rsp),%xmm2
unpcklpd 0x50(%rsp),%xmm2
mulpd  0x20(%rsp),%xmm2
subpd  %xmm1,%xmm2
mulpd  0x10(%rsp),%xmm2
movapd (%rsp),%xmm1
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
divpd  %xmm0,%xmm2
movapd %xmm2,0x70(%rsp)
movsd  (%r14),%xmm0
movapd %xmm0,0x20(%rsp)
mulsd  0x40(%rsp),%xmm0
mulsd  0x118(%rsp),%xmm0
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
mov    %eax,%ebx
movapd 0x60(%rsp),%xmm0
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  %xmm1,%xmm1
movsd  0xe0(%rsp),%xmm2
movhpd 0xf0(%rsp),%xmm2
mulpd  %xmm1,%xmm2
movapd %xmm2,0x10(%rsp)
mulsd  (%r14),%xmm0
mulsd  0x120(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
mulpd  0x10(%rsp),%xmm0
divpd  0xcce(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x10(%rsp)
movsd  (%r14),%xmm0
movsd  0xd8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x40(%rsp)
movsd  (%r14),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd 0x80(%rsp),%xmm0
unpcklpd 0x30(%rsp),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,0x80(%rsp)
movsd  0xc8(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0x100(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0xc8(%rsp),%xmm0
mulsd  (%r14),%xmm0
mulsd  0x118(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x60(%rsp)
movsd  0xd0(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0x108(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xd0(%rsp),%xmm0
mulsd  (%r14),%xmm0
mulsd  0x120(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x20(%rsp),%xmm0
movapd 0x60(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
unpcklpd %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0x110(%rsp),%xmm2
movsd  0xd8(%rsp),%xmm0
movapd %xmm0,%xmm1
unpcklpd %xmm2,%xmm1
mulpd  0xb98(%rip),%xmm1
movapd %xmm1,0x30(%rsp)
mov    $0x2,%edi
call   1050 <pow@plt>
movsd  0x110(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x30(%rsp),%xmm1
movapd %xmm1,0x30(%rsp)
movsd  0xd8(%rsp),%xmm0
mulsd  (%r14),%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x30(%rsp),%xmm1
divpd  0xb1f(%rip),%xmm1
addpd  0x10(%rsp),%xmm1
mulpd  0x80(%rsp),%xmm1
movapd %xmm1,0x40(%rsp)
movapd (%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movapd (%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd 0x40(%rsp),%xmm0
divpd  %xmm1,%xmm0
movapd 0x70(%rsp),%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
addsd  %xmm2,%xmm0
add    $0xa8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @Q_w_viscous(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13, double %14, double %15, double %16, double %17, double %18, double %19, double %20, double %21) {
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca double
store double %0, double* %23
store double %1, double* %24
store double %2, double* %25
store double %3, double* %26
store double %4, double* %27
store double %5, double* %28
store double %6, double* %29
store double %7, double* %30
store double %8, double* %31
store double %9, double* %32
store double %10, double* %33
store double %11, double* %34
store double %12, double* %35
store double %13, double* %36
store double %14, double* %37
store double %15, double* %38
store double %16, double* %39
store double %17, double* %40
store double %18, double* %41
store double %19, double* %42
store double %20, double* %43
store double %21, double* %44
%45 = load double, double* @M_PI
%46 = load double, double* %23
%47 = fmul double %45, %46
%48 = load double, double* %29
%49 = load double, double* %36
%50 = fmul double %48, %49
%51 = load double, double* @M_PI
%52 = load double, double* %29
%53 = fmul double %51, %52
%54 = load double, double* %44
%55 = fmul double %53, %54
%56 = load double, double* %26
%57 = fdiv double %55, %56
%58 = call double @sin(double %57)
%59 = load double, double* %32
%60 = load double, double* %39
%61 = fmul double %59, %60
%62 = load double, double* @M_PI
%63 = load double, double* %32
%64 = fmul double %62, %63
%65 = load double, double* %42
%66 = fmul double %64, %65
%67 = load double, double* %26
%68 = fdiv double %66, %67
%69 = call i32 @cos(double %68)
%70 = sitofp i32 %69 to double
%71 = fmul double %61, %70
%72 = fneg double %71
%73 = call double @llvm.fmuladd.f64(double %50, double %58, double %72)
%74 = fmul double %47, %73
%75 = load double, double* %26
%76 = fdiv double %74, %75
%77 = load double, double* @M_PI
%78 = load double, double* %24
%79 = fmul double %77, %78
%80 = load double, double* %31
%81 = fneg double %80
%82 = load double, double* %38
%83 = fmul double %81, %82
%84 = load double, double* @M_PI
%85 = load double, double* %31
%86 = fmul double %84, %85
%87 = load double, double* %44
%88 = fmul double %86, %87
%89 = load double, double* %26
%90 = fdiv double %88, %89
%91 = call i32 @cos(double %90)
%92 = sitofp i32 %91 to double
%93 = load double, double* %33
%94 = load double, double* %40
%95 = fmul double %93, %94
%96 = load double, double* @M_PI
%97 = load double, double* %33
%98 = fmul double %96, %97
%99 = load double, double* %43
%100 = fmul double %98, %99
%101 = load double, double* %26
%102 = fdiv double %100, %101
%103 = call i32 @cos(double %102)
%104 = sitofp i32 %103 to double
%105 = fmul double %95, %104
%106 = fneg double %105
%107 = call double @llvm.fmuladd.f64(double %83, double %92, double %106)
%108 = fmul double %79, %107
%109 = load double, double* %26
%110 = fdiv double %108, %109
%111 = fadd double %76, %110
%112 = load double, double* @M_PI
%113 = load double, double* %25
%114 = fmul double %112, %113
%115 = load double, double* %28
%116 = fmul double 2.000000e+00, %115
%117 = load double, double* %35
%118 = fmul double %116, %117
%119 = load double, double* @M_PI
%120 = load double, double* %28
%121 = fmul double %119, %120
%122 = load double, double* %42
%123 = fmul double %121, %122
%124 = load double, double* %26
%125 = fdiv double %123, %124
%126 = call i32 @cos(double %125)
%127 = sitofp i32 %126 to double
%128 = fmul double %118, %127
%129 = fdiv double %128, 3.000000e+00
%130 = load double, double* %30
%131 = fmul double 2.000000e+00, %130
%132 = load double, double* %37
%133 = fmul double %131, %132
%134 = load double, double* @M_PI
%135 = load double, double* %30
%136 = fmul double %134, %135
%137 = load double, double* %43
%138 = fmul double %136, %137
%139 = load double, double* %26
%140 = fdiv double %138, %139
%141 = call i32 @cos(double %140)
%142 = sitofp i32 %141 to double
%143 = fmul double %133, %142
%144 = fdiv double %143, 3.000000e+00
%145 = fadd double %129, %144
%146 = load double, double* %34
%147 = fmul double 4.000000e+00, %146
%148 = load double, double* %41
%149 = fmul double %147, %148
%150 = load double, double* @M_PI
%151 = load double, double* %34
%152 = fmul double %150, %151
%153 = load double, double* %44
%154 = fmul double %152, %153
%155 = load double, double* %26
%156 = fdiv double %154, %155
%157 = call double @sin(double %156)
%158 = fmul double %149, %157
%159 = fdiv double %158, 3.000000e+00
%160 = fadd double %145, %159
%161 = fmul double %114, %160
%162 = load double, double* %26
%163 = fdiv double %161, %162
%164 = fadd double %111, %163
%165 = load double, double* %27
%166 = load double, double* @M_PI
%167 = call double @pow(double %166, i32 2)
%168 = fmul double %165, %167
%169 = load double, double* %39
%170 = load double, double* %32
%171 = call double @pow(double %170, i32 2)
%172 = fmul double %169, %171
%173 = load double, double* @M_PI
%174 = load double, double* %32
%175 = fmul double %173, %174
%176 = load double, double* %42
%177 = fmul double %175, %176
%178 = load double, double* %26
%179 = fdiv double %177, %178
%180 = call double @sin(double %179)
%181 = load double, double* %40
%182 = load double, double* %33
%183 = call double @pow(double %182, i32 2)
%184 = fmul double %181, %183
%185 = load double, double* @M_PI
%186 = load double, double* %33
%187 = fmul double %185, %186
%188 = load double, double* %43
%189 = fmul double %187, %188
%190 = load double, double* %26
%191 = fdiv double %189, %190
%192 = call double @sin(double %191)
%193 = fmul double %184, %192
%194 = call double @llvm.fmuladd.f64(double %172, double %180, double %193)
%195 = load double, double* %41
%196 = fmul double 4.000000e+00, %195
%197 = load double, double* %34
%198 = call double @pow(double %197, i32 2)
%199 = fmul double %196, %198
%200 = load double, double* @M_PI
%201 = load double, double* %34
%202 = fmul double %200, %201
%203 = load double, double* %44
%204 = fmul double %202, %203
%205 = load double, double* %26
%206 = fdiv double %204, %205
%207 = call i32 @cos(double %206)
%208 = sitofp i32 %207 to double
%209 = fmul double %199, %208
%210 = fdiv double %209, 3.000000e+00
%211 = fadd double %194, %210
%212 = fmul double %168, %211
%213 = load double, double* %26
%214 = call double @pow(double %213, i32 2)
%215 = fdiv double %212, %214
%216 = fadd double %164, %215
ret double %216
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @Q_w_viscous(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13, double %14, double %15, double %16, double %17, double %18, double %19, double %20, double %21) {
%23 = load double, double* @M_PI
%24 = fmul double %23, %6
%25 = fmul double %24, %21
%26 = fdiv double %25, %3
%27 = tail call double @sin(double %26)
%28 = load double, double* @M_PI
%29 = fmul double %28, %9
%30 = fmul double %29, %19
%31 = fdiv double %30, %3
%32 = tail call i32 @cos(double %31)
%33 = load double, double* @M_PI
%34 = insertelement <2 x double> poison, double %23, i64 0
%35 = insertelement <2 x double> %34, double %33, i64 1
%36 = insertelement <2 x double> poison, double %0, i64 0
%37 = insertelement <2 x double> %36, double %1, i64 1
%38 = fmul <2 x double> %35, %37
%39 = fneg double %8
%40 = insertelement <2 x double> poison, double %6, i64 0
%41 = insertelement <2 x double> %40, double %39, i64 1
%42 = insertelement <2 x double> poison, double %13, i64 0
%43 = insertelement <2 x double> %42, double %15, i64 1
%44 = fmul <2 x double> %41, %43
%45 = fmul double %33, %8
%46 = fmul double %45, %21
%47 = fdiv double %46, %3
%48 = tail call i32 @cos(double %47)
%49 = sitofp i32 %48 to double
%50 = load double, double* @M_PI
%51 = fmul double %50, %10
%52 = fmul double %51, %20
%53 = fdiv double %52, %3
%54 = tail call i32 @cos(double %53)
%55 = insertelement <2 x i32> poison, i32 %32, i64 0
%56 = insertelement <2 x i32> %55, i32 %54, i64 1
%57 = sitofp <2 x i32> %56 to <2 x double>
%58 = insertelement <2 x double> poison, double %9, i64 0
%59 = insertelement <2 x double> %58, double %10, i64 1
%60 = fneg <2 x double> %59
%61 = insertelement <2 x double> poison, double %16, i64 0
%62 = insertelement <2 x double> %61, double %17, i64 1
%63 = fmul <2 x double> %62, %60
%64 = fmul <2 x double> %63, %57
%65 = insertelement <2 x double> poison, double %27, i64 0
%66 = insertelement <2 x double> %65, double %49, i64 1
%67 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %44, <2 x double> %66, <2 x double> %64)
%68 = fmul <2 x double> %38, %67
%69 = insertelement <2 x double> poison, double %3, i64 0
%70 = shufflevector <2 x double> %69, <2 x double> poison, <2 x i32> zeroinitializer
%71 = fdiv <2 x double> %68, %70
%72 = shufflevector <2 x double> %71, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%73 = fadd <2 x double> %71, %72
%74 = load double, double* @M_PI
%75 = fmul double %74, %5
%76 = fmul double %75, %19
%77 = fdiv double %76, %3
%78 = tail call i32 @cos(double %77)
%79 = insertelement <2 x double> poison, double %5, i64 0
%80 = insertelement <2 x double> %79, double %7, i64 1
%81 = fmul <2 x double> %80, <double 2.000000e+00, double 2.000000e+00>
%82 = insertelement <2 x double> poison, double %12, i64 0
%83 = insertelement <2 x double> %82, double %14, i64 1
%84 = fmul <2 x double> %81, %83
%85 = load double, double* @M_PI
%86 = fmul double %85, %7
%87 = fmul double %86, %20
%88 = fdiv double %87, %3
%89 = tail call i32 @cos(double %88)
%90 = insertelement <2 x i32> poison, i32 %78, i64 0
%91 = insertelement <2 x i32> %90, i32 %89, i64 1
%92 = sitofp <2 x i32> %91 to <2 x double>
%93 = fmul <2 x double> %84, %92
%94 = fdiv <2 x double> %93, <double 3.000000e+00, double 3.000000e+00>
%95 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%96 = fadd <2 x double> %94, %95
%97 = load double, double* @M_PI
%98 = fmul double %97, %11
%99 = fmul double %98, %21
%100 = fdiv double %99, %3
%101 = tail call double @sin(double %100)
%102 = load double, double* @M_PI
%103 = tail call double @pow(double %102, i32 2)
%104 = insertelement <2 x double> poison, double %74, i64 0
%105 = insertelement <2 x double> %104, double %103, i64 1
%106 = insertelement <2 x double> poison, double %2, i64 0
%107 = insertelement <2 x double> %106, double %4, i64 1
%108 = fmul <2 x double> %105, %107
%109 = tail call double @pow(double %9, i32 2)
%110 = fmul double %109, %16
%111 = load double, double* @M_PI
%112 = fmul double %111, %9
%113 = fmul double %112, %19
%114 = fdiv double %113, %3
%115 = tail call double @sin(double %114)
%116 = tail call double @pow(double %10, i32 2)
%117 = fmul double %116, %17
%118 = load double, double* @M_PI
%119 = fmul double %118, %10
%120 = fmul double %119, %20
%121 = fdiv double %120, %3
%122 = tail call double @sin(double %121)
%123 = fmul double %117, %122
%124 = tail call double @llvm.fmuladd.f64(double %110, double %115, double %123)
%125 = insertelement <2 x double> poison, double %11, i64 0
%126 = insertelement <2 x double> %125, double %18, i64 1
%127 = fmul <2 x double> %126, <double 4.000000e+00, double 4.000000e+00>
%128 = tail call double @pow(double %11, i32 2)
%129 = insertelement <2 x double> poison, double %18, i64 0
%130 = insertelement <2 x double> %129, double %128, i64 1
%131 = fmul <2 x double> %127, %130
%132 = load double, double* @M_PI
%133 = fmul double %132, %11
%134 = fmul double %133, %21
%135 = fdiv double %134, %3
%136 = tail call i32 @cos(double %135)
%137 = sitofp i32 %136 to double
%138 = insertelement <2 x double> poison, double %101, i64 0
%139 = insertelement <2 x double> %138, double %137, i64 1
%140 = fmul <2 x double> %131, %139
%141 = fdiv <2 x double> %140, <double 3.000000e+00, double 3.000000e+00>
%142 = insertelement <2 x double> %96, double %124, i64 1
%143 = fadd <2 x double> %142, %141
%144 = fmul <2 x double> %108, %143
%145 = tail call double @pow(double %3, i32 2)
%146 = insertelement <2 x double> %69, double %145, i64 1
%147 = fdiv <2 x double> %144, %146
%148 = fadd <2 x double> %73, %147
%149 = shufflevector <2 x double> %147, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%150 = fadd <2 x double> %148, %149
%151 = extractelement <2 x double> %150, i64 0
ret double %151
}