#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 du_dy(double a_uxy, double a_uy, double a_uyz, double b_uxy, double b_uy,
             double b_uyz, double c_uxy, double c_uy, double c_uyz,
             double d_uxy, double d_uyz, double e_uxy, double e_uyz,
             double f_uxy, double f_uy, double f_uyz, double g_uxy, double g_uy,
             double g_uyz, double t, double twopi_invLx, double twopi_invLy,
             double twopi_invLz, double x, double y, double z) {
  return -a_uy * b_uy * twopi_invLy * cos(g_uy + f_uy * t) *
             sin(c_uy + b_uy * twopi_invLy * y) -
         a_uxy * d_uxy * twopi_invLy * cos(c_uxy + b_uxy * twopi_invLx * x) *
             cos(g_uxy + f_uxy * t) * sin(e_uxy + d_uxy * twopi_invLy * y) -
         a_uyz * b_uyz * twopi_invLy * cos(g_uyz + f_uyz * t) *
             cos(e_uyz + d_uyz * twopi_invLz * z) *
             sin(c_uyz + b_uyz * twopi_invLy * y);
}


x86 assembly (clang, -O0):
<du_dy>:
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  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
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  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  0x90(%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  0x78(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
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  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
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  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0x28(%rbp),%xmm1
movsd  0x18(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  0x90(%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  -0x18(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
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  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0x30(%rbp),%xmm1
movsd  0x20(%rbp),%xmm0
mulsd  0x80(%rbp),%xmm0
movsd  0x98(%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  0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  0x78(%rbp),%xmm0
movsd  0x90(%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):
<du_dy>:
sub    $0x48,%rsp
movsd  %xmm7,0x8(%rsp)
movsd  %xmm6,0x10(%rsp)
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x38(%rsp)
movsd  %xmm3,(%rsp)
movsd  %xmm2,0x40(%rsp)
movsd  %xmm0,0x18(%rsp)
xorpd  0xeab(%rip),%xmm1
mulsd  %xmm4,%xmm1
mulsd  0xb8(%rsp),%xmm1
movapd %xmm1,0x20(%rsp)
movsd  0x80(%rsp),%xmm0
mulsd  0xa8(%rsp),%xmm0
addsd  0x98(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x38(%rsp),%xmm0
mulsd  0xb8(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
call   1030 <sin@plt>
movsd  (%rsp),%xmm1
mulsd  0xb0(%rsp),%xmm1
movsd  %xmm0,(%rsp)
mulsd  0xc8(%rsp),%xmm1
addsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x78(%rsp),%xmm0
mulsd  0xa8(%rsp),%xmm0
addsd  0x90(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x58(%rsp),%xmm0
mulsd  0xb8(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
addsd  0x68(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x58(%rsp),%xmm1
mulsd  0xb8(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  (%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xa8(%rsp),%xmm0
mulsd  0x88(%rsp),%xmm0
addsd  0xa0(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x60(%rsp),%xmm0
mulsd  0xc0(%rsp),%xmm0
mulsd  0xd8(%rsp),%xmm0
addsd  0x70(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x30(%rsp),%xmm0
mulsd  0xb8(%rsp),%xmm0
mulsd  0xd0(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x40(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
mulsd  0xb8(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  (%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x48,%rsp
ret

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