; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (point_parallel_hash_grid_searcher3)

; 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"

%"class.jet::Vector" = type { double, double, double }
%"class.jet::PointParallelHashGridSearcher3" = type { %"class.jet::PointNeighborSearcher3", double, %"class.jet::Point", %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0" }
%"class.jet::PointNeighborSearcher3" = type { %"class.jet::Serializable" }
%"class.jet::Serializable" = type { ptr }
%"class.jet::Point" = type { i64, i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<jet::Vector<double, 3>, std::allocator<jet::Vector<double, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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: mustprogress uwtable
define dso_local void @_ZNK3jet30PointParallelHashGridSearcher318forEachNearbyPointERKNS_6VectorIdLm3EEEdRKSt8functionIFvmS4_EE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [8 x i64], align 16
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.jet::Vector", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 0
  call void @_ZNK3jet30PointParallelHashGridSearcher313getNearbyKeysERKNS_6VectorIdLm3EEEPm(ptr noundef nonnull align 8 dereferenceable(160) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = load double, ptr %7, align 8, !tbaa !9
  %24 = load double, ptr %7, align 8, !tbaa !9
  %25 = fmul double %23, %24
  store double %25, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %87, %4
  %27 = load i32, ptr %11, align 4, !tbaa !11
  %28 = icmp slt i32 %27, 8
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %90

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %31 = load i32, ptr %11, align 4, !tbaa !11
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 %32
  %34 = load i64, ptr %33, align 8, !tbaa !13
  store i64 %34, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %35 = getelementptr inbounds %"class.jet::PointParallelHashGridSearcher3", ptr %20, i32 0, i32 5
  %36 = load i64, ptr %13, align 8, !tbaa !13
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36) #4
  %38 = load i64, ptr %37, align 8, !tbaa !13
  store i64 %38, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %39 = getelementptr inbounds %"class.jet::PointParallelHashGridSearcher3", ptr %20, i32 0, i32 6
  %40 = load i64, ptr %13, align 8, !tbaa !13
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %40) #4
  %42 = load i64, ptr %41, align 8, !tbaa !13
  store i64 %42, ptr %15, align 8, !tbaa !13
  %43 = load i64, ptr %14, align 8, !tbaa !13
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %45, label %46

45:                                               ; preds = %30
  store i32 4, ptr %12, align 4
  br label %84

46:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %47 = load i64, ptr %14, align 8, !tbaa !13
  store i64 %47, ptr %16, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %80, %46
  %49 = load i64, ptr %16, align 8, !tbaa !13
  %50 = load i64, ptr %15, align 8, !tbaa !13
  %51 = icmp ult i64 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %83

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #4
  %54 = getelementptr inbounds %"class.jet::PointParallelHashGridSearcher3", ptr %20, i32 0, i32 3
  %55 = load i64, ptr %16, align 8, !tbaa !13
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %55) #4
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3jetmiIdEENS_6VectorIT_Lm3EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %57)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %58 = call noundef double @_ZNK3jet6VectorIdLm3EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  store double %58, ptr %18, align 8, !tbaa !9
  %59 = load double, ptr %18, align 8, !tbaa !9
  %60 = load double, ptr %10, align 8, !tbaa !9
  %61 = fcmp ole double %59, %60
  br i1 %61, label %62, label %79

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %63 = load double, ptr %18, align 8, !tbaa !9
  %64 = fcmp ogt double %63, 0.000000e+00
  br i1 %64, label %65, label %70

65:                                               ; preds = %62
  %66 = load double, ptr %18, align 8, !tbaa !9
  %67 = call double @sqrt(double noundef %66) #4
  store double %67, ptr %19, align 8, !tbaa !9
  %68 = load double, ptr %19, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEdVEd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef %68)
  br label %70

70:                                               ; preds = %65, %62
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.jet::PointParallelHashGridSearcher3", ptr %20, i32 0, i32 7
  %73 = load i64, ptr %16, align 8, !tbaa !13
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %73) #4
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = getelementptr inbounds %"class.jet::PointParallelHashGridSearcher3", ptr %20, i32 0, i32 3
  %77 = load i64, ptr %16, align 8, !tbaa !13
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #4
  call void @_ZNKSt8functionIFvmRKN3jet6VectorIdLm3EEEEEclEmS4_(ptr noundef nonnull align 8 dereferenceable(32) %71, i64 noundef %75, ptr noundef nonnull align 8 dereferenceable(24) %78)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %79

79:                                               ; preds = %70, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %16, align 8, !tbaa !13
  %82 = add i64 %81, 1
  store i64 %82, ptr %16, align 8, !tbaa !13
  br label %48, !llvm.loop !15

83:                                               ; preds = %52
  store i32 0, ptr %12, align 4
  br label %84

84:                                               ; preds = %83, %45
  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
  %85 = load i32, ptr %12, align 4
  switch i32 %85, label %91 [
    i32 0, label %86
    i32 4, label %87
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86, %84
  %88 = load i32, ptr %11, align 4, !tbaa !11
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !11
  br label %26, !llvm.loop !17

90:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  ret void

91:                                               ; preds = %84
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet30PointParallelHashGridSearcher313getNearbyKeysERKNS_6VectorIdLm3EEEPm(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jetmiIdEENS_6VectorIT_Lm3EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm3EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEdVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvmRKN3jet6VectorIdLm3EEEEEclEmS4_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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"

%"class.jet::Vector" = type { double, double, double }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet30PointParallelHashGridSearcher318forEachNearbyPointERKNS_6VectorIdLm3EEEdRKSt8functionIFvmS4_EE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3) unnamed_addr #1 align 2 {
  %5 = alloca [8 x i64], align 16
  %6 = alloca %"class.jet::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @_ZNK3jet30PointParallelHashGridSearcher313getNearbyKeysERKNS_6VectorIdLm3EEEPm(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %5)
  %7 = fmul double %2, %2
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %0, i64 136
  br label %13

12:                                               ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  ret void

13:                                               ; preds = %4, %.loopexit
  %indvars.iv = phi i64 [ 0, %4 ], [ %indvars.iv.next, %.loopexit ]
  %14 = getelementptr inbounds [8 x i64], ptr %5, i64 0, i64 %indvars.iv
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %15) #4
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %15) #4
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = icmp ne i64 %17, -1
  %21 = icmp ult i64 %17, %19
  %or.cond = select i1 %20, i1 %21, i1 false
  br i1 %or.cond, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %13, %34
  %.02326 = phi i64 [ %35, %34 ], [ %17, %13 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.02326) #4
  call void @_ZN3jetmiIdEENS_6VectorIT_Lm3EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %23 = call noundef double @_ZNK3jet6VectorIdLm3EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %24 = fcmp ugt double %23, %7
  br i1 %24, label %34, label %25

25:                                               ; preds = %.lr.ph
  %26 = fcmp ogt double %23, 0.000000e+00
  br i1 %26, label %27, label %30

27:                                               ; preds = %25
  %28 = call double @sqrt(double noundef %23) #4
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEdVEd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %28)
  br label %30

30:                                               ; preds = %27, %25
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.02326) #4
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.02326) #4
  call void @_ZNKSt8functionIFvmRKN3jet6VectorIdLm3EEEEEclEmS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
  br label %34

34:                                               ; preds = %30, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  %35 = add i64 %.02326, 1
  %exitcond.not = icmp eq i64 %35, %19
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !9

.loopexit:                                        ; preds = %34, %13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond29.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond29.not, label %12, label %13, !llvm.loop !11
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3jet30PointParallelHashGridSearcher313getNearbyKeysERKNS_6VectorIdLm3EEEPm(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jetmiIdEENS_6VectorIT_Lm3EEERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN3jet6VectorIdLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm3EE13lengthSquaredEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3jet6VectorIdLm3EEdVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvmRKN3jet6VectorIdLm3EEEEEclEmS4_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass