; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src/cell.ll (ZN4voro16voronoicell_base12draw_gnuplotEdddP8_IO_FILE)

; 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.voro::voronoicell_base" = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, double, double, double, double }

@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

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

17:                                               ; preds = %161, %5
  %18 = load i32, ptr %11, align 4, !tbaa !11
  %19 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 5
  %20 = load i32, ptr %19, align 8, !tbaa !13
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %22, label %164

22:                                               ; preds = %17
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %157, %22
  %24 = load i32, ptr %12, align 4, !tbaa !11
  %25 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 8
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = load i32, ptr %11, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i32, ptr %26, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !11
  %31 = icmp slt i32 %24, %30
  br i1 %31, label %32, label %160

32:                                               ; preds = %23
  %33 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 7
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = load i32, ptr %11, align 4, !tbaa !11
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %34, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load i32, ptr %12, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !11
  store i32 %42, ptr %13, align 4, !tbaa !11
  %43 = load i32, ptr %13, align 4, !tbaa !11
  %44 = icmp sge i32 %43, 0
  br i1 %44, label %45, label %156

45:                                               ; preds = %32
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load double, ptr %7, align 8, !tbaa !9
  %48 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = load i32, ptr %11, align 4, !tbaa !11
  %51 = mul nsw i32 3, %50
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %49, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %54, double %47)
  %56 = load double, ptr %8, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i32, ptr %11, align 4, !tbaa !11
  %60 = mul nsw i32 3, %59
  %61 = add nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %58, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %64, double %56)
  %66 = load double, ptr %9, align 8, !tbaa !9
  %67 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = load i32, ptr %11, align 4, !tbaa !11
  %70 = mul nsw i32 3, %69
  %71 = add nsw i32 %70, 2
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %68, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %74, double %66)
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.9, double noundef %55, double noundef %65, double noundef %75) #6
  %77 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %77, ptr %14, align 4, !tbaa !11
  %78 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %78, ptr %15, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %150, %45
  %80 = load i32, ptr %14, align 4, !tbaa !11
  %81 = sub nsw i32 -1, %80
  %82 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = load i32, ptr %13, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 7
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load i32, ptr %14, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 8
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = load i32, ptr %14, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !11
  %100 = load i32, ptr %15, align 4, !tbaa !11
  %101 = add nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %93, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %87, i64 %105
  store i32 %81, ptr %106, align 4, !tbaa !11
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = sub nsw i32 -1, %107
  %109 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load i32, ptr %14, align 4, !tbaa !11
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = load i32, ptr %15, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %114, i64 %116
  store i32 %108, ptr %117, align 4, !tbaa !11
  %118 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %118, ptr %14, align 4, !tbaa !11
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load double, ptr %7, align 8, !tbaa !9
  %121 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %122 = load ptr, ptr %121, align 8, !tbaa !17
  %123 = load i32, ptr %13, align 4, !tbaa !11
  %124 = mul nsw i32 3, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %122, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %127, double %120)
  %129 = load double, ptr %8, align 8, !tbaa !9
  %130 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %131 = load ptr, ptr %130, align 8, !tbaa !17
  %132 = load i32, ptr %13, align 4, !tbaa !11
  %133 = mul nsw i32 3, %132
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %131, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %137, double %129)
  %139 = load double, ptr %9, align 8, !tbaa !9
  %140 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %16, i32 0, i32 9
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = load i32, ptr %13, align 4, !tbaa !11
  %143 = mul nsw i32 3, %142
  %144 = add nsw i32 %143, 2
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %141, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !9
  %148 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %147, double %139)
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.9, double noundef %128, double noundef %138, double noundef %148) #6
  br label %150

150:                                              ; preds = %79
  %151 = load i32, ptr %14, align 4, !tbaa !11
  %152 = call noundef zeroext i1 @_ZN4voro16voronoicell_base11search_edgeEiRiS1_(ptr noundef nonnull align 8 dereferenceable(160) %16, i32 noundef %151, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %13)
  br i1 %152, label %79, label %153, !llvm.loop !18

153:                                              ; preds = %150
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = call i32 @fputs(ptr noundef @.str.10, ptr noundef %154)
  br label %156

156:                                              ; preds = %153, %32
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %12, align 4, !tbaa !11
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %12, align 4, !tbaa !11
  br label %23, !llvm.loop !20

160:                                              ; preds = %23
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %11, align 4, !tbaa !11
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %11, align 4, !tbaa !11
  br label %17, !llvm.loop !21

164:                                              ; preds = %17
  call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %16)
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4voro16voronoicell_base11search_edgeEiRiS1_(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

declare i32 @fputs(ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = { 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 #5 = { "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 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"_ZTSN4voro16voronoicell_baseE", !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!15 = !{!14, !6, i64 40}
!16 = !{!14, !6, i64 32}
!17 = !{!14, !6, i64 48}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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

@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4voro16voronoicell_base12draw_gnuplotEdddP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(160) %0, double noundef %1, double noundef %2, double noundef %3, ptr nocapture noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp sgt i32 %9, 1
  br i1 %10, label %.preheader.lr.ph, label %._crit_edge30

.preheader.lr.ph:                                 ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %.pre = load ptr, ptr %11, align 8, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %14 = phi i32 [ %9, %.preheader.lr.ph ], [ %90, %._crit_edge ]
  %15 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %91, %._crit_edge ]
  %16 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %92, %._crit_edge ]
  %indvars.iv32 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next33, %._crit_edge ]
  %17 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv32
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %20 = trunc nuw nsw i64 %indvars.iv32 to i32
  %.idx = mul i64 %indvars.iv32, 24
  br label %21

21:                                               ; preds = %.lr.ph, %84
  %22 = phi ptr [ %15, %.lr.ph ], [ %85, %84 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %84 ]
  %23 = load ptr, ptr %12, align 8, !tbaa !14
  %24 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv32
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv
  %27 = load i32, ptr %26, align 4, !tbaa !13
  store i32 %27, ptr %6, align 4, !tbaa !13
  %28 = icmp sgt i32 %27, -1
  br i1 %28, label %29, label %84

29:                                               ; preds = %21
  %30 = load ptr, ptr %13, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %30, i64 %.idx
  %32 = load double, ptr %31, align 8, !tbaa !17
  %33 = call double @llvm.fmuladd.f64(double %32, double 5.000000e-01, double %1)
  %34 = getelementptr inbounds i8, ptr %31, i64 8
  %35 = load double, ptr %34, align 8, !tbaa !17
  %36 = call double @llvm.fmuladd.f64(double %35, double 5.000000e-01, double %2)
  %37 = getelementptr inbounds i8, ptr %31, i64 16
  %38 = load double, ptr %37, align 8, !tbaa !17
  %39 = call double @llvm.fmuladd.f64(double %38, double 5.000000e-01, double %3)
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.9, double noundef %33, double noundef %36, double noundef %39) #5
  %41 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %41, ptr %7, align 4, !tbaa !13
  br label %42

42:                                               ; preds = %42, %29
  %.0 = phi i32 [ %20, %29 ], [ %67, %42 ]
  %43 = xor i32 %.0, -1
  %44 = load ptr, ptr %12, align 8, !tbaa !14
  %45 = load i32, ptr %6, align 4, !tbaa !13
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = sext i32 %.0 to i64
  %50 = getelementptr inbounds ptr, ptr %44, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = load ptr, ptr %11, align 8, !tbaa !12
  %53 = getelementptr inbounds i32, ptr %52, i64 %49
  %54 = load i32, ptr %53, align 4, !tbaa !13
  %55 = load i32, ptr %7, align 4, !tbaa !13
  %56 = add nsw i32 %55, %54
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %51, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !13
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %48, i64 %60
  store i32 %43, ptr %61, align 4, !tbaa !13
  %62 = load i32, ptr %6, align 4, !tbaa !13
  %63 = xor i32 %62, -1
  %64 = load i32, ptr %7, align 4, !tbaa !13
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %51, i64 %65
  store i32 %63, ptr %66, align 4, !tbaa !13
  %67 = load i32, ptr %6, align 4, !tbaa !13
  %68 = load ptr, ptr %13, align 8, !tbaa !16
  %69 = mul nsw i32 %67, 3
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %68, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !17
  %73 = call double @llvm.fmuladd.f64(double %72, double 5.000000e-01, double %1)
  %74 = getelementptr i8, ptr %71, i64 8
  %75 = load double, ptr %74, align 8, !tbaa !17
  %76 = call double @llvm.fmuladd.f64(double %75, double 5.000000e-01, double %2)
  %77 = getelementptr i8, ptr %71, i64 16
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = call double @llvm.fmuladd.f64(double %78, double 5.000000e-01, double %3)
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.9, double noundef %73, double noundef %76, double noundef %79) #5
  %81 = call noundef zeroext i1 @_ZN4voro16voronoicell_base11search_edgeEiRiS1_(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %67, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %81, label %42, label %82, !llvm.loop !18

82:                                               ; preds = %42
  %83 = call i32 @fputs(ptr noundef nonnull @.str.10, ptr noundef %4)
  %.pre35 = load ptr, ptr %11, align 8, !tbaa !12
  br label %84

84:                                               ; preds = %21, %82
  %85 = phi ptr [ %22, %21 ], [ %.pre35, %82 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv32
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %21, label %._crit_edge.loopexit, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %84
  %.pre36 = load i32, ptr %8, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %90 = phi i32 [ %.pre36, %._crit_edge.loopexit ], [ %14, %.preheader ]
  %91 = phi ptr [ %85, %._crit_edge.loopexit ], [ %15, %.preheader ]
  %92 = phi ptr [ %85, %._crit_edge.loopexit ], [ %16, %.preheader ]
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %93 = sext i32 %90 to i64
  %94 = icmp slt i64 %indvars.iv.next33, %93
  br i1 %94, label %.preheader, label %._crit_edge30, !llvm.loop !21

._crit_edge30:                                    ; preds = %._crit_edge, %5
  call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4voro16voronoicell_base11search_edgeEiRiS1_(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 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, !7, i64 24}
!6 = !{!"_ZTSN4voro16voronoicell_baseE", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 40}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 32}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 48}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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