; LLVM IR from jianboqi/CSF :: src (Cloth)

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

%class.Vec3 = type { [3 x double] }
%"class.std::vector.25" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%struct.XY = type { i32, i32 }
%class.Cloth = type { i32, i32, double, %"class.std::vector", double, double, %class.Vec3, double, double, %"class.std::vector.0", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle13makeUnmovableEv(ptr noundef nonnull align 8 dereferenceable(216)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Cloth21handle_slop_connectedESt6vectorIiSaIiEES0_I2XYSaIS3_EES0_IS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.25", align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::queue", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca %class.Vec3, align 8
  %21 = alloca %class.Vec3, align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %32, %4
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = call noundef i64 @_ZNKSt6vectorI2XYSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %39

30:                                               ; preds = %25
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %9, i1 noundef zeroext false)
          to label %31 unwind label %35

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load i64, ptr %10, align 8, !tbaa !9
  %34 = add i64 %33, 1
  store i64 %34, ptr %10, align 8, !tbaa !9
  br label %25, !llvm.loop !11

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %11, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %269

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %40 unwind label %46

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %65, %40
  %42 = load i64, ptr %14, align 8, !tbaa !9
  %43 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %77

46:                                               ; preds = %39
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %11, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %12, align 4
  br label %268

50:                                               ; preds = %41
  %51 = load i64, ptr %14, align 8, !tbaa !9
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %51) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %53 unwind label %68

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %54 = load i64, ptr %14, align 8, !tbaa !9
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %54) #6
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = sext i32 %56 to i64
  %58 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %57)
          to label %59 unwind label %72

59:                                               ; preds = %53
  %60 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %61 = extractvalue { ptr, i64 } %58, 0
  store ptr %61, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %63 = extractvalue { ptr, i64 } %58, 1
  store i64 %63, ptr %62, align 8
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %65

65:                                               ; preds = %59
  %66 = load i64, ptr %14, align 8, !tbaa !9
  %67 = add i64 %66, 1
  store i64 %67, ptr %14, align 8, !tbaa !9
  br label %41, !llvm.loop !15

68:                                               ; preds = %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %76

72:                                               ; preds = %53
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %76

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %267

77:                                               ; preds = %45
  br label %78

78:                                               ; preds = %264, %77
  %79 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %80 unwind label %109

80:                                               ; preds = %78
  %81 = xor i1 %79, true
  br i1 %81, label %82, label %266

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %83 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %84 unwind label %113

84:                                               ; preds = %82
  %85 = load i32, ptr %83, align 4, !tbaa !13
  store i32 %85, ptr %16, align 4, !tbaa !13
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %86 unwind label %113

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %87 = load i32, ptr %16, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %88) #6
  %90 = getelementptr inbounds %struct.XY, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !16
  %92 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 10
  %93 = load i32, ptr %92, align 8, !tbaa !18
  %94 = mul nsw i32 %91, %93
  %95 = load i32, ptr %16, align 4, !tbaa !13
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %96) #6
  %98 = getelementptr inbounds %struct.XY, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !30
  %100 = add nsw i32 %94, %99
  store i32 %100, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %260, %86
  %102 = load i64, ptr %18, align 8, !tbaa !9
  %103 = load i32, ptr %16, align 4, !tbaa !13
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %104) #6
  %106 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #6
  %107 = icmp ult i64 %102, %106
  br i1 %107, label %117, label %108

108:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %264

109:                                              ; preds = %78
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %11, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %12, align 4
  br label %267

113:                                              ; preds = %84, %82
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %11, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %12, align 4
  br label %265

117:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %118 = load i32, ptr %16, align 4, !tbaa !13
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %119) #6
  %121 = load i64, ptr %18, align 8, !tbaa !9
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %121) #6
  %123 = load i32, ptr %122, align 4, !tbaa !13
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %124) #6
  %126 = getelementptr inbounds %struct.XY, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !16
  %128 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 10
  %129 = load i32, ptr %128, align 8, !tbaa !18
  %130 = mul nsw i32 %127, %129
  %131 = load i32, ptr %16, align 4, !tbaa !13
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %132) #6
  %134 = load i64, ptr %18, align 8, !tbaa !9
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %134) #6
  %136 = load i32, ptr %135, align 4, !tbaa !13
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %137) #6
  %139 = getelementptr inbounds %struct.XY, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !30
  %141 = add nsw i32 %130, %140
  store i32 %141, ptr %19, align 4, !tbaa !13
  %142 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 9
  %143 = load i32, ptr %17, align 4, !tbaa !13
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144) #6
  %146 = load double, ptr %145, align 8, !tbaa !31
  %147 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 9
  %148 = load i32, ptr %19, align 4, !tbaa !13
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #6
  %151 = load double, ptr %150, align 8, !tbaa !31
  %152 = fsub double %146, %151
  %153 = call double @llvm.fabs.f64(double %152)
  %154 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 4
  %155 = load double, ptr %154, align 8, !tbaa !32
  %156 = fcmp olt double %153, %155
  br i1 %156, label %157, label %259

157:                                              ; preds = %117
  %158 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 3
  %159 = load i32, ptr %19, align 4, !tbaa !13
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #6
  %162 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216) %161)
          to label %163 unwind label %241

163:                                              ; preds = %157
  %164 = getelementptr inbounds %class.Vec3, ptr %162, i32 0, i32 0
  %165 = getelementptr inbounds [3 x double], ptr %164, i64 0, i64 1
  %166 = load double, ptr %165, align 8, !tbaa !31
  %167 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 9
  %168 = load i32, ptr %19, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #6
  %171 = load double, ptr %170, align 8, !tbaa !31
  %172 = fsub double %166, %171
  %173 = call double @llvm.fabs.f64(double %172)
  %174 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 5
  %175 = load double, ptr %174, align 8, !tbaa !33
  %176 = fcmp olt double %173, %175
  br i1 %176, label %177, label %259

177:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %178 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 9
  %179 = load i32, ptr %19, align 4, !tbaa !13
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %180) #6
  %182 = load double, ptr %181, align 8, !tbaa !31
  %183 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 3
  %184 = load i32, ptr %19, align 4, !tbaa !13
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %185) #6
  %187 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216) %186)
          to label %188 unwind label %245

188:                                              ; preds = %177
  %189 = getelementptr inbounds %class.Vec3, ptr %187, i32 0, i32 0
  %190 = getelementptr inbounds [3 x double], ptr %189, i64 0, i64 1
  %191 = load double, ptr %190, align 8, !tbaa !31
  %192 = fsub double %182, %191
  invoke void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %20, double noundef 0.000000e+00, double noundef %192, double noundef 0.000000e+00)
          to label %193 unwind label %245

193:                                              ; preds = %188
  %194 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 3
  %195 = load i32, ptr %19, align 4, !tbaa !13
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !34
  invoke void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %197, ptr noundef byval(%class.Vec3) align 8 %21)
          to label %198 unwind label %245

198:                                              ; preds = %193
  %199 = getelementptr inbounds %class.Cloth, ptr %24, i32 0, i32 3
  %200 = load i32, ptr %19, align 4, !tbaa !13
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #6
  invoke void @_ZN8Particle13makeUnmovableEv(ptr noundef nonnull align 8 dereferenceable(216) %202)
          to label %203 unwind label %245

203:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %204 = load i32, ptr %16, align 4, !tbaa !13
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %205) #6
  %207 = load i64, ptr %18, align 8, !tbaa !9
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %207) #6
  %209 = load i32, ptr %208, align 4, !tbaa !13
  %210 = sext i32 %209 to i64
  %211 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %210)
          to label %212 unwind label %249

212:                                              ; preds = %203
  %213 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %214 = extractvalue { ptr, i64 } %211, 0
  store ptr %214, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %216 = extractvalue { ptr, i64 } %211, 1
  store i64 %216, ptr %215, align 8
  %217 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  %218 = zext i1 %217 to i32
  %219 = icmp eq i32 %218, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br i1 %219, label %220, label %257

220:                                              ; preds = %212
  %221 = load i32, ptr %16, align 4, !tbaa !13
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %222) #6
  %224 = load i64, ptr %18, align 8, !tbaa !9
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %224) #6
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %225)
          to label %226 unwind label %245

226:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %227 = load i32, ptr %16, align 4, !tbaa !13
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %228) #6
  %230 = load i64, ptr %18, align 8, !tbaa !9
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %230) #6
  %232 = load i32, ptr %231, align 4, !tbaa !13
  %233 = sext i32 %232 to i64
  %234 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %233)
          to label %235 unwind label %253

235:                                              ; preds = %226
  %236 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %237 = extractvalue { ptr, i64 } %234, 0
  store ptr %237, ptr %236, align 8
  %238 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %239 = extractvalue { ptr, i64 } %234, 1
  store i64 %239, ptr %238, align 8
  %240 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %257

241:                                              ; preds = %157
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %11, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %12, align 4
  br label %263

245:                                              ; preds = %220, %198, %193, %188, %177
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %11, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %12, align 4
  br label %258

249:                                              ; preds = %203
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %11, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %258

253:                                              ; preds = %226
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %11, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %258

257:                                              ; preds = %235, %212
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %259

258:                                              ; preds = %253, %249, %245
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %263

259:                                              ; preds = %257, %163, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %260

260:                                              ; preds = %259
  %261 = load i64, ptr %18, align 8, !tbaa !9
  %262 = add i64 %261, 1
  store i64 %262, ptr %18, align 8, !tbaa !9
  br label %101, !llvm.loop !36

263:                                              ; preds = %258, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %265

264:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %78, !llvm.loop !37

265:                                              ; preds = %263, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %267

266:                                              ; preds = %80
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  ret void

267:                                              ; preds = %265, %109, %76
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  br label %268

268:                                              ; preds = %267, %46
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #6
  br label %269

269:                                              ; preds = %268, %35
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %11, align 8
  %272 = load i32, ptr %12, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI2XYSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !14, i64 4}
!17 = !{!"_ZTS2XY", !14, i64 0, !14, i64 4}
!18 = !{!19, !14, i64 120}
!19 = !{!"_ZTS5Cloth", !14, i64 0, !14, i64 4, !20, i64 8, !21, i64 16, !20, i64 40, !20, i64 48, !25, i64 56, !20, i64 80, !20, i64 88, !26, i64 96, !14, i64 120, !14, i64 124}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSSt6vectorI8ParticleSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseI8ParticleSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI8ParticleSaIS0_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI8ParticleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS4Vec3", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!17, !14, i64 0}
!31 = !{!20, !20, i64 0}
!32 = !{!19, !20, i64 40}
!33 = !{!19, !20, i64 48}
!34 = !{i64 0, i64 24, !35}
!35 = !{!7, !7, i64 0}
!36 = distinct !{!36, !12}
!37 = distinct !{!37, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Vec3 = type { [3 x double] }
%"class.std::vector.25" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle13makeUnmovableEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Cloth21handle_slop_connectedESt6vectorIiSaIiEES0_I2XYSaIS3_EES0_IS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.25", align 8
  %6 = alloca %"class.std::queue", align 8
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = alloca %class.Vec3, align 8
  %9 = alloca %"struct.std::_Bit_reference", align 8
  %10 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %11 = call noundef i64 @_ZNKSt6vectorI2XYSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %14, %4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %.preheader46 unwind label %28

.preheader46:                                     ; preds = %._crit_edge
  %12 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not56 = icmp eq i64 %12, 0
  br i1 %.not56, label %.preheader, label %.lr.ph49

.lr.ph49:                                         ; preds = %.preheader46
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  br label %30

.lr.ph:                                           ; preds = %4, %14
  %.047 = phi i64 [ %15, %14 ], [ 0, %4 ]
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %5, i1 noundef zeroext false)
          to label %14 unwind label %18

14:                                               ; preds = %.lr.ph
  %15 = add nuw i64 %.047, 1
  %16 = call noundef i64 @_ZNKSt6vectorI2XYSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %17 = icmp ult i64 %15, %16
  br i1 %17, label %.lr.ph, label %._crit_edge, !llvm.loop !5

18:                                               ; preds = %.lr.ph
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %148

.preheader:                                       ; preds = %37, %.preheader46
  %20 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  br i1 %20, label %._crit_edge55, label %.lr.ph54

.lr.ph54:                                         ; preds = %.preheader
  %21 = getelementptr inbounds i8, ptr %0, i64 120
  %22 = getelementptr inbounds i8, ptr %0, i64 96
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = getelementptr inbounds i8, ptr %9, i64 8
  %27 = getelementptr inbounds i8, ptr %10, i64 8
  br label %49

28:                                               ; preds = %._crit_edge
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %147

30:                                               ; preds = %.lr.ph49, %37
  %.03848 = phi i64 [ 0, %.lr.ph49 ], [ %41, %37 ]
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03848) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %32 unwind label %44

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03848) #5
  %34 = load i32, ptr %33, align 4, !tbaa !7
  %35 = sext i32 %34 to i64
  %36 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %35)
          to label %37 unwind label %46

37:                                               ; preds = %32
  %38 = extractvalue { ptr, i64 } %36, 0
  store ptr %38, ptr %7, align 8
  %39 = extractvalue { ptr, i64 } %36, 1
  store i64 %39, ptr %13, align 8
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %41 = add nuw i64 %.03848, 1
  %42 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %30, label %.preheader, !llvm.loop !11

44:                                               ; preds = %30
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %146

46:                                               ; preds = %32
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %146

.loopexit:                                        ; preds = %141, %49
  %48 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  br i1 %48, label %._crit_edge55, label %49, !llvm.loop !12

49:                                               ; preds = %.lr.ph54, %.loopexit
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %51 = load i32, ptr %50, align 4, !tbaa !7
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %52) #5
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = load i32, ptr %21, align 8, !tbaa !15
  %57 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %52) #5
  %58 = load i32, ptr %57, align 4, !tbaa !28
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %60 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %.not57 = icmp eq i64 %60, 0
  br i1 %.not57, label %.loopexit, label %.lr.ph53

.lr.ph53:                                         ; preds = %49
  %61 = mul nsw i32 %56, %55
  %62 = add nsw i32 %58, %61
  %63 = sext i32 %62 to i64
  br label %64

64:                                               ; preds = %.lr.ph53, %141
  %.03150 = phi i64 [ 0, %.lr.ph53 ], [ %142, %141 ]
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %.03150) #5
  %67 = load i32, ptr %66, align 4, !tbaa !7
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %68) #5
  %70 = getelementptr inbounds i8, ptr %69, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !13
  %72 = load i32, ptr %21, align 8, !tbaa !15
  %73 = mul nsw i32 %72, %71
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %.03150) #5
  %76 = load i32, ptr %75, align 4, !tbaa !7
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %77) #5
  %79 = load i32, ptr %78, align 4, !tbaa !28
  %80 = add nsw i32 %79, %73
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %63) #5
  %82 = load double, ptr %81, align 8, !tbaa !29
  %83 = sext i32 %80 to i64
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %83) #5
  %85 = load double, ptr %84, align 8, !tbaa !29
  %86 = fsub double %82, %85
  %87 = call double @llvm.fabs.f64(double %86)
  %88 = load double, ptr %23, align 8, !tbaa !30
  %89 = fcmp olt double %87, %88
  br i1 %89, label %90, label %141

90:                                               ; preds = %64
  %91 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %83) #5
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216) %91)
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = load double, ptr %93, align 8, !tbaa !29
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %83) #5
  %96 = load double, ptr %95, align 8, !tbaa !29
  %97 = fsub double %94, %96
  %98 = call double @llvm.fabs.f64(double %97)
  %99 = load double, ptr %25, align 8, !tbaa !31
  %100 = fcmp olt double %98, %99
  br i1 %100, label %101, label %141

101:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %83) #5
  %103 = load double, ptr %102, align 8, !tbaa !29
  %104 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %83) #5
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8Particle6getPosEv(ptr noundef nonnull align 8 dereferenceable(216) %104)
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = load double, ptr %106, align 8, !tbaa !29
  %108 = fsub double %103, %107
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef 0.000000e+00, double noundef %108, double noundef 0.000000e+00)
  %109 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %83) #5
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %109, ptr noundef nonnull byval(%class.Vec3) align 8 %8)
  %110 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorI8ParticleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %83) #5
  call void @_ZN8Particle13makeUnmovableEv(ptr noundef nonnull align 8 dereferenceable(216) %110)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %.03150) #5
  %113 = load i32, ptr %112, align 4, !tbaa !7
  %114 = sext i32 %113 to i64
  %115 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %114)
          to label %116 unwind label %135

116:                                              ; preds = %101
  %117 = extractvalue { ptr, i64 } %115, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i64 } %115, 1
  store i64 %118, ptr %26, align 8
  %119 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br i1 %119, label %139, label %120

120:                                              ; preds = %116
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %.03150) #5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %122)
          to label %123 unwind label %133

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %.03150) #5
  %126 = load i32, ptr %125, align 4, !tbaa !7
  %127 = sext i32 %126 to i64
  %128 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %127)
          to label %129 unwind label %137

129:                                              ; preds = %123
  %130 = extractvalue { ptr, i64 } %128, 0
  store ptr %130, ptr %10, align 8
  %131 = extractvalue { ptr, i64 } %128, 1
  store i64 %131, ptr %27, align 8
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %139

133:                                              ; preds = %120
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %140

135:                                              ; preds = %101
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %140

137:                                              ; preds = %123
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %140

139:                                              ; preds = %129, %116
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %141

140:                                              ; preds = %137, %135, %133
  %.pn = phi { ptr, i32 } [ %138, %137 ], [ %134, %133 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %146

141:                                              ; preds = %139, %90, %64
  %142 = add nuw i64 %.03150, 1
  %143 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %52) #5
  %144 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #5
  %145 = icmp ult i64 %142, %144
  br i1 %145, label %64, label %.loopexit, !llvm.loop !32

._crit_edge55:                                    ; preds = %.loopexit, %.preheader
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  ret void

146:                                              ; preds = %44, %46, %140
  %.pn40.pn = phi { ptr, i32 } [ %.pn, %140 ], [ %47, %46 ], [ %45, %44 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  br label %147

147:                                              ; preds = %146, %28
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %146 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  br label %148

148:                                              ; preds = %147, %18
  %.pn44 = phi { ptr, i32 } [ %19, %18 ], [ %.pn40.pn.pn, %147 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn44
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI2XYSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI2XYSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = !{!14, !8, i64 4}
!14 = !{!"_ZTS2XY", !8, i64 0, !8, i64 4}
!15 = !{!16, !8, i64 120}
!16 = !{!"_ZTS5Cloth", !8, i64 0, !8, i64 4, !17, i64 8, !18, i64 16, !17, i64 40, !17, i64 48, !23, i64 56, !17, i64 80, !17, i64 88, !24, i64 96, !8, i64 120, !8, i64 124}
!17 = !{!"double", !9, i64 0}
!18 = !{!"_ZTSSt6vectorI8ParticleSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI8ParticleSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI8ParticleSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI8ParticleSaIS0_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!"_ZTS4Vec3", !9, i64 0}
!24 = !{!"_ZTSSt6vectorIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!28 = !{!14, !8, i64 0}
!29 = !{!17, !17, i64 0}
!30 = !{!16, !17, i64 40}
!31 = !{!16, !17, i64 48}
!32 = distinct !{!32, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass