; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z29most_seperated_points_on_aabbP4Vec2iPiS1_)

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

%union.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }

; 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) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec2_dot4Vec2S_(<2 x float>, <2 x float>) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29most_seperated_points_on_aabbP4Vec2iPiS1_(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca %union.Vec2, align 4
  %16 = alloca %union.Vec2, align 4
  %17 = alloca %union.Vec2, align 4
  %18 = alloca %union.Vec2, align 4
  %19 = alloca %union.Vec2, align 4
  %20 = alloca %union.Vec2, align 4
  %21 = alloca float, align 4
  %22 = alloca %union.Vec2, align 4
  %23 = alloca %union.Vec2, align 4
  %24 = alloca %union.Vec2, align 4
  %25 = alloca %union.Vec2, align 4
  %26 = alloca %union.Vec2, align 4
  %27 = alloca %union.Vec2, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %98, %4
  %29 = load i32, ptr %13, align 4, !tbaa !9
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %101

33:                                               ; preds = %28
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %union.Vec2, ptr %34, i64 %36
  %38 = getelementptr inbounds %struct.anon.1, ptr %37, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %union.Vec2, ptr %40, i64 %42
  %44 = getelementptr inbounds %struct.anon.1, ptr %43, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = fcmp olt float %39, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %33
  %48 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %48, ptr %9, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %47, %33
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %union.Vec2, ptr %50, i64 %52
  %54 = getelementptr inbounds %struct.anon.1, ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %union.Vec2, ptr %56, i64 %58
  %60 = getelementptr inbounds %struct.anon.1, ptr %59, i32 0, i32 0
  %61 = load float, ptr %60, align 4, !tbaa !11
  %62 = fcmp ogt float %55, %61
  br i1 %62, label %63, label %65

63:                                               ; preds = %49
  %64 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %64, ptr %10, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %63, %49
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %union.Vec2, ptr %66, i64 %68
  %70 = getelementptr inbounds %struct.anon.1, ptr %69, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %union.Vec2, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct.anon.1, ptr %75, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = fcmp olt float %71, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %65
  %80 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %80, ptr %11, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %79, %65
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %union.Vec2, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.anon.1, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %union.Vec2, ptr %88, i64 %90
  %92 = getelementptr inbounds %struct.anon.1, ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = fcmp ogt float %87, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %81
  %96 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %96, ptr %12, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %95, %81
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %13, align 4, !tbaa !9
  br label %28, !llvm.loop !12

101:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %union.Vec2, ptr %102, i64 %104
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %105, i64 8, i1 false), !tbaa.struct !14
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds %union.Vec2, ptr %106, i64 %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %109, i64 8, i1 false), !tbaa.struct !14
  %110 = getelementptr inbounds %union.Vec2, ptr %16, i32 0, i32 0
  %111 = load <2 x float>, ptr %110, align 4
  %112 = getelementptr inbounds %union.Vec2, ptr %17, i32 0, i32 0
  %113 = load <2 x float>, ptr %112, align 4
  %114 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %111, <2 x float> %113)
  %115 = getelementptr inbounds %union.Vec2, ptr %15, i32 0, i32 0
  store <2 x float> %114, ptr %115, align 4
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %union.Vec2, ptr %116, i64 %118
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %119, i64 8, i1 false), !tbaa.struct !14
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %union.Vec2, ptr %120, i64 %122
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %123, i64 8, i1 false), !tbaa.struct !14
  %124 = getelementptr inbounds %union.Vec2, ptr %19, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds %union.Vec2, ptr %20, i32 0, i32 0
  %127 = load <2 x float>, ptr %126, align 4
  %128 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %125, <2 x float> %127)
  %129 = getelementptr inbounds %union.Vec2, ptr %18, i32 0, i32 0
  store <2 x float> %128, ptr %129, align 4
  %130 = getelementptr inbounds %union.Vec2, ptr %15, i32 0, i32 0
  %131 = load <2 x float>, ptr %130, align 4
  %132 = getelementptr inbounds %union.Vec2, ptr %18, i32 0, i32 0
  %133 = load <2 x float>, ptr %132, align 4
  %134 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %131, <2 x float> %133)
  store float %134, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %union.Vec2, ptr %135, i64 %137
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %138, i64 8, i1 false), !tbaa.struct !14
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %union.Vec2, ptr %139, i64 %141
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %142, i64 8, i1 false), !tbaa.struct !14
  %143 = getelementptr inbounds %union.Vec2, ptr %23, i32 0, i32 0
  %144 = load <2 x float>, ptr %143, align 4
  %145 = getelementptr inbounds %union.Vec2, ptr %24, i32 0, i32 0
  %146 = load <2 x float>, ptr %145, align 4
  %147 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %144, <2 x float> %146)
  %148 = getelementptr inbounds %union.Vec2, ptr %22, i32 0, i32 0
  store <2 x float> %147, ptr %148, align 4
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds %union.Vec2, ptr %149, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %152, i64 8, i1 false), !tbaa.struct !14
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %union.Vec2, ptr %153, i64 %155
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %156, i64 8, i1 false), !tbaa.struct !14
  %157 = getelementptr inbounds %union.Vec2, ptr %26, i32 0, i32 0
  %158 = load <2 x float>, ptr %157, align 4
  %159 = getelementptr inbounds %union.Vec2, ptr %27, i32 0, i32 0
  %160 = load <2 x float>, ptr %159, align 4
  %161 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %158, <2 x float> %160)
  %162 = getelementptr inbounds %union.Vec2, ptr %25, i32 0, i32 0
  store <2 x float> %161, ptr %162, align 4
  %163 = getelementptr inbounds %union.Vec2, ptr %22, i32 0, i32 0
  %164 = load <2 x float>, ptr %163, align 4
  %165 = getelementptr inbounds %union.Vec2, ptr %25, i32 0, i32 0
  %166 = load <2 x float>, ptr %165, align 4
  %167 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %164, <2 x float> %166)
  store float %167, ptr %21, align 4, !tbaa !15
  %168 = load float, ptr %21, align 4, !tbaa !15
  %169 = load float, ptr %14, align 4, !tbaa !15
  %170 = fcmp ogt float %168, %169
  br i1 %170, label %171, label %176

171:                                              ; preds = %101
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %172, ptr %173, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %174, ptr %175, align 4, !tbaa !9
  br label %181

176:                                              ; preds = %101
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %177, ptr %178, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %179, ptr %180, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %176, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 = { mustprogress 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 #5 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i64 0, i64 8, !11}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}


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

%union.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec2_dot4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z29most_seperated_points_on_aabbP4Vec2iPiS1_(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #2 {
  %5 = icmp sgt i32 %1, 1
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %4
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %4
  %.063.lcssa = phi i32 [ 0, %4 ], [ %.164, %.lr.ph ]
  %.061.lcssa = phi i32 [ 0, %4 ], [ %.162, %.lr.ph ]
  %.059.lcssa = phi i32 [ 0, %4 ], [ %.160, %.lr.ph ]
  %.0.lcssa = phi i32 [ 0, %4 ], [ %.1, %.lr.ph ]
  %6 = sext i32 %.059.lcssa to i64
  %7 = getelementptr inbounds %union.Vec2, ptr %0, i64 %6
  %.sroa.010.0.copyload = load <2 x float>, ptr %7, align 4, !tbaa !5
  %8 = sext i32 %.0.lcssa to i64
  %9 = getelementptr inbounds %union.Vec2, ptr %0, i64 %8
  %.sroa.09.0.copyload = load <2 x float>, ptr %9, align 4, !tbaa !5
  %10 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.010.0.copyload, <2 x float> %.sroa.09.0.copyload)
  %.sroa.07.0.copyload = load <2 x float>, ptr %7, align 4, !tbaa !5
  %.sroa.06.0.copyload = load <2 x float>, ptr %9, align 4, !tbaa !5
  %11 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.07.0.copyload, <2 x float> %.sroa.06.0.copyload)
  %12 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %10, <2 x float> %11)
  %13 = sext i32 %.063.lcssa to i64
  %14 = getelementptr inbounds %union.Vec2, ptr %0, i64 %13
  %.sroa.04.0.copyload = load <2 x float>, ptr %14, align 4, !tbaa !5
  %15 = sext i32 %.061.lcssa to i64
  %16 = getelementptr inbounds %union.Vec2, ptr %0, i64 %15
  %.sroa.03.0.copyload = load <2 x float>, ptr %16, align 4, !tbaa !5
  %17 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.04.0.copyload, <2 x float> %.sroa.03.0.copyload)
  %.sroa.01.0.copyload = load <2 x float>, ptr %14, align 4, !tbaa !5
  %.sroa.0.0.copyload = load <2 x float>, ptr %16, align 4, !tbaa !5
  %18 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.01.0.copyload, <2 x float> %.sroa.0.0.copyload)
  %19 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %17, <2 x float> %18)
  %20 = fcmp ogt float %19, %12
  br i1 %20, label %42, label %43

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.070 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1, %.lr.ph ]
  %.05969 = phi i32 [ 0, %.lr.ph.preheader ], [ %.160, %.lr.ph ]
  %.06168 = phi i32 [ 0, %.lr.ph.preheader ], [ %.162, %.lr.ph ]
  %.06367 = phi i32 [ 0, %.lr.ph.preheader ], [ %.164, %.lr.ph ]
  %21 = getelementptr inbounds %union.Vec2, ptr %0, i64 %indvars.iv
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = sext i32 %.070 to i64
  %24 = getelementptr inbounds %union.Vec2, ptr %0, i64 %23
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = fcmp olt float %22, %25
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  %.1 = select i1 %26, i32 %27, i32 %.070
  %28 = sext i32 %.05969 to i64
  %29 = getelementptr inbounds %union.Vec2, ptr %0, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = fcmp ogt float %22, %30
  %.160 = select i1 %31, i32 %27, i32 %.05969
  %32 = getelementptr inbounds i8, ptr %21, i64 4
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %.06168 to i64
  %35 = getelementptr inbounds %union.Vec2, ptr %0, i64 %34, i32 0, i32 1
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = fcmp olt float %33, %36
  %.162 = select i1 %37, i32 %27, i32 %.06168
  %38 = sext i32 %.06367 to i64
  %39 = getelementptr inbounds %union.Vec2, ptr %0, i64 %38, i32 0, i32 1
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fcmp ogt float %33, %40
  %.164 = select i1 %41, i32 %27, i32 %.06367
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

42:                                               ; preds = %._crit_edge
  store i32 %.063.lcssa, ptr %3, align 4, !tbaa !10
  store i32 %.061.lcssa, ptr %2, align 4, !tbaa !10
  br label %44

43:                                               ; preds = %._crit_edge
  store i32 %.0.lcssa, ptr %2, align 4, !tbaa !10
  store i32 %.059.lcssa, ptr %3, align 4, !tbaa !10
  br label %44

44:                                               ; preds = %43, %42
  ret void
}

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}


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