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

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

@_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: 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: nounwind
declare i32 @rand() #6

; 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: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem15addParticleGridE4int3S0_fb(ptr noundef nonnull align 8 dereferenceable(412) %0, i64 %1, i32 %2, i64 %3, i32 %4, float noundef %5, i1 noundef zeroext %6) #10 align 2 {
  %8 = alloca %struct.int3, align 4
  %9 = alloca { i64, i32 }, align 4
  %10 = alloca %struct.int3, align 4
  %11 = alloca { i64, i32 }, align 4
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %struct.int3, align 4
  %19 = alloca { i64, i32 }, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct.int2, align 8
  %36 = alloca %struct.float4, align 16
  %37 = alloca %struct.float3, align 4
  %38 = alloca { <2 x float>, float }, align 4
  %39 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 0
  store i64 %1, ptr %39, align 4
  %40 = getelementptr inbounds { i64, i32 }, ptr %9, i32 0, i32 1
  store i32 %2, ptr %40, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %9, i64 12, i1 false)
  %41 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 0
  store i64 %3, ptr %41, align 4
  %42 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 1
  store i32 %4, ptr %42, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %11, i64 12, i1 false)
  store ptr %0, ptr %12, align 8, !tbaa !5
  store float %5, ptr %13, align 4, !tbaa !9
  %43 = zext i1 %6 to i8
  store i8 %43, ptr %14, align 1, !tbaa !11
  %44 = load ptr, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  %45 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 4
  %46 = load i32, ptr %45, align 4, !tbaa !13
  store i32 %46, ptr %15, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  %47 = load i8, ptr %14, align 1, !tbaa !11, !range !35, !noundef !36
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %53

49:                                               ; preds = %7
  %50 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 2
  %51 = load float, ptr %50, align 4, !tbaa !37
  %52 = fmul float %51, 0x3F847AE140000000
  store float %52, ptr %16, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %49, %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  %54 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 2
  %55 = load float, ptr %54, align 4, !tbaa !37
  %56 = fmul float %55, 0x40000418A0000000
  store float %56, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #11
  %57 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 0
  %58 = load i32, ptr %57, align 4, !tbaa !38
  %59 = getelementptr inbounds %struct.int3, ptr %8, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !38
  %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 %17, align 4, !tbaa !9
  %66 = fdiv float %64, %65
  %67 = fptosi float %66 to i32
  %68 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !39
  %70 = getelementptr inbounds %struct.int3, ptr %8, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !39
  %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 %17, align 4, !tbaa !9
  %77 = fdiv float %75, %76
  %78 = fptosi float %77 to i32
  %79 = getelementptr inbounds %struct.int3, ptr %10, i32 0, i32 2
  %80 = load i32, ptr %79, align 4, !tbaa !40
  %81 = getelementptr inbounds %struct.int3, ptr %8, i32 0, i32 2
  %82 = load i32, ptr %81, align 4, !tbaa !40
  %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 %17, 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 %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  %91 = getelementptr inbounds %struct.int3, ptr %18, i32 0, i32 0
  %92 = load i32, ptr %91, align 4, !tbaa !38
  %93 = getelementptr inbounds %struct.int3, ptr %18, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !39
  %95 = mul nsw i32 %92, %94
  %96 = getelementptr inbounds %struct.int3, ptr %18, i32 0, i32 2
  %97 = load i32, ptr %96, align 4, !tbaa !40
  %98 = mul nsw i32 %95, %97
  store i32 %98, ptr %20, align 4, !tbaa !34
  %99 = load i32, ptr %20, align 4, !tbaa !34
  %100 = mul nsw i32 %99, 4
  %101 = zext i32 %100 to i64
  %102 = call ptr @llvm.stacksave.p0()
  store ptr %102, ptr %21, align 8
  %103 = alloca float, i64 %101, align 16
  store i64 %101, ptr %22, align 8
  %104 = load i32, ptr %20, align 4, !tbaa !34
  %105 = mul nsw i32 %104, 4
  %106 = zext i32 %105 to i64
  %107 = alloca float, i64 %106, align 16
  store i64 %106, ptr %23, align 8
  %108 = load i32, ptr %20, align 4, !tbaa !34
  %109 = zext i32 %108 to i64
  %110 = alloca float, i64 %109, align 16
  store i64 %109, ptr %24, align 8
  %111 = load i32, ptr %20, align 4, !tbaa !34
  %112 = zext i32 %111 to i64
  %113 = alloca float, i64 %112, align 16
  store i64 %112, ptr %25, align 8
  %114 = load i32, ptr %20, align 4, !tbaa !34
  %115 = zext i32 %114 to i64
  %116 = alloca i32, i64 %115, align 16
  store i64 %115, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #11
  store i32 0, ptr %27, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  store i32 0, ptr %28, align 4, !tbaa !34
  br label %117

117:                                              ; preds = %200, %53
  %118 = load i32, ptr %28, align 4, !tbaa !34
  %119 = getelementptr inbounds %struct.int3, ptr %18, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !40
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %123, label %122

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

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

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

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

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

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

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

137:                                              ; preds = %131
  %138 = getelementptr inbounds %struct.int3, ptr %8, i32 0, i32 0
  %139 = load i32, ptr %138, align 4, !tbaa !38
  %140 = sitofp i32 %139 to float
  %141 = load i32, ptr %31, align 4, !tbaa !34
  %142 = sitofp i32 %141 to float
  %143 = load float, ptr %17, 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 %16, align 4, !tbaa !9
  %148 = call float @llvm.fmuladd.f32(float %146, float %147, float %144)
  %149 = load i32, ptr %27, align 4, !tbaa !34
  %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 %8, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !39
  %155 = sitofp i32 %154 to float
  %156 = load i32, ptr %30, align 4, !tbaa !34
  %157 = sitofp i32 %156 to float
  %158 = load float, ptr %17, 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 %16, align 4, !tbaa !9
  %163 = call float @llvm.fmuladd.f32(float %161, float %162, float %159)
  %164 = load i32, ptr %27, align 4, !tbaa !34
  %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 %8, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !40
  %171 = sitofp i32 %170 to float
  %172 = load i32, ptr %28, align 4, !tbaa !34
  %173 = sitofp i32 %172 to float
  %174 = load float, ptr %17, 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 %16, align 4, !tbaa !9
  %179 = call float @llvm.fmuladd.f32(float %177, float %178, float %175)
  %180 = load i32, ptr %27, align 4, !tbaa !34
  %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 %27, align 4, !tbaa !34
  %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 %27, align 4, !tbaa !34
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %27, align 4, !tbaa !34
  br label %192

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

195:                                              ; preds = %136
  br label %196

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

199:                                              ; preds = %129
  br label %200

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

203:                                              ; preds = %122
  %204 = load i32, ptr %20, align 4, !tbaa !34
  %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 1 %107, i8 0, i64 %207, i1 false)
  %208 = load i32, ptr %20, align 4, !tbaa !34
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds float, ptr %110, i64 %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  %211 = load float, ptr %13, align 4, !tbaa !9
  %212 = fdiv float 1.000000e+00, %211
  store float %212, ptr %32, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %110, ptr noundef %210, ptr noundef nonnull align 4 dereferenceable(4) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  %213 = load i32, ptr %20, align 4, !tbaa !34
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %113, i64 %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  store float 1.000000e+00, ptr %33, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %113, ptr noundef %215, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  %216 = load i32, ptr %20, align 4, !tbaa !34
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %116, i64 %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  store i32 3, ptr %34, align 4, !tbaa !34
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %116, ptr noundef %218, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  %219 = load i32, ptr %20, align 4, !tbaa !34
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %44, ptr noundef %103, ptr noundef %107, ptr noundef %110, ptr noundef %113, ptr noundef %116, i32 noundef %219)
  %220 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %221 = load i32, ptr %15, align 4, !tbaa !34
  %222 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 4
  %223 = load i32, ptr %222, align 4, !tbaa !13
  %224 = call i64 @_ZL9make_int2ii(i32 noundef %221, i32 noundef %223)
  store i64 %224, ptr %35, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 8 dereferenceable(8) %35)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  %225 = getelementptr inbounds %class.ParticleSystem, ptr %44, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #11
  %226 = call i32 @rand() #11
  %227 = srem i32 %226, 8
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %228
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %229, i64 12, i1 false), !tbaa.struct !45
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %37, i64 12, i1 false)
  %230 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 0
  %231 = load <2 x float>, ptr %230, align 4
  %232 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 1
  %233 = load float, ptr %232, align 4
  %234 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %231, float %233, float noundef 1.000000e+00)
  %235 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %236 = extractvalue { <2 x float>, <2 x float> } %234, 0
  store <2 x float> %236, ptr %235, align 16
  %237 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %238 = extractvalue { <2 x float>, <2 x float> } %234, 1
  store <2 x float> %238, ptr %237, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %225, ptr noundef nonnull align 16 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #11
  %239 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %239)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  ret void
}

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 = { 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 #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 = { 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 #11 = { 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 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 12}
!14 = !{!"_ZTS14ParticleSystem", !12, i64 0, !10, i64 4, !15, i64 8, !15, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !15, i64 76, !6, i64 80, !16, i64 88, !18, i64 156, !15, i64 168, !15, i64 172, !19, i64 176, !19, i64 256, !25, i64 336, !29, i64 360, !33, i64 384, !33, i64 396, !15, i64 408}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS9SimParams", !17, i64 0, !10, i64 12, !10, i64 16, !18, i64 20, !15, i64 32, !17, i64 36, !17, i64 48, !15, i64 60, !15, i64 64}
!17 = !{!"_ZTS6float3", !10, i64 0, !10, i64 4, !10, i64 8}
!18 = !{!"_ZTS5uint3", !15, i64 0, !15, i64 4, !15, 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", !15, i64 0, !15, i64 4, !15, i64 8}
!34 = !{!15, !15, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!14, !10, i64 4}
!38 = !{!33, !15, i64 0}
!39 = !{!33, !15, i64 4}
!40 = !{!33, !15, i64 8}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = distinct !{!44, !42}
!45 = !{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.float3 = type { float, float, float }
%struct.int2 = type { i32, i32 }
%struct.float4 = type { float, float, float, float }

@_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: 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: nounwind
declare i32 @rand() local_unnamed_addr #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) local_unnamed_addr #2 align 2

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

.preheader63.lr.ph:                               ; preds = %7
  %49 = icmp sgt i32 %.sroa.028.4.extract.trunc, 0
  %50 = sitofp i32 %.sroa.054.0.extract.trunc to float
  %51 = sitofp i32 %.sroa.356.0.extract.trunc to float
  %52 = sitofp i32 %2 to float
  %53 = icmp sgt i32 %.sroa.028.0.extract.trunc, 0
  %or.cond = select i1 %49, i1 %53, i1 false
  br i1 %or.cond, label %.preheader63.us.us.preheader, label %._crit_edge

.preheader63.us.us.preheader:                     ; preds = %.preheader63.lr.ph
  %54 = insertelement <2 x float> poison, float %.0, i64 0
  %55 = shufflevector <2 x float> %54, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.preheader63.us.us

.preheader63.us.us:                               ; preds = %.preheader63.us.us.preheader, %._crit_edge68.split.us.us.us
  %.05971.us.us = phi i64 [ %indvars.iv.next, %._crit_edge68.split.us.us.us ], [ 0, %.preheader63.us.us.preheader ]
  %.06070.us.us = phi i32 [ %83, %._crit_edge68.split.us.us.us ], [ 0, %.preheader63.us.us.preheader ]
  %56 = uitofp nneg i32 %.06070.us.us to float
  %57 = tail call float @llvm.fmuladd.f32(float %56, float %18, float %52)
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader63.us.us
  %.167.us.us.us = phi i64 [ %.05971.us.us, %.preheader63.us.us ], [ %indvars.iv.next, %._crit_edge.us.us.us ]
  %.06266.us.us.us = phi i32 [ 0, %.preheader63.us.us ], [ %82, %._crit_edge.us.us.us ]
  %58 = uitofp nneg i32 %.06266.us.us.us to float
  %59 = tail call float @llvm.fmuladd.f32(float %58, float %18, float %51)
  %sext = shl i64 %.167.us.us.us, 32
  %60 = ashr exact i64 %sext, 32
  br label %61

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

._crit_edge.us.us.us:                             ; preds = %61
  %82 = add nuw nsw i32 %.06266.us.us.us, 1
  %exitcond79.not = icmp eq i32 %82, %.sroa.028.4.extract.trunc
  br i1 %exitcond79.not, label %._crit_edge68.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !34

._crit_edge68.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %83 = add nuw nsw i32 %.06070.us.us, 1
  %exitcond80.not = icmp eq i32 %83, %.fca.1.extract
  br i1 %exitcond80.not, label %._crit_edge, label %.preheader63.us.us, !llvm.loop !35

._crit_edge:                                      ; preds = %._crit_edge68.split.us.us.us, %.preheader63.lr.ph, %7
  %84 = sext i32 %40 to i64
  %85 = shl nsw i64 %84, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %43, i8 0, i64 %85, i1 false)
  %86 = sext i32 %39 to i64
  %87 = getelementptr inbounds float, ptr %45, i64 %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #10
  %88 = fdiv float 1.000000e+00, %5
  store float %88, ptr %8, align 4, !tbaa !31
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %45, ptr noundef nonnull %87, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #10
  %89 = getelementptr inbounds float, ptr %46, i64 %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  store float 1.000000e+00, ptr %9, align 4, !tbaa !31
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %46, ptr noundef nonnull %89, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  %90 = getelementptr inbounds i32, ptr %47, i64 %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  store i32 3, ptr %10, align 4, !tbaa !36
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %47, ptr noundef nonnull %90, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %0, ptr noundef nonnull %42, ptr noundef nonnull %43, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47, i32 noundef %39)
  %91 = getelementptr inbounds i8, ptr %0, i64 336
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = call i64 @_ZL9make_int2ii(i32 noundef %14, i32 noundef %92)
  store i64 %93, ptr %11, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  %94 = getelementptr inbounds i8, ptr %0, i64 360
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %95 = call i32 @rand() #10
  %96 = srem i32 %95, 8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %97
  %.sroa.01.0.copyload = load <2 x float>, ptr %98, align 4
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %98, i64 8
  %.sroa.22.0.copyload = load float, ptr %.sroa.22.0..sroa_idx, align 4, !tbaa !31
  %99 = 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)
  %100 = extractvalue { <2 x float>, <2 x float> } %99, 0
  store <2 x float> %100, ptr %12, align 16
  %101 = getelementptr inbounds i8, ptr %12, i64 8
  %102 = extractvalue { <2 x float>, <2 x float> } %99, 1
  store <2 x float> %102, ptr %101, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  ret void
}

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

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 = { 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 = { 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 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 12}
!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 = !{!10, !10, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = !{!11, !11, 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