#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, double);
double sin(double);
double DMu_Dz(double L, double R, double Rho, double T, double T_ref,
              double a_pz, double a_rhoz, double beta, double mu_ref,
              double p_z, double rho_z, double z) {
  return -M_PI * a_rhoz * beta * mu_ref * rho_z * pow(T, beta) *
             pow((1.0 / T_ref), beta) * cos(M_PI * a_rhoz * z / L) / (L * Rho) -
         M_PI * a_pz * beta * mu_ref * p_z * pow(T, beta) *
             pow((1.0 / T_ref), beta) * sin(M_PI * a_pz * z / L) /
             (L * R * Rho * T);
}


x86 assembly (clang, -O0):
<DMu_Dz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
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    0x2e66(%rip),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x20(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe22(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2de3(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x28(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x2da5(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd78(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x2d39(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x28(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  -0x8(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x18(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DMu_Dz>:
push   %rbx
sub    $0xb0,%rsp
movaps %xmm7,0x30(%rsp)
movaps %xmm6,0x10(%rsp)
movaps %xmm5,0x70(%rsp)
movsd  %xmm4,(%rsp)
movaps %xmm3,0x80(%rsp)
movaps %xmm2,0xa0(%rsp)
movaps %xmm1,0x90(%rsp)
movaps %xmm0,0x50(%rsp)
mov    0x2e78(%rip),%rbx
movsd  (%rbx),%xmm0
xorps  0xe85(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm3,%xmm0
movaps %xmm7,%xmm1
call   1050 <pow@plt>
movaps %xmm0,0x40(%rsp)
movsd  0xe78(%rip),%xmm0
divsd  (%rsp),%xmm0
movsd  %xmm0,0x68(%rsp)
movaps 0x30(%rsp),%xmm1
call   1050 <pow@plt>
movapd %xmm0,(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0xd8(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
call   1040 <cos@plt>
movapd 0x20(%rsp),%xmm1
movhpd (%rbx),%xmm1
movapd %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
unpcklpd 0x70(%rsp),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm2
movapd 0x30(%rsp),%xmm1
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
mulpd  %xmm2,%xmm0
movsd  0xc0(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movsd  0xd0(%rsp),%xmm0
movhpd 0xc8(%rsp),%xmm0
mulpd  %xmm2,%xmm0
movapd %xmm0,0x10(%rsp)
movapd 0x80(%rsp),%xmm0
call   1050 <pow@plt>
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x10(%rsp),%xmm1
movapd %xmm1,0x40(%rsp)
movsd  0x68(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
call   1050 <pow@plt>
movapd (%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x40(%rsp),%xmm1
movapd %xmm1,(%rsp)
movapd 0x70(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0xd8(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x20(%rsp),%xmm3
unpcklpd %xmm0,%xmm3
mulpd  (%rsp),%xmm3
movapd 0x50(%rsp),%xmm1
movapd 0x90(%rsp),%xmm2
mulsd  %xmm1,%xmm2
movapd 0xa0(%rsp),%xmm0
mulsd  %xmm0,%xmm2
unpcklpd %xmm2,%xmm1
unpcklpd 0x80(%rsp),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm3,%xmm1
divpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0xb0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @DMu_Dz(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
store double %0, double* %13
store double %1, double* %14
store double %2, double* %15
store double %3, double* %16
store double %4, double* %17
store double %5, double* %18
store double %6, double* %19
store double %7, double* %20
store double %8, double* %21
store double %9, double* %22
store double %10, double* %23
store double %11, double* %24
%25 = load double, double* @M_PI
%26 = fneg double %25
%27 = load double, double* %19
%28 = fmul double %26, %27
%29 = load double, double* %20
%30 = fmul double %28, %29
%31 = load double, double* %21
%32 = fmul double %30, %31
%33 = load double, double* %23
%34 = fmul double %32, %33
%35 = load double, double* %16
%36 = load double, double* %20
%37 = call double @pow(double %35, double %36)
%38 = fmul double %34, %37
%39 = load double, double* %17
%40 = fdiv double 1.000000e+00, %39
%41 = load double, double* %20
%42 = call double @pow(double %40, double %41)
%43 = fmul double %38, %42
%44 = load double, double* @M_PI
%45 = load double, double* %19
%46 = fmul double %44, %45
%47 = load double, double* %24
%48 = fmul double %46, %47
%49 = load double, double* %13
%50 = fdiv double %48, %49
%51 = call double @cos(double %50)
%52 = fmul double %43, %51
%53 = load double, double* %13
%54 = load double, double* %15
%55 = fmul double %53, %54
%56 = fdiv double %52, %55
%57 = load double, double* @M_PI
%58 = load double, double* %18
%59 = fmul double %57, %58
%60 = load double, double* %20
%61 = fmul double %59, %60
%62 = load double, double* %21
%63 = fmul double %61, %62
%64 = load double, double* %22
%65 = fmul double %63, %64
%66 = load double, double* %16
%67 = load double, double* %20
%68 = call double @pow(double %66, double %67)
%69 = fmul double %65, %68
%70 = load double, double* %17
%71 = fdiv double 1.000000e+00, %70
%72 = load double, double* %20
%73 = call double @pow(double %71, double %72)
%74 = fmul double %69, %73
%75 = load double, double* @M_PI
%76 = load double, double* %18
%77 = fmul double %75, %76
%78 = load double, double* %24
%79 = fmul double %77, %78
%80 = load double, double* %13
%81 = fdiv double %79, %80
%82 = call double @sin(double %81)
%83 = fmul double %74, %82
%84 = load double, double* %13
%85 = load double, double* %14
%86 = fmul double %84, %85
%87 = load double, double* %15
%88 = fmul double %86, %87
%89 = load double, double* %16
%90 = fmul double %88, %89
%91 = fdiv double %83, %90
%92 = fsub double %56, %91
ret double %92
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @DMu_Dz(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%13 = load double, double* @M_PI
%14 = fneg double %13
%15 = tail call double @pow(double %3, double %7)
%16 = fdiv double 1.000000e+00, %4
%17 = tail call double @pow(double %16, double %7)
%18 = load double, double* @M_PI
%19 = fmul double %18, %6
%20 = fmul double %19, %11
%21 = fdiv double %20, %0
%22 = tail call double @cos(double %21)
%23 = load double, double* @M_PI
%24 = insertelement <2 x double> poison, double %14, i64 0
%25 = insertelement <2 x double> %24, double %23, i64 1
%26 = insertelement <2 x double> poison, double %6, i64 0
%27 = insertelement <2 x double> %26, double %5, i64 1
%28 = fmul <2 x double> %25, %27
%29 = insertelement <2 x double> poison, double %7, i64 0
%30 = shufflevector <2 x double> %29, <2 x double> poison, <2 x i32> zeroinitializer
%31 = fmul <2 x double> %28, %30
%32 = insertelement <2 x double> poison, double %8, i64 0
%33 = shufflevector <2 x double> %32, <2 x double> poison, <2 x i32> zeroinitializer
%34 = fmul <2 x double> %31, %33
%35 = insertelement <2 x double> poison, double %10, i64 0
%36 = insertelement <2 x double> %35, double %9, i64 1
%37 = fmul <2 x double> %34, %36
%38 = tail call double @pow(double %3, double %7)
%39 = insertelement <2 x double> poison, double %15, i64 0
%40 = insertelement <2 x double> %39, double %38, i64 1
%41 = fmul <2 x double> %40, %37
%42 = tail call double @pow(double %16, double %7)
%43 = insertelement <2 x double> poison, double %17, i64 0
%44 = insertelement <2 x double> %43, double %42, i64 1
%45 = fmul <2 x double> %44, %41
%46 = load double, double* @M_PI
%47 = fmul double %46, %5
%48 = fmul double %47, %11
%49 = fdiv double %48, %0
%50 = tail call double @sin(double %49)
%51 = insertelement <2 x double> poison, double %22, i64 0
%52 = insertelement <2 x double> %51, double %50, i64 1
%53 = fmul <2 x double> %52, %45
%54 = fmul double %0, %1
%55 = fmul double %54, %2
%56 = insertelement <2 x double> poison, double %0, i64 0
%57 = insertelement <2 x double> %56, double %55, i64 1
%58 = insertelement <2 x double> poison, double %2, i64 0
%59 = insertelement <2 x double> %58, double %3, i64 1
%60 = fmul <2 x double> %57, %59
%61 = fdiv <2 x double> %53, %60
%62 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%63 = fsub <2 x double> %61, %62
%64 = extractelement <2 x double> %63, i64 0
ret double %64
}