#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 const);
double sqrt(double);
double enorm_(const int *n, const double *x) {
  int i__1;
  double ret_val, d__1;
  int i__;
  double s1, s2, s3, xabs, x1max, x3max, agiant, floatn;
  --x;
  s1 = 0.;
  s2 = 0.;
  s3 = 0.;
  x1max = 0.;
  x3max = 0.;
  floatn = (double)(*n);
  agiant = (1.3407807929942596e+154 * 0.9) / floatn;
  i__1 = *n;
  for (i__ = 1; i__ <= i__1; ++i__) {
    xabs = fabs(x[i__]);
    if (xabs > (1.4916681462400413e-154 * 0.9) && xabs < agiant) {
      goto L70;
    }
    if (xabs <= (1.4916681462400413e-154 * 0.9)) {
      goto L30;
    }
    if (xabs <= x1max) {
      goto L10;
    }
    d__1 = x1max / xabs;
    s1 = 1. + s1 * (d__1 * d__1);
    x1max = xabs;
    goto L20;
  L10:
    d__1 = xabs / x1max;
    s1 += d__1 * d__1;
  L20:
    goto L60;
  L30:
    if (xabs <= x3max) {
      goto L40;
    }
    d__1 = x3max / xabs;
    s3 = 1. + s3 * (d__1 * d__1);
    x3max = xabs;
    goto L50;
  L40:
    if (xabs != 0.) {
      d__1 = xabs / x3max;
      s3 += d__1 * d__1;
    }
  L50:
  L60:
    goto L80;
  L70:
    d__1 = xabs;
    s2 += d__1 * d__1;
  L80:;
  }
  if (s1 == 0.) {
    goto L100;
  }
  ret_val = x1max * sqrt(s1 + s2 / x1max / x1max);
  goto L130;
L100:
  if (s2 == 0.) {
    goto L110;
  }
  if (s2 >= x3max) {
    ret_val = sqrt(s2 * (1. + x3max / s2 * (x3max * s3)));
  }
  if (s2 < x3max) {
    ret_val = sqrt(x3max * (s2 / x3max + x3max * s3));
  }
  goto L120;
L110:
  ret_val = x3max * sqrt(s3);
L120:
L130:
  return ret_val;
}


