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

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%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 }
%"struct.DynamicVoronoi::dataCell" = type { float, i8, i8, i32, i32, i8, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14DynamicVoronoi9isVoronoiEii(ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14DynamicVoronoi9visualizeEPKc(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call noalias ptr @fopen(ptr noundef %14, ptr noundef @.str.1)
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %20, label %18

18:                                               ; preds = %2
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
  store i32 1, ptr %6, align 4
  br label %121

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.3) #7
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 6
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !29
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.4, i32 noundef %25, i32 noundef %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %29 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 5
  %30 = load i32, ptr %29, align 8, !tbaa !29
  %31 = sub nsw i32 %30, 1
  store i32 %31, ptr %7, align 4, !tbaa !30
  br label %32

32:                                               ; preds = %115, %20
  %33 = load i32, ptr %7, align 4, !tbaa !30
  %34 = icmp sge i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %118

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !30
  br label %37

37:                                               ; preds = %111, %36
  %38 = load i32, ptr %8, align 4, !tbaa !30
  %39 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 6
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %114

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !31
  %44 = load i32, ptr %8, align 4, !tbaa !30
  %45 = load i32, ptr %7, align 4, !tbaa !30
  %46 = call noundef zeroext i1 @_ZNK14DynamicVoronoi9isVoronoiEii(ptr noundef nonnull align 8 dereferenceable(232) %11, i32 noundef %44, i32 noundef %45)
  br i1 %46, label %47, label %54

47:                                               ; preds = %43
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call i32 @fputc(i32 noundef 255, ptr noundef %48)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call i32 @fputc(i32 noundef 0, ptr noundef %50)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call i32 @fputc(i32 noundef 0, ptr noundef %52)
  br label %110

54:                                               ; preds = %43
  %55 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !32
  %57 = load i32, ptr %8, align 4, !tbaa !30
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load i32, ptr %7, align 4, !tbaa !30
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"struct.DynamicVoronoi::dataCell", ptr %60, i64 %62
  %64 = getelementptr inbounds %"struct.DynamicVoronoi::dataCell", ptr %63, i32 0, i32 6
  %65 = load i32, ptr %64, align 4, !tbaa !33
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %74

67:                                               ; preds = %54
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call i32 @fputc(i32 noundef 0, ptr noundef %68)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call i32 @fputc(i32 noundef 0, ptr noundef %70)
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = call i32 @fputc(i32 noundef 0, ptr noundef %72)
  br label %109

74:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %75 = getelementptr inbounds %class.DynamicVoronoi, ptr %11, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !32
  %77 = load i32, ptr %8, align 4, !tbaa !30
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !30
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %"struct.DynamicVoronoi::dataCell", ptr %80, i64 %82
  %84 = getelementptr inbounds %"struct.DynamicVoronoi::dataCell", ptr %83, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !37
  %86 = call float @llvm.fmuladd.f32(float %85, float 5.000000e+00, float 8.000000e+01)
  store float %86, ptr %10, align 4, !tbaa !38
  %87 = load float, ptr %10, align 4, !tbaa !38
  %88 = fcmp ogt float %87, 2.550000e+02
  br i1 %88, label %89, label %90

89:                                               ; preds = %74
  store float 2.550000e+02, ptr %10, align 4, !tbaa !38
  br label %90

90:                                               ; preds = %89, %74
  %91 = load float, ptr %10, align 4, !tbaa !38
  %92 = fcmp olt float %91, 0.000000e+00
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store float 0.000000e+00, ptr %10, align 4, !tbaa !38
  br label %94

94:                                               ; preds = %93, %90
  %95 = load float, ptr %10, align 4, !tbaa !38
  %96 = fptoui float %95 to i8
  store i8 %96, ptr %9, align 1, !tbaa !31
  %97 = load i8, ptr %9, align 1, !tbaa !31
  %98 = zext i8 %97 to i32
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call i32 @fputc(i32 noundef %98, ptr noundef %99)
  %101 = load i8, ptr %9, align 1, !tbaa !31
  %102 = zext i8 %101 to i32
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call i32 @fputc(i32 noundef %102, ptr noundef %103)
  %105 = load i8, ptr %9, align 1, !tbaa !31
  %106 = zext i8 %105 to i32
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 @fputc(i32 noundef %106, ptr noundef %107)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %109

109:                                              ; preds = %94, %67
  br label %110

110:                                              ; preds = %109, %47
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %8, align 4, !tbaa !30
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %8, align 4, !tbaa !30
  br label %37, !llvm.loop !39

114:                                              ; preds = %42
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %7, align 4, !tbaa !30
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %7, align 4, !tbaa !30
  br label %32, !llvm.loop !41

118:                                              ; preds = %35
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = call i32 @fclose(ptr noundef %119)
  store i32 0, ptr %6, align 4
  br label %121

121:                                              ; preds = %118, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %122 = load i32, ptr %6, align 4
  switch i32 %122, label %124 [
    i32 0, label %123
    i32 1, label %123
  ]

123:                                              ; preds = %121, %121
  ret void

124:                                              ; preds = %121
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare i32 @fputc(i32 noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

declare i32 @fclose(ptr noundef) #4

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


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.DynamicVoronoi::dataCell" = type { float, i8, i8, i32, i32, i8, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK14DynamicVoronoi9isVoronoiEii(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 @_ZN14DynamicVoronoi9visualizeEPKc(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %5 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
  br label %52

8:                                                ; preds = %2
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.3) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 188
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 184
  %13 = load i32, ptr %12, align 8, !tbaa !28
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.4, i32 noundef %11, i32 noundef %13) #5
  %15 = load i32, ptr %12, align 8, !tbaa !28
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader.lr.ph, label %._crit_edge

.preheader.lr.ph:                                 ; preds = %8
  %17 = getelementptr inbounds i8, ptr %0, i64 192
  %18 = load i32, ptr %10, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %.03135 = add nsw i32 %15, -1
  %20 = zext nneg i32 %.03135 to i64
  br label %.preheader

.loopexit:                                        ; preds = %45, %.preheader
  %21 = phi i32 [ %23, %.preheader ], [ %49, %45 ]
  %indvars.iv.next40 = add nsw i64 %indvars.iv39, -1
  %22 = icmp sgt i64 %indvars.iv39, 0
  br i1 %22, label %.preheader, label %._crit_edge, !llvm.loop !29

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit
  %23 = phi i32 [ %18, %.preheader.preheader ], [ %21, %.loopexit ]
  %indvars.iv39 = phi i64 [ %20, %.preheader.preheader ], [ %indvars.iv.next40, %.loopexit ]
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader
  %25 = trunc nuw nsw i64 %indvars.iv39 to i32
  br label %27

._crit_edge:                                      ; preds = %.loopexit, %.preheader.lr.ph, %8
  %26 = tail call i32 @fclose(ptr noundef nonnull %5)
  br label %52

27:                                               ; preds = %.lr.ph, %45
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %45 ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = tail call noundef zeroext i1 @_ZNK14DynamicVoronoi9isVoronoiEii(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %28, i32 noundef %25)
  br i1 %29, label %45, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr %17, align 8, !tbaa !32
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !33
  %34 = getelementptr inbounds %"struct.DynamicVoronoi::dataCell", ptr %33, i64 %indvars.iv39
  %35 = getelementptr inbounds i8, ptr %34, i64 20
  %36 = load i32, ptr %35, align 4, !tbaa !34
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %45, label %38

38:                                               ; preds = %30
  %39 = load float, ptr %34, align 4, !tbaa !38
  %40 = tail call float @llvm.fmuladd.f32(float %39, float 5.000000e+00, float 8.000000e+01)
  %41 = fcmp ogt float %40, 2.550000e+02
  %.0 = select i1 %41, float 2.550000e+02, float %40
  %42 = fcmp olt float %.0, 0.000000e+00
  %.1 = select i1 %42, float 0.000000e+00, float %.0
  %43 = fptoui float %.1 to i8
  %44 = zext i8 %43 to i32
  br label %45

45:                                               ; preds = %30, %27, %38
  %.sink43 = phi i32 [ %44, %38 ], [ 255, %27 ], [ 0, %30 ]
  %.sink42 = phi i32 [ %44, %38 ], [ 0, %27 ], [ 0, %30 ]
  %46 = tail call i32 @fputc(i32 noundef %.sink43, ptr noundef nonnull %5)
  %47 = tail call i32 @fputc(i32 noundef %.sink42, ptr noundef nonnull %5)
  %48 = tail call i32 @fputc(i32 noundef %.sink42, ptr noundef nonnull %5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %27, label %.loopexit, !llvm.loop !39

52:                                               ; preds = %._crit_edge, %6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fputc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass