; LLVM IR from osmart/hole2 :: src/retired_routines (surface)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.base_line = type { i32, i32, i32, i32, i32, i32, ptr, ptr }

@max_dots = external dso_local global i32, align 4
@dots = external dso_local global [30000 x [7 x double]], align 16

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @neighbour(ptr noundef %0, double noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca [3 x double], align 16
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 1.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %24 = load i32, ptr @max_dots, align 4, !tbaa !11
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %445, %3
  %27 = load i32, ptr %21, align 4, !tbaa !11
  %28 = load i32, ptr @max_dots, align 4, !tbaa !11
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %448

30:                                               ; preds = %26
  %31 = load i32, ptr %21, align 4, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.base_line, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !13
  %35 = icmp eq i32 %31, %34
  br i1 %35, label %48, label %36

36:                                               ; preds = %30
  %37 = load i32, ptr %21, align 4, !tbaa !11
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.base_line, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = icmp eq i32 %37, %40
  br i1 %41, label %48, label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %21, align 4, !tbaa !11
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.base_line, ptr %44, i32 0, i32 3
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = icmp eq i32 %43, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %42, %36, %30
  br label %445

49:                                               ; preds = %42
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.base_line, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %53
  %55 = getelementptr inbounds [7 x double], ptr %54, i64 0, i64 0
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.base_line, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %60
  %62 = getelementptr inbounds [7 x double], ptr %61, i64 0, i64 0
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = fadd double %56, %63
  %65 = fmul double 5.000000e-01, %64
  %66 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  store double %65, ptr %66, align 16, !tbaa !9
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.base_line, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %70
  %72 = getelementptr inbounds [7 x double], ptr %71, i64 0, i64 1
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.base_line, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !15
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %77
  %79 = getelementptr inbounds [7 x double], ptr %78, i64 0, i64 1
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fadd double %73, %80
  %82 = fmul double 5.000000e-01, %81
  %83 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
  store double %82, ptr %83, align 8, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.base_line, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %87
  %89 = getelementptr inbounds [7 x double], ptr %88, i64 0, i64 2
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.base_line, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 4, !tbaa !15
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %94
  %96 = getelementptr inbounds [7 x double], ptr %95, i64 0, i64 2
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = fadd double %90, %97
  %99 = fmul double 5.000000e-01, %98
  %100 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 2
  store double %99, ptr %100, align 16, !tbaa !9
  %101 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  %102 = load double, ptr %101, align 16, !tbaa !9
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.base_line, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !16
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %106
  %108 = getelementptr inbounds [7 x double], ptr %107, i64 0, i64 0
  %109 = load double, ptr %108, align 8, !tbaa !9
  %110 = fsub double %102, %109
  %111 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  store double %110, ptr %111, align 16, !tbaa !9
  %112 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.base_line, ptr %114, i32 0, i32 3
  %116 = load i32, ptr %115, align 4, !tbaa !16
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %117
  %119 = getelementptr inbounds [7 x double], ptr %118, i64 0, i64 1
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = fsub double %113, %120
  %122 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  store double %121, ptr %122, align 8, !tbaa !9
  %123 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 2
  %124 = load double, ptr %123, align 16, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.base_line, ptr %125, i32 0, i32 3
  %127 = load i32, ptr %126, align 4, !tbaa !16
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %128
  %130 = getelementptr inbounds [7 x double], ptr %129, i64 0, i64 2
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = fsub double %124, %131
  %133 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  store double %132, ptr %133, align 16, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !11
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %135
  %137 = getelementptr inbounds [7 x double], ptr %136, i64 0, i64 0
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 0
  %140 = load double, ptr %139, align 16, !tbaa !9
  %141 = fsub double %138, %140
  %142 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  store double %141, ptr %142, align 16, !tbaa !9
  %143 = load i32, ptr %21, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %144
  %146 = getelementptr inbounds [7 x double], ptr %145, i64 0, i64 1
  %147 = load double, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 1
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = fsub double %147, %149
  %151 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
  store double %150, ptr %151, align 8, !tbaa !9
  %152 = load i32, ptr %21, align 4, !tbaa !11
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %153
  %155 = getelementptr inbounds [7 x double], ptr %154, i64 0, i64 2
  %156 = load double, ptr %155, align 8, !tbaa !9
  %157 = getelementptr inbounds [3 x double], ptr %9, i64 0, i64 2
  %158 = load double, ptr %157, align 16, !tbaa !9
  %159 = fsub double %156, %158
  %160 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
  store double %159, ptr %160, align 16, !tbaa !9
  %161 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %162 = load double, ptr %161, align 16, !tbaa !9
  %163 = call double @pow(double noundef %162, double noundef 2.000000e+00) #4
  %164 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = call double @pow(double noundef %165, double noundef 2.000000e+00) #4
  %167 = fadd double %163, %166
  %168 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
  %169 = load double, ptr %168, align 16, !tbaa !9
  %170 = call double @pow(double noundef %169, double noundef 2.000000e+00) #4
  %171 = fadd double %167, %170
  %172 = call double @sqrt(double noundef %171) #4
  store double %172, ptr %15, align 8, !tbaa !9
  %173 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %174 = load double, ptr %173, align 16, !tbaa !9
  %175 = call double @pow(double noundef %174, double noundef 2.000000e+00) #4
  %176 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = call double @pow(double noundef %177, double noundef 2.000000e+00) #4
  %179 = fadd double %175, %178
  %180 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  %181 = load double, ptr %180, align 16, !tbaa !9
  %182 = call double @pow(double noundef %181, double noundef 2.000000e+00) #4
  %183 = fadd double %179, %182
  %184 = call double @sqrt(double noundef %183) #4
  store double %184, ptr %16, align 8, !tbaa !9
  %185 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %186 = load double, ptr %185, align 16, !tbaa !9
  %187 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %188 = load double, ptr %187, align 16, !tbaa !9
  %189 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
  %190 = load double, ptr %189, align 8, !tbaa !9
  %191 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  %192 = load double, ptr %191, align 8, !tbaa !9
  %193 = fmul double %190, %192
  %194 = call double @llvm.fmuladd.f64(double %186, double %188, double %193)
  %195 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
  %196 = load double, ptr %195, align 16, !tbaa !9
  %197 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  %198 = load double, ptr %197, align 16, !tbaa !9
  %199 = call double @llvm.fmuladd.f64(double %196, double %198, double %194)
  store double %199, ptr %14, align 8, !tbaa !9
  %200 = load double, ptr %14, align 8, !tbaa !9
  %201 = load double, ptr %15, align 8, !tbaa !9
  %202 = load double, ptr %16, align 8, !tbaa !9
  %203 = fmul double %201, %202
  %204 = fdiv double %200, %203
  store double %204, ptr %18, align 8, !tbaa !9
  %205 = load double, ptr %18, align 8, !tbaa !9
  %206 = load double, ptr %5, align 8, !tbaa !9
  %207 = fcmp ogt double %205, %206
  br i1 %207, label %208, label %444

208:                                              ; preds = %49
  %209 = load i32, ptr %21, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %210
  %212 = getelementptr inbounds [7 x double], ptr %211, i64 0, i64 0
  %213 = load double, ptr %212, align 8, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.base_line, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !13
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %217
  %219 = getelementptr inbounds [7 x double], ptr %218, i64 0, i64 0
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = fsub double %213, %220
  %222 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  store double %221, ptr %222, align 16, !tbaa !9
  %223 = load i32, ptr %21, align 4, !tbaa !11
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %224
  %226 = getelementptr inbounds [7 x double], ptr %225, i64 0, i64 1
  %227 = load double, ptr %226, align 8, !tbaa !9
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.base_line, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 8, !tbaa !13
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %231
  %233 = getelementptr inbounds [7 x double], ptr %232, i64 0, i64 1
  %234 = load double, ptr %233, align 8, !tbaa !9
  %235 = fsub double %227, %234
  %236 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  store double %235, ptr %236, align 8, !tbaa !9
  %237 = load i32, ptr %21, align 4, !tbaa !11
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %238
  %240 = getelementptr inbounds [7 x double], ptr %239, i64 0, i64 2
  %241 = load double, ptr %240, align 8, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.base_line, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !13
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %245
  %247 = getelementptr inbounds [7 x double], ptr %246, i64 0, i64 2
  %248 = load double, ptr %247, align 8, !tbaa !9
  %249 = fsub double %241, %248
  %250 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  store double %249, ptr %250, align 16, !tbaa !9
  %251 = load i32, ptr %21, align 4, !tbaa !11
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %252
  %254 = getelementptr inbounds [7 x double], ptr %253, i64 0, i64 0
  %255 = load double, ptr %254, align 8, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.base_line, ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 4, !tbaa !15
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %259
  %261 = getelementptr inbounds [7 x double], ptr %260, i64 0, i64 0
  %262 = load double, ptr %261, align 8, !tbaa !9
  %263 = fsub double %255, %262
  %264 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  store double %263, ptr %264, align 16, !tbaa !9
  %265 = load i32, ptr %21, align 4, !tbaa !11
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %266
  %268 = getelementptr inbounds [7 x double], ptr %267, i64 0, i64 1
  %269 = load double, ptr %268, align 8, !tbaa !9
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.base_line, ptr %270, i32 0, i32 1
  %272 = load i32, ptr %271, align 4, !tbaa !15
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %273
  %275 = getelementptr inbounds [7 x double], ptr %274, i64 0, i64 1
  %276 = load double, ptr %275, align 8, !tbaa !9
  %277 = fsub double %269, %276
  %278 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  store double %277, ptr %278, align 8, !tbaa !9
  %279 = load i32, ptr %21, align 4, !tbaa !11
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %280
  %282 = getelementptr inbounds [7 x double], ptr %281, i64 0, i64 2
  %283 = load double, ptr %282, align 8, !tbaa !9
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.base_line, ptr %284, i32 0, i32 1
  %286 = load i32, ptr %285, align 4, !tbaa !15
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %287
  %289 = getelementptr inbounds [7 x double], ptr %288, i64 0, i64 2
  %290 = load double, ptr %289, align 8, !tbaa !9
  %291 = fsub double %283, %290
  %292 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  store double %291, ptr %292, align 16, !tbaa !9
  %293 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %294 = load double, ptr %293, align 16, !tbaa !9
  %295 = call double @pow(double noundef %294, double noundef 2.000000e+00) #4
  %296 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %297 = load double, ptr %296, align 8, !tbaa !9
  %298 = call double @pow(double noundef %297, double noundef 2.000000e+00) #4
  %299 = fadd double %295, %298
  %300 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %301 = load double, ptr %300, align 16, !tbaa !9
  %302 = call double @pow(double noundef %301, double noundef 2.000000e+00) #4
  %303 = fadd double %299, %302
  %304 = call double @sqrt(double noundef %303) #4
  store double %304, ptr %12, align 8, !tbaa !9
  %305 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %306 = load double, ptr %305, align 16, !tbaa !9
  %307 = call double @pow(double noundef %306, double noundef 2.000000e+00) #4
  %308 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %309 = load double, ptr %308, align 8, !tbaa !9
  %310 = call double @pow(double noundef %309, double noundef 2.000000e+00) #4
  %311 = fadd double %307, %310
  %312 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %313 = load double, ptr %312, align 16, !tbaa !9
  %314 = call double @pow(double noundef %313, double noundef 2.000000e+00) #4
  %315 = fadd double %311, %314
  %316 = call double @sqrt(double noundef %315) #4
  store double %316, ptr %13, align 8, !tbaa !9
  %317 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %318 = load double, ptr %317, align 16, !tbaa !9
  %319 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %320 = load double, ptr %319, align 16, !tbaa !9
  %321 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %322 = load double, ptr %321, align 8, !tbaa !9
  %323 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %324 = load double, ptr %323, align 8, !tbaa !9
  %325 = fmul double %322, %324
  %326 = call double @llvm.fmuladd.f64(double %318, double %320, double %325)
  %327 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %328 = load double, ptr %327, align 16, !tbaa !9
  %329 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %330 = load double, ptr %329, align 16, !tbaa !9
  %331 = call double @llvm.fmuladd.f64(double %328, double %330, double %326)
  store double %331, ptr %14, align 8, !tbaa !9
  %332 = load double, ptr %14, align 8, !tbaa !9
  %333 = load double, ptr %12, align 8, !tbaa !9
  %334 = load double, ptr %13, align 8, !tbaa !9
  %335 = fmul double %333, %334
  %336 = fdiv double %332, %335
  store double %336, ptr %17, align 8, !tbaa !9
  %337 = load double, ptr %17, align 8, !tbaa !9
  %338 = load double, ptr %19, align 8, !tbaa !9
  %339 = fcmp olt double %337, %338
  br i1 %339, label %340, label %443

340:                                              ; preds = %208
  %341 = load i32, ptr %21, align 4, !tbaa !11
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %342
  %344 = getelementptr inbounds [7 x double], ptr %343, i64 0, i64 0
  %345 = load double, ptr %344, align 8, !tbaa !9
  %346 = load ptr, ptr %4, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.base_line, ptr %346, i32 0, i32 0
  %348 = load i32, ptr %347, align 8, !tbaa !13
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %349
  %351 = getelementptr inbounds [7 x double], ptr %350, i64 0, i64 0
  %352 = load double, ptr %351, align 8, !tbaa !9
  %353 = fsub double %345, %352
  %354 = call double @pow(double noundef %353, double noundef 2.000000e+00) #4
  %355 = load i32, ptr %21, align 4, !tbaa !11
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %356
  %358 = getelementptr inbounds [7 x double], ptr %357, i64 0, i64 1
  %359 = load double, ptr %358, align 8, !tbaa !9
  %360 = load ptr, ptr %4, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.base_line, ptr %360, i32 0, i32 0
  %362 = load i32, ptr %361, align 8, !tbaa !13
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %363
  %365 = getelementptr inbounds [7 x double], ptr %364, i64 0, i64 1
  %366 = load double, ptr %365, align 8, !tbaa !9
  %367 = fsub double %359, %366
  %368 = call double @pow(double noundef %367, double noundef 2.000000e+00) #4
  %369 = fadd double %354, %368
  %370 = load i32, ptr %21, align 4, !tbaa !11
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %371
  %373 = getelementptr inbounds [7 x double], ptr %372, i64 0, i64 2
  %374 = load double, ptr %373, align 8, !tbaa !9
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.base_line, ptr %375, i32 0, i32 0
  %377 = load i32, ptr %376, align 8, !tbaa !13
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %378
  %380 = getelementptr inbounds [7 x double], ptr %379, i64 0, i64 2
  %381 = load double, ptr %380, align 8, !tbaa !9
  %382 = fsub double %374, %381
  %383 = call double @pow(double noundef %382, double noundef 2.000000e+00) #4
  %384 = fadd double %369, %383
  store double %384, ptr %22, align 8, !tbaa !9
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.base_line, ptr %385, i32 0, i32 0
  %387 = load i32, ptr %386, align 8, !tbaa !13
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %388
  %390 = getelementptr inbounds [7 x double], ptr %389, i64 0, i64 0
  %391 = load double, ptr %390, align 8, !tbaa !9
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.base_line, ptr %392, i32 0, i32 1
  %394 = load i32, ptr %393, align 4, !tbaa !15
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %395
  %397 = getelementptr inbounds [7 x double], ptr %396, i64 0, i64 0
  %398 = load double, ptr %397, align 8, !tbaa !9
  %399 = fsub double %391, %398
  %400 = call double @pow(double noundef %399, double noundef 2.000000e+00) #4
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.base_line, ptr %401, i32 0, i32 0
  %403 = load i32, ptr %402, align 8, !tbaa !13
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %404
  %406 = getelementptr inbounds [7 x double], ptr %405, i64 0, i64 1
  %407 = load double, ptr %406, align 8, !tbaa !9
  %408 = load ptr, ptr %4, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.base_line, ptr %408, i32 0, i32 1
  %410 = load i32, ptr %409, align 4, !tbaa !15
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %411
  %413 = getelementptr inbounds [7 x double], ptr %412, i64 0, i64 1
  %414 = load double, ptr %413, align 8, !tbaa !9
  %415 = fsub double %407, %414
  %416 = call double @pow(double noundef %415, double noundef 2.000000e+00) #4
  %417 = fadd double %400, %416
  %418 = load ptr, ptr %4, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.base_line, ptr %418, i32 0, i32 0
  %420 = load i32, ptr %419, align 8, !tbaa !13
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %421
  %423 = getelementptr inbounds [7 x double], ptr %422, i64 0, i64 2
  %424 = load double, ptr %423, align 8, !tbaa !9
  %425 = load ptr, ptr %4, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.base_line, ptr %425, i32 0, i32 1
  %427 = load i32, ptr %426, align 4, !tbaa !15
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %428
  %430 = getelementptr inbounds [7 x double], ptr %429, i64 0, i64 2
  %431 = load double, ptr %430, align 8, !tbaa !9
  %432 = fsub double %424, %431
  %433 = call double @pow(double noundef %432, double noundef 2.000000e+00) #4
  %434 = fadd double %417, %433
  store double %434, ptr %23, align 8, !tbaa !9
  %435 = load double, ptr %22, align 8, !tbaa !9
  %436 = load double, ptr %23, align 8, !tbaa !9
  %437 = fmul double 9.000000e+00, %436
  %438 = fcmp ogt double %435, %437
  br i1 %438, label %439, label %440

439:                                              ; preds = %340
  br label %445

440:                                              ; preds = %340
  %441 = load double, ptr %17, align 8, !tbaa !9
  store double %441, ptr %19, align 8, !tbaa !9
  %442 = load i32, ptr %21, align 4, !tbaa !11
  store i32 %442, ptr %20, align 4, !tbaa !11
  br label %443

443:                                              ; preds = %440, %208
  br label %444

444:                                              ; preds = %443, %49
  br label %445

445:                                              ; preds = %444, %439, %48
  %446 = load i32, ptr %21, align 4, !tbaa !11
  %447 = add nsw i32 %446, 1
  store i32 %447, ptr %21, align 4, !tbaa !11
  br label %26, !llvm.loop !17

448:                                              ; preds = %26
  %449 = load i32, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  ret i32 %449
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"base_line", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !12, i64 12}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@max_dots = external dso_local local_unnamed_addr global i32, align 4
@dots = external dso_local local_unnamed_addr global [30000 x [7 x double]], align 16

; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @neighbour(ptr nocapture noundef readonly %0, double noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = load i32, ptr @max_dots, align 4, !tbaa !5
  %5 = add nsw i32 %4, 1
  %6 = icmp sgt i32 %4, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %7 = load i32, ptr %0, align 8, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = sext i32 %7 to i64
  %11 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %10
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = getelementptr inbounds i8, ptr %11, i64 16
  %14 = zext i32 %7 to i64
  %wide.trip.count = zext nneg i32 %4 to i64
  %15 = sext i32 %7 to i64
  %16 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %15
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = getelementptr inbounds i8, ptr %16, i64 16
  br label %19

19:                                               ; preds = %.lr.ph, %154
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %154 ]
  %.0114 = phi double [ 1.000000e+00, %.lr.ph ], [ %.1, %154 ]
  %.086112 = phi i32 [ %5, %.lr.ph ], [ %.187, %154 ]
  %20 = icmp eq i64 %indvars.iv, %14
  br i1 %20, label %154, label %21

21:                                               ; preds = %19
  %22 = load i32, ptr %8, align 4, !tbaa !12
  %23 = zext i32 %22 to i64
  %24 = icmp eq i64 %indvars.iv, %23
  br i1 %24, label %154, label %25

25:                                               ; preds = %21
  %26 = load i32, ptr %9, align 4, !tbaa !13
  %27 = zext i32 %26 to i64
  %28 = icmp eq i64 %indvars.iv, %27
  br i1 %28, label %154, label %29

29:                                               ; preds = %25
  %30 = load double, ptr %11, align 8, !tbaa !14
  %31 = sext i32 %22 to i64
  %32 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = fadd double %30, %33
  %35 = fmul double %34, 5.000000e-01
  %36 = load double, ptr %12, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %32, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fadd double %36, %38
  %40 = fmul double %39, 5.000000e-01
  %41 = load double, ptr %13, align 8, !tbaa !14
  %42 = getelementptr inbounds i8, ptr %32, i64 16
  %43 = load double, ptr %42, align 8, !tbaa !14
  %44 = fadd double %41, %43
  %45 = fmul double %44, 5.000000e-01
  %46 = sext i32 %26 to i64
  %47 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %47, i64 8
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds i8, ptr %47, i64 16
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds i8, ptr %53, i64 8
  %56 = load double, ptr %55, align 8, !tbaa !14
  %57 = getelementptr inbounds i8, ptr %53, i64 16
  %58 = load double, ptr %57, align 8, !tbaa !14
  %59 = insertelement <2 x double> poison, double %35, i64 0
  %60 = insertelement <2 x double> %59, double %54, i64 1
  %61 = insertelement <2 x double> poison, double %48, i64 0
  %62 = insertelement <2 x double> %61, double %35, i64 1
  %63 = fsub <2 x double> %60, %62
  %64 = insertelement <2 x double> poison, double %40, i64 0
  %65 = insertelement <2 x double> %64, double %56, i64 1
  %66 = insertelement <2 x double> poison, double %50, i64 0
  %67 = insertelement <2 x double> %66, double %40, i64 1
  %68 = fsub <2 x double> %65, %67
  %69 = insertelement <2 x double> poison, double %45, i64 0
  %70 = insertelement <2 x double> %69, double %58, i64 1
  %71 = insertelement <2 x double> poison, double %52, i64 0
  %72 = insertelement <2 x double> %71, double %45, i64 1
  %73 = fsub <2 x double> %70, %72
  %74 = fmul <2 x double> %63, %63
  %75 = fmul <2 x double> %68, %68
  %76 = fadd <2 x double> %74, %75
  %77 = fmul <2 x double> %73, %73
  %78 = fadd <2 x double> %76, %77
  %79 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %78)
  %shift = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %80 = fmul <2 x double> %68, %shift
  %81 = extractelement <2 x double> %80, i64 0
  %82 = extractelement <2 x double> %63, i64 0
  %83 = extractelement <2 x double> %63, i64 1
  %84 = tail call double @llvm.fmuladd.f64(double %83, double %82, double %81)
  %85 = extractelement <2 x double> %73, i64 0
  %86 = extractelement <2 x double> %73, i64 1
  %87 = tail call double @llvm.fmuladd.f64(double %86, double %85, double %84)
  %shift116 = shufflevector <2 x double> %79, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %88 = fmul <2 x double> %79, %shift116
  %89 = extractelement <2 x double> %88, i64 0
  %90 = fdiv double %87, %89
  %91 = fcmp ogt double %90, %1
  br i1 %91, label %92, label %154

92:                                               ; preds = %29
  %93 = load double, ptr %16, align 8, !tbaa !14
  %94 = load double, ptr %17, align 8, !tbaa !14
  %95 = load double, ptr %18, align 8, !tbaa !14
  %96 = insertelement <2 x double> poison, double %54, i64 0
  %97 = shufflevector <2 x double> %96, <2 x double> poison, <2 x i32> zeroinitializer
  %98 = insertelement <2 x double> poison, double %93, i64 0
  %99 = insertelement <2 x double> %98, double %33, i64 1
  %100 = fsub <2 x double> %97, %99
  %101 = insertelement <2 x double> poison, double %56, i64 0
  %102 = shufflevector <2 x double> %101, <2 x double> poison, <2 x i32> zeroinitializer
  %103 = insertelement <2 x double> poison, double %94, i64 0
  %104 = insertelement <2 x double> %103, double %38, i64 1
  %105 = fsub <2 x double> %102, %104
  %106 = insertelement <2 x double> poison, double %58, i64 0
  %107 = shufflevector <2 x double> %106, <2 x double> poison, <2 x i32> zeroinitializer
  %108 = insertelement <2 x double> poison, double %95, i64 0
  %109 = insertelement <2 x double> %108, double %43, i64 1
  %110 = fsub <2 x double> %107, %109
  %111 = fmul <2 x double> %100, %100
  %112 = fmul <2 x double> %105, %105
  %113 = fadd <2 x double> %111, %112
  %114 = fmul <2 x double> %110, %110
  %115 = fadd <2 x double> %113, %114
  %116 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %115)
  %shift117 = shufflevector <2 x double> %105, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %117 = fmul <2 x double> %105, %shift117
  %118 = extractelement <2 x double> %117, i64 0
  %119 = extractelement <2 x double> %100, i64 0
  %120 = extractelement <2 x double> %100, i64 1
  %121 = tail call double @llvm.fmuladd.f64(double %119, double %120, double %118)
  %122 = extractelement <2 x double> %110, i64 0
  %123 = extractelement <2 x double> %110, i64 1
  %124 = tail call double @llvm.fmuladd.f64(double %122, double %123, double %121)
  %shift118 = shufflevector <2 x double> %116, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %125 = fmul <2 x double> %116, %shift118
  %126 = extractelement <2 x double> %125, i64 0
  %127 = fdiv double %124, %126
  %128 = fcmp olt double %127, %.0114
  br i1 %128, label %129, label %154

129:                                              ; preds = %92
  %130 = insertelement <2 x double> %96, double %58, i64 1
  %131 = insertelement <2 x double> poison, double %30, i64 0
  %132 = insertelement <2 x double> %131, double %41, i64 1
  %133 = fsub <2 x double> %130, %132
  %134 = insertelement <2 x double> %101, double %36, i64 1
  %135 = insertelement <2 x double> poison, double %36, i64 0
  %136 = insertelement <2 x double> %135, double %38, i64 1
  %137 = fsub <2 x double> %134, %136
  %138 = fmul <2 x double> %133, %133
  %139 = insertelement <2 x double> poison, double %33, i64 0
  %140 = insertelement <2 x double> %139, double %43, i64 1
  %141 = fsub <2 x double> %132, %140
  %142 = fmul <2 x double> %141, %141
  %143 = fmul <2 x double> %137, %137
  %144 = shufflevector <2 x double> %138, <2 x double> %142, <2 x i32> <i32 0, i32 2>
  %145 = fadd <2 x double> %144, %143
  %146 = shufflevector <2 x double> %138, <2 x double> %142, <2 x i32> <i32 1, i32 3>
  %147 = fadd <2 x double> %145, %146
  %148 = extractelement <2 x double> %147, i64 1
  %149 = fmul double %148, 9.000000e+00
  %150 = extractelement <2 x double> %147, i64 0
  %151 = fcmp ogt double %150, %149
  br i1 %151, label %154, label %152

152:                                              ; preds = %129
  %153 = trunc nuw nsw i64 %indvars.iv to i32
  br label %154

154:                                              ; preds = %29, %152, %92, %129, %19, %21, %25
  %.187 = phi i32 [ %.086112, %19 ], [ %.086112, %21 ], [ %.086112, %25 ], [ %.086112, %129 ], [ %153, %152 ], [ %.086112, %92 ], [ %.086112, %29 ]
  %.1 = phi double [ %.0114, %19 ], [ %.0114, %21 ], [ %.0114, %25 ], [ %.0114, %129 ], [ %127, %152 ], [ %.0114, %92 ], [ %.0114, %29 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %19, !llvm.loop !16

._crit_edge:                                      ; preds = %154, %3
  %.086.lcssa = phi i32 [ %5, %3 ], [ %.187, %154 ]
  ret i32 %.086.lcssa
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #2

attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"base_line", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !11, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 4}
!13 = !{!10, !6, i64 12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass