; LLVM IR from ebirenbaum/ParticleSolver :: gpu/src/particlesystem.ll (ZN14ParticleSystem16setParticleToAddE6float3S0_f)

; 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.float3 = type { float, float, float }
%struct.float4 = type { float, float, float, float }
%struct.int2 = type { i32, i32 }
%class.ParticleSystem = type <{ i8, [3 x i8], float, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, %struct.SimParams, %struct.uint3, i32, i32, %"class.std::deque", %"class.std::deque", %"class.std::vector", %"class.std::vector.3", %struct.int3, %struct.int3, i32, [4 x i8] }>
%struct.SimParams = type { %struct.float3, float, float, %struct.uint3, i32, %struct.float3, %struct.float3, i32, i32 }
%struct.uint3 = type { i32, i32, i32 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<float4, std::allocator<float4>>::_Deque_impl" }
%"struct.std::_Deque_base<float4, std::allocator<float4>>::_Deque_impl" = type { %"struct.std::_Deque_base<float4, std::allocator<float4>>::_Deque_impl_data" }
%"struct.std::_Deque_base<float4, std::allocator<float4>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int2, std::allocator<int2>>::_Vector_impl" }
%"struct.std::_Vector_base<int2, std::allocator<int2>>::_Vector_impl" = type { %"struct.std::_Vector_base<int2, std::allocator<int2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int2, std::allocator<int2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<float4, std::allocator<float4>>::_Vector_impl" }
%"struct.std::_Vector_base<float4, std::allocator<float4>>::_Vector_impl" = type { %"struct.std::_Vector_base<float4, std::allocator<float4>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float4, std::allocator<float4>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.int3 = type { i32, i32, i32 }

@_ZL6colors = external hidden global [8 x %struct.float3], align 16

; 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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float>, float, float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden i64 @_ZL9make_int2ii(i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem16setParticleToAddE6float3S0_f(ptr noundef nonnull align 8 dereferenceable(412) %0, <2 x float> %1, float %2, <2 x float> %3, float %4, float noundef %5) #5 align 2 {
  %7 = alloca %struct.float3, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca %struct.float3, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %struct.float4, align 16
  %15 = alloca %struct.float3, align 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca %struct.float4, align 16
  %18 = alloca %struct.float3, align 4
  %19 = alloca { <2 x float>, float }, align 4
  %20 = alloca %struct.int2, align 8
  %21 = alloca %struct.float4, align 16
  %22 = alloca %struct.float3, align 4
  %23 = alloca { <2 x float>, float }, align 4
  %24 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  store <2 x float> %1, ptr %24, align 4
  %25 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  store float %2, ptr %25, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %8, i64 12, i1 false)
  %26 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  store <2 x float> %3, ptr %26, align 4
  %27 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  store float %4, ptr %27, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %10, i64 12, i1 false)
  store ptr %0, ptr %11, align 8, !tbaa !5
  store float %5, ptr %12, align 4, !tbaa !9
  %28 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %29 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 2
  %30 = load float, ptr %29, align 4, !tbaa !11
  %31 = fmul float %30, 0x3F847AE140000000
  store float %31, ptr %13, align 4, !tbaa !9
  %32 = call noundef float @_Z5frandv()
  %33 = call float @llvm.fmuladd.f32(float %32, float 2.000000e+00, float -1.000000e+00)
  %34 = load float, ptr %13, align 4, !tbaa !9
  %35 = getelementptr inbounds %struct.float3, ptr %7, i32 0, i32 0
  %36 = load float, ptr %35, align 4, !tbaa !33
  %37 = call float @llvm.fmuladd.f32(float %33, float %34, float %36)
  store float %37, ptr %35, align 4, !tbaa !33
  %38 = call noundef float @_Z5frandv()
  %39 = call float @llvm.fmuladd.f32(float %38, float 2.000000e+00, float -1.000000e+00)
  %40 = load float, ptr %13, align 4, !tbaa !9
  %41 = getelementptr inbounds %struct.float3, ptr %7, i32 0, i32 1
  %42 = load float, ptr %41, align 4, !tbaa !34
  %43 = call float @llvm.fmuladd.f32(float %39, float %40, float %42)
  store float %43, ptr %41, align 4, !tbaa !34
  %44 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 19
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %7, i64 12, i1 false), !tbaa.struct !35
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %15, i64 12, i1 false)
  %45 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %46 = load <2 x float>, ptr %45, align 4
  %47 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %48 = load float, ptr %47, align 4
  %49 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %46, float %48, float noundef 1.000000e+00)
  %50 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %51 = extractvalue { <2 x float>, <2 x float> } %49, 0
  store <2 x float> %51, ptr %50, align 16
  %52 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %53 = extractvalue { <2 x float>, <2 x float> } %49, 1
  store <2 x float> %53, ptr %52, align 8
  call void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %44, ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  %54 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 19
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !35
  %55 = load float, ptr %12, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %18, i64 12, i1 false)
  %56 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 0
  %57 = load <2 x float>, ptr %56, align 4
  %58 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 1
  %59 = load float, ptr %58, align 4
  %60 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %57, float %59, float noundef %55)
  %61 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %62 = extractvalue { <2 x float>, <2 x float> } %60, 0
  store <2 x float> %62, ptr %61, align 16
  %63 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %64 = extractvalue { <2 x float>, <2 x float> } %60, 1
  store <2 x float> %64, ptr %63, align 8
  call void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %54, ptr noundef nonnull align 16 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  %65 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %66 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !36
  %68 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 4
  %69 = load i32, ptr %68, align 4, !tbaa !36
  %70 = add i32 %69, 1
  %71 = call i64 @_ZL9make_int2ii(i32 noundef %67, i32 noundef %70)
  store i64 %71, ptr %20, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %72 = getelementptr inbounds %class.ParticleSystem, ptr %28, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %73 = call i32 @rand() #8
  %74 = srem i32 %73, 8
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %76, i64 12, i1 false), !tbaa.struct !35
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %22, i64 12, i1 false)
  %77 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 0
  %78 = load <2 x float>, ptr %77, align 4
  %79 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 1
  %80 = load float, ptr %79, align 4
  %81 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %78, float %80, float noundef 1.000000e+00)
  %82 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %83 = extractvalue { <2 x float>, <2 x float> } %81, 0
  store <2 x float> %83, ptr %82, align 16
  %84 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %85 = extractvalue { <2 x float>, <2 x float> } %81, 1
  store <2 x float> %85, ptr %84, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5frandv() #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: nounwind
declare i32 @rand() #7

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 #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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind "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 #8 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS14ParticleSystem", !13, i64 0, !10, i64 4, !14, i64 8, !14, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !14, i64 72, !14, i64 76, !6, i64 80, !15, i64 88, !17, i64 156, !14, i64 168, !14, i64 172, !18, i64 176, !18, i64 256, !24, i64 336, !28, i64 360, !32, i64 384, !32, i64 396, !14, i64 408}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS9SimParams", !16, i64 0, !10, i64 12, !10, i64 16, !17, i64 20, !14, i64 32, !16, i64 36, !16, i64 48, !14, i64 60, !14, i64 64}
!16 = !{!"_ZTS6float3", !10, i64 0, !10, i64 4, !10, i64 8}
!17 = !{!"_ZTS5uint3", !14, i64 0, !14, i64 4, !14, i64 8}
!18 = !{!"_ZTSSt5dequeI6float4SaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt11_Deque_baseI6float4SaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE11_Deque_implE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE16_Deque_impl_dataE", !6, i64 0, !22, i64 8, !23, i64 16, !23, i64 48}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSSt15_Deque_iteratorI6float4RS0_PS0_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt6vectorI4int2SaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI4int2SaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorI6float4SaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseI6float4SaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTS4int3", !14, i64 0, !14, i64 4, !14, i64 8}
!33 = !{!16, !10, i64 0}
!34 = !{!16, !10, i64 4}
!35 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!36 = !{!12, !14, i64 12}


; 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.float3 = type { float, float, float }
%struct.float4 = type { float, float, float, float }
%struct.int2 = type { i32, i32 }

@_ZL6colors = external hidden local_unnamed_addr global [8 x %struct.float3], align 16

; 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 nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float>, float, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden i64 @_ZL9make_int2ii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem16setParticleToAddE6float3S0_f(ptr noundef nonnull align 8 dereferenceable(412) %0, <2 x float> %1, float %2, <2 x float> %3, float %4, float noundef %5) local_unnamed_addr #4 align 2 {
  %7 = alloca %struct.float4, align 16
  %8 = alloca %struct.float4, align 16
  %9 = alloca %struct.int2, align 8
  %10 = alloca %struct.float4, align 16
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = fmul float %12, 0x3F847AE140000000
  %14 = tail call noundef float @_Z5frandv()
  %15 = tail call noundef float @_Z5frandv()
  %16 = insertelement <2 x float> poison, float %14, i64 0
  %17 = insertelement <2 x float> %16, float %15, i64 1
  %18 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %17, <2 x float> <float 2.000000e+00, float 2.000000e+00>, <2 x float> <float -1.000000e+00, float -1.000000e+00>)
  %19 = insertelement <2 x float> poison, float %13, i64 0
  %20 = shufflevector <2 x float> %19, <2 x float> poison, <2 x i32> zeroinitializer
  %21 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %18, <2 x float> %20, <2 x float> %1)
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %23 = tail call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %21, float %2, float noundef 1.000000e+00)
  %24 = extractvalue { <2 x float>, <2 x float> } %23, 0
  store <2 x float> %24, ptr %7, align 16
  %25 = getelementptr inbounds i8, ptr %7, i64 8
  %26 = extractvalue { <2 x float>, <2 x float> } %23, 1
  store <2 x float> %26, ptr %25, align 8
  call void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %27 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %3, float %4, float noundef %5)
  %28 = extractvalue { <2 x float>, <2 x float> } %27, 0
  store <2 x float> %28, ptr %8, align 16
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = extractvalue { <2 x float>, <2 x float> } %27, 1
  store <2 x float> %30, ptr %29, align 8
  call void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 16 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %31 = getelementptr inbounds i8, ptr %0, i64 336
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 12
  %33 = load i32, ptr %32, align 4, !tbaa !31
  %34 = add i32 %33, 1
  %35 = call i64 @_ZL9make_int2ii(i32 noundef %33, i32 noundef %34)
  store i64 %35, ptr %9, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %36 = getelementptr inbounds i8, ptr %0, i64 360
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %37 = call i32 @rand() #7
  %38 = srem i32 %37, 8
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %39
  %.sroa.01.0.copyload = load <2 x float>, ptr %40, align 4
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 8
  %.sroa.22.0.copyload = load float, ptr %.sroa.22.0..sroa_idx, align 4, !tbaa !32
  %41 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %.sroa.01.0.copyload, float %.sroa.22.0.copyload, float noundef 1.000000e+00)
  %42 = extractvalue { <2 x float>, <2 x float> } %41, 0
  store <2 x float> %42, ptr %10, align 16
  %43 = getelementptr inbounds i8, ptr %10, i64 8
  %44 = extractvalue { <2 x float>, <2 x float> } %41, 1
  store <2 x float> %44, ptr %43, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5frandv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 #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"="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 "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 nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 4}
!6 = !{!"_ZTS14ParticleSystem", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !12, i64 80, !13, i64 88, !15, i64 156, !11, i64 168, !11, i64 172, !16, i64 176, !16, i64 256, !22, i64 336, !26, i64 360, !30, i64 384, !30, i64 396, !11, i64 408}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTS9SimParams", !14, i64 0, !10, i64 12, !10, i64 16, !15, i64 20, !11, i64 32, !14, i64 36, !14, i64 48, !11, i64 60, !11, i64 64}
!14 = !{!"_ZTS6float3", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!"_ZTS5uint3", !11, i64 0, !11, i64 4, !11, i64 8}
!16 = !{!"_ZTSSt5dequeI6float4SaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt11_Deque_baseI6float4SaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE11_Deque_implE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE16_Deque_impl_dataE", !12, i64 0, !20, i64 8, !21, i64 16, !21, i64 48}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTSSt15_Deque_iteratorI6float4RS0_PS0_E", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!22 = !{!"_ZTSSt6vectorI4int2SaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI4int2SaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!"_ZTSSt6vectorI6float4SaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI6float4SaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!30 = !{!"_ZTS4int3", !11, i64 0, !11, i64 4, !11, i64 8}
!31 = !{!6, !11, i64 12}
!32 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass