#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 EXIT_SUCCESS;
double **allocateDoubleMatrix(int, int);
int /*<<< orphan*/ freeDoubleMatrix(double **, int);
int repositionSimplex(short int *xpos, double **x, int n) {
  int i, j;
  double **xorder;
  xorder = allocateDoubleMatrix(n + 1, n);
  for (i = 0; i < n + 1; i++) {
    for (j = 0; j < n; j++) {
      xorder[i][j] = x[xpos[i]][j];
    }
  }
  for (i = 0; i < n + 1; i++)
    for (j = 0; j < n; j++)
      x[i][j] = xorder[i][j];
  freeDoubleMatrix(xorder, n);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<repositionSimplex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%edi
add    $0x1,%edi
mov    -0x14(%rbp),%esi
call   1030 <allocateDoubleMatrix@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    11c4 <repositionSimplex+0xa4>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11b1 <repositionSimplex+0x91>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x18(%rbp),%rdx
movswq (%rcx,%rdx,2),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1164 <repositionSimplex+0x44>
jmp    11b6 <repositionSimplex+0x96>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    114c <repositionSimplex+0x2c>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    123a <repositionSimplex+0x11a>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1227 <repositionSimplex+0x107>
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11e3 <repositionSimplex+0xc3>
jmp    122c <repositionSimplex+0x10c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11cb <repositionSimplex+0xab>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <freeDoubleMatrix@plt>
mov    0x2d93(%rip),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<repositionSimplex>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %edx,%r12d
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x1(%r12),%ebp
mov    %ebp,%edi
mov    %edx,%esi
call   1030 <allocateDoubleMatrix@plt>
test   %r12d,%r12d
js     14dc <repositionSimplex+0x3bc>
movabs $0x7ffffffffffffffc,%rcx
ff ff 7f
mov    %rcx,0x8(%rsp)
mov    %ebp,%r9d
mov    %r12d,%esi
mov    %esi,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x30(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0x10(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%r10d
and    $0x3,%r10d
mov    %rcx,0x18(%rsp)
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x20(%rsp)
mov    %esi,%r11d
and    $0x3,%r11d
mov    %r10,0x28(%rsp)
shl    $0x5,%r10
xor    %ecx,%ecx
jmp    11bd <repositionSimplex+0x9d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rcx
cmp    %r9,%rcx
je     1332 <repositionSimplex+0x212>
test   %r12d,%r12d
je     11b0 <repositionSimplex+0x90>
movswq (%r15,%rcx,2),%rdx
mov    (%r14,%rdx,8),%r8
mov    (%rax,%rcx,8),%rdx
cmp    $0x4,%r12d
jb     11eb <repositionSimplex+0xcb>
lea    (%r8,%rsi,8),%rdi
cmp    %rdi,%rdx
jae    1264 <repositionSimplex+0x144>
lea    (%rdx,%rsi,8),%rdi
cmp    %rdi,%r8
jae    1264 <repositionSimplex+0x144>
xor    %r13d,%r13d
mov    %r13,%rbx
not    %rbx
add    %rsi,%rbx
test   %r11,%r11
je     1216 <repositionSimplex+0xf6>
mov    %r11,%rbp
nop
movsd  (%r8,%r13,8),%xmm0
movsd  %xmm0,(%rdx,%r13,8)
add    $0x1,%r13
add    $0xffffffffffffffff,%rbp
jne    1200 <repositionSimplex+0xe0>
cmp    $0x3,%rbx
jb     11b0 <repositionSimplex+0x90>
nopl   0x0(%rax)
movsd  (%r8,%r13,8),%xmm0
movsd  %xmm0,(%rdx,%r13,8)
movsd  0x8(%r8,%r13,8),%xmm0
movsd  %xmm0,0x8(%rdx,%r13,8)
movsd  0x10(%r8,%r13,8),%xmm0
movsd  %xmm0,0x10(%rdx,%r13,8)
movsd  0x18(%r8,%r13,8),%xmm0
movsd  %xmm0,0x18(%rdx,%r13,8)
add    $0x4,%r13
cmp    %r13,%rsi
jne    1220 <repositionSimplex+0x100>
jmp    11b0 <repositionSimplex+0x90>
cmpq   $0xc,0x10(%rsp)
jae    1270 <repositionSimplex+0x150>
xor    %ebx,%ebx
jmp    12e0 <repositionSimplex+0x1c0>
mov    0x20(%rsp),%rbp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movups (%r8,%rbx,8),%xmm0
movups 0x10(%r8,%rbx,8),%xmm1
movups %xmm0,(%rdx,%rbx,8)
movups %xmm1,0x10(%rdx,%rbx,8)
movups 0x20(%r8,%rbx,8),%xmm0
movups 0x30(%r8,%rbx,8),%xmm1
movups %xmm0,0x20(%rdx,%rbx,8)
movups %xmm1,0x30(%rdx,%rbx,8)
movups 0x40(%r8,%rbx,8),%xmm0
movups 0x50(%r8,%rbx,8),%xmm1
movups %xmm0,0x40(%rdx,%rbx,8)
movups %xmm1,0x50(%rdx,%rbx,8)
movups 0x60(%r8,%rbx,8),%xmm0
movups 0x70(%r8,%rbx,8),%xmm1
movups %xmm0,0x60(%rdx,%rbx,8)
movups %xmm1,0x70(%rdx,%rbx,8)
add    $0x10,%rbx
add    $0xfffffffffffffffc,%rbp
jne    1280 <repositionSimplex+0x160>
cmpq   $0x0,0x28(%rsp)
je     131c <repositionSimplex+0x1fc>
lea    (%rdx,%rbx,8),%rbp
add    $0x10,%rbp
lea    (%r8,%rbx,8),%rbx
add    $0x10,%rbx
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movups -0x10(%rbx,%rdi,1),%xmm0
movups (%rbx,%rdi,1),%xmm1
movups %xmm0,-0x10(%rbp,%rdi,1)
movups %xmm1,0x0(%rbp,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r10
jne    1300 <repositionSimplex+0x1e0>
mov    0x30(%rsp),%rdi
mov    %rdi,%r13
cmp    %rsi,%rdi
je     11b0 <repositionSimplex+0x90>
jmp    11ee <repositionSimplex+0xce>
test   %r12d,%r12d
js     14dc <repositionSimplex+0x3bc>
mov    %esi,%r15d
and    $0xfffffffc,%r15d
mov    0x18(%rsp),%rcx
mov    %ecx,%r10d
and    $0x3,%r10d
and    %rcx,0x8(%rsp)
mov    %esi,%r11d
and    $0x3,%r11d
mov    %r10,%r8
shl    $0x5,%r8
xor    %r13d,%r13d
jmp    137d <repositionSimplex+0x25d>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    %r9,%r13
je     14dc <repositionSimplex+0x3bc>
test   %r12d,%r12d
je     1370 <repositionSimplex+0x250>
mov    (%rax,%r13,8),%rbp
mov    (%r14,%r13,8),%rdx
cmp    $0x4,%r12d
jb     13a9 <repositionSimplex+0x289>
lea    0x0(,%rsi,8),%rcx
add    %rbp,%rcx
cmp    %rcx,%rdx
jae    141d <repositionSimplex+0x2fd>
lea    (%rdx,%rsi,8),%rcx
cmp    %rcx,%rbp
jae    141d <repositionSimplex+0x2fd>
xor    %ebx,%ebx
mov    %rbx,%rdi
not    %rdi
add    %rsi,%rdi
test   %r11,%r11
je     13d5 <repositionSimplex+0x2b5>
mov    %r11,%rcx
nopl   0x0(%rax)
movsd  0x0(%rbp,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rcx
jne    13c0 <repositionSimplex+0x2a0>
cmp    $0x3,%rdi
jb     1370 <repositionSimplex+0x250>
nopl   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
movsd  0x8(%rbp,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rbx,8)
movsd  0x10(%rbp,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rbx,8)
movsd  0x18(%rbp,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rsi
jne    13e0 <repositionSimplex+0x2c0>
jmp    1370 <repositionSimplex+0x250>
cmpq   $0xc,0x10(%rsp)
jae    1429 <repositionSimplex+0x309>
xor    %ebx,%ebx
jmp    1489 <repositionSimplex+0x369>
mov    0x8(%rsp),%rdi
xor    %ebx,%ebx
movups 0x0(%rbp,%rbx,8),%xmm0
movups 0x10(%rbp,%rbx,8),%xmm1
movups %xmm0,(%rdx,%rbx,8)
movups %xmm1,0x10(%rdx,%rbx,8)
movups 0x20(%rbp,%rbx,8),%xmm0
movups 0x30(%rbp,%rbx,8),%xmm1
movups %xmm0,0x20(%rdx,%rbx,8)
movups %xmm1,0x30(%rdx,%rbx,8)
movups 0x40(%rbp,%rbx,8),%xmm0
movups 0x50(%rbp,%rbx,8),%xmm1
movups %xmm0,0x40(%rdx,%rbx,8)
movups %xmm1,0x50(%rdx,%rbx,8)
movups 0x60(%rbp,%rbx,8),%xmm0
movups 0x70(%rbp,%rbx,8),%xmm1
movups %xmm0,0x60(%rdx,%rbx,8)
movups %xmm1,0x70(%rdx,%rbx,8)
add    $0x10,%rbx
add    $0xfffffffffffffffc,%rdi
jne    1430 <repositionSimplex+0x310>
test   %r10,%r10
je     14cb <repositionSimplex+0x3ab>
lea    (%rdx,%rbx,8),%rdi
add    $0x10,%rdi
lea    0x10(,%rbx,8),%rcx
add    %rbp,%rcx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups -0x10(%rcx,%rbx,1),%xmm0
movups (%rcx,%rbx,1),%xmm1
movups %xmm0,-0x10(%rdi,%rbx,1)
movups %xmm1,(%rdi,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r8
jne    14b0 <repositionSimplex+0x390>
mov    %r15,%rbx
cmp    %rsi,%r15
je     1370 <repositionSimplex+0x250>
jmp    13ab <repositionSimplex+0x28b>
mov    %rax,%rdi
mov    %r12d,%esi
call   1040 <freeDoubleMatrix@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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