#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 sin(double);
double Q_phi_convection(double L, double Phi, double Rho, double U, double V,
                        double W, double a_phix, double a_phiy, double a_phiz,
                        double a_rhox, double a_rhoy, double a_rhoz,
                        double a_ux, double a_vy, double a_wz, double phi_x,
                        double phi_y, double phi_z, double rho_x, double rho_y,
                        double rho_z, double u_x, double v_y, double w_z,
                        double x, double y, double z) {
  return M_PI * Phi * Rho *
             (a_ux * u_x * cos(M_PI * a_ux * x / L) +
              a_vy * v_y * cos(M_PI * a_vy * y / L) -
              a_wz * w_z * sin(M_PI * a_wz * z / L)) /
             L +
         M_PI * Phi * U * a_rhox * rho_x * cos(M_PI * a_rhox * x / L) / L +
         M_PI * Phi * W * a_rhoz * rho_z * cos(M_PI * a_rhoz * z / L) / L +
         M_PI * Rho * W * a_phiz * phi_z * cos(M_PI * a_phiz * z / L) / L -
         M_PI * Phi * V * a_rhoy * rho_y * sin(M_PI * a_rhoy * y / L) / L -
         M_PI * Rho * U * a_phix * phi_x * sin(M_PI * a_phix * x / L) / L -
         M_PI * Rho * V * a_phiy * phi_y * sin(M_PI * a_phiy * y / L) / L;
}


x86 assembly (clang, -O0):
<Q_phi_convection>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movsd  0xa0(%rbp),%xmm8
movsd  0x98(%rbp),%xmm8
movsd  0x90(%rbp),%xmm8
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    0x2e0d(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0x30(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x2dde(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x30(%rbp),%xmm0
mulsd  0x90(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0x38(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x2d9f(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x38(%rbp),%xmm0
mulsd  0x98(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xd0(%rbp),%xmm1
ff
movsd  -0xc8(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0x40(%rbp),%xmm0
mulsd  0x88(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    0x2d39(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x40(%rbp),%xmm0
mulsd  0xa0(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xb8(%rbp),%xmm1
ff
movsd  -0xb0(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xa8(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x2ccc(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x60(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2ca5(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x90(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x2c5b(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x2c34(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x28(%rbp),%xmm0
mulsd  0xa0(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x90(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x2bed(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x58(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x2bc9(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0xa0(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x80(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2b88(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x2b64(%rip),%rax
movsd  (%rax),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x98(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x2b23(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x48(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x2aff(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x90(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x60(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x2abe(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x2a9a(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x98(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
subsd  %xmm1,%xmm0
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Q_phi_convection>:
push   %rbx
sub    $0xc0,%rsp
movaps %xmm7,0xb0(%rsp)
movaps %xmm6,0xa0(%rsp)
movaps %xmm5,0x60(%rsp)
movaps %xmm4,0x90(%rsp)
movaps %xmm3,0x80(%rsp)
movaps %xmm2,0x50(%rsp)
movaps %xmm1,0x30(%rsp)
movapd %xmm0,%xmm1
movapd %xmm0,0x10(%rsp)
movsd  0xf0(%rsp),%xmm0
mov    0x2e77(%rip),%rbx
movsd  (%rbx),%xmm2
movapd %xmm2,0x40(%rsp)
movsd  0x138(%rsp),%xmm3
mulsd  %xmm0,%xmm3
movsd  %xmm3,(%rsp)
mulsd  %xmm2,%xmm0
mulsd  0x150(%rsp),%xmm0
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x140(%rsp),%xmm0
movsd  0xf8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x70(%rsp)
mulsd  (%rbx),%xmm1
mulsd  0x158(%rsp),%xmm1
divsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
mulsd  0x70(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x100(%rsp),%xmm0
mulsd  0x160(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x100(%rsp),%xmm1
mulsd  0x148(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm3
movsd  (%rbx),%xmm0
movapd %xmm0,%xmm2
mulsd  0x30(%rsp),%xmm2
mulsd  0x80(%rsp),%xmm2
movsd  0xd8(%rsp),%xmm1
mulsd  %xmm1,%xmm2
mulsd  0x120(%rsp),%xmm2
movsd  %xmm2,0x20(%rsp)
movapd (%rsp),%xmm2
subsd  %xmm3,%xmm2
movapd %xmm2,(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x150(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x20(%rsp),%xmm0
movapd 0x10(%rsp),%xmm3
divsd  %xmm3,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,%xmm1
movapd 0x30(%rsp),%xmm2
mulsd  %xmm2,%xmm1
mulsd  0x60(%rsp),%xmm1
movapd 0x40(%rsp),%xmm4
unpcklpd %xmm1,%xmm4
movapd %xmm2,%xmm1
movsd  0xe8(%rsp),%xmm2
unpcklpd %xmm2,%xmm1
mulpd  %xmm4,%xmm1
movapd 0x50(%rsp),%xmm4
movhpd 0x130(%rsp),%xmm4
mulpd  %xmm1,%xmm4
movapd %xmm4,0x40(%rsp)
mulsd  %xmm2,%xmm0
mulsd  0x160(%rsp),%xmm0
divsd  %xmm3,%xmm0
call   1040 <cos@plt>
movapd (%rsp),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  0x40(%rsp),%xmm2
movapd 0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
movapd %xmm0,0x40(%rsp)
divpd  %xmm0,%xmm2
movsd  0x20(%rsp),%xmm0
addsd  %xmm2,%xmm0
unpckhpd %xmm2,%xmm2
addsd  %xmm0,%xmm2
movapd %xmm2,(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,0x70(%rsp)
movsd  0xd0(%rsp),%xmm2
mulsd  %xmm2,%xmm0
mulsd  0x160(%rsp),%xmm0
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movapd %xmm0,0x20(%rsp)
movsd  (%rbx),%xmm0
movapd 0x70(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd 0x50(%rsp),%xmm1
unpcklpd 0x30(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd 0x60(%rsp),%xmm2
unpcklpd 0x90(%rsp),%xmm2
mulpd  %xmm1,%xmm2
movsd  0xe0(%rsp),%xmm1
movsd  0xd0(%rsp),%xmm3
unpcklpd %xmm1,%xmm3
mulpd  %xmm2,%xmm3
movsd  0x118(%rsp),%xmm2
movhpd 0x128(%rsp),%xmm2
mulpd  %xmm3,%xmm2
movapd %xmm2,0x30(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x158(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x30(%rsp),%xmm1
divpd  0x40(%rsp),%xmm1
movapd (%rsp),%xmm0
addsd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movsd  (%rbx),%xmm0
movapd %xmm0,0x60(%rsp)
mulsd  0xa0(%rsp),%xmm0
mulsd  0x150(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movapd %xmm0,0x30(%rsp)
movsd  (%rbx),%xmm0
movapd 0x60(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
movapd 0x50(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm2
movapd 0x80(%rsp),%xmm1
unpcklpd 0x90(%rsp),%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm3
movapd 0xb0(%rsp),%xmm1
movapd 0xa0(%rsp),%xmm2
unpcklpd %xmm1,%xmm2
mulpd  %xmm3,%xmm2
movupd 0x108(%rsp),%xmm3
mulpd  %xmm2,%xmm3
movapd %xmm3,0x50(%rsp)
mulsd  %xmm1,%xmm0
mulsd  0x158(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x30(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x50(%rsp),%xmm1
divpd  0x40(%rsp),%xmm1
movapd (%rsp),%xmm0
subsd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm1,%xmm0
add    $0xc0,%rsp
pop    %rbx
ret

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

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