#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;
  int lb, ub, lbp, ubp, lb2, ub2;
  register int lbv, ubv;
  lbp = 0;
  ubp = 1000 - 1;
#pragma omp parallel for private(lbv, ubv, t3)
  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)
    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 = 0;
  ;
  t_val = DBL_MIN;
  ;
  if (1000 >= 1) {
    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
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,-0x68(%rbp)
movl   $0x3e7,-0x6c(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jg     116a <calculate_output+0x6a>
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    1130 <calculate_output+0x30>
movl   $0x0,-0x68(%rbp)
movl   $0x3e7,-0x6c(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jg     12aa <calculate_output+0x1aa>
movl   $0x0,-0x5c(%rbp)
cmpl   $0x3e7,-0x5c(%rbp)
jg     1297 <calculate_output+0x197>
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    1191 <calculate_output+0x91>
jmp    129c <calculate_output+0x19c>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    117e <calculate_output+0x7e>
movl   $0x0,-0x3c(%rbp)
mov    0x2d28(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x3e7,-0x58(%rbp)
jg     1355 <calculate_output+0x255>
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     133b <calculate_output+0x23b>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    1341 <calculate_output+0x241>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12c8 <calculate_output+0x1c8>
mov    -0x3c(%rbp),%eax
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
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* %23
store i32 999, i32* %24
%29 = load i32, i32* %23
store i32 %29, i32* %19
br label %30
30: ; preds = %43, %6
%31 = load i32, i32* %19
%32 = load i32, i32* %24
%33 = icmp sle i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load double*, double** %8
%36 = load i32, i32* %19
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
store double 0.000000e+00, double* %38
%39 = load double*, double** %7
%40 = load i32, i32* %19
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
store double 0.000000e+00, double* %42
br label %43
43: ; preds = %34
%44 = load i32, i32* %19
%45 = add nsw i32 %44, 1
store i32 %45, i32* %19
br label %30
46: ; preds = %30
store i32 0, i32* %23
store i32 999, i32* %24
%47 = load i32, i32* %23
store i32 %47, i32* %19
br label %48
48: ; preds = %130, %46
%49 = load i32, i32* %19
%50 = load i32, i32* %24
%51 = icmp sle i32 %49, %50
br i1 %51, label %52, label %133
52: ; preds = %48
store i32 0, i32* %20
br label %53
53: ; preds = %126, %52
%54 = load i32, i32* %20
%55 = icmp sle i32 %54, 999
br i1 %55, label %56, label %129
56: ; preds = %53
%57 = load double*, double** %11
%58 = load i32, i32* %20
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
%61 = load double, double* %60
%62 = load [1000 x double]*, [1000 x double]** %9
%63 = load i32, i32* %19
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [1000 x double], [1000 x double]* %62, i64 %64
%66 = load i32, i32* %20
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1000 x double], [1000 x double]* %65, i64 0, i64 %67
%69 = load double, double* %68
%70 = load double*, double** %12
%71 = load i32, i32* %20
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
%74 = load double, double* %73
%75 = load [1000 x double]*, [1000 x double]** %10
%76 = load i32, i32* %19
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1000 x double], [1000 x double]* %75, i64 %77
%79 = load i32, i32* %20
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [1000 x double], [1000 x double]* %78, i64 0, i64 %80
%82 = load double, double* %81
%83 = fmul double %74, %82
%84 = fneg double %83
%85 = call double @llvm.fmuladd.f64(double %61, double %69, double %84)
%86 = load double*, double** %7
%87 = load i32, i32* %19
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, double* %86, i64 %88
%90 = load double, double* %89
%91 = fadd double %90, %85
store double %91, double* %89
%92 = load double*, double** %12
%93 = load i32, i32* %20
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = load [1000 x double]*, [1000 x double]** %9
%98 = load i32, i32* %19
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [1000 x double], [1000 x double]* %97, i64 %99
%101 = load i32, i32* %20
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [1000 x double], [1000 x double]* %100, i64 0, i64 %102
%104 = load double, double* %103
%105 = load double*, double** %11
%106 = load i32, i32* %20
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
%109 = load double, double* %108
%110 = load [1000 x double]*, [1000 x double]** %10
%111 = load i32, i32* %19
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [1000 x double], [1000 x double]* %110, i64 %112
%114 = load i32, i32* %20
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [1000 x double], [1000 x double]* %113, i64 0, i64 %115
%117 = load double, double* %116
%118 = fmul double %109, %117
%119 = call double @llvm.fmuladd.f64(double %96, double %104, double %118)
%120 = load double*, double** %8
%121 = load i32, i32* %19
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, double* %120, i64 %122
%124 = load double, double* %123
%125 = fadd double %124, %119
store double %125, double* %123
br label %126
126: ; preds = %56
%127 = load i32, i32* %20
%128 = add nsw i32 %127, 1
store i32 %128, i32* %20
br label %53
129: ; preds = %53
br label %130
130: ; preds = %129
%131 = load i32, i32* %19
%132 = add nsw i32 %131, 1
store i32 %132, i32* %19
br label %48
133: ; preds = %48
store i32 0, i32* %15
%134 = load double, double* @DBL_MIN
store double %134, double* %17
store i32 0, i32* %19
br label %135
135: ; preds = %171, %133
%136 = load i32, i32* %19
%137 = icmp sle i32 %136, 999
br i1 %137, label %138, label %174
138: ; preds = %135
%139 = load double*, double** %7
%140 = load i32, i32* %19
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, double* %139, i64 %141
%143 = load double, double* %142
%144 = load double*, double** %7
%145 = load i32, i32* %19
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, double* %144, i64 %146
%148 = load double, double* %147
%149 = load double*, double** %8
%150 = load i32, i32* %19
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %149, i64 %151
%153 = load double, double* %152
%154 = load double*, double** %8
%155 = load i32, i32* %19
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = fmul double %153, %158
%160 = call double @llvm.fmuladd.f64(double %143, double %148, double %159)
store double %160, double* %16
%161 = load double, double* %16
%162 = load double, double* %17
%163 = fcmp oge double %161, %162
br i1 %163, label %164, label %167
164: ; preds = %138
%165 = load double, double* %16
store double %165, double* %17
%166 = load i32, i32* %19
br label %169
167: ; preds = %138
%168 = load i32, i32* %15
br label %169
169: ; preds = %167, %164
%170 = phi i32 [ %166, %164 ], [ %168, %167 ]
store i32 %170, i32* %15
br label %171
171: ; preds = %169
%172 = load i32, i32* %19
%173 = add nsw i32 %172, 1
store i32 %173, i32* %19
br label %135
174: ; preds = %135
%175 = load i32, i32* %15
ret i32 %175
}

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
}