#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_w_viscous(double DMu_Dx, double DMu_Dy, double DMu_Dz, double L,
                   double LAMBDA, double Mu, double a_ux, double a_uz,
                   double a_vy, double a_vz, double a_wx, double a_wy,
                   double a_wz, double alpha, 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 +
         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) +
              2 * w_z * pow(a_wz, 2) * cos(M_PI * a_wz * z / L)) /
             pow(L, 2) -
         M_PI * DMu_Dz * (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 * w_z * pow(M_PI, 2) * pow(a_wz, 2) * cos(M_PI * a_wz * z / L) /
             pow(L, 2) +
         2 * M_PI * DMu_Dz * a_wz * w_z * sin(M_PI * a_wz * z / L) / L;
}


x86 assembly (clang, -O0):
<Q_w_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  -0x8(%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  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  0x20(%rbp),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
mov    0x2dae(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@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
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,-0x118(%rbp)
ff
mov    0x2d38(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    0x2cf7(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x128(%rbp)
ff
movsd  0x28(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    0x2cbb(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x80(%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
movaps %xmm0,%xmm5
movsd  -0x118(%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,-0xb8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
mov    0x2c29(%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  0x60(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  0x20(%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    0x2bca(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0x68(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0x28(%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    0x2b6c(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@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  0xb31(%rip),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0x30(%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    0x2adf(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@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    0x2a5f(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xa6e(%rip),%xmm1
subsd  0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x30(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2a24(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mulsd  0x40(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x29e4(%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),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xa0(%rbp),%xmm0
ff
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  0x10(%rbp),%xmm0
mulsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x296d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%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
movaps %xmm0,%xmm4
movsd  -0x80(%rbp),%xmm0
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  0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x28eb(%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  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    0x28a5(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1040 <cos@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  0x860(%rip),%xmm0
mov    0x2841(%rip),%rax
mulsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x2822(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
add    $0x160,%rsp
pop    %rbp
ret

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

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