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

; 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::container_base" = type <{ %"class.voro::voro_base", %"class.voro::wall_list.base", [4 x i8], double, double, double, double, double, double, i8, i8, i8, [5 x i8], ptr, ptr, ptr, ptr, i32, [4 x i8] }>
%"class.voro::voro_base" = type { i32, i32, i32, i32, i32, double, double, double, double, double, double, ptr }
%"class.voro::wall_list.base" = type <{ ptr, ptr, ptr, i32 }>

@.str = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro14container_base19add_particle_memoryEi(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %10 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 16
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i32, ptr %11, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = shl i32 %15, 1
  store i32 %16, ptr %6, align 4, !tbaa !9
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = icmp sgt i32 %17, 16777216
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  call void @_ZN4voro16voro_fatal_errorEPKci(ptr noundef @.str, i32 noundef 2)
  br label %20

20:                                               ; preds = %19, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %22, i64 4)
  %24 = extractvalue { i64, i1 } %23, 1
  %25 = extractvalue { i64, i1 } %23, 0
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #7
  store ptr %27, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %52, %20
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 15
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %31, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = icmp slt i32 %29, %35
  br i1 %36, label %37, label %55

37:                                               ; preds = %28
  %38 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 13
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = load i32, ptr %4, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds ptr, ptr %39, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %48, i64 %50
  store i32 %47, ptr %51, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %37
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %5, align 4, !tbaa !9
  br label %28, !llvm.loop !19

55:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %56 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 17
  %57 = load i32, ptr %56, align 8, !tbaa !21
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = mul nsw i32 %57, %58
  %60 = sext i32 %59 to i64
  %61 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 8)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #7
  store ptr %65, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %93, %55
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 17
  %69 = load i32, ptr %68, align 8, !tbaa !21
  %70 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 15
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = mul nsw i32 %69, %75
  %77 = icmp slt i32 %67, %76
  br i1 %77, label %78, label %96

78:                                               ; preds = %66
  %79 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 14
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  %81 = load i32, ptr %4, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !23
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  store double %88, ptr %92, align 8, !tbaa !23
  br label %93

93:                                               ; preds = %78
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %5, align 4, !tbaa !9
  br label %66, !llvm.loop !24

96:                                               ; preds = %66
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 16
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  store i32 %97, ptr %102, align 4, !tbaa !9
  %103 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 13
  %104 = load ptr, ptr %103, align 8, !tbaa !18
  %105 = load i32, ptr %4, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = icmp eq ptr %108, null
  br i1 %109, label %111, label %110

110:                                              ; preds = %96
  call void @_ZdaPv(ptr noundef %108) #8
  br label %111

111:                                              ; preds = %110, %96
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 13
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = load i32, ptr %4, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  store ptr %112, ptr %117, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 14
  %119 = load ptr, ptr %118, align 8, !tbaa !22
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = icmp eq ptr %123, null
  br i1 %124, label %126, label %125

125:                                              ; preds = %111
  call void @_ZdaPv(ptr noundef %123) #8
  br label %126

126:                                              ; preds = %125, %111
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.voro::container_base", ptr %9, i32 0, i32 14
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  store ptr %127, ptr %132, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voro_fatal_errorEPKci(ptr noundef, i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nobuiltin allocsize(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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin 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 = { 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 }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !6, i64 192}
!12 = !{!"_ZTSN4voro14container_baseE", !13, i64 0, !15, i64 80, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !16, i64 160, !16, i64 161, !16, i64 162, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200}
!13 = !{!"_ZTSN4voro9voro_baseE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !6, i64 72}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN4voro9wall_listE", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24}
!16 = !{!"bool", !7, i64 0}
!17 = !{!12, !6, i64 184}
!18 = !{!12, !6, i64 168}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !10, i64 200}
!22 = !{!12, !6, i64 176}
!23 = !{!14, !14, i64 0}
!24 = distinct !{!24, !20}


; 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 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro14container_base19add_particle_memoryEi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(204) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 192
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = sext i32 %1 to i64
  %6 = getelementptr inbounds i32, ptr %4, i64 %5
  %7 = load i32, ptr %6, align 4, !tbaa !15
  %8 = shl i32 %7, 1
  %9 = icmp sgt i32 %8, 16777216
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  tail call void @_ZN4voro16voro_fatal_errorEPKci(ptr noundef nonnull @.str, i32 noundef 2)
  br label %11

11:                                               ; preds = %10, %2
  %12 = sext i32 %8 to i64
  %13 = icmp slt i32 %8, 0
  %14 = shl nsw i64 %12, 2
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 184
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i32, ptr %18, i64 %5
  %20 = load i32, ptr %19, align 4, !tbaa !15
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %22 = ptrtoint ptr %16 to i64
  %23 = getelementptr inbounds i8, ptr %0, i64 168
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds ptr, ptr %24, i64 %5
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = zext nneg i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 8
  %28 = ptrtoint ptr %26 to i64
  %29 = sub i64 %22, %28
  %diff.check = icmp ult i64 %29, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %27, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %30 = getelementptr inbounds i32, ptr %26, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load = load <4 x i32>, ptr %30, align 4, !tbaa !15
  %wide.load39 = load <4 x i32>, ptr %31, align 4, !tbaa !15
  %32 = getelementptr inbounds i32, ptr %16, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <4 x i32> %wide.load, ptr %32, align 4, !tbaa !15
  store <4 x i32> %wide.load39, ptr %33, align 4, !tbaa !15
  %index.next = add nuw i64 %index, 8
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %27
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %35 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv
  store i32 %36, ptr %37, align 4, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = icmp ult i64 %indvars.iv.next, %27
  br i1 %38, label %scalar.ph, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %11
  %39 = getelementptr inbounds i8, ptr %0, i64 200
  %40 = load i32, ptr %39, align 8, !tbaa !24
  %41 = mul nsw i32 %40, %8
  %42 = sext i32 %41 to i64
  %43 = icmp slt i32 %41, 0
  %44 = shl nsw i64 %42, 3
  %45 = select i1 %43, i64 -1, i64 %44
  %46 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %45) #4
  %47 = mul nsw i32 %20, %40
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %._crit_edge
  %49 = ptrtoint ptr %46 to i64
  %50 = getelementptr inbounds i8, ptr %0, i64 176
  %51 = load ptr, ptr %50, align 8, !tbaa !25
  %52 = getelementptr inbounds ptr, ptr %51, i64 %5
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %wide.trip.count = zext nneg i32 %47 to i64
  %min.iters.check44 = icmp ult i32 %47, 6
  %54 = ptrtoint ptr %53 to i64
  %55 = sub i64 %49, %54
  %diff.check41 = icmp ult i64 %55, 32
  %or.cond57 = select i1 %min.iters.check44, i1 true, i1 %diff.check41
  br i1 %or.cond57, label %scalar.ph43.preheader, label %vector.ph45

vector.ph45:                                      ; preds = %.lr.ph32
  %n.vec47 = and i64 %wide.trip.count, 2147483644
  br label %vector.body49

vector.body49:                                    ; preds = %vector.body49, %vector.ph45
  %index50 = phi i64 [ 0, %vector.ph45 ], [ %index.next53, %vector.body49 ]
  %56 = getelementptr inbounds double, ptr %53, i64 %index50
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load51 = load <2 x double>, ptr %56, align 8, !tbaa !26
  %wide.load52 = load <2 x double>, ptr %57, align 8, !tbaa !26
  %58 = getelementptr inbounds double, ptr %46, i64 %index50
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  store <2 x double> %wide.load51, ptr %58, align 8, !tbaa !26
  store <2 x double> %wide.load52, ptr %59, align 8, !tbaa !26
  %index.next53 = add nuw i64 %index50, 4
  %60 = icmp eq i64 %index.next53, %n.vec47
  br i1 %60, label %middle.block42, label %vector.body49, !llvm.loop !27

middle.block42:                                   ; preds = %vector.body49
  %cmp.n54 = icmp eq i64 %n.vec47, %wide.trip.count
  br i1 %cmp.n54, label %._crit_edge33, label %scalar.ph43.preheader

scalar.ph43.preheader:                            ; preds = %middle.block42, %.lr.ph32
  %indvars.iv35.ph = phi i64 [ 0, %.lr.ph32 ], [ %n.vec47, %middle.block42 ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph43.prol.loopexit, label %scalar.ph43.prol

scalar.ph43.prol:                                 ; preds = %scalar.ph43.preheader, %scalar.ph43.prol
  %indvars.iv35.prol = phi i64 [ %indvars.iv.next36.prol, %scalar.ph43.prol ], [ %indvars.iv35.ph, %scalar.ph43.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph43.prol ], [ 0, %scalar.ph43.preheader ]
  %61 = getelementptr inbounds double, ptr %53, i64 %indvars.iv35.prol
  %62 = load double, ptr %61, align 8, !tbaa !26
  %63 = getelementptr inbounds double, ptr %46, i64 %indvars.iv35.prol
  store double %62, ptr %63, align 8, !tbaa !26
  %indvars.iv.next36.prol = add nuw nsw i64 %indvars.iv35.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph43.prol.loopexit, label %scalar.ph43.prol, !llvm.loop !28

scalar.ph43.prol.loopexit:                        ; preds = %scalar.ph43.prol, %scalar.ph43.preheader
  %indvars.iv35.unr = phi i64 [ %indvars.iv35.ph, %scalar.ph43.preheader ], [ %indvars.iv.next36.prol, %scalar.ph43.prol ]
  %64 = sub nsw i64 %indvars.iv35.ph, %wide.trip.count
  %65 = icmp ugt i64 %64, -4
  br i1 %65, label %._crit_edge33, label %scalar.ph43

scalar.ph43:                                      ; preds = %scalar.ph43.prol.loopexit, %scalar.ph43
  %indvars.iv35 = phi i64 [ %indvars.iv.next36.3, %scalar.ph43 ], [ %indvars.iv35.unr, %scalar.ph43.prol.loopexit ]
  %66 = getelementptr inbounds double, ptr %53, i64 %indvars.iv35
  %67 = load double, ptr %66, align 8, !tbaa !26
  %68 = getelementptr inbounds double, ptr %46, i64 %indvars.iv35
  store double %67, ptr %68, align 8, !tbaa !26
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %69 = getelementptr inbounds double, ptr %53, i64 %indvars.iv.next36
  %70 = load double, ptr %69, align 8, !tbaa !26
  %71 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next36
  store double %70, ptr %71, align 8, !tbaa !26
  %indvars.iv.next36.1 = add nuw nsw i64 %indvars.iv35, 2
  %72 = getelementptr inbounds double, ptr %53, i64 %indvars.iv.next36.1
  %73 = load double, ptr %72, align 8, !tbaa !26
  %74 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next36.1
  store double %73, ptr %74, align 8, !tbaa !26
  %indvars.iv.next36.2 = add nuw nsw i64 %indvars.iv35, 3
  %75 = getelementptr inbounds double, ptr %53, i64 %indvars.iv.next36.2
  %76 = load double, ptr %75, align 8, !tbaa !26
  %77 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next36.2
  store double %76, ptr %77, align 8, !tbaa !26
  %indvars.iv.next36.3 = add nuw nsw i64 %indvars.iv35, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next36.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge33, label %scalar.ph43, !llvm.loop !30

._crit_edge33:                                    ; preds = %scalar.ph43.prol.loopexit, %scalar.ph43, %middle.block42, %._crit_edge
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds i32, ptr %78, i64 %5
  store i32 %8, ptr %79, align 4, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %0, i64 168
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds ptr, ptr %81, i64 %5
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = icmp eq ptr %83, null
  br i1 %84, label %86, label %85

85:                                               ; preds = %._crit_edge33
  tail call void @_ZdaPv(ptr noundef nonnull %83) #5
  %.pre = load ptr, ptr %80, align 8, !tbaa !17
  br label %86

86:                                               ; preds = %85, %._crit_edge33
  %87 = phi ptr [ %.pre, %85 ], [ %81, %._crit_edge33 ]
  %88 = getelementptr inbounds ptr, ptr %87, i64 %5
  store ptr %16, ptr %88, align 8, !tbaa !18
  %89 = getelementptr inbounds i8, ptr %0, i64 176
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = getelementptr inbounds ptr, ptr %90, i64 %5
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = icmp eq ptr %92, null
  br i1 %93, label %95, label %94

94:                                               ; preds = %86
  tail call void @_ZdaPv(ptr noundef nonnull %92) #5
  %.pre38 = load ptr, ptr %89, align 8, !tbaa !25
  br label %95

95:                                               ; preds = %94, %86
  %96 = phi ptr [ %.pre38, %94 ], [ %90, %86 ]
  %97 = getelementptr inbounds ptr, ptr %96, i64 %5
  store ptr %46, ptr %97, align 8, !tbaa !18
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voro_fatal_errorEPKci(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 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 #4 = { builtin allocsize(0) }
attributes #5 = { builtin 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, !12, i64 192}
!6 = !{!"_ZTSN4voro14container_baseE", !7, i64 0, !13, i64 80, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !14, i64 160, !14, i64 161, !14, i64 162, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !8, i64 200}
!7 = !{!"_ZTSN4voro9voro_baseE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSN4voro9wall_listE", !12, i64 0, !12, i64 8, !12, i64 16, !8, i64 24}
!14 = !{!"bool", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !12, i64 184}
!17 = !{!6, !12, i64 168}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !20, !21}
!24 = !{!6, !8, i64 200}
!25 = !{!6, !12, i64 176}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !20, !21, !22}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !20, !21}


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