; LLVM IR from Sopiro/Muli :: src/collision/polytope.ll (ZNK4muli8Polytope14GetClosestEdgeEv)

; 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.muli::PolytopeEdge" = type { i32, float, %"struct.muli::Vec2" }
%"struct.muli::Vec2" = type { float, float }
%"struct.muli::Polytope" = type { %"class.muli::GrowableArray" }
%"class.muli::GrowableArray" = type { ptr, [8 x %"struct.muli::Vec2"], i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local { i64, <2 x float> } @_ZNK4muli8Polytope14GetClosestEdgeEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #0 align 2 {
  %2 = alloca %"struct.muli::PolytopeEdge", align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca %"struct.muli::Vec2", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.muli::Vec2", align 4
  %12 = alloca %"struct.muli::Vec2", align 4
  %13 = alloca %"struct.muli::Vec2", align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.muli::Vec2", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 -1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store float 0x47EFFFFFE0000000, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %17 = getelementptr inbounds %"struct.muli::Polytope", ptr %16, i32 0, i32 0
  %18 = call noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80) %17)
  %19 = sub nsw i32 %18, 1
  store i32 %19, 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 %20

20:                                               ; preds = %54, %1
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = getelementptr inbounds %"struct.muli::Polytope", ptr %16, i32 0, i32 0
  %23 = call noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  %24 = icmp slt i32 %21, %23
  br i1 %24, label %26, label %25

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

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %27 = getelementptr inbounds %"struct.muli::Polytope", ptr %16, i32 0, i32 0
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EEixEi(ptr noundef nonnull align 8 dereferenceable(80) %27, i32 noundef %28)
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %30 = getelementptr inbounds %"struct.muli::Polytope", ptr %16, i32 0, i32 0
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EEixEi(ptr noundef nonnull align 8 dereferenceable(80) %30, i32 noundef %31)
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %35, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %36 = call <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 1.000000e+00)
  store <2 x float> %36, ptr %13, align 4
  %37 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %37, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %38)
  store float %39, ptr %14, align 4, !tbaa !11
  %40 = load float, ptr %14, align 4, !tbaa !11
  %41 = fcmp olt float %40, 0.000000e+00
  br i1 %41, label %42, label %46

42:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %43 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %43, ptr %15, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %44 = load float, ptr %14, align 4, !tbaa !11
  %45 = fneg float %44
  store float %45, ptr %14, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %42, %26
  %47 = load float, ptr %14, align 4, !tbaa !11
  %48 = load float, ptr %5, align 4, !tbaa !11
  %49 = fcmp olt float %47, %48
  br i1 %49, label %50, label %53

50:                                               ; preds = %46
  %51 = load float, ptr %14, align 4, !tbaa !11
  store float %51, ptr %5, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !13
  %52 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %52, ptr %4, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %50, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %55, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !9
  br label %20, !llvm.loop !14

58:                                               ; preds = %25
  %59 = getelementptr inbounds %"struct.muli::PolytopeEdge", ptr %2, i32 0, i32 0
  %60 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %60, ptr %59, align 4, !tbaa !16
  %61 = getelementptr inbounds %"struct.muli::PolytopeEdge", ptr %2, i32 0, i32 1
  %62 = load float, ptr %5, align 4, !tbaa !11
  store float %62, ptr %61, align 4, !tbaa !19
  %63 = getelementptr inbounds %"struct.muli::PolytopeEdge", ptr %2, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %64 = load { i64, <2 x float> }, ptr %2, align 4
  ret { i64, <2 x float> } %64
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 4, !11, i64 4, i64 4, !11}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN4muli12PolytopeEdgeE", !10, i64 0, !12, i64 4, !18, i64 8}
!18 = !{!"_ZTSN4muli4Vec2E", !12, i64 0, !12, i64 4}
!19 = !{!17, !12, i64 4}


; 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.muli::Vec2" = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local { i64, <2 x float> } @_ZNK4muli8Polytope14GetClosestEdgeEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.muli::Vec2", align 8
  %3 = alloca %"struct.muli::Vec2", align 8
  %4 = alloca %"struct.muli::Vec2", align 8
  %5 = tail call noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %6 = tail call noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %8 = add nsw i32 %5, -1
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %24
  %9 = bitcast float %.120 to i32
  %10 = zext i32 %9 to i64
  %11 = shl nuw i64 %10, 32
  %12 = zext i32 %.1 to i64
  %13 = or disjoint i64 %11, %12
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %1
  %.sroa.017.0.lcssa = phi <2 x float> [ zeroinitializer, %1 ], [ %.sroa.017.1, %._crit_edge.loopexit ]
  %.sroa.016.0.insert.insert = phi i64 [ 9187343239835811839, %1 ], [ %13, %._crit_edge.loopexit ]
  %.fca.0.insert = insertvalue { i64, <2 x float> } poison, i64 %.sroa.016.0.insert.insert, 0
  %.fca.1.insert = insertvalue { i64, <2 x float> } %.fca.0.insert, <2 x float> %.sroa.017.0.lcssa, 1
  ret { i64, <2 x float> } %.fca.1.insert

.lr.ph:                                           ; preds = %.lr.ph.preheader, %24
  %.sroa.017.029 = phi <2 x float> [ %.sroa.017.1, %24 ], [ zeroinitializer, %.lr.ph.preheader ]
  %.01828 = phi i32 [ %.1, %24 ], [ -1, %.lr.ph.preheader ]
  %.01927 = phi float [ %.120, %24 ], [ 0x47EFFFFFE0000000, %.lr.ph.preheader ]
  %.02126 = phi i32 [ %26, %24 ], [ 0, %.lr.ph.preheader ]
  %.02225 = phi i32 [ %.02126, %24 ], [ %8, %.lr.ph.preheader ]
  %14 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EEixEi(ptr noundef nonnull align 8 dereferenceable(80) %0, i32 noundef %.02225)
  %15 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EEixEi(ptr noundef nonnull align 8 dereferenceable(80) %0, i32 noundef %.02126)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %16 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %16, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %17 = call <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 1.000000e+00)
  store <2 x float> %17, ptr %4, align 8
  %18 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %18, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %19 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %20 = fcmp olt float %19, 0.000000e+00
  br i1 %20, label %21, label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph
  %.sroa.017.0.copyload.pre = load <2 x float>, ptr %3, align 8
  br label %24

21:                                               ; preds = %.lr.ph
  %22 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %23 = fneg float %19
  br label %24

24:                                               ; preds = %.lr.ph._crit_edge, %21
  %.sroa.017.0.copyload = phi <2 x float> [ %22, %21 ], [ %.sroa.017.0.copyload.pre, %.lr.ph._crit_edge ]
  %.0 = phi float [ %23, %21 ], [ %19, %.lr.ph._crit_edge ]
  %25 = fcmp olt float %.0, %.01927
  %.120 = select i1 %25, float %.0, float %.01927
  %.1 = select i1 %25, i32 %.02225, i32 %.01828
  %.sroa.017.1 = select i1 %25, <2 x float> %.sroa.017.0.copyload, <2 x float> %.sroa.017.029
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %26 = add nuw nsw i32 %.02126, 1
  %27 = call noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !5
}

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK4muli13GrowableArrayINS_4Vec2ELi8EE5CountEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass