#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 */
int /*<<< orphan*/ dd_copy(double const *, double *);
int /*<<< orphan*/ dd_inc(double *, double *);
int dd_is_zero(double const *);
int /*<<< orphan*/ dd_minus(double *);
int /*<<< orphan*/ dd_mlt(double *, double *);
int /*<<< orphan*/ dd_mul(double *, double *, double *);
int /*<<< orphan*/ dd_sqr(double const *, double *);
double const fabs(double);
void dd_sin_taylor(const double *a, double *b) {
  if (dd_is_zero(a) == 1) {
    b[0] = 0.0;
    b[1] = 0.0;
  } else {
    const int n_inv_fact = 15;
    double i_fac[30];
    i_fac[0] = 1.66666666666666657e-01;
    i_fac[1] = 9.25185853854297066e-18;
    i_fac[2] = 4.16666666666666644e-02;
    i_fac[3] = 2.31296463463574266e-18;
    i_fac[4] = 8.33333333333333322e-03;
    i_fac[5] = 1.15648231731787138e-19;
    i_fac[6] = 1.38888888888888894e-03;
    i_fac[7] = -5.30054395437357706e-20;
    i_fac[8] = 1.98412698412698413e-04;
    i_fac[9] = 1.72095582934207053e-22;
    i_fac[10] = 2.48015873015873016e-05;
    i_fac[11] = 2.15119478667758816e-23;
    i_fac[12] = 2.75573192239858925e-06;
    i_fac[13] = -1.85839327404647208e-22;
    i_fac[14] = 2.75573192239858883e-07;
    i_fac[15] = 2.37677146222502973e-23;
    i_fac[16] = 2.50521083854417202e-08;
    i_fac[17] = -1.44881407093591197e-24;
    i_fac[18] = 2.08767569878681002e-09;
    i_fac[19] = -1.20734505911325997e-25;
    i_fac[20] = 1.60590438368216133e-10;
    i_fac[21] = 1.25852945887520981e-26;
    i_fac[22] = 1.14707455977297245e-11;
    i_fac[23] = 2.06555127528307454e-28;
    i_fac[24] = 7.64716373181981641e-13;
    i_fac[25] = 7.03872877733453001e-30;
    i_fac[26] = 4.77947733238738525e-14;
    i_fac[27] = 4.39920548583408126e-31;
    i_fac[28] = 2.81145725434552060e-15;
    i_fac[29] = 1.65088427308614326e-31;
    const double dd_eps = 4.93038065763132e-32;
    const double thresh = 0.5 * a[0] * dd_eps;
    double x[2], r[2], s[2], t[2], inv_fac[2];
    int i = 0;
    dd_sqr(a, x);
    dd_minus(x);
    dd_copy(a, s);
    dd_copy(a, r);
    do {
      dd_mlt(r, x);
      inv_fac[0] = i_fac[i];
      inv_fac[1] = i_fac[i + 1];
      dd_mul(r, inv_fac, t);
      dd_inc(s, t);
      i += 4;
    } while ((i < 2 * n_inv_fact) && (fabs(t[0]) > thresh));
    dd_copy(s, b);
  }
}


