#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 /*<<< orphan*/ printf(char *);
void evsort(int n, double *d, double *v) {
  int max_sweeps, isweep, nswap, i, j;
  double tmp;
  if (n > 30)
    max_sweeps = n;
  else
    max_sweeps = 30;
  for (isweep = 0; isweep < max_sweeps; isweep++) {
    nswap = 0;
    for (i = 0; i < n - 1; i++) {
      if (d[i] > d[i + 1]) {
        nswap++;
        tmp = d[i];
        d[i] = d[i + 1];
        d[i + 1] = tmp;
        for (j = 0; j < n; j++) {
          tmp = v[j + i * n];
          v[j + i * n] = v[j + (i + 1) * n];
          v[j + (i + 1) * n] = tmp;
        }
      }
    }
    if (nswap == 0)
      break;
  }
  if (isweep == max_sweeps - 1)
    printf("Warning: max_sweeps exceeded in evsort\n");
  return;
}


x86 assembly (clang, -O0):
<evsort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x1e,-0x4(%rbp)
jle    1138 <evsort+0x28>
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    113f <evsort+0x2f>
movl   $0x1e,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12b2 <evsort+0x1a2>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1290 <evsort+0x180>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    127d <evsort+0x16d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1278 <evsort+0x168>
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%edx
add    $0x1,%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%edx
add    $0x1,%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11ee <evsort+0xde>
jmp    127d <evsort+0x16d>
jmp    1282 <evsort+0x172>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1160 <evsort+0x50>
cmpl   $0x0,-0x24(%rbp)
jne    129f <evsort+0x18f>
jmp    12b2 <evsort+0x1a2>
jmp    12a4 <evsort+0x194>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1146 <evsort+0x36>
mov    -0x20(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    12cf <evsort+0x1bf>
lea    0xd36(%rip),%rdi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evsort>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r8
cmp    $0x1f,%edi
mov    $0x1e,%eax
cmovge %edi,%eax
mov    %eax,-0x5c(%rsp)
lea    -0x1(%rdi),%r9d
movslq %edi,%rcx
mov    %ecx,%eax
lea    (%rcx,%rax,1),%rdx
mov    %rdx,-0x10(%rsp)
mov    %eax,%edx
and    $0xfffffffc,%edx
mov    %rdx,-0x20(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,-0x28(%rsp)
mov    %rdx,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %rbp,%rdx
mov    %rbp,-0x30(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,-0x40(%rsp)
mov    %rax,%rdx
neg    %rdx
mov    %rdx,-0x8(%rsp)
lea    0x30(%r8),%rdx
mov    %rdx,-0x48(%rsp)
lea    0x0(,%rcx,8),%rbp
mov    %rcx,-0x58(%rsp)
lea    (%r8,%rcx,8),%rcx
add    $0x8,%rcx
mov    %rcx,-0x50(%rsp)
xor    %ecx,%ecx
mov    %r9,-0x18(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x2,%edi
jl     13f9 <evsort+0x2e9>
mov    %rcx,-0x38(%rsp)
xor    %r11d,%r11d
mov    %r8,%rdx
mov    -0x50(%rsp),%r15
mov    -0x48(%rsp),%r14
xor    %r12d,%r12d
jmp    11f2 <evsort+0xe2>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    %rbp,%r14
add    %rbp,%r15
add    %rbp,%rdx
cmp    %r9,%r11
je     13e0 <evsort+0x2d0>
mov    %r11,%r10
movsd  (%rsi,%r11,8),%xmm0
movsd  0x8(%rsi,%r11,8),%xmm1
add    $0x1,%r11
ucomisd %xmm1,%xmm0
jbe    11e0 <evsort+0xd0>
add    $0x1,%r12d
movsd  %xmm1,(%rsi,%r10,8)
movsd  %xmm0,(%rsi,%r11,8)
test   %edi,%edi
jle    11e0 <evsort+0xd0>
mov    -0x58(%rsp),%rcx
imul   %rcx,%r10
mov    %r11,%r13
imul   %rcx,%r13
cmp    $0x4,%edi
jb     126b <evsort+0x15b>
lea    (%r8,%r10,8),%rcx
mov    -0x10(%rsp),%rbx
add    %r10,%rbx
lea    (%r8,%rbx,8),%rbx
cmp    %rbx,%rcx
jae    12ee <evsort+0x1de>
lea    (%r10,%rax,1),%rcx
lea    (%r8,%rcx,8),%rcx
mov    -0x58(%rsp),%rbx
add    %r10,%rbx
lea    (%r8,%rbx,8),%rbx
cmp    %rcx,%rbx
jae    12ee <evsort+0x1de>
xor    %ebx,%ebx
mov    %rbx,%rcx
test   $0x1,%al
je     1299 <evsort+0x189>
add    %rbx,%r10
movsd  (%r8,%r10,8),%xmm0
add    %rbx,%r13
movsd  (%r8,%r13,8),%xmm1
movsd  %xmm1,(%r8,%r10,8)
movsd  %xmm0,(%r8,%r13,8)
mov    %rbx,%rcx
or     $0x1,%rcx
not    %rbx
cmp    -0x8(%rsp),%rbx
je     11e0 <evsort+0xd0>
nopw   0x0(%rax,%rax,1)
movsd  (%rdx,%rcx,8),%xmm0
movsd  -0x8(%r15,%rcx,8),%xmm1
movsd  %xmm1,(%rdx,%rcx,8)
movsd  %xmm0,-0x8(%r15,%rcx,8)
movsd  0x8(%rdx,%rcx,8),%xmm0
movsd  (%r15,%rcx,8),%xmm1
movsd  %xmm1,0x8(%rdx,%rcx,8)
movsd  %xmm0,(%r15,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    12b0 <evsort+0x1a0>
jmp    11e0 <evsort+0xd0>
cmpq   $0x0,-0x28(%rsp)
je     13d3 <evsort+0x2c3>
lea    (%r14,%rbp,1),%r9
mov    -0x40(%rsp),%rcx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movups -0x30(%r14,%rbx,8),%xmm0
movups -0x20(%r14,%rbx,8),%xmm1
movups -0x30(%r9,%rbx,8),%xmm2
movups -0x20(%r9,%rbx,8),%xmm3
movups %xmm2,-0x30(%r14,%rbx,8)
movups %xmm3,-0x20(%r14,%rbx,8)
movups %xmm0,-0x30(%r9,%rbx,8)
movups %xmm1,-0x20(%r9,%rbx,8)
movupd -0x10(%r14,%rbx,8),%xmm0
movupd (%r14,%rbx,8),%xmm1
movups -0x10(%r9,%rbx,8),%xmm2
movups (%r9,%rbx,8),%xmm3
movups %xmm2,-0x10(%r14,%rbx,8)
movups %xmm3,(%r14,%rbx,8)
movupd %xmm0,-0x10(%r9,%rbx,8)
movupd %xmm1,(%r9,%rbx,8)
add    $0x8,%rbx
add    $0xfffffffffffffffe,%rcx
jne    1310 <evsort+0x200>
testb  $0x1,-0x30(%rsp)
je     13b8 <evsort+0x2a8>
lea    (%rbx,%r10,1),%rcx
movupd (%r8,%rcx,8),%xmm0
movupd 0x10(%r8,%rcx,8),%xmm1
add    %r13,%rbx
movups (%r8,%rbx,8),%xmm2
movups 0x10(%r8,%rbx,8),%xmm3
movups %xmm2,(%r8,%rcx,8)
movups %xmm3,0x10(%r8,%rcx,8)
movupd %xmm0,(%r8,%rbx,8)
movupd %xmm1,0x10(%r8,%rbx,8)
mov    -0x20(%rsp),%rcx
mov    %rcx,%rbx
cmp    %rax,%rcx
mov    -0x18(%rsp),%r9
je     11e0 <evsort+0xd0>
jmp    126d <evsort+0x15d>
xor    %ebx,%ebx
testb  $0x1,-0x30(%rsp)
jne    1381 <evsort+0x271>
jmp    13b8 <evsort+0x2a8>
xchg   %ax,%ax
test   %r12d,%r12d
mov    -0x38(%rsp),%rcx
je     13f9 <evsort+0x2e9>
add    $0x1,%ecx
cmp    -0x5c(%rsp),%ecx
jne    11b0 <evsort+0xa0>
jmp    141a <evsort+0x30a>
mov    -0x5c(%rsp),%eax
add    $0xffffffff,%eax
cmp    %eax,%ecx
jne    141a <evsort+0x30a>
lea    0xbf5(%rip),%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [40 x i8] c"Warning: max_sweeps exceeded in evsort\0A\00"
define void @evsort(i32 %0, double* %1, double* %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
store i32 %0, i32* %4
store double* %1, double** %5
store double* %2, double** %6
%13 = load i32, i32* %4
%14 = icmp sgt i32 %13, 30
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32, i32* %4
store i32 %16, i32* %7
br label %18
17: ; preds = %3
store i32 30, i32* %7
br label %18
18: ; preds = %17, %15
store i32 0, i32* %8
br label %19
19: ; preds = %121, %18
%20 = load i32, i32* %8
%21 = load i32, i32* %7
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %124
23: ; preds = %19
store i32 0, i32* %9
store i32 0, i32* %10
br label %24
24: ; preds = %113, %23
%25 = load i32, i32* %10
%26 = load i32, i32* %4
%27 = sub nsw i32 %26, 1
%28 = icmp slt i32 %25, %27
br i1 %28, label %29, label %116
29: ; preds = %24
%30 = load double*, double** %5
%31 = load i32, i32* %10
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %30, i64 %32
%34 = load double, double* %33
%35 = load double*, double** %5
%36 = load i32, i32* %10
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %35, i64 %38
%40 = load double, double* %39
%41 = fcmp ogt double %34, %40
br i1 %41, label %42, label %112
42: ; preds = %29
%43 = load i32, i32* %9
%44 = add nsw i32 %43, 1
store i32 %44, i32* %9
%45 = load double*, double** %5
%46 = load i32, i32* %10
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
%49 = load double, double* %48
store double %49, double* %12
%50 = load double*, double** %5
%51 = load i32, i32* %10
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %50, i64 %53
%55 = load double, double* %54
%56 = load double*, double** %5
%57 = load i32, i32* %10
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %56, i64 %58
store double %55, double* %59
%60 = load double, double* %12
%61 = load double*, double** %5
%62 = load i32, i32* %10
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %61, i64 %64
store double %60, double* %65
store i32 0, i32* %11
br label %66
66: ; preds = %108, %42
%67 = load i32, i32* %11
%68 = load i32, i32* %4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %111
70: ; preds = %66
%71 = load double*, double** %6
%72 = load i32, i32* %11
%73 = load i32, i32* %10
%74 = load i32, i32* %4
%75 = mul nsw i32 %73, %74
%76 = add nsw i32 %72, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %71, i64 %77
%79 = load double, double* %78
store double %79, double* %12
%80 = load double*, double** %6
%81 = load i32, i32* %11
%82 = load i32, i32* %10
%83 = add nsw i32 %82, 1
%84 = load i32, i32* %4
%85 = mul nsw i32 %83, %84
%86 = add nsw i32 %81, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %80, i64 %87
%89 = load double, double* %88
%90 = load double*, double** %6
%91 = load i32, i32* %11
%92 = load i32, i32* %10
%93 = load i32, i32* %4
%94 = mul nsw i32 %92, %93
%95 = add nsw i32 %91, %94
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %90, i64 %96
store double %89, double* %97
%98 = load double, double* %12
%99 = load double*, double** %6
%100 = load i32, i32* %11
%101 = load i32, i32* %10
%102 = add nsw i32 %101, 1
%103 = load i32, i32* %4
%104 = mul nsw i32 %102, %103
%105 = add nsw i32 %100, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %99, i64 %106
store double %98, double* %107
br label %108
108: ; preds = %70
%109 = load i32, i32* %11
%110 = add nsw i32 %109, 1
store i32 %110, i32* %11
br label %66
111: ; preds = %66
br label %112
112: ; preds = %111, %29
br label %113
113: ; preds = %112
%114 = load i32, i32* %10
%115 = add nsw i32 %114, 1
store i32 %115, i32* %10
br label %24
116: ; preds = %24
%117 = load i32, i32* %9
%118 = icmp eq i32 %117, 0
br i1 %118, label %119, label %120
119: ; preds = %116
br label %124
120: ; preds = %116
br label %121
121: ; preds = %120
%122 = load i32, i32* %8
%123 = add nsw i32 %122, 1
store i32 %123, i32* %8
br label %19
124: ; preds = %119, %19
%125 = load i32, i32* %8
%126 = load i32, i32* %7
%127 = sub nsw i32 %126, 1
%128 = icmp eq i32 %125, %127
br i1 %128, label %129, label %131
129: ; preds = %124
%130 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
br label %131
131: ; preds = %129, %124
ret void
}

LLVM IR (-O2):
@str = [39 x i8] c"Warning: max_sweeps exceeded in evsort\00"
define void @evsort(i32 %0, double* nocapture %1, double* nocapture %2) {
%4 = icmp sgt i32 %0, 30
%5 = select i1 %4, i32 %0, i32 30
%6 = add i32 %0, -1
%7 = icmp sgt i32 %0, 1
%8 = icmp sgt i32 %0, 0
%9 = sext i32 %0 to i64
%10 = zext i32 %6 to i64
%11 = zext i32 %0 to i64
%12 = add nsw i64 %9, %11
%13 = and i64 %11, 4294967292
%14 = add nsw i64 %13, -4
%15 = lshr exact i64 %14, 2
%16 = add nuw nsw i64 %15, 1
%17 = icmp ult i32 %0, 4
%18 = and i64 %11, 4294967292
%19 = and i64 %16, 1
%20 = icmp eq i64 %14, 0
%21 = and i64 %16, 9223372036854775806
%22 = icmp eq i64 %19, 0
%23 = icmp eq i64 %18, %11
%24 = and i64 %11, 1
%25 = icmp eq i64 %24, 0
%26 = sub nsw i64 0, %11
br label %27
27: ; preds = %3, %157
%28 = phi i32 [ 0, %3 ], [ %158, %157 ]
br i1 %7, label %29, label %160
29: ; preds = %27, %152
%30 = phi i64 [ %42, %152 ], [ 0, %27 ]
%31 = phi i32 [ %153, %152 ], [ 0, %27 ]
%32 = mul i64 %30, %9
%33 = getelementptr double, double* %2, i64 %32
%34 = add i64 %32, %11
%35 = getelementptr double, double* %2, i64 %34
%36 = add i64 %32, %9
%37 = getelementptr double, double* %2, i64 %36
%38 = add i64 %12, %32
%39 = getelementptr double, double* %2, i64 %38
%40 = getelementptr inbounds double, double* %1, i64 %30
%41 = load double, double* %40
%42 = add nuw nsw i64 %30, 1
%43 = getelementptr inbounds double, double* %1, i64 %42
%44 = load double, double* %43
%45 = fcmp ogt double %41, %44
br i1 %45, label %46, label %152
46: ; preds = %29
%47 = add nsw i32 %31, 1
store double %44, double* %40
store double %41, double* %43
br i1 %8, label %48, label %152
48: ; preds = %46
%49 = mul nsw i64 %30, %9
%50 = mul nsw i64 %42, %9
br i1 %17, label %121, label %51
51: ; preds = %48
%52 = icmp ult double* %33, %39
%53 = icmp ult double* %37, %35
%54 = and i1 %52, %53
br i1 %54, label %121, label %55
55: ; preds = %51
br i1 %20, label %99, label %56
56: ; preds = %55, %56
%57 = phi i64 [ %96, %56 ], [ 0, %55 ]
%58 = phi i64 [ %97, %56 ], [ 0, %55 ]
%59 = add nsw i64 %57, %49
%60 = getelementptr inbounds double, double* %2, i64 %59
%61 = bitcast double* %60 to <2 x double>*
%62 = load <2 x double>, <2 x double>* %61
%63 = getelementptr inbounds double, double* %60, i64 2
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = add nsw i64 %57, %50
%67 = getelementptr inbounds double, double* %2, i64 %66
%68 = bitcast double* %67 to <2 x double>*
%69 = load <2 x double>, <2 x double>* %68
%70 = getelementptr inbounds double, double* %67, i64 2
%71 = bitcast double* %70 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = bitcast double* %60 to <2 x double>*
store <2 x double> %69, <2 x double>* %73
%74 = bitcast double* %63 to <2 x double>*
store <2 x double> %72, <2 x double>* %74
%75 = bitcast double* %67 to <2 x double>*
store <2 x double> %62, <2 x double>* %75
%76 = bitcast double* %70 to <2 x double>*
store <2 x double> %65, <2 x double>* %76
%77 = or i64 %57, 4
%78 = add nsw i64 %77, %49
%79 = getelementptr inbounds double, double* %2, i64 %78
%80 = bitcast double* %79 to <2 x double>*
%81 = load <2 x double>, <2 x double>* %80
%82 = getelementptr inbounds double, double* %79, i64 2
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = add nsw i64 %77, %50
%86 = getelementptr inbounds double, double* %2, i64 %85
%87 = bitcast double* %86 to <2 x double>*
%88 = load <2 x double>, <2 x double>* %87
%89 = getelementptr inbounds double, double* %86, i64 2
%90 = bitcast double* %89 to <2 x double>*
%91 = load <2 x double>, <2 x double>* %90
%92 = bitcast double* %79 to <2 x double>*
store <2 x double> %88, <2 x double>* %92
%93 = bitcast double* %82 to <2 x double>*
store <2 x double> %91, <2 x double>* %93
%94 = bitcast double* %86 to <2 x double>*
store <2 x double> %81, <2 x double>* %94
%95 = bitcast double* %89 to <2 x double>*
store <2 x double> %84, <2 x double>* %95
%96 = add nuw i64 %57, 8
%97 = add i64 %58, 2
%98 = icmp eq i64 %97, %21
br i1 %98, label %99, label %56
99: ; preds = %56, %55
%100 = phi i64 [ 0, %55 ], [ %96, %56 ]
br i1 %22, label %120, label %101
101: ; preds = %99
%102 = add nsw i64 %100, %49
%103 = getelementptr inbounds double, double* %2, i64 %102
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = getelementptr inbounds double, double* %103, i64 2
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = add nsw i64 %100, %50
%110 = getelementptr inbounds double, double* %2, i64 %109
%111 = bitcast double* %110 to <2 x double>*
%112 = load <2 x double>, <2 x double>* %111
%113 = getelementptr inbounds double, double* %110, i64 2
%114 = bitcast double* %113 to <2 x double>*
%115 = load <2 x double>, <2 x double>* %114
%116 = bitcast double* %103 to <2 x double>*
store <2 x double> %112, <2 x double>* %116
%117 = bitcast double* %106 to <2 x double>*
store <2 x double> %115, <2 x double>* %117
%118 = bitcast double* %110 to <2 x double>*
store <2 x double> %105, <2 x double>* %118
%119 = bitcast double* %113 to <2 x double>*
store <2 x double> %108, <2 x double>* %119
br label %120
120: ; preds = %99, %101
br i1 %23, label %152, label %121
121: ; preds = %51, %48, %120
%122 = phi i64 [ 0, %51 ], [ 0, %48 ], [ %18, %120 ]
%123 = xor i64 %122, -1
br i1 %25, label %132, label %124
124: ; preds = %121
%125 = add nsw i64 %122, %49
%126 = getelementptr inbounds double, double* %2, i64 %125
%127 = load double, double* %126
%128 = add nsw i64 %122, %50
%129 = getelementptr inbounds double, double* %2, i64 %128
%130 = load double, double* %129
store double %130, double* %126
store double %127, double* %129
%131 = or i64 %122, 1
br label %132
132: ; preds = %124, %121
%133 = phi i64 [ %122, %121 ], [ %131, %124 ]
%134 = icmp eq i64 %123, %26
br i1 %134, label %152, label %135
135: ; preds = %132, %135
%136 = phi i64 [ %150, %135 ], [ %133, %132 ]
%137 = add nsw i64 %136, %49
%138 = getelementptr inbounds double, double* %2, i64 %137
%139 = load double, double* %138
%140 = add nsw i64 %136, %50
%141 = getelementptr inbounds double, double* %2, i64 %140
%142 = load double, double* %141
store double %142, double* %138
store double %139, double* %141
%143 = add nuw nsw i64 %136, 1
%144 = add nsw i64 %143, %49
%145 = getelementptr inbounds double, double* %2, i64 %144
%146 = load double, double* %145
%147 = add nsw i64 %143, %50
%148 = getelementptr inbounds double, double* %2, i64 %147
%149 = load double, double* %148
store double %149, double* %145
store double %146, double* %148
%150 = add nuw nsw i64 %136, 2
%151 = icmp eq i64 %150, %11
br i1 %151, label %152, label %135
152: ; preds = %132, %135, %120, %46, %29
%153 = phi i32 [ %31, %29 ], [ %47, %46 ], [ %47, %120 ], [ %47, %135 ], [ %47, %132 ]
%154 = icmp eq i64 %42, %10
br i1 %154, label %155, label %29
155: ; preds = %152
%156 = icmp eq i32 %153, 0
br i1 %156, label %160, label %157
157: ; preds = %155
%158 = add nuw nsw i32 %28, 1
%159 = icmp eq i32 %158, %5
br i1 %159, label %165, label %27
160: ; preds = %27, %155
%161 = add nsw i32 %5, -1
%162 = icmp eq i32 %28, %161
br i1 %162, label %163, label %165
163: ; preds = %160
%164 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
br label %165
165: ; preds = %157, %163, %160
ret void
}