; LLVM IR from jonpena/Cirobb :: cirobb/Scene.ll (ZN5Scene4StepERKf)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Vec2 = type { float, float }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%struct.Scene = type { %struct.Vec2, i32, i32, %"class.std::vector", %"class.std::map" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<RigidBody *, std::allocator<RigidBody *>>::_Vector_impl" }
%"struct.std::_Vector_base<RigidBody *, std::allocator<RigidBody *>>::_Vector_impl" = type { %"struct.std::_Vector_base<RigidBody *, std::allocator<RigidBody *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<RigidBody *, std::allocator<RigidBody *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<ManifoldKey, std::pair<const ManifoldKey, Manifold>, std::_Select1st<std::pair<const ManifoldKey, Manifold>>, std::less<ManifoldKey>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ManifoldKey, std::pair<const ManifoldKey, Manifold>, std::_Select1st<std::pair<const ManifoldKey, Manifold>>, std::less<ManifoldKey>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.RigidBody = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, float, float, float, float, float, ptr }
%"struct.std::pair.5" = type { %struct.ManifoldKey, %struct.Manifold }
%struct.ManifoldKey = type { ptr, ptr }
%struct.Manifold = type { i32, [2 x %struct.Contact], %struct.PostPosition, float, float, ptr, ptr, %struct.Vec2 }
%struct.Contact = type { %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float }
%struct.PostPosition = type { float, float, [2 x %struct.Vec2], [2 x %struct.Vec2] }

@_ZN5Scene14CorrectionTypeE = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Scene10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(88)) #0 align 2

; 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 ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene4StepERKf(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.Vec2, align 4
  %10 = alloca %struct.Vec2, align 4
  %11 = alloca %struct.Vec2, align 4
  %12 = alloca %struct.Vec2, align 4
  %13 = alloca float, align 4
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca ptr, align 8
  %33 = alloca %struct.Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8
  call void @_ZN5Scene10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(88) %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %35 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 3
  store ptr %35, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  br label %42

42:                                               ; preds = %89, %2
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %43, label %45, label %44

44:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %91

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %47, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.RigidBody, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.RigidBody, ptr %50, i32 0, i32 7
  %52 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(4) %51)
  store <2 x float> %52, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %53 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 0
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.RigidBody, ptr %54, i32 0, i32 14
  %56 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %55)
  store <2 x float> %56, ptr %12, align 4
  %57 = call <2 x float> @_ZN4Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %57, ptr %10, align 4
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %58)
  store <2 x float> %59, ptr %9, align 4
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.RigidBody, ptr %60, i32 0, i32 1
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.RigidBody, ptr %62, i32 0, i32 5
  %64 = load float, ptr %63, align 8, !tbaa !9
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.RigidBody, ptr %65, i32 0, i32 9
  %67 = load float, ptr %66, align 8, !tbaa !13
  %68 = fmul float %64, %67
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load float, ptr %69, align 4, !tbaa !14
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.RigidBody, ptr %71, i32 0, i32 4
  %73 = load float, ptr %72, align 4, !tbaa !15
  %74 = call float @llvm.fmuladd.f32(float %68, float %70, float %73)
  store float %74, ptr %72, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.RigidBody, ptr %75, i32 0, i32 12
  %77 = load float, ptr %76, align 4, !tbaa !16
  %78 = call noundef float @_ZSt3powff(float noundef 0x3FEF0A3D80000000, float noundef %77)
  store float %78, ptr %13, align 4, !tbaa !14
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.RigidBody, ptr %79, i32 0, i32 1
  call void @_ZN4Vec2mLERKf(ptr noundef nonnull align 4 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.RigidBody, ptr %81, i32 0, i32 13
  %83 = load float, ptr %82, align 8, !tbaa !17
  %84 = call noundef float @_ZSt3powff(float noundef 0x3FEF0A3D80000000, float noundef %83)
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.RigidBody, ptr %85, i32 0, i32 4
  %87 = load float, ptr %86, align 4, !tbaa !15
  %88 = fmul float %87, %84
  store float %88, ptr %86, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %89

89:                                               ; preds = %45
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br label %42

91:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %92 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %93 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %92) #7
  %94 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  br label %95

95:                                               ; preds = %105, %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %96 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %97 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %96) #7
  %98 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  %99 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br i1 %99, label %101, label %100

100:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %108

101:                                              ; preds = %95
  %102 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %103 = getelementptr inbounds %"struct.std::pair.5", ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN8Manifold7PreStepERKf(ptr noundef nonnull align 8 dereferenceable(168) %103, ptr noundef nonnull align 4 dereferenceable(4) %104)
  br label %105

105:                                              ; preds = %101
  %106 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #7
  %107 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  br label %95, !llvm.loop !18

108:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %109 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %110 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %109) #7
  %111 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  br label %112

112:                                              ; preds = %121, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %113 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %114 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %113) #7
  %115 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %116, label %118, label %117

117:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %124

118:                                              ; preds = %112
  %119 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %120 = getelementptr inbounds %"struct.std::pair.5", ptr %119, i32 0, i32 1
  call void @_ZN8Manifold12WarmStartingEv(ptr noundef nonnull align 8 dereferenceable(168) %120)
  br label %121

121:                                              ; preds = %118
  %122 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #7
  %123 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  br label %112, !llvm.loop !20

124:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !21
  br label %125

125:                                              ; preds = %148, %124
  %126 = load i32, ptr %20, align 4, !tbaa !21
  %127 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !23
  %129 = icmp slt i32 %126, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %125
  store i32 10, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %151

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %132 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %133 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %132) #7
  %134 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  br label %135

135:                                              ; preds = %144, %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %136 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %137 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %136) #7
  %138 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  %139 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 13, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %147

141:                                              ; preds = %135
  %142 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %143 = getelementptr inbounds %"struct.std::pair.5", ptr %142, i32 0, i32 1
  call void @_ZN8Manifold12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(168) %143)
  br label %144

144:                                              ; preds = %141
  %145 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0) #7
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %135, !llvm.loop !38

147:                                              ; preds = %140
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %20, align 4, !tbaa !21
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %20, align 4, !tbaa !21
  br label %125, !llvm.loop !39

151:                                              ; preds = %130
  %152 = load i32, ptr @_ZN5Scene14CorrectionTypeE, align 4, !tbaa !21
  %153 = icmp eq i32 %152, 2
  br i1 %153, label %154, label %182

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !21
  br label %155

155:                                              ; preds = %178, %154
  %156 = load i32, ptr %25, align 4, !tbaa !21
  %157 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !40
  %159 = icmp slt i32 %156, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %155
  store i32 16, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %181

161:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %162 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %163 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %162) #7
  %164 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %26, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  br label %165

165:                                              ; preds = %174, %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %166 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 4
  %167 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %166) #7
  %168 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %27, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br i1 %169, label %171, label %170

170:                                              ; preds = %165
  store i32 19, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %177

171:                                              ; preds = %165
  %172 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %173 = getelementptr inbounds %"struct.std::pair.5", ptr %172, i32 0, i32 1
  call void @_ZN8Manifold15ApplyCorrectionEv(ptr noundef nonnull align 8 dereferenceable(168) %173)
  br label %174

174:                                              ; preds = %171
  %175 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #7
  %176 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  store ptr %175, ptr %176, align 8
  br label %165, !llvm.loop !41

177:                                              ; preds = %170
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %25, align 4, !tbaa !21
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %25, align 4, !tbaa !21
  br label %155, !llvm.loop !42

181:                                              ; preds = %160
  br label %182

182:                                              ; preds = %181, %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %183 = getelementptr inbounds %struct.Scene, ptr %34, i32 0, i32 3
  store ptr %183, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %184 = load ptr, ptr %29, align 8, !tbaa !5
  %185 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #7
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %185, ptr %186, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %187 = load ptr, ptr %29, align 8, !tbaa !5
  %188 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %187) #7
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %188, ptr %189, align 8
  br label %190

190:                                              ; preds = %215, %182
  %191 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %191, label %193, label %192

192:                                              ; preds = %190
  store i32 22, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %217

193:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  store ptr %195, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %196 = load ptr, ptr %32, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.RigidBody, ptr %196, i32 0, i32 1
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %197, ptr noundef nonnull align 4 dereferenceable(4) %198)
  store <2 x float> %199, ptr %33, align 4
  %200 = load ptr, ptr %32, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.RigidBody, ptr %200, i32 0, i32 0
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  %202 = load ptr, ptr %32, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.RigidBody, ptr %202, i32 0, i32 4
  %204 = load float, ptr %203, align 4, !tbaa !15
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = load float, ptr %205, align 4, !tbaa !14
  %207 = load ptr, ptr %32, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.RigidBody, ptr %207, i32 0, i32 3
  %209 = load float, ptr %208, align 8, !tbaa !43
  %210 = call float @llvm.fmuladd.f32(float %204, float %206, float %209)
  store float %210, ptr %208, align 8, !tbaa !43
  %211 = load ptr, ptr %32, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.RigidBody, ptr %211, i32 0, i32 2
  call void @_ZN4Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %212)
  %213 = load ptr, ptr %32, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.RigidBody, ptr %213, i32 0, i32 5
  store float 0.000000e+00, ptr %214, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %215

215:                                              ; preds = %193
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br label %190

217:                                              ; preds = %192
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN4Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #4

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

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

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

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

declare void @_ZN8Manifold7PreStepERKf(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

declare void @_ZN8Manifold12WarmStartingEv(ptr noundef nonnull align 8 dereferenceable(168)) #6

declare void @_ZN8Manifold12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(168)) #6

declare void @_ZN8Manifold15ApplyCorrectionEv(ptr noundef nonnull align 8 dereferenceable(168)) #6

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

attributes #0 = { 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 #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 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 32}
!10 = !{!"_ZTS9RigidBody", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !6, i64 72}
!11 = !{!"_ZTS4Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !12, i64 48}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 28}
!16 = !{!10, !12, i64 60}
!17 = !{!10, !12, i64 64}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!24, !22, i64 12}
!24 = !{!"_ZTS5Scene", !11, i64 0, !22, i64 8, !22, i64 12, !25, i64 16, !29, i64 40}
!25 = !{!"_ZTSSt6vectorIP9RigidBodySaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP9RigidBodySaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP9RigidBodySaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP9RigidBodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeI11ManifoldKeySt4pairIKS0_8ManifoldESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeI11ManifoldKeySt4pairIKS0_8ManifoldESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI11ManifoldKeyEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessI11ManifoldKeyE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !37, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!37 = !{!"long", !7, i64 0}
!38 = distinct !{!38, !19}
!39 = distinct !{!39, !19}
!40 = !{!24, !22, i64 8}
!41 = distinct !{!41, !19}
!42 = distinct !{!42, !19}
!43 = !{!10, !12, i64 24}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Vec2 = type { float, float }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@_ZN5Scene14CorrectionTypeE = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Scene10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress 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 ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene4StepERKf(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %struct.Vec2, align 8
  %6 = alloca %struct.Vec2, align 8
  %7 = alloca %struct.Vec2, align 8
  %8 = alloca %struct.Vec2, align 8
  %9 = alloca float, align 4
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %struct.Vec2, align 8
  tail call void @_ZN5Scene10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %22 = tail call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  store ptr %22, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %23 = tail call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  store ptr %23, ptr %4, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %26, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %27 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %27, ptr %11, align 8
  %28 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %28, label %.lr.ph35, label %._crit_edge36

.lr.ph:                                           ; preds = %2, %.lr.ph
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = getelementptr inbounds i8, ptr %30, i64 40
  %33 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
  store <2 x float> %33, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %34 = getelementptr inbounds i8, ptr %30, i64 68
  %35 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(4) %34)
  store <2 x float> %35, ptr %8, align 8
  %36 = call <2 x float> @_ZN4Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %36, ptr %6, align 8
  %37 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store <2 x float> %37, ptr %5, align 8
  %38 = getelementptr inbounds i8, ptr %30, i64 8
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %39 = getelementptr inbounds i8, ptr %30, i64 32
  %40 = load float, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %30, i64 48
  %42 = load float, ptr %41, align 8, !tbaa !13
  %43 = fmul float %40, %42
  %44 = load float, ptr %1, align 4, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %30, i64 28
  %46 = load float, ptr %45, align 4, !tbaa !15
  %47 = call float @llvm.fmuladd.f32(float %43, float %44, float %46)
  store float %47, ptr %45, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %48 = getelementptr inbounds i8, ptr %30, i64 60
  %49 = load float, ptr %48, align 4, !tbaa !16
  %50 = call noundef float @_ZSt3powff(float noundef 0x3FEF0A3D80000000, float noundef %49)
  store float %50, ptr %9, align 4, !tbaa !14
  call void @_ZN4Vec2mLERKf(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %51 = getelementptr inbounds i8, ptr %30, i64 64
  %52 = load float, ptr %51, align 8, !tbaa !17
  %53 = call noundef float @_ZSt3powff(float noundef 0x3FEF0A3D80000000, float noundef %52)
  %54 = load float, ptr %45, align 4, !tbaa !15
  %55 = fmul float %53, %54
  store float %55, ptr %45, align 4, !tbaa !15
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %57, label %.lr.ph, label %._crit_edge

._crit_edge36:                                    ; preds = %.lr.ph35, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %58 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %58, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %59 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %59, ptr %13, align 8
  %60 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %60, label %.lr.ph38, label %._crit_edge39

.lr.ph35:                                         ; preds = %._crit_edge, %.lr.ph35
  %61 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  call void @_ZN8Manifold7PreStepERKf(ptr noundef nonnull align 8 dereferenceable(168) %62, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %63 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %64 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %64, ptr %11, align 8
  %65 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %65, label %.lr.ph35, label %._crit_edge36, !llvm.loop !18

._crit_edge39:                                    ; preds = %.lr.ph38, %._crit_edge36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %66 = getelementptr inbounds i8, ptr %0, i64 12
  %67 = load i32, ptr %66, align 4, !tbaa !20
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph45, label %._crit_edge46

.lr.ph38:                                         ; preds = %._crit_edge36, %.lr.ph38
  %69 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  call void @_ZN8Manifold12WarmStartingEv(ptr noundef nonnull align 8 dereferenceable(168) %70)
  %71 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %72 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %72, ptr %13, align 8
  %73 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %73, label %.lr.ph38, label %._crit_edge39, !llvm.loop !36

._crit_edge46:                                    ; preds = %._crit_edge42, %._crit_edge39
  %74 = load i32, ptr @_ZN5Scene14CorrectionTypeE, align 4, !tbaa !37
  %75 = icmp eq i32 %74, 2
  br i1 %75, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %._crit_edge46
  %76 = getelementptr inbounds i8, ptr %0, i64 8
  %77 = load i32, ptr %76, align 8, !tbaa !38
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph51, label %.loopexit

.lr.ph45:                                         ; preds = %._crit_edge39, %._crit_edge42
  %.043 = phi i32 [ %82, %._crit_edge42 ], [ 0, %._crit_edge39 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %79 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %79, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %80 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %80, ptr %15, align 8
  %81 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %81, label %.lr.ph41, label %._crit_edge42

._crit_edge42:                                    ; preds = %.lr.ph41, %.lr.ph45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %82 = add nuw nsw i32 %.043, 1
  %83 = load i32, ptr %66, align 4, !tbaa !20
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.lr.ph45, label %._crit_edge46, !llvm.loop !39

.lr.ph41:                                         ; preds = %.lr.ph45, %.lr.ph41
  %85 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  call void @_ZN8Manifold12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(168) %86)
  %87 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %88 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %88, ptr %15, align 8
  %89 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %89, label %.lr.ph41, label %._crit_edge42, !llvm.loop !40

.lr.ph51:                                         ; preds = %.preheader, %._crit_edge49
  %.03350 = phi i32 [ %93, %._crit_edge49 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %90 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %90, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %91 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %91, ptr %17, align 8
  %92 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br i1 %92, label %.lr.ph48, label %._crit_edge49

._crit_edge49:                                    ; preds = %.lr.ph48, %.lr.ph51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %93 = add nuw nsw i32 %.03350, 1
  %94 = load i32, ptr %76, align 8, !tbaa !38
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %.lr.ph51, label %.loopexit, !llvm.loop !41

.lr.ph48:                                         ; preds = %.lr.ph51, %.lr.ph48
  %96 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  call void @_ZN8Manifold15ApplyCorrectionEv(ptr noundef nonnull align 8 dereferenceable(168) %97)
  %98 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %99 = call ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  store ptr %99, ptr %17, align 8
  %100 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK11ManifoldKey8ManifoldEES7_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br i1 %100, label %.lr.ph48, label %._crit_edge49, !llvm.loop !42

.loopexit:                                        ; preds = %._crit_edge49, %.preheader, %._crit_edge46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %101 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  store ptr %101, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %102 = call ptr @_ZNSt6vectorIP9RigidBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  store ptr %102, ptr %19, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %103, label %.lr.ph53, label %._crit_edge54

._crit_edge54:                                    ; preds = %.lr.ph53, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  ret void

.lr.ph53:                                         ; preds = %.loopexit, %.lr.ph53
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = call <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store <2 x float> %107, ptr %20, align 8
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  %108 = getelementptr inbounds i8, ptr %105, i64 28
  %109 = load float, ptr %108, align 4, !tbaa !15
  %110 = load float, ptr %1, align 4, !tbaa !14
  %111 = getelementptr inbounds i8, ptr %105, i64 24
  %112 = load float, ptr %111, align 8, !tbaa !43
  %113 = call float @llvm.fmuladd.f32(float %109, float %110, float %112)
  store float %113, ptr %111, align 8, !tbaa !43
  %114 = getelementptr inbounds i8, ptr %105, i64 16
  call void @_ZN4Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %114)
  %115 = getelementptr inbounds i8, ptr %105, i64 32
  store float 0.000000e+00, ptr %115, align 8, !tbaa !9
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9RigidBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %117, label %.lr.ph53, label %._crit_edge54
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP9RigidBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN4Vec2mlERKf(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN4Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

declare void @_ZN8Manifold7PreStepERKf(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

declare void @_ZN8Manifold12WarmStartingEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #6

declare void @_ZN8Manifold12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #6

declare void @_ZN8Manifold15ApplyCorrectionEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { mustprogress 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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 32}
!10 = !{!"_ZTS9RigidBody", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !6, i64 72}
!11 = !{!"_ZTS4Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !12, i64 48}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 28}
!16 = !{!10, !12, i64 60}
!17 = !{!10, !12, i64 64}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !22, i64 12}
!21 = !{!"_ZTS5Scene", !11, i64 0, !22, i64 8, !22, i64 12, !23, i64 16, !27, i64 40}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIP9RigidBodySaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP9RigidBodySaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP9RigidBodySaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP9RigidBodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt3mapI11ManifoldKey8ManifoldSt4lessIS0_ESaISt4pairIKS0_S1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt8_Rb_treeI11ManifoldKeySt4pairIKS0_8ManifoldESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSNSt8_Rb_treeI11ManifoldKeySt4pairIKS0_8ManifoldESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !30, i64 0, !32, i64 8}
!30 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI11ManifoldKeyEE", !31, i64 0}
!31 = !{!"_ZTSSt4lessI11ManifoldKeyE"}
!32 = !{!"_ZTSSt15_Rb_tree_header", !33, i64 0, !35, i64 32}
!33 = !{!"_ZTSSt18_Rb_tree_node_base", !34, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!34 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = distinct !{!36, !19}
!37 = !{!22, !22, i64 0}
!38 = !{!21, !22, i64 8}
!39 = distinct !{!39, !19}
!40 = distinct !{!40, !19}
!41 = distinct !{!41, !19}
!42 = distinct !{!42, !19}
!43 = !{!10, !12, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass