#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 EigenTridagQLImplicit(double *, double *, int, double *);
int /*<<< orphan*/ HouseholderRealSym(double *, int, double *, double *);
int /*<<< orphan*/ error2(char *);
int /*<<< orphan*/ matby(double *, double *, double *, int, int, int);
int /*<<< orphan*/ mattransp2(double *, double *, int, int);
double sqrt(double);
int /*<<< orphan*/ xtoy(double *, double *, int);
int matsqrt(double A[], int n, double work[]) {
  int i, j, status;
  double *U = work, *Root = U + n * n, *V = Root + n;
  xtoy(A, U, n * n);
  HouseholderRealSym(U, n, Root, V);
  status = EigenTridagQLImplicit(Root, V, n, U);
  mattransp2(U, V, n, n);
  for (i = 0; i < n; i++)
    if (Root[i] < 0)
      error2("negative root in matsqrt?");
    else
      Root[i] = sqrt(Root[i]);
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      U[i * n + j] *= Root[j];
  matby(U, V, A, n, n, n);
  return (status);
}


x86 assembly (clang, -O0):
<matsqrt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0xc(%rbp),%edx
imul   -0xc(%rbp),%edx
call   1080 <xtoy@plt>
mov    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
call   1040 <HouseholderRealSym@plt>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x30(%rbp),%rcx
call   1070 <EigenTridagQLImplicit@plt>
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1030 <mattransp2@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1275 <matsqrt+0x105>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    1243 <matsqrt+0xd3>
lea    0xdc7(%rip),%rdi
call   1060 <error2@plt>
jmp    1262 <matsqrt+0xf2>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1090 <sqrt@plt>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1267 <matsqrt+0xf7>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1210 <matsqrt+0xa0>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12e4 <matsqrt+0x174>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12d1 <matsqrt+0x161>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    128f <matsqrt+0x11f>
jmp    12d6 <matsqrt+0x166>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    127c <matsqrt+0x10c>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0xc(%rbp),%r9d
call   1050 <matby@plt>
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<matsqrt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%r13
mov    %esi,%edx
imul   %edx,%edx
lea    0x0(,%rdx,8),%rbp
add    %r13,%rbp
mov    %esi,0x8(%rsp)
movslq %esi,%rbx
lea    0x0(%rbp,%rbx,8),%r14
mov    %rdi,0x28(%rsp)
mov    %r13,%rsi
mov    %rdx,0x18(%rsp)
call   1080 <xtoy@plt>
mov    %r13,%rdi
mov    %ebx,%esi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1040 <HouseholderRealSym@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %r13,%rcx
call   1070 <EigenTridagQLImplicit@plt>
mov    %eax,0xc(%rsp)
mov    %r13,%rdi
mov    %r14,0x20(%rsp)
mov    %r14,%rsi
mov    %ebx,%edx
mov    %ebx,%ecx
call   1030 <mattransp2@plt>
mov    %rbx,0x10(%rsp)
test   %ebx,%ebx
jle    1464 <matsqrt+0x2f4>
mov    0x8(%rsp),%r14d
xor    %r12d,%r12d
xorpd  %xmm1,%xmm1
lea    0xdf9(%rip),%r15
jmp    1225 <matsqrt+0xb5>
nopl   0x0(%rax)
mov    %r15,%rdi
call   1060 <error2@plt>
xorpd  %xmm1,%xmm1
add    $0x1,%r12
cmp    %r12,%r14
je     1252 <matsqrt+0xe2>
movsd  0x0(%rbp,%r12,8),%xmm0
ucomisd %xmm0,%xmm1
ja     1210 <matsqrt+0xa0>
ucomisd %xmm1,%xmm0
jb     1240 <matsqrt+0xd0>
sqrtsd %xmm0,%xmm0
jmp    1249 <matsqrt+0xd9>
xchg   %ax,%ax
call   1090 <sqrt@plt>
xorpd  %xmm1,%xmm1
movsd  %xmm0,0x0(%rbp,%r12,8)
jmp    121c <matsqrt+0xac>
cmpl   $0x0,0x8(%rsp)
jle    1464 <matsqrt+0x2f4>
mov    0x18(%rsp),%rdx
lea    (%r14,%rdx,1),%rax
lea    0x0(,%rax,8),%r11
add    %r13,%r11
mov    %r14d,%r15d
and    $0xfffffffc,%r15d
lea    -0x4(%r15),%rax
mov    %rax,0x40(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x38(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x30(%rsp)
mov    %r14,%r12
neg    %r12
lea    0x30(,%rdx,8),%rdx
add    %r13,%rdx
lea    0x30(%r13),%rsi
mov    0x10(%rsp),%rax
lea    0x0(,%rax,8),%rax
lea    0x8(%r13),%rcx
xor    %r9d,%r9d
jmp    12e3 <matsqrt+0x173>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r9
add    %rax,%rsi
add    %rax,%rcx
cmp    %r14,%r9
je     1464 <matsqrt+0x2f4>
mov    %r9,%r8
imul   0x10(%rsp),%r8
cmpl   $0x4,0x8(%rsp)
jb     131b <matsqrt+0x1ab>
lea    0x0(,%r8,8),%rdi
add    %r13,%rdi
cmp    %r11,%rdi
jae    1380 <matsqrt+0x210>
lea    (%r8,%r14,1),%rdi
lea    0x0(,%rdi,8),%rdi
add    %r13,%rdi
cmp    %rdi,%rbp
jae    1380 <matsqrt+0x210>
xor    %ebx,%ebx
mov    %rbx,%rdi
test   $0x1,%r14b
je     1344 <matsqrt+0x1d4>
movsd  0x0(%rbp,%rbx,8),%xmm0
add    %rbx,%r8
mulsd  0x0(%r13,%r8,8),%xmm0
movsd  %xmm0,0x0(%r13,%r8,8)
mov    %rbx,%rdi
or     $0x1,%rdi
not    %rbx
cmp    %r12,%rbx
je     12d0 <matsqrt+0x160>
nopl   0x0(%rax)
movsd  -0x30(%rdx,%rdi,8),%xmm0
mulsd  -0x8(%rcx,%rdi,8),%xmm0
movsd  %xmm0,-0x8(%rcx,%rdi,8)
movsd  -0x28(%rdx,%rdi,8),%xmm0
mulsd  (%rcx,%rdi,8),%xmm0
movsd  %xmm0,(%rcx,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r14
jne    1350 <matsqrt+0x1e0>
jmp    12d0 <matsqrt+0x160>
cmpq   $0x0,0x40(%rsp)
je     1458 <matsqrt+0x2e8>
mov    0x30(%rsp),%rdi
xor    %r10d,%r10d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd -0x30(%rdx,%r10,8),%xmm0
movupd -0x20(%rdx,%r10,8),%xmm1
movupd -0x30(%rsi,%r10,8),%xmm2
mulpd  %xmm0,%xmm2
movupd -0x20(%rsi,%r10,8),%xmm0
mulpd  %xmm1,%xmm0
movupd -0x10(%rsi,%r10,8),%xmm1
movupd (%rsi,%r10,8),%xmm3
movupd %xmm2,-0x30(%rsi,%r10,8)
movupd %xmm0,-0x20(%rsi,%r10,8)
movupd -0x10(%rdx,%r10,8),%xmm0
mulpd  %xmm1,%xmm0
movupd (%rdx,%r10,8),%xmm1
mulpd  %xmm3,%xmm1
movupd %xmm0,-0x10(%rsi,%r10,8)
movupd %xmm1,(%rsi,%r10,8)
add    $0x8,%r10
add    $0xfffffffffffffffe,%rdi
jne    13a0 <matsqrt+0x230>
testb  $0x1,0x38(%rsp)
je     1447 <matsqrt+0x2d7>
movupd 0x0(%rbp,%r10,8),%xmm0
movupd 0x10(%rbp,%r10,8),%xmm1
add    %r8,%r10
movupd 0x0(%r13,%r10,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%r13,%r10,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,0x0(%r13,%r10,8)
movupd %xmm0,0x10(%r13,%r10,8)
mov    %r15,%rbx
cmp    %r14,%r15
je     12d0 <matsqrt+0x160>
jmp    131d <matsqrt+0x1ad>
xor    %r10d,%r10d
testb  $0x1,0x38(%rsp)
jne    1412 <matsqrt+0x2a2>
jmp    1447 <matsqrt+0x2d7>
mov    %r13,%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x8(%rsp),%ecx
mov    %ecx,%r8d
mov    %ecx,%r9d
call   1050 <matby@plt>
mov    0xc(%rsp),%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"negative root in matsqrt?\00"
define i32 @matsqrt(double* %0, i32 %1, double* %2) {
%4 = alloca double*
%5 = alloca i32
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
store double* %0, double** %4
store i32 %1, i32* %5
store double* %2, double** %6
%13 = load double*, double** %6
store double* %13, double** %10
%14 = load double*, double** %10
%15 = load i32, i32* %5
%16 = load i32, i32* %5
%17 = mul nsw i32 %15, %16
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %14, i64 %18
store double* %19, double** %11
%20 = load double*, double** %11
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
store double* %23, double** %12
%24 = load double*, double** %4
%25 = load double*, double** %10
%26 = load i32, i32* %5
%27 = load i32, i32* %5
%28 = mul nsw i32 %26, %27
%29 = call i32 @xtoy(double* %24, double* %25, i32 %28)
%30 = load double*, double** %10
%31 = load i32, i32* %5
%32 = load double*, double** %11
%33 = load double*, double** %12
%34 = call i32 @HouseholderRealSym(double* %30, i32 %31, double* %32, double* %33)
%35 = load double*, double** %11
%36 = load double*, double** %12
%37 = load i32, i32* %5
%38 = load double*, double** %10
%39 = call i32 @EigenTridagQLImplicit(double* %35, double* %36, i32 %37, double* %38)
store i32 %39, i32* %9
%40 = load double*, double** %10
%41 = load double*, double** %12
%42 = load i32, i32* %5
%43 = load i32, i32* %5
%44 = call i32 @mattransp2(double* %40, double* %41, i32 %42, i32 %43)
store i32 0, i32* %7
br label %45
45: ; preds = %70, %3
%46 = load i32, i32* %7
%47 = load i32, i32* %5
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %73
49: ; preds = %45
%50 = load double*, double** %11
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, double* %50, i64 %52
%54 = load double, double* %53
%55 = fcmp olt double %54, 0.000000e+00
br i1 %55, label %56, label %58
56: ; preds = %49
%57 = call i32 @error2(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %69
58: ; preds = %49
%59 = load double*, double** %11
%60 = load i32, i32* %7
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %59, i64 %61
%63 = load double, double* %62
%64 = call double @sqrt(double %63)
%65 = load double*, double** %11
%66 = load i32, i32* %7
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
store double %64, double* %68
br label %69
69: ; preds = %58, %56
br label %70
70: ; preds = %69
%71 = load i32, i32* %7
%72 = add nsw i32 %71, 1
store i32 %72, i32* %7
br label %45
73: ; preds = %45
store i32 0, i32* %7
br label %74
74: ; preds = %103, %73
%75 = load i32, i32* %7
%76 = load i32, i32* %5
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %106
78: ; preds = %74
store i32 0, i32* %8
br label %79
79: ; preds = %99, %78
%80 = load i32, i32* %8
%81 = load i32, i32* %5
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %102
83: ; preds = %79
%84 = load double*, double** %11
%85 = load i32, i32* %8
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
%88 = load double, double* %87
%89 = load double*, double** %10
%90 = load i32, i32* %7
%91 = load i32, i32* %5
%92 = mul nsw i32 %90, %91
%93 = load i32, i32* %8
%94 = add nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %89, i64 %95
%97 = load double, double* %96
%98 = fmul double %97, %88
store double %98, double* %96
br label %99
99: ; preds = %83
%100 = load i32, i32* %8
%101 = add nsw i32 %100, 1
store i32 %101, i32* %8
br label %79
102: ; preds = %79
br label %103
103: ; preds = %102
%104 = load i32, i32* %7
%105 = add nsw i32 %104, 1
store i32 %105, i32* %7
br label %74
106: ; preds = %74
%107 = load double*, double** %10
%108 = load double*, double** %12
%109 = load double*, double** %4
%110 = load i32, i32* %5
%111 = load i32, i32* %5
%112 = load i32, i32* %5
%113 = call i32 @matby(double* %107, double* %108, double* %109, i32 %110, i32 %111, i32 %112)
%114 = load i32, i32* %9
ret i32 %114
}

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