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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.voro::voronoicell", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %21 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 0
  %22 = load double, ptr %21, align 8, !tbaa !11
  %23 = fdiv double 1.000000e+00, %22
  store double %23, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %24 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 2
  %25 = load double, ptr %24, align 8, !tbaa !16
  %26 = fdiv double 1.000000e+00, %25
  store double %26, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %27 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 5
  %28 = load double, ptr %27, align 8, !tbaa !17
  %29 = fdiv double 1.000000e+00, %28
  store double %29, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %30 = load double, ptr %12, align 8, !tbaa !9
  %31 = load double, ptr %13, align 8, !tbaa !9
  %32 = fmul double %30, %31
  %33 = load double, ptr %14, align 8, !tbaa !9
  %34 = fmul double %32, %33
  store double %34, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 160, ptr %16) #6
  call void @_ZN4voro11voronoicellC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %16)
  %35 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 6
  invoke void @_ZN4voro11voronoicellaSERS0_(ptr noundef nonnull align 8 dereferenceable(160) %16, ptr noundef nonnull align 8 dereferenceable(160) %35)
          to label %36 unwind label %49

36:                                               ; preds = %5
  %37 = load double, ptr %8, align 8, !tbaa !9
  %38 = fmul double %37, 2.000000e+00
  store double %38, ptr %8, align 8, !tbaa !9
  %39 = load double, ptr %9, align 8, !tbaa !9
  %40 = fmul double %39, 2.000000e+00
  store double %40, ptr %9, align 8, !tbaa !9
  %41 = load double, ptr %10, align 8, !tbaa !9
  %42 = fmul double %41, 2.000000e+00
  store double %42, ptr %10, align 8, !tbaa !9
  %43 = load double, ptr %14, align 8, !tbaa !9
  %44 = load double, ptr %10, align 8, !tbaa !9
  %45 = fadd double %44, 1.000000e+00
  %46 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %43, double noundef %45)
          to label %47 unwind label %49

47:                                               ; preds = %36
  br i1 %46, label %53, label %48

48:                                               ; preds = %47
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

49:                                               ; preds = %146, %118, %91, %76, %62, %53, %36, %5
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %17, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %18, align 4
  call void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %16) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %154

53:                                               ; preds = %47
  %54 = load double, ptr %14, align 8, !tbaa !9
  %55 = fneg double %54
  %56 = load double, ptr %10, align 8, !tbaa !9
  %57 = fneg double %56
  %58 = fadd double %57, 1.000000e+00
  %59 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %55, double noundef %58)
          to label %60 unwind label %49

60:                                               ; preds = %53
  br i1 %59, label %62, label %61

61:                                               ; preds = %60
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

62:                                               ; preds = %60
  %63 = load double, ptr %13, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 4
  %65 = load double, ptr %64, align 8, !tbaa !18
  %66 = fneg double %65
  %67 = load double, ptr %13, align 8, !tbaa !9
  %68 = fmul double %66, %67
  %69 = load double, ptr %14, align 8, !tbaa !9
  %70 = fmul double %68, %69
  %71 = load double, ptr %9, align 8, !tbaa !9
  %72 = fadd double %71, 1.000000e+00
  %73 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef 0.000000e+00, double noundef %63, double noundef %70, double noundef %72)
          to label %74 unwind label %49

74:                                               ; preds = %62
  br i1 %73, label %76, label %75

75:                                               ; preds = %74
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

76:                                               ; preds = %74
  %77 = load double, ptr %13, align 8, !tbaa !9
  %78 = fneg double %77
  %79 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 4
  %80 = load double, ptr %79, align 8, !tbaa !18
  %81 = load double, ptr %13, align 8, !tbaa !9
  %82 = fmul double %80, %81
  %83 = load double, ptr %14, align 8, !tbaa !9
  %84 = fmul double %82, %83
  %85 = load double, ptr %9, align 8, !tbaa !9
  %86 = fneg double %85
  %87 = fadd double %86, 1.000000e+00
  %88 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef 0.000000e+00, double noundef %78, double noundef %84, double noundef %87)
          to label %89 unwind label %49

89:                                               ; preds = %76
  br i1 %88, label %91, label %90

90:                                               ; preds = %89
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

91:                                               ; preds = %89
  %92 = load double, ptr %12, align 8, !tbaa !9
  %93 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !19
  %95 = fneg double %94
  %96 = load double, ptr %12, align 8, !tbaa !9
  %97 = fmul double %95, %96
  %98 = load double, ptr %13, align 8, !tbaa !9
  %99 = fmul double %97, %98
  %100 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 1
  %101 = load double, ptr %100, align 8, !tbaa !19
  %102 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 4
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 2
  %105 = load double, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 3
  %107 = load double, ptr %106, align 8, !tbaa !20
  %108 = fmul double %105, %107
  %109 = fneg double %108
  %110 = call double @llvm.fmuladd.f64(double %101, double %103, double %109)
  %111 = load double, ptr %15, align 8, !tbaa !9
  %112 = fmul double %110, %111
  %113 = load double, ptr %8, align 8, !tbaa !9
  %114 = fadd double %113, 1.000000e+00
  %115 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef %92, double noundef %99, double noundef %112, double noundef %114)
          to label %116 unwind label %49

116:                                              ; preds = %91
  br i1 %115, label %118, label %117

117:                                              ; preds = %116
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

118:                                              ; preds = %116
  %119 = load double, ptr %12, align 8, !tbaa !9
  %120 = fneg double %119
  %121 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 1
  %122 = load double, ptr %121, align 8, !tbaa !19
  %123 = load double, ptr %12, align 8, !tbaa !9
  %124 = fmul double %122, %123
  %125 = load double, ptr %13, align 8, !tbaa !9
  %126 = fmul double %124, %125
  %127 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 1
  %128 = load double, ptr %127, align 8, !tbaa !19
  %129 = fneg double %128
  %130 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 4
  %131 = load double, ptr %130, align 8, !tbaa !18
  %132 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 2
  %133 = load double, ptr %132, align 8, !tbaa !16
  %134 = getelementptr inbounds %"class.voro::unitcell", ptr %20, i32 0, i32 3
  %135 = load double, ptr %134, align 8, !tbaa !20
  %136 = fmul double %133, %135
  %137 = call double @llvm.fmuladd.f64(double %129, double %131, double %136)
  %138 = load double, ptr %15, align 8, !tbaa !9
  %139 = fmul double %137, %138
  %140 = load double, ptr %8, align 8, !tbaa !9
  %141 = fneg double %140
  %142 = fadd double %141, 1.000000e+00
  %143 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %16, double noundef %120, double noundef %126, double noundef %139, double noundef %142)
          to label %144 unwind label %49

144:                                              ; preds = %118
  br i1 %143, label %146, label %145

145:                                              ; preds = %144
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

146:                                              ; preds = %144
  %147 = invoke noundef double @_ZN4voro16voronoicell_base6volumeEv(ptr noundef nonnull align 8 dereferenceable(160) %16)
          to label %148 unwind label %49

148:                                              ; preds = %146
  %149 = load double, ptr %15, align 8, !tbaa !9
  %150 = fmul double %147, %149
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  store double %150, ptr %151, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %152

152:                                              ; preds = %148, %145, %117, %90, %75, %61, %48
  call void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %16) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %153 = load i1, ptr %6, align 1
  ret i1 %153

154:                                              ; preds = %49
  %155 = load ptr, ptr %17, align 8
  %156 = load i32, ptr %18, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef) #0 align 2

declare noundef double @_ZN4voro16voronoicell_base6volumeEv(ptr noundef nonnull align 8 dereferenceable(160)) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!12 = !{!"_ZTSN4voro8unitcellE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !10, i64 208, !10, i64 216}
!13 = !{!"_ZTSN4voro11voronoicellE", !14, i64 0}
!14 = !{!"_ZTSN4voro16voronoicell_baseE", !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, 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, !15, i64 112, !15, i64 116, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !10, i64 16}
!17 = !{!12, !10, i64 40}
!18 = !{!12, !10, i64 32}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !10, i64 24}


; 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.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 }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4voro8unitcell16intersects_imageEdddRd(ptr noundef nonnull align 8 dereferenceable(224) %0, double noundef %1, double noundef %2, double noundef %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.voro::voronoicell", align 8
  %7 = load double, ptr %0, align 8, !tbaa !5
  %8 = fdiv double 1.000000e+00, %7
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load double, ptr %9, align 8, !tbaa !14
  %11 = fdiv double 1.000000e+00, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load double, ptr %12, align 8, !tbaa !15
  %14 = fdiv double 1.000000e+00, %13
  %15 = fmul double %8, %11
  %16 = fmul double %15, %14
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #6
  call void @_ZN4voro11voronoicellC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6)
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN4voro11voronoicellaSERS0_(ptr noundef nonnull align 8 dereferenceable(160) %6, ptr noundef nonnull align 8 dereferenceable(160) %17)
          to label %18 unwind label %25

18:                                               ; preds = %5
  %19 = fmul double %1, 2.000000e+00
  %20 = fmul double %2, 2.000000e+00
  %21 = fmul double %3, 2.000000e+00
  %22 = fadd double %21, 1.000000e+00
  %23 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %14, double noundef %22)
          to label %24 unwind label %25

24:                                               ; preds = %18
  br i1 %23, label %27, label %85

25:                                               ; preds = %81, %66, %49, %41, %32, %27, %18, %5
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #6
  resume { ptr, i32 } %26

27:                                               ; preds = %24
  %28 = fneg double %14
  %29 = fsub double 1.000000e+00, %21
  %30 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %28, double noundef %29)
          to label %31 unwind label %25

31:                                               ; preds = %27
  br i1 %30, label %32, label %85

32:                                               ; preds = %31
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = fneg double %34
  %36 = fmul double %11, %35
  %37 = fmul double %14, %36
  %38 = fadd double %20, 1.000000e+00
  %39 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef 0.000000e+00, double noundef %11, double noundef %37, double noundef %38)
          to label %40 unwind label %25

40:                                               ; preds = %32
  br i1 %39, label %41, label %85

41:                                               ; preds = %40
  %42 = fneg double %11
  %43 = load double, ptr %33, align 8, !tbaa !16
  %44 = fmul double %11, %43
  %45 = fmul double %14, %44
  %46 = fsub double 1.000000e+00, %20
  %47 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef 0.000000e+00, double noundef %42, double noundef %45, double noundef %46)
          to label %48 unwind label %25

48:                                               ; preds = %41
  br i1 %47, label %49, label %85

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = fneg double %51
  %53 = fmul double %8, %52
  %54 = fmul double %11, %53
  %55 = load double, ptr %33, align 8, !tbaa !16
  %56 = load double, ptr %9, align 8, !tbaa !14
  %57 = getelementptr inbounds i8, ptr %0, i64 24
  %58 = load double, ptr %57, align 8, !tbaa !18
  %59 = fneg double %56
  %60 = fmul double %58, %59
  %61 = call double @llvm.fmuladd.f64(double %51, double %55, double %60)
  %62 = fmul double %16, %61
  %63 = fadd double %19, 1.000000e+00
  %64 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef %8, double noundef %54, double noundef %62, double noundef %63)
          to label %65 unwind label %25

65:                                               ; preds = %49
  br i1 %64, label %66, label %85

66:                                               ; preds = %65
  %67 = fneg double %8
  %68 = load double, ptr %50, align 8, !tbaa !17
  %69 = fmul double %8, %68
  %70 = fmul double %11, %69
  %71 = fneg double %68
  %72 = load double, ptr %33, align 8, !tbaa !16
  %73 = load double, ptr %9, align 8, !tbaa !14
  %74 = load double, ptr %57, align 8, !tbaa !18
  %75 = fmul double %73, %74
  %76 = call double @llvm.fmuladd.f64(double %71, double %72, double %75)
  %77 = fmul double %16, %76
  %78 = fsub double 1.000000e+00, %19
  %79 = invoke noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160) %6, double noundef %67, double noundef %70, double noundef %77, double noundef %78)
          to label %80 unwind label %25

80:                                               ; preds = %66
  br i1 %79, label %81, label %85

81:                                               ; preds = %80
  %82 = invoke noundef double @_ZN4voro16voronoicell_base6volumeEv(ptr noundef nonnull align 8 dereferenceable(160) %6)
          to label %83 unwind label %25

83:                                               ; preds = %81
  %84 = fmul double %16, %82
  store double %84, ptr %4, align 8, !tbaa !19
  br label %85

85:                                               ; preds = %80, %65, %48, %40, %31, %24, %83
  %.0 = phi i1 [ true, %83 ], [ false, %24 ], [ false, %31 ], [ false, %40 ], [ false, %48 ], [ false, %65 ], [ false, %80 ]
  call void @_ZN4voro16voronoicell_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %6) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #6
  ret i1 %.0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4voro11voronoicell5planeEdddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #0 align 2

declare noundef double @_ZN4voro16voronoicell_base6volumeEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #5

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


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