#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*/ clean(double *, int);
void produtoQA(double A[1000][1000], double gama, int index, int n, int m) {
  double auxT[index];
  double aux[index];
  double vT[m - index];
  int i, j, k;
  for (i = index; i < n; i++)
    aux[i] = A[index][i];
  clean(auxT, index);
  for (i = 0; i < n; i++) {
    k = aux[i] * gama;
    for (j = 0; j < n; j++)
      auxT[j] += k * A[i][j];
  }
  for (i = index; i < n; i++)
    for (j = index; j < m; j++)
      A[i][j] -= aux[i] * auxT[j];
}


x86 assembly (clang, -O0):
<produtoQA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,%eax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11c5 <produtoQA+0xb5>
mov    -0x58(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
imul   $0x1f40,%rdx,%rdx
add    %rdx,%rcx
movslq -0x44(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1183 <produtoQA+0x73>
mov    -0x60(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <clean@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    126b <produtoQA+0x15b>
mov    -0x58(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x10(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x4c(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1258 <produtoQA+0x148>
mov    -0x60(%rbp),%rax
cvtsi2sdl -0x4c(%rbp),%xmm0
mov    -0x8(%rbp),%rcx
movslq -0x44(%rbp),%rdx
imul   $0x1f40,%rdx,%rdx
add    %rdx,%rcx
movslq -0x48(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm2
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1204 <produtoQA+0xf4>
jmp    125d <produtoQA+0x14d>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11d8 <produtoQA+0xc8>
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1309 <produtoQA+0x1f9>
mov    -0x14(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12f6 <produtoQA+0x1e6>
mov    -0x60(%rbp),%rax
mov    -0x58(%rbp),%rcx
movslq -0x44(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1283 <produtoQA+0x173>
jmp    12fb <produtoQA+0x1eb>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1271 <produtoQA+0x161>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<produtoQA>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %ecx,-0x30(%rbp)
mov    %edx,%r13d
mov    %esi,%ecx
movsd  %xmm0,-0x38(%rbp)
mov    %rdi,%r12
mov    %esi,%eax
mov    %rsp,%rbx
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%r15
sub    %rax,%r15
mov    %r15,%rsp
cmp    %edx,%esi
mov    %esi,-0x2c(%rbp)
jge    1190 <produtoQA+0x70>
movslq %ecx,%rax
lea    (%r15,%rax,8),%rdi
imul   $0x1f48,%rax,%rsi
add    %r12,%rsi
mov    %ecx,%eax
not    %eax
add    %r13d,%eax
lea    0x8(,%rax,8),%rdx
call   1030 <memcpy@plt>
mov    -0x2c(%rbp),%ecx
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
mov    %rax,-0x40(%rbp)
mov    %rbx,%rdi
mov    %ecx,%esi
call   1040 <clean@plt>
test   %r13d,%r13d
movsd  -0x38(%rbp),%xmm4
jle    132b <produtoQA+0x20b>
mov    %r13d,%eax
mov    %eax,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r9
mov    %r9,%r10
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10,%r14
movabs $0x7ffffffffffffffe,%rcx
ff ff 7f
and    %rcx,%r14
lea    0x30(%r12),%rdi
xor    %edx,%edx
mov    %r12,%rsi
jmp    120b <produtoQA+0xeb>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
add    $0x1f40,%rdi
add    $0x1f40,%rsi
cmp    %rax,%rdx
je     132b <produtoQA+0x20b>
movsd  (%r15,%rdx,8),%xmm0
mulsd  %xmm4,%xmm0
cvttpd2dq %xmm0,%xmm0
cvtdq2pd %xmm0,%xmm0
cmp    $0x4,%r13d
jae    1230 <produtoQA+0x110>
xor    %ecx,%ecx
jmp    1300 <produtoQA+0x1e0>
nopw   0x0(%rax,%rax,1)
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
test   %r9,%r9
je     1321 <produtoQA+0x201>
mov    %r14,%r8
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movupd -0x30(%rdi,%rcx,8),%xmm2
movupd -0x20(%rdi,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  (%rbx,%rcx,8),%xmm2
mulpd  %xmm1,%xmm3
addpd  0x10(%rbx,%rcx,8),%xmm3
movapd %xmm2,(%rbx,%rcx,8)
movapd %xmm3,0x10(%rbx,%rcx,8)
movupd -0x10(%rdi,%rcx,8),%xmm2
mulpd  %xmm1,%xmm2
addpd  0x20(%rbx,%rcx,8),%xmm2
movupd (%rdi,%rcx,8),%xmm3
mulpd  %xmm1,%xmm3
addpd  0x30(%rbx,%rcx,8),%xmm3
movapd %xmm2,0x20(%rbx,%rcx,8)
movapd %xmm3,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%r8
jne    1250 <produtoQA+0x130>
test   $0x1,%r10b
je     12ea <produtoQA+0x1ca>
imul   $0x1f40,%rdx,%r8
add    %r12,%r8
movupd (%r8,%rcx,8),%xmm2
movupd 0x10(%r8,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  (%rbx,%rcx,8),%xmm2
mulpd  %xmm1,%xmm3
addpd  0x10(%rbx,%rcx,8),%xmm3
movapd %xmm2,(%rbx,%rcx,8)
movapd %xmm3,0x10(%rbx,%rcx,8)
mov    %r11,%rcx
cmp    %rax,%r11
je     11f0 <produtoQA+0xd0>
cs nopw 0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1300 <produtoQA+0x1e0>
jmp    11f0 <produtoQA+0xd0>
xor    %ecx,%ecx
test   $0x1,%r10b
jne    12b5 <produtoQA+0x195>
jmp    12ea <produtoQA+0x1ca>
mov    %r12,-0x48(%rbp)
mov    -0x2c(%rbp),%ecx
cmp    %r13d,%ecx
mov    -0x30(%rbp),%r9d
jge    1515 <produtoQA+0x3f5>
movslq %ecx,%r8
movslq %r13d,%r12
movslq %r9d,%rdx
mov    %rdx,%r14
sub    %r8,%r14
lea    -0x4(%r14),%rax
mov    %rax,-0x38(%rbp)
shr    $0x2,%rax
add    $0x1,%rax
mov    %r14,%rsi
and    $0xfffffffffffffffc,%rsi
mov    %rsi,-0x58(%rbp)
add    %r8,%rsi
mov    %rsi,-0x50(%rbp)
mov    %rax,%rsi
mov    %rax,-0x60(%rbp)
and    %rax,-0x40(%rbp)
imul   $0x1f48,%r8,%rax
mov    -0x48(%rbp),%rsi
lea    (%rax,%rsi,1),%rdi
add    $0x30,%rdi
lea    (%rbx,%r8,8),%rax
add    $0x30,%rax
imul   $0x1f40,%r8,%r13
add    %rsi,%r13
movapd 0xc58(%rip),%xmm0
mov    %r8,%r10
jmp    13cb <produtoQA+0x2ab>
nopl   (%rax)
add    $0x1,%r10
add    $0x1f40,%rdi
add    $0x1f40,%r13
cmp    %r12,%r10
je     1515 <produtoQA+0x3f5>
cmp    %r9d,%ecx
jge    13b0 <produtoQA+0x290>
movsd  (%r15,%r10,8),%xmm1
xorpd  %xmm0,%xmm1
mov    %r8,%rsi
cmp    $0x4,%r14
jb     14f0 <produtoQA+0x3d0>
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
cmpq   $0x4,-0x38(%rbp)
jae    13fe <produtoQA+0x2de>
xor    %r9d,%r9d
jmp    148b <produtoQA+0x36b>
mov    -0x40(%rbp),%r11
xor    %r9d,%r9d
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x30(%rax,%r9,8),%xmm3
movupd -0x20(%rax,%r9,8),%xmm4
mulpd  %xmm2,%xmm3
movupd -0x30(%rdi,%r9,8),%xmm5
addpd  %xmm3,%xmm5
movupd -0x20(%rdi,%r9,8),%xmm3
movupd -0x10(%rdi,%r9,8),%xmm6
movupd (%rdi,%r9,8),%xmm7
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
movupd %xmm5,-0x30(%rdi,%r9,8)
movupd %xmm4,-0x20(%rdi,%r9,8)
movupd -0x10(%rax,%r9,8),%xmm3
movupd (%rax,%r9,8),%xmm4
mulpd  %xmm2,%xmm3
addpd  %xmm6,%xmm3
mulpd  %xmm2,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm3,-0x10(%rdi,%r9,8)
movupd %xmm4,(%rdi,%r9,8)
add    $0x8,%r9
add    $0xfffffffffffffffe,%r11
jne    1410 <produtoQA+0x2f0>
testb  $0x1,-0x60(%rbp)
je     14d6 <produtoQA+0x3b6>
add    %r8,%r9
movupd (%rbx,%r9,8),%xmm3
movupd 0x10(%rbx,%r9,8),%xmm4
imul   $0x1f40,%r10,%rsi
add    -0x48(%rbp),%rsi
movupd (%rsi,%r9,8),%xmm5
movupd 0x10(%rsi,%r9,8),%xmm6
mulpd  %xmm2,%xmm3
addpd  %xmm5,%xmm3
mulpd  %xmm2,%xmm4
addpd  %xmm6,%xmm4
movupd %xmm3,(%rsi,%r9,8)
movupd %xmm4,0x10(%rsi,%r9,8)
mov    -0x50(%rbp),%rsi
cmp    -0x58(%rbp),%r14
mov    -0x30(%rbp),%r9d
mov    -0x2c(%rbp),%ecx
je     13b0 <produtoQA+0x290>
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rsi,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  0x0(%r13,%rsi,8),%xmm2
movsd  %xmm2,0x0(%r13,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rdx
jne    14f0 <produtoQA+0x3d0>
jmp    13b0 <produtoQA+0x290>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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