; LLVM IR from erincatto/box2d :: src (mover)

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

%struct.b2PlaneSolverResult = type { %struct.b2Vec2, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2CollisionPlane = type { %struct.b2Plane, float, float, i8 }
%struct.b2Plane = type { %struct.b2Vec2, float }

@b2_lengthUnitsPerMeter = external global float, align 4

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, i32 } @b2SolvePlanes(<2 x float> %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca %struct.b2PlaneSolverResult, align 4
  %5 = alloca %struct.b2Vec2, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.b2Vec2, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca i32, align 4
  %21 = alloca { <2 x float>, i32 }, align 8
  store <2 x float> %0, ptr %5, align 4
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %33, %3
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %36

27:                                               ; preds = %22
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds %struct.b2CollisionPlane, ptr %28, i64 %30
  %32 = getelementptr inbounds %struct.b2CollisionPlane, ptr %31, i32 0, i32 2
  store float 0.000000e+00, ptr %32, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %27
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %8, align 4, !tbaa !9
  br label %22, !llvm.loop !17

36:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %37 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !19
  %38 = fmul float 0x3F747AE140000000, %37
  store float %38, ptr %10, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %107, %36
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 20
  br i1 %41, label %42, label %110

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store float 0.000000e+00, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %95, %42
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %98

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.b2CollisionPlane, ptr %49, i64 %51
  store ptr %52, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.b2CollisionPlane, ptr %53, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %54, i64 12, i1 false)
  %55 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %56 = load <2 x float>, ptr %55, align 4
  %57 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %58 = load float, ptr %57, align 4
  %59 = load <2 x float>, ptr %9, align 4
  %60 = call float @b2PlaneSeparation(<2 x float> %56, float %58, <2 x float> %59)
  %61 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !19
  %62 = call float @llvm.fmuladd.f32(float 0x3F747AE140000000, float %61, float %60)
  store float %62, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %63 = load float, ptr %15, align 4, !tbaa !19
  %64 = fneg float %63
  store float %64, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2CollisionPlane, ptr %65, i32 0, i32 2
  %67 = load float, ptr %66, align 4, !tbaa !11
  store float %67, ptr %18, align 4, !tbaa !19
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.b2CollisionPlane, ptr %68, i32 0, i32 2
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = load float, ptr %17, align 4, !tbaa !19
  %72 = fadd float %70, %71
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.b2CollisionPlane, ptr %73, i32 0, i32 1
  %75 = load float, ptr %74, align 4, !tbaa !20
  %76 = call float @b2ClampFloat(float noundef %72, float noundef 0.000000e+00, float noundef %75)
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2CollisionPlane, ptr %77, i32 0, i32 2
  store float %76, ptr %78, align 4, !tbaa !11
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.b2CollisionPlane, ptr %79, i32 0, i32 2
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = load float, ptr %18, align 4, !tbaa !19
  %83 = fsub float %81, %82
  store float %83, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %84 = load float, ptr %17, align 4, !tbaa !19
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.b2CollisionPlane, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.b2Plane, ptr %86, i32 0, i32 0
  %88 = load <2 x float>, ptr %9, align 4
  %89 = load <2 x float>, ptr %87, align 4
  %90 = call <2 x float> @b2MulAdd(<2 x float> %88, float noundef %84, <2 x float> %89)
  store <2 x float> %90, ptr %19, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %91 = load float, ptr %17, align 4, !tbaa !19
  %92 = call float @b2AbsFloat(float noundef %91)
  %93 = load float, ptr %12, align 4, !tbaa !19
  %94 = fadd float %93, %92
  store float %94, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %95

95:                                               ; preds = %48
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  br label %43, !llvm.loop !22

98:                                               ; preds = %47
  %99 = load float, ptr %12, align 4, !tbaa !19
  %100 = load float, ptr %10, align 4, !tbaa !19
  %101 = fcmp olt float %99, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %98
  store i32 5, ptr %20, align 4
  br label %104

103:                                              ; preds = %98
  store i32 0, ptr %20, align 4
  br label %104

104:                                              ; preds = %103, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %105 = load i32, ptr %20, align 4
  switch i32 %105, label %118 [
    i32 0, label %106
    i32 5, label %110
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !9
  br label %39, !llvm.loop !23

110:                                              ; preds = %104, %39
  %111 = getelementptr inbounds %struct.b2PlaneSolverResult, ptr %4, i32 0, i32 0
  %112 = load <2 x float>, ptr %9, align 4
  %113 = load <2 x float>, ptr %5, align 4
  %114 = call <2 x float> @b2Add(<2 x float> %112, <2 x float> %113)
  store <2 x float> %114, ptr %111, align 4
  %115 = getelementptr inbounds %struct.b2PlaneSolverResult, ptr %4, i32 0, i32 1
  %116 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %116, ptr %115, align 4, !tbaa !24
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 4 %4, i64 12, i1 false)
  %117 = load { <2 x float>, i32 }, ptr %21, align 8
  ret { <2 x float>, i32 } %117

118:                                              ; preds = %104
  unreachable
}

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2PlaneSeparation(<2 x float>, float, <2 x float>) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2ClampFloat(float noundef, float noundef, float noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2AbsFloat(float noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Add(<2 x float>, <2 x float>) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint 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 #7 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 16}
!12 = !{!"b2CollisionPlane", !13, i64 0, !15, i64 12, !15, i64 16, !16, i64 20}
!13 = !{!"b2Plane", !14, i64 0, !15, i64 8}
!14 = !{!"b2Vec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!15, !15, i64 0}
!20 = !{!12, !15, i64 12}
!21 = !{i64 0, i64 4, !19, i64 4, i64 4, !19}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = !{!25, !10, i64 8}
!25 = !{!"b2PlaneSolverResult", !14, i64 0, !10, i64 8}


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

%struct.b2CollisionPlane = type { %struct.b2Plane, float, float, i8 }
%struct.b2Plane = type { %struct.b2Vec2, float }
%struct.b2Vec2 = type { float, float }

@b2_lengthUnitsPerMeter = external local_unnamed_addr global float, align 4

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, i32 } @b2SolvePlanes(<2 x float> %0, ptr nocapture noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %2, 0
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %3
  %5 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !5
  %6 = fmul float %5, 0x3F747AE140000000
  br label %.split

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %7 = icmp ult i32 %2, 4
  br i1 %7, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %8 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv.epil, i32 2
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %9 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !5
  %10 = fmul float %9, 0x3F747AE140000000
  br i1 %4, label %.preheader.us.preheader, label %.split

.preheader.us.preheader:                          ; preds = %._crit_edge
  %wide.trip.count67 = zext nneg i32 %2 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %11
  %.sroa.024.050.us = phi <2 x float> [ %26, %11 ], [ zeroinitializer, %.preheader.us.preheader ]
  %.03849.us = phi i32 [ %12, %11 ], [ 0, %.preheader.us.preheader ]
  br label %13

11:                                               ; preds = %._crit_edge47.us
  %12 = add nuw nsw i32 %.03849.us, 1
  %exitcond69.not = icmp eq i32 %12, 20
  br i1 %exitcond69.not, label %.split52.us, label %.preheader.us, !llvm.loop !16

13:                                               ; preds = %.preheader.us, %13
  %indvars.iv64 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next65, %13 ]
  %.sroa.024.145.us = phi <2 x float> [ %.sroa.024.050.us, %.preheader.us ], [ %26, %13 ]
  %.03944.us = phi float [ 0.000000e+00, %.preheader.us ], [ %28, %13 ]
  %14 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv64
  %.sroa.05.0.copyload.us = load <2 x float>, ptr %14, align 4
  %.sroa.26.0..sroa_idx.us = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.26.0.copyload.us = load float, ptr %.sroa.26.0..sroa_idx.us, align 4
  %15 = tail call float @b2PlaneSeparation(<2 x float> %.sroa.05.0.copyload.us, float %.sroa.26.0.copyload.us, <2 x float> %.sroa.024.145.us)
  %16 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !5
  %17 = tail call float @llvm.fmuladd.f32(float %16, float 0x3F747AE140000000, float %15)
  %18 = getelementptr inbounds i8, ptr %14, i64 16
  %19 = load float, ptr %18, align 4, !tbaa !9
  %20 = fsub float %19, %17
  %21 = getelementptr inbounds i8, ptr %14, i64 12
  %22 = load float, ptr %21, align 4, !tbaa !18
  %23 = tail call float @b2ClampFloat(float noundef %20, float noundef 0.000000e+00, float noundef %22)
  store float %23, ptr %18, align 4, !tbaa !9
  %24 = fsub float %23, %19
  %25 = load <2 x float>, ptr %14, align 4
  %26 = tail call <2 x float> @b2MulAdd(<2 x float> %.sroa.024.145.us, float noundef %24, <2 x float> %25)
  %27 = tail call float @b2AbsFloat(float noundef %24)
  %28 = fadd float %.03944.us, %27
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %._crit_edge47.us, label %13, !llvm.loop !19

._crit_edge47.us:                                 ; preds = %13
  %29 = fcmp olt float %28, %10
  br i1 %29, label %.split52.us, label %11

.split:                                           ; preds = %._crit_edge.thread, %._crit_edge
  %30 = phi float [ %6, %._crit_edge.thread ], [ %10, %._crit_edge ]
  %31 = fcmp ogt float %30, 0.000000e+00
  br i1 %31, label %.split52.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.split
  br label %.split52.us

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %32 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv, i32 2
  store float 0.000000e+00, ptr %32, align 4, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %33 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv.next, i32 2
  store float 0.000000e+00, ptr %33, align 4, !tbaa !9
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %34 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv.next.1, i32 2
  store float 0.000000e+00, ptr %34, align 4, !tbaa !9
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %35 = getelementptr inbounds %struct.b2CollisionPlane, ptr %1, i64 %indvars.iv.next.2, i32 2
  store float 0.000000e+00, ptr %35, align 4, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !20

.split52.us:                                      ; preds = %._crit_edge47.us, %11, %.preheader.preheader, %.split
  %.us-phi = phi i32 [ 0, %.split ], [ 20, %.preheader.preheader ], [ %.03849.us, %._crit_edge47.us ], [ 20, %11 ]
  %.us-phi53 = phi <2 x float> [ zeroinitializer, %.split ], [ zeroinitializer, %.preheader.preheader ], [ %26, %11 ], [ %26, %._crit_edge47.us ]
  %36 = tail call <2 x float> @b2Add(<2 x float> %.us-phi53, <2 x float> %0)
  %.fca.0.insert = insertvalue { <2 x float>, i32 } poison, <2 x float> %36, 0
  %.fca.1.insert = insertvalue { <2 x float>, i32 } %.fca.0.insert, i32 %.us-phi, 1
  ret { <2 x float>, i32 } %.fca.1.insert
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2PlaneSeparation(<2 x float>, float, <2 x float>) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2ClampFloat(float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2AbsFloat(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Add(<2 x float>, <2 x float>) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"b2CollisionPlane", !11, i64 0, !6, i64 12, !6, i64 16, !13, i64 20}
!11 = !{!"b2Plane", !12, i64 0, !6, i64 8}
!12 = !{!"b2Vec2", !6, i64 0, !6, i64 4}
!13 = !{!"_Bool", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !6, i64 12}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


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