#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 asin(double);
double fabs(double const);
double rt_atan2d_snf(double, double);
double sqrt(double);
void quat2rpy(const double q[4], double *yaw, double *pitch, double *roll) {
  int k;
  double qin[4];
  double qm;
  double scale;
  double absxk;
  double t;
  for (k = 0; k < 4; k++) {
    qin[k] = q[k];
  }
  qm = 0.0;
  scale = 2.2250738585072014E-308;
  for (k = 0; k < 4; k++) {
    absxk = fabs(q[k]);
    if (absxk > scale) {
      t = scale / absxk;
      qm = 1.0 + qm * t * t;
      scale = absxk;
    } else {
      t = absxk / scale;
      qm += t * t;
    }
  }
  qm = scale * sqrt(qm);
  for (k = 0; k < 4; k++) {
    qin[k] /= qm;
  }
  *yaw = rt_atan2d_snf(2.0 * (qin[1] * qin[2] + qin[0] * qin[3]),
                       ((qin[0] * qin[0] + qin[1] * qin[1]) - qin[2] * qin[2]) -
                           qin[3] * qin[3]);
  *pitch = asin(-2.0 * (qin[1] * qin[3] - qin[0] * qin[2]));
  *roll =
      rt_atan2d_snf(2.0 * (qin[2] * qin[3] + qin[0] * qin[1]),
                    ((qin[0] * qin[0] - qin[1] * qin[1]) - qin[2] * qin[2]) +
                        qin[3] * qin[3]);
}


x86 assembly (clang, -O0):
<quat2rpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1181 <quat2rpy+0x51>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1152 <quat2rpy+0x22>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe6f(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1254 <quat2rpy+0x124>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe65(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1216 <quat2rpy+0xe6>
movsd  -0x60(%rbp),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe1a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1241 <quat2rpy+0x111>
movsd  -0x68(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1246 <quat2rpy+0x116>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    119d <quat2rpy+0x6d>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    12b1 <quat2rpy+0x181>
movsd  -0x58(%rbp),%xmm1
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1280 <quat2rpy+0x150>
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd33(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x38(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm3
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
call   1030 <rt_atan2d_snf@plt>
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc81(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <asin@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc44(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x38(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
call   1030 <rt_atan2d_snf@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quat2rpy>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm2
movapd 0xeaa(%rip),%xmm5
movapd %xmm0,0x30(%rsp)
andpd  %xmm0,%xmm5
ucomisd 0xeb8(%rip),%xmm5
jbe    118c <quat2rpy+0x5c>
movsd  0xeae(%rip),%xmm0
divsd  %xmm5,%xmm0
xorpd  %xmm1,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  0xea6(%rip),%xmm1
jmp    11ac <quat2rpy+0x7c>
movsd  0xe94(%rip),%xmm0
mulsd  %xmm5,%xmm0
mulsd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe74(%rip),%xmm5
movsd  0x10(%rdi),%xmm3
movapd 0xe47(%rip),%xmm0
andpd  %xmm2,%xmm0
ucomisd %xmm5,%xmm0
jbe    11e1 <quat2rpy+0xb1>
divsd  %xmm0,%xmm5
mulsd  %xmm5,%xmm1
mulsd  %xmm5,%xmm1
addsd  0xe59(%rip),%xmm1
movapd %xmm0,%xmm5
movapd %xmm1,%xmm0
jmp    11ed <quat2rpy+0xbd>
divsd  %xmm5,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x18(%rdi),%xmm4
movapd 0xe06(%rip),%xmm1
andpd  %xmm3,%xmm1
ucomisd %xmm5,%xmm1
jbe    1222 <quat2rpy+0xf2>
divsd  %xmm1,%xmm5
mulsd  %xmm5,%xmm0
mulsd  %xmm5,%xmm0
addsd  0xe18(%rip),%xmm0
movapd %xmm1,%xmm5
movapd %xmm0,%xmm1
jmp    122e <quat2rpy+0xfe>
divsd  %xmm5,%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movapd 0xdca(%rip),%xmm0
andpd  %xmm4,%xmm0
ucomisd %xmm5,%xmm0
jbe    125e <quat2rpy+0x12e>
divsd  %xmm0,%xmm5
mulsd  %xmm5,%xmm1
mulsd  %xmm5,%xmm1
addsd  0xddc(%rip),%xmm1
movapd %xmm0,%xmm5
movapd %xmm1,%xmm0
jmp    126a <quat2rpy+0x13a>
divsd  %xmm5,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     127a <quat2rpy+0x14a>
sqrtsd %xmm0,%xmm0
jmp    12ad <quat2rpy+0x17d>
movapd %xmm2,0x20(%rsp)
movapd %xmm3,0x10(%rsp)
movapd %xmm4,(%rsp)
movapd %xmm5,0x40(%rsp)
call   1050 <sqrt@plt>
movapd 0x40(%rsp),%xmm5
movapd (%rsp),%xmm4
movapd 0x10(%rsp),%xmm3
movapd 0x20(%rsp),%xmm2
mulsd  %xmm0,%xmm5
movapd 0x30(%rsp),%xmm0
divsd  %xmm5,%xmm0
divsd  %xmm5,%xmm2
movapd %xmm2,0x20(%rsp)
divsd  %xmm5,%xmm3
movapd %xmm3,0x10(%rsp)
divsd  %xmm5,%xmm4
movapd %xmm4,(%rsp)
movapd %xmm0,%xmm1
movapd %xmm0,%xmm6
movapd %xmm0,0x30(%rsp)
mulsd  %xmm4,%xmm1
movapd %xmm2,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm0
movapd %xmm2,%xmm5
mulsd  %xmm2,%xmm5
movapd %xmm5,0x70(%rsp)
movapd %xmm6,%xmm1
mulsd  %xmm6,%xmm1
movapd %xmm1,0x40(%rsp)
addsd  %xmm5,%xmm1
movapd 0xcee(%rip),%xmm5
xorpd  %xmm3,%xmm5
mulsd  %xmm3,%xmm5
movapd %xmm5,0x60(%rsp)
addsd  %xmm5,%xmm1
movapd %xmm4,%xmm5
mulsd  %xmm4,%xmm5
movapd %xmm5,0x50(%rsp)
subsd  %xmm5,%xmm1
call   1030 <rt_atan2d_snf@plt>
movsd  %xmm0,(%rbx)
movapd 0x10(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
movapd 0x20(%rsp),%xmm0
mulsd  (%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0xcc6(%rip),%xmm0
call   1040 <asin@plt>
movsd  %xmm0,(%r15)
movapd 0x20(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
movapd (%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm0
movapd 0x40(%rsp),%xmm1
subsd  0x70(%rsp),%xmm1
addsd  0x60(%rsp),%xmm1
addsd  0x50(%rsp),%xmm1
call   1030 <rt_atan2d_snf@plt>
movsd  %xmm0,(%r14)
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @quat2rpy(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca [4 x double]
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %9
br label %15
15: ; preds = %27, %4
%16 = load i32, i32* %9
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %30
18: ; preds = %15
%19 = load double*, double** %5
%20 = load i32, i32* %9
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %19, i64 %21
%23 = load double, double* %22
%24 = load i32, i32* %9
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 %25
store double %23, double* %26
br label %27
27: ; preds = %18
%28 = load i32, i32* %9
%29 = add nsw i32 %28, 1
store i32 %29, i32* %9
br label %15
30: ; preds = %15
store double 0.000000e+00, double* %11
store double 0x10000000000000, double* %12
store i32 0, i32* %9
br label %31
31: ; preds = %63, %30
%32 = load i32, i32* %9
%33 = icmp slt i32 %32, 4
br i1 %33, label %34, label %66
34: ; preds = %31
%35 = load double*, double** %5
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
%39 = load double, double* %38
%40 = call double @llvm.fabs.f64(double %39)
store double %40, double* %13
%41 = load double, double* %13
%42 = load double, double* %12
%43 = fcmp ogt double %41, %42
br i1 %43, label %44, label %54
44: ; preds = %34
%45 = load double, double* %12
%46 = load double, double* %13
%47 = fdiv double %45, %46
store double %47, double* %14
%48 = load double, double* %11
%49 = load double, double* %14
%50 = fmul double %48, %49
%51 = load double, double* %14
%52 = call double @llvm.fmuladd.f64(double %50, double %51, double 1.000000e+00)
store double %52, double* %11
%53 = load double, double* %13
store double %53, double* %12
br label %62
54: ; preds = %34
%55 = load double, double* %13
%56 = load double, double* %12
%57 = fdiv double %55, %56
store double %57, double* %14
%58 = load double, double* %14
%59 = load double, double* %14
%60 = load double, double* %11
%61 = call double @llvm.fmuladd.f64(double %58, double %59, double %60)
store double %61, double* %11
br label %62
62: ; preds = %54, %44
br label %63
63: ; preds = %62
%64 = load i32, i32* %9
%65 = add nsw i32 %64, 1
store i32 %65, i32* %9
br label %31
66: ; preds = %31
%67 = load double, double* %12
%68 = load double, double* %11
%69 = call double @sqrt(double %68)
%70 = fmul double %67, %69
store double %70, double* %11
store i32 0, i32* %9
br label %71
71: ; preds = %81, %66
%72 = load i32, i32* %9
%73 = icmp slt i32 %72, 4
br i1 %73, label %74, label %84
74: ; preds = %71
%75 = load double, double* %11
%76 = load i32, i32* %9
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 %77
%79 = load double, double* %78
%80 = fdiv double %79, %75
store double %80, double* %78
br label %81
81: ; preds = %74
%82 = load i32, i32* %9
%83 = add nsw i32 %82, 1
store i32 %83, i32* %9
br label %71
84: ; preds = %71
%85 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%86 = load double, double* %85
%87 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%88 = load double, double* %87
%89 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%90 = load double, double* %89
%91 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%92 = load double, double* %91
%93 = fmul double %90, %92
%94 = call double @llvm.fmuladd.f64(double %86, double %88, double %93)
%95 = fmul double 2.000000e+00, %94
%96 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%97 = load double, double* %96
%98 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%99 = load double, double* %98
%100 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%101 = load double, double* %100
%102 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%103 = load double, double* %102
%104 = fmul double %101, %103
%105 = call double @llvm.fmuladd.f64(double %97, double %99, double %104)
%106 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%107 = load double, double* %106
%108 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%109 = load double, double* %108
%110 = fneg double %107
%111 = call double @llvm.fmuladd.f64(double %110, double %109, double %105)
%112 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%113 = load double, double* %112
%114 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%115 = load double, double* %114
%116 = fneg double %113
%117 = call double @llvm.fmuladd.f64(double %116, double %115, double %111)
%118 = call double @rt_atan2d_snf(double %95, double %117)
%119 = load double*, double** %6
store double %118, double* %119
%120 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%121 = load double, double* %120
%122 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%123 = load double, double* %122
%124 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%125 = load double, double* %124
%126 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%127 = load double, double* %126
%128 = fmul double %125, %127
%129 = fneg double %128
%130 = call double @llvm.fmuladd.f64(double %121, double %123, double %129)
%131 = fmul double -2.000000e+00, %130
%132 = call double @asin(double %131)
%133 = load double*, double** %7
store double %132, double* %133
%134 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%135 = load double, double* %134
%136 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%137 = load double, double* %136
%138 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%139 = load double, double* %138
%140 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%141 = load double, double* %140
%142 = fmul double %139, %141
%143 = call double @llvm.fmuladd.f64(double %135, double %137, double %142)
%144 = fmul double 2.000000e+00, %143
%145 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%146 = load double, double* %145
%147 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%148 = load double, double* %147
%149 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%150 = load double, double* %149
%151 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%152 = load double, double* %151
%153 = fmul double %150, %152
%154 = fneg double %153
%155 = call double @llvm.fmuladd.f64(double %146, double %148, double %154)
%156 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%157 = load double, double* %156
%158 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%159 = load double, double* %158
%160 = fneg double %157
%161 = call double @llvm.fmuladd.f64(double %160, double %159, double %155)
%162 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%163 = load double, double* %162
%164 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%165 = load double, double* %164
%166 = call double @llvm.fmuladd.f64(double %163, double %165, double %161)
%167 = call double @rt_atan2d_snf(double %144, double %166)
%168 = load double*, double** %8
store double %167, double* %168
ret void
}

LLVM IR (-O2):
define void @quat2rpy(double* nocapture %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = load double, double* %0
%6 = getelementptr inbounds double, double* %0, i64 1
%7 = load double, double* %6
%8 = getelementptr inbounds double, double* %0, i64 2
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %0, i64 3
%11 = load double, double* %10
%12 = tail call double @llvm.fabs.f64(double %5)
%13 = fcmp ogt double %12, 0x10000000000000
br i1 %13, label %14, label %18
14: ; preds = %4
%15 = fdiv double 0x10000000000000, %12
%16 = fmul double %15, 0.000000e+00
%17 = tail call double @llvm.fmuladd.f64(double %16, double %15, double 1.000000e+00)
br label %21
18: ; preds = %4
%19 = fmul double %12, 0x7FD0000000000000
%20 = tail call double @llvm.fmuladd.f64(double %19, double %19, double 0.000000e+00)
br label %21
21: ; preds = %14, %18
%22 = phi double [ %17, %14 ], [ %20, %18 ]
%23 = phi double [ %12, %14 ], [ 0x10000000000000, %18 ]
%24 = tail call double @llvm.fabs.f64(double %7)
%25 = fcmp ogt double %24, %23
br i1 %25, label %29, label %26
26: ; preds = %21
%27 = fdiv double %24, %23
%28 = tail call double @llvm.fmuladd.f64(double %27, double %27, double %22)
br label %33
29: ; preds = %21
%30 = fdiv double %23, %24
%31 = fmul double %22, %30
%32 = tail call double @llvm.fmuladd.f64(double %31, double %30, double 1.000000e+00)
br label %33
33: ; preds = %29, %26
%34 = phi double [ %32, %29 ], [ %28, %26 ]
%35 = phi double [ %24, %29 ], [ %23, %26 ]
%36 = tail call double @llvm.fabs.f64(double %9)
%37 = fcmp ogt double %36, %35
br i1 %37, label %41, label %38
38: ; preds = %33
%39 = fdiv double %36, %35
%40 = tail call double @llvm.fmuladd.f64(double %39, double %39, double %34)
br label %45
41: ; preds = %33
%42 = fdiv double %35, %36
%43 = fmul double %34, %42
%44 = tail call double @llvm.fmuladd.f64(double %43, double %42, double 1.000000e+00)
br label %45
45: ; preds = %41, %38
%46 = phi double [ %44, %41 ], [ %40, %38 ]
%47 = phi double [ %36, %41 ], [ %35, %38 ]
%48 = tail call double @llvm.fabs.f64(double %11)
%49 = fcmp ogt double %48, %47
br i1 %49, label %53, label %50
50: ; preds = %45
%51 = fdiv double %48, %47
%52 = tail call double @llvm.fmuladd.f64(double %51, double %51, double %46)
br label %57
53: ; preds = %45
%54 = fdiv double %47, %48
%55 = fmul double %46, %54
%56 = tail call double @llvm.fmuladd.f64(double %55, double %54, double 1.000000e+00)
br label %57
57: ; preds = %53, %50
%58 = phi double [ %56, %53 ], [ %52, %50 ]
%59 = phi double [ %48, %53 ], [ %47, %50 ]
%60 = tail call double @sqrt(double %58)
%61 = fmul double %59, %60
%62 = fdiv double %5, %61
%63 = fdiv double %7, %61
%64 = fdiv double %9, %61
%65 = fdiv double %11, %61
%66 = fmul double %62, %65
%67 = tail call double @llvm.fmuladd.f64(double %63, double %64, double %66)
%68 = fmul double %67, 2.000000e+00
%69 = fmul double %63, %63
%70 = tail call double @llvm.fmuladd.f64(double %62, double %62, double %69)
%71 = fneg double %64
%72 = tail call double @llvm.fmuladd.f64(double %71, double %64, double %70)
%73 = fneg double %65
%74 = tail call double @llvm.fmuladd.f64(double %73, double %65, double %72)
%75 = tail call double @rt_atan2d_snf(double %68, double %74)
store double %75, double* %1
%76 = fneg double %62
%77 = fmul double %64, %76
%78 = tail call double @llvm.fmuladd.f64(double %63, double %65, double %77)
%79 = fmul double %78, -2.000000e+00
%80 = tail call double @asin(double %79)
store double %80, double* %2
%81 = fmul double %63, %62
%82 = tail call double @llvm.fmuladd.f64(double %64, double %65, double %81)
%83 = fmul double %82, 2.000000e+00
%84 = fneg double %63
%85 = fmul double %63, %84
%86 = tail call double @llvm.fmuladd.f64(double %62, double %62, double %85)
%87 = tail call double @llvm.fmuladd.f64(double %71, double %64, double %86)
%88 = tail call double @llvm.fmuladd.f64(double %65, double %65, double %87)
%89 = tail call double @rt_atan2d_snf(double %83, double %88)
store double %89, double* %3
ret void
}