#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 fabs(double);
double sqrt(double);
double mp_enorm(int n, double *x) {
  int i;
  double agiant, floatn, s1, s2, s3, xabs, x1max, x3max;
  double ans, temp;
  double rdwarf = (sqrt(2.2250739e-308 * 1.5) * 10);
  double rgiant = (sqrt(1.7976931e+308) * 0.1);
  static double zero = 0.0;
  static double one = 1.0;
  s1 = zero;
  s2 = zero;
  s3 = zero;
  x1max = zero;
  x3max = zero;
  floatn = n;
  agiant = rgiant / floatn;
  for (i = 0; i < n; i++) {
    xabs = fabs(x[i]);
    if ((xabs > rdwarf) && (xabs < agiant)) {
      s2 += xabs * xabs;
      continue;
    }
    if (xabs > rdwarf) {
      if (xabs > x1max) {
        temp = x1max / xabs;
        s1 = one + s1 * temp * temp;
        x1max = xabs;
      } else {
        temp = xabs / x1max;
        s1 += temp * temp;
      }
      continue;
    }
    if (xabs > x3max) {
      temp = x3max / xabs;
      s3 = one + s3 * temp * temp;
      x3max = xabs;
    } else {
      if (xabs != zero) {
        temp = xabs / x3max;
        s3 += temp * temp;
      }
    }
  }
  if (s1 != zero) {
    temp = s1 + (s2 / x1max) / x1max;
    ans = x1max * sqrt(temp);
    return (ans);
  }
  if (s2 != zero) {
    if (s2 >= x3max)
      temp = s2 * (one + (x3max / s2) * (x3max * s3));
    else
      temp = x3max * ((s2 / x3max) + (x3max * s3));
    ans = sqrt(temp);
  } else {
    ans = x3max * sqrt(s3);
  }
  return (ans);
}


x86 assembly (clang, -O0):
<mp_enorm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  0xeee(%rip),%xmm0
call   1030 <sqrt@plt>
movsd  0xed9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xec0(%rip),%xmm0
call   1030 <sqrt@plt>
movsd  0xeab(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0x2ed2(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0x2ec5(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0x2eb8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0x2eab(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0x2e9e(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x80(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1372 <mp_enorm+0x262>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe41(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    122d <mp_enorm+0x11d>
movsd  -0x50(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    122d <mp_enorm+0x11d>
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1364 <mp_enorm+0x254>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    12bf <mp_enorm+0x1af>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    128f <mp_enorm+0x17f>
movsd  -0x58(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x2dc4(%rip),%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    12ba <mp_enorm+0x1aa>
movsd  -0x50(%rbp),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1364 <mp_enorm+0x254>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1311 <mp_enorm+0x201>
movsd  -0x60(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x2d42(%rip),%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    135f <mp_enorm+0x24f>
movsd  -0x50(%rbp),%xmm0
ucomisd 0x2d1a(%rip),%xmm0
jne    132f <mp_enorm+0x21f>
jp     132f <mp_enorm+0x21f>
jmp    135a <mp_enorm+0x24a>
movsd  -0x50(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    135f <mp_enorm+0x24f>
jmp    1364 <mp_enorm+0x254>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11bf <mp_enorm+0xaf>
movsd  -0x38(%rbp),%xmm0
ucomisd 0x2cb9(%rip),%xmm0
jne    1390 <mp_enorm+0x280>
jp     1390 <mp_enorm+0x280>
jmp    13e7 <mp_enorm+0x2d7>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
divsd  -0x58(%rbp),%xmm1
divsd  -0x58(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    14bf <mp_enorm+0x3af>
movsd  -0x40(%rbp),%xmm0
ucomisd 0x2c44(%rip),%xmm0
jne    1405 <mp_enorm+0x2f5>
jp     1405 <mp_enorm+0x2f5>
jmp    148a <mp_enorm+0x37a>
movsd  -0x40(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     144c <mp_enorm+0x33c>
movsd  -0x40(%rbp),%xmm0
movsd  0x2c06(%rip),%xmm2
movsd  -0x60(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm3
mulsd  -0x48(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1476 <mp_enorm+0x366>
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
divsd  -0x60(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x68(%rbp)
jmp    14b5 <mp_enorm+0x3a5>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp_enorm>:
sub    $0x18,%rsp
xorpd  %xmm8,%xmm8
xorpd  %xmm0,%xmm0
xorpd  %xmm7,%xmm7
test   %edi,%edi
jle    127a <mp_enorm+0x16a>
xorps  %xmm0,%xmm0
cvtsi2sd %edi,%xmm0
movsd  0xec8(%rip),%xmm4
divsd  %xmm0,%xmm4
mov    %edi,%eax
xorpd  %xmm9,%xmm9
xor    %ecx,%ecx
movapd 0xed2(%rip),%xmm11
movsd  0xeb1(%rip),%xmm12
movsd  0xeb0(%rip),%xmm10
xorpd  %xmm7,%xmm7
xorpd  %xmm6,%xmm6
xorpd  %xmm1,%xmm1
xorpd  %xmm0,%xmm0
xorpd  %xmm3,%xmm3
jmp    1195 <mp_enorm+0x85>
cs nopw 0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm3
add    $0x1,%rcx
cmp    %rcx,%rax
je     122c <mp_enorm+0x11c>
movsd  (%rsi,%rcx,8),%xmm2
movapd %xmm2,%xmm5
andpd  %xmm11,%xmm5
ucomisd %xmm12,%xmm5
jbe    11b0 <mp_enorm+0xa0>
ucomisd %xmm5,%xmm4
ja     1180 <mp_enorm+0x70>
ucomisd %xmm12,%xmm5
jbe    11e0 <mp_enorm+0xd0>
ucomisd %xmm6,%xmm5
jbe    11fd <mp_enorm+0xed>
divsd  %xmm5,%xmm6
mulsd  %xmm6,%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm10,%xmm1
movapd %xmm5,%xmm6
jmp    1188 <mp_enorm+0x78>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
ucomisd %xmm7,%xmm5
jbe    120e <mp_enorm+0xfe>
divsd  %xmm5,%xmm7
mulsd  %xmm7,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm10,%xmm0
movapd %xmm5,%xmm7
jmp    1188 <mp_enorm+0x78>
divsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm5
addsd  %xmm5,%xmm1
jmp    1188 <mp_enorm+0x78>
ucomisd %xmm9,%xmm2
jne    121b <mp_enorm+0x10b>
jnp    1188 <mp_enorm+0x78>
divsd  %xmm7,%xmm5
mulsd  %xmm5,%xmm5
addsd  %xmm5,%xmm0
jmp    1188 <mp_enorm+0x78>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
jne    1238 <mp_enorm+0x128>
jnp    125a <mp_enorm+0x14a>
divsd  %xmm6,%xmm3
divsd  %xmm6,%xmm3
addsd  %xmm3,%xmm1
ucomisd %xmm2,%xmm1
jb     12a0 <mp_enorm+0x190>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
mulsd  %xmm0,%xmm6
jmp    12e2 <mp_enorm+0x1d2>
ucomisd %xmm2,%xmm3
jne    1262 <mp_enorm+0x152>
jnp    127a <mp_enorm+0x16a>
ucomisd %xmm7,%xmm3
jae    12b9 <mp_enorm+0x1a9>
divsd  %xmm7,%xmm3
mulsd  %xmm7,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm0,%xmm7
jmp    12d1 <mp_enorm+0x1c1>
ucomisd %xmm8,%xmm0
jb     1287 <mp_enorm+0x177>
sqrtsd %xmm0,%xmm0
jmp    1296 <mp_enorm+0x186>
movapd %xmm7,(%rsp)
call   1030 <sqrt@plt>
movapd (%rsp),%xmm7
mulsd  %xmm0,%xmm7
movapd %xmm7,%xmm6
jmp    12e2 <mp_enorm+0x1d2>
movapd %xmm1,%xmm0
movsd  %xmm6,(%rsp)
call   1030 <sqrt@plt>
movsd  (%rsp),%xmm6
mulsd  %xmm0,%xmm6
jmp    12e2 <mp_enorm+0x1d2>
mulsd  %xmm7,%xmm0
divsd  %xmm3,%xmm7
mulsd  %xmm0,%xmm7
addsd  0xd43(%rip),%xmm7
mulsd  %xmm3,%xmm7
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm7
jb     12eb <mp_enorm+0x1db>
xorps  %xmm6,%xmm6
sqrtsd %xmm7,%xmm6
movapd %xmm6,%xmm0
add    $0x18,%rsp
ret
movapd %xmm7,%xmm0
add    $0x18,%rsp
jmp    1030 <sqrt@plt>

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

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