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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL11make_float3fff(float noundef, float noundef, float noundef) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystemC2Ef5uint3j4int3S1_i(ptr noundef nonnull align 8 dereferenceable(412) %0, float noundef %1, i64 %2, i32 %3, i32 noundef %4, i64 %5, i32 %6, ptr noundef byval(%struct.int3) align 8 %7, i32 noundef %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %struct.uint3, align 4
  %11 = alloca { i64, i32 }, align 4
  %12 = alloca %struct.int3, align 4
  %13 = alloca { i64, i32 }, align 4
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %struct.float3, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca float, align 4
  %23 = alloca %struct.float3, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %struct.float3, align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 0
  store i64 %2, ptr %27, align 4
  %28 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 1
  store i32 %3, ptr %28, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %11, i64 12, i1 false)
  %29 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 0
  store i64 %5, ptr %29, align 4
  %30 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 1
  store i32 %6, ptr %30, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %13, i64 12, i1 false)
  store ptr %0, ptr %14, align 8, !tbaa !5
  store float %1, ptr %15, align 4, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !11
  store i32 %8, ptr %17, align 4, !tbaa !11
  %31 = load ptr, ptr %14, align 8
  %32 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 0
  store i8 0, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 2
  %34 = load float, ptr %15, align 4, !tbaa !9
  store float %34, ptr %33, align 4, !tbaa !34
  %35 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 3
  %36 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %36, ptr %35, align 8, !tbaa !35
  %37 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 4
  store i32 0, ptr %37, align 4, !tbaa !36
  %38 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 13
  store i32 0, ptr %38, align 4, !tbaa !37
  %39 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 14
  store ptr null, ptr %39, align 8, !tbaa !38
  %40 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %41 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !39
  %42 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 18
  store i32 0, ptr %42, align 4, !tbaa !40
  %43 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 19
  call void @_ZNSt5dequeI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %43)
  %44 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 20
  invoke void @_ZNSt5dequeI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %44)
          to label %45 unwind label %101

45:                                               ; preds = %9
  %46 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 21
  call void @_ZNSt6vectorI4int2SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %47 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 22
  call void @_ZNSt6vectorI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %48 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !39
  %49 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %7, i64 12, i1 false), !tbaa.struct !39
  %50 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 25
  %51 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %51, ptr %50, align 8, !tbaa !41
  %52 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 16
  %53 = getelementptr inbounds %struct.uint3, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 4, !tbaa !42
  %55 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 16
  %56 = getelementptr inbounds %struct.uint3, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !43
  %58 = mul i32 %54, %57
  %59 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 16
  %60 = getelementptr inbounds %struct.uint3, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !44
  %62 = mul i32 %58, %61
  %63 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 17
  store i32 %62, ptr %63, align 8, !tbaa !45
  %64 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 12
  store i32 18, ptr %64, align 8, !tbaa !46
  %65 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 16
  %66 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %67 = getelementptr inbounds %struct.SimParams, ptr %66, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %65, i64 12, i1 false), !tbaa.struct !39
  %68 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 17
  %69 = load i32, ptr %68, align 8, !tbaa !45
  %70 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %71 = getelementptr inbounds %struct.SimParams, ptr %70, i32 0, i32 4
  store i32 %69, ptr %71, align 8, !tbaa !47
  %72 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 4
  %73 = load i32, ptr %72, align 4, !tbaa !36
  %74 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %75 = getelementptr inbounds %struct.SimParams, ptr %74, i32 0, i32 7
  store i32 %73, ptr %75, align 4, !tbaa !48
  %76 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 2
  %77 = load float, ptr %76, align 4, !tbaa !34
  %78 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %79 = getelementptr inbounds %struct.SimParams, ptr %78, i32 0, i32 2
  store float %77, ptr %79, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  %80 = invoke { <2 x float>, float } @_ZL11make_float3fff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %81 unwind label %105

81:                                               ; preds = %45
  store { <2 x float>, float } %80, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %21, i64 12, i1 false)
  %82 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %83 = getelementptr inbounds %struct.SimParams, ptr %82, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %84 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %85 = getelementptr inbounds %struct.SimParams, ptr %84, i32 0, i32 2
  %86 = load float, ptr %85, align 8, !tbaa !49
  %87 = fmul float %86, 2.000000e+00
  store float %87, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  %88 = load float, ptr %22, align 4, !tbaa !9
  %89 = invoke { <2 x float>, float } @_Z11make_float3f(float noundef %88)
          to label %90 unwind label %109

90:                                               ; preds = %81
  store { <2 x float>, float } %89, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %24, i64 12, i1 false)
  %91 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %92 = getelementptr inbounds %struct.SimParams, ptr %91, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %93 = invoke { <2 x float>, float } @_ZL11make_float3fff(float noundef 0.000000e+00, float noundef 0xC0239999A0000000, float noundef 0.000000e+00)
          to label %94 unwind label %113

94:                                               ; preds = %90
  store { <2 x float>, float } %93, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %26, i64 12, i1 false)
  %95 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %96 = getelementptr inbounds %struct.SimParams, ptr %95, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %96, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  %97 = getelementptr inbounds %class.ParticleSystem, ptr %31, i32 0, i32 15
  %98 = getelementptr inbounds %struct.SimParams, ptr %97, i32 0, i32 1
  store float 1.000000e+00, ptr %98, align 4, !tbaa !51
  %99 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @_ZN14ParticleSystem5_initEjj(ptr noundef nonnull align 8 dereferenceable(412) %31, i32 noundef 0, i32 noundef %99)
          to label %100 unwind label %117

100:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  ret void

101:                                              ; preds = %9
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %18, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %19, align 4
  br label %123

105:                                              ; preds = %45
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %18, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  br label %122

109:                                              ; preds = %81
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %18, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  br label %121

113:                                              ; preds = %90
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %18, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  br label %121

117:                                              ; preds = %94
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %18, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %19, align 4
  br label %121

121:                                              ; preds = %117, %113, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %122

122:                                              ; preds = %121, %105
  call void @_ZNSt6vectorI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  call void @_ZNSt6vectorI4int2SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  call void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %44) #7
  br label %123

123:                                              ; preds = %122, %101
  call void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %43) #7
  br label %124

124:                                              ; preds = %123
  %125 = load ptr, ptr %18, align 8
  %126 = load i32, ptr %19, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z11make_float3f(float noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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


; 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.int3 = type { i32, i32, i32 }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL11make_float3fff(float noundef, float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystemC2Ef5uint3j4int3S1_i(ptr noundef nonnull align 8 dereferenceable(412) %0, float noundef %1, i64 %2, i32 %3, i32 noundef %4, i64 %5, i32 %6, ptr nocapture noundef readonly byval(%struct.int3) align 8 %7, i32 noundef %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  store i8 0, ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  store float %1, ptr %10, align 4, !tbaa !31
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %4, ptr %11, align 8, !tbaa !32
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 0, ptr %12, align 4, !tbaa !33
  %13 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 0, ptr %13, align 4, !tbaa !34
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr null, ptr %14, align 8, !tbaa !35
  %15 = getelementptr inbounds i8, ptr %0, i64 156
  store i64 %2, ptr %15, align 4
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 164
  store i32 %3, ptr %.sroa.227.0..sroa_idx, align 4, !tbaa !36
  %16 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 0, ptr %16, align 4, !tbaa !37
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt5dequeI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 256
  invoke void @_ZNSt5dequeI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18)
          to label %19 unwind label %49

19:                                               ; preds = %9
  %20 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZNSt6vectorI4int2SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZNSt6vectorI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %22 = getelementptr inbounds i8, ptr %0, i64 384
  store i64 %5, ptr %22, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 392
  store i32 %6, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !36
  %23 = getelementptr inbounds i8, ptr %0, i64 396
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !38
  %24 = getelementptr inbounds i8, ptr %0, i64 408
  store i32 %8, ptr %24, align 8, !tbaa !39
  %25 = load i32, ptr %15, align 4, !tbaa !40
  %26 = getelementptr inbounds i8, ptr %0, i64 160
  %27 = load i32, ptr %26, align 8, !tbaa !41
  %28 = mul i32 %27, %25
  %29 = load i32, ptr %.sroa.227.0..sroa_idx, align 4, !tbaa !42
  %30 = mul i32 %28, %29
  %31 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 %30, ptr %31, align 8, !tbaa !43
  %32 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 18, ptr %32, align 8, !tbaa !44
  %33 = getelementptr inbounds i8, ptr %0, i64 88
  %34 = getelementptr inbounds i8, ptr %0, i64 108
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %15, i64 12, i1 false), !tbaa.struct !38
  %35 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %30, ptr %35, align 8, !tbaa !45
  %36 = load i32, ptr %12, align 4, !tbaa !33
  %37 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %36, ptr %37, align 4, !tbaa !46
  %38 = load float, ptr %10, align 4, !tbaa !31
  %39 = getelementptr inbounds i8, ptr %0, i64 104
  store float %38, ptr %39, align 8, !tbaa !47
  %40 = tail call { <2 x float>, float } @_ZL11make_float3fff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract8 = extractvalue { <2 x float>, float } %40, 0
  %.fca.1.extract9 = extractvalue { <2 x float>, float } %40, 1
  %41 = getelementptr inbounds i8, ptr %0, i64 124
  store <2 x float> %.fca.0.extract8, ptr %41, align 4
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 132
  store float %.fca.1.extract9, ptr %.sroa.413.0..sroa_idx, align 4, !tbaa !48
  %42 = load float, ptr %39, align 8, !tbaa !47
  %43 = fmul float %42, 2.000000e+00
  %44 = tail call { <2 x float>, float } @_Z11make_float3f(float noundef %43)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %44, 1
  %45 = getelementptr inbounds i8, ptr %0, i64 136
  store <2 x float> %.fca.0.extract2, ptr %45, align 8
  %.sroa.47.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 144
  store float %.fca.1.extract3, ptr %.sroa.47.0..sroa_idx, align 8, !tbaa !48
  %46 = tail call { <2 x float>, float } @_ZL11make_float3fff(float noundef 0.000000e+00, float noundef 0xC0239999A0000000, float noundef 0.000000e+00)
  %.fca.0.extract = extractvalue { <2 x float>, float } %46, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %46, 1
  store <2 x float> %.fca.0.extract, ptr %33, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 96
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !48
  %47 = getelementptr inbounds i8, ptr %0, i64 100
  store float 1.000000e+00, ptr %47, align 4, !tbaa !49
  invoke void @_ZN14ParticleSystem5_initEjj(ptr noundef nonnull align 8 dereferenceable(412) %0, i32 noundef 0, i32 noundef %4)
          to label %48 unwind label %51

48:                                               ; preds = %19
  ret void

49:                                               ; preds = %9
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %19
  %52 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  tail call void @_ZNSt6vectorI4int2SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  tail call void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #6
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  tail call void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #6
  resume { ptr, i32 } %.pn
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z11make_float3f(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ParticleSystem5_initEjj(ptr noundef nonnull align 8 dereferenceable(412), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4int2SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeI6float4SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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 #6 = { 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, !7, i64 0}
!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, !10, i64 4}
!32 = !{!6, !11, i64 8}
!33 = !{!6, !11, i64 12}
!34 = !{!6, !11, i64 76}
!35 = !{!6, !12, i64 80}
!36 = !{!11, !11, i64 0}
!37 = !{!6, !11, i64 172}
!38 = !{i64 0, i64 4, !36, i64 4, i64 4, !36, i64 8, i64 4, !36}
!39 = !{!6, !11, i64 408}
!40 = !{!6, !11, i64 156}
!41 = !{!6, !11, i64 160}
!42 = !{!6, !11, i64 164}
!43 = !{!6, !11, i64 168}
!44 = !{!6, !11, i64 72}
!45 = !{!6, !11, i64 120}
!46 = !{!6, !11, i64 148}
!47 = !{!6, !10, i64 104}
!48 = !{!10, !10, i64 0}
!49 = !{!6, !10, i64 100}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass