#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 sqrt(double);
double _vol_draw_mandel_box_equation(double *v, double s, double r, double f,
                                     double *c) {
  double fold[3];
  fold[0] = v[0];
  fold[1] = v[1];
  fold[2] = v[2];
  ;
  int i;
  for (i = 0; i < 3; i++) {
    if (fold[i] > 1)
      fold[i] = (double)2.0 - fold[i];
    else if (fold[i] < -1)
      fold[i] = (double)-2.0 - fold[i];
  }
  fold[0] *= (double)f;
  fold[1] *= (double)f;
  fold[2] *= (double)f;
  ;
  double m = sqrt((fold[0] * fold[0] + fold[1] * fold[1] + fold[2] * fold[2]));
  if (m < r) {
    fold[0] *= (double)4;
    fold[1] *= (double)4;
    fold[2] *= (double)4;
    ;
  } else if (m < 1) {
    fold[0] /= (double)m * m;
    fold[1] /= (double)m * m;
    fold[2] /= (double)m * m;
    ;
  }
  v[0] = fold[0];
  v[1] = fold[1];
  v[2] = fold[2];
  ;
  v[0] *= (double)s;
  v[1] *= (double)s;
  v[2] *= (double)s;
  ;
  v[0] += c[0];
  v[1] += c[1];
  v[2] += c[2];
  ;
  return sqrt((v[0] * v[0] + v[1] * v[1] + v[2] * v[2]));
}


x86 assembly (clang, -O0):
<_vol_draw_mandel_box_equation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x3,-0x44(%rbp)
jge    11f2 <_vol_draw_mandel_box_equation+0xe2>
movslq -0x44(%rbp),%rax
movsd  -0x40(%rbp,%rax,8),%xmm0
movsd  0xe85(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11a6 <_vol_draw_mandel_box_equation+0x96>
movslq -0x44(%rbp),%rax
movsd  0xe8f(%rip),%xmm0
subsd  -0x40(%rbp,%rax,8),%xmm0
movslq -0x44(%rbp),%rax
movsd  %xmm0,-0x40(%rbp,%rax,8)
jmp    11df <_vol_draw_mandel_box_equation+0xcf>
movslq -0x44(%rbp),%rax
movsd  0xe5e(%rip),%xmm0
ucomisd -0x40(%rbp,%rax,8),%xmm0
jbe    11da <_vol_draw_mandel_box_equation+0xca>
movslq -0x44(%rbp),%rax
movsd  0xe4e(%rip),%xmm0
subsd  -0x40(%rbp,%rax,8),%xmm0
movslq -0x44(%rbp),%rax
movsd  %xmm0,-0x40(%rbp,%rax,8)
jmp    11df <_vol_draw_mandel_box_equation+0xcf>
jmp    11e4 <_vol_draw_mandel_box_equation+0xd4>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    115f <_vol_draw_mandel_box_equation+0x4f>
movsd  -0x20(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12a6 <_vol_draw_mandel_box_equation+0x196>
movsd  0xd95(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd83(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd71(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1306 <_vol_draw_mandel_box_equation+0x1f6>
movsd  0xd52(%rip),%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    1301 <_vol_draw_mandel_box_equation+0x1f1>
movsd  -0x50(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x50(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1306 <_vol_draw_mandel_box_equation+0x1f6>
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_vol_draw_mandel_box_equation>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r14
movapd %xmm0,%xmm3
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm6
ucomisd 0xece(%rip),%xmm0
jbe    113e <_vol_draw_mandel_box_equation+0x2e>
movsd  0xedc(%rip),%xmm4
jmp    1154 <_vol_draw_mandel_box_equation+0x44>
movsd  0xec2(%rip),%xmm4
ucomisd %xmm0,%xmm4
jbe    115c <_vol_draw_mandel_box_equation+0x4c>
movsd  0xebc(%rip),%xmm4
subsd  %xmm0,%xmm4
movapd %xmm4,%xmm0
movsd  0x10(%rbx),%xmm4
ucomisd 0xe97(%rip),%xmm6
jbe    1175 <_vol_draw_mandel_box_equation+0x65>
movsd  0xea5(%rip),%xmm5
jmp    118b <_vol_draw_mandel_box_equation+0x7b>
movsd  0xe8b(%rip),%xmm5
ucomisd %xmm6,%xmm5
jbe    1193 <_vol_draw_mandel_box_equation+0x83>
movsd  0xe85(%rip),%xmm5
subsd  %xmm6,%xmm5
movapd %xmm5,%xmm6
ucomisd 0xe65(%rip),%xmm4
jbe    11a7 <_vol_draw_mandel_box_equation+0x97>
movsd  0xe73(%rip),%xmm5
jmp    11bd <_vol_draw_mandel_box_equation+0xad>
movsd  0xe59(%rip),%xmm5
ucomisd %xmm4,%xmm5
jbe    11c5 <_vol_draw_mandel_box_equation+0xb5>
movsd  0xe53(%rip),%xmm5
subsd  %xmm4,%xmm5
movapd %xmm5,%xmm4
unpcklpd %xmm6,%xmm0
mulsd  %xmm2,%xmm4
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movapd %xmm2,%xmm0
mulpd  %xmm2,%xmm0
unpckhpd %xmm0,%xmm0
movapd %xmm2,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm0,%xmm5
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm5,%xmm0
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm0
jb     122d <_vol_draw_mandel_box_equation+0x11d>
sqrtsd %xmm0,%xmm0
ucomisd %xmm0,%xmm1
ja     1266 <_vol_draw_mandel_box_equation+0x156>
movsd  0xdeb(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1276 <_vol_draw_mandel_box_equation+0x166>
mulsd  %xmm0,%xmm0
divsd  %xmm0,%xmm4
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm2
jmp    1276 <_vol_draw_mandel_box_equation+0x166>
movapd %xmm3,0x20(%rsp)
movsd  %xmm4,0x8(%rsp)
movapd %xmm2,0x10(%rsp)
movsd  %xmm1,(%rsp)
call   1030 <sqrt@plt>
movsd  (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
movsd  0x8(%rsp),%xmm4
movapd 0x20(%rsp),%xmm3
ucomisd %xmm0,%xmm1
jbe    120d <_vol_draw_mandel_box_equation+0xfd>
mulpd  0xdc2(%rip),%xmm2
mulsd  0xdaa(%rip),%xmm4
mulsd  %xmm3,%xmm4
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
movupd %xmm3,(%rbx)
movsd  %xmm4,0x10(%rbx)
movsd  (%r14),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,(%rbx)
unpckhpd %xmm3,%xmm3
addsd  0x8(%r14),%xmm3
movsd  %xmm3,0x8(%rbx)
addsd  0x10(%r14),%xmm4
movsd  %xmm4,0x10(%rbx)
mulsd  %xmm3,%xmm3
mulsd  %xmm0,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm4,%xmm4
addsd  %xmm0,%xmm4
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm4
jb     12df <_vol_draw_mandel_box_equation+0x1cf>
xorps  %xmm0,%xmm0
sqrtsd %xmm4,%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret
movapd %xmm4,%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r14
jmp    1030 <sqrt@plt>

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

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