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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @rand() #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: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

declare void @addPointConstraint(ptr noundef, ptr noundef, i32 noundef) #9

declare void @addDistanceConstraint(ptr noundef, ptr noundef, i32 noundef) #9

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem7addRopeE6float3S0_fifb(ptr noundef nonnull align 8 dereferenceable(412) %0, <2 x float> %1, float %2, <2 x float> %3, float %4, float noundef %5, i32 noundef %6, float noundef %7, i1 noundef zeroext %8) #10 align 2 {
  %10 = alloca %struct.float3, align 4
  %11 = alloca { <2 x float>, float }, align 4
  %12 = alloca %struct.float3, align 4
  %13 = alloca { <2 x float>, float }, align 4
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %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 %struct.float4, align 16
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %struct.float4, align 16
  %33 = alloca %struct.float3, align 4
  %34 = alloca %struct.float3, align 4
  %35 = alloca %struct.float3, align 4
  %36 = alloca %struct.float3, align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca { <2 x float>, float }, align 4
  %40 = alloca { <2 x float>, float }, align 4
  %41 = alloca { <2 x float>, float }, align 8
  %42 = alloca { <2 x float>, float }, align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca i32, align 4
  %46 = alloca %struct.int2, align 8
  %47 = alloca %struct.float4, align 16
  %48 = alloca %struct.float3, align 4
  %49 = alloca { <2 x float>, float }, align 4
  %50 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 0
  store <2 x float> %1, ptr %50, align 4
  %51 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 1
  store float %2, ptr %51, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %11, i64 12, i1 false)
  %52 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  store <2 x float> %3, ptr %52, align 4
  %53 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  store float %4, ptr %53, 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 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !11
  store float %7, ptr %17, align 4, !tbaa !9
  %54 = zext i1 %8 to i8
  store i8 %54, ptr %18, align 1, !tbaa !13
  %55 = load ptr, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  %56 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 4
  %57 = load i32, ptr %56, align 4, !tbaa !15
  store i32 %57, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  %58 = load i32, ptr %16, align 4, !tbaa !11
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %20, align 4, !tbaa !11
  %60 = load i32, ptr %20, align 4, !tbaa !11
  %61 = mul nsw i32 %60, 4
  %62 = zext i32 %61 to i64
  %63 = call ptr @llvm.stacksave.p0()
  store ptr %63, ptr %21, align 8
  %64 = alloca float, i64 %62, align 16
  store i64 %62, ptr %22, align 8
  %65 = load i32, ptr %20, align 4, !tbaa !11
  %66 = mul nsw i32 %65, 4
  %67 = zext i32 %66 to i64
  %68 = alloca float, i64 %67, align 16
  store i64 %67, ptr %23, align 8
  %69 = load i32, ptr %20, align 4, !tbaa !11
  %70 = zext i32 %69 to i64
  %71 = alloca float, i64 %70, align 16
  store i64 %70, ptr %24, align 8
  %72 = load i32, ptr %20, align 4, !tbaa !11
  %73 = zext i32 %72 to i64
  %74 = alloca float, i64 %73, align 16
  store i64 %73, ptr %25, align 8
  %75 = load i32, ptr %20, align 4, !tbaa !11
  %76 = zext i32 %75 to i64
  %77 = alloca i32, i64 %76, align 16
  store i64 %76, ptr %26, align 8
  %78 = getelementptr inbounds %struct.float3, ptr %10, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !35
  %80 = getelementptr inbounds float, ptr %64, i64 0
  store float %79, ptr %80, align 16, !tbaa !9
  %81 = getelementptr inbounds %struct.float3, ptr %10, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !36
  %83 = getelementptr inbounds float, ptr %64, i64 1
  store float %82, ptr %83, align 4, !tbaa !9
  %84 = getelementptr inbounds %struct.float3, ptr %10, i32 0, i32 2
  %85 = load float, ptr %84, align 4, !tbaa !37
  %86 = getelementptr inbounds float, ptr %64, i64 2
  store float %85, ptr %86, align 8, !tbaa !9
  %87 = getelementptr inbounds float, ptr %64, i64 3
  store float 1.000000e+00, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #11
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = mul nsw i32 %88, 2
  %90 = zext i32 %89 to i64
  %91 = alloca i32, i64 %90, align 16
  store i64 %90, ptr %28, align 8
  %92 = load i32, ptr %16, align 4, !tbaa !11
  %93 = zext i32 %92 to i64
  %94 = alloca float, i64 %93, align 16
  store i64 %93, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #11
  store i32 0, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  store i32 1, ptr %31, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %151, %9
  %96 = load i32, ptr %31, align 4, !tbaa !11
  %97 = load i32, ptr %16, align 4, !tbaa !11
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %99, label %154

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !38
  %100 = load i32, ptr %31, align 4, !tbaa !11
  %101 = sitofp i32 %100 to float
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !38
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %36, i64 12, i1 false)
  %102 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %103 = load <2 x float>, ptr %102, align 4
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %105 = load float, ptr %104, align 4
  %106 = call { <2 x float>, float } @_Zmlf6float3(float noundef %101, <2 x float> %103, float %105)
  store { <2 x float>, float } %106, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %34, i64 12, i1 false)
  %107 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 0
  %108 = load <2 x float>, ptr %107, align 4
  %109 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %35, i64 12, i1 false)
  %111 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 0
  %112 = load <2 x float>, ptr %111, align 4
  %113 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 1
  %114 = load float, ptr %113, align 4
  %115 = call { <2 x float>, float } @_Zpl6float3S_(<2 x float> %108, float %110, <2 x float> %112, float %114)
  store { <2 x float>, float } %115, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %41, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %33, i64 12, i1 false)
  %116 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 0
  %117 = load <2 x float>, ptr %116, align 4
  %118 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %117, float %119, float noundef 1.000000e+00)
  %121 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 0
  %122 = extractvalue { <2 x float>, <2 x float> } %120, 0
  store <2 x float> %122, ptr %121, align 16
  %123 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 1
  %124 = extractvalue { <2 x float>, <2 x float> } %120, 1
  store <2 x float> %124, ptr %123, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #11
  %125 = load i32, ptr %31, align 4, !tbaa !11
  %126 = mul nsw i32 %125, 4
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %64, i64 %127
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 16 %27, i64 16, i1 false)
  %129 = load i32, ptr %19, align 4, !tbaa !11
  %130 = load i32, ptr %31, align 4, !tbaa !11
  %131 = add i32 %129, %130
  %132 = sub i32 %131, 1
  %133 = load i32, ptr %30, align 4, !tbaa !11
  %134 = mul nsw i32 %133, 2
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %91, i64 %135
  store i32 %132, ptr %136, align 4, !tbaa !11
  %137 = load i32, ptr %19, align 4, !tbaa !11
  %138 = load i32, ptr %31, align 4, !tbaa !11
  %139 = add i32 %137, %138
  %140 = load i32, ptr %30, align 4, !tbaa !11
  %141 = mul nsw i32 %140, 2
  %142 = add nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %91, i64 %143
  store i32 %139, ptr %144, align 4, !tbaa !11
  %145 = load float, ptr %15, align 4, !tbaa !9
  %146 = load i32, ptr %30, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds float, ptr %94, i64 %147
  store float %145, ptr %148, align 4, !tbaa !9
  %149 = load i32, ptr %30, align 4, !tbaa !11
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %30, align 4, !tbaa !11
  br label %151

151:                                              ; preds = %99
  %152 = load i32, ptr %31, align 4, !tbaa !11
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %31, align 4, !tbaa !11
  br label %95, !llvm.loop !40

154:                                              ; preds = %95
  %155 = load i32, ptr %20, align 4, !tbaa !11
  %156 = mul nsw i32 %155, 4
  %157 = sext i32 %156 to i64
  %158 = mul i64 %157, 4
  call void @llvm.memset.p0.i64(ptr align 1 %68, i8 0, i64 %158, i1 false)
  %159 = load i32, ptr %20, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %71, i64 %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  %162 = load float, ptr %17, align 4, !tbaa !9
  %163 = fdiv float 1.000000e+00, %162
  store float %163, ptr %43, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %71, ptr noundef %161, ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  %164 = load i32, ptr %20, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds float, ptr %74, i64 %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #11
  store float 1.000000e+00, ptr %44, align 4, !tbaa !9
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %74, ptr noundef %166, ptr noundef nonnull align 4 dereferenceable(4) %44)
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  %167 = load i32, ptr %20, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %77, i64 %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #11
  %170 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 18
  %171 = load i32, ptr %170, align 4, !tbaa !42
  %172 = add nsw i32 4, %171
  store i32 %172, ptr %45, align 4, !tbaa !11
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %77, ptr noundef %169, ptr noundef nonnull align 4 dereferenceable(4) %45)
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  %173 = load i32, ptr %20, align 4, !tbaa !11
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %55, ptr noundef %64, ptr noundef %68, ptr noundef %71, ptr noundef %74, ptr noundef %77, i32 noundef %173)
  %174 = load i32, ptr %16, align 4, !tbaa !11
  call void @addDistanceConstraint(ptr noundef %91, ptr noundef %94, i32 noundef %174)
  %175 = load i8, ptr %18, align 1, !tbaa !13, !range !43, !noundef !44
  %176 = trunc i8 %175 to i1
  br i1 %176, label %177, label %178

177:                                              ; preds = %154
  call void @addPointConstraint(ptr noundef %19, ptr noundef %10, i32 noundef 1)
  br label %178

178:                                              ; preds = %177, %154
  %179 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  %180 = load i32, ptr %19, align 4, !tbaa !11
  %181 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 4
  %182 = load i32, ptr %181, align 4, !tbaa !15
  %183 = call i64 @_ZL9make_int2ii(i32 noundef %180, i32 noundef %182)
  store i64 %183, ptr %46, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %179, ptr noundef nonnull align 8 dereferenceable(8) %46)
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  %184 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #11
  %185 = call i32 @rand() #11
  %186 = srem i32 %185, 8
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %187
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %188, i64 12, i1 false), !tbaa.struct !38
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %48, i64 12, i1 false)
  %189 = getelementptr inbounds { <2 x float>, float }, ptr %49, i32 0, i32 0
  %190 = load <2 x float>, ptr %189, align 4
  %191 = getelementptr inbounds { <2 x float>, float }, ptr %49, i32 0, i32 1
  %192 = load float, ptr %191, align 4
  %193 = call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %190, float %192, float noundef 1.000000e+00)
  %194 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 0
  %195 = extractvalue { <2 x float>, <2 x float> } %193, 0
  store <2 x float> %195, ptr %194, align 16
  %196 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 1
  %197 = extractvalue { <2 x float>, <2 x float> } %193, 1
  store <2 x float> %197, ptr %196, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 16 dereferenceable(16) %47)
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #11
  %198 = getelementptr inbounds %class.ParticleSystem, ptr %55, i32 0, i32 18
  %199 = load i32, ptr %198, align 4, !tbaa !42
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %198, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  %201 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %201)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  ret void
}

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

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { "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 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !12, i64 12}
!16 = !{!"_ZTS14ParticleSystem", !14, 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, !17, i64 88, !19, i64 156, !12, i64 168, !12, i64 172, !20, i64 176, !20, i64 256, !26, i64 336, !30, i64 360, !34, i64 384, !34, i64 396, !12, i64 408}
!17 = !{!"_ZTS9SimParams", !18, i64 0, !10, i64 12, !10, i64 16, !19, i64 20, !12, i64 32, !18, i64 36, !18, i64 48, !12, i64 60, !12, i64 64}
!18 = !{!"_ZTS6float3", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!"_ZTS5uint3", !12, i64 0, !12, i64 4, !12, i64 8}
!20 = !{!"_ZTSSt5dequeI6float4SaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseI6float4SaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseI6float4SaIS0_EE16_Deque_impl_dataE", !6, i64 0, !24, i64 8, !25, i64 16, !25, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt15_Deque_iteratorI6float4RS0_PS0_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt6vectorI4int2SaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI4int2SaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI4int2SaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorI6float4SaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseI6float4SaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI6float4SaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTS4int3", !12, i64 0, !12, i64 4, !12, i64 8}
!35 = !{!18, !10, i64 0}
!36 = !{!18, !10, i64 4}
!37 = !{!18, !10, i64 8}
!38 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!39 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!16, !12, i64 172}
!43 = !{i8 0, i8 2}
!44 = !{}


; 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: nounwind
declare i32 @rand() local_unnamed_addr #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 nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; 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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

declare void @addPointConstraint(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

declare void @addDistanceConstraint(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ParticleSystem7addRopeE6float3S0_fifb(ptr noundef nonnull align 8 dereferenceable(412) %0, <2 x float> %1, float %2, <2 x float> %3, float %4, float noundef %5, i32 noundef %6, float noundef %7, i1 noundef zeroext %8) local_unnamed_addr #9 align 2 {
  %10 = alloca %struct.float3, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.int2, align 8
  %16 = alloca %struct.float4, align 16
  store <2 x float> %1, ptr %10, align 8
  %.sroa.261.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %2, ptr %.sroa.261.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %18, ptr %11, align 4, !tbaa !31
  %19 = add nsw i32 %6, 1
  %20 = shl nsw i32 %19, 2
  %21 = zext i32 %20 to i64
  %22 = tail call ptr @llvm.stacksave.p0()
  %23 = alloca float, i64 %21, align 16
  %24 = alloca float, i64 %21, align 16
  %25 = zext i32 %19 to i64
  %26 = alloca float, i64 %25, align 16
  %27 = alloca float, i64 %25, align 16
  %28 = alloca i32, i64 %25, align 16
  %bc72 = bitcast <2 x float> %1 to <2 x i32>
  %29 = extractelement <2 x i32> %bc72, i64 0
  store i32 %29, ptr %23, align 16, !tbaa !32
  %30 = extractelement <2 x float> %1, i64 1
  %31 = getelementptr inbounds i8, ptr %23, i64 4
  store float %30, ptr %31, align 4, !tbaa !32
  %32 = getelementptr inbounds i8, ptr %23, i64 8
  store float %2, ptr %32, align 8, !tbaa !32
  %33 = getelementptr inbounds i8, ptr %23, i64 12
  store float 1.000000e+00, ptr %33, align 4, !tbaa !32
  %34 = shl nsw i32 %6, 1
  %35 = zext i32 %34 to i64
  %36 = alloca i32, i64 %35, align 16
  %37 = zext i32 %6 to i64
  %38 = alloca float, i64 %37, align 16
  %.not64 = icmp slt i32 %6, 1
  br i1 %.not64, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %.lr.ph
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %.lr.ph ], [ 1, %9 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %9 ]
  %39 = trunc nuw nsw i64 %indvars.iv67 to i32
  %40 = uitofp nneg i32 %39 to float
  %41 = tail call { <2 x float>, float } @_Zmlf6float3(float noundef %40, <2 x float> %3, float %4)
  %.fca.0.extract11 = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract12 = extractvalue { <2 x float>, float } %41, 1
  %42 = tail call { <2 x float>, float } @_Zpl6float3S_(<2 x float> %1, float %2, <2 x float> %.fca.0.extract11, float %.fca.1.extract12)
  %.fca.0.extract = extractvalue { <2 x float>, float } %42, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %42, 1
  %43 = tail call { <2 x float>, <2 x float> } @_Z11make_float46float3f(<2 x float> %.fca.0.extract, float %.fca.1.extract, float noundef 1.000000e+00)
  %44 = extractvalue { <2 x float>, <2 x float> } %43, 0
  %45 = extractvalue { <2 x float>, <2 x float> } %43, 1
  %.idx = shl nsw i64 %indvars.iv67, 4
  %46 = getelementptr inbounds i8, ptr %23, i64 %.idx
  store <2 x float> %44, ptr %46, align 16
  %.sroa.436.0..sroa_idx = getelementptr inbounds i8, ptr %46, i64 8
  store <2 x float> %45, ptr %.sroa.436.0..sroa_idx, align 8
  %47 = add i32 %18, %39
  %48 = add i32 %47, -1
  %49 = shl nuw nsw i64 %indvars.iv, 1
  %50 = getelementptr inbounds i32, ptr %36, i64 %49
  store i32 %48, ptr %50, align 8, !tbaa !31
  %51 = or disjoint i64 %49, 1
  %52 = getelementptr inbounds i32, ptr %36, i64 %51
  store i32 %47, ptr %52, align 4, !tbaa !31
  %53 = getelementptr inbounds float, ptr %38, i64 %indvars.iv
  store float %5, ptr %53, align 4, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %37
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %.lr.ph, %9
  %54 = sext i32 %20 to i64
  %55 = shl nsw i64 %54, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %24, i8 0, i64 %55, i1 false)
  %56 = sext i32 %19 to i64
  %57 = getelementptr inbounds float, ptr %26, i64 %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  %58 = fdiv float 1.000000e+00, %7
  store float %58, ptr %12, align 4, !tbaa !32
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %26, ptr noundef nonnull %57, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  %59 = getelementptr inbounds float, ptr %27, i64 %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #10
  store float 1.000000e+00, ptr %13, align 4, !tbaa !32
  call void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef nonnull %27, ptr noundef nonnull %59, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  %60 = getelementptr inbounds i32, ptr %28, i64 %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #10
  %61 = getelementptr inbounds i8, ptr %0, i64 172
  %62 = load i32, ptr %61, align 4, !tbaa !35
  %63 = add nsw i32 %62, 4
  store i32 %63, ptr %14, align 4, !tbaa !31
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %28, ptr noundef nonnull %60, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  call void @_ZN14ParticleSystem19addParticleMultipleEPfS0_S0_S0_Pii(ptr noundef nonnull align 8 dereferenceable(412) %0, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, i32 noundef %19)
  call void @addDistanceConstraint(ptr noundef nonnull %36, ptr noundef nonnull %38, i32 noundef %6)
  br i1 %8, label %64, label %65

64:                                               ; preds = %._crit_edge
  call void @addPointConstraint(ptr noundef nonnull %11, ptr noundef nonnull %10, i32 noundef 1)
  %.pre = load i32, ptr %11, align 4, !tbaa !31
  br label %65

65:                                               ; preds = %64, %._crit_edge
  %66 = phi i32 [ %.pre, %64 ], [ %18, %._crit_edge ]
  %67 = getelementptr inbounds i8, ptr %0, i64 336
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  %68 = load i32, ptr %17, align 4, !tbaa !5
  %69 = call i64 @_ZL9make_int2ii(i32 noundef %66, i32 noundef %68)
  store i64 %69, ptr %15, align 8
  call void @_ZNSt6vectorI4int2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  %70 = getelementptr inbounds i8, ptr %0, i64 360
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  %71 = call i32 @rand() #10
  %72 = srem i32 %71, 8
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [8 x %struct.float3], ptr @_ZL6colors, i64 0, i64 %73
  %.sroa.01.0.copyload = load <2 x float>, ptr %74, align 4
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %74, i64 8
  %.sroa.22.0.copyload = load float, ptr %.sroa.22.0..sroa_idx, align 4, !tbaa !32
  %75 = 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)
  %76 = extractvalue { <2 x float>, <2 x float> } %75, 0
  store <2 x float> %76, ptr %16, align 16
  %77 = getelementptr inbounds i8, ptr %16, i64 8
  %78 = extractvalue { <2 x float>, <2 x float> } %75, 1
  store <2 x float> %78, ptr %77, align 8
  call void @_ZNSt6vectorI6float4SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 16 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  %79 = load i32, ptr %61, align 4, !tbaa !35
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %61, align 4, !tbaa !35
  call void @llvm.stackrestore.p0(ptr %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  ret void
}

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

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

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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { "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 = { 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 #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 = !{!11, !11, i64 0}
!32 = !{!10, !10, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !11, i64 172}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass