; LLVM IR from alexzheng42/sDMD :: src (ToolFunctions)

; 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.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }
%struct.DynamicStr = type { [4 x i32], [4 x double], [4 x double], %struct.HBStr, %struct.HBNeighborStr, %struct.InteractionEventStr }
%struct.HBStr = type { i32, i32, i8, i32 }
%struct.HBNeighborStr = type { [5 x i32], i32, i32 }
%struct.InteractionEventStr = type { i32, i64, i64, double, double, i32, i32 }

@tunlObj = external global %struct.TunnelStr, align 8

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @EnterTunnel(double noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [4 x double], align 16
  %7 = alloca double, align 8
  %8 = alloca [4 x double], align 16
  %9 = alloca [4 x double], align 16
  %10 = alloca [4 x double], align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store double %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  store ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 4), ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %184, %2
  %18 = load i32, ptr %15, align 4, !tbaa !11
  %19 = load i32, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 1), align 4, !tbaa !13
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %16, align 4
  br label %187

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

182:                                              ; preds = %22
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %187

183:                                              ; preds = %22
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %15, align 4, !tbaa !11
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %15, align 4, !tbaa !11
  br label %17, !llvm.loop !19

187:                                              ; preds = %182, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %188 = load i32, ptr %16, align 4
  switch i32 %188, label %190 [
    i32 2, label %189
  ]

189:                                              ; preds = %187
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %190

190:                                              ; preds = %189, %187
  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 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  %191 = load i32, ptr %3, align 4
  ret i32 %191
}

; Function Attrs: nounwind uwtable
declare dso_local double @FindPotWellWidth(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"TunnelStr", !12, i64 0, !12, i64 4, !10, i64 8, !10, i64 16, !15, i64 24}
!15 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!16 = !{!14, !10, i64 16}
!17 = !{!15, !10, i64 8}
!18 = !{!14, !10, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }

@tunlObj = external global %struct.TunnelStr, align 8

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @EnterTunnel(double noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 4), align 4, !tbaa !5
  %.not44 = icmp sgt i32 %3, 0
  br i1 %.not44, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  br label %8

5:                                                ; preds = %8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 4), align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %.not = icmp slt i64 %indvars.iv.next, %7
  br i1 %.not, label %8, label %._crit_edge.loopexit, !llvm.loop !12

8:                                                ; preds = %.lr.ph, %5
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %5 ]
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 16), align 8, !tbaa !14
  %10 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %11 = load double, ptr %10, align 8, !tbaa !15
  %12 = fmul double %11, 5.000000e-01
  %13 = fmul double %12, %12
  %14 = tail call double @FindPotWellWidth(ptr noundef nonnull getelementptr inbounds (i8, ptr @tunlObj, i64 24), ptr noundef %1)
  %15 = load ptr, ptr %4, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  %17 = load double, ptr %16, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %15, i64 40
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 8), align 8, !tbaa !18
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %22, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %22, i64 24
  %28 = load double, ptr %27, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %15, i64 64
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %15, i64 72
  %32 = load double, ptr %31, align 8, !tbaa !15
  %33 = tail call double @llvm.fmuladd.f64(double %30, double %0, double %17)
  %34 = tail call double @llvm.fmuladd.f64(double %32, double %0, double %19)
  %35 = fsub double %24, %24
  %36 = fsub double %33, %26
  %37 = fsub double %34, %28
  %38 = fmul double %36, %36
  %39 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %38)
  %40 = tail call double @llvm.fmuladd.f64(double %37, double %37, double %39)
  %41 = fadd double %14, %13
  %42 = fmul double %14, %13
  %43 = tail call double @sqrt(double noundef %42) #3
  %44 = tail call double @llvm.fmuladd.f64(double %43, double -2.000000e+00, double %41)
  %45 = fcmp ole double %40, %44
  br i1 %45, label %._crit_edge.loopexit, label %5

._crit_edge.loopexit:                             ; preds = %8, %5
  %46 = zext i1 %45 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.not.lcssa = phi i32 [ 0, %2 ], [ %46, %._crit_edge.loopexit ]
  ret i32 %.not.lcssa
}

; Function Attrs: nounwind uwtable
declare dso_local double @FindPotWellWidth(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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, !7, i64 4}
!6 = !{!"TunnelStr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!11, !10, i64 8}
!18 = !{!6, !10, i64 8}
!19 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass