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

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

; 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: 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) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem8addFluidE4int3S0_ff6float3(ptr noundef nonnull align 8 dereferenceable(412) %0, i64 %1, i32 %2, i64 %3, i32 %4, float noundef %5, float noundef %6, <2 x float> %7, float %8) #6 align 2 {
  %10 = alloca %struct.int3, align 4
  %11 = alloca { i64, i32 }, align 4
  %12 = alloca %struct.int3, align 4
  %13 = alloca { i64, i32 }, align 4
  %14 = alloca %struct.float3, align 4
  %15 = alloca { <2 x float>, float }, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.int3, align 4
  %23 = alloca { i64, i32 }, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.int2, align 8
  %39 = alloca %struct.float4, align 16
  %40 = alloca %struct.float3, align 4
  %41 = alloca { <2 x float>, float }, align 4
  %42 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 0
  store i64 %1, ptr %42, align 4
  %43 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 1
  store i32 %2, ptr %43, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %11, i64 12, i1 false)
  %44 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 0
  store i64 %3, ptr %44, align 4
  %45 = getelementptr inbounds { i64, i32 }, ptr %13, i32 0, i32 1
  store i32 %4, ptr %45, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %13, i64 12, i1 false)
  %46 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 0
  store <2 x float> %7, ptr %46, align 4
  %47 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 1
  store float %8, ptr %47, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %15, i64 12, i1 false)
  store ptr %0, ptr %16, align 8, !tbaa !5
  store float %5, ptr %17, align 4, !tbaa !9
  store float %6, ptr %18, align 4, !tbaa !9
  %48 = load ptr, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %49 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 4
  %50 = load i32, ptr %49, align 4, !tbaa !11
  store i32 %50, ptr %19, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %51 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 2
  %52 = load float, ptr %51, align 4, !tbaa !34
  %53 = fmul float %52, 0x3F847AE140000000
  store float %53, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  %54 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 2
  %55 = load float, ptr %54, align 4, !tbaa !34
  %56 = fmul float %55, 2.500000e+00
  store float %56, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #10
  %57 = getelementptr inbounds %struct.int3, ptr %12, i32 0, i32 0
  %58 = load i32, ptr %57, align 4, !tbaa !35
  %59 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !35
  %61 = sub nsw i32 %58, %60
  %62 = call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %61)
  %63 = fptosi double %62 to i32
  %64 = sitofp i32 %63 to float
  %65 = load float, ptr %21, align 4, !tbaa !9
  %66 = fdiv float %64, %65
  %67 = fptosi float %66 to i32
  %68 = getelementptr inbounds %struct.int3, ptr %12, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !36
  %70 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !36
  %72 = sub nsw i32 %69, %71
  %73 = call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %72)
  %74 = fptosi double %73 to i32
  %75 = sitofp i32 %74 to float
  %76 = load float, ptr %21, align 4, !tbaa !9
  %77 = fdiv float %75, %76
  %78 = fptosi float %77 to i32
  %79 = getelementptr inbounds %struct.int3, ptr %12, i32 0, i32 2
  %80 = load i32, ptr %79, align 4, !tbaa !37
  %81 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 2
  %82 = load i32, ptr %81, align 4, !tbaa !37
  %83 = sub nsw i32 %80, %82
  %84 = call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %83)
  %85 = fptosi double %84 to i32
  %86 = sitofp i32 %85 to float
  %87 = load float, ptr %21, align 4, !tbaa !9
  %88 = fdiv float %86, %87
  %89 = fptosi float %88 to i32
  %90 = call { i64, i32 } @_ZL9make_int3iii(i32 noundef %67, i32 noundef %78, i32 noundef %89)
  store { i64, i32 } %90, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  %91 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 0
  %92 = load i32, ptr %91, align 4, !tbaa !35
  %93 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !36
  %95 = mul nsw i32 %92, %94
  %96 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 2
  %97 = load i32, ptr %96, align 4, !tbaa !37
  %98 = mul nsw i32 %95, %97
  store i32 %98, ptr %24, align 4, !tbaa !33
  %99 = load i32, ptr %24, align 4, !tbaa !33
  %100 = mul nsw i32 %99, 4
  %101 = zext i32 %100 to i64
  %102 = call ptr @llvm.stacksave.p0()
  store ptr %102, ptr %25, align 8
  %103 = alloca float, i64 %101, align 16
  store i64 %101, ptr %26, align 8
  %104 = load i32, ptr %24, align 4, !tbaa !33
  %105 = mul nsw i32 %104, 4
  %106 = zext i32 %105 to i64
  %107 = alloca float, i64 %106, align 16
  store i64 %106, ptr %27, align 8
  %108 = load i32, ptr %24, align 4, !tbaa !33
  %109 = zext i32 %108 to i64
  %110 = alloca float, i64 %109, align 16
  store i64 %109, ptr %28, align 8
  %111 = load i32, ptr %24, align 4, !tbaa !33
  %112 = zext i32 %111 to i64
  %113 = alloca float, i64 %112, align 16
  store i64 %112, ptr %29, align 8
  %114 = load i32, ptr %24, align 4, !tbaa !33
  %115 = zext i32 %114 to i64
  %116 = alloca i32, i64 %115, align 16
  store i64 %115, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 0, ptr %32, align 4, !tbaa !33
  br label %117

117:                                              ; preds = %200, %9
  %118 = load i32, ptr %32, align 4, !tbaa !33
  %119 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !37
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  store i32 2, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %203

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !33
  br label %124

124:                                              ; preds = %196, %123
  %125 = load i32, ptr %34, align 4, !tbaa !33
  %126 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !36
  %128 = icmp slt i32 %125, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %124
  store i32 5, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %199

130:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 0, ptr %35, align 4, !tbaa !33
  br label %131

131:                                              ; preds = %192, %130
  %132 = load i32, ptr %35, align 4, !tbaa !33
  %133 = getelementptr inbounds %struct.int3, ptr %22, i32 0, i32 0
  %134 = load i32, ptr %133, align 4, !tbaa !35
  %135 = icmp slt i32 %132, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %131
  store i32 8, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %195

137:                                              ; preds = %131
  %138 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 0
  %139 = load i32, ptr %138, align 4, !tbaa !35
  %140 = sitofp i32 %139 to float
  %141 = load i32, ptr %35, align 4, !tbaa !33
  %142 = sitofp i32 %141 to float
  %143 = load float, ptr %21, align 4, !tbaa !9
  %144 = call float @llvm.fmuladd.f32(float %142, float %143, float %140)
  %145 = call noundef float @_Z5frandv()
  %146 = call float @llvm.fmuladd.f32(float %145, float 2.000000e+00, float -1.000000e+00)
  %147 = load float, ptr %20, align 4, !tbaa !9
  %148 = call float @llvm.fmuladd.f32(float %146, float %147, float %144)
  %149 = load i32, ptr %31, align 4, !tbaa !33
  %150 = mul nsw i32 %149, 4
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %103, i64 %151
  store float %148, ptr %152, align 4, !tbaa !9
  %153 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !36
  %155 = sitofp i32 %154 to float
  %156 = load i32, ptr %34, align 4, !tbaa !33
  %157 = sitofp i32 %156 to float
  %158 = load float, ptr %21, align 4, !tbaa !9
  %159 = call float @llvm.fmuladd.f32(float %157, float %158, float %155)
  %160 = call noundef float @_Z5frandv()
  %161 = call float @llvm.fmuladd.f32(float %160, float 2.000000e+00, float -1.000000e+00)
  %162 = load float, ptr %20, align 4, !tbaa !9
  %163 = call float @llvm.fmuladd.f32(float %161, float %162, float %159)
  %164 = load i32, ptr %31, align 4, !tbaa !33
  %165 = mul nsw i32 %164, 4
  %166 = add nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds float, ptr %103, i64 %167
  store float %163, ptr %168, align 4, !tbaa !9
  %169 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !37
  %171 = sitofp i32 %170 to float
  %172 = load i32, ptr %32, align 4, !tbaa !33
  %173 = sitofp i32 %172 to float
  %174 = load float, ptr %21, align 4, !tbaa !9
  %175 = call float @llvm.fmuladd.f32(float %173, float %174, float %171)
  %176 = call noundef float @_Z5frandv()
  %177 = call float @llvm.fmuladd.f32(float %176, float 2.000000e+00, float -1.000000e+00)
  %178 = load float, ptr %20, align 4, !tbaa !9
  %179 = call float @llvm.fmuladd.f32(float %177, float %178, float %175)
  %180 = load i32, ptr %31, align 4, !tbaa !33
  %181 = mul nsw i32 %180, 4
  %182 = add nsw i32 %181, 2
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %103, i64 %183
  store float %179, ptr %184, align 4, !tbaa !9
  %185 = load i32, ptr %31, align 4, !tbaa !33
  %186 = mul nsw i32 %185, 4
  %187 = add nsw i32 %186, 3
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %103, i64 %188
  store float 1.000000e+00, ptr %189, align 4, !tbaa !9
  %190 = load i32, ptr %31, align 4, !tbaa !33
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %31, align 4, !tbaa !33
  br label %192