x86 assembly (clang, -O0):
<dd_sin_taylor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <dd_is_zero@plt>
cmp    $0x1,%eax
jne    11c1 <dd_sin_taylor+0x41>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    14d2 <dd_sin_taylor+0x352>
movl   $0xf,-0x14(%rbp)
movsd  0xf28(%rip),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xf10(%rip),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  0xef8(%rip),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0xee0(%rip),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  0xec8(%rip),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0xeb0(%rip),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0xe98(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xe80(%rip),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xe68(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xe50(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xe38(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xe20(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xe08(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xdf0(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xdd8(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xdc0(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xda8(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xd90(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xd78(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xd63(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xd4e(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xd39(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xd24(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xd0f(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xcfa(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xce5(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xcd0(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xcbb(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xca6(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xc91(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xc74(%rip),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
mov    -0x8(%rbp),%rax
movsd  0xc68(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xc54(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movl   $0x0,-0x174(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1080 <dd_sqr@plt>
lea    -0x130(%rbp),%rdi
call   10a0 <dd_minus@plt>
mov    -0x8(%rbp),%rdi
lea    -0x150(%rbp),%rsi
call   1090 <dd_copy@plt>
mov    -0x8(%rbp),%rdi
lea    -0x140(%rbp),%rsi
call   1090 <dd_copy@plt>
lea    -0x140(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1030 <dd_mlt@plt>
movslq -0x174(%rbp),%rax
movsd  -0x110(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x170(%rbp)
ff
mov    -0x174(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0x110(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x168(%rbp)
ff
lea    -0x140(%rbp),%rdi
lea    -0x170(%rbp),%rsi
lea    -0x160(%rbp),%rdx
call   1070 <dd_mul@plt>
lea    -0x150(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   1040 <dd_inc@plt>
mov    -0x174(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x174(%rbp)
xor    %eax,%eax
cmpl   $0x1e,-0x174(%rbp)
mov    %al,-0x175(%rbp)
jge    14b4 <dd_sin_taylor+0x334>
movsd  -0x160(%rbp),%xmm0
ff
call   1060 <fabs@plt>
ucomisd -0x120(%rbp),%xmm0
ff
seta   %al
mov    %al,-0x175(%rbp)
mov    -0x175(%rbp),%al
test   $0x1,%al
jne    13fe <dd_sin_taylor+0x27e>
lea    -0x150(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <dd_copy@plt>
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dd_sin_taylor>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x150,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
call   1050 <dd_is_zero@plt>
cmp    $0x1,%eax
jne    119e <dd_sin_taylor+0x2e>
xorpd  %xmm0,%xmm0
movupd %xmm0,(%r14)
jmp    1570 <dd_sin_taylor+0x400>
movaps 0xe5b(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe5f(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe63(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe64(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe65(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe66(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe67(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe68(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe69(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe6a(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe6b(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe6c(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe6d(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xe6e(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movsd  (%rbx),%xmm0
mulsd  0xe7b(%rip),%xmm0
mulsd  0xe7b(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x50(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <dd_sqr@plt>
mov    %r15,%rdi
call   1090 <dd_minus@plt>
lea    0x30(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <dd_copy@plt>
lea    0x40(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1080 <dd_copy@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   1030 <dd_mlt@plt>
movaps 0x60(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r13,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xde5(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0x80(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xd8d(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0xa0(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xd35(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0xc0(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xcdd(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0xe0(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xc85(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0x100(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xc2d(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movaps 0x120(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
movsd  0x20(%rsp),%xmm0
andpd  0xbd5(%rip),%xmm0
ucomisd 0x18(%rsp),%xmm0
jbe    1563 <dd_sin_taylor+0x3f3>
lea    0x40(%rsp),%r15
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
call   1030 <dd_mlt@plt>
movapd 0x140(%rsp),%xmm0
movapd %xmm0,(%rsp)
mov    %rsp,%rsi
lea    0x20(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rdx
call   1060 <dd_mul@plt>
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <dd_inc@plt>
lea    0x30(%rsp),%rdi
mov    %r14,%rsi
call   1080 <dd_copy@plt>
add    $0x150,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @dd_sin_taylor(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca i32
%6 = alloca [30 x double]
%7 = alloca double
%8 = alloca double
%9 = alloca [2 x double]
%10 = alloca [2 x double]
%11 = alloca [2 x double]
%12 = alloca [2 x double]
%13 = alloca [2 x double]
%14 = alloca i32
store double* %0, double** %3
store double* %1, double** %4
%15 = load double*, double** %3
%16 = call i32 @dd_is_zero(double* %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 0
store double 0.000000e+00, double* %20
%21 = load double*, double** %4
%22 = getelementptr inbounds double, double* %21, i64 1
store double 0.000000e+00, double* %22
br label %109
23: ; preds = %2
store i32 15, i32* %5
%24 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 0
store double 0x3FC5555555555555, double* %24
%25 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 1
store double 0x3C65555555555555, double* %25
%26 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 2
store double 0x3FA5555555555555, double* %26
%27 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 3
store double 0x3C45555555555555, double* %27
%28 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 4
store double 0x3F81111111111111, double* %28
%29 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 5
store double 0x3C01111111111111, double* %29
%30 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 6
store double 0x3F56C16C16C16C17, double* %30
%31 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 7
store double 0xBBEF49F49F49F49F, double* %31
%32 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 8
store double 0x3F2A01A01A01A01A, double* %32
%33 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 9
store double 0x3B6A01A01A01A01A, double* %33
%34 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 10
store double 0x3EFA01A01A01A01A, double* %34
%35 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 11
store double 0x3B3A01A01A01A01A, double* %35
%36 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 12
store double 0x3EC71DE3A556C734, double* %36
%37 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 13
store double 0xBB6C154F8DDC6C00, double* %37
%38 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 14
store double 0x3E927E4FB7789F5C, double* %38
%39 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 15
store double 0x3B3CBBC05B4FA99A, double* %39
%40 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 16
store double 0x3E5AE64567F544E4, double* %40
%41 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 17
store double 0xBAFC062E06D1F209, double* %41
%42 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 18
store double 0x3E21EED8EFF8D898, double* %42
%43 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 19
store double 0xBAC2AEC959E14C06, double* %43
%44 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 20
store double 0x3DE6124613A86D09, double* %44
%45 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 21
store double 0x3A8F28E0CC748EBE, double* %45
%46 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 22
store double 0x3DA93974A8C07C9D, double* %46
%47 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 23
store double 0x3A305D6F8A2EFD1F, double* %47
%48 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 24
store double 0x3D6AE7F3E733B81F, double* %48
%49 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 25
store double 0x39E1D8656B0EE8CB, double* %49
%50 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 26
store double 0x3D2AE7F3E733B81F, double* %50
%51 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 27
store double 0x39A1D8656B0EE8CB, double* %51
%52 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 28
store double 0x3CE952C77030AD4A, double* %52
%53 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 29
store double 0x398AC981465DDC6C, double* %53
store double 0x396FFFFFFFFFFFF9, double* %7
%54 = load double*, double** %3
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
%57 = fmul double 5.000000e-01, %56
%58 = fmul double %57, 0x396FFFFFFFFFFFF9
store double %58, double* %8
store i32 0, i32* %14
%59 = load double*, double** %3
%60 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%61 = call i32 @dd_sqr(double* %59, double* %60)
%62 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%63 = call i32 @dd_minus(double* %62)
%64 = load double*, double** %3
%65 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%66 = call i32 @dd_copy(double* %64, double* %65)
%67 = load double*, double** %3
%68 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%69 = call i32 @dd_copy(double* %67, double* %68)
br label %70
70: ; preds = %103, %23
%71 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%72 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%73 = call i32 @dd_mlt(double* %71, double* %72)
%74 = load i32, i32* %14
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 %75
%77 = load double, double* %76
%78 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
store double %77, double* %78
%79 = load i32, i32* %14
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [30 x double], [30 x double]* %6, i64 0, i64 %81
%83 = load double, double* %82
%84 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 1
store double %83, double* %84
%85 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%86 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%87 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%88 = call i32 @dd_mul(double* %85, double* %86, double* %87)
%89 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%90 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%91 = call i32 @dd_inc(double* %89, double* %90)
%92 = load i32, i32* %14
%93 = add nsw i32 %92, 4
store i32 %93, i32* %14
br label %94
94: ; preds = %70
%95 = load i32, i32* %14
%96 = icmp slt i32 %95, 30
br i1 %96, label %97, label %103
97: ; preds = %94
%98 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%99 = load double, double* %98
%100 = call double @fabs(double %99)
%101 = load double, double* %8
%102 = fcmp ogt double %100, %101
br label %103
103: ; preds = %97, %94
%104 = phi i1 [ false, %94 ], [ %102, %97 ]
br i1 %104, label %70, label %105
105: ; preds = %103
%106 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%107 = load double*, double** %4
%108 = call i32 @dd_copy(double* %106, double* %107)
br label %109
109: ; preds = %105, %18
ret void
}

LLVM IR (-O2):
define void @dd_sin_taylor(double* %0, double* %1) {
%3 = alloca [30 x double]
%4 = alloca [2 x double]
%5 = alloca [2 x double]
%6 = alloca [2 x double]
%7 = alloca [2 x double]
%8 = alloca <2 x double>
%9 = tail call i32 @dd_is_zero(double* %0)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = bitcast double* %1 to i8*
br label %138
13: ; preds = %2
%14 = bitcast [30 x double]* %3 to i8*
%15 = bitcast [30 x double]* %3 to <2 x double>*
store <2 x double> <double 0x3FC5555555555555, double 0x3C65555555555555>, <2 x double>* %15
%16 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 2
%17 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 0x3FA5555555555555, double 0x3C45555555555555>, <2 x double>* %17
%18 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 4
%19 = bitcast double* %18 to <2 x double>*
store <2 x double> <double 0x3F81111111111111, double 0x3C01111111111111>, <2 x double>* %19
%20 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 6
%21 = bitcast double* %20 to <2 x double>*
store <2 x double> <double 0x3F56C16C16C16C17, double 0xBBEF49F49F49F49F>, <2 x double>* %21
%22 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 8
%23 = bitcast double* %22 to <2 x double>*
store <2 x double> <double 0x3F2A01A01A01A01A, double 0x3B6A01A01A01A01A>, <2 x double>* %23
%24 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 10
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> <double 0x3EFA01A01A01A01A, double 0x3B3A01A01A01A01A>, <2 x double>* %25
%26 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 12
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> <double 0x3EC71DE3A556C734, double 0xBB6C154F8DDC6C00>, <2 x double>* %27
%28 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 14
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 0x3E927E4FB7789F5C, double 0x3B3CBBC05B4FA99A>, <2 x double>* %29
%30 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 16
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> <double 0x3E5AE64567F544E4, double 0xBAFC062E06D1F209>, <2 x double>* %31
%32 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 18
%33 = bitcast double* %32 to <2 x double>*
store <2 x double> <double 0x3E21EED8EFF8D898, double 0xBAC2AEC959E14C06>, <2 x double>* %33
%34 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 20
%35 = bitcast double* %34 to <2 x double>*
store <2 x double> <double 0x3DE6124613A86D09, double 0x3A8F28E0CC748EBE>, <2 x double>* %35
%36 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 22
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> <double 0x3DA93974A8C07C9D, double 0x3A305D6F8A2EFD1F>, <2 x double>* %37
%38 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 24
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> <double 0x3D6AE7F3E733B81F, double 0x39E1D8656B0EE8CB>, <2 x double>* %39
%40 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 26
%41 = bitcast double* %40 to <2 x double>*
store <2 x double> <double 0x3D2AE7F3E733B81F, double 0x39A1D8656B0EE8CB>, <2 x double>* %41
%42 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 28
%43 = bitcast double* %42 to <2 x double>*
store <2 x double> <double 0x3CE952C77030AD4A, double 0x398AC981465DDC6C>, <2 x double>* %43
%44 = load double, double* %0
%45 = fmul double %44, 5.000000e-01
%46 = fmul double %45, 0x396FFFFFFFFFFFF9
%47 = bitcast [2 x double]* %4 to i8*
%48 = bitcast [2 x double]* %5 to i8*
%49 = bitcast [2 x double]* %6 to i8*
%50 = bitcast [2 x double]* %7 to i8*
%51 = bitcast <2 x double>* %8 to i8*
%52 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%53 = call i32 @dd_sqr(double* %0, double* %52)
%54 = call i32 @dd_minus(double* %52)
%55 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 0
%56 = call i32 @dd_copy(double* %0, double* %55)
%57 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%58 = call i32 @dd_copy(double* %0, double* %57)
%59 = getelementptr inbounds <2 x double>, <2 x double>* %8, i64 0, i64 0
%60 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%61 = call i32 @dd_mlt(double* %57, double* %52)
%62 = bitcast [30 x double]* %3 to <2 x double>*
%63 = load <2 x double>, <2 x double>* %62
store <2 x double> %63, <2 x double>* %8
%64 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%65 = call i32 @dd_inc(double* %55, double* %60)
%66 = load double, double* %60
%67 = call double @llvm.fabs.f64(double %66)
%68 = fcmp ogt double %67, %46
br i1 %68, label %69, label %136
69: ; preds = %13
%70 = call i32 @dd_mlt(double* %57, double* %52)
%71 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 4
%72 = bitcast double* %71 to <2 x double>*
%73 = load <2 x double>, <2 x double>* %72
store <2 x double> %73, <2 x double>* %8
%74 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%75 = call i32 @dd_inc(double* %55, double* %60)
%76 = load double, double* %60
%77 = call double @llvm.fabs.f64(double %76)
%78 = fcmp ogt double %77, %46
br i1 %78, label %79, label %136
79: ; preds = %69
%80 = call i32 @dd_mlt(double* %57, double* %52)
%81 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 8
%82 = bitcast double* %81 to <2 x double>*
%83 = load <2 x double>, <2 x double>* %82
store <2 x double> %83, <2 x double>* %8
%84 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%85 = call i32 @dd_inc(double* %55, double* %60)
%86 = load double, double* %60
%87 = call double @llvm.fabs.f64(double %86)
%88 = fcmp ogt double %87, %46
br i1 %88, label %89, label %136
89: ; preds = %79
%90 = call i32 @dd_mlt(double* %57, double* %52)
%91 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 12
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
store <2 x double> %93, <2 x double>* %8
%94 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%95 = call i32 @dd_inc(double* %55, double* %60)
%96 = load double, double* %60
%97 = call double @llvm.fabs.f64(double %96)
%98 = fcmp ogt double %97, %46
br i1 %98, label %99, label %136
99: ; preds = %89
%100 = call i32 @dd_mlt(double* %57, double* %52)
%101 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 16
%102 = bitcast double* %101 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
store <2 x double> %103, <2 x double>* %8
%104 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%105 = call i32 @dd_inc(double* %55, double* %60)
%106 = load double, double* %60
%107 = call double @llvm.fabs.f64(double %106)
%108 = fcmp ogt double %107, %46
br i1 %108, label %109, label %136
109: ; preds = %99
%110 = call i32 @dd_mlt(double* %57, double* %52)
%111 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 20
%112 = bitcast double* %111 to <2 x double>*
%113 = load <2 x double>, <2 x double>* %112
store <2 x double> %113, <2 x double>* %8
%114 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%115 = call i32 @dd_inc(double* %55, double* %60)
%116 = load double, double* %60
%117 = call double @llvm.fabs.f64(double %116)
%118 = fcmp ogt double %117, %46
br i1 %118, label %119, label %136
119: ; preds = %109
%120 = call i32 @dd_mlt(double* %57, double* %52)
%121 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 24
%122 = bitcast double* %121 to <2 x double>*
%123 = load <2 x double>, <2 x double>* %122
store <2 x double> %123, <2 x double>* %8
%124 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%125 = call i32 @dd_inc(double* %55, double* %60)
%126 = load double, double* %60
%127 = call double @llvm.fabs.f64(double %126)
%128 = fcmp ogt double %127, %46
br i1 %128, label %129, label %136
129: ; preds = %119
%130 = call i32 @dd_mlt(double* %57, double* %52)
%131 = getelementptr inbounds [30 x double], [30 x double]* %3, i64 0, i64 28
%132 = bitcast double* %131 to <2 x double>*
%133 = load <2 x double>, <2 x double>* %132
store <2 x double> %133, <2 x double>* %8
%134 = call i32 @dd_mul(double* %57, double* %59, double* %60)
%135 = call i32 @dd_inc(double* %55, double* %60)
br label %136
136: ; preds = %129, %119, %109, %99, %89, %79, %69, %13
%137 = call i32 @dd_copy(double* %55, double* %1)
br label %138
138: ; preds = %136, %11
ret void
}