; LLVM IR from mtsamis/box2d-optimized :: src/particle (b2_particle_system)

; 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.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2ParticleGroupDef = type { i32, i32, %struct.b2Vec2, float, %struct.b2Vec2, float, %class.b2ParticleColor, float, ptr, ptr, i32, float, i32, ptr, float, ptr, ptr }
%class.b2ParticleColor = type { i8, i8, i8, i8 }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6b2AABBC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16b2ParticleSystem22CreateParticleForGroupERK18b2ParticleGroupDefRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem17GetParticleStrideEv(ptr noundef nonnull align 8 dereferenceable(632)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem32CreateParticlesFillShapeForGroupEPK7b2ShapeRK18b2ParticleGroupDefRK11b2Transform(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 4 dereferenceable(16) %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca %struct.b2Transform, align 4
  %11 = alloca %struct.b2AABB, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.b2ParticleGroupDef, ptr %17, i32 0, i32 11
  %19 = load float, ptr %18, align 4, !tbaa !9
  store float %19, ptr %9, align 4, !tbaa !15
  %20 = load float, ptr %9, align 4, !tbaa !15
  %21 = fcmp oeq float %20, 0.000000e+00
  br i1 %21, label %22, label %24

22:                                               ; preds = %4
  %23 = call noundef float @_ZNK16b2ParticleSystem17GetParticleStrideEv(ptr noundef nonnull align 8 dereferenceable(632) %16)
  store float %23, ptr %9, align 4, !tbaa !15
  br label %24

24:                                               ; preds = %22, %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @_ZN11b2TransformC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @_ZN11b2Transform11SetIdentityEv(ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @_ZN6b2AABBC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds ptr, ptr %26, i64 6
  %28 = load ptr, ptr %27, align 8
  call void %28(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %11, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %29 = getelementptr inbounds %struct.b2AABB, ptr %11, i32 0, i32 0
  %30 = getelementptr inbounds %struct.b2Vec2, ptr %29, i32 0, i32 1
  %31 = load float, ptr %30, align 4, !tbaa !18
  %32 = load float, ptr %9, align 4, !tbaa !15
  %33 = fdiv float %31, %32
  %34 = call float @llvm.floor.f32(float %33)
  %35 = load float, ptr %9, align 4, !tbaa !15
  %36 = fmul float %34, %35
  store float %36, ptr %12, align 4, !tbaa !15
  br label %37

37:                                               ; preds = %78, %24
  %38 = load float, ptr %12, align 4, !tbaa !15
  %39 = getelementptr inbounds %struct.b2AABB, ptr %11, i32 0, i32 1
  %40 = getelementptr inbounds %struct.b2Vec2, ptr %39, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !20
  %42 = fcmp olt float %38, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %37
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %82

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %45 = getelementptr inbounds %struct.b2AABB, ptr %11, i32 0, i32 0
  %46 = getelementptr inbounds %struct.b2Vec2, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !21
  %48 = load float, ptr %9, align 4, !tbaa !15
  %49 = fdiv float %47, %48
  %50 = call float @llvm.floor.f32(float %49)
  %51 = load float, ptr %9, align 4, !tbaa !15
  %52 = fmul float %50, %51
  store float %52, ptr %14, align 4, !tbaa !15
  br label %53

53:                                               ; preds = %73, %44
  %54 = load float, ptr %14, align 4, !tbaa !15
  %55 = getelementptr inbounds %struct.b2AABB, ptr %11, i32 0, i32 1
  %56 = getelementptr inbounds %struct.b2Vec2, ptr %55, i32 0, i32 0
  %57 = load float, ptr %56, align 4, !tbaa !22
  %58 = fcmp olt float %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %77

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %61 = load float, ptr %14, align 4, !tbaa !15
  %62 = load float, ptr %12, align 4, !tbaa !15
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %61, float noundef %62)
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %65 = getelementptr inbounds ptr, ptr %64, i64 3
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(8) %15)
  br i1 %67, label %68, label %72

68:                                               ; preds = %60
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = call noundef i32 @_ZN16b2ParticleSystem22CreateParticleForGroupERK18b2ParticleGroupDefRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(632) %16, ptr noundef nonnull align 8 dereferenceable(104) %69, ptr noundef nonnull align 4 dereferenceable(16) %70, ptr noundef nonnull align 4 dereferenceable(8) %15)
  br label %72

72:                                               ; preds = %68, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %73

73:                                               ; preds = %72
  %74 = load float, ptr %9, align 4, !tbaa !15
  %75 = load float, ptr %14, align 4, !tbaa !15
  %76 = fadd float %75, %74
  store float %76, ptr %14, align 4, !tbaa !15
  br label %53, !llvm.loop !23

77:                                               ; preds = %59
  br label %78

78:                                               ; preds = %77
  %79 = load float, ptr %9, align 4, !tbaa !15
  %80 = load float, ptr %12, align 4, !tbaa !15
  %81 = fadd float %80, %79
  store float %81, ptr %12, align 4, !tbaa !15
  br label %37, !llvm.loop !25

82:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11b2TransformC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11b2Transform11SetIdentityEv(ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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" }
attributes #3 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !13, i64 60}
!10 = !{!"_ZTS18b2ParticleGroupDef", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !12, i64 20, !13, i64 28, !14, i64 32, !13, i64 36, !6, i64 40, !6, i64 48, !11, i64 56, !13, i64 60, !11, i64 64, !6, i64 72, !13, i64 80, !6, i64 88, !6, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS15b2ParticleColor", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !13, i64 4}
!19 = !{!"_ZTS6b2AABB", !12, i64 0, !12, i64 8}
!20 = !{!19, !13, i64 12}
!21 = !{!19, !13, i64 0}
!22 = !{!19, !13, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !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"

%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6b2AABBC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16b2ParticleSystem22CreateParticleForGroupERK18b2ParticleGroupDefRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem17GetParticleStrideEv(ptr noundef nonnull align 8 dereferenceable(632)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem32CreateParticlesFillShapeForGroupEPK7b2ShapeRK18b2ParticleGroupDefRK11b2Transform(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 4 dereferenceable(16) %3) local_unnamed_addr #4 align 2 {
  %5 = alloca %struct.b2Transform, align 4
  %6 = alloca %struct.b2AABB, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = getelementptr inbounds i8, ptr %2, i64 60
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = fcmp oeq float %9, 0.000000e+00
  br i1 %10, label %11, label %13

11:                                               ; preds = %4
  %12 = tail call noundef float @_ZNK16b2ParticleSystem17GetParticleStrideEv(ptr noundef nonnull align 8 dereferenceable(632) %0)
  br label %13

13:                                               ; preds = %11, %4
  %.020 = phi float [ %12, %11 ], [ %9, %4 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN11b2TransformC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @_ZN11b2Transform11SetIdentityEv(ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN6b2AABBC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  %14 = load ptr, ptr %1, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %14, i64 48
  %16 = load ptr, ptr %15, align 8
  call void %16(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %6, ptr noundef nonnull align 4 dereferenceable(16) %5)
  %17 = getelementptr inbounds i8, ptr %6, i64 4
  %18 = load float, ptr %17, align 4, !tbaa !16
  %19 = fdiv float %18, %.020
  %20 = call float @llvm.floor.f32(float %19)
  %21 = fmul float %.020, %20
  %22 = getelementptr inbounds i8, ptr %6, i64 8
  %23 = getelementptr inbounds i8, ptr %6, i64 12
  %24 = load float, ptr %23, align 4, !tbaa !18
  %25 = fcmp olt float %21, %24
  br i1 %25, label %.lr.ph25.preheader, label %._crit_edge26

.lr.ph25.preheader:                               ; preds = %13
  %.pre = load float, ptr %22, align 4, !tbaa !19
  br label %.lr.ph25

._crit_edge26:                                    ; preds = %._crit_edge, %13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  ret void

.lr.ph25:                                         ; preds = %.lr.ph25.preheader, %._crit_edge
  %26 = phi float [ %33, %._crit_edge ], [ %24, %.lr.ph25.preheader ]
  %27 = phi float [ %34, %._crit_edge ], [ %.pre, %.lr.ph25.preheader ]
  %.01923 = phi float [ %35, %._crit_edge ], [ %21, %.lr.ph25.preheader ]
  %28 = load float, ptr %6, align 4, !tbaa !20
  %29 = fdiv float %28, %.020
  %30 = call float @llvm.floor.f32(float %29)
  %31 = fmul float %.020, %30
  %32 = fcmp olt float %31, %27
  br i1 %32, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %43
  %.pre27 = load float, ptr %23, align 4, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph25
  %33 = phi float [ %.pre27, %._crit_edge.loopexit ], [ %26, %.lr.ph25 ]
  %34 = phi float [ %45, %._crit_edge.loopexit ], [ %27, %.lr.ph25 ]
  %35 = fadd float %.020, %.01923
  %36 = fcmp olt float %35, %33
  br i1 %36, label %.lr.ph25, label %._crit_edge26, !llvm.loop !21

.lr.ph:                                           ; preds = %.lr.ph25, %43
  %.022 = phi float [ %44, %43 ], [ %31, %.lr.ph25 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %.022, float noundef %.01923)
  %37 = load ptr, ptr %1, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(8) %7)
  br i1 %40, label %41, label %43

41:                                               ; preds = %.lr.ph
  %42 = call noundef i32 @_ZN16b2ParticleSystem22CreateParticleForGroupERK18b2ParticleGroupDefRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %7)
  br label %43

43:                                               ; preds = %41, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %44 = fadd float %.020, %.022
  %45 = load float, ptr %22, align 4, !tbaa !19
  %46 = fcmp olt float %44, %45
  br i1 %46, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !23
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11b2TransformC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11b2Transform11SetIdentityEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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" }
attributes #3 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !11, i64 60}
!6 = !{!"_ZTS18b2ParticleGroupDef", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !10, i64 20, !11, i64 28, !12, i64 32, !11, i64 36, !13, i64 40, !13, i64 48, !7, i64 56, !11, i64 60, !7, i64 64, !13, i64 72, !11, i64 80, !13, i64 88, !13, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6b2Vec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTS15b2ParticleColor", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !9, i64 0}
!16 = !{!17, !11, i64 4}
!17 = !{!"_ZTS6b2AABB", !10, i64 0, !10, i64 8}
!18 = !{!17, !11, i64 12}
!19 = !{!17, !11, i64 8}
!20 = !{!17, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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