; LLVM IR from iksha-rudra/Computational-Geometry :: CGAlgorithms/DataStructures/minheap.ll (ZN7MinHeap6insertE5PointdS0_)

; 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.Point = type { i32, i32 }
%"struct.MinHeap::Node" = type { %class.Point, double }
%class.MinHeap = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_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: mustprogress nounwind uwtable
declare dso_local void @_ZN7MinHeap4NodeC2E5Pointi(ptr noundef nonnull align 8 dereferenceable(16), i64, i32 noundef) unnamed_addr #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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
declare dso_local void @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7MinHeap11decreaseKeyEid(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28) %0, i64 %1, double noundef %2, i64 %3) #3 align 2 {
  %5 = alloca %class.Point, align 4
  %6 = alloca %class.Point, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.Point, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.MinHeap::Node", align 8
  %18 = alloca %class.Point, align 4
  store i64 %1, ptr %5, align 4
  store i64 %3, ptr %6, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %20

20:                                               ; preds = %82, %4
  %21 = load i32, ptr %10, align 4, !tbaa !13
  %22 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !15
  %24 = icmp slt i32 %21, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %20
  store i32 2, ptr %11, align 4
  br label %85

26:                                               ; preds = %20
  %27 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 0
  %28 = load i32, ptr %10, align 4, !tbaa !13
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
  %31 = getelementptr inbounds %"struct.MinHeap::Node", ptr %30, i32 0, i32 1
  %32 = load double, ptr %31, align 8, !tbaa !21
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = fcmp oeq double %32, %33
  br i1 %34, label %35, label %81

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %36 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %37 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %38 = sub nsw i32 %36, %37
  store i32 %38, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %39 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %40 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %41 = sub nsw i32 %39, %40
  store i32 %41, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %42 = load i32, ptr %12, align 4, !tbaa !13
  %43 = load i32, ptr %12, align 4, !tbaa !13
  %44 = mul nsw i32 %42, %43
  %45 = load i32, ptr %13, align 4, !tbaa !13
  %46 = load i32, ptr %13, align 4, !tbaa !13
  %47 = mul nsw i32 %45, %46
  %48 = add nsw i32 %44, %47
  %49 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %48)
  %50 = fptosi double %49 to i32
  store i32 %50, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %51 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 0
  %52 = load i32, ptr %10, align 4, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %53) #6
  %55 = getelementptr inbounds %"struct.MinHeap::Node", ptr %54, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %55, i64 8, i1 false), !tbaa.struct !24
  %56 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %57 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %58 = sub nsw i32 %56, %57
  store i32 %58, ptr %12, align 4, !tbaa !13
  %59 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %60 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %61 = sub nsw i32 %59, %60
  store i32 %61, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %62 = load i32, ptr %12, align 4, !tbaa !13
  %63 = load i32, ptr %12, align 4, !tbaa !13
  %64 = mul nsw i32 %62, %63
  %65 = load i32, ptr %13, align 4, !tbaa !13
  %66 = load i32, ptr %13, align 4, !tbaa !13
  %67 = mul nsw i32 %65, %66
  %68 = add nsw i32 %64, %67
  %69 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %68)
  %70 = fptosi double %69 to i32
  store i32 %70, ptr %16, align 4, !tbaa !13
  %71 = load i32, ptr %14, align 4, !tbaa !13
  %72 = load i32, ptr %16, align 4, !tbaa !13
  %73 = icmp sgt i32 %71, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %35
  %75 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 0
  %76 = load i32, ptr %10, align 4, !tbaa !13
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #6
  %79 = getelementptr inbounds %"struct.MinHeap::Node", ptr %78, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !24
  br label %80

80:                                               ; preds = %74, %35
  store i8 1, ptr %9, align 1, !tbaa !11
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %85

81:                                               ; preds = %26
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %10, align 4, !tbaa !13
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %10, align 4, !tbaa !13
  br label %20, !llvm.loop !25

85:                                               ; preds = %80, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %86

86:                                               ; preds = %85
  %87 = load i8, ptr %9, align 1, !tbaa !11, !range !27, !noundef !28
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  store i32 1, ptr %11, align 4
  br label %101

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !24
  %91 = load i64, ptr %18, align 4
  call void @_ZN7MinHeap4NodeC2E5Pointi(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 %91, i32 noundef 2147483647)
  %92 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 0
  call void @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %93 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !15
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 8, !tbaa !15
  %96 = getelementptr inbounds %class.MinHeap, ptr %19, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !15
  %98 = sub nsw i32 %97, 1
  %99 = load double, ptr %8, align 8, !tbaa !9
  %100 = call noundef zeroext i1 @_ZN7MinHeap11decreaseKeyEid(ptr noundef nonnull align 8 dereferenceable(28) %19, i32 noundef %98, double noundef %99)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  store i32 0, ptr %11, align 4
  br label %101

101:                                              ; preds = %90, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  %102 = load i32, ptr %11, align 4
  switch i32 %102, label %104 [
    i32 0, label %103
    i32 1, label %103
  ]

103:                                              ; preds = %101, %101
  ret void

104:                                              ; preds = %101
  unreachable
}

declare noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8)) #4

declare noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #5 = { inlinehint 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 #6 = { 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 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 24}
!16 = !{!"_ZTS7MinHeap", !17, i64 0, !14, i64 24}
!17 = !{!"_ZTSSt6vectorIN7MinHeap4NodeESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !10, i64 8}
!22 = !{!"_ZTSN7MinHeap4NodeE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTS5Point", !14, i64 0, !14, i64 4}
!24 = !{i64 0, i64 4, !13, i64 4, i64 4, !13}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{i8 0, i8 2}
!28 = !{}


; 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.Point = type { i32, i32 }
%"struct.MinHeap::Node" = type { %class.Point, 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 nounwind uwtable
declare dso_local void @_ZN7MinHeap4NodeC2E5Pointi(ptr noundef nonnull align 8 dereferenceable(16), i64, i32 noundef) unnamed_addr #1 align 2

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

; 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
declare dso_local void @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7MinHeap11decreaseKeyEid(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28) %0, i64 %1, double noundef %2, i64 %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %class.Point, align 8
  %6 = alloca %class.Point, align 8
  %7 = alloca %class.Point, align 8
  %8 = alloca %"struct.MinHeap::Node", align 8
  store i64 %1, ptr %5, align 8
  store i64 %3, ptr %6, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %.critedge

12:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr %9, align 8, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %.critedge, !llvm.loop !15

.lr.ph:                                           ; preds = %4, %12
  %indvars.iv = phi i64 [ %indvars.iv.next, %12 ], [ 0, %4 ]
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load double, ptr %17, align 8, !tbaa !17
  %19 = fcmp oeq double %18, %2
  br i1 %19, label %20, label %12

20:                                               ; preds = %.lr.ph
  %21 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %22 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %23 = sub nsw i32 %21, %22
  %24 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %25 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %26 = sub nsw i32 %24, %25
  %27 = mul nsw i32 %23, %23
  %28 = mul nsw i32 %26, %26
  %29 = add nuw nsw i32 %28, %27
  %30 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %29)
  %31 = fptosi double %30 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #5
  %33 = load i64, ptr %32, align 8
  store i64 %33, ptr %7, align 8
  %34 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %35 = call noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %36 = sub nsw i32 %34, %35
  %37 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %38 = call noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %39 = sub nsw i32 %37, %38
  %40 = mul nsw i32 %36, %36
  %41 = mul nsw i32 %39, %39
  %42 = add nuw nsw i32 %41, %40
  %43 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %42)
  %44 = fptosi double %43 to i32
  %45 = icmp sgt i32 %31, %44
  br i1 %45, label %46, label %49

46:                                               ; preds = %20
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #5
  %48 = load i64, ptr %5, align 8
  store i64 %48, ptr %47, align 8
  br label %49

49:                                               ; preds = %46, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %53

.critedge:                                        ; preds = %12, %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN7MinHeap4NodeC2E5Pointi(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 %1, i32 noundef 2147483647)
  call void @_ZNSt6vectorIN7MinHeap4NodeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %50 = load i32, ptr %9, align 8, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN7MinHeap11decreaseKeyEid(ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %50, double noundef %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %53

53:                                               ; preds = %49, %.critedge
  ret void
}

declare noundef i32 @_ZN5Point1xEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

declare noundef i32 @_ZN5Point1yEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { inlinehint 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 #5 = { 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, !14, i64 24}
!6 = !{!"_ZTS7MinHeap", !7, i64 0, !14, i64 24}
!7 = !{!"_ZTSSt6vectorIN7MinHeap4NodeESaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN7MinHeap4NodeESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !20, i64 8}
!18 = !{!"_ZTSN7MinHeap4NodeE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTS5Point", !14, i64 0, !14, i64 4}
!20 = !{!"double", !12, i64 0}


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