; LLVM IR from USE-jx/hybridAstar_lbfgsSmooth :: src/hybrid_astar_searcher/src (dynamicvoronoi)

; 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.DynamicVoronoi = type { %class.BucketPrioQueue, %"class.std::queue", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", i32, i32, ptr, ptr, i32, double, double }
%class.BucketPrioQueue = type { i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::queue<IntPoint>, std::allocator<std::queue<IntPoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::queue<IntPoint>, std::allocator<std::queue<IntPoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::queue<IntPoint>, std::allocator<std::queue<IntPoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::queue<IntPoint>, std::allocator<std::queue<IntPoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<IntPoint, std::allocator<IntPoint>>::_Deque_impl" }
%"struct.std::_Deque_base<IntPoint, std::allocator<IntPoint>>::_Deque_impl" = type { %"struct.std::_Deque_base<IntPoint, std::allocator<IntPoint>>::_Deque_impl_data" }
%"struct.std::_Deque_base<IntPoint, std::allocator<IntPoint>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<IntPoint, std::allocator<IntPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<IntPoint, std::allocator<IntPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<IntPoint, std::allocator<IntPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IntPoint, std::allocator<IntPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.IntPoint = type { i32, i32 }

; 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
declare dso_local void @_ZN14DynamicVoronoi11setObstacleEii(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14DynamicVoronoi14removeObstacleEii(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14DynamicVoronoi17exchangeObstaclesERKSt6vectorI8IntPointSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %56, %2
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  %19 = call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  %20 = icmp ult i64 %17, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %15
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %59

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %23 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %25) #3
  %27 = getelementptr inbounds %class.IntPoint, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !11
  store i32 %28, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %29 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #3
  %33 = getelementptr inbounds %class.IntPoint, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  store i32 %34, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %35 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 8
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i8, ptr %40, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !33, !range !35, !noundef !36
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %9, align 1, !tbaa !33
  %47 = load i8, ptr %9, align 1, !tbaa !33, !range !35, !noundef !36
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %50

49:                                               ; preds = %22
  store i32 4, ptr %6, align 4
  br label %53

50:                                               ; preds = %22
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN14DynamicVoronoi14removeObstacleEii(ptr noundef nonnull align 8 dereferenceable(232) %14, i32 noundef %51, i32 noundef %52)
  store i32 0, ptr %6, align 4
  br label %53

53:                                               ; preds = %50, %49
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %54 = load i32, ptr %6, align 4
  switch i32 %54, label %114 [
    i32 0, label %55
    i32 4, label %56
  ]

55:                                               ; preds = %53
  br label %56

56:                                               ; preds = %55, %53
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %5, align 4, !tbaa !9
  br label %15, !llvm.loop !37

59:                                               ; preds = %21
  %60 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  call void @_ZNSt6vectorI8IntPointSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #3
  %61 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #3
  call void @_ZNSt6vectorI8IntPointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %110, %59
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #3
  %69 = icmp ult i64 %66, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %64
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %113

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #3
  %76 = getelementptr inbounds %class.IntPoint, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !11
  store i32 %77, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #3
  %82 = getelementptr inbounds %class.IntPoint, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !13
  store i32 %83, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  %84 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 8
  %85 = load ptr, ptr %84, align 8, !tbaa !14
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !33, !range !35, !noundef !36
  %94 = trunc i8 %93 to i1
  %95 = zext i1 %94 to i8
  store i8 %95, ptr %13, align 1, !tbaa !33
  %96 = load i8, ptr %13, align 1, !tbaa !33, !range !35, !noundef !36
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %99

98:                                               ; preds = %71
  store i32 7, ptr %6, align 4
  br label %107

99:                                               ; preds = %71
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN14DynamicVoronoi11setObstacleEii(ptr noundef nonnull align 8 dereferenceable(232) %14, i32 noundef %100, i32 noundef %101)
  %102 = getelementptr inbounds %class.DynamicVoronoi, ptr %14, i32 0, i32 4
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #3
  call void @_ZNSt6vectorI8IntPointSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(8) %106)
  store i32 0, ptr %6, align 4
  br label %107

107:                                              ; preds = %99, %98
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %108 = load i32, ptr %6, align 4
  switch i32 %108, label %114 [
    i32 0, label %109
    i32 7, label %110
  ]

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %107
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = add i32 %111, 1
  store i32 %112, ptr %10, align 4, !tbaa !9
  br label %64, !llvm.loop !39

113:                                              ; preds = %70
  ret void

114:                                              ; preds = %107, %53
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8IntPointSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS8IntPoint", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !6, i64 200}
!15 = !{!"_ZTS14DynamicVoronoi", !16, i64 0, !21, i64 32, !28, i64 112, !28, i64 136, !28, i64 160, !10, i64 184, !10, i64 188, !6, i64 192, !6, i64 200, !10, i64 208, !32, i64 216, !32, i64 224}
!16 = !{!"_ZTS15BucketPrioQueue", !10, i64 0, !10, i64 4, !17, i64 8}
!17 = !{!"_ZTSSt6vectorISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt5queueI8IntPointSt5dequeIS0_SaIS0_EEE", !22, i64 0}
!22 = !{!"_ZTSSt5dequeI8IntPointSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt11_Deque_baseI8IntPointSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt11_Deque_baseI8IntPointSaIS0_EE11_Deque_implE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseI8IntPointSaIS0_EE16_Deque_impl_dataE", !6, i64 0, !26, i64 8, !27, i64 16, !27, i64 48}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSSt15_Deque_iteratorI8IntPointRS0_PS0_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_ZTSSt6vectorI8IntPointSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseI8IntPointSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI8IntPointSaIS0_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI8IntPointSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"double", !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}


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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14DynamicVoronoi11setObstacleEii(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14DynamicVoronoi14removeObstacleEii(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14DynamicVoronoi17exchangeObstaclesERKSt6vectorI8IntPointSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 160
  %4 = tail call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #2
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  br label %9

._crit_edge:                                      ; preds = %25, %2
  tail call void @_ZNSt6vectorI8IntPointSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #2
  %6 = tail call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #2
  tail call void @_ZNSt6vectorI8IntPointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %6)
  %7 = tail call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #2
  %.not32 = icmp eq i64 %7, 0
  br i1 %.not32, label %._crit_edge31, label %.lr.ph30

.lr.ph30:                                         ; preds = %._crit_edge
  %8 = getelementptr inbounds i8, ptr %0, i64 200
  br label %30

9:                                                ; preds = %.lr.ph, %25
  %10 = phi i64 [ 0, %.lr.ph ], [ %27, %25 ]
  %.027 = phi i32 [ 0, %.lr.ph ], [ %26, %25 ]
  %11 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %10) #2
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %10) #2
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !10
  %16 = load ptr, ptr %5, align 8, !tbaa !11
  %17 = sext i32 %12 to i64
  %18 = getelementptr inbounds ptr, ptr %16, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !31
  %20 = sext i32 %15 to i64
  %21 = getelementptr inbounds i8, ptr %19, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !32, !range !34, !noundef !35
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %25, label %24

24:                                               ; preds = %9
  tail call void @_ZN14DynamicVoronoi14removeObstacleEii(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %12, i32 noundef %15)
  br label %25

25:                                               ; preds = %9, %24
  %26 = add i32 %.027, 1
  %27 = zext i32 %26 to i64
  %28 = tail call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #2
  %29 = icmp ugt i64 %28, %27
  br i1 %29, label %9, label %._crit_edge, !llvm.loop !36

._crit_edge31:                                    ; preds = %47, %._crit_edge
  ret void

30:                                               ; preds = %.lr.ph30, %47
  %31 = phi i64 [ 0, %.lr.ph30 ], [ %49, %47 ]
  %.02428 = phi i32 [ 0, %.lr.ph30 ], [ %48, %47 ]
  %32 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %31) #2
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %31) #2
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !10
  %37 = load ptr, ptr %8, align 8, !tbaa !11
  %38 = sext i32 %33 to i64
  %39 = getelementptr inbounds ptr, ptr %37, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !31
  %41 = sext i32 %36 to i64
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !32, !range !34, !noundef !35
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %47, label %45

45:                                               ; preds = %30
  tail call void @_ZN14DynamicVoronoi11setObstacleEii(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %33, i32 noundef %36)
  %46 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorI8IntPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %31) #2
  tail call void @_ZNSt6vectorI8IntPointSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(8) %46)
  br label %47

47:                                               ; preds = %30, %45
  %48 = add i32 %.02428, 1
  %49 = zext i32 %48 to i64
  %50 = tail call noundef i64 @_ZNKSt6vectorI8IntPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #2
  %51 = icmp ugt i64 %50, %49
  br i1 %51, label %30, label %._crit_edge31, !llvm.loop !38
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8IntPointSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #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 = { 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 0}
!6 = !{!"_ZTS8IntPoint", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !18, i64 200}
!12 = !{!"_ZTS14DynamicVoronoi", !13, i64 0, !19, i64 32, !26, i64 112, !26, i64 136, !26, i64 160, !7, i64 184, !7, i64 188, !18, i64 192, !18, i64 200, !7, i64 208, !30, i64 216, !30, i64 224}
!13 = !{!"_ZTS15BucketPrioQueue", !7, i64 0, !7, i64 4, !14, i64 8}
!14 = !{!"_ZTSSt6vectorISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt5queueI8IntPointSt5dequeIS1_SaIS1_EEESaIS5_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt5queueI8IntPointSt5dequeIS0_SaIS0_EEE", !20, i64 0}
!20 = !{!"_ZTSSt5dequeI8IntPointSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseI8IntPointSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseI8IntPointSaIS0_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseI8IntPointSaIS0_EE16_Deque_impl_dataE", !18, i64 0, !24, i64 8, !25, i64 16, !25, i64 48}
!24 = !{!"long", !8, i64 0}
!25 = !{!"_ZTSSt15_Deque_iteratorI8IntPointRS0_PS0_E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!26 = !{!"_ZTSSt6vectorI8IntPointSaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI8IntPointSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI8IntPointSaIS0_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI8IntPointSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!30 = !{!"double", !8, i64 0}
!31 = !{!18, !18, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"bool", !8, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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