x86 assembly (clang, -O0):
<enorm_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
cvtsi2sdl (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe94(%rip),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     136d <enorm_+0x25d>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe7a(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xe54(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11df <enorm_+0xcf>
movsd  -0x50(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11df <enorm_+0xcf>
jmp    1334 <enorm_+0x224>
movsd  0xe29(%rip),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     11f7 <enorm_+0xe7>
jmp    1282 <enorm_+0x172>
movsd  -0x50(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1210 <enorm_+0x100>
jmp    1252 <enorm_+0x142>
movsd  -0x58(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdce(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    127d <enorm_+0x16d>
movsd  -0x50(%rbp),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    132f <enorm_+0x21f>
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     129b <enorm_+0x18b>
jmp    12dd <enorm_+0x1cd>
movsd  -0x60(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd43(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    132a <enorm_+0x21a>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12fa <enorm_+0x1ea>
jp     12fa <enorm_+0x1ea>
jmp    1325 <enorm_+0x215>
movsd  -0x50(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    132a <enorm_+0x21a>
jmp    132f <enorm_+0x21f>
jmp    135a <enorm_+0x24a>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    135f <enorm_+0x24f>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1186 <enorm_+0x76>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    138a <enorm_+0x27a>
jp     138a <enorm_+0x27a>
jmp    13c7 <enorm_+0x2b7>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
divsd  -0x58(%rbp),%xmm1
divsd  -0x58(%rbp),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    149d <enorm_+0x38d>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13e4 <enorm_+0x2d4>
jp     13e4 <enorm_+0x2d4>
jmp    1473 <enorm_+0x363>
movsd  -0x40(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     142b <enorm_+0x31b>
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xbef(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    146e <enorm_+0x35e>
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
call   1030 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
jmp    1498 <enorm_+0x388>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    149d <enorm_+0x38d>
movsd  -0x20(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enorm_>:
sub    $0x38,%rsp
mov    (%rdi),%eax
xorpd  %xmm8,%xmm8
xorpd  %xmm12,%xmm12
xorpd  %xmm6,%xmm6
test   %eax,%eax
jle    1242 <enorm_+0x132>
cvtsi2sd %eax,%xmm0
movsd  0xec8(%rip),%xmm2
divsd  %xmm0,%xmm2
xorpd  %xmm9,%xmm9
xor    %ecx,%ecx
movapd 0xed4(%rip),%xmm11
movsd  0xeb4(%rip),%xmm5
movsd  0xeb3(%rip),%xmm10
xorpd  %xmm6,%xmm6
xorpd  %xmm3,%xmm3
xorpd  %xmm12,%xmm12
xorpd  %xmm4,%xmm4
xorpd  %xmm0,%xmm0
jmp    1195 <enorm_+0x85>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm4
add    $0x1,%rcx
cmp    %rcx,%rax
je     122e <enorm_+0x11e>
movsd  (%rsi,%rcx,8),%xmm1
movapd %xmm1,%xmm7
andpd  %xmm11,%xmm7
ucomisd %xmm5,%xmm7
jbe    11af <enorm_+0x9f>
ucomisd %xmm7,%xmm2
ja     1180 <enorm_+0x70>
ucomisd %xmm7,%xmm5
jae    11e0 <enorm_+0xd0>
ucomisd %xmm7,%xmm3
jae    11fe <enorm_+0xee>
divsd  %xmm7,%xmm3
mulsd  %xmm3,%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm10,%xmm0
movapd %xmm7,%xmm3
jmp    1188 <enorm_+0x78>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
ucomisd %xmm7,%xmm6
jae    120f <enorm_+0xff>
divsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm6
mulsd  %xmm6,%xmm12
addsd  %xmm10,%xmm12
movapd %xmm7,%xmm6
jmp    1188 <enorm_+0x78>
divsd  %xmm3,%xmm7
mulsd  %xmm7,%xmm7
addsd  %xmm7,%xmm0
jmp    1188 <enorm_+0x78>
ucomisd %xmm9,%xmm1
jne    121c <enorm_+0x10c>
jnp    1188 <enorm_+0x78>
divsd  %xmm6,%xmm7
mulsd  %xmm7,%xmm7
addsd  %xmm7,%xmm12
jmp    1188 <enorm_+0x78>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    127a <enorm_+0x16a>
jp     127a <enorm_+0x16a>
ucomisd %xmm1,%xmm4
jne    1296 <enorm_+0x186>
jp     1296 <enorm_+0x186>
ucomisd %xmm8,%xmm12
jb     1253 <enorm_+0x143>
xorps  %xmm0,%xmm0
sqrtsd %xmm12,%xmm0
jmp    1269 <enorm_+0x159>
movapd %xmm12,%xmm0
movsd  %xmm6,0x8(%rsp)
call   1030 <sqrt@plt>
movsd  0x8(%rsp),%xmm6
mulsd  %xmm0,%xmm6
movapd %xmm6,%xmm3
movapd %xmm3,%xmm0
add    $0x38,%rsp
ret
divsd  %xmm3,%xmm4
divsd  %xmm3,%xmm4
addsd  %xmm4,%xmm0
ucomisd %xmm1,%xmm0
jb     12d0 <enorm_+0x1c0>
sqrtsd %xmm0,%xmm0
mulsd  %xmm0,%xmm3
jmp    1271 <enorm_+0x161>
ucomisd %xmm6,%xmm4
jb     1316 <enorm_+0x206>
movapd %xmm6,%xmm1
divsd  %xmm4,%xmm1
movapd %xmm12,%xmm0
mulsd  %xmm6,%xmm0
mulsd  %xmm1,%xmm0
addsd  0xd57(%rip),%xmm0
mulsd  %xmm4,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     12e7 <enorm_+0x1d7>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
jmp    1316 <enorm_+0x206>
movsd  %xmm3,0x8(%rsp)
call   1030 <sqrt@plt>
movsd  0x8(%rsp),%xmm3
mulsd  %xmm0,%xmm3
jmp    1271 <enorm_+0x161>
movsd  %xmm6,0x8(%rsp)
movapd %xmm12,0x20(%rsp)
movapd %xmm4,0x10(%rsp)
call   1030 <sqrt@plt>
movapd 0x10(%rsp),%xmm4
movapd 0x20(%rsp),%xmm12
movsd  0x8(%rsp),%xmm6
movapd %xmm0,%xmm3
ucomisd %xmm4,%xmm6
jbe    1271 <enorm_+0x161>
divsd  %xmm6,%xmm4
mulsd  %xmm6,%xmm12
addsd  %xmm4,%xmm12
mulsd  %xmm6,%xmm12
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm12
jb     134b <enorm_+0x23b>
xorps  %xmm3,%xmm3
sqrtsd %xmm12,%xmm3
jmp    1271 <enorm_+0x161>
movapd %xmm12,%xmm0
add    $0x38,%rsp
jmp    1030 <sqrt@plt>

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

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