; LLVM IR from mtsamis/box2d-optimized :: src/particle/b2_particle_system.ll (ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep)

; 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.b2Vec2 = type { float, float }
%class.b2ParticleSystem = type { i8, i32, i32, i8, i32, i8, i8, i32, float, float, float, float, i32, i32, %class.b2SlabAllocator, %"struct.b2ParticleSystem::UserOverridableBuffer", %"struct.b2ParticleSystem::UserOverridableBuffer.0", %"struct.b2ParticleSystem::UserOverridableBuffer.2", %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr, ptr, ptr, ptr, ptr, ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.4", ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.6", i32, [4 x i8], %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %class.b2GrowableBuffer, %class.b2GrowableBuffer.10, %class.b2GrowableBuffer.11, %class.b2GrowableBuffer.12, %class.b2GrowableBuffer.13, %class.b2GrowableBuffer.14, %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", i64, i8, i32, ptr, %struct.b2ParticleSystemDef, ptr, ptr, ptr }
%class.b2SlabAllocator = type { %class.b2TrackedBlockAllocator, i32, %class.b2TypedFreeList }
%class.b2TrackedBlockAllocator = type { %class.b2TypedIntrusiveListNode }
%class.b2TypedIntrusiveListNode = type { %class.b2IntrusiveListNode }
%class.b2IntrusiveListNode = type { ptr, ptr }
%class.b2TypedFreeList = type { %class.b2FreeList }
%class.b2FreeList = type { %class.b2IntrusiveListNode, %class.b2IntrusiveListNode }
%"struct.b2ParticleSystem::UserOverridableBuffer" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.0" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.2" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.4" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.6" = type <{ ptr, i32, [4 x i8] }>
%class.b2GrowableBuffer = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.10 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.11 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.12 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.13 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.14 = type { ptr, i32, i32, ptr }
%"struct.b2ParticleSystem::UserOverridableBuffer.8" = type <{ ptr, i32, [4 x i8] }>
%struct.b2ParticleSystemDef = type { i8, float, float, float, i32, float, float, float, float, float, float, float, float, float, float, float, float, i32, float, i8, float }
%struct.b2TimeStep = type { float, float, float, i32, i32, i32, i8 }
%struct.b2ParticleBodyContact = type { i32, ptr, ptr, float, %struct.b2Vec2, float }

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 4 dereferenceable(28) %1) #7 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca float, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca float, align 4
  %32 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef float @_ZNK16b2ParticleSystem19GetCriticalPressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %33, ptr noundef nonnull align 4 dereferenceable(28) %34)
  store float %35, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %36 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 45
  %37 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %36, i32 0, i32 5
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = load float, ptr %5, align 4, !tbaa !9
  %40 = fmul float %38, %39
  store float %40, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %41 = load float, ptr %5, align 4, !tbaa !9
  %42 = fmul float 2.500000e-01, %41
  store float %42, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !35
  br label %43

43:                                               ; preds = %69, %2
  %44 = load i32, ptr %8, align 4, !tbaa !35
  %45 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 12
  %46 = load i32, ptr %45, align 4, !tbaa !36
  %47 = icmp slt i32 %44, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %72

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %50 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 20
  %51 = load ptr, ptr %50, align 8, !tbaa !37
  %52 = load i32, ptr %8, align 4, !tbaa !35
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %51, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !9
  store float %55, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %56 = load float, ptr %6, align 4, !tbaa !9
  %57 = load float, ptr %9, align 4, !tbaa !9
  %58 = fsub float %57, 1.000000e+00
  %59 = call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %58)
  %60 = fmul float %56, %59
  store float %60, ptr %10, align 4, !tbaa !9
  %61 = load float, ptr %10, align 4, !tbaa !9
  %62 = load float, ptr %7, align 4, !tbaa !9
  %63 = call noundef float @_Z5b2MinIfET_S0_S0_(float noundef %61, float noundef %62)
  %64 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %65 = load ptr, ptr %64, align 8, !tbaa !38
  %66 = load i32, ptr %8, align 4, !tbaa !35
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  store float %63, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %69

69:                                               ; preds = %49
  %70 = load i32, ptr %8, align 4, !tbaa !35
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !35
  br label %43, !llvm.loop !39

72:                                               ; preds = %48
  %73 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !41
  %75 = and i32 %74, 192
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %105

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !35
  br label %78

78:                                               ; preds = %101, %77
  %79 = load i32, ptr %11, align 4, !tbaa !35
  %80 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 12
  %81 = load i32, ptr %80, align 4, !tbaa !36
  %82 = icmp slt i32 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %104

84:                                               ; preds = %78
  %85 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 16
  %86 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.0", ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !42
  %88 = load i32, ptr %11, align 4, !tbaa !35
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %87, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !35
  %92 = and i32 %91, 192
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %84
  %95 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %96 = load ptr, ptr %95, align 8, !tbaa !38
  %97 = load i32, ptr %11, align 4, !tbaa !35
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %96, i64 %98
  store float 0.000000e+00, ptr %99, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %94, %84
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %11, align 4, !tbaa !35
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %11, align 4, !tbaa !35
  br label %78, !llvm.loop !43

104:                                              ; preds = %83
  br label %105

105:                                              ; preds = %104, %72
  %106 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !41
  %108 = and i32 %107, 2048
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %153

110:                                              ; preds = %105
  %111 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 21
  %112 = load ptr, ptr %111, align 8, !tbaa !44
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  br label %117

115:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.1, i32 noundef 2986, ptr noundef @__PRETTY_FUNCTION__._ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep) #10
  unreachable

116:                                              ; No predecessors!
  br label %117

117:                                              ; preds = %116, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !35
  br label %118

118:                                              ; preds = %149, %117
  %119 = load i32, ptr %12, align 4, !tbaa !35
  %120 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 12
  %121 = load i32, ptr %120, align 4, !tbaa !36
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %152

124:                                              ; preds = %118
  %125 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 16
  %126 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.0", ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !42
  %128 = load i32, ptr %12, align 4, !tbaa !35
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i32, ptr %127, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !35
  %132 = and i32 %131, 2048
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %148

134:                                              ; preds = %124
  %135 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 21
  %136 = load ptr, ptr %135, align 8, !tbaa !44
  %137 = load i32, ptr %12, align 4, !tbaa !35
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds float, ptr %136, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !9
  %141 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %142 = load ptr, ptr %141, align 8, !tbaa !38
  %143 = load i32, ptr %12, align 4, !tbaa !35
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %142, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = fadd float %146, %140
  store float %147, ptr %145, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %134, %124
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %12, align 4, !tbaa !35
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %12, align 4, !tbaa !35
  br label %118, !llvm.loop !45

152:                                              ; preds = %123
  br label %153

153:                                              ; preds = %152, %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.b2TimeStep, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !46
  %157 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 45
  %158 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %157, i32 0, i32 1
  %159 = load float, ptr %158, align 4, !tbaa !48
  %160 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 9
  %161 = load float, ptr %160, align 8, !tbaa !49
  %162 = fmul float %159, %161
  %163 = fdiv float %156, %162
  store float %163, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !35
  br label %164

164:                                              ; preds = %220, %153
  %165 = load i32, ptr %14, align 4, !tbaa !35
  %166 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 36
  %167 = call noundef i32 @_ZNK16b2GrowableBufferI21b2ParticleBodyContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %166)
  %168 = icmp slt i32 %165, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %223

170:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %171 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 36
  %172 = load i32, ptr %14, align 4, !tbaa !35
  %173 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN16b2GrowableBufferI21b2ParticleBodyContactEixEi(ptr noundef nonnull align 8 dereferenceable(24) %171, i32 noundef %172)
  store ptr %173, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.b2ParticleBodyContact, ptr %174, i32 0, i32 0
  %176 = load i32, ptr %175, align 8, !tbaa !50
  store i32 %176, ptr %16, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.b2ParticleBodyContact, ptr %177, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !53
  store ptr %179, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.b2ParticleBodyContact, ptr %180, i32 0, i32 3
  %182 = load float, ptr %181, align 8, !tbaa !54
  store float %182, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.b2ParticleBodyContact, ptr %183, i32 0, i32 5
  %185 = load float, ptr %184, align 4, !tbaa !55
  store float %185, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.b2ParticleBodyContact, ptr %186, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %187, i64 8, i1 false), !tbaa.struct !56
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %188 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 17
  %189 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !57
  %191 = load i32, ptr %16, align 4, !tbaa !35
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct.b2Vec2, ptr %190, i64 %192
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %193, i64 8, i1 false), !tbaa.struct !56
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %194 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %195 = load ptr, ptr %194, align 8, !tbaa !38
  %196 = load i32, ptr %16, align 4, !tbaa !35
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds float, ptr %195, i64 %197
  %199 = load float, ptr %198, align 4, !tbaa !9
  %200 = load float, ptr %6, align 4, !tbaa !9
  %201 = load float, ptr %18, align 4, !tbaa !9
  %202 = call float @llvm.fmuladd.f32(float %200, float %201, float %199)
  store float %202, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %203 = load float, ptr %13, align 4, !tbaa !9
  %204 = load float, ptr %18, align 4, !tbaa !9
  %205 = fmul float %203, %204
  %206 = load float, ptr %19, align 4, !tbaa !9
  %207 = fmul float %205, %206
  %208 = load float, ptr %22, align 4, !tbaa !9
  %209 = fmul float %207, %208
  %210 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %209, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %210, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %211 = call noundef float @_ZNK16b2ParticleSystem18GetParticleInvMassEv(ptr noundef nonnull align 8 dereferenceable(632) %33)
  %212 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %211, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %212, ptr %24, align 4
  %213 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 18
  %214 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !58
  %216 = load i32, ptr %16, align 4, !tbaa !35
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %struct.b2Vec2, ptr %215, i64 %217
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %218, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN6b2Body18ApplyLinearImpulseERK6b2Vec2S2_(ptr noundef nonnull align 8 dereferenceable(208) %219, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %220

220:                                              ; preds = %170
  %221 = load i32, ptr %14, align 4, !tbaa !35
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %14, align 4, !tbaa !35
  br label %164, !llvm.loop !59

223:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !35
  br label %224

224:                                              ; preds = %273, %223
  %225 = load i32, ptr %25, align 4, !tbaa !35
  %226 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 35
  %227 = call noundef i32 @_ZNK16b2GrowableBufferI17b2ParticleContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %226)
  %228 = icmp slt i32 %225, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %276

230:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %231 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 35
  %232 = load i32, ptr %25, align 4, !tbaa !35
  %233 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN16b2GrowableBufferI17b2ParticleContactEixEi(ptr noundef nonnull align 8 dereferenceable(24) %231, i32 noundef %232)
  store ptr %233, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %234 = load ptr, ptr %26, align 8, !tbaa !5
  %235 = call noundef i32 @_ZNK17b2ParticleContact9GetIndexAEv(ptr noundef nonnull align 4 dereferenceable(24) %234)
  store i32 %235, ptr %27, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %236 = load ptr, ptr %26, align 8, !tbaa !5
  %237 = call noundef i32 @_ZNK17b2ParticleContact9GetIndexBEv(ptr noundef nonnull align 4 dereferenceable(24) %236)
  store i32 %237, ptr %28, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %238 = load ptr, ptr %26, align 8, !tbaa !5
  %239 = call noundef float @_ZNK17b2ParticleContact9GetWeightEv(ptr noundef nonnull align 4 dereferenceable(24) %238)
  store float %239, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %240 = load ptr, ptr %26, align 8, !tbaa !5
  %241 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK17b2ParticleContact9GetNormalEv(ptr noundef nonnull align 4 dereferenceable(24) %240)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %241, i64 8, i1 false), !tbaa.struct !56
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %242 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %243 = load ptr, ptr %242, align 8, !tbaa !38
  %244 = load i32, ptr %27, align 4, !tbaa !35
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds float, ptr %243, i64 %245
  %247 = load float, ptr %246, align 4, !tbaa !9
  %248 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 22
  %249 = load ptr, ptr %248, align 8, !tbaa !38
  %250 = load i32, ptr %28, align 4, !tbaa !35
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds float, ptr %249, i64 %251
  %253 = load float, ptr %252, align 4, !tbaa !9
  %254 = fadd float %247, %253
  store float %254, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %255 = load float, ptr %13, align 4, !tbaa !9
  %256 = load float, ptr %29, align 4, !tbaa !9
  %257 = fmul float %255, %256
  %258 = load float, ptr %31, align 4, !tbaa !9
  %259 = fmul float %257, %258
  %260 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %259, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %260, ptr %32, align 4
  %261 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 18
  %262 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !58
  %264 = load i32, ptr %27, align 4, !tbaa !35
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds %struct.b2Vec2, ptr %263, i64 %265
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %266, ptr noundef nonnull align 4 dereferenceable(8) %32)
  %267 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 18
  %268 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %267, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8, !tbaa !58
  %270 = load i32, ptr %28, align 4, !tbaa !35
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds %struct.b2Vec2, ptr %269, i64 %271
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %272, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %273

273:                                              ; preds = %230
  %274 = load i32, ptr %25, align 4, !tbaa !35
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %25, align 4, !tbaa !35
  br label %224, !llvm.loop !60

276:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem19GetCriticalPressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef nonnull align 4 dereferenceable(28)) #8 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem18GetParticleInvMassEv(ptr noundef nonnull align 8 dereferenceable(632)) #5 align 2

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

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

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

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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, !10, i64 540}
!12 = !{!"_ZTS16b2ParticleSystem", !13, i64 0, !14, i64 4, !14, i64 8, !13, i64 12, !14, i64 16, !13, i64 20, !13, i64 21, !14, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !14, i64 44, !14, i64 48, !15, i64 56, !21, i64 112, !22, i64 128, !23, i64 144, !23, i64 160, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !24, i64 224, !6, i64 240, !25, i64 248, !14, i64 264, !26, i64 272, !26, i64 288, !26, i64 304, !27, i64 320, !28, i64 344, !29, i64 368, !30, i64 392, !31, i64 416, !32, i64 440, !26, i64 464, !26, i64 480, !33, i64 496, !13, i64 504, !14, i64 508, !6, i64 512, !34, i64 520, !6, i64 608, !6, i64 616, !6, i64 624}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !16, i64 0, !14, i64 16, !19, i64 24}
!16 = !{!"_ZTS23b2TrackedBlockAllocator", !17, i64 0}
!17 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !18, i64 0}
!18 = !{!"_ZTS19b2IntrusiveListNode", !6, i64 0, !6, i64 8}
!19 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !20, i64 0}
!20 = !{!"_ZTS10b2FreeList", !18, i64 0, !18, i64 16}
!21 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !6, i64 0, !14, i64 8}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !6, i64 0, !14, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !6, i64 0, !14, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !6, i64 0, !14, i64 8}
!25 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !6, i64 0, !14, i64 8}
!26 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !6, i64 0, !14, i64 8}
!27 = !{!"_ZTS16b2GrowableBufferIiE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!28 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!31 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!32 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!33 = !{!"long long", !7, i64 0}
!34 = !{!"_ZTS19b2ParticleSystemDef", !13, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !14, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !14, i64 68, !10, i64 72, !13, i64 76, !10, i64 80}
!35 = !{!14, !14, i64 0}
!36 = !{!12, !14, i64 44}
!37 = !{!12, !6, i64 184}
!38 = !{!12, !6, i64 200}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !14, i64 8}
!42 = !{!12, !6, i64 128}
!43 = distinct !{!43, !40}
!44 = !{!12, !6, i64 192}
!45 = distinct !{!45, !40}
!46 = !{!47, !10, i64 0}
!47 = !{!"_ZTS10b2TimeStep", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !13, i64 24}
!48 = !{!12, !10, i64 524}
!49 = !{!12, !10, i64 32}
!50 = !{!51, !14, i64 0}
!51 = !{!"_ZTS21b2ParticleBodyContact", !14, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !52, i64 28, !10, i64 36}
!52 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!53 = !{!51, !6, i64 8}
!54 = !{!51, !10, i64 24}
!55 = !{!51, !10, i64 36}
!56 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!57 = !{!12, !6, i64 144}
!58 = !{!12, !6, i64 160}
!59 = distinct !{!59, !40}
!60 = distinct !{!60, !40}


; 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.b2Vec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17b2ParticleContact9GetIndexAEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17b2ParticleContact9GetIndexBEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK17b2ParticleContact9GetWeightEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 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 void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 4 dereferenceable(28) %1) local_unnamed_addr #6 align 2 {
  %3 = alloca %struct.b2Vec2, align 8
  %4 = alloca %struct.b2Vec2, align 8
  %5 = alloca %struct.b2Vec2, align 8
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %struct.b2Vec2, align 8
  %9 = tail call noundef float @_ZNK16b2ParticleSystem19GetCriticalPressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 4 dereferenceable(28) %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 540
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = fmul float %9, %11
  %13 = fmul float %9, 2.500000e-01
  %14 = getelementptr inbounds i8, ptr %0, i64 44
  %15 = load i32, ptr %14, align 4, !tbaa !33
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !34
  br label %.loopexit63

.lr.ph:                                           ; preds = %2
  %19 = getelementptr inbounds i8, ptr %0, i64 184
  %20 = getelementptr inbounds i8, ptr %0, i64 200
  br label %69

._crit_edge:                                      ; preds = %69
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !34
  %23 = and i32 %22, 192
  %.not = icmp ne i32 %23, 0
  %24 = icmp sgt i32 %79, 0
  %or.cond = and i1 %.not, %24
  br i1 %or.cond, label %.lr.ph66, label %.loopexit63

.lr.ph66:                                         ; preds = %._crit_edge
  %25 = getelementptr inbounds i8, ptr %0, i64 128
  %26 = load ptr, ptr %25, align 8, !tbaa !35
  %27 = getelementptr inbounds i8, ptr %0, i64 200
  %28 = load ptr, ptr %27, align 8
  %wide.trip.count = zext nneg i32 %79 to i64
  %min.iters.check = icmp ult i32 %79, 8
  %29 = ptrtoint ptr %28 to i64
  %30 = ptrtoint ptr %26 to i64
  %31 = sub i64 %29, %30
  %diff.check = icmp ult i64 %31, 32
  %or.cond106 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond106, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph66
  %indvars.iv77.ph = phi i64 [ 0, %.lr.ph66 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %32 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv77.ph
  %33 = load i32, ptr %32, align 4, !tbaa !36
  %34 = and i32 %33, 192
  %.not60.prol = icmp eq i32 %34, 0
  br i1 %.not60.prol, label %scalar.ph.prol.loopexit.unr-lcssa, label %35

35:                                               ; preds = %scalar.ph.prol
  %36 = getelementptr inbounds float, ptr %28, i64 %indvars.iv77.ph
  store float 0.000000e+00, ptr %36, align 4, !tbaa !37
  br label %scalar.ph.prol.loopexit.unr-lcssa

scalar.ph.prol.loopexit.unr-lcssa:                ; preds = %35, %scalar.ph.prol
  %indvars.iv.next78.prol = or disjoint i64 %indvars.iv77.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol.loopexit.unr-lcssa, %scalar.ph.preheader
  %indvars.iv77.unr = phi i64 [ %indvars.iv77.ph, %scalar.ph.preheader ], [ %indvars.iv.next78.prol, %scalar.ph.prol.loopexit.unr-lcssa ]
  %37 = add nsw i64 %wide.trip.count, -1
  %38 = icmp eq i64 %indvars.iv77.ph, %37
  br i1 %38, label %.loopexit63, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph66
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue103, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue103 ]
  %39 = or disjoint i64 %index, 4
  %40 = getelementptr inbounds i32, ptr %26, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load = load <4 x i32>, ptr %40, align 4, !tbaa !36
  %wide.load89 = load <4 x i32>, ptr %41, align 4, !tbaa !36
  %42 = and <4 x i32> %wide.load, <i32 192, i32 192, i32 192, i32 192>
  %43 = and <4 x i32> %wide.load89, <i32 192, i32 192, i32 192, i32 192>
  %44 = icmp ne <4 x i32> %42, zeroinitializer
  %45 = icmp ne <4 x i32> %43, zeroinitializer
  %46 = extractelement <4 x i1> %44, i64 0
  br i1 %46, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %47 = getelementptr inbounds float, ptr %28, i64 %index
  store float 0.000000e+00, ptr %47, align 4, !tbaa !37
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %48 = extractelement <4 x i1> %44, i64 1
  br i1 %48, label %pred.store.if90, label %pred.store.continue91

pred.store.if90:                                  ; preds = %pred.store.continue
  %49 = or disjoint i64 %index, 1
  %50 = getelementptr inbounds float, ptr %28, i64 %49
  store float 0.000000e+00, ptr %50, align 4, !tbaa !37
  br label %pred.store.continue91

pred.store.continue91:                            ; preds = %pred.store.if90, %pred.store.continue
  %51 = extractelement <4 x i1> %44, i64 2
  br i1 %51, label %pred.store.if92, label %pred.store.continue93

pred.store.if92:                                  ; preds = %pred.store.continue91
  %52 = or disjoint i64 %index, 2
  %53 = getelementptr inbounds float, ptr %28, i64 %52
  store float 0.000000e+00, ptr %53, align 4, !tbaa !37
  br label %pred.store.continue93

pred.store.continue93:                            ; preds = %pred.store.if92, %pred.store.continue91
  %54 = extractelement <4 x i1> %44, i64 3
  br i1 %54, label %pred.store.if94, label %pred.store.continue95

pred.store.if94:                                  ; preds = %pred.store.continue93
  %55 = or disjoint i64 %index, 3
  %56 = getelementptr inbounds float, ptr %28, i64 %55
  store float 0.000000e+00, ptr %56, align 4, !tbaa !37
  br label %pred.store.continue95

pred.store.continue95:                            ; preds = %pred.store.if94, %pred.store.continue93
  %57 = extractelement <4 x i1> %45, i64 0
  br i1 %57, label %pred.store.if96, label %pred.store.continue97

pred.store.if96:                                  ; preds = %pred.store.continue95
  %58 = getelementptr inbounds float, ptr %28, i64 %39
  store float 0.000000e+00, ptr %58, align 4, !tbaa !37
  br label %pred.store.continue97

pred.store.continue97:                            ; preds = %pred.store.if96, %pred.store.continue95
  %59 = extractelement <4 x i1> %45, i64 1
  br i1 %59, label %pred.store.if98, label %pred.store.continue99

pred.store.if98:                                  ; preds = %pred.store.continue97
  %60 = or disjoint i64 %index, 5
  %61 = getelementptr inbounds float, ptr %28, i64 %60
  store float 0.000000e+00, ptr %61, align 4, !tbaa !37
  br label %pred.store.continue99

pred.store.continue99:                            ; preds = %pred.store.if98, %pred.store.continue97
  %62 = extractelement <4 x i1> %45, i64 2
  br i1 %62, label %pred.store.if100, label %pred.store.continue101

pred.store.if100:                                 ; preds = %pred.store.continue99
  %63 = or disjoint i64 %index, 6
  %64 = getelementptr inbounds float, ptr %28, i64 %63
  store float 0.000000e+00, ptr %64, align 4, !tbaa !37
  br label %pred.store.continue101

pred.store.continue101:                           ; preds = %pred.store.if100, %pred.store.continue99
  %65 = extractelement <4 x i1> %45, i64 3
  br i1 %65, label %pred.store.if102, label %pred.store.continue103

pred.store.if102:                                 ; preds = %pred.store.continue101
  %66 = or disjoint i64 %index, 7
  %67 = getelementptr inbounds float, ptr %28, i64 %66
  store float 0.000000e+00, ptr %67, align 4, !tbaa !37
  br label %pred.store.continue103

pred.store.continue103:                           ; preds = %pred.store.if102, %pred.store.continue101
  %index.next = add nuw i64 %index, 8
  %68 = icmp eq i64 %index.next, %n.vec
  br i1 %68, label %middle.block, label %vector.body, !llvm.loop !38

middle.block:                                     ; preds = %pred.store.continue103
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit63, label %scalar.ph.preheader

69:                                               ; preds = %.lr.ph, %69
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %69 ]
  %70 = load ptr, ptr %19, align 8, !tbaa !42
  %71 = getelementptr inbounds float, ptr %70, i64 %indvars.iv
  %72 = load float, ptr %71, align 4, !tbaa !37
  %73 = fadd float %72, -1.000000e+00
  %74 = tail call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %73)
  %75 = fmul float %12, %74
  %76 = tail call noundef float @_Z5b2MinIfET_S0_S0_(float noundef %75, float noundef %13)
  %77 = load ptr, ptr %20, align 8, !tbaa !43
  %78 = getelementptr inbounds float, ptr %77, i64 %indvars.iv
  store float %76, ptr %78, align 4, !tbaa !37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = load i32, ptr %14, align 4, !tbaa !33
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next, %80
  br i1 %81, label %69, label %._crit_edge, !llvm.loop !44

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %92
  %indvars.iv77 = phi i64 [ %indvars.iv.next78.1, %92 ], [ %indvars.iv77.unr, %scalar.ph.prol.loopexit ]
  %82 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv77
  %83 = load i32, ptr %82, align 4, !tbaa !36
  %84 = and i32 %83, 192
  %.not60 = icmp eq i32 %84, 0
  br i1 %.not60, label %scalar.ph.1, label %85

85:                                               ; preds = %scalar.ph
  %86 = getelementptr inbounds float, ptr %28, i64 %indvars.iv77
  store float 0.000000e+00, ptr %86, align 4, !tbaa !37
  br label %scalar.ph.1

scalar.ph.1:                                      ; preds = %scalar.ph, %85
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %87 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv.next78
  %88 = load i32, ptr %87, align 4, !tbaa !36
  %89 = and i32 %88, 192
  %.not60.1 = icmp eq i32 %89, 0
  br i1 %.not60.1, label %92, label %90

90:                                               ; preds = %scalar.ph.1
  %91 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.next78
  store float 0.000000e+00, ptr %91, align 4, !tbaa !37
  br label %92

92:                                               ; preds = %90, %scalar.ph.1
  %indvars.iv.next78.1 = add nuw nsw i64 %indvars.iv77, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next78.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit63, label %scalar.ph, !llvm.loop !45

.loopexit63:                                      ; preds = %scalar.ph.prol.loopexit, %92, %middle.block, %._crit_edge.thread, %._crit_edge
  %93 = phi i1 [ false, %._crit_edge.thread ], [ %24, %._crit_edge ], [ %24, %middle.block ], [ %24, %92 ], [ %24, %scalar.ph.prol.loopexit ]
  %94 = phi i32 [ %18, %._crit_edge.thread ], [ %22, %._crit_edge ], [ %22, %middle.block ], [ %22, %92 ], [ %22, %scalar.ph.prol.loopexit ]
  %.lcssa88 = phi i32 [ %15, %._crit_edge.thread ], [ %79, %._crit_edge ], [ %79, %middle.block ], [ %79, %92 ], [ %79, %scalar.ph.prol.loopexit ]
  %95 = and i32 %94, 2048
  %.not57 = icmp eq i32 %95, 0
  br i1 %.not57, label %.loopexit, label %96

96:                                               ; preds = %.loopexit63
  %97 = getelementptr inbounds i8, ptr %0, i64 192
  %98 = load ptr, ptr %97, align 8, !tbaa !46
  %.not58 = icmp eq ptr %98, null
  br i1 %.not58, label %104, label %.preheader61

.preheader61:                                     ; preds = %96
  br i1 %93, label %.lr.ph68, label %.loopexit

.lr.ph68:                                         ; preds = %.preheader61
  %99 = getelementptr inbounds i8, ptr %0, i64 128
  %100 = load ptr, ptr %99, align 8, !tbaa !35
  %101 = getelementptr inbounds i8, ptr %0, i64 200
  %102 = load ptr, ptr %101, align 8
  %wide.trip.count83 = zext i32 %.lcssa88 to i64
  %xtraiter107 = and i64 %wide.trip.count83, 1
  %103 = icmp eq i32 %.lcssa88, 1
  br i1 %103, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph68.new

.lr.ph68.new:                                     ; preds = %.lr.ph68
  %unroll_iter = and i64 %wide.trip.count83, 4294967294
  br label %105

104:                                              ; preds = %96
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.1, i32 noundef 2986, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN16b2ParticleSystem13SolvePressureERK10b2TimeStep) #8
  unreachable

105:                                              ; preds = %125, %.lr.ph68.new
  %indvars.iv80 = phi i64 [ 0, %.lr.ph68.new ], [ %indvars.iv.next81.1, %125 ]
  %niter = phi i64 [ 0, %.lr.ph68.new ], [ %niter.next.1, %125 ]
  %106 = getelementptr inbounds i32, ptr %100, i64 %indvars.iv80
  %107 = load i32, ptr %106, align 4, !tbaa !36
  %108 = and i32 %107, 2048
  %.not59 = icmp eq i32 %108, 0
  br i1 %.not59, label %115, label %109

109:                                              ; preds = %105
  %110 = getelementptr inbounds float, ptr %98, i64 %indvars.iv80
  %111 = load float, ptr %110, align 4, !tbaa !37
  %112 = getelementptr inbounds float, ptr %102, i64 %indvars.iv80
  %113 = load float, ptr %112, align 4, !tbaa !37
  %114 = fadd float %111, %113
  store float %114, ptr %112, align 4, !tbaa !37
  br label %115

115:                                              ; preds = %105, %109
  %indvars.iv.next81 = or disjoint i64 %indvars.iv80, 1
  %116 = getelementptr inbounds i32, ptr %100, i64 %indvars.iv.next81
  %117 = load i32, ptr %116, align 4, !tbaa !36
  %118 = and i32 %117, 2048
  %.not59.1 = icmp eq i32 %118, 0
  br i1 %.not59.1, label %125, label %119

119:                                              ; preds = %115
  %120 = getelementptr inbounds float, ptr %98, i64 %indvars.iv.next81
  %121 = load float, ptr %120, align 4, !tbaa !37
  %122 = getelementptr inbounds float, ptr %102, i64 %indvars.iv.next81
  %123 = load float, ptr %122, align 4, !tbaa !37
  %124 = fadd float %121, %123
  store float %124, ptr %122, align 4, !tbaa !37
  br label %125

125:                                              ; preds = %119, %115
  %indvars.iv.next81.1 = add nuw nsw i64 %indvars.iv80, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %105, !llvm.loop !47

.loopexit.loopexit.unr-lcssa:                     ; preds = %125, %.lr.ph68
  %indvars.iv80.unr = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next81.1, %125 ]
  %lcmp.mod108.not = icmp eq i64 %xtraiter107, 0
  br i1 %lcmp.mod108.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa
  %126 = getelementptr inbounds i32, ptr %100, i64 %indvars.iv80.unr
  %127 = load i32, ptr %126, align 4, !tbaa !36
  %128 = and i32 %127, 2048
  %.not59.epil = icmp eq i32 %128, 0
  br i1 %.not59.epil, label %.loopexit, label %129

129:                                              ; preds = %.epil.preheader
  %130 = getelementptr inbounds float, ptr %98, i64 %indvars.iv80.unr
  %131 = load float, ptr %130, align 4, !tbaa !37
  %132 = getelementptr inbounds float, ptr %102, i64 %indvars.iv80.unr
  %133 = load float, ptr %132, align 4, !tbaa !37
  %134 = fadd float %131, %133
  store float %134, ptr %132, align 4, !tbaa !37
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %129, %.epil.preheader, %.preheader61, %.loopexit63
  %135 = load float, ptr %1, align 4, !tbaa !48
  %136 = getelementptr inbounds i8, ptr %0, i64 524
  %137 = load float, ptr %136, align 4, !tbaa !50
  %138 = getelementptr inbounds i8, ptr %0, i64 32
  %139 = load float, ptr %138, align 8, !tbaa !51
  %140 = fmul float %137, %139
  %141 = fdiv float %135, %140
  %142 = getelementptr inbounds i8, ptr %0, i64 392
  %143 = tail call noundef i32 @_ZNK16b2GrowableBufferI21b2ParticleBodyContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
  %144 = icmp sgt i32 %143, 0
  br i1 %144, label %.lr.ph71, label %.preheader

.lr.ph71:                                         ; preds = %.loopexit
  %145 = getelementptr inbounds i8, ptr %0, i64 144
  %146 = getelementptr inbounds i8, ptr %0, i64 200
  %147 = getelementptr inbounds i8, ptr %0, i64 160
  br label %153

.preheader:                                       ; preds = %153, %.loopexit
  %148 = getelementptr inbounds i8, ptr %0, i64 368
  %149 = call noundef i32 @_ZNK16b2GrowableBufferI17b2ParticleContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %148)
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %.preheader
  %151 = getelementptr inbounds i8, ptr %0, i64 200
  %152 = getelementptr inbounds i8, ptr %0, i64 160
  br label %183

153:                                              ; preds = %.lr.ph71, %153
  %.05569 = phi i32 [ 0, %.lr.ph71 ], [ %180, %153 ]
  %154 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN16b2GrowableBufferI21b2ParticleBodyContactEixEi(ptr noundef nonnull align 8 dereferenceable(24) %142, i32 noundef %.05569)
  %155 = load i32, ptr %154, align 8, !tbaa !52
  %156 = getelementptr inbounds i8, ptr %154, i64 8
  %157 = load ptr, ptr %156, align 8, !tbaa !55
  %158 = getelementptr inbounds i8, ptr %154, i64 24
  %159 = load float, ptr %158, align 8, !tbaa !56
  %160 = getelementptr inbounds i8, ptr %154, i64 36
  %161 = load float, ptr %160, align 4, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %162 = getelementptr inbounds i8, ptr %154, i64 28
  %163 = load i64, ptr %162, align 4
  store i64 %163, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %164 = load ptr, ptr %145, align 8, !tbaa !58
  %165 = sext i32 %155 to i64
  %166 = getelementptr inbounds %struct.b2Vec2, ptr %164, i64 %165
  %167 = load i64, ptr %166, align 4
  store i64 %167, ptr %4, align 8
  %168 = load ptr, ptr %146, align 8, !tbaa !43
  %169 = getelementptr inbounds float, ptr %168, i64 %165
  %170 = load float, ptr %169, align 4, !tbaa !37
  %171 = call float @llvm.fmuladd.f32(float %12, float %159, float %170)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %172 = fmul float %141, %159
  %173 = fmul float %172, %161
  %174 = fmul float %173, %171
  %175 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %174, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %175, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %176 = call noundef float @_ZNK16b2ParticleSystem18GetParticleInvMassEv(ptr noundef nonnull align 8 dereferenceable(632) %0)
  %177 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %176, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %177, ptr %6, align 8
  %178 = load ptr, ptr %147, align 8, !tbaa !59
  %179 = getelementptr inbounds %struct.b2Vec2, ptr %178, i64 %165
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %179, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN6b2Body18ApplyLinearImpulseERK6b2Vec2S2_(ptr noundef nonnull align 8 dereferenceable(208) %157, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %180 = add nuw nsw i32 %.05569, 1
  %181 = call noundef i32 @_ZNK16b2GrowableBufferI21b2ParticleBodyContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %153, label %.preheader, !llvm.loop !60

._crit_edge74:                                    ; preds = %183, %.preheader
  ret void

183:                                              ; preds = %.lr.ph73, %183
  %.05672 = phi i32 [ 0, %.lr.ph73 ], [ %205, %183 ]
  %184 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN16b2GrowableBufferI17b2ParticleContactEixEi(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %.05672)
  %185 = call noundef i32 @_ZNK17b2ParticleContact9GetIndexAEv(ptr noundef nonnull align 4 dereferenceable(24) %184)
  %186 = call noundef i32 @_ZNK17b2ParticleContact9GetIndexBEv(ptr noundef nonnull align 4 dereferenceable(24) %184)
  %187 = call noundef float @_ZNK17b2ParticleContact9GetWeightEv(ptr noundef nonnull align 4 dereferenceable(24) %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %188 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK17b2ParticleContact9GetNormalEv(ptr noundef nonnull align 4 dereferenceable(24) %184)
  %189 = load i64, ptr %188, align 4
  store i64 %189, ptr %7, align 8
  %190 = load ptr, ptr %151, align 8, !tbaa !43
  %191 = sext i32 %185 to i64
  %192 = getelementptr inbounds float, ptr %190, i64 %191
  %193 = load float, ptr %192, align 4, !tbaa !37
  %194 = sext i32 %186 to i64
  %195 = getelementptr inbounds float, ptr %190, i64 %194
  %196 = load float, ptr %195, align 4, !tbaa !37
  %197 = fadd float %193, %196
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %198 = fmul float %141, %187
  %199 = fmul float %198, %197
  %200 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %199, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %200, ptr %8, align 8
  %201 = load ptr, ptr %152, align 8, !tbaa !59
  %202 = getelementptr inbounds %struct.b2Vec2, ptr %201, i64 %191
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %202, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %203 = load ptr, ptr %152, align 8, !tbaa !59
  %204 = getelementptr inbounds %struct.b2Vec2, ptr %203, i64 %194
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %204, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %205 = add nuw nsw i32 %.05672, 1
  %206 = call noundef i32 @_ZNK16b2GrowableBufferI17b2ParticleContactE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %148)
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %183, label %._crit_edge74, !llvm.loop !61
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem19GetCriticalPressureERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632), ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK16b2ParticleSystem18GetParticleInvMassEv(ptr noundef nonnull align 8 dereferenceable(632)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6b2Body18ApplyLinearImpulseERK6b2Vec2S2_(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #7 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 540}
!6 = !{!"_ZTS16b2ParticleSystem", !7, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !10, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !10, i64 44, !10, i64 48, !12, i64 56, !19, i64 112, !20, i64 128, !21, i64 144, !21, i64 160, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !22, i64 224, !16, i64 240, !23, i64 248, !10, i64 264, !24, i64 272, !24, i64 288, !24, i64 304, !25, i64 320, !26, i64 344, !27, i64 368, !28, i64 392, !29, i64 416, !30, i64 440, !24, i64 464, !24, i64 480, !31, i64 496, !7, i64 504, !10, i64 508, !16, i64 512, !32, i64 520, !16, i64 608, !16, i64 616, !16, i64 624}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !13, i64 0, !10, i64 16, !17, i64 24}
!13 = !{!"_ZTS23b2TrackedBlockAllocator", !14, i64 0}
!14 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !15, i64 0}
!15 = !{!"_ZTS19b2IntrusiveListNode", !16, i64 0, !16, i64 8}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !18, i64 0}
!18 = !{!"_ZTS10b2FreeList", !15, i64 0, !15, i64 16}
!19 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !16, i64 0, !10, i64 8}
!20 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !16, i64 0, !10, i64 8}
!21 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !16, i64 0, !10, i64 8}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !16, i64 0, !10, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !16, i64 0, !10, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !16, i64 0, !10, i64 8}
!25 = !{!"_ZTS16b2GrowableBufferIiE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!26 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!27 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!28 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !16, i64 0, !10, i64 8, !10, i64 12, !16, i64 16}
!31 = !{!"long long", !8, i64 0}
!32 = !{!"_ZTS19b2ParticleSystemDef", !7, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !10, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !10, i64 68, !11, i64 72, !7, i64 76, !11, i64 80}
!33 = !{!6, !10, i64 44}
!34 = !{!6, !10, i64 8}
!35 = !{!6, !16, i64 128}
!36 = !{!10, !10, i64 0}
!37 = !{!11, !11, i64 0}
!38 = distinct !{!38, !39, !40, !41}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!"llvm.loop.isvectorized", i32 1}
!41 = !{!"llvm.loop.unroll.runtime.disable"}
!42 = !{!6, !16, i64 184}
!43 = !{!6, !16, i64 200}
!44 = distinct !{!44, !39}
!45 = distinct !{!45, !39, !40}
!46 = !{!6, !16, i64 192}
!47 = distinct !{!47, !39}
!48 = !{!49, !11, i64 0}
!49 = !{!"_ZTS10b2TimeStep", !11, i64 0, !11, i64 4, !11, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24}
!50 = !{!6, !11, i64 524}
!51 = !{!6, !11, i64 32}
!52 = !{!53, !10, i64 0}
!53 = !{!"_ZTS21b2ParticleBodyContact", !10, i64 0, !16, i64 8, !16, i64 16, !11, i64 24, !54, i64 28, !11, i64 36}
!54 = !{!"_ZTS6b2Vec2", !11, i64 0, !11, i64 4}
!55 = !{!53, !16, i64 8}
!56 = !{!53, !11, i64 24}
!57 = !{!53, !11, i64 36}
!58 = !{!6, !16, i64 144}
!59 = !{!6, !16, i64 160}
!60 = distinct !{!60, !39}
!61 = distinct !{!61, !39}


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