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


x86 assembly (clang, -O0):
<Q_u_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,-0xf8(%rbp)
ff
movsd  0xe41(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x30(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
mov    0x2df8(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x120(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  0xde1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xddd(%rip),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
mov    0x2d9c(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x118(%rbp),%xmm1
ff
movsd  -0x110(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xd7c(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0xd74(%rip),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
mov    0x2d33(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x108(%rbp),%xmm2
ff
movsd  -0x100(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm2
movsd  0xd0c(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x2cd4(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  0x38(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    0x2caa(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0x10(%rbp),%xmm0
mulsd  0x48(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x2c6d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xf0(%rbp),%xmm3
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xe0(%rbp),%xmm4
ff
movsd  -0xd8(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm5
mulsd  %xmm5,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x2c01(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x2bd7(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0x20(%rbp),%xmm0
mulsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    0x2b9a(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xc8(%rbp),%xmm3
ff
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xb8(%rbp),%xmm4
ff
movsd  -0xb0(%rbp),%xmm1
ff
movaps %xmm0,%xmm5
movsd  -0xa8(%rbp),%xmm0
ff
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,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2b0e(%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  0x38(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x38(%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    0x2ab5(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%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    0x2a5e(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@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  0xa38(%rip),%xmm0
mulsd  0x30(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x29e7(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x68(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
movsd  0x9c8(%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_u_viscous>:
push   %rbx
sub    $0xc0,%rsp
movsd  %xmm7,0x48(%rsp)
movsd  %xmm6,0x8(%rsp)
movapd %xmm5,0xa0(%rsp)
movaps %xmm4,0x80(%rsp)
movapd %xmm3,0x20(%rsp)
movaps %xmm2,0x90(%rsp)
movaps %xmm1,0x30(%rsp)
movaps %xmm0,0x10(%rsp)
mov    0x2e74(%rip),%rbx
movsd  (%rbx),%xmm0
movapd %xmm0,0x70(%rsp)
mulsd  %xmm5,%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  %xmm3,%xmm0
movsd  0xf0(%rsp),%xmm1
movaps %xmm1,0x50(%rsp)
call   1040 <cos@plt>
movapd %xmm0,0x60(%rsp)
movsd  0xe8(%rsp),%xmm1
movapd %xmm1,%xmm0
addsd  %xmm1,%xmm0
mulsd  0x120(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
mulsd  (%rbx),%xmm1
mulsd  0x138(%rsp),%xmm1
divsd  0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1030 <sin@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x40(%rsp),%xmm1
movapd 0xa0(%rsp),%xmm0
movsd  0xd8(%rsp),%xmm2
unpcklpd %xmm2,%xmm0
mulpd  0xe01(%rip),%xmm0
divsd  0xde9(%rip),%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0xf0(%rsp),%xmm1
movhpd 0x110(%rsp),%xmm1
mulpd  %xmm0,%xmm1
movapd %xmm1,0xb0(%rsp)
movapd %xmm2,%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x130(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movapd 0x60(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xb0(%rsp),%xmm1
divpd  0xdad(%rip),%xmm1
movapd %xmm1,%xmm0
subsd  0x40(%rsp),%xmm0
unpckhpd %xmm1,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x60(%rsp)
movsd  (%rbx),%xmm0
movapd 0x70(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd 0x10(%rsp),%xmm1
unpcklpd 0x30(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm1
movapd %xmm1,%xmm2
mulsd  0xf8(%rsp),%xmm2
movsd  %xmm2,0x30(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x130(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x108(%rsp),%xmm1
movsd  0xd0(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x70(%rsp)
mulsd  (%rbx),%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x70(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
movapd 0x60(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  0x10(%rsp),%xmm2
movapd 0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
divpd  %xmm0,%xmm2
movapd %xmm2,0x60(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x48(%rsp),%xmm2
movapd %xmm2,%xmm3
mulsd  0x100(%rsp),%xmm3
movsd  %xmm3,0x10(%rsp)
mulsd  %xmm2,%xmm0
mulsd  0x138(%rsp),%xmm0
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  (%rbx),%xmm0
mulsd  0xe0(%rsp),%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  0xe0(%rsp),%xmm1
mulsd  0x118(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
movsd  (%rbx),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movapd 0x30(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd 0x90(%rsp),%xmm0
unpcklpd 0x80(%rsp),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,0x90(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0xf8(%rsp),%xmm0
movsd  %xmm0,0x80(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x130(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x48(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0x100(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x48(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x138(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x30(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0x80(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd 0x50(%rsp),%xmm0
mulsd  0xb2c(%rip),%xmm0
movapd %xmm0,0x50(%rsp)
movapd 0xa0(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
movapd 0xa0(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x128(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x50(%rsp),%xmm0
divsd  0xac9(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x90(%rsp),%xmm1
movapd %xmm1,0x10(%rsp)
movapd 0x20(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
divpd  %xmm1,%xmm0
movapd 0x60(%rsp),%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
addsd  %xmm2,%xmm0
add    $0xc0,%rsp
pop    %rbx
ret

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

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