#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*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ tql2(double **, int, double *, double *);
int /*<<< orphan*/ tred2(double **, int, double *, double *);
void symeig(double **A, int n, double **V, double *D) {
  int i, j;
  double *d, *e;
  d = (double *)malloc(sizeof(double) * n);
  e = (double *)malloc(sizeof(double) * n);
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      V[i][j] = A[i][j];
  tred2(V, n, d, e);
  tql2(V, n, d, e);
  for (i = 0; i < n; i++)
    D[i] = d[i];
  free(e);
  free(d);
}


x86 assembly (clang, -O0):
<symeig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ee <symeig+0xae>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11db <symeig+0x9b>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1197 <symeig+0x57>
jmp    11e0 <symeig+0xa0>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1184 <symeig+0x44>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1050 <tred2@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1060 <tql2@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1251 <symeig+0x111>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    121d <symeig+0xdd>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<symeig>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,%r15
mov    %rdx,%rbp
mov    %esi,%r12d
mov    %rdi,0x20(%rsp)
lea    0x0(,%r12,8),%r14d
mov    %r14d,%edi
call   1040 <malloc@plt>
mov    %rax,%r13
mov    %r14d,%edi
call   1040 <malloc@plt>
test   %r12d,%r12d
mov    %rax,(%rsp)
jle    1412 <symeig+0x2d2>
mov    %r12d,%r14d
mov    %r14d,%r10d
and    $0xfffffffc,%r10d
lea    -0x4(%r10),%r8
mov    %r8,0x8(%rsp)
shr    $0x2,%r8
add    $0x1,%r8
mov    %r8d,%r9d
and    $0x3,%r9d
mov    %r8,0x10(%rsp)
and    $0xfffffffffffffffc,%r8
mov    %r8,0x18(%rsp)
mov    %r14d,%r11d
and    $0x3,%r11d
mov    %r9,%rdi
shl    $0x5,%rdi
xor    %edx,%edx
mov    %rbp,%r8
jmp    11e0 <symeig+0xa0>
nopl   0x0(%rax)
add    $0x1,%rdx
cmp    %r14,%rdx
mov    %r8,%rbp
je     133c <symeig+0x1fc>
mov    0x20(%rsp),%rax
mov    (%rax,%rdx,8),%rcx
mov    0x0(%rbp,%rdx,8),%rax
cmp    $0x4,%r12d
jb     120a <symeig+0xca>
lea    (%rcx,%r14,8),%rsi
cmp    %rsi,%rax
jae    1280 <symeig+0x140>
lea    (%rax,%r14,8),%rsi
cmp    %rsi,%rcx
jae    1280 <symeig+0x140>
xor    %ebp,%ebp
mov    %rbp,%rbx
not    %rbx
add    %r14,%rbx
test   %r11,%r11
je     1234 <symeig+0xf4>
mov    %r11,%rsi
nopl   (%rax)
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
add    $0xffffffffffffffff,%rsi
jne    1220 <symeig+0xe0>
cmp    $0x3,%rbx
jb     11d0 <symeig+0x90>
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rcx,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rax,%rbp,8)
movsd  0x10(%rcx,%rbp,8),%xmm0
movsd  %xmm0,0x10(%rax,%rbp,8)
movsd  0x18(%rcx,%rbp,8),%xmm0
movsd  %xmm0,0x18(%rax,%rbp,8)
add    $0x4,%rbp
cmp    %rbp,%r14
jne    1240 <symeig+0x100>
jmp    11d0 <symeig+0x90>
nopl   0x0(%rax)
cmpq   $0xc,0x8(%rsp)
jae    128c <symeig+0x14c>
xor    %ebp,%ebp
jmp    12f8 <symeig+0x1b8>
mov    0x18(%rsp),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%rcx,%rbp,8),%xmm0
movups 0x10(%rcx,%rbp,8),%xmm1
movups %xmm0,(%rax,%rbp,8)
movups %xmm1,0x10(%rax,%rbp,8)
movups 0x20(%rcx,%rbp,8),%xmm0
movups 0x30(%rcx,%rbp,8),%xmm1
movups %xmm0,0x20(%rax,%rbp,8)
movups %xmm1,0x30(%rax,%rbp,8)
movups 0x40(%rcx,%rbp,8),%xmm0
movups 0x50(%rcx,%rbp,8),%xmm1
movups %xmm0,0x40(%rax,%rbp,8)
movups %xmm1,0x50(%rax,%rbp,8)
movups 0x60(%rcx,%rbp,8),%xmm0
movups 0x70(%rcx,%rbp,8),%xmm1
movups %xmm0,0x60(%rax,%rbp,8)
movups %xmm1,0x70(%rax,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rbx
jne    12a0 <symeig+0x160>
test   %r9,%r9
je     132b <symeig+0x1eb>
lea    (%rax,%rbp,8),%rbx
add    $0x10,%rbx
lea    (%rcx,%rbp,8),%rsi
add    $0x10,%rsi
xor    %ebp,%ebp
nop
movups -0x10(%rsi,%rbp,1),%xmm0
movups (%rsi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rbx,%rbp,1)
movups %xmm1,(%rbx,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdi
jne    1310 <symeig+0x1d0>
mov    %r10,%rbp
cmp    %r14,%r10
je     11d0 <symeig+0x90>
jmp    120c <symeig+0xcc>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    %r13,%rdx
mov    (%rsp),%rbx
mov    %rbx,%rcx
call   1050 <tred2@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1060 <tql2@plt>
test   %r12d,%r12d
jle    1437 <symeig+0x2f7>
cmp    $0x4,%r12d
jb     1392 <symeig+0x252>
lea    0x0(,%r14,8),%rax
add    %r13,%rax
cmp    %r15,%rax
jbe    1456 <symeig+0x316>
lea    (%r15,%r14,8),%rax
cmp    %rax,%r13
jae    1456 <symeig+0x316>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r14,%rcx
mov    %r14,%rdx
and    $0x3,%rdx
je     13c7 <symeig+0x287>
cs nopw 0x0(%rax,%rax,1)
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    13b0 <symeig+0x270>
cmp    $0x3,%rcx
jb     1437 <symeig+0x2f7>
nopl   (%rax)
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
movsd  0x8(%r13,%rax,8),%xmm0
movsd  %xmm0,0x8(%r15,%rax,8)
movsd  0x10(%r13,%rax,8),%xmm0
movsd  %xmm0,0x10(%r15,%rax,8)
movsd  0x18(%r13,%rax,8),%xmm0
movsd  %xmm0,0x18(%r15,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    13d0 <symeig+0x290>
jmp    1437 <symeig+0x2f7>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    %r12d,%esi
mov    %r13,%rdx
mov    %rax,%rcx
call   1050 <tred2@plt>
mov    %rbp,%rdi
mov    %r12d,%esi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1060 <tql2@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %r13,%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    %r14d,%eax
and    $0xfffffffc,%eax
mov    0x10(%rsp),%rsi
mov    %esi,%ecx
and    $0x3,%ecx
cmpq   $0xc,0x8(%rsp)
jae    1475 <symeig+0x335>
xor    %edx,%edx
jmp    14f9 <symeig+0x3b9>
movabs $0x7ffffffffffffffc,%rdx
ff ff 7f
and    %rdx,%rsi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups 0x0(%r13,%rdx,8),%xmm0
movups 0x10(%r13,%rdx,8),%xmm1
movups %xmm0,(%r15,%rdx,8)
movups %xmm1,0x10(%r15,%rdx,8)
movups 0x20(%r13,%rdx,8),%xmm0
movups 0x30(%r13,%rdx,8),%xmm1
movups %xmm0,0x20(%r15,%rdx,8)
movups %xmm1,0x30(%r15,%rdx,8)
movups 0x40(%r13,%rdx,8),%xmm0
movups 0x50(%r13,%rdx,8),%xmm1
movups %xmm0,0x40(%r15,%rdx,8)
movups %xmm1,0x50(%r15,%rdx,8)
movups 0x60(%r13,%rdx,8),%xmm0
movups 0x70(%r13,%rdx,8),%xmm1
movups %xmm0,0x60(%r15,%rdx,8)
movups %xmm1,0x70(%r15,%rdx,8)
add    $0x10,%rdx
add    $0xfffffffffffffffc,%rsi
jne    1490 <symeig+0x350>
test   %rcx,%rcx
je     153b <symeig+0x3fb>
lea    (%r15,%rdx,8),%rsi
add    $0x10,%rsi
lea    0x10(,%rdx,8),%rdx
add    %r13,%rdx
shl    $0x5,%rcx
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movups -0x10(%rdx,%rdi,1),%xmm0
movups (%rdx,%rdi,1),%xmm1
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    1520 <symeig+0x3e0>
cmp    %r14,%rax
je     1437 <symeig+0x2f7>
jmp    1394 <symeig+0x254>

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

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