#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 cos(double);
double sin(double);
double dw_dz(double a_wxz, double a_wyz, double a_wz, double b_wxz,
             double b_wyz, double b_wz, double c_wxz, double c_wyz, double c_wz,
             double d_wxz, double d_wyz, double e_wxz, double e_wyz,
             double f_wxz, double f_wyz, double f_wz, double g_wxz,
             double g_wyz, double g_wz, double t, double twopi_invLx,
             double twopi_invLy, double twopi_invLz, double x, double y,
             double z) {
  return -a_wz * b_wz * twopi_invLz * cos(g_wz + f_wz * t) *
             sin(c_wz + b_wz * twopi_invLz * z) -
         a_wxz * d_wxz * twopi_invLz * cos(g_wxz + f_wxz * t) *
             cos(c_wxz + b_wxz * twopi_invLx * x) *
             sin(e_wxz + d_wxz * twopi_invLz * z) -
         a_wyz * d_wyz * twopi_invLz * cos(g_wyz + f_wyz * t) *
             cos(c_wyz + b_wyz * twopi_invLy * y) *
             sin(e_wyz + d_wyz * twopi_invLz * z);
}


x86 assembly (clang, -O0):
<dw_dz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
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)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0x60(%rbp),%xmm1
movsd  0x48(%rbp),%xmm0
movsd  0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  0x98(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  0x18(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x50(%rbp),%xmm1
movsd  0x38(%rbp),%xmm0
movsd  0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  0x70(%rbp),%xmm0
movsd  0x88(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0x28(%rbp),%xmm1
movsd  0x18(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  0x98(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  0x20(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x58(%rbp),%xmm1
movsd  0x40(%rbp),%xmm0
movsd  0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  0x90(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0x30(%rbp),%xmm1
movsd  0x20(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  0x98(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dw_dz>:
sub    $0x58,%rsp
movsd  %xmm7,0x28(%rsp)
movsd  %xmm6,0x18(%rsp)
movsd  %xmm5,0x8(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm1,0x50(%rsp)
movsd  %xmm0,0x48(%rsp)
xorpd  0xeaa(%rip),%xmm2
mulsd  %xmm5,%xmm2
mulsd  0xd0(%rsp),%xmm2
movapd %xmm2,0x30(%rsp)
movsd  0x98(%rsp),%xmm0
mulsd  0xb8(%rsp),%xmm0
addsd  0xb0(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
mulsd  0xe8(%rsp),%xmm0
addsd  0x60(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x88(%rsp),%xmm0
mulsd  0xb8(%rsp),%xmm0
addsd  0xa0(%rsp),%xmm0
call   1040 <cos@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xc0(%rsp),%xmm1
movsd  %xmm0,0x10(%rsp)
mulsd  0xd8(%rsp),%xmm1
addsd  0x18(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x68(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
mulsd  0xe8(%rsp),%xmm0
addsd  0x78(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x48(%rsp),%xmm1
mulsd  0x68(%rsp),%xmm1
mulsd  0xd0(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  0x30(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xb8(%rsp),%xmm0
mulsd  0x90(%rsp),%xmm0
addsd  0xa8(%rsp),%xmm0
call   1040 <cos@plt>
movsd  0x20(%rsp),%xmm1
mulsd  0xc8(%rsp),%xmm1
movsd  %xmm0,0x20(%rsp)
mulsd  0xe0(%rsp),%xmm1
addsd  0x28(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x70(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
mulsd  0xe8(%rsp),%xmm0
addsd  0x80(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x50(%rsp),%xmm1
mulsd  0x70(%rsp),%xmm1
mulsd  0xd0(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x58,%rsp
ret

LLVM IR (-O0):
define double @dw_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, 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) {
%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
%49 = alloca double
%50 = alloca double
%51 = alloca double
%52 = alloca double
store double %0, double* %27
store double %1, double* %28
store double %2, double* %29
store double %3, double* %30
store double %4, double* %31
store double %5, double* %32
store double %6, double* %33
store double %7, double* %34
store double %8, double* %35
store double %9, double* %36
store double %10, double* %37
store double %11, double* %38
store double %12, double* %39
store double %13, double* %40
store double %14, double* %41
store double %15, double* %42
store double %16, double* %43
store double %17, double* %44
store double %18, double* %45
store double %19, double* %46
store double %20, double* %47
store double %21, double* %48
store double %22, double* %49
store double %23, double* %50
store double %24, double* %51
store double %25, double* %52
%53 = load double, double* %29
%54 = fneg double %53
%55 = load double, double* %32
%56 = fmul double %54, %55
%57 = load double, double* %49
%58 = fmul double %56, %57
%59 = load double, double* %45
%60 = load double, double* %42
%61 = load double, double* %46
%62 = call double @llvm.fmuladd.f64(double %60, double %61, double %59)
%63 = call double @cos(double %62)
%64 = fmul double %58, %63
%65 = load double, double* %35
%66 = load double, double* %32
%67 = load double, double* %49
%68 = fmul double %66, %67
%69 = load double, double* %52
%70 = call double @llvm.fmuladd.f64(double %68, double %69, double %65)
%71 = call double @sin(double %70)
%72 = load double, double* %27
%73 = load double, double* %36
%74 = fmul double %72, %73
%75 = load double, double* %49
%76 = fmul double %74, %75
%77 = load double, double* %43
%78 = load double, double* %40
%79 = load double, double* %46
%80 = call double @llvm.fmuladd.f64(double %78, double %79, double %77)
%81 = call double @cos(double %80)
%82 = fmul double %76, %81
%83 = load double, double* %33
%84 = load double, double* %30
%85 = load double, double* %47
%86 = fmul double %84, %85
%87 = load double, double* %50
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %83)
%89 = call double @cos(double %88)
%90 = fmul double %82, %89
%91 = load double, double* %38
%92 = load double, double* %36
%93 = load double, double* %49
%94 = fmul double %92, %93
%95 = load double, double* %52
%96 = call double @llvm.fmuladd.f64(double %94, double %95, double %91)
%97 = call double @sin(double %96)
%98 = fmul double %90, %97
%99 = fneg double %98
%100 = call double @llvm.fmuladd.f64(double %64, double %71, double %99)
%101 = load double, double* %28
%102 = load double, double* %37
%103 = fmul double %101, %102
%104 = load double, double* %49
%105 = fmul double %103, %104
%106 = load double, double* %44
%107 = load double, double* %41
%108 = load double, double* %46
%109 = call double @llvm.fmuladd.f64(double %107, double %108, double %106)
%110 = call double @cos(double %109)
%111 = fmul double %105, %110
%112 = load double, double* %34
%113 = load double, double* %31
%114 = load double, double* %48
%115 = fmul double %113, %114
%116 = load double, double* %51
%117 = call double @llvm.fmuladd.f64(double %115, double %116, double %112)
%118 = call double @cos(double %117)
%119 = fmul double %111, %118
%120 = load double, double* %39
%121 = load double, double* %37
%122 = load double, double* %49
%123 = fmul double %121, %122
%124 = load double, double* %52
%125 = call double @llvm.fmuladd.f64(double %123, double %124, double %120)
%126 = call double @sin(double %125)
%127 = fneg double %119
%128 = call double @llvm.fmuladd.f64(double %127, double %126, double %100)
ret double %128
}

LLVM IR (-O2):
define double @dw_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, 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) {
%27 = fneg double %2
%28 = fmul double %27, %5
%29 = fmul double %28, %22
%30 = tail call double @llvm.fmuladd.f64(double %15, double %19, double %18)
%31 = tail call double @cos(double %30)
%32 = fmul double %29, %31
%33 = fmul double %5, %22
%34 = tail call double @llvm.fmuladd.f64(double %33, double %25, double %8)
%35 = tail call double @sin(double %34)
%36 = tail call double @llvm.fmuladd.f64(double %13, double %19, double %16)
%37 = tail call double @cos(double %36)
%38 = fmul double %3, %20
%39 = tail call double @llvm.fmuladd.f64(double %38, double %23, double %6)
%40 = tail call double @cos(double %39)
%41 = fmul double %9, %22
%42 = tail call double @llvm.fmuladd.f64(double %41, double %25, double %11)
%43 = tail call double @sin(double %42)
%44 = fneg double %0
%45 = fmul double %44, %9
%46 = fmul double %45, %22
%47 = fmul double %46, %37
%48 = fmul double %47, %40
%49 = fmul double %48, %43
%50 = tail call double @llvm.fmuladd.f64(double %32, double %35, double %49)
%51 = tail call double @llvm.fmuladd.f64(double %14, double %19, double %17)
%52 = tail call double @cos(double %51)
%53 = fmul double %4, %21
%54 = tail call double @llvm.fmuladd.f64(double %53, double %24, double %7)
%55 = tail call double @cos(double %54)
%56 = fmul double %10, %22
%57 = tail call double @llvm.fmuladd.f64(double %56, double %25, double %12)
%58 = tail call double @sin(double %57)
%59 = fneg double %1
%60 = fmul double %59, %10
%61 = fmul double %60, %22
%62 = fmul double %61, %52
%63 = fmul double %62, %55
%64 = tail call double @llvm.fmuladd.f64(double %63, double %58, double %50)
ret double %64
}