void mysort4_rev(int N, double *data1, double *data2, double *data3,
                 double *data4) {
  int i, j;
  double v, t1, t2, t3, t4;
  if (N <= 1)
    return;
  v = data1[0];
  i = 0;
  j = N;
  for (;;) {
    while (++i < N ? data1[i] > v : 0) {
    }
    while (data1[--j] < v) {
    }
    if (i >= j)
      break;
    t1 = data1[i];
    data1[i] = data1[j];
    data1[j] = t1;
    t2 = data2[i];
    data2[i] = data2[j];
    data2[j] = t2;
    t3 = data3[i];
    data3[i] = data3[j];
    data3[j] = t3;
    t4 = data4[i];
    data4[i] = data4[j];
    data4[j] = t4;
  }
  t1 = data1[i - 1];
  data1[i - 1] = data1[0];
  data1[0] = t1;
  t2 = data2[i - 1];
  data2[i - 1] = data2[0];
  data2[0] = t2;
  t3 = data3[i - 1];
  data3[i - 1] = data3[0];
  data3[0] = t3;
  t4 = data4[i - 1];
  data4[i - 1] = data4[0];
  data4[0] = t4;
  mysort4_rev(i - 1, data1, data2, data3, data4);
  mysort4_rev(N - i, data1 + i, data2 + i, data3 + i, data4 + i);
}


x86 assembly (clang, -O0):
<mysort4_rev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpl   $0x1,-0x4(%rbp)
jg     113a <mysort4_rev+0x2a>
jmp    143e <mysort4_rev+0x32e>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1159 <mysort4_rev+0x49>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmp    -0x4(%rbp),%eax
jge    118d <mysort4_rev+0x7d>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x38(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x5c(%rbp)
jmp    1197 <mysort4_rev+0x87>
xor    %eax,%eax
mov    %eax,-0x5c(%rbp)
jmp    1197 <mysort4_rev+0x87>
mov    -0x5c(%rbp),%eax
cmp    $0x0,%eax
je     11a8 <mysort4_rev+0x98>
jmp    1159 <mysort4_rev+0x49>
jmp    11ad <mysort4_rev+0x9d>
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x30(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x38(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11d6 <mysort4_rev+0xc6>
jmp    11ad <mysort4_rev+0x9d>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     11e7 <mysort4_rev+0xd7>
jmp    12e4 <mysort4_rev+0x1d4>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1154 <mysort4_rev+0x44>
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <mysort4_rev@plt>
mov    -0x4(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0x10(%rbp),%rsi
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x20(%rbp),%rcx
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
call   1030 <mysort4_rev@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mysort4_rev>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,0x8(%rsp)
cmp    $0x2,%edi
jge    1137 <mysort4_rev+0x27>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsi,%rbx
movabs $0xffffffff00000000,%r12
ff ff ff
jmp    120e <mysort4_rev+0xfe>
nopl   0x0(%rax)
lea    (%r14,%r13,1),%edi
mov    %r15,%rax
neg    %rax
sar    $0x1d,%rax
movsd  (%rbx,%rax,1),%xmm0
movsd  (%rbx),%xmm1
movsd  %xmm1,(%rbx,%rax,1)
movsd  %xmm0,(%rbx)
mov    0x8(%rsp),%rbp
movsd  0x0(%rbp,%rax,1),%xmm0
movsd  0x0(%rbp),%xmm1
movsd  %xmm1,0x0(%rbp,%rax,1)
movsd  %xmm0,0x0(%rbp)
movsd  (%rcx,%rax,1),%xmm0
movsd  (%rcx),%xmm1
movsd  %xmm1,(%rcx,%rax,1)
movsd  %xmm0,(%rcx)
movsd  (%r8,%rax,1),%xmm0
movsd  (%r8),%xmm1
movsd  %xmm1,(%r8,%rax,1)
movsd  %xmm0,(%r8)
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r8,0x20(%rsp)
mov    %rcx,0x18(%rsp)
call   1030 <mysort4_rev@plt>
mov    0x18(%rsp),%rcx
mov    0x20(%rsp),%r8
mov    0x14(%rsp),%eax
sub    %r14d,%eax
not    %r13d
add    %eax,%r13d
movabs $0x100000000,%rax
sub    %r15,%rax
sar    $0x1d,%rax
add    %rax,%rbx
add    %rax,%rbp
mov    %rbp,0x8(%rsp)
add    %rax,%rcx
add    %rax,%r8
mov    %r13d,%edi
cmp    $0x1,%r13d
jle    1128 <mysort4_rev+0x18>
movsd  (%rbx),%xmm0
mov    %edi,%r11d
lea    0x8(%rbx),%r10
mov    %edi,0x14(%rsp)
mov    %edi,%edx
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %r14d,%r9
mov    %r9,%rsi
imul   %r12,%rsi
lea    0x1(%r9),%rdi
lea    (%r10,%r9,8),%rax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rsi,%r15
mov    %rbp,%r13
lea    (%rdi,%rbp,1),%rsi
cmp    %r11,%rsi
jge    1273 <mysort4_rev+0x163>
movsd  (%rax,%r13,8),%xmm1
lea    (%r15,%r12,1),%rsi
lea    0x1(%r13),%rbp
ucomisd %xmm0,%xmm1
ja     1250 <mysort4_rev+0x140>
movslq %edx,%rdx
lea    (%r9,%r13,1),%rsi
add    $0x1,%rsi
xchg   %ax,%ax
movsd  -0x8(%rbx,%rdx,8),%xmm1
add    $0xffffffffffffffff,%rdx
ucomisd %xmm1,%xmm0
ja     1280 <mysort4_rev+0x170>
lea    (%r14,%r13,1),%eax
add    $0x1,%eax
cmp    %edx,%eax
jge    1150 <mysort4_rev+0x40>
movabs $0x100000000,%rax
sub    %r15,%rax
sar    $0x1d,%rax
movsd  (%rbx,%rax,1),%xmm2
movsd  %xmm1,(%rbx,%rax,1)
movsd  %xmm2,(%rbx,%rdx,8)
mov    0x8(%rsp),%rdi
movsd  (%rdi,%rax,1),%xmm1
movsd  (%rdi,%rdx,8),%xmm2
movsd  %xmm2,(%rdi,%rax,1)
movsd  %xmm1,(%rdi,%rdx,8)
movsd  (%rcx,%rax,1),%xmm1
movsd  (%rcx,%rdx,8),%xmm2
movsd  %xmm2,(%rcx,%rax,1)
movsd  %xmm1,(%rcx,%rdx,8)
movsd  (%r8,%rax,1),%xmm1
movsd  (%r8,%rdx,8),%xmm2
movsd  %xmm2,(%r8,%rax,1)
movsd  %xmm1,(%r8,%rdx,8)
mov    %rsi,%r14
jmp    1230 <mysort4_rev+0x120>

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

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