; LLVM IR from erincatto/box2d-lite :: src/World.ll (ZN5World4StepEf)

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

%struct.Vec2 = type { float, float }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%struct.World = type <{ %"class.std::vector", %"class.std::vector.0", %"class.std::map", %struct.Vec2, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Body *, std::allocator<Body *>>::_Vector_impl" }
%"struct.std::_Vector_base<Body *, std::allocator<Body *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Body *, std::allocator<Body *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Body *, std::allocator<Body *>>::_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<Joint *, std::allocator<Joint *>>::_Vector_impl" }
%"struct.std::_Vector_base<Joint *, std::allocator<Joint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Joint *, std::allocator<Joint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Joint *, std::allocator<Joint *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<ArbiterKey, std::pair<const ArbiterKey, Arbiter>, std::_Select1st<std::pair<const ArbiterKey, Arbiter>>, std::less<ArbiterKey>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ArbiterKey, std::pair<const ArbiterKey, Arbiter>, std::_Select1st<std::pair<const ArbiterKey, Arbiter>>, std::less<ArbiterKey>>::_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.Body = type { %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, float, float, float, float }
%"struct.std::pair.10" = type { %struct.ArbiterKey, %struct.Arbiter }
%struct.ArbiterKey = type { ptr, ptr }
%struct.Arbiter = type <{ [2 x %struct.Contact], i32, [4 x i8], ptr, ptr, float, [4 x i8] }>
%struct.Contact = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, %union.FeaturePair }
%union.FeaturePair = type { i32 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(108)) #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 noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_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_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5World4StepEf(ptr noundef nonnull align 8 dereferenceable(108) %0, float noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %struct.Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %22 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %23 = load float, ptr %4, align 4, !tbaa !9
  %24 = fcmp ogt float %23, 0.000000e+00
  br i1 %24, label %25, label %28

25:                                               ; preds = %2
  %26 = load float, ptr %4, align 4, !tbaa !9
  %27 = fdiv float 1.000000e+00, %26
  br label %29

28:                                               ; preds = %2
  br label %29

29:                                               ; preds = %28, %25
  %30 = phi float [ %27, %25 ], [ 0.000000e+00, %28 ]
  store float %30, ptr %5, align 4, !tbaa !9
  call void @_ZN5World10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(108) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %31

31:                                               ; preds = %77, %29
  %32 = load i32, ptr %6, align 4, !tbaa !11
  %33 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 0
  %34 = call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  %35 = trunc i64 %34 to i32
  %36 = icmp slt i32 %32, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %31
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %80

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %39 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 0
  %40 = load i32, ptr %6, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4BodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #7
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  store ptr %43, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Body, ptr %44, i32 0, i32 9
  %46 = load float, ptr %45, align 4, !tbaa !13
  %47 = fcmp oeq float %46, 0.000000e+00
  br i1 %47, label %48, label %49

48:                                               ; preds = %38
  store i32 4, ptr %7, align 4
  br label %74

49:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %50 = load float, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %51 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Body, ptr %52, i32 0, i32 9
  %54 = load float, ptr %53, align 4, !tbaa !13
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Body, ptr %55, i32 0, i32 4
  %57 = call <2 x float> @_ZmlfRK4Vec2(float noundef %54, ptr noundef nonnull align 4 dereferenceable(8) %56)
  store <2 x float> %57, ptr %11, align 4
  %58 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %58, ptr %10, align 4
  %59 = call <2 x float> @_ZmlfRK4Vec2(float noundef %50, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %59, ptr %9, align 4
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Body, ptr %60, i32 0, i32 2
  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 %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 float, ptr %4, align 4, !tbaa !9
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Body, ptr %63, i32 0, i32 11
  %65 = load float, ptr %64, align 4, !tbaa !16
  %66 = fmul float %62, %65
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Body, ptr %67, i32 0, i32 5
  %69 = load float, ptr %68, align 4, !tbaa !17
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Body, ptr %70, i32 0, i32 3
  %72 = load float, ptr %71, align 4, !tbaa !18
  %73 = call float @llvm.fmuladd.f32(float %66, float %69, float %72)
  store float %73, ptr %71, align 4, !tbaa !18
  store i32 0, ptr %7, align 4
  br label %74

74:                                               ; preds = %49, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %75 = load i32, ptr %7, align 4
  switch i32 %75, label %193 [
    i32 0, label %76
    i32 4, label %77
  ]

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76, %74
  %78 = load i32, ptr %6, align 4, !tbaa !11
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %6, align 4, !tbaa !11
  br label %31, !llvm.loop !19

80:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %81 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 2
  %82 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %81) #7
  %83 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  br label %84

84:                                               ; preds = %94, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %85 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 2
  %86 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %85) #7
  %87 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  %88 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(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 %13) #7
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %96

90:                                               ; preds = %84
  %91 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %92 = getelementptr inbounds %"struct.std::pair.10", ptr %91, i32 0, i32 1
  %93 = load float, ptr %5, align 4, !tbaa !9
  call void @_ZN7Arbiter7PreStepEf(ptr noundef nonnull align 8 dereferenceable(156) %92, float noundef %93)
  br label %94

94:                                               ; preds = %90
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %84, !llvm.loop !21

96:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %111, %96
  %98 = load i32, ptr %14, align 4, !tbaa !11
  %99 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 1
  %100 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #7
  %101 = trunc i64 %100 to i32
  %102 = icmp slt i32 %98, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %97
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %114

104:                                              ; preds = %97
  %105 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 1
  %106 = load i32, ptr %14, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5JointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #7
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = load float, ptr %5, align 4, !tbaa !9
  call void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88) %109, float noundef %110)
  br label %111

111:                                              ; preds = %104
  %112 = load i32, ptr %14, align 4, !tbaa !11
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %14, align 4, !tbaa !11
  br label %97, !llvm.loop !22

114:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %115

115:                                              ; preds = %154, %114
  %116 = load i32, ptr %15, align 4, !tbaa !11
  %117 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 4
  %118 = load i32, ptr %117, align 8, !tbaa !23
  %119 = icmp slt i32 %116, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %157

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %122 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 2
  %123 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %122) #7
  %124 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  br label %125

125:                                              ; preds = %134, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %126 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 2
  %127 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %126) #7
  %128 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  %129 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(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 %17) #7
  br i1 %129, label %131, label %130

130:                                              ; preds = %125
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %136

131:                                              ; preds = %125
  %132 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %133 = getelementptr inbounds %"struct.std::pair.10", ptr %132, i32 0, i32 1
  call void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156) %133)
  br label %134

134:                                              ; preds = %131
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %125, !llvm.loop !42

136:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %150, %136
  %138 = load i32, ptr %18, align 4, !tbaa !11
  %139 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 1
  %140 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #7
  %141 = trunc i64 %140 to i32
  %142 = icmp slt i32 %138, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %137
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %153

144:                                              ; preds = %137
  %145 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 1
  %146 = load i32, ptr %18, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5JointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #7
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  call void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88) %149)
  br label %150

150:                                              ; preds = %144
  %151 = load i32, ptr %18, align 4, !tbaa !11
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %18, align 4, !tbaa !11
  br label %137, !llvm.loop !43

153:                                              ; preds = %143
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %15, align 4, !tbaa !11
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %15, align 4, !tbaa !11
  br label %115, !llvm.loop !44

157:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %158

158:                                              ; preds = %189, %157
  %159 = load i32, ptr %19, align 4, !tbaa !11
  %160 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 0
  %161 = call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #7
  %162 = trunc i64 %161 to i32
  %163 = icmp slt i32 %159, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %158
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %192

165:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %166 = getelementptr inbounds %struct.World, ptr %22, i32 0, i32 0
  %167 = load i32, ptr %19, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4BodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #7
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  store ptr %170, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %171 = load float, ptr %4, align 4, !tbaa !9
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Body, ptr %172, i32 0, i32 2
  %174 = call <2 x float> @_ZmlfRK4Vec2(float noundef %171, ptr noundef nonnull align 4 dereferenceable(8) %173)
  store <2 x float> %174, ptr %21, align 4
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.Body, ptr %175, i32 0, i32 0
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %176, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %177 = load float, ptr %4, align 4, !tbaa !9
  %178 = load ptr, ptr %20, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.Body, ptr %178, i32 0, i32 3
  %180 = load float, ptr %179, align 4, !tbaa !18
  %181 = load ptr, ptr %20, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.Body, ptr %181, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !45
  %184 = call float @llvm.fmuladd.f32(float %177, float %180, float %183)
  store float %184, ptr %182, align 4, !tbaa !45
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.Body, ptr %185, i32 0, i32 4
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %186, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %187 = load ptr, ptr %20, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.Body, ptr %187, i32 0, i32 5
  store float 0.000000e+00, ptr %188, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %189

189:                                              ; preds = %165
  %190 = load i32, ptr %19, align 4, !tbaa !11
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %19, align 4, !tbaa !11
  br label %158, !llvm.loop !46

192:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void

193:                                              ; preds = %74
  unreachable
}

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

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

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

declare void @_ZN7Arbiter7PreStepEf(ptr noundef nonnull align 8 dereferenceable(156), float noundef) #6

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

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

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

declare void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88), float noundef) #6

declare void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156)) #6

declare void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) #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 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 #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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 52}
!14 = !{!"_ZTS4Body", !15, i64 0, !10, i64 8, !15, i64 12, !10, i64 20, !15, i64 24, !10, i64 32, !15, i64 36, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60}
!15 = !{!"_ZTS4Vec2", !10, i64 0, !10, i64 4}
!16 = !{!14, !10, i64 60}
!17 = !{!14, !10, i64 32}
!18 = !{!14, !10, i64 20}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!24, !12, i64 104}
!24 = !{!"_ZTS5World", !25, i64 0, !29, i64 24, !33, i64 48, !15, i64 96, !12, i64 104}
!25 = !{!"_ZTSSt6vectorIP4BodySaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP4BodySaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP4BodySaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP4BodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorIP5JointSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP5JointSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP5JointSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP5JointSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeI10ArbiterKeySt4pairIKS0_7ArbiterESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeI10ArbiterKeySt4pairIKS0_7ArbiterESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !36, i64 0, !38, i64 8}
!36 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI10ArbiterKeyEE", !37, i64 0}
!37 = !{!"_ZTSSt4lessI10ArbiterKeyE"}
!38 = !{!"_ZTSSt15_Rb_tree_header", !39, i64 0, !41, i64 32}
!39 = !{!"_ZTSSt18_Rb_tree_node_base", !40, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!40 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!41 = !{!"long", !7, i64 0}
!42 = distinct !{!42, !20}
!43 = distinct !{!43, !20}
!44 = distinct !{!44, !20}
!45 = !{!14, !10, i64 8}
!46 = distinct !{!46, !20}


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

%struct.Vec2 = type { float, float }
%"struct.std::_Rb_tree_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(108)) 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 noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_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_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5World4StepEf(ptr noundef nonnull align 8 dereferenceable(108) %0, float noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %struct.Vec2, align 8
  %4 = alloca %struct.Vec2, align 8
  %5 = alloca %struct.Vec2, align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %struct.Vec2, align 8
  %11 = fcmp ogt float %1, 0.000000e+00
  %12 = fdiv float 1.000000e+00, %1
  %13 = select i1 %11, float %12, float 0.000000e+00
  tail call void @_ZN5World10BroadPhaseEv(ptr noundef nonnull align 8 dereferenceable(108) %0)
  %14 = tail call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %15 = trunc i64 %14 to i32
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  br label %22

._crit_edge:                                      ; preds = %42, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %19, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %20 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %20, ptr %7, align 8
  %21 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %21, label %.lr.ph42, label %._crit_edge43

22:                                               ; preds = %.lr.ph, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %42 ]
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4BodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #7
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 52
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fcmp oeq float %26, 0.000000e+00
  br i1 %27, label %42, label %28

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %29 = getelementptr inbounds i8, ptr %24, i64 24
  %30 = call <2 x float> @_ZmlfRK4Vec2(float noundef %26, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %30, ptr %5, align 8
  %31 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %31, ptr %4, align 8
  %32 = call <2 x float> @_ZmlfRK4Vec2(float noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %32, ptr %3, align 8
  %33 = getelementptr inbounds i8, ptr %24, i64 12
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %34 = getelementptr inbounds i8, ptr %24, i64 60
  %35 = load float, ptr %34, align 4, !tbaa !13
  %36 = fmul float %35, %1
  %37 = getelementptr inbounds i8, ptr %24, i64 32
  %38 = load float, ptr %37, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %24, i64 20
  %40 = load float, ptr %39, align 4, !tbaa !15
  %41 = call float @llvm.fmuladd.f32(float %36, float %38, float %40)
  store float %41, ptr %39, align 4, !tbaa !15
  br label %42

42:                                               ; preds = %22, %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %sext = shl i64 %43, 32
  %44 = ashr exact i64 %sext, 32
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %22, label %._crit_edge, !llvm.loop !16

._crit_edge43:                                    ; preds = %.lr.ph42, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %46 = getelementptr inbounds i8, ptr %0, i64 24
  %47 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %48 = trunc i64 %47 to i32
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph46, label %.preheader39

.lr.ph42:                                         ; preds = %._crit_edge, %.lr.ph42
  %50 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  call void @_ZN7Arbiter7PreStepEf(ptr noundef nonnull align 8 dereferenceable(156) %51, float noundef %13)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %53 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %53, ptr %7, align 8
  %54 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %54, label %.lr.ph42, label %._crit_edge43, !llvm.loop !18

.preheader39:                                     ; preds = %.lr.ph46, %._crit_edge43
  %55 = getelementptr inbounds i8, ptr %0, i64 104
  %56 = load i32, ptr %55, align 8, !tbaa !19
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph55, label %.preheader

.lr.ph46:                                         ; preds = %._crit_edge43, %.lr.ph46
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %.lr.ph46 ], [ 0, %._crit_edge43 ]
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5JointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %indvars.iv60) #7
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  call void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88) %59, float noundef %13)
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %60 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %sext69 = shl i64 %60, 32
  %61 = ashr exact i64 %sext69, 32
  %62 = icmp slt i64 %indvars.iv.next61, %61
  br i1 %62, label %.lr.ph46, label %.preheader39, !llvm.loop !39

.preheader:                                       ; preds = %._crit_edge53, %.preheader39
  %63 = call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %64 = trunc i64 %63 to i32
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph57, label %._crit_edge58

.lr.ph55:                                         ; preds = %.preheader39, %._crit_edge53
  %.03754 = phi i32 [ %77, %._crit_edge53 ], [ 0, %.preheader39 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %66 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %66, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %67 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %67, ptr %9, align 8
  %68 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %68, label %.lr.ph48, label %._crit_edge49

._crit_edge49:                                    ; preds = %.lr.ph48, %.lr.ph55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %69 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %70 = trunc i64 %69 to i32
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph52, label %._crit_edge53

.lr.ph48:                                         ; preds = %.lr.ph55, %.lr.ph48
  %72 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  call void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156) %73)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %75 = call ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  store ptr %75, ptr %9, align 8
  %76 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %76, label %.lr.ph48, label %._crit_edge49, !llvm.loop !40

._crit_edge53:                                    ; preds = %.lr.ph52, %._crit_edge49
  %77 = add nuw nsw i32 %.03754, 1
  %78 = load i32, ptr %55, align 8, !tbaa !19
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %.lr.ph55, label %.preheader, !llvm.loop !41

.lr.ph52:                                         ; preds = %._crit_edge49, %.lr.ph52
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %.lr.ph52 ], [ 0, %._crit_edge49 ]
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5JointSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %indvars.iv63) #7
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  call void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88) %81)
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %82 = call noundef i64 @_ZNKSt6vectorIP5JointSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %sext70 = shl i64 %82, 32
  %83 = ashr exact i64 %sext70, 32
  %84 = icmp slt i64 %indvars.iv.next64, %83
  br i1 %84, label %.lr.ph52, label %._crit_edge53, !llvm.loop !42

._crit_edge58:                                    ; preds = %.lr.ph57, %.preheader
  ret void

.lr.ph57:                                         ; preds = %.preheader, %.lr.ph57
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph57 ], [ 0, %.preheader ]
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4BodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv66) #7
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %87 = getelementptr inbounds i8, ptr %86, i64 12
  %88 = call <2 x float> @_ZmlfRK4Vec2(float noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %87)
  store <2 x float> %88, ptr %10, align 8
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %86, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %89 = getelementptr inbounds i8, ptr %86, i64 20
  %90 = load float, ptr %89, align 4, !tbaa !15
  %91 = getelementptr inbounds i8, ptr %86, i64 8
  %92 = load float, ptr %91, align 4, !tbaa !43
  %93 = call float @llvm.fmuladd.f32(float %1, float %90, float %92)
  store float %93, ptr %91, align 4, !tbaa !43
  %94 = getelementptr inbounds i8, ptr %86, i64 24
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %94, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %95 = getelementptr inbounds i8, ptr %86, i64 32
  store float 0.000000e+00, ptr %95, align 4, !tbaa !14
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %96 = call noundef i64 @_ZNKSt6vectorIP4BodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %sext71 = shl i64 %96, 32
  %97 = ashr exact i64 %sext71, 32
  %98 = icmp slt i64 %indvars.iv.next67, %97
  br i1 %98, label %.lr.ph57, label %._crit_edge58, !llvm.loop !44
}

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

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

; 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI10ArbiterKey7ArbiterSt4lessIS0_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_iteratorISt4pairIK10ArbiterKey7ArbiterEES7_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN7Arbiter7PreStepEf(ptr noundef nonnull align 8 dereferenceable(156), float noundef) local_unnamed_addr #6

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

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

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

declare void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88), float noundef) local_unnamed_addr #6

declare void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156)) local_unnamed_addr #6

declare void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) 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 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 #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 52}
!10 = !{!"_ZTS4Body", !11, i64 0, !12, i64 8, !11, i64 12, !12, i64 20, !11, i64 24, !12, i64 32, !11, i64 36, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60}
!11 = !{!"_ZTS4Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !12, i64 60}
!14 = !{!10, !12, i64 32}
!15 = !{!10, !12, i64 20}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !38, i64 104}
!20 = !{!"_ZTS5World", !21, i64 0, !25, i64 24, !29, i64 48, !11, i64 96, !38, i64 104}
!21 = !{!"_ZTSSt6vectorIP4BodySaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP4BodySaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP4BodySaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP4BodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIP5JointSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP5JointSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP5JointSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP5JointSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt3mapI10ArbiterKey7ArbiterSt4lessIS0_ESaISt4pairIKS0_S1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeI10ArbiterKeySt4pairIKS0_7ArbiterESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeI10ArbiterKeySt4pairIKS0_7ArbiterESt10_Select1stIS4_ESt4lessIS0_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI10ArbiterKeyEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessI10ArbiterKeyE"}
!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 = !{!"int", !7, i64 0}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = !{!10, !12, i64 8}
!44 = distinct !{!44, !17}


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