; LLVM IR from yuikns/panther :: ann/src/kd_split.ll (Z11midpt_splitPPdPiRK11ANNorthRectiiRiRdS5_)

; 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.ANNorthRect = type { ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11midpt_splitPPdPiRK11ANNorthRectiiRiRdS5_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = 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 i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds %class.ANNorthRect, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds double, ptr %26, i64 0
  %28 = load double, ptr %27, align 8, !tbaa !13
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.ANNorthRect, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds double, ptr %31, i64 0
  %33 = load double, ptr %32, align 8, !tbaa !13
  %34 = fsub double %28, %33
  store double %34, ptr %18, align 8, !tbaa !13
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %61, %8
  %36 = load i32, ptr %17, align 4, !tbaa !9
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %64

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.ANNorthRect, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = load i32, ptr %17, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !13
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.ANNorthRect, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds double, ptr %49, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = fsub double %46, %53
  store double %54, ptr %19, align 8, !tbaa !13
  %55 = load double, ptr %19, align 8, !tbaa !13
  %56 = load double, ptr %18, align 8, !tbaa !13
  %57 = fcmp ogt double %55, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %39
  %59 = load double, ptr %19, align 8, !tbaa !13
  store double %59, ptr %18, align 8, !tbaa !13
  br label %60

60:                                               ; preds = %58, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %17, align 4, !tbaa !9
  br label %35, !llvm.loop !16

64:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store double -1.000000e+00, ptr %20, align 8, !tbaa !13
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %103, %64
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %69, label %106

69:                                               ; preds = %65
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.ANNorthRect, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %class.ANNorthRect, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !15
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = fsub double %76, %83
  %85 = load double, ptr %18, align 8, !tbaa !13
  %86 = fmul double 0x3FEFF7CED916872B, %85
  %87 = fcmp oge double %84, %86
  br i1 %87, label %88, label %102

88:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = call noundef double @_Z9annSpreadPPdPiii(ptr noundef %89, ptr noundef %90, i32 noundef %91, i32 noundef %92)
  store double %93, ptr %21, align 8, !tbaa !13
  %94 = load double, ptr %21, align 8, !tbaa !13
  %95 = load double, ptr %20, align 8, !tbaa !13
  %96 = fcmp ogt double %94, %95
  br i1 %96, label %97, label %101

97:                                               ; preds = %88
  %98 = load double, ptr %21, align 8, !tbaa !13
  store double %98, ptr %20, align 8, !tbaa !13
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %99, ptr %100, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %97, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  br label %102

102:                                              ; preds = %101, %69
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %17, align 4, !tbaa !9
  br label %65, !llvm.loop !18

106:                                              ; preds = %65
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.ANNorthRect, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %109, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !13
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %class.ANNorthRect, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %117, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !13
  %123 = fadd double %114, %122
  %124 = fdiv double %123, 2.000000e+00
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  store double %124, ptr %125, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = load double, ptr %131, align 8, !tbaa !13
  call void @_Z13annPlaneSplitPPdPiiidRiS2_(ptr noundef %126, ptr noundef %127, i32 noundef %128, i32 noundef %130, double noundef %132, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = sdiv i32 %134, 2
  %136 = icmp sgt i32 %133, %135
  br i1 %136, label %137, label %140

137:                                              ; preds = %106
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %138, ptr %139, align 4, !tbaa !9
  br label %153

140:                                              ; preds = %106
  %141 = load i32, ptr %23, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = sdiv i32 %142, 2
  %144 = icmp slt i32 %141, %143
  br i1 %144, label %145, label %148

145:                                              ; preds = %140
  %146 = load i32, ptr %23, align 4, !tbaa !9
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %146, ptr %147, align 4, !tbaa !9
  br label %152

148:                                              ; preds = %140
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = sdiv i32 %149, 2
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %150, ptr %151, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %148, %145
  br label %153

153:                                              ; preds = %152, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  ret void
}

; 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

declare noundef double @_Z9annSpreadPPdPiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare void @_Z13annPlaneSplitPPdPiiidRiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

attributes #0 = { 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 = { "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 }

!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 8}
!12 = !{!"_ZTS11ANNorthRect", !6, i64 0, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!12, !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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 uwtable
define dso_local void @_Z11midpt_splitPPdPiRK11ANNorthRectiiRiRdS5_(ptr noundef %0, ptr noundef %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef nonnull align 4 dereferenceable(4) %5, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %6, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %7) local_unnamed_addr #0 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load double, ptr %12, align 8, !tbaa !10
  %14 = load ptr, ptr %2, align 8, !tbaa !12
  %15 = load double, ptr %14, align 8, !tbaa !10
  %16 = fsub double %13, %15
  %17 = icmp sgt i32 %4, 1
  br i1 %17, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %8
  %wide.trip.count = zext nneg i32 %4 to i64
  %18 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %18, 1
  %19 = icmp eq i32 %4, 2
  br i1 %19, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %18, -2
  br label %.lr.ph

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph, %.lr.ph.preheader
  %.147.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.147.1, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.04654.unr = phi double [ %16, %.lr.ph.preheader ], [ %.147.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.loopexit.unr-lcssa
  %20 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.unr
  %21 = load double, ptr %20, align 8, !tbaa !10
  %22 = getelementptr inbounds double, ptr %14, i64 %indvars.iv.unr
  %23 = load double, ptr %22, align 8, !tbaa !10
  %24 = fsub double %21, %23
  %25 = fcmp ogt double %24, %.04654.unr
  %.147.epil = select i1 %25, double %24, double %.04654.unr
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.loopexit.unr-lcssa, %8
  %.046.lcssa = phi double [ %16, %8 ], [ %.147.lcssa.ph, %.preheader.loopexit.unr-lcssa ], [ %.147.epil, %.lr.ph.epil ]
  %26 = icmp sgt i32 %4, 0
  br i1 %26, label %.lr.ph58, label %._crit_edge

.lr.ph58:                                         ; preds = %.preheader
  %27 = fmul double %.046.lcssa, 0x3FEFF7CED916872B
  %wide.trip.count63 = zext nneg i32 %4 to i64
  br label %40

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.04654 = phi double [ %16, %.lr.ph.preheader.new ], [ %.147.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %28 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  %29 = load double, ptr %28, align 8, !tbaa !10
  %30 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !10
  %32 = fsub double %29, %31
  %33 = fcmp ogt double %32, %.04654
  %.147 = select i1 %33, double %32, double %.04654
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next
  %35 = load double, ptr %34, align 8, !tbaa !10
  %36 = getelementptr inbounds double, ptr %14, i64 %indvars.iv.next
  %37 = load double, ptr %36, align 8, !tbaa !10
  %38 = fsub double %35, %37
  %39 = fcmp ogt double %38, %.147
  %.147.1 = select i1 %39, double %38, double %.147
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !13

40:                                               ; preds = %.lr.ph58, %54
  %indvars.iv60 = phi i64 [ 0, %.lr.ph58 ], [ %indvars.iv.next61, %54 ]
  %.04456 = phi double [ -1.000000e+00, %.lr.ph58 ], [ %.2, %54 ]
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 %indvars.iv60
  %43 = load double, ptr %42, align 8, !tbaa !10
  %44 = load ptr, ptr %2, align 8, !tbaa !12
  %45 = getelementptr inbounds double, ptr %44, i64 %indvars.iv60
  %46 = load double, ptr %45, align 8, !tbaa !10
  %47 = fsub double %43, %46
  %48 = fcmp ult double %47, %27
  br i1 %48, label %54, label %49

49:                                               ; preds = %40
  %50 = trunc nuw nsw i64 %indvars.iv60 to i32
  %51 = tail call noundef double @_Z9annSpreadPPdPiii(ptr noundef %0, ptr noundef %1, i32 noundef %3, i32 noundef %50)
  %52 = fcmp ogt double %51, %.04456
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store i32 %50, ptr %5, align 4, !tbaa !15
  br label %54

54:                                               ; preds = %49, %53, %40
  %.2 = phi double [ %.04456, %40 ], [ %51, %53 ], [ %.04456, %49 ]
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %wide.trip.count63
  br i1 %exitcond64.not, label %._crit_edge.loopexit, label %40, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %54
  %.pre = load ptr, ptr %2, align 8, !tbaa !12
  %.pre65 = load ptr, ptr %11, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %55 = phi ptr [ %.pre65, %._crit_edge.loopexit ], [ %12, %.preheader ]
  %56 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %14, %.preheader ]
  %57 = load i32, ptr %5, align 4, !tbaa !15
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !10
  %61 = getelementptr inbounds double, ptr %55, i64 %58
  %62 = load double, ptr %61, align 8, !tbaa !10
  %63 = fadd double %60, %62
  %64 = fmul double %63, 5.000000e-01
  store double %64, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @_Z13annPlaneSplitPPdPiiidRiS2_(ptr noundef %0, ptr noundef %1, i32 noundef %3, i32 noundef %57, double noundef %64, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %65 = load i32, ptr %9, align 4, !tbaa !15
  %66 = sdiv i32 %3, 2
  %67 = icmp sgt i32 %65, %66
  %68 = load i32, ptr %10, align 4
  %. = call i32 @llvm.smin.i32(i32 %68, i32 %66)
  %.sink = select i1 %67, i32 %65, i32 %.
  store i32 %.sink, ptr %7, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  ret void
}

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

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

declare noundef double @_Z9annSpreadPPdPiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_Z13annPlaneSplitPPdPiiidRiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 8}
!6 = !{!"_ZTS11ANNorthRect", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = distinct !{!17, !14}


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