void sortxyzwvd(double *x, double *y, double *z, double *w, double *v, int n) {
  int top, n1;
  double x0, y0, z0, w0, v0;
  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];
      v0 = v[top];
    } else {
      x0 = x[n1];
      y0 = y[n1];
      z0 = z[n1];
      w0 = w[n1];
      v0 = v[n1];
      x[n1] = x[0];
      y[n1] = y[0];
      z[n1] = z[0];
      w[n1] = w[0];
      v[n1] = v[0];
      n1--;
      if (!n1) {
        x[0] = x0;
        y[0] = y0;
        z[0] = z0;
        w[0] = w0;
        v[0] = v0;
        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];
          v[parent] = v[child];
          parent = child;
          child += (parent + 1);
        } else
          break;
      }
      x[parent] = x0;
      y[parent] = y0;
      z[parent] = z0;
      w[parent] = w0;
      v[parent] = v0;
    }
  }
}


x86 assembly (clang, -O0):
<sortxyzwvd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    112b <sortxyzwvd+0x2b>
jmp    144f <sortxyzwvd+0x34f>
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x30(%rbp)
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x30(%rbp)
jle    11b4 <sortxyzwvd+0xb4>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    12d5 <sortxyzwvd+0x1d5>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    12d0 <sortxyzwvd+0x1d0>
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    144f <sortxyzwvd+0x34f>
jmp    12d5 <sortxyzwvd+0x1d5>
mov    -0x30(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     13f0 <sortxyzwvd+0x2f0>
mov    -0x68(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1331 <sortxyzwvd+0x231>
mov    -0x8(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1331 <sortxyzwvd+0x231>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    13e6 <sortxyzwvd+0x2e6>
mov    -0x8(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
add    -0x68(%rbp),%eax
mov    %eax,-0x68(%rbp)
jmp    13eb <sortxyzwvd+0x2eb>
jmp    13f0 <sortxyzwvd+0x2f0>
jmp    12e7 <sortxyzwvd+0x1e7>
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1142 <sortxyzwvd+0x42>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sortxyzwvd>:
cmp    $0x2,%r9d
jl     129b <sortxyzwvd+0x19b>
push   %rbp
push   %r15
push   %r14
push   %rbx
mov    %r9d,%r10d
shr    %r10d
add    $0xffffffff,%r9d
jmp    1140 <sortxyzwvd+0x40>
nopl   0x0(%rax)
mov    %r11d,%r14d
movslq %r14d,%rax
movsd  %xmm0,(%rdi,%rax,8)
movsd  %xmm1,(%rsi,%rax,8)
movsd  %xmm2,(%rdx,%rax,8)
movsd  %xmm3,(%rcx,%rax,8)
movsd  %xmm4,(%r8,%rax,8)
test   %r10d,%r10d
jle    1170 <sortxyzwvd+0x70>
add    $0xffffffff,%r10d
movsd  (%rdi,%r10,8),%xmm0
movsd  (%rsi,%r10,8),%xmm1
movsd  (%rdx,%r10,8),%xmm2
movsd  (%rcx,%r10,8),%xmm3
movsd  (%r8,%r10,8),%xmm4
jmp    11d1 <sortxyzwvd+0xd1>
nopl   0x0(%rax)
movslq %r9d,%r9
movsd  (%rdi,%r9,8),%xmm0
movsd  (%rsi,%r9,8),%xmm1
movsd  (%rdx,%r9,8),%xmm2
movsd  (%rcx,%r9,8),%xmm3
movsd  (%r8,%r9,8),%xmm4
movsd  (%rdi),%xmm5
movsd  %xmm5,(%rdi,%r9,8)
movsd  (%rsi),%xmm5
movsd  %xmm5,(%rsi,%r9,8)
movsd  (%rdx),%xmm5
movsd  %xmm5,(%rdx,%r9,8)
movsd  (%rcx),%xmm5
movsd  %xmm5,(%rcx,%r9,8)
movsd  (%r8),%xmm5
movsd  %xmm5,(%r8,%r9,8)
xor    %r10d,%r10d
add    $0xffffffff,%r9d
je     1280 <sortxyzwvd+0x180>
lea    (%r10,%r10,1),%ebx
add    $0x1,%ebx
mov    %r10d,%r14d
cmp    %r9d,%ebx
jg     1123 <sortxyzwvd+0x23>
lea    (%r10,%r10,1),%ebp
mov    %r10d,%r11d
nopl   0x0(%rax,%rax,1)
movslq %ebx,%rax
cmp    %r9d,%ebx
jge    1220 <sortxyzwvd+0x120>
add    $0x2,%ebp
movslq %ebp,%r15
movsd  (%rdi,%r15,8),%xmm5
ucomisd (%rdi,%rax,8),%xmm5
mov    %ebx,%r14d
jbe    1223 <sortxyzwvd+0x123>
mov    %r15,%rax
mov    %ebp,%r14d
jmp    1223 <sortxyzwvd+0x123>
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%r14d
movsd  (%rdi,%rax,8),%xmm5
ucomisd %xmm0,%xmm5
jbe    1120 <sortxyzwvd+0x20>
movslq %r11d,%rbp
movsd  %xmm5,(%rdi,%rbp,8)
movsd  (%rsi,%rax,8),%xmm5
movsd  %xmm5,(%rsi,%rbp,8)
movsd  (%rdx,%rax,8),%xmm5
movsd  %xmm5,(%rdx,%rbp,8)
movsd  (%rcx,%rax,8),%xmm5
movsd  %xmm5,(%rcx,%rbp,8)
movsd  (%r8,%rax,8),%xmm5
movsd  %xmm5,(%r8,%rbp,8)
lea    (%r14,%r14,1),%ebp
lea    (%r14,%r14,1),%ebx
add    $0x1,%ebx
mov    %r14d,%r11d
cmp    %r9d,%ebx
jle    11f0 <sortxyzwvd+0xf0>
jmp    1123 <sortxyzwvd+0x23>
movsd  %xmm0,(%rdi)
movsd  %xmm1,(%rsi)
movsd  %xmm2,(%rdx)
movsd  %xmm3,(%rcx)
movsd  %xmm4,(%r8)
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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