#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 */
double DBL_MIN;
int calculate_output(double aux_real[1000], double aux_img[1000],
                     double matrice_real[1000][1000],
                     double matrice_img[1000][1000], double snapshot_real[1000],
                     double snapshot_img[1000]) {
  int i, j, t;
  double val, t_val;
  int t1, t2, t3, t4;
  int lb, ub, lbp, ubp, lb2, ub2;
  register int lbv, ubv;
  if (1000 >= 1) {
    lbp = 0;
    ubp = 1000 - 1;
#pragma omp parallel for private(lbv, ubv, t3, t4)
    for (t2 = lbp; t2 <= ubp; t2++) {
      aux_img[t2] = 0;
      aux_real[t2] = 0;
      ;
    }
  }
  if (1000 >= 1) {
    lbp = 0;
    ubp = 1000 - 1;
#pragma omp parallel for private(lbv, ubv, t3, t4)
    for (t2 = lbp; t2 <= ubp; t2++) {
      for (t3 = 0; t3 <= 1000 - 1; t3++) {
        aux_real[t2] += snapshot_real[t3] * matrice_real[t2][t3] -
                        snapshot_img[t3] * matrice_img[t2][t3];
        aux_img[t2] += snapshot_img[t3] * matrice_real[t2][t3] +
                       snapshot_real[t3] * matrice_img[t2][t3];
        ;
      }
    }
  }
  t_val = DBL_MIN;
  ;
  t = 0;
  ;
  for (t2 = 0; t2 <= 1000 - 1; t2++) {
    val = aux_real[t2] * aux_real[t2] + aux_img[t2] * aux_img[t2];
    ;
    t = (val >= t_val) ? (t_val = val, t2) : t;
    ;
  }
  return t;
}


x86 assembly (clang, -O0):
<calculate_output>:
push   %rbp
mov    %rsp,%rbp
push   %rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x3e7,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x70(%rbp),%eax
jg     116b <calculate_output+0x6b>
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1131 <calculate_output+0x31>
movl   $0x0,-0x6c(%rbp)
movl   $0x3e7,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x70(%rbp),%eax
jg     12ab <calculate_output+0x1ab>
movl   $0x0,-0x5c(%rbp)
cmpl   $0x3e7,-0x5c(%rbp)
jg     1298 <calculate_output+0x198>
mov    -0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x5c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x58(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x58(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x5c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1192 <calculate_output+0x92>
jmp    129d <calculate_output+0x19d>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    117f <calculate_output+0x7f>
mov    0x2d2e(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x3e7,-0x58(%rbp)
jg     135f <calculate_output+0x25f>
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     133f <calculate_output+0x23f>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1348 <calculate_output+0x248>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12c9 <calculate_output+0x1c9>
mov    -0x3c(%rbp),%eax
add    $0x8,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_output>:
lea    0x1f40(%rdi),%rax
cmp    %rsi,%rax
jbe    1189 <calculate_output+0x89>
lea    0x1f40(%rsi),%rax
cmp    %rdi,%rax
jbe    1189 <calculate_output+0x89>
mov    $0x4,%eax
nopl   (%rax)
movq   $0x0,-0x20(%rsi,%rax,8)
movq   $0x0,-0x20(%rdi,%rax,8)
movq   $0x0,-0x18(%rsi,%rax,8)
movq   $0x0,-0x18(%rdi,%rax,8)
movq   $0x0,-0x10(%rsi,%rax,8)
movq   $0x0,-0x10(%rdi,%rax,8)
movq   $0x0,-0x8(%rsi,%rax,8)
movq   $0x0,-0x8(%rdi,%rax,8)
movq   $0x0,(%rsi,%rax,8)
movq   $0x0,(%rdi,%rax,8)
add    $0x5,%rax
cmp    $0x3ec,%rax
jne    1120 <calculate_output+0x20>
jmp    122c <calculate_output+0x12c>
mov    $0x12,%eax
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd %xmm0,-0x90(%rsi,%rax,8)
ff ff
movupd %xmm0,-0x80(%rsi,%rax,8)
movupd %xmm0,-0x90(%rdi,%rax,8)
ff ff
movupd %xmm0,-0x80(%rdi,%rax,8)
movupd %xmm0,-0x70(%rsi,%rax,8)
movupd %xmm0,-0x60(%rsi,%rax,8)
movupd %xmm0,-0x70(%rdi,%rax,8)
movupd %xmm0,-0x60(%rdi,%rax,8)
movupd %xmm0,-0x50(%rsi,%rax,8)
movupd %xmm0,-0x40(%rsi,%rax,8)
movupd %xmm0,-0x50(%rdi,%rax,8)
movupd %xmm0,-0x40(%rdi,%rax,8)
movupd %xmm0,-0x30(%rsi,%rax,8)
movupd %xmm0,-0x20(%rsi,%rax,8)
movupd %xmm0,-0x30(%rdi,%rax,8)
movupd %xmm0,-0x20(%rdi,%rax,8)
movupd %xmm0,-0x10(%rsi,%rax,8)
movupd %xmm0,(%rsi,%rax,8)
movupd %xmm0,-0x10(%rdi,%rax,8)
movupd %xmm0,(%rdi,%rax,8)
add    $0x14,%rax
cmp    $0x3fa,%rax
jne    11a0 <calculate_output+0xa0>
xor    %r10d,%r10d
nop
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r8,%rax,8),%xmm0
movsd  (%rcx,%rax,8),%xmm1
mulsd  (%r9,%rax,8),%xmm1
mulsd  (%rdx,%rax,8),%xmm0
subsd  %xmm1,%xmm0
addsd  (%rdi,%r10,8),%xmm0
movsd  %xmm0,(%rdi,%r10,8)
movsd  (%r9,%rax,8),%xmm0
movsd  (%r8,%rax,8),%xmm1
mulsd  (%rcx,%rax,8),%xmm1
mulsd  (%rdx,%rax,8),%xmm0
addsd  %xmm1,%xmm0
addsd  (%rsi,%r10,8),%xmm0
movsd  %xmm0,(%rsi,%r10,8)
add    $0x1,%rax
cmp    $0x3e8,%rax
jne    1240 <calculate_output+0x140>
add    $0x1,%r10
add    $0x1f40,%rcx
add    $0x1f40,%rdx
cmp    $0x3e8,%r10
jne    1230 <calculate_output+0x130>
mov    0x2d22(%rip),%rax
movsd  (%rax),%xmm0
xor    %ecx,%ecx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,8),%xmm1
movsd  0x8(%rsi,%rcx,8),%xmm2
mulsd  %xmm1,%xmm1
movsd  (%rdi,%rcx,8),%xmm3
movsd  0x8(%rdi,%rcx,8),%xmm4
mulsd  %xmm3,%xmm3
addsd  %xmm1,%xmm3
ucomisd %xmm0,%xmm3
movapd %xmm0,%xmm1
cmpnlesd %xmm3,%xmm1
movapd %xmm1,%xmm5
andnpd %xmm3,%xmm5
andpd  %xmm0,%xmm1
orpd   %xmm5,%xmm1
mov    %eax,%edx
cmovae %ecx,%edx
mulsd  %xmm2,%xmm2
mulsd  %xmm4,%xmm4
addsd  %xmm2,%xmm4
lea    0x1(%rcx),%eax
ucomisd %xmm1,%xmm4
movapd %xmm1,%xmm0
cmpnlesd %xmm4,%xmm0
movapd %xmm0,%xmm2
andpd  %xmm1,%xmm2
andnpd %xmm4,%xmm0
orpd   %xmm2,%xmm0
cmovb  %edx,%eax
add    $0x2,%rcx
cmp    $0x3e8,%rcx
jne    12d0 <calculate_output+0x1d0>
ret

LLVM IR (-O0):
@DBL_MIN = global double 0.000000e+00
define i32 @calculate_output(double* %0, double* %1, [1000 x double]* %2, [1000 x double]* %3, double* %4, double* %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca [1000 x double]*
%10 = alloca [1000 x double]*
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca double
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
store double* %0, double** %7
store double* %1, double** %8
store [1000 x double]* %2, [1000 x double]** %9
store [1000 x double]* %3, [1000 x double]** %10
store double* %4, double** %11
store double* %5, double** %12
store i32 0, i32* %24
store i32 999, i32* %25
%30 = load i32, i32* %24
store i32 %30, i32* %19
br label %31
31: ; preds = %44, %6
%32 = load i32, i32* %19
%33 = load i32, i32* %25
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %47
35: ; preds = %31
%36 = load double*, double** %8
%37 = load i32, i32* %19
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
store double 0.000000e+00, double* %39
%40 = load double*, double** %7
%41 = load i32, i32* %19
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
store double 0.000000e+00, double* %43
br label %44
44: ; preds = %35
%45 = load i32, i32* %19
%46 = add nsw i32 %45, 1
store i32 %46, i32* %19
br label %31
47: ; preds = %31
store i32 0, i32* %24
store i32 999, i32* %25
%48 = load i32, i32* %24
store i32 %48, i32* %19
br label %49
49: ; preds = %131, %47
%50 = load i32, i32* %19
%51 = load i32, i32* %25
%52 = icmp sle i32 %50, %51
br i1 %52, label %53, label %134
53: ; preds = %49
store i32 0, i32* %20
br label %54
54: ; preds = %127, %53
%55 = load i32, i32* %20
%56 = icmp sle i32 %55, 999
br i1 %56, label %57, label %130
57: ; preds = %54
%58 = load double*, double** %11
%59 = load i32, i32* %20
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double, double* %61
%63 = load [1000 x double]*, [1000 x double]** %9
%64 = load i32, i32* %19
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [1000 x double], [1000 x double]* %63, i64 %65
%67 = load i32, i32* %20
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1000 x double], [1000 x double]* %66, i64 0, i64 %68
%70 = load double, double* %69
%71 = load double*, double** %12
%72 = load i32, i32* %20
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %71, i64 %73
%75 = load double, double* %74
%76 = load [1000 x double]*, [1000 x double]** %10
%77 = load i32, i32* %19
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [1000 x double], [1000 x double]* %76, i64 %78
%80 = load i32, i32* %20
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1000 x double], [1000 x double]* %79, i64 0, i64 %81
%83 = load double, double* %82
%84 = fmul double %75, %83
%85 = fneg double %84
%86 = call double @llvm.fmuladd.f64(double %62, double %70, double %85)
%87 = load double*, double** %7
%88 = load i32, i32* %19
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double, double* %90
%92 = fadd double %91, %86
store double %92, double* %90
%93 = load double*, double** %12
%94 = load i32, i32* %20
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %93, i64 %95
%97 = load double, double* %96
%98 = load [1000 x double]*, [1000 x double]** %9
%99 = load i32, i32* %19
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [1000 x double], [1000 x double]* %98, i64 %100
%102 = load i32, i32* %20
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [1000 x double], [1000 x double]* %101, i64 0, i64 %103
%105 = load double, double* %104
%106 = load double*, double** %11
%107 = load i32, i32* %20
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %106, i64 %108
%110 = load double, double* %109
%111 = load [1000 x double]*, [1000 x double]** %10
%112 = load i32, i32* %19
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [1000 x double], [1000 x double]* %111, i64 %113
%115 = load i32, i32* %20
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [1000 x double], [1000 x double]* %114, i64 0, i64 %116
%118 = load double, double* %117
%119 = fmul double %110, %118
%120 = call double @llvm.fmuladd.f64(double %97, double %105, double %119)
%121 = load double*, double** %8
%122 = load i32, i32* %19
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %121, i64 %123
%125 = load double, double* %124
%126 = fadd double %125, %120
store double %126, double* %124
br label %127
127: ; preds = %57
%128 = load i32, i32* %20
%129 = add nsw i32 %128, 1
store i32 %129, i32* %20
br label %54
130: ; preds = %54
br label %131
131: ; preds = %130
%132 = load i32, i32* %19
%133 = add nsw i32 %132, 1
store i32 %133, i32* %19
br label %49
134: ; preds = %49
%135 = load double, double* @DBL_MIN
store double %135, double* %17
store i32 0, i32* %15
store i32 0, i32* %19
br label %136
136: ; preds = %172, %134
%137 = load i32, i32* %19
%138 = icmp sle i32 %137, 999
br i1 %138, label %139, label %175
139: ; preds = %136
%140 = load double*, double** %7
%141 = load i32, i32* %19
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %140, i64 %142
%144 = load double, double* %143
%145 = load double*, double** %7
%146 = load i32, i32* %19
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, double* %145, i64 %147
%149 = load double, double* %148
%150 = load double*, double** %8
%151 = load i32, i32* %19
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, double* %150, i64 %152
%154 = load double, double* %153
%155 = load double*, double** %8
%156 = load i32, i32* %19
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %155, i64 %157
%159 = load double, double* %158
%160 = fmul double %154, %159
%161 = call double @llvm.fmuladd.f64(double %144, double %149, double %160)
store double %161, double* %16
%162 = load double, double* %16
%163 = load double, double* %17
%164 = fcmp oge double %162, %163
br i1 %164, label %165, label %168
165: ; preds = %139
%166 = load double, double* %16
store double %166, double* %17
%167 = load i32, i32* %19
br label %170
168: ; preds = %139
%169 = load i32, i32* %15
br label %170
170: ; preds = %168, %165
%171 = phi i32 [ %167, %165 ], [ %169, %168 ]
store i32 %171, i32* %15
br label %172
172: ; preds = %170
%173 = load i32, i32* %19
%174 = add nsw i32 %173, 1
store i32 %174, i32* %19
br label %136
175: ; preds = %136
%176 = load i32, i32* %15
ret i32 %176
}

LLVM IR (-O2):
@DBL_MIN = global double 0.000000e+00
define i32 @calculate_output(double* nocapture %0, double* nocapture %1, [1000 x double]* nocapture %2, [1000 x double]* nocapture %3, double* nocapture %4, double* nocapture %5) {
%7 = getelementptr double, double* %1, i64 1000
%8 = getelementptr double, double* %0, i64 1000
%9 = icmp ugt double* %8, %1
%10 = icmp ugt double* %7, %0
%11 = and i1 %9, %10
br i1 %11, label %60, label %12
12: ; preds = %6, %12
%13 = phi i64 [ %58, %12 ], [ 0, %6 ]
%14 = getelementptr inbounds double, double* %1, i64 %13
%15 = bitcast double* %14 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %15
%16 = getelementptr inbounds double, double* %14, i64 2
%17 = bitcast double* %16 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %17
%18 = getelementptr inbounds double, double* %0, i64 %13
%19 = bitcast double* %18 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %19
%20 = getelementptr inbounds double, double* %18, i64 2
%21 = bitcast double* %20 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %21
%22 = add nuw nsw i64 %13, 4
%23 = getelementptr inbounds double, double* %1, i64 %22
%24 = bitcast double* %23 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %24
%25 = getelementptr inbounds double, double* %23, i64 2
%26 = bitcast double* %25 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %26
%27 = getelementptr inbounds double, double* %0, i64 %22
%28 = bitcast double* %27 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %28
%29 = getelementptr inbounds double, double* %27, i64 2
%30 = bitcast double* %29 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %30
%31 = add nuw nsw i64 %13, 8
%32 = getelementptr inbounds double, double* %1, i64 %31
%33 = bitcast double* %32 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %33
%34 = getelementptr inbounds double, double* %32, i64 2
%35 = bitcast double* %34 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %35
%36 = getelementptr inbounds double, double* %0, i64 %31
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %37
%38 = getelementptr inbounds double, double* %36, i64 2
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %39
%40 = add nuw nsw i64 %13, 12
%41 = getelementptr inbounds double, double* %1, i64 %40
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %42
%43 = getelementptr inbounds double, double* %41, i64 2
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %44
%45 = getelementptr inbounds double, double* %0, i64 %40
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %46
%47 = getelementptr inbounds double, double* %45, i64 2
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %48
%49 = add nuw nsw i64 %13, 16
%50 = getelementptr inbounds double, double* %1, i64 %49
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %53
%54 = getelementptr inbounds double, double* %0, i64 %49
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %55
%56 = getelementptr inbounds double, double* %54, i64 2
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %57
%58 = add nuw nsw i64 %13, 20
%59 = icmp eq i64 %58, 1000
br i1 %59, label %78, label %12
60: ; preds = %6, %60
%61 = phi i64 [ %76, %60 ], [ 0, %6 ]
%62 = getelementptr inbounds double, double* %1, i64 %61
store double 0.000000e+00, double* %62
%63 = getelementptr inbounds double, double* %0, i64 %61
store double 0.000000e+00, double* %63
%64 = add nuw nsw i64 %61, 1
%65 = getelementptr inbounds double, double* %1, i64 %64
store double 0.000000e+00, double* %65
%66 = getelementptr inbounds double, double* %0, i64 %64
store double 0.000000e+00, double* %66
%67 = add nuw nsw i64 %61, 2
%68 = getelementptr inbounds double, double* %1, i64 %67
store double 0.000000e+00, double* %68
%69 = getelementptr inbounds double, double* %0, i64 %67
store double 0.000000e+00, double* %69
%70 = add nuw nsw i64 %61, 3
%71 = getelementptr inbounds double, double* %1, i64 %70
store double 0.000000e+00, double* %71
%72 = getelementptr inbounds double, double* %0, i64 %70
store double 0.000000e+00, double* %72
%73 = add nuw nsw i64 %61, 4
%74 = getelementptr inbounds double, double* %1, i64 %73
store double 0.000000e+00, double* %74
%75 = getelementptr inbounds double, double* %0, i64 %73
store double 0.000000e+00, double* %75
%76 = add nuw nsw i64 %61, 5
%77 = icmp eq i64 %76, 1000
br i1 %77, label %78, label %60
78: ; preds = %12, %60
br label %79
79: ; preds = %78, %108
%80 = phi i64 [ %109, %108 ], [ 0, %78 ]
%81 = getelementptr inbounds double, double* %0, i64 %80
%82 = getelementptr inbounds double, double* %1, i64 %80
br label %83
83: ; preds = %79, %83
%84 = phi i64 [ 0, %79 ], [ %106, %83 ]
%85 = getelementptr inbounds double, double* %4, i64 %84
%86 = load double, double* %85
%87 = getelementptr inbounds [1000 x double], [1000 x double]* %2, i64 %80, i64 %84
%88 = load double, double* %87
%89 = getelementptr inbounds double, double* %5, i64 %84
%90 = load double, double* %89
%91 = getelementptr inbounds [1000 x double], [1000 x double]* %3, i64 %80, i64 %84
%92 = load double, double* %91
%93 = fneg double %90
%94 = fmul double %92, %93
%95 = tail call double @llvm.fmuladd.f64(double %86, double %88, double %94)
%96 = load double, double* %81
%97 = fadd double %96, %95
store double %97, double* %81
%98 = load double, double* %89
%99 = load double, double* %87
%100 = load double, double* %85
%101 = load double, double* %91
%102 = fmul double %100, %101
%103 = tail call double @llvm.fmuladd.f64(double %98, double %99, double %102)
%104 = load double, double* %82
%105 = fadd double %104, %103
store double %105, double* %82
%106 = add nuw nsw i64 %84, 1
%107 = icmp eq i64 %106, 1000
br i1 %107, label %108, label %83
108: ; preds = %83
%109 = add nuw nsw i64 %80, 1
%110 = icmp eq i64 %109, 1000
br i1 %110, label %111, label %79
111: ; preds = %108
%112 = load double, double* @DBL_MIN
br label %113
113: ; preds = %113, %111
%114 = phi i64 [ 0, %111 ], [ %138, %113 ]
%115 = phi i32 [ 0, %111 ], [ %137, %113 ]
%116 = phi double [ %112, %111 ], [ %135, %113 ]
%117 = getelementptr inbounds double, double* %0, i64 %114
%118 = load double, double* %117
%119 = getelementptr inbounds double, double* %1, i64 %114
%120 = load double, double* %119
%121 = fmul double %120, %120
%122 = tail call double @llvm.fmuladd.f64(double %118, double %118, double %121)
%123 = fcmp ult double %122, %116
%124 = select i1 %123, double %116, double %122
%125 = trunc i64 %114 to i32
%126 = select i1 %123, i32 %115, i32 %125
%127 = or i64 %114, 1
%128 = getelementptr inbounds double, double* %0, i64 %127
%129 = load double, double* %128
%130 = getelementptr inbounds double, double* %1, i64 %127
%131 = load double, double* %130
%132 = fmul double %131, %131
%133 = tail call double @llvm.fmuladd.f64(double %129, double %129, double %132)
%134 = fcmp ult double %133, %124
%135 = select i1 %134, double %124, double %133
%136 = trunc i64 %127 to i32
%137 = select i1 %134, i32 %126, i32 %136
%138 = add nuw nsw i64 %114, 2
%139 = icmp eq i64 %138, 1000
br i1 %139, label %140, label %113
140: ; preds = %113
ret i32 %137
}