192:                                              ; preds = %137
  %193 = load i32, ptr %35, align 4, !tbaa !33
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %35, align 4, !tbaa !33
  br label %131, !llvm.loop !38

195:                                              ; preds = %136
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %34, align 4, !tbaa !33
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %34, align 4, !tbaa !33
  br label %124, !llvm.loop !40

199:                                              ; preds = %129
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %32, align 4, !tbaa !33
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %32, align 4, !tbaa !33
  br label %117, !llvm.loop !41

203:                                              ; preds = %122
  %204 = load i32, ptr %24, align 4, !tbaa !33
  %205 = mul nsw i32 %204, 4
  %206 = sext i32 %205 to i64
  %207 = mul i64 %206, 4
  call void @llvm.memset.p0.i64(ptr align 16 %107, i8 0, i64 %207, i1 false)
  %208 = load i32, ptr %24, align 4, !tbaa !33
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds float, ptr %110, i64 %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %211 = load float, ptr %17, align 4, !tbaa !9
  %212 = fdiv float 1.000000e+00, %211
  store float %212, ptr %36, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %110, ptr noundef %210, ptr noundef nonnull align 4 dereferenceable(4) %36)
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  %213 = load i32, ptr %24, align 4, !tbaa !33
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %113, i64 %214
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %113, ptr noundef %215, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %216 = load i32, ptr %24, align 4, !tbaa !33
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %116, i64 %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 0, ptr %37, align 4, !tbaa !33
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %116, ptr noundef %218, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  %219 = load i32, ptr %24, align 4, !tbaa !33
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %48, ptr noundef %103, ptr noundef %107, ptr noundef %110, ptr noundef %113, ptr noundef %116, i32 noundef %219)
  %220 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %221 = load i32, ptr %19, align 4, !tbaa !33
  %222 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 4
  %223 = load i32, ptr %222, align 4, !tbaa !11
  %224 = call i64 @_ZL9make_int2ii(i32 noundef %221, i32 noundef %223)
  store i64 %224, ptr %38, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 8 dereferenceable(8) %38)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  %225 = getelementptr inbounds %class.ParticleSystem, ptr %48, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !42
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %40, i64 12, i1 false)
  %226 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 0
  %227 = load <2 x float>, ptr %226, align 4
  %228 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 1
  %229 = load float, ptr %228, align 4
  %230 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %227, float %229, float noundef 1.000000e+00)
  %231 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 0
  %232 = extractvalue { <2 x float>, <2 x float> } %230, 0
  store <2 x float> %232, ptr %231, align 16
  %233 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 1
  %234 = extractvalue { <2 x float>, <2 x float> } %230, 1
  store <2 x float> %234, ptr %233, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %225, ptr noundef nonnull align 16 dereferenceable(16) %39)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  %235 = load ptr, ptr %25, align 8
  call void @llvm.stackrestore.p0(ptr %235)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #9

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #9

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind willreturn }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { 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, !14, i64 12}
!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 = !{!14, !14, i64 0}
!34 = !{!12, !10, i64 4}
!35 = !{!32, !14, i64 0}
!36 = !{!32, !14, i64 4}
!37 = !{!32, !14, i64 8}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}


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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5frandv() local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem8addFluidE4int3S0_ff6float3(ptr noundef nonnull align 8 dereferenceable(412) %0, i64 %1, i32 %2, i64 %3, i32 %4, float noundef %5, float noundef %6, <2 x float> %7, float %8) local_unnamed_addr #5 align 2 {
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.int2, align 8
  %14 = alloca %struct.float4, align 16
  %.sroa.057.0.extract.trunc = trunc i64 %1 to i32
  %.sroa.359.0.extract.shift = lshr i64 %1, 32
  %.sroa.359.0.extract.trunc = trunc nuw i64 %.sroa.359.0.extract.shift to i32
  %.sroa.053.0.extract.trunc = trunc i64 %3 to i32
  %.sroa.254.0.extract.shift = lshr i64 %3, 32
  %.sroa.254.0.extract.trunc = trunc nuw i64 %.sroa.254.0.extract.shift to i32
  store float %6, ptr %10, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 12
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %0, i64 4
  %18 = load float, ptr %17, align 4, !tbaa !32
  %19 = fmul float %18, 0x3F847AE140000000
  %20 = fmul float %18, 2.500000e+00
  %21 = sub nsw i32 %.sroa.053.0.extract.trunc, %.sroa.057.0.extract.trunc
  %22 = tail call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %21)
  %23 = fptosi double %22 to i32
  %24 = sitofp i32 %23 to float
  %25 = fdiv float %24, %20
  %26 = fptosi float %25 to i32
  %27 = sub nsw i32 %.sroa.254.0.extract.trunc, %.sroa.359.0.extract.trunc
  %28 = tail call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %27)
  %29 = fptosi double %28 to i32
  %30 = sitofp i32 %29 to float
  %31 = fdiv float %30, %20
  %32 = fptosi float %31 to i32
  %33 = sub nsw i32 %4, %2
  %34 = tail call noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %33)
  %35 = fptosi double %34 to i32
  %36 = sitofp i32 %35 to float
  %37 = fdiv float %36, %20
  %38 = fptosi float %37 to i32
  %39 = tail call { i64, i32 } @_ZL9make_int3iii(i32 noundef %26, i32 noundef %32, i32 noundef %38)
  %.fca.0.extract = extractvalue { i64, i32 } %39, 0
  %.fca.1.extract = extractvalue { i64, i32 } %39, 1
  %.sroa.028.0.extract.trunc = trunc i64 %.fca.0.extract to i32
  %.sroa.028.4.extract.shift = lshr i64 %.fca.0.extract, 32
  %.sroa.028.4.extract.trunc = trunc nuw i64 %.sroa.028.4.extract.shift to i32
  %40 = mul i32 %.fca.1.extract, %.sroa.028.0.extract.trunc
  %41 = mul i32 %40, %.sroa.028.4.extract.trunc
  %42 = shl nsw i32 %41, 2
  %43 = zext i32 %42 to i64
  %44 = alloca float, i64 %43, align 16
  %45 = alloca float, i64 %43, align 16
  %46 = zext i32 %41 to i64
  %47 = alloca float, i64 %46, align 16
  %48 = alloca float, i64 %46, align 16
  %49 = alloca i32, i64 %46, align 16
  %50 = icmp sgt i32 %.fca.1.extract, 0
  br i1 %50, label %.preheader65.lr.ph, label %._crit_edge

.preheader65.lr.ph:                               ; preds = %9
  %51 = icmp sgt i32 %.sroa.028.4.extract.trunc, 0
  %52 = sitofp i32 %.sroa.057.0.extract.trunc to float
  %53 = sitofp i32 %.sroa.359.0.extract.trunc to float
  %54 = sitofp i32 %2 to float
  %55 = icmp sgt i32 %.sroa.028.0.extract.trunc, 0
  %or.cond = select i1 %51, i1 %55, i1 false
  br i1 %or.cond, label %.preheader65.us.us.preheader, label %._crit_edge

.preheader65.us.us.preheader:                     ; preds = %.preheader65.lr.ph
  %56 = insertelement <2 x float> poison, float %19, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.preheader65.us.us

.preheader65.us.us:                               ; preds = %.preheader65.us.us.preheader, %._crit_edge70.split.us.us.us
  %.073.us.us = phi i64 [ %indvars.iv.next, %._crit_edge70.split.us.us.us ], [ 0, %.preheader65.us.us.preheader ]
  %.06272.us.us = phi i32 [ %85, %._crit_edge70.split.us.us.us ], [ 0, %.preheader65.us.us.preheader ]
  %58 = uitofp nneg i32 %.06272.us.us to float
  %59 = tail call float @llvm.fmuladd.f32(float %58, float %20, float %54)
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader65.us.us
  %.169.us.us.us = phi i64 [ %.073.us.us, %.preheader65.us.us ], [ %indvars.iv.next, %._crit_edge.us.us.us ]
  %.06368.us.us.us = phi i32 [ 0, %.preheader65.us.us ], [ %84, %._crit_edge.us.us.us ]
  %60 = uitofp nneg i32 %.06368.us.us.us to float
  %61 = tail call float @llvm.fmuladd.f32(float %60, float %20, float %53)
  %sext = shl i64 %.169.us.us.us, 32
  %62 = ashr exact i64 %sext, 32
  br label %63

63:                                               ; preds = %63, %.preheader.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ %62, %.preheader.us.us.us ]
  %.06466.us.us.us = phi i32 [ %83, %63 ], [ 0, %.preheader.us.us.us ]
  %64 = uitofp nneg i32 %.06466.us.us.us to float
  %65 = tail call float @llvm.fmuladd.f32(float %64, float %20, float %52)
  %66 = tail call noundef float @_Z5frandv()
  %67 = shl nsw i64 %indvars.iv, 2
  %68 = getelementptr inbounds float, ptr %44, i64 %67
  %69 = tail call noundef float @_Z5frandv()
  %70 = insertelement <2 x float> poison, float %66, i64 0
  %71 = insertelement <2 x float> %70, float %69, i64 1
  %72 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %71, <2 x float> <float 2.000000e+00, float 2.000000e+00>, <2 x float> <float -1.000000e+00, float -1.000000e+00>)
  %73 = insertelement <2 x float> poison, float %65, i64 0
  %74 = insertelement <2 x float> %73, float %61, i64 1
  %75 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %72, <2 x float> %57, <2 x float> %74)
  store <2 x float> %75, ptr %68, align 16, !tbaa !5
  %76 = tail call noundef float @_Z5frandv()
  %77 = tail call float @llvm.fmuladd.f32(float %76, float 2.000000e+00, float -1.000000e+00)
  %78 = tail call float @llvm.fmuladd.f32(float %77, float %19, float %59)
  %79 = or disjoint i64 %67, 2
  %80 = getelementptr inbounds float, ptr %44, i64 %79
  store float %78, ptr %80, align 8, !tbaa !5
  %81 = or disjoint i64 %67, 3
  %82 = getelementptr inbounds float, ptr %44, i64 %81
  store float 1.000000e+00, ptr %82, align 4, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %83 = add nuw nsw i32 %.06466.us.us.us, 1
  %exitcond.not = icmp eq i32 %83, %.sroa.028.0.extract.trunc
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %63, !llvm.loop !33

._crit_edge.us.us.us:                             ; preds = %63
  %84 = add nuw nsw i32 %.06368.us.us.us, 1
  %exitcond81.not = icmp eq i32 %84, %.sroa.028.4.extract.trunc
  br i1 %exitcond81.not, label %._crit_edge70.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !35

._crit_edge70.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %85 = add nuw nsw i32 %.06272.us.us, 1
  %exitcond82.not = icmp eq i32 %85, %.fca.1.extract
  br i1 %exitcond82.not, label %._crit_edge, label %.preheader65.us.us, !llvm.loop !36

._crit_edge:                                      ; preds = %._crit_edge70.split.us.us.us, %.preheader65.lr.ph, %9
  %86 = sext i32 %42 to i64
  %87 = shl nsw i64 %86, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %45, i8 0, i64 %87, i1 false)
  %88 = sext i32 %41 to i64
  %89 = getelementptr inbounds float, ptr %47, i64 %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  %90 = fdiv float 1.000000e+00, %5
  store float %90, ptr %11, align 4, !tbaa !5
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %47, ptr noundef nonnull %89, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  %91 = getelementptr inbounds float, ptr %48, i64 %88
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %48, ptr noundef nonnull %91, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %92 = getelementptr inbounds i32, ptr %49, i64 %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 0, ptr %12, align 4, !tbaa !37
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %49, ptr noundef nonnull %92, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %0, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull %49, i32 noundef %41)
  %93 = getelementptr inbounds i8, ptr %0, i64 336
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = call i64 @_ZL9make_int2ii(i32 noundef %16, i32 noundef %94)
  store i64 %95, ptr %13, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  %96 = getelementptr inbounds i8, ptr %0, i64 360
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %97 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %7, float %8, float noundef 1.000000e+00)
  %98 = extractvalue { <2 x float>, <2 x float> } %97, 0
  store <2 x float> %98, ptr %14, align 16
  %99 = getelementptr inbounds i8, ptr %14, i64 8
  %100 = extractvalue { <2 x float>, <2 x float> } %97, 1
  store <2 x float> %100, ptr %99, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4ceilIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass