; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src (container_prd)

; 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::voro_base" = type { i32, i32, i32, i32, i32, double, double, double, double, double, double, ptr }
%"class.voro::unitcell" = type { double, double, double, double, double, double, %"class.voro::voronoicell", double, double }
%"class.voro::voronoicell" = type { %"class.voro::voronoicell_base" }
%"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 }
%"class.voro::container_periodic_base" = type { %"class.voro::unitcell", %"class.voro::voro_base", i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro23container_periodic_base16put_locate_blockERiRdS2_S2_S1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #2 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %19 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %20 = getelementptr inbounds i8, ptr %19, i64 224
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %19, i64 224
  %24 = getelementptr inbounds %"class.voro::voro_base", ptr %23, i32 0, i32 10
  %25 = load double, ptr %24, align 8, !tbaa !11
  %26 = fmul double %22, %25
  %27 = call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %20, double noundef %26)
  store i32 %27, ptr %17, align 4, !tbaa !14
  %28 = load i32, ptr %17, align 4, !tbaa !14
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %36, label %30

30:                                               ; preds = %8
  %31 = load i32, ptr %17, align 4, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %19, i64 224
  %33 = getelementptr inbounds %"class.voro::voro_base", ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !15
  %35 = icmp sge i32 %31, %34
  br i1 %35, label %36, label %79

36:                                               ; preds = %30, %8
  %37 = getelementptr inbounds i8, ptr %19, i64 224
  %38 = load i32, ptr %17, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %19, i64 224
  %40 = getelementptr inbounds %"class.voro::voro_base", ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %37, i32 noundef %38, i32 noundef %41)
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %42, ptr %43, align 4, !tbaa !14
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !14
  %46 = sitofp i32 %45 to double
  %47 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 5
  %48 = load double, ptr %47, align 8, !tbaa !16
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fneg double %46
  %52 = call double @llvm.fmuladd.f64(double %51, double %48, double %50)
  store double %52, ptr %49, align 8, !tbaa !9
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = sitofp i32 %54 to double
  %56 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 4
  %57 = load double, ptr %56, align 8, !tbaa !20
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = fneg double %55
  %61 = call double @llvm.fmuladd.f64(double %60, double %57, double %59)
  store double %61, ptr %58, align 8, !tbaa !9
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = sitofp i32 %63 to double
  %65 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 3
  %66 = load double, ptr %65, align 8, !tbaa !21
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = fneg double %64
  %70 = call double @llvm.fmuladd.f64(double %69, double %66, double %68)
  store double %70, ptr %67, align 8, !tbaa !9
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %19, i64 224
  %74 = getelementptr inbounds %"class.voro::voro_base", ptr %73, i32 0, i32 2
  %75 = load i32, ptr %74, align 8, !tbaa !15
  %76 = mul nsw i32 %72, %75
  %77 = load i32, ptr %17, align 4, !tbaa !14
  %78 = sub nsw i32 %77, %76
  store i32 %78, ptr %17, align 4, !tbaa !14
  br label %81

79:                                               ; preds = %30
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %80, align 4, !tbaa !14
  br label %81

81:                                               ; preds = %79, %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %82 = getelementptr inbounds i8, ptr %19, i64 224
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %19, i64 224
  %86 = getelementptr inbounds %"class.voro::voro_base", ptr %85, i32 0, i32 9
  %87 = load double, ptr %86, align 8, !tbaa !22
  %88 = fmul double %84, %87
  %89 = call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %82, double noundef %88)
  store i32 %89, ptr %18, align 4, !tbaa !14
  %90 = load i32, ptr %18, align 4, !tbaa !14
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %98, label %92

92:                                               ; preds = %81
  %93 = load i32, ptr %18, align 4, !tbaa !14
  %94 = getelementptr inbounds i8, ptr %19, i64 224
  %95 = getelementptr inbounds %"class.voro::voro_base", ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !23
  %97 = icmp sge i32 %93, %96
  br i1 %97, label %98, label %132

98:                                               ; preds = %92, %81
  %99 = getelementptr inbounds i8, ptr %19, i64 224
  %100 = load i32, ptr %18, align 4, !tbaa !14
  %101 = getelementptr inbounds i8, ptr %19, i64 224
  %102 = getelementptr inbounds %"class.voro::voro_base", ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 4, !tbaa !23
  %104 = call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %99, i32 noundef %100, i32 noundef %103)
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %104, ptr %105, align 4, !tbaa !14
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !14
  %108 = sitofp i32 %107 to double
  %109 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 2
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = fneg double %108
  %114 = call double @llvm.fmuladd.f64(double %113, double %110, double %112)
  store double %114, ptr %111, align 8, !tbaa !9
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !14
  %117 = sitofp i32 %116 to double
  %118 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 1
  %119 = load double, ptr %118, align 8, !tbaa !25
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = fneg double %117
  %123 = call double @llvm.fmuladd.f64(double %122, double %119, double %121)
  store double %123, ptr %120, align 8, !tbaa !9
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !14
  %126 = getelementptr inbounds i8, ptr %19, i64 224
  %127 = getelementptr inbounds %"class.voro::voro_base", ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !23
  %129 = mul nsw i32 %125, %128
  %130 = load i32, ptr %18, align 4, !tbaa !14
  %131 = sub nsw i32 %130, %129
  store i32 %131, ptr %18, align 4, !tbaa !14
  br label %134

132:                                              ; preds = %92
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %133, align 4, !tbaa !14
  br label %134

134:                                              ; preds = %132, %98
  %135 = getelementptr inbounds i8, ptr %19, i64 224
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %19, i64 224
  %139 = getelementptr inbounds %"class.voro::voro_base", ptr %138, i32 0, i32 8
  %140 = load double, ptr %139, align 8, !tbaa !26
  %141 = fmul double %137, %140
  %142 = call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %135, double noundef %141)
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %142, ptr %143, align 4, !tbaa !14
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !14
  %146 = icmp slt i32 %145, 0
  br i1 %146, label %154, label %147

147:                                              ; preds = %134
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !14
  %150 = getelementptr inbounds i8, ptr %19, i64 224
  %151 = getelementptr inbounds %"class.voro::voro_base", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !27
  %153 = icmp sge i32 %149, %152
  br i1 %153, label %154, label %181

154:                                              ; preds = %147, %134
  %155 = getelementptr inbounds i8, ptr %19, i64 224
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load i32, ptr %156, align 4, !tbaa !14
  %158 = getelementptr inbounds i8, ptr %19, i64 224
  %159 = getelementptr inbounds %"class.voro::voro_base", ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !27
  %161 = call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %155, i32 noundef %157, i32 noundef %160)
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %161, ptr %162, align 4, !tbaa !14
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !14
  %165 = sitofp i32 %164 to double
  %166 = getelementptr inbounds %"class.voro::unitcell", ptr %19, i32 0, i32 0
  %167 = load double, ptr %166, align 8, !tbaa !28
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load double, ptr %168, align 8, !tbaa !9
  %170 = fneg double %165
  %171 = call double @llvm.fmuladd.f64(double %170, double %167, double %169)
  store double %171, ptr %168, align 8, !tbaa !9
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !14
  %174 = getelementptr inbounds i8, ptr %19, i64 224
  %175 = getelementptr inbounds %"class.voro::voro_base", ptr %174, i32 0, i32 0
  %176 = load i32, ptr %175, align 8, !tbaa !27
  %177 = mul nsw i32 %173, %176
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = load i32, ptr %178, align 4, !tbaa !14
  %180 = sub nsw i32 %179, %177
  store i32 %180, ptr %178, align 4, !tbaa !14
  br label %183

181:                                              ; preds = %147
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %182, align 4, !tbaa !14
  br label %183

183:                                              ; preds = %181, %154
  %184 = getelementptr inbounds %"class.voro::container_periodic_base", ptr %19, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !29
  %186 = load i32, ptr %18, align 4, !tbaa !14
  %187 = add nsw i32 %186, %185
  store i32 %187, ptr %18, align 4, !tbaa !14
  %188 = getelementptr inbounds %"class.voro::container_periodic_base", ptr %19, i32 0, i32 3
  %189 = load i32, ptr %188, align 4, !tbaa !31
  %190 = load i32, ptr %17, align 4, !tbaa !14
  %191 = add nsw i32 %190, %189
  store i32 %191, ptr %17, align 4, !tbaa !14
  %192 = getelementptr inbounds i8, ptr %19, i64 224
  %193 = getelementptr inbounds %"class.voro::voro_base", ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !27
  %195 = load i32, ptr %18, align 4, !tbaa !14
  %196 = getelementptr inbounds %"class.voro::container_periodic_base", ptr %19, i32 0, i32 6
  %197 = load i32, ptr %196, align 8, !tbaa !32
  %198 = load i32, ptr %17, align 4, !tbaa !14
  %199 = mul nsw i32 %197, %198
  %200 = add nsw i32 %195, %199
  %201 = mul nsw i32 %194, %200
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = load i32, ptr %202, align 4, !tbaa !14
  %204 = add nsw i32 %203, %201
  store i32 %204, ptr %202, align 4, !tbaa !14
  %205 = getelementptr inbounds %"class.voro::container_periodic_base", ptr %19, i32 0, i32 11
  %206 = load ptr, ptr %205, align 8, !tbaa !33
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !14
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i32, ptr %206, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !14
  %212 = getelementptr inbounds %"class.voro::container_periodic_base", ptr %19, i32 0, i32 12
  %213 = load ptr, ptr %212, align 8, !tbaa !34
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !14
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %213, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !14
  %219 = icmp eq i32 %211, %218
  br i1 %219, label %220, label %223

220:                                              ; preds = %183
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = load i32, ptr %221, align 4, !tbaa !14
  call void @_ZN4voro23container_periodic_base19add_particle_memoryEi(ptr noundef nonnull align 8 dereferenceable(384) %19, i32 noundef %222)
  br label %223

223:                                              ; preds = %220, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80), double noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 64}
!12 = !{!"_ZTSN4voro9voro_baseE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 8}
!16 = !{!17, !10, i64 40}
!17 = !{!"_ZTSN4voro8unitcellE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !18, i64 48, !10, i64 208, !10, i64 216}
!18 = !{!"_ZTSN4voro11voronoicellE", !19, i64 0}
!19 = !{!"_ZTSN4voro16voronoicell_baseE", !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, 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, !13, i64 112, !13, i64 116, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!20 = !{!17, !10, i64 32}
!21 = !{!17, !10, i64 24}
!22 = !{!12, !10, i64 56}
!23 = !{!12, !13, i64 4}
!24 = !{!17, !10, i64 16}
!25 = !{!17, !10, i64 8}
!26 = !{!12, !10, i64 48}
!27 = !{!12, !13, i64 0}
!28 = !{!17, !10, i64 0}
!29 = !{!30, !13, i64 304}
!30 = !{!"_ZTSN4voro23container_periodic_baseE", !17, i64 0, !12, i64 224, !13, i64 304, !13, i64 308, !13, i64 312, !13, i64 316, !13, i64 320, !13, i64 324, !13, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !13, i64 376, !13, i64 380}
!31 = !{!30, !13, i64 308}
!32 = !{!30, !13, i64 320}
!33 = !{!30, !6, i64 352}
!34 = !{!30, !6, i64 360}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro23container_periodic_base16put_locate_blockERiRdS2_S2_S1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr nocapture noundef nonnull align 4 dereferenceable(4) %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %5, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %6, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %7) local_unnamed_addr #1 align 2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 224
  %10 = load double, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 288
  %12 = load double, ptr %11, align 8, !tbaa !9
  %13 = fmul double %10, %12
  %14 = tail call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %9, double noundef %13)
  %15 = icmp sgt i32 %14, -1
  %16 = getelementptr inbounds i8, ptr %0, i64 232
  %17 = load i32, ptr %16, align 8
  %.not = icmp slt i32 %14, %17
  %or.cond = select i1 %15, i1 %.not, i1 false
  br i1 %or.cond, label %37, label %18

18:                                               ; preds = %8
  %19 = tail call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %14, i32 noundef %17)
  store i32 %19, ptr %7, align 4, !tbaa !13
  %20 = sitofp i32 %19 to double
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = load double, ptr %21, align 8, !tbaa !14
  %23 = load double, ptr %4, align 8, !tbaa !5
  %24 = fneg double %20
  %25 = tail call double @llvm.fmuladd.f64(double %24, double %22, double %23)
  store double %25, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  %27 = load double, ptr %26, align 8, !tbaa !18
  %28 = load double, ptr %3, align 8, !tbaa !5
  %29 = tail call double @llvm.fmuladd.f64(double %24, double %27, double %28)
  store double %29, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !19
  %32 = load double, ptr %2, align 8, !tbaa !5
  %33 = tail call double @llvm.fmuladd.f64(double %24, double %31, double %32)
  store double %33, ptr %2, align 8, !tbaa !5
  %34 = load i32, ptr %16, align 8, !tbaa !20
  %35 = mul nsw i32 %34, %19
  %36 = sub nsw i32 %14, %35
  br label %38

37:                                               ; preds = %8
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %38

38:                                               ; preds = %37, %18
  %.045 = phi i32 [ %36, %18 ], [ %14, %37 ]
  %39 = load double, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 280
  %41 = load double, ptr %40, align 8, !tbaa !21
  %42 = fmul double %39, %41
  %43 = tail call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %9, double noundef %42)
  %44 = icmp sgt i32 %43, -1
  %45 = getelementptr inbounds i8, ptr %0, i64 228
  %46 = load i32, ptr %45, align 4
  %.not49 = icmp slt i32 %43, %46
  %or.cond53 = select i1 %44, i1 %.not49, i1 false
  br i1 %or.cond53, label %62, label %47

47:                                               ; preds = %38
  %48 = tail call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %43, i32 noundef %46)
  store i32 %48, ptr %6, align 4, !tbaa !13
  %49 = sitofp i32 %48 to double
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  %51 = load double, ptr %50, align 8, !tbaa !22
  %52 = load double, ptr %3, align 8, !tbaa !5
  %53 = fneg double %49
  %54 = tail call double @llvm.fmuladd.f64(double %53, double %51, double %52)
  store double %54, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  %56 = load double, ptr %55, align 8, !tbaa !23
  %57 = load double, ptr %2, align 8, !tbaa !5
  %58 = tail call double @llvm.fmuladd.f64(double %53, double %56, double %57)
  store double %58, ptr %2, align 8, !tbaa !5
  %59 = load i32, ptr %45, align 4, !tbaa !24
  %60 = mul nsw i32 %59, %48
  %61 = sub nsw i32 %43, %60
  br label %63

62:                                               ; preds = %38
  store i32 0, ptr %6, align 4, !tbaa !13
  %.pre = load double, ptr %2, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %62, %47
  %64 = phi double [ %58, %47 ], [ %.pre, %62 ]
  %.0 = phi i32 [ %61, %47 ], [ %43, %62 ]
  %65 = getelementptr inbounds i8, ptr %0, i64 272
  %66 = load double, ptr %65, align 8, !tbaa !25
  %67 = fmul double %64, %66
  %68 = tail call noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80) %9, double noundef %67)
  store i32 %68, ptr %1, align 4, !tbaa !13
  %69 = icmp sgt i32 %68, -1
  %70 = load i32, ptr %9, align 8
  %.not50 = icmp slt i32 %68, %70
  %or.cond54 = select i1 %69, i1 %.not50, i1 false
  br i1 %or.cond54, label %82, label %71

71:                                               ; preds = %63
  %72 = tail call noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %68, i32 noundef %70)
  store i32 %72, ptr %5, align 4, !tbaa !13
  %73 = sitofp i32 %72 to double
  %74 = load double, ptr %0, align 8, !tbaa !26
  %75 = load double, ptr %2, align 8, !tbaa !5
  %76 = fneg double %73
  %77 = tail call double @llvm.fmuladd.f64(double %76, double %74, double %75)
  store double %77, ptr %2, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 8, !tbaa !27
  %79 = mul nsw i32 %78, %72
  %80 = load i32, ptr %1, align 4, !tbaa !13
  %81 = sub nsw i32 %80, %79
  store i32 %81, ptr %1, align 4, !tbaa !13
  br label %83

82:                                               ; preds = %63
  store i32 0, ptr %5, align 4, !tbaa !13
  %.pre55 = load i32, ptr %1, align 4, !tbaa !13
  br label %83

83:                                               ; preds = %82, %71
  %84 = phi i32 [ %.pre55, %82 ], [ %81, %71 ]
  %85 = getelementptr inbounds i8, ptr %0, i64 304
  %86 = load i32, ptr %85, align 8, !tbaa !28
  %87 = add nsw i32 %86, %.0
  %88 = getelementptr inbounds i8, ptr %0, i64 308
  %89 = load i32, ptr %88, align 4, !tbaa !30
  %90 = add nsw i32 %89, %.045
  %91 = load i32, ptr %9, align 8, !tbaa !27
  %92 = getelementptr inbounds i8, ptr %0, i64 320
  %93 = load i32, ptr %92, align 8, !tbaa !31
  %94 = mul nsw i32 %93, %90
  %95 = add nsw i32 %87, %94
  %96 = mul nsw i32 %95, %91
  %97 = add nsw i32 %96, %84
  store i32 %97, ptr %1, align 4, !tbaa !13
  %98 = getelementptr inbounds i8, ptr %0, i64 352
  %99 = load ptr, ptr %98, align 8, !tbaa !32
  %100 = sext i32 %97 to i64
  %101 = getelementptr inbounds i32, ptr %99, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !13
  %103 = getelementptr inbounds i8, ptr %0, i64 360
  %104 = load ptr, ptr %103, align 8, !tbaa !33
  %105 = getelementptr inbounds i32, ptr %104, i64 %100
  %106 = load i32, ptr %105, align 4, !tbaa !13
  %107 = icmp eq i32 %102, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %83
  tail call void @_ZN4voro23container_periodic_base19add_particle_memoryEi(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %97)
  br label %109

109:                                              ; preds = %108, %83
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro9voro_base8step_intEd(ptr noundef nonnull align 8 dereferenceable(80), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro9voro_base8step_divEii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 64}
!10 = !{!"_ZTSN4voro9voro_baseE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_ZTSN4voro8unitcellE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !16, i64 48, !6, i64 208, !6, i64 216}
!16 = !{!"_ZTSN4voro11voronoicellE", !17, i64 0}
!17 = !{!"_ZTSN4voro16voronoicell_baseE", !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !11, i64 112, !11, i64 116, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!18 = !{!15, !6, i64 32}
!19 = !{!15, !6, i64 24}
!20 = !{!10, !11, i64 8}
!21 = !{!10, !6, i64 56}
!22 = !{!15, !6, i64 16}
!23 = !{!15, !6, i64 8}
!24 = !{!10, !11, i64 4}
!25 = !{!10, !6, i64 48}
!26 = !{!15, !6, i64 0}
!27 = !{!10, !11, i64 0}
!28 = !{!29, !11, i64 304}
!29 = !{!"_ZTSN4voro23container_periodic_baseE", !15, i64 0, !10, i64 224, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !11, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !11, i64 376, !11, i64 380}
!30 = !{!29, !11, i64 308}
!31 = !{!29, !11, i64 320}
!32 = !{!29, !12, i64 352}
!33 = !{!29, !12, i64 360}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass