#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 sqrt(int);
void normu(const double *u, const int *inl, int len, double *A1, double *A2) {
  int i, j;
  double a, b;
  const double *p = u;
  for (j = 0; j < 3; j++) {
    A1[j] = 0;
    A2[j] = 0;
  }
  for (j = 0; j < len; j++) {
    u = p + 6 * inl[j];
    A1[1] += u[0];
    A1[2] += u[1];
    A2[1] += u[3];
    A2[2] += u[4];
  }
  if (len > 0)
    for (i = 1; i < 3; i++) {
      A1[i] /= len;
      A2[i] /= len;
    }
  for (j = 0; j < len; j++) {
    u = p + 6 * inl[j];
    a = u[0] - A1[1];
    b = u[1] - A1[2];
    A1[0] += sqrt(a * a + b * b);
    a = u[3] - A2[1];
    b = u[4] - A2[2];
    A2[0] += sqrt(a * a + b * b);
  }
  if (A1[0] != 0)
    A1[0] = len * sqrt(2) / A1[0];
  if (A2[0] != 0)
    A2[0] = len * sqrt(2) / A2[0];
  A1[1] *= -A1[0];
  A1[2] *= -A1[0];
  A2[1] *= -A2[0];
  A2[2] *= -A2[0];
}


x86 assembly (clang, -O0):
<normu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x3,-0x30(%rbp)
jge    1172 <normu+0x62>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    113a <normu+0x2a>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    120c <normu+0xfc>
mov    -0x48(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq -0x30(%rbp),%rdx
imul   $0x6,(%rcx,%rdx,4),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x28(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x28(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1179 <normu+0x69>
cmpl   $0x0,-0x14(%rbp)
jle    1270 <normu+0x160>
movl   $0x1,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    126b <normu+0x15b>
cvtsi2sdl -0x14(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
cvtsi2sdl -0x14(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    121d <normu+0x10d>
jmp    1270 <normu+0x160>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1374 <normu+0x264>
mov    -0x48(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq -0x30(%rbp),%rdx
imul   $0x6,(%rcx,%rdx,4),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
cvtsi2sd %eax,%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
cvtsi2sd %eax,%xmm0
mov    -0x28(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1277 <normu+0x167>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1394 <normu+0x284>
jp     1394 <normu+0x284>
jmp    13c0 <normu+0x2b0>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    $0x2,%edi
call   1030 <sqrt@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
mov    -0x20(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13e0 <normu+0x2d0>
jp     13e0 <normu+0x2d0>
jmp    140c <normu+0x2fc>
mov    -0x14(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    $0x2,%edi
call   1030 <sqrt@plt>
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
mov    -0x28(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<normu>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,%r14
mov    %rcx,%rbx
movq   $0x0,(%rcx)
movq   $0x0,(%r8)
movq   $0x0,0x8(%rcx)
movq   $0x0,0x8(%r8)
movq   $0x0,0x10(%rcx)
movq   $0x0,0x10(%r8)
mov    %edx,0xc(%rsp)
test   %edx,%edx
jle    12ca <normu+0x1ba>
mov    %rdi,%rbp
mov    0xc(%rsp),%r13d
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movslq (%rsi,%rax,4),%rcx
lea    (%rcx,%rcx,2),%rcx
shl    $0x4,%rcx
movsd  0x0(%rbp,%rcx,1),%xmm0
addsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x8(%rbx)
movsd  0x8(%rbp,%rcx,1),%xmm0
addsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x18(%rbp,%rcx,1),%xmm0
addsd  0x8(%r14),%xmm0
movsd  %xmm0,0x8(%r14)
movsd  0x20(%rbp,%rcx,1),%xmm0
addsd  0x10(%r14),%xmm0
movsd  %xmm0,0x10(%r14)
add    $0x1,%rax
cmp    %rax,%r13
jne    1170 <normu+0x60>
cmpl   $0x0,0xc(%rsp)
jle    12ca <normu+0x1ba>
xorps  %xmm0,%xmm0
cvtsi2sdl 0xc(%rsp),%xmm0
movsd  0x8(%rbx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx)
movsd  0x8(%r14),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r14)
movsd  0x10(%rbx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
movsd  0x10(%r14),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%r14)
xor    %r15d,%r15d
mov    %rsi,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq (%rsi,%r15,4),%rax
lea    (%rax,%rax,2),%r12
shl    $0x4,%r12
movsd  0x0(%rbp,%r12,1),%xmm0
subsd  0x8(%rbx),%xmm0
movsd  0x8(%rbp,%r12,1),%xmm1
subsd  0x10(%rbx),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  (%rbx),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x18(%rbp,%r12,1),%xmm0
subsd  0x8(%r14),%xmm0
movsd  0x20(%rbp,%r12,1),%xmm1
subsd  0x10(%r14),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
mov    0x10(%rsp),%rsi
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  (%r14),%xmm0
movsd  %xmm0,(%r14)
add    $0x1,%r15
cmp    %r15,%r13
jne    1230 <normu+0x120>
movsd  (%rbx),%xmm0
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jne    12da <normu+0x1ca>
jnp    12fc <normu+0x1ec>
mov    $0x2,%edi
call   1030 <sqrt@plt>
xorpd  %xmm2,%xmm2
imul   0xc(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  (%rbx),%xmm0
movsd  %xmm0,(%rbx)
movsd  (%r14),%xmm1
ucomisd %xmm2,%xmm1
jne    1309 <normu+0x1f9>
jnp    132d <normu+0x21d>
mov    $0x2,%edi
call   1030 <sqrt@plt>
imul   0xc(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  (%r14),%xmm0
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm0
movapd 0xccb(%rip),%xmm1
xorpd  %xmm1,%xmm0
movupd 0x8(%rbx),%xmm2
pshufd $0x44,%xmm0,%xmm0
mulpd  %xmm2,%xmm0
movupd %xmm0,0x8(%rbx)
movsd  (%r14),%xmm0
xorpd  %xmm1,%xmm0
movupd 0x8(%r14),%xmm1
pshufd $0x44,%xmm0,%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm0,0x8(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @normu(double* nocapture %0, i32* nocapture %1, i32 %2, double* nocapture %3, double* nocapture %4) {
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
%6 = getelementptr inbounds double, double* %3, i64 1
store double 0.000000e+00, double* %6
%7 = getelementptr inbounds double, double* %4, i64 1
store double 0.000000e+00, double* %7
%8 = getelementptr inbounds double, double* %3, i64 2
store double 0.000000e+00, double* %8
%9 = getelementptr inbounds double, double* %4, i64 2
store double 0.000000e+00, double* %9
%10 = icmp sgt i32 %2, 0
br i1 %10, label %11, label %87
11: ; preds = %5
%12 = zext i32 %2 to i64
br label %13
13: ; preds = %11, %13
%14 = phi i64 [ 0, %11 ], [ %35, %13 ]
%15 = getelementptr inbounds i32, i32* %1, i64 %14
%16 = load i32, i32* %15
%17 = mul nsw i32 %16, 6
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %0, i64 %18
%20 = load double, double* %19
%21 = load double, double* %6
%22 = fadd double %20, %21
store double %22, double* %6
%23 = getelementptr inbounds double, double* %19, i64 1
%24 = load double, double* %23
%25 = load double, double* %8
%26 = fadd double %24, %25
store double %26, double* %8
%27 = getelementptr inbounds double, double* %19, i64 3
%28 = load double, double* %27
%29 = load double, double* %7
%30 = fadd double %28, %29
store double %30, double* %7
%31 = getelementptr inbounds double, double* %19, i64 4
%32 = load double, double* %31
%33 = load double, double* %9
%34 = fadd double %32, %33
store double %34, double* %9
%35 = add nuw nsw i64 %14, 1
%36 = icmp eq i64 %35, %12
br i1 %36, label %37, label %13
37: ; preds = %13
br i1 %10, label %38, label %87
38: ; preds = %37
%39 = sitofp i32 %2 to double
%40 = load double, double* %6
%41 = fdiv double %40, %39
store double %41, double* %6
%42 = load double, double* %7
%43 = fdiv double %42, %39
store double %43, double* %7
%44 = load double, double* %8
%45 = fdiv double %44, %39
store double %45, double* %8
%46 = load double, double* %9
%47 = fdiv double %46, %39
store double %47, double* %9
%48 = zext i32 %2 to i64
br label %49
49: ; preds = %38, %49
%50 = phi i64 [ 0, %38 ], [ %85, %49 ]
%51 = getelementptr inbounds i32, i32* %1, i64 %50
%52 = load i32, i32* %51
%53 = mul nsw i32 %52, 6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %0, i64 %54
%56 = load double, double* %55
%57 = load double, double* %6
%58 = fsub double %56, %57
%59 = getelementptr inbounds double, double* %55, i64 1
%60 = load double, double* %59
%61 = load double, double* %8
%62 = fsub double %60, %61
%63 = fmul double %62, %62
%64 = tail call double @llvm.fmuladd.f64(double %58, double %58, double %63)
%65 = fptosi double %64 to i32
%66 = tail call i32 @sqrt(i32 %65)
%67 = sitofp i32 %66 to double
%68 = load double, double* %3
%69 = fadd double %68, %67
store double %69, double* %3
%70 = getelementptr inbounds double, double* %55, i64 3
%71 = load double, double* %70
%72 = load double, double* %7
%73 = fsub double %71, %72
%74 = getelementptr inbounds double, double* %55, i64 4
%75 = load double, double* %74
%76 = load double, double* %9
%77 = fsub double %75, %76
%78 = fmul double %77, %77
%79 = tail call double @llvm.fmuladd.f64(double %73, double %73, double %78)
%80 = fptosi double %79 to i32
%81 = tail call i32 @sqrt(i32 %80)
%82 = sitofp i32 %81 to double
%83 = load double, double* %4
%84 = fadd double %83, %82
store double %84, double* %4
%85 = add nuw nsw i64 %50, 1
%86 = icmp eq i64 %85, %48
br i1 %86, label %87, label %49
87: ; preds = %49, %5, %37
%88 = load double, double* %3
%89 = fcmp une double %88, 0.000000e+00
br i1 %89, label %90, label %96
90: ; preds = %87
%91 = tail call i32 @sqrt(i32 2)
%92 = mul nsw i32 %91, %2
%93 = sitofp i32 %92 to double
%94 = load double, double* %3
%95 = fdiv double %93, %94
store double %95, double* %3
br label %96
96: ; preds = %90, %87
%97 = phi double [ %95, %90 ], [ %88, %87 ]
%98 = load double, double* %4
%99 = fcmp une double %98, 0.000000e+00
br i1 %99, label %100, label %107
100: ; preds = %96
%101 = tail call i32 @sqrt(i32 2)
%102 = mul nsw i32 %101, %2
%103 = sitofp i32 %102 to double
%104 = load double, double* %4
%105 = fdiv double %103, %104
store double %105, double* %4
%106 = load double, double* %3
br label %107
107: ; preds = %100, %96
%108 = phi double [ %106, %100 ], [ %97, %96 ]
%109 = fneg double %108
%110 = bitcast double* %6 to <2 x double>*
%111 = load <2 x double>, <2 x double>* %110
%112 = insertelement <2 x double> poison, double %109, i64 0
%113 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> zeroinitializer
%114 = fmul <2 x double> %111, %113
%115 = bitcast double* %6 to <2 x double>*
store <2 x double> %114, <2 x double>* %115
%116 = load double, double* %4
%117 = fneg double %116
%118 = bitcast double* %7 to <2 x double>*
%119 = load <2 x double>, <2 x double>* %118
%120 = insertelement <2 x double> poison, double %117, i64 0
%121 = shufflevector <2 x double> %120, <2 x double> poison, <2 x i32> zeroinitializer
%122 = fmul <2 x double> %119, %121
%123 = bitcast double* %7 to <2 x double>*
store <2 x double> %122, <2 x double>* %123
ret void
}