#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_u_viscous(double DMu_Dx, double DMu_Dy, double DMu_Dz, double L,
                   double LAMBDA, double Mu, double a_ux, double a_uy,
                   double a_uz, double a_vx, double a_vy, double a_wx,
                   double a_wz, double alpha, 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_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) +
              2 * u_x * pow(a_ux, 2) * sin(M_PI * a_ux * x / L)) /
             pow(L, 2) -
         M_PI * DMu_Dx * (2.0 / 3.0 - alpha) *
             (a_wz * w_z * sin(M_PI * a_wz * z / L) -
              a_ux * u_x * cos(M_PI * a_ux * x / L) -
              a_vy * v_y * cos(M_PI * a_vy * y / L)) /
             L +
         LAMBDA * u_x * pow(M_PI, 2) * pow(a_ux, 2) * sin(M_PI * a_ux * x / L) /
             pow(L, 2) -
         2 * M_PI * DMu_Dx * a_ux * u_x * cos(M_PI * a_ux * x / L) / L;
}


x86 assembly (clang, -O0):
<Q_u_viscous>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movsd  0x88(%rbp),%xmm8
movsd  0x80(%rbp),%xmm8
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    0x2e18(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mulsd  0x48(%rbp),%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
mov    0x2dee(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movsd  0x18(%rbp),%xmm0
mulsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
mov    0x2db2(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x150(%rbp),%xmm1
ff
movsd  -0x148(%rbp),%xmm3
ff
movaps %xmm0,%xmm4
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
mov    0x2d53(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0x10(%rbp),%xmm0
mulsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    0x2d29(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x128(%rbp)
ff
movsd  0x28(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    0x2ced(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x138(%rbp),%xmm3
ff
movsd  -0x130(%rbp),%xmm2
ff
movsd  -0x128(%rbp),%xmm4
ff
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x118(%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,-0xb8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
mov    0x2c5d(%rip),%rax
movsd  (%rax),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0x48(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x108(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x2bfe(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    0x2b9d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xf8(%rbp),%xmm1
ff
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xb62(%rip),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
mov    0x2b10(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xd8(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb8(%rbp),%xmm0
ff
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x2a93(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  0xaa2(%rip),%xmm1
subsd  0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x30(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x2a58(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x2a1c(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0x20(%rbp),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x29a4(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm3
ff
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm0
cvtsi2sd %eax,%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x2921(%rip),%rax
movsd  (%rax),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x28db(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movsd  -0x60(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0x899(%rip),%xmm0
mov    0x287a(%rip),%rax
mulsd  (%rax),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x285b(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
subsd  %xmm1,%xmm0
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Q_u_viscous>:
push   %rbp
push   %rbx
sub    $0xe8,%rsp
movapd %xmm7,0x10(%rsp)
movaps %xmm6,0x50(%rsp)
movaps %xmm5,0x40(%rsp)
movaps %xmm4,0xd0(%rsp)
movapd %xmm3,(%rsp)
movaps %xmm2,0x20(%rsp)
movaps %xmm1,0x30(%rsp)
movaps %xmm0,0xb0(%rsp)
mov    0x2e79(%rip),%rbx
movsd  (%rbx),%xmm0
movapd %xmm0,0x60(%rsp)
mulsd  %xmm7,%xmm0
mulsd  0x170(%rsp),%xmm0
divsd  %xmm3,%xmm0
call   1030 <sin@plt>
movapd %xmm0,0xa0(%rsp)
movsd  (%rbx),%xmm0
movsd  0x108(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x70(%rsp)
movsd  (%rbx),%xmm0
movapd 0x60(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd 0x30(%rsp),%xmm1
unpcklpd 0x20(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,0x30(%rsp)
movapd 0x10(%rsp),%xmm1
movsd  0x100(%rsp),%xmm2
unpcklpd %xmm2,%xmm1
movupd 0x138(%rsp),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm3,0x20(%rsp)
mulsd  %xmm2,%xmm0
mulsd  0x178(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x60(%rsp)
movsd  (%rbx),%xmm0
movsd  0x118(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x118(%rsp),%xmm1
xorpd  0xd9b(%rip),%xmm1
movsd  0x108(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
movsd  0x148(%rsp),%xmm1
movhpd 0x158(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd 0x70(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  %xmm1,%xmm2
movapd 0xa0(%rsp),%xmm1
unpcklpd 0x60(%rsp),%xmm1
mulpd  0x20(%rsp),%xmm1
addpd  %xmm2,%xmm1
mulpd  0x30(%rsp),%xmm1
movapd (%rsp),%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
movapd %xmm1,0xa0(%rsp)
movsd  (%rbx),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x80(%rsp)
movaps 0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x90(%rsp)
movapd 0x10(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x170(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0x100(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0xc0(%rsp)
movsd  0x100(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0x178(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
mov    %eax,%ebp
movsd  0x130(%rsp),%xmm0
addsd  %xmm0,%xmm0
movapd %xmm0,0x70(%rsp)
movaps 0x50(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x20(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x50(%rsp),%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x30(%rsp)
movaps (%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x60(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,%xmm1
mulsd  0xb0(%rsp),%xmm1
movsd  0xc3b(%rip),%xmm2
subsd  0x128(%rsp),%xmm2
movapd 0x80(%rsp),%xmm3
unpcklpd %xmm2,%xmm3
movapd 0x40(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
mulpd  %xmm3,%xmm2
movapd %xmm2,0x40(%rsp)
movsd  0x120(%rsp),%xmm1
movapd 0x90(%rsp),%xmm3
unpcklpd %xmm1,%xmm3
movsd  0x138(%rsp),%xmm2
movhpd 0x160(%rsp),%xmm2
mulpd  %xmm3,%xmm2
movapd %xmm2,0x90(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x178(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x80(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x50(%rsp),%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
movd   %ebp,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
movapd 0x50(%rsp),%xmm1
xorpd  0xb71(%rip),%xmm1
movapd 0xc0(%rsp),%xmm3
unpcklpd %xmm1,%xmm3
movsd  0x130(%rsp),%xmm1
movsd  0x140(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
mulpd  %xmm3,%xmm2
mulpd  %xmm0,%xmm2
movapd 0x10(%rsp),%xmm0
unpcklpd 0x80(%rsp),%xmm0
mulpd  0x90(%rsp),%xmm0
addpd  %xmm2,%xmm0
movapd %xmm0,0x10(%rsp)
movsd  (%rbx),%xmm0
movsd  0x110(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x170(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x110(%rsp),%xmm1
xorpd  0xae8(%rip),%xmm1
movapd 0x70(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
movapd 0x20(%rsp),%xmm1
movhpd 0x150(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm2
movapd 0x30(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  %xmm2,%xmm1
addpd  0x10(%rsp),%xmm1
mulpd  0x40(%rsp),%xmm1
movapd 0x60(%rsp),%xmm0
unpcklpd (%rsp),%xmm0
divpd  %xmm0,%xmm1
movapd %xmm1,0x30(%rsp)
movsd  (%rbx),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x40(%rsp)
movaps 0x50(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x20(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x50(%rsp),%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x10(%rsp)
movaps (%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,0x70(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd 0xd0(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
movsd  0x130(%rsp),%xmm1
movapd 0x20(%rsp),%xmm4
unpcklpd %xmm1,%xmm4
unpcklpd 0xb0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm2
movapd 0x50(%rsp),%xmm1
movapd 0x40(%rsp),%xmm3
unpcklpd %xmm1,%xmm3
mulpd  %xmm2,%xmm3
mulpd  %xmm4,%xmm3
movapd %xmm3,0x40(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x168(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1040 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  0x40(%rsp),%xmm2
movapd 0x70(%rsp),%xmm0
unpcklpd (%rsp),%xmm0
divpd  %xmm0,%xmm2
movapd 0xa0(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movapd 0x30(%rsp),%xmm1
addsd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
unpckhpd %xmm2,%xmm2
subsd  %xmm2,%xmm0
add    $0xe8,%rsp
pop    %rbx
pop    %rbp
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, double %22, double %23) {
%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
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
store double %0, double* %25
store double %1, double* %26
store double %2, double* %27
store double %3, double* %28
store double %4, double* %29
store double %5, double* %30
store double %6, double* %31
store double %7, double* %32
store double %8, double* %33
store double %9, double* %34
store double %10, double* %35
store double %11, double* %36
store double %12, double* %37
store double %13, double* %38
store double %14, double* %39
store double %15, double* %40
store double %16, double* %41
store double %17, double* %42
store double %18, double* %43
store double %19, double* %44
store double %20, double* %45
store double %21, double* %46
store double %22, double* %47
store double %23, double* %48
%49 = load double, double* @M_PI
%50 = load double, double* %26
%51 = fmul double %49, %50
%52 = load double, double* %32
%53 = load double, double* %40
%54 = fmul double %52, %53
%55 = load double, double* @M_PI
%56 = load double, double* %32
%57 = fmul double %55, %56
%58 = load double, double* %47
%59 = fmul double %57, %58
%60 = load double, double* %28
%61 = fdiv double %59, %60
%62 = call double @sin(double %61)
%63 = load double, double* %34
%64 = load double, double* %42
%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* %46
%70 = fmul double %68, %69
%71 = load double, double* %28
%72 = fdiv double %70, %71
%73 = call double @sin(double %72)
%74 = fmul double %65, %73
%75 = call double @llvm.fmuladd.f64(double %54, double %62, double %74)
%76 = fmul double %51, %75
%77 = load double, double* %28
%78 = fdiv double %76, %77
%79 = load double, double* @M_PI
%80 = load double, double* %27
%81 = fmul double %79, %80
%82 = load double, double* %33
%83 = load double, double* %41
%84 = fmul double %82, %83
%85 = load double, double* @M_PI
%86 = load double, double* %33
%87 = fmul double %85, %86
%88 = load double, double* %48
%89 = fmul double %87, %88
%90 = load double, double* %28
%91 = fdiv double %89, %90
%92 = call double @sin(double %91)
%93 = load double, double* %36
%94 = load double, double* %44
%95 = fmul double %93, %94
%96 = load double, double* @M_PI
%97 = load double, double* %36
%98 = fmul double %96, %97
%99 = load double, double* %46
%100 = fmul double %98, %99
%101 = load double, double* %28
%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 %84, double %92, double %106)
%108 = fmul double %81, %107
%109 = load double, double* %28
%110 = fdiv double %108, %109
%111 = fadd double %78, %110
%112 = load double, double* %30
%113 = load double, double* @M_PI
%114 = call double @pow(double %113, i32 2)
%115 = fmul double %112, %114
%116 = load double, double* %40
%117 = load double, double* %32
%118 = call double @pow(double %117, i32 2)
%119 = fmul double %116, %118
%120 = load double, double* @M_PI
%121 = load double, double* %32
%122 = fmul double %120, %121
%123 = load double, double* %47
%124 = fmul double %122, %123
%125 = load double, double* %28
%126 = fdiv double %124, %125
%127 = call i32 @cos(double %126)
%128 = sitofp i32 %127 to double
%129 = load double, double* %41
%130 = load double, double* %33
%131 = call double @pow(double %130, i32 2)
%132 = fmul double %129, %131
%133 = load double, double* @M_PI
%134 = load double, double* %33
%135 = fmul double %133, %134
%136 = load double, double* %48
%137 = fmul double %135, %136
%138 = load double, double* %28
%139 = fdiv double %137, %138
%140 = call i32 @cos(double %139)
%141 = sitofp i32 %140 to double
%142 = fmul double %132, %141
%143 = call double @llvm.fmuladd.f64(double %119, double %128, double %142)
%144 = load double, double* %39
%145 = fmul double 2.000000e+00, %144
%146 = load double, double* %31
%147 = call double @pow(double %146, i32 2)
%148 = fmul double %145, %147
%149 = load double, double* @M_PI
%150 = load double, double* %31
%151 = fmul double %149, %150
%152 = load double, double* %46
%153 = fmul double %151, %152
%154 = load double, double* %28
%155 = fdiv double %153, %154
%156 = call double @sin(double %155)
%157 = call double @llvm.fmuladd.f64(double %148, double %156, double %143)
%158 = fmul double %115, %157
%159 = load double, double* %28
%160 = call double @pow(double %159, i32 2)
%161 = fdiv double %158, %160
%162 = fadd double %111, %161
%163 = load double, double* @M_PI
%164 = load double, double* %25
%165 = fmul double %163, %164
%166 = load double, double* %38
%167 = fsub double 0x3FE5555555555555, %166
%168 = fmul double %165, %167
%169 = load double, double* %37
%170 = load double, double* %45
%171 = fmul double %169, %170
%172 = load double, double* @M_PI
%173 = load double, double* %37
%174 = fmul double %172, %173
%175 = load double, double* %48
%176 = fmul double %174, %175
%177 = load double, double* %28
%178 = fdiv double %176, %177
%179 = call double @sin(double %178)
%180 = load double, double* %31
%181 = load double, double* %39
%182 = fmul double %180, %181
%183 = load double, double* @M_PI
%184 = load double, double* %31
%185 = fmul double %183, %184
%186 = load double, double* %46
%187 = fmul double %185, %186
%188 = load double, double* %28
%189 = fdiv double %187, %188
%190 = call i32 @cos(double %189)
%191 = sitofp i32 %190 to double
%192 = fmul double %182, %191
%193 = fneg double %192
%194 = call double @llvm.fmuladd.f64(double %171, double %179, double %193)
%195 = load double, double* %35
%196 = load double, double* %43
%197 = fmul double %195, %196
%198 = load double, double* @M_PI
%199 = load double, double* %35
%200 = fmul double %198, %199
%201 = load double, double* %47
%202 = fmul double %200, %201
%203 = load double, double* %28
%204 = fdiv double %202, %203
%205 = call i32 @cos(double %204)
%206 = sitofp i32 %205 to double
%207 = fneg double %197
%208 = call double @llvm.fmuladd.f64(double %207, double %206, double %194)
%209 = fmul double %168, %208
%210 = load double, double* %28
%211 = fdiv double %209, %210
%212 = fsub double %162, %211
%213 = load double, double* %29
%214 = load double, double* %39
%215 = fmul double %213, %214
%216 = load double, double* @M_PI
%217 = call double @pow(double %216, i32 2)
%218 = fmul double %215, %217
%219 = load double, double* %31
%220 = call double @pow(double %219, i32 2)
%221 = fmul double %218, %220
%222 = load double, double* @M_PI
%223 = load double, double* %31
%224 = fmul double %222, %223
%225 = load double, double* %46
%226 = fmul double %224, %225
%227 = load double, double* %28
%228 = fdiv double %226, %227
%229 = call double @sin(double %228)
%230 = fmul double %221, %229
%231 = load double, double* %28
%232 = call double @pow(double %231, i32 2)
%233 = fdiv double %230, %232
%234 = fadd double %212, %233
%235 = load double, double* @M_PI
%236 = fmul double 2.000000e+00, %235
%237 = load double, double* %25
%238 = fmul double %236, %237
%239 = load double, double* %31
%240 = fmul double %238, %239
%241 = load double, double* %39
%242 = fmul double %240, %241
%243 = load double, double* @M_PI
%244 = load double, double* %31
%245 = fmul double %243, %244
%246 = load double, double* %46
%247 = fmul double %245, %246
%248 = load double, double* %28
%249 = fdiv double %247, %248
%250 = call i32 @cos(double %249)
%251 = sitofp i32 %250 to double
%252 = fmul double %242, %251
%253 = load double, double* %28
%254 = fdiv double %252, %253
%255 = fsub double %234, %254
ret double %255
}

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, double %22, double %23) {
%25 = load double, double* @M_PI
%26 = fmul double %25, %7
%27 = fmul double %26, %22
%28 = fdiv double %27, %3
%29 = tail call double @sin(double %28)
%30 = load double, double* @M_PI
%31 = fmul double %30, %9
%32 = fmul double %31, %21
%33 = fdiv double %32, %3
%34 = tail call double @sin(double %33)
%35 = load double, double* @M_PI
%36 = insertelement <2 x double> poison, double %25, i64 0
%37 = insertelement <2 x double> %36, double %35, i64 1
%38 = insertelement <2 x double> poison, double %1, i64 0
%39 = insertelement <2 x double> %38, double %2, i64 1
%40 = fmul <2 x double> %37, %39
%41 = insertelement <2 x double> poison, double %7, i64 0
%42 = insertelement <2 x double> %41, double %8, i64 1
%43 = insertelement <2 x double> poison, double %15, i64 0
%44 = insertelement <2 x double> %43, double %16, i64 1
%45 = fmul <2 x double> %42, %44
%46 = fmul double %35, %8
%47 = fmul double %46, %23
%48 = fdiv double %47, %3
%49 = tail call double @sin(double %48)
%50 = load double, double* @M_PI
%51 = fmul double %50, %11
%52 = fmul double %51, %21
%53 = fdiv double %52, %3
%54 = tail call i32 @cos(double %53)
%55 = sitofp i32 %54 to double
%56 = fneg double %11
%57 = insertelement <2 x double> poison, double %9, i64 0
%58 = insertelement <2 x double> %57, double %56, i64 1
%59 = insertelement <2 x double> poison, double %17, i64 0
%60 = insertelement <2 x double> %59, double %19, i64 1
%61 = fmul <2 x double> %58, %60
%62 = insertelement <2 x double> poison, double %34, i64 0
%63 = insertelement <2 x double> %62, double %55, i64 1
%64 = fmul <2 x double> %61, %63
%65 = insertelement <2 x double> poison, double %29, i64 0
%66 = insertelement <2 x double> %65, double %49, i64 1
%67 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %66, <2 x double> %64)
%68 = fmul <2 x double> %40, %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 = tail call double @pow(double %74, i32 2)
%76 = tail call double @pow(double %7, i32 2)
%77 = load double, double* @M_PI
%78 = fmul double %77, %7
%79 = fmul double %78, %22
%80 = fdiv double %79, %3
%81 = tail call i32 @cos(double %80)
%82 = sitofp i32 %81 to double
%83 = tail call double @pow(double %8, i32 2)
%84 = load double, double* @M_PI
%85 = fmul double %84, %8
%86 = fmul double %85, %23
%87 = fdiv double %86, %3
%88 = tail call i32 @cos(double %87)
%89 = fmul double %14, 2.000000e+00
%90 = tail call double @pow(double %6, i32 2)
%91 = load double, double* @M_PI
%92 = fmul double %91, %6
%93 = fmul double %92, %21
%94 = fdiv double %93, %3
%95 = tail call double @sin(double %94)
%96 = tail call double @pow(double %3, i32 2)
%97 = load double, double* @M_PI
%98 = fmul double %97, %0
%99 = fsub double 0x3FE5555555555555, %13
%100 = insertelement <2 x double> poison, double %75, i64 0
%101 = insertelement <2 x double> %100, double %99, i64 1
%102 = insertelement <2 x double> poison, double %5, i64 0
%103 = insertelement <2 x double> %102, double %98, i64 1
%104 = fmul <2 x double> %101, %103
%105 = insertelement <2 x double> poison, double %12, i64 1
%106 = insertelement <2 x double> %105, double %76, i64 0
%107 = insertelement <2 x double> %43, double %20, i64 1
%108 = fmul <2 x double> %106, %107
%109 = fmul double %97, %12
%110 = fmul double %109, %23
%111 = fdiv double %110, %3
%112 = tail call double @sin(double %111)
%113 = load double, double* @M_PI
%114 = fmul double %113, %6
%115 = fmul double %114, %21
%116 = fdiv double %115, %3
%117 = tail call i32 @cos(double %116)
%118 = insertelement <2 x i32> poison, i32 %88, i64 0
%119 = insertelement <2 x i32> %118, i32 %117, i64 1
%120 = sitofp <2 x i32> %119 to <2 x double>
%121 = fneg double %6
%122 = insertelement <2 x double> poison, double %83, i64 0
%123 = insertelement <2 x double> %122, double %121, i64 1
%124 = insertelement <2 x double> poison, double %16, i64 0
%125 = insertelement <2 x double> %124, double %14, i64 1
%126 = fmul <2 x double> %123, %125
%127 = fmul <2 x double> %126, %120
%128 = insertelement <2 x double> poison, double %82, i64 0
%129 = insertelement <2 x double> %128, double %112, i64 1
%130 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %108, <2 x double> %129, <2 x double> %127)
%131 = load double, double* @M_PI
%132 = fmul double %131, %10
%133 = fmul double %132, %22
%134 = fdiv double %133, %3
%135 = tail call i32 @cos(double %134)
%136 = sitofp i32 %135 to double
%137 = fneg double %10
%138 = insertelement <2 x double> poison, double %89, i64 0
%139 = insertelement <2 x double> %138, double %137, i64 1
%140 = insertelement <2 x double> poison, double %18, i64 1
%141 = insertelement <2 x double> %140, double %90, i64 0
%142 = fmul <2 x double> %139, %141
%143 = insertelement <2 x double> poison, double %95, i64 0
%144 = insertelement <2 x double> %143, double %136, i64 1
%145 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %142, <2 x double> %144, <2 x double> %130)
%146 = fmul <2 x double> %104, %145
%147 = insertelement <2 x double> poison, double %3, i64 1
%148 = insertelement <2 x double> %147, double %96, i64 0
%149 = fdiv <2 x double> %146, %148
%150 = fadd <2 x double> %73, %149
%151 = shufflevector <2 x double> %149, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%152 = fsub <2 x double> %150, %151
%153 = load double, double* @M_PI
%154 = tail call double @pow(double %153, i32 2)
%155 = tail call double @pow(double %6, i32 2)
%156 = load double, double* @M_PI
%157 = fmul double %156, %6
%158 = fmul double %157, %21
%159 = fdiv double %158, %3
%160 = tail call double @sin(double %159)
%161 = tail call double @pow(double %3, i32 2)
%162 = load double, double* @M_PI
%163 = fmul double %162, 2.000000e+00
%164 = insertelement <2 x double> poison, double %4, i64 0
%165 = insertelement <2 x double> %164, double %163, i64 1
%166 = insertelement <2 x double> poison, double %14, i64 0
%167 = insertelement <2 x double> %166, double %0, i64 1
%168 = fmul <2 x double> %165, %167
%169 = insertelement <2 x double> poison, double %6, i64 1
%170 = insertelement <2 x double> %169, double %154, i64 0
%171 = fmul <2 x double> %168, %170
%172 = insertelement <2 x double> poison, double %14, i64 1
%173 = insertelement <2 x double> %172, double %155, i64 0
%174 = fmul <2 x double> %171, %173
%175 = fmul double %162, %6
%176 = fmul double %175, %21
%177 = fdiv double %176, %3
%178 = tail call i32 @cos(double %177)
%179 = sitofp i32 %178 to double
%180 = insertelement <2 x double> poison, double %160, i64 0
%181 = insertelement <2 x double> %180, double %179, i64 1
%182 = fmul <2 x double> %174, %181
%183 = insertelement <2 x double> %147, double %161, i64 0
%184 = fdiv <2 x double> %182, %183
%185 = fadd <2 x double> %152, %184
%186 = shufflevector <2 x double> %184, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%187 = fsub <2 x double> %185, %186
%188 = extractelement <2 x double> %187, i64 0
ret double %188
}