#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);
void relax(double *pos, long *links, double *mrel1, double *mrel2,
           double *lengths, char *push, char *pull, int nlinks, int iters) {
  int i, l, p1, p2;
  double x1, x2, y1, y2, dx, dy, dist, change;
  for (i = 0; i < iters; i++) {
    for (l = 0; l < nlinks; l++) {
      p1 = 2 * links[l * 2];
      p2 = 2 * links[l * 2 + 1];
      x1 = pos[p1];
      y1 = pos[p1 + 1];
      x2 = pos[p2];
      y2 = pos[p2 + 1];
      dx = x2 - x1;
      dy = y2 - y1;
      dist = sqrt(dx * dx + dy * dy);
      if (push[l] == 0 && dist < lengths[l])
        dist = lengths[l];
      if (pull[l] == 0 && dist > lengths[l])
        dist = lengths[l];
      change = (lengths[l] - dist) / dist;
      dx *= change;
      dy *= change;
      pos[p1] -= mrel2[l] * dx;
      pos[p1 + 1] -= mrel2[l] * dy;
      pos[p2] += mrel1[l] * dx;
      pos[p2 + 1] += mrel1[l] * dy;
    }
  }
}


x86 assembly (clang, -O0):
<relax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x20(%rbp),%eax
jge    13f1 <relax+0x2e1>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    13de <relax+0x2ce>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
shl    $0x1,%rax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
shl    $0x1,%rax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    126f <relax+0x15f>
movsd  -0x78(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    126f <relax+0x15f>
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    12ae <relax+0x19e>
movsd  -0x78(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    12ae <relax+0x19e>
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x78(%rbp),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x68(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x70(%rbp),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x68(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x70(%rbp),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1157 <relax+0x47>
jmp    13e3 <relax+0x2d3>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1144 <relax+0x34>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<relax>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,(%rsp)
cmpl   $0x0,0x90(%rsp)
jle    1312 <relax+0x202>
mov    %rdx,%r12
mov    %rdi,%rbp
mov    0x80(%rsp),%r10
mov    0x88(%rsp),%r11d
addq   $0x8,(%rsp)
xor    %eax,%eax
xorpd  %xmm3,%xmm3
mov    %rcx,0x18(%rsp)
mov    %r9,0x10(%rsp)
jmp    1175 <relax+0x65>
nopl   (%rax)
mov    0x8(%rsp),%rax
add    $0x1,%eax
cmp    0x90(%rsp),%eax
je     1312 <relax+0x202>
mov    %rax,0x8(%rsp)
cmpl   $0x0,0x88(%rsp)
jle    1160 <relax+0x50>
mov    (%rsp),%r14
xor    %r13d,%r13d
jmp    120b <relax+0xfb>
nopl   (%rax)
subsd  %xmm0,%xmm1
divsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm4
mulsd  %xmm1,%xmm5
movsd  0x0(%rbp,%r15,8),%xmm0
movsd  (%rcx,%r13,8),%xmm1
mulsd  %xmm4,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%r15,8)
movsd  0x0(%rbp,%rbx,8),%xmm0
movsd  (%rcx,%r13,8),%xmm1
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rbx,8)
mulsd  (%r12,%r13,8),%xmm4
addsd  0x0(%rbp,%rsi,8),%xmm4
movsd  %xmm4,0x0(%rbp,%rsi,8)
mulsd  (%r12,%r13,8),%xmm5
addsd  0x0(%rbp,%rax,8),%xmm5
movsd  %xmm5,0x0(%rbp,%rax,8)
add    $0x1,%r13
add    $0x10,%r14
cmp    %r13,%r11
je     1160 <relax+0x50>
mov    -0x8(%r14),%eax
mov    (%r14),%edi
lea    (%rax,%rax,1),%ebx
lea    (%rdi,%rdi,1),%esi
movslq %ebx,%r15
lea    0x1(%rax,%rax,1),%eax
movslq %eax,%rbx
movslq %esi,%rsi
movsd  0x0(%rbp,%rsi,8),%xmm4
lea    0x1(%rdi,%rdi,1),%eax
cltq
subsd  0x0(%rbp,%r15,8),%xmm4
movsd  0x0(%rbp,%rax,8),%xmm5
subsd  0x0(%rbp,%rbx,8),%xmm5
movapd %xmm5,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm3,%xmm0
jb     1270 <relax+0x160>
sqrtsd %xmm0,%xmm0
cmpb   $0x0,(%r9,%r13,1)
jne    12f0 <relax+0x1e0>
jmp    12d6 <relax+0x1c6>
nop
mov    %rbx,0x20(%rsp)
mov    %r8,%rbx
mov    %rax,0x40(%rsp)
mov    %rsi,0x38(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm5,0x28(%rsp)
call   1030 <sqrt@plt>
movsd  0x28(%rsp),%xmm5
movsd  0x30(%rsp),%xmm4
mov    0x38(%rsp),%rsi
mov    0x40(%rsp),%rax
xorpd  %xmm3,%xmm3
mov    0x88(%rsp),%r11d
mov    0x80(%rsp),%r10
mov    0x18(%rsp),%rcx
mov    %rbx,%r8
mov    0x20(%rsp),%rbx
mov    0x10(%rsp),%r9
cmpb   $0x0,(%r9,%r13,1)
jne    12f0 <relax+0x1e0>
movsd  (%r8,%r13,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    12f0 <relax+0x1e0>
movapd %xmm1,%xmm0
cs nopw 0x0(%rax,%rax,1)
cmpb   $0x0,(%r10,%r13,1)
movsd  (%r8,%r13,8),%xmm1
jne    1190 <relax+0x80>
movapd %xmm1,%xmm2
minsd  %xmm0,%xmm2
movapd %xmm2,%xmm0
jmp    1190 <relax+0x80>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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