void sortxyzwd(double *x, double *y, double *z, double *w, int n) {
  int top, n1;
  double x0, y0, z0, w0;
  if (n < 2)
    return;
  top = n / 2;
  n1 = n - 1;
  while (1) {
    if (top > 0) {
      top--;
      x0 = x[top];
      y0 = y[top];
      z0 = z[top];
      w0 = w[top];
    } else {
      x0 = x[n1];
      y0 = y[n1];
      z0 = z[n1];
      w0 = w[n1];
      x[n1] = x[0];
      y[n1] = y[0];
      z[n1] = z[0];
      w[n1] = w[0];
      n1--;
      if (!n1) {
        x[0] = x0;
        y[0] = y0;
        z[0] = z0;
        w[0] = w0;
        return;
      }
    }
    {
      int parent, child;
      parent = top;
      child = top * 2 + 1;
      while (child <= n1) {
        if (child < n1 && x[child] < x[child + 1])
          child++;
        if (x0 < x[child]) {
          x[parent] = x[child];
          y[parent] = y[child];
          z[parent] = z[child];
          w[parent] = w[child];
          parent = child;
          child += (parent + 1);
        } else
          break;
      }
      x[parent] = x0;
      y[parent] = y0;
      z[parent] = z0;
      w[parent] = w0;
    }
  }
}


x86 assembly (clang, -O0):
<sortxyzwd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    1127 <sortxyzwd+0x27>
jmp    13d9 <sortxyzwd+0x2d9>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x28(%rbp)
jle    119e <sortxyzwd+0x9e>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    128b <sortxyzwd+0x18b>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    1286 <sortxyzwd+0x186>
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13d9 <sortxyzwd+0x2d9>
jmp    128b <sortxyzwd+0x18b>
mov    -0x28(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x28(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     138c <sortxyzwd+0x28c>
mov    -0x58(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12e7 <sortxyzwd+0x1e7>
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    12e7 <sortxyzwd+0x1e7>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1382 <sortxyzwd+0x282>
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
add    -0x58(%rbp),%eax
mov    %eax,-0x58(%rbp)
jmp    1387 <sortxyzwd+0x287>
jmp    138c <sortxyzwd+0x28c>
jmp    129d <sortxyzwd+0x19d>
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    113e <sortxyzwd+0x3e>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sortxyzwd>:
cmp    $0x2,%r8d
jl     1264 <sortxyzwd+0x164>
push   %rbp
push   %r14
push   %rbx
mov    %r8d,%r9d
shr    %r9d
add    $0xffffffff,%r8d
jmp    113a <sortxyzwd+0x3a>
nopw   0x0(%rax,%rax,1)
mov    %r10d,%r11d
movslq %r11d,%rax
movsd  %xmm0,(%rdi,%rax,8)
movsd  %xmm1,(%rsi,%rax,8)
movsd  %xmm2,(%rdx,%rax,8)
movsd  %xmm3,(%rcx,%rax,8)
test   %r9d,%r9d
jle    1160 <sortxyzwd+0x60>
add    $0xffffffff,%r9d
movsd  (%rdi,%r9,8),%xmm0
movsd  (%rsi,%r9,8),%xmm1
movsd  (%rdx,%r9,8),%xmm2
movsd  (%rcx,%r9,8),%xmm3
jmp    11b0 <sortxyzwd+0xb0>
nopl   (%rax)
movslq %r8d,%r8
movsd  (%rdi,%r8,8),%xmm0
movsd  (%rsi,%r8,8),%xmm1
movsd  (%rdx,%r8,8),%xmm2
movsd  (%rcx,%r8,8),%xmm3
movsd  (%rdi),%xmm4
movsd  %xmm4,(%rdi,%r8,8)
movsd  (%rsi),%xmm4
movsd  %xmm4,(%rsi,%r8,8)
movsd  (%rdx),%xmm4
movsd  %xmm4,(%rdx,%r8,8)
movsd  (%rcx),%xmm4
movsd  %xmm4,(%rcx,%r8,8)
xor    %r9d,%r9d
add    $0xffffffff,%r8d
je     1250 <sortxyzwd+0x150>
lea    (%r9,%r9,1),%eax
add    $0x1,%eax
mov    %r9d,%r11d
cmp    %r8d,%eax
jg     1123 <sortxyzwd+0x23>
lea    (%r9,%r9,1),%ebp
mov    %r9d,%r10d
nopw   0x0(%rax,%rax,1)
movslq %eax,%rbx
cmp    %r8d,%eax
jge    1200 <sortxyzwd+0x100>
add    $0x2,%ebp
movslq %ebp,%r14
movsd  (%rdi,%r14,8),%xmm4
ucomisd (%rdi,%rbx,8),%xmm4
mov    %eax,%r11d
jbe    1203 <sortxyzwd+0x103>
mov    %r14,%rbx
mov    %ebp,%r11d
jmp    1203 <sortxyzwd+0x103>
cs nopw 0x0(%rax,%rax,1)
mov    %eax,%r11d
movsd  (%rdi,%rbx,8),%xmm4
ucomisd %xmm0,%xmm4
jbe    1120 <sortxyzwd+0x20>
movslq %r10d,%rax
movsd  %xmm4,(%rdi,%rax,8)
movsd  (%rsi,%rbx,8),%xmm4
movsd  %xmm4,(%rsi,%rax,8)
movsd  (%rdx,%rbx,8),%xmm4
movsd  %xmm4,(%rdx,%rax,8)
movsd  (%rcx,%rbx,8),%xmm4
movsd  %xmm4,(%rcx,%rax,8)
lea    (%r11,%r11,1),%ebp
lea    (%r11,%r11,1),%eax
add    $0x1,%eax
mov    %r11d,%r10d
cmp    %r8d,%eax
jle    11d0 <sortxyzwd+0xd0>
jmp    1123 <sortxyzwd+0x23>
movsd  %xmm0,(%rdi)
movsd  %xmm1,(%rsi)
movsd  %xmm2,(%rdx)
movsd  %xmm3,(%rcx)
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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