; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_contact_solver.ll (ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef)

; 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.b2TimeStep = type { float, float, float, i32, i32, i32, i8 }
%struct.b2ContactSolverDef = type { %struct.b2TimeStep, ptr, i32, ptr, ptr, ptr }
%class.b2ContactSolver = type <{ ptr, ptr, ptr, ptr, ptr, i32, [4 x i8] }>
%class.b2Contact = type { ptr, ptr, ptr, ptr, ptr, %struct.b2Manifold, i32, i32, float, float, float, float }
%struct.b2Manifold = type { [2 x %struct.b2ManifoldPoint], %struct.b2Vec2, %struct.b2Vec2, i32, i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }
%union.b2ContactID = type { i32 }
%struct.b2Vec2 = type { float, float }
%class.b2Shape = type { ptr, i32, float }
%struct.b2ContactVelocityConstraint = type { [2 x %struct.b2VelocityConstraintPoint], %struct.b2Vec2, %struct.b2Mat22, %struct.b2Mat22, i32, i32, float, float, float, float, float, float, float, float, i32, ptr }
%struct.b2VelocityConstraintPoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float }
%struct.b2Mat22 = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2ContactPositionConstraint = type { [2 x %struct.b2Vec2], %struct.b2Vec2, %struct.b2Vec2, i32, i32, float, float, %struct.b2Vec2, %struct.b2Vec2, float, float, i32, float, float, i32 }
%class.b2Body = type { i32, i16, i32, %struct.b2Transform, %struct.b2Transform, %struct.b2Sweep, %struct.b2Vec2, float, %struct.b2Vec2, float, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, float, float, float, float, float, float, float, float, %struct.b2BodyUserData }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }
%struct.b2Sweep = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float }
%struct.b2BodyUserData = type { i64 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.b2TimeStep, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 2
  store ptr %27, ptr %28, align 8, !tbaa !15
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 5
  store i32 %31, ptr %32, align 8, !tbaa !18
  %33 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 5
  %36 = load i32, ptr %35, align 8, !tbaa !18
  %37 = sext i32 %36 to i64
  %38 = mul i64 %37, 88
  %39 = trunc i64 %38 to i32
  %40 = call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %34, i32 noundef %39)
  %41 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 3
  store ptr %40, ptr %41, align 8, !tbaa !19
  %42 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 5
  %45 = load i32, ptr %44, align 8, !tbaa !18
  %46 = sext i32 %45 to i64
  %47 = mul i64 %46, 168
  %48 = trunc i64 %47 to i32
  %49 = call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %43, i32 noundef %48)
  %50 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 4
  store ptr %49, ptr %50, align 8, !tbaa !20
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 0
  store ptr %53, ptr %54, align 8, !tbaa !22
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  %58 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 1
  store ptr %57, ptr %58, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 28, ptr %5) #6
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %59, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %60, i64 28, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !27
  br label %61

61:                                               ; preds = %289, %2
  %62 = load i32, ptr %6, align 4, !tbaa !27
  %63 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 5
  %64 = load i32, ptr %63, align 8, !tbaa !18
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.b2ContactSolverDef, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !29
  %71 = load i32, ptr %6, align 4, !tbaa !27
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  store ptr %74, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.b2Contact, ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  store ptr %77, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.b2Contact, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !35
  store ptr %80, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call noundef ptr @_ZN9b2Fixture8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(84) %81)
  store ptr %82, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call noundef ptr @_ZN9b2Fixture8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(84) %83)
  store ptr %84, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %class.b2Shape, ptr %85, i32 0, i32 2
  %87 = load float, ptr %86, align 4, !tbaa !36
  store float %87, ptr %13, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %class.b2Shape, ptr %88, i32 0, i32 2
  %90 = load float, ptr %89, align 4, !tbaa !36
  store float %90, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %91)
  store ptr %92, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %93)
  store ptr %94, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = call noundef ptr @_ZN9b2Contact11GetManifoldEv(ptr noundef nonnull align 8 dereferenceable(128) %95)
  store ptr %96, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.b2Manifold, ptr %97, i32 0, i32 4
  %99 = load i32, ptr %98, align 4, !tbaa !39
  store i32 %99, ptr %18, align 4, !tbaa !27
  %100 = load i32, ptr %18, align 4, !tbaa !27
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %67
  br label %105

103:                                              ; preds = %67
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__._ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef) #7
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %106 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = load i32, ptr %6, align 4, !tbaa !27
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %107, i64 %109
  store ptr %110, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %111 = getelementptr inbounds %class.b2ContactSolver, ptr %24, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = load i32, ptr %6, align 4, !tbaa !27
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %112, i64 %114
  store ptr %115, ptr %20, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.b2Contact, ptr %116, i32 0, i32 8
  %118 = load float, ptr %117, align 8, !tbaa !40
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %119, i32 0, i32 10
  store float %118, ptr %120, align 8, !tbaa !41
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.b2Contact, ptr %121, i32 0, i32 9
  %123 = load float, ptr %122, align 4, !tbaa !44
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %124, i32 0, i32 11
  store float %123, ptr %125, align 4, !tbaa !45
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.b2Contact, ptr %126, i32 0, i32 10
  %128 = load float, ptr %127, align 8, !tbaa !46
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %129, i32 0, i32 12
  store float %128, ptr %130, align 8, !tbaa !47
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %class.b2Contact, ptr %131, i32 0, i32 11
  %133 = load float, ptr %132, align 4, !tbaa !48
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %134, i32 0, i32 13
  store float %133, ptr %135, align 4, !tbaa !49
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.b2Body, ptr %136, i32 0, i32 2
  %138 = load i32, ptr %137, align 8, !tbaa !50
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %139, i32 0, i32 4
  store i32 %138, ptr %140, align 8, !tbaa !59
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.b2Body, ptr %141, i32 0, i32 2
  %143 = load i32, ptr %142, align 8, !tbaa !50
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %144, i32 0, i32 5
  store i32 %143, ptr %145, align 4, !tbaa !60
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = getelementptr inbounds %class.b2Body, ptr %146, i32 0, i32 20
  %148 = load float, ptr %147, align 4, !tbaa !61
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %149, i32 0, i32 6
  store float %148, ptr %150, align 8, !tbaa !62
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.b2Body, ptr %151, i32 0, i32 20
  %153 = load float, ptr %152, align 4, !tbaa !61
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %154, i32 0, i32 7
  store float %153, ptr %155, align 4, !tbaa !63
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds %class.b2Body, ptr %156, i32 0, i32 22
  %158 = load float, ptr %157, align 4, !tbaa !64
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %159, i32 0, i32 8
  store float %158, ptr %160, align 8, !tbaa !65
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.b2Body, ptr %161, i32 0, i32 22
  %163 = load float, ptr %162, align 4, !tbaa !64
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %164, i32 0, i32 9
  store float %163, ptr %165, align 4, !tbaa !66
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = load ptr, ptr %19, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %167, i32 0, i32 15
  store ptr %166, ptr %168, align 8, !tbaa !67
  %169 = load i32, ptr %18, align 4, !tbaa !27
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %170, i32 0, i32 14
  store i32 %169, ptr %171, align 8, !tbaa !68
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds %class.b2Body, ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 8, !tbaa !50
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %175, i32 0, i32 3
  store i32 %174, ptr %176, align 4, !tbaa !69
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = getelementptr inbounds %class.b2Body, ptr %177, i32 0, i32 2
  %179 = load i32, ptr %178, align 8, !tbaa !50
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %180, i32 0, i32 4
  store i32 %179, ptr %181, align 4, !tbaa !71
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.b2Body, ptr %182, i32 0, i32 20
  %184 = load float, ptr %183, align 4, !tbaa !61
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %185, i32 0, i32 5
  store float %184, ptr %186, align 4, !tbaa !72
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = getelementptr inbounds %class.b2Body, ptr %187, i32 0, i32 20
  %189 = load float, ptr %188, align 4, !tbaa !61
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %190, i32 0, i32 6
  store float %189, ptr %191, align 4, !tbaa !73
  %192 = load ptr, ptr %15, align 8, !tbaa !5
  %193 = getelementptr inbounds %class.b2Body, ptr %192, i32 0, i32 5
  %194 = getelementptr inbounds %struct.b2Sweep, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %195, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %196, ptr align 4 %194, i64 8, i1 false), !tbaa.struct !74
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = getelementptr inbounds %class.b2Body, ptr %197, i32 0, i32 5
  %199 = getelementptr inbounds %struct.b2Sweep, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %20, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %200, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %201, ptr align 4 %199, i64 8, i1 false), !tbaa.struct !74
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = getelementptr inbounds %class.b2Body, ptr %202, i32 0, i32 22
  %204 = load float, ptr %203, align 4, !tbaa !64
  %205 = load ptr, ptr %20, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %205, i32 0, i32 9
  store float %204, ptr %206, align 4, !tbaa !75
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = getelementptr inbounds %class.b2Body, ptr %207, i32 0, i32 22
  %209 = load float, ptr %208, align 4, !tbaa !64
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %210, i32 0, i32 10
  store float %209, ptr %211, align 4, !tbaa !76
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.b2Manifold, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %20, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %214, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %215, ptr align 4 %213, i64 8, i1 false), !tbaa.struct !74
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.b2Manifold, ptr %216, i32 0, i32 2
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %218, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %219, ptr align 4 %217, i64 8, i1 false), !tbaa.struct !74
  %220 = load i32, ptr %18, align 4, !tbaa !27
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %221, i32 0, i32 14
  store i32 %220, ptr %222, align 4, !tbaa !77
  %223 = load float, ptr %13, align 4, !tbaa !26
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %224, i32 0, i32 12
  store float %223, ptr %225, align 4, !tbaa !78
  %226 = load float, ptr %14, align 4, !tbaa !26
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %227, i32 0, i32 13
  store float %226, ptr %228, align 4, !tbaa !79
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.b2Manifold, ptr %229, i32 0, i32 3
  %231 = load i32, ptr %230, align 4, !tbaa !80
  %232 = load ptr, ptr %20, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %232, i32 0, i32 11
  store i32 %231, ptr %233, align 4, !tbaa !81
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !27
  br label %234

234:                                              ; preds = %285, %105
  %235 = load i32, ptr %21, align 4, !tbaa !27
  %236 = load i32, ptr %18, align 4, !tbaa !27
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %288

239:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.b2Manifold, ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %241, i64 0, i64 0
  %243 = load i32, ptr %21, align 4, !tbaa !27
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %242, i64 %244
  store ptr %245, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %246 = load ptr, ptr %19, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds [2 x %struct.b2VelocityConstraintPoint], ptr %247, i64 0, i64 0
  %249 = load i32, ptr %21, align 4, !tbaa !27
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %248, i64 %250
  store ptr %251, ptr %23, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.b2TimeStep, ptr %5, i32 0, i32 6
  %253 = load i8, ptr %252, align 4, !tbaa !82, !range !83, !noundef !84
  %254 = trunc i8 %253 to i1
  br i1 %254, label %255, label %272

255:                                              ; preds = %239
  %256 = getelementptr inbounds %struct.b2TimeStep, ptr %5, i32 0, i32 2
  %257 = load float, ptr %256, align 4, !tbaa !85
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %258, i32 0, i32 1
  %260 = load float, ptr %259, align 4, !tbaa !86
  %261 = fmul float %257, %260
  %262 = load ptr, ptr %23, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %262, i32 0, i32 2
  store float %261, ptr %263, align 4, !tbaa !88
  %264 = getelementptr inbounds %struct.b2TimeStep, ptr %5, i32 0, i32 2
  %265 = load float, ptr %264, align 4, !tbaa !85
  %266 = load ptr, ptr %22, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %266, i32 0, i32 2
  %268 = load float, ptr %267, align 4, !tbaa !90
  %269 = fmul float %265, %268
  %270 = load ptr, ptr %23, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %270, i32 0, i32 4
  store float %269, ptr %271, align 4, !tbaa !91
  br label %277

272:                                              ; preds = %239
  %273 = load ptr, ptr %23, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %273, i32 0, i32 2
  store float 0.000000e+00, ptr %274, align 4, !tbaa !88
  %275 = load ptr, ptr %23, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %275, i32 0, i32 4
  store float 0.000000e+00, ptr %276, align 4, !tbaa !91
  br label %277

277:                                              ; preds = %272, %255
  %278 = load ptr, ptr %22, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %20, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %280, i32 0, i32 0
  %282 = load i32, ptr %21, align 4, !tbaa !27
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %281, i64 0, i64 %283
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %284, ptr align 4 %279, i64 8, i1 false), !tbaa.struct !74
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %285

285:                                              ; preds = %277
  %286 = load i32, ptr %21, align 4, !tbaa !27
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %21, align 4, !tbaa !27
  br label %234, !llvm.loop !92

288:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %6, align 4, !tbaa !27
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %6, align 4, !tbaa !27
  br label %61, !llvm.loop !94

292:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 28, ptr %5) #6
  ret void
}

declare noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932), i32 noundef) #1

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

; 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) #3

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { nounwind }
attributes #7 = { 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, !6, i64 64}
!10 = !{!"_ZTS18b2ContactSolverDef", !11, i64 0, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"_ZTS10b2TimeStep", !12, i64 0, !12, i64 4, !12, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"_ZTS15b2ContactSolver", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40}
!17 = !{!10, !13, i64 40}
!18 = !{!16, !13, i64 40}
!19 = !{!16, !6, i64 24}
!20 = !{!16, !6, i64 32}
!21 = !{!10, !6, i64 48}
!22 = !{!16, !6, i64 0}
!23 = !{!10, !6, i64 56}
!24 = !{!16, !6, i64 8}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26, i64 12, i64 4, !27, i64 16, i64 4, !27, i64 20, i64 4, !27, i64 24, i64 1, !28}
!26 = !{!12, !12, i64 0}
!27 = !{!13, !13, i64 0}
!28 = !{!14, !14, i64 0}
!29 = !{!10, !6, i64 32}
!30 = !{!31, !6, i64 24}
!31 = !{!"_ZTS9b2Contact", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !32, i64 40, !13, i64 104, !13, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124}
!32 = !{!"_ZTS10b2Manifold", !7, i64 0, !33, i64 40, !33, i64 48, !34, i64 56, !13, i64 60}
!33 = !{!"_ZTS6b2Vec2", !12, i64 0, !12, i64 4}
!34 = !{!"_ZTSN10b2Manifold4TypeE", !7, i64 0}
!35 = !{!31, !6, i64 32}
!36 = !{!37, !12, i64 12}
!37 = !{!"_ZTS7b2Shape", !38, i64 8, !12, i64 12}
!38 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!39 = !{!32, !13, i64 60}
!40 = !{!31, !12, i64 112}
!41 = !{!42, !12, i64 136}
!42 = !{!"_ZTS27b2ContactVelocityConstraint", !7, i64 0, !33, i64 72, !43, i64 80, !43, i64 96, !13, i64 112, !13, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !13, i64 152, !6, i64 160}
!43 = !{!"_ZTS7b2Mat22", !33, i64 0, !33, i64 8}
!44 = !{!31, !12, i64 116}
!45 = !{!42, !12, i64 140}
!46 = !{!31, !12, i64 120}
!47 = !{!42, !12, i64 144}
!48 = !{!31, !12, i64 124}
!49 = !{!42, !12, i64 148}
!50 = !{!51, !13, i64 8}
!51 = !{!"_ZTS6b2Body", !52, i64 0, !53, i64 4, !13, i64 8, !54, i64 12, !54, i64 28, !56, i64 44, !33, i64 80, !12, i64 88, !33, i64 92, !12, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !13, i64 136, !6, i64 144, !6, i64 152, !13, i64 160, !13, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !57, i64 200}
!52 = !{!"_ZTS10b2BodyType", !7, i64 0}
!53 = !{!"short", !7, i64 0}
!54 = !{!"_ZTS11b2Transform", !33, i64 0, !55, i64 8}
!55 = !{!"_ZTS5b2Rot", !12, i64 0, !12, i64 4}
!56 = !{!"_ZTS7b2Sweep", !33, i64 0, !33, i64 8, !33, i64 16, !12, i64 24, !12, i64 28, !12, i64 32}
!57 = !{!"_ZTS14b2BodyUserData", !58, i64 0}
!58 = !{!"long", !7, i64 0}
!59 = !{!42, !13, i64 112}
!60 = !{!42, !13, i64 116}
!61 = !{!51, !12, i64 172}
!62 = !{!42, !12, i64 120}
!63 = !{!42, !12, i64 124}
!64 = !{!51, !12, i64 180}
!65 = !{!42, !12, i64 128}
!66 = !{!42, !12, i64 132}
!67 = !{!42, !6, i64 160}
!68 = !{!42, !13, i64 152}
!69 = !{!70, !13, i64 32}
!70 = !{!"_ZTS27b2ContactPositionConstraint", !7, i64 0, !33, i64 16, !33, i64 24, !13, i64 32, !13, i64 36, !12, i64 40, !12, i64 44, !33, i64 48, !33, i64 56, !12, i64 64, !12, i64 68, !34, i64 72, !12, i64 76, !12, i64 80, !13, i64 84}
!71 = !{!70, !13, i64 36}
!72 = !{!70, !12, i64 40}
!73 = !{!70, !12, i64 44}
!74 = !{i64 0, i64 4, !26, i64 4, i64 4, !26}
!75 = !{!70, !12, i64 64}
!76 = !{!70, !12, i64 68}
!77 = !{!70, !13, i64 84}
!78 = !{!70, !12, i64 76}
!79 = !{!70, !12, i64 80}
!80 = !{!32, !34, i64 56}
!81 = !{!70, !34, i64 72}
!82 = !{!11, !14, i64 24}
!83 = !{i8 0, i8 2}
!84 = !{}
!85 = !{!11, !12, i64 8}
!86 = !{!87, !12, i64 8}
!87 = !{!"_ZTS15b2ManifoldPoint", !33, i64 0, !12, i64 8, !12, i64 12, !7, i64 16}
!88 = !{!89, !12, i64 16}
!89 = !{!"_ZTS25b2VelocityConstraintPoint", !33, i64 0, !33, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!90 = !{!87, !12, i64 12}
!91 = !{!89, !12, i64 24}
!92 = distinct !{!92, !93}
!93 = !{!"llvm.loop.mustprogress"}
!94 = distinct !{!94, !93}


; 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.b2ContactVelocityConstraint = type { [2 x %struct.b2VelocityConstraintPoint], %struct.b2Vec2, %struct.b2Mat22, %struct.b2Mat22, i32, i32, float, float, float, float, float, float, float, float, i32, ptr }
%struct.b2VelocityConstraintPoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float }
%struct.b2Vec2 = type { float, float }
%struct.b2Mat22 = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2ContactPositionConstraint = type { [2 x %struct.b2Vec2], %struct.b2Vec2, %struct.b2Vec2, i32, i32, float, float, %struct.b2Vec2, %struct.b2Vec2, float, float, i32, float, float, i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }
%union.b2ContactID = type { i32 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef(ptr nocapture noundef nonnull align 8 dereferenceable(44) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 64
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %4, ptr %5, align 8, !tbaa !14
  %6 = getelementptr inbounds i8, ptr %1, i64 40
  %7 = load i32, ptr %6, align 8, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %7, ptr %8, align 8, !tbaa !17
  %9 = mul i32 %7, 88
  %10 = tail call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %4, i32 noundef %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %10, ptr %11, align 8, !tbaa !18
  %12 = load ptr, ptr %5, align 8, !tbaa !14
  %13 = load i32, ptr %8, align 8, !tbaa !17
  %14 = mul i32 %13, 168
  %15 = tail call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %12, i32 noundef %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %15, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %1, i64 48
  %18 = load <2 x ptr>, ptr %17, align 8, !tbaa !20
  store <2 x ptr> %18, ptr %0, align 8, !tbaa !20
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.3.0.copyload = load float, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !21
  %19 = load i32, ptr %8, align 8, !tbaa !17
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %.sroa.584.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.584.0.copyload = load i8, ptr %.sroa.584.0..sroa_idx, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = trunc i8 %.sroa.584.0.copyload to i1
  br label %23

._crit_edge:                                      ; preds = %.split96.us, %2
  ret void

23:                                               ; preds = %.lr.ph, %.split96.us
  %indvars.iv105 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next106, %.split96.us ]
  %24 = load ptr, ptr %21, align 8, !tbaa !23
  %25 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv105
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = getelementptr inbounds i8, ptr %26, i64 32
  %30 = load ptr, ptr %29, align 8, !tbaa !29
  %31 = tail call noundef ptr @_ZN9b2Fixture8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(84) %28)
  %32 = tail call noundef ptr @_ZN9b2Fixture8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(84) %30)
  %33 = getelementptr inbounds i8, ptr %31, i64 12
  %34 = load float, ptr %33, align 4, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %32, i64 12
  %36 = load float, ptr %35, align 4, !tbaa !30
  %37 = tail call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %28)
  %38 = tail call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %30)
  %39 = tail call noundef ptr @_ZN9b2Contact11GetManifoldEv(ptr noundef nonnull align 8 dereferenceable(128) %26)
  %40 = getelementptr inbounds i8, ptr %39, i64 60
  %41 = load i32, ptr %40, align 4, !tbaa !33
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15b2ContactSolver10InitializeEP18b2ContactSolverDef) #4
  unreachable

44:                                               ; preds = %23
  %45 = load ptr, ptr %16, align 8, !tbaa !19
  %46 = getelementptr inbounds %struct.b2ContactVelocityConstraint, ptr %45, i64 %indvars.iv105
  %47 = load ptr, ptr %11, align 8, !tbaa !18
  %48 = getelementptr inbounds %struct.b2ContactPositionConstraint, ptr %47, i64 %indvars.iv105
  %49 = getelementptr inbounds i8, ptr %26, i64 112
  %50 = load <2 x float>, ptr %49, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %26, i64 120
  %52 = getelementptr inbounds i8, ptr %46, i64 144
  %53 = load <2 x float>, ptr %51, align 8, !tbaa !21
  store <2 x float> %53, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds i8, ptr %37, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !34
  %56 = getelementptr inbounds i8, ptr %46, i64 112
  store i32 %55, ptr %56, align 8, !tbaa !43
  %57 = getelementptr inbounds i8, ptr %38, i64 8
  %58 = load i32, ptr %57, align 8, !tbaa !34
  %59 = getelementptr inbounds i8, ptr %46, i64 116
  store i32 %58, ptr %59, align 4, !tbaa !46
  %60 = getelementptr inbounds i8, ptr %37, i64 172
  %61 = load float, ptr %60, align 4, !tbaa !47
  %62 = getelementptr inbounds i8, ptr %46, i64 120
  store float %61, ptr %62, align 8, !tbaa !48
  %63 = getelementptr inbounds i8, ptr %38, i64 172
  %64 = load float, ptr %63, align 4, !tbaa !47
  %65 = getelementptr inbounds i8, ptr %46, i64 124
  store float %64, ptr %65, align 4, !tbaa !49
  %66 = getelementptr inbounds i8, ptr %37, i64 180
  %67 = load float, ptr %66, align 4, !tbaa !50
  %68 = getelementptr inbounds i8, ptr %46, i64 128
  %69 = getelementptr inbounds i8, ptr %38, i64 180
  %70 = load float, ptr %69, align 4, !tbaa !50
  %71 = insertelement <4 x float> poison, float %67, i64 0
  %72 = insertelement <4 x float> %71, float %70, i64 1
  %73 = shufflevector <2 x float> %50, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %74 = shufflevector <4 x float> %72, <4 x float> %73, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %74, ptr %68, align 8, !tbaa !21
  %75 = getelementptr inbounds i8, ptr %46, i64 160
  store ptr %39, ptr %75, align 8, !tbaa !51
  %76 = getelementptr inbounds i8, ptr %46, i64 152
  store i32 %41, ptr %76, align 8, !tbaa !52
  %77 = getelementptr inbounds i8, ptr %48, i64 32
  store i32 %55, ptr %77, align 4, !tbaa !53
  %78 = getelementptr inbounds i8, ptr %48, i64 36
  store i32 %58, ptr %78, align 4, !tbaa !55
  %79 = getelementptr inbounds i8, ptr %48, i64 40
  store float %61, ptr %79, align 4, !tbaa !56
  %80 = getelementptr inbounds i8, ptr %48, i64 44
  store float %64, ptr %80, align 4, !tbaa !57
  %81 = getelementptr inbounds i8, ptr %37, i64 44
  %82 = getelementptr inbounds i8, ptr %48, i64 48
  %83 = load i64, ptr %81, align 4
  store i64 %83, ptr %82, align 4
  %84 = getelementptr inbounds i8, ptr %38, i64 44
  %85 = getelementptr inbounds i8, ptr %48, i64 56
  %86 = load i64, ptr %84, align 4
  store i64 %86, ptr %85, align 4
  %87 = load float, ptr %66, align 4, !tbaa !50
  %88 = getelementptr inbounds i8, ptr %48, i64 64
  store float %87, ptr %88, align 4, !tbaa !58
  %89 = load float, ptr %69, align 4, !tbaa !50
  %90 = getelementptr inbounds i8, ptr %48, i64 68
  store float %89, ptr %90, align 4, !tbaa !59
  %91 = getelementptr inbounds i8, ptr %39, i64 40
  %92 = getelementptr inbounds i8, ptr %48, i64 16
  %93 = load i64, ptr %91, align 4
  store i64 %93, ptr %92, align 4
  %94 = getelementptr inbounds i8, ptr %39, i64 48
  %95 = getelementptr inbounds i8, ptr %48, i64 24
  %96 = load i64, ptr %94, align 4
  store i64 %96, ptr %95, align 4
  %97 = getelementptr inbounds i8, ptr %48, i64 84
  store i32 %41, ptr %97, align 4, !tbaa !60
  %98 = getelementptr inbounds i8, ptr %48, i64 76
  store float %34, ptr %98, align 4, !tbaa !61
  %99 = getelementptr inbounds i8, ptr %48, i64 80
  store float %36, ptr %99, align 4, !tbaa !62
  %100 = getelementptr inbounds i8, ptr %39, i64 56
  %101 = load i32, ptr %100, align 4, !tbaa !63
  %102 = getelementptr inbounds i8, ptr %48, i64 72
  store i32 %101, ptr %102, align 4, !tbaa !64
  %wide.trip.count103 = zext nneg i32 %41 to i64
  br i1 %22, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %44
  %xtraiter = and i64 %wide.trip.count103, 1
  %103 = icmp eq i32 %41, 1
  br i1 %103, label %.split96.us.loopexit110.unr-lcssa, label %.split.preheader.new

.split.preheader.new:                             ; preds = %.split.preheader
  %unroll_iter = and i64 %wide.trip.count103, 2147483646
  br label %.split

.split.us.preheader:                              ; preds = %44
  %xtraiter111 = and i64 %wide.trip.count103, 1
  %104 = icmp eq i32 %41, 1
  br i1 %104, label %.split96.us.loopexit.unr-lcssa, label %.split.us.preheader.new

.split.us.preheader.new:                          ; preds = %.split.us.preheader
  %unroll_iter113 = and i64 %wide.trip.count103, 2147483646
  br label %.split.us

.split.us:                                        ; preds = %.split.us, %.split.us.preheader.new
  %indvars.iv100 = phi i64 [ 0, %.split.us.preheader.new ], [ %indvars.iv.next101.1, %.split.us ]
  %niter114 = phi i64 [ 0, %.split.us.preheader.new ], [ %niter114.next.1, %.split.us ]
  %105 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv100
  %106 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv100
  %107 = getelementptr inbounds i8, ptr %105, i64 8
  %108 = load float, ptr %107, align 4, !tbaa !65
  %109 = fmul float %.sroa.3.0.copyload, %108
  %110 = getelementptr inbounds i8, ptr %106, i64 16
  store float %109, ptr %110, align 4, !tbaa !67
  %111 = getelementptr inbounds i8, ptr %105, i64 12
  %112 = load float, ptr %111, align 4, !tbaa !69
  %113 = fmul float %.sroa.3.0.copyload, %112
  %114 = getelementptr inbounds i8, ptr %106, i64 24
  store float %113, ptr %114, align 4, !tbaa !70
  %115 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv100
  %116 = load i64, ptr %105, align 4
  store i64 %116, ptr %115, align 4
  %indvars.iv.next101 = or disjoint i64 %indvars.iv100, 1
  %117 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv.next101
  %118 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv.next101
  %119 = getelementptr inbounds i8, ptr %117, i64 8
  %120 = load float, ptr %119, align 4, !tbaa !65
  %121 = fmul float %.sroa.3.0.copyload, %120
  %122 = getelementptr inbounds i8, ptr %118, i64 16
  store float %121, ptr %122, align 4, !tbaa !67
  %123 = getelementptr inbounds i8, ptr %117, i64 12
  %124 = load float, ptr %123, align 4, !tbaa !69
  %125 = fmul float %.sroa.3.0.copyload, %124
  %126 = getelementptr inbounds i8, ptr %118, i64 24
  store float %125, ptr %126, align 4, !tbaa !70
  %127 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv.next101
  %128 = load i64, ptr %117, align 4
  store i64 %128, ptr %127, align 4
  %indvars.iv.next101.1 = add nuw nsw i64 %indvars.iv100, 2
  %niter114.next.1 = add i64 %niter114, 2
  %niter114.ncmp.1 = icmp eq i64 %niter114.next.1, %unroll_iter113
  br i1 %niter114.ncmp.1, label %.split96.us.loopexit.unr-lcssa, label %.split.us, !llvm.loop !71

.split96.us.loopexit.unr-lcssa:                   ; preds = %.split.us, %.split.us.preheader
  %indvars.iv100.unr = phi i64 [ 0, %.split.us.preheader ], [ %indvars.iv.next101.1, %.split.us ]
  %lcmp.mod112.not = icmp eq i64 %xtraiter111, 0
  br i1 %lcmp.mod112.not, label %.split96.us, label %.split.us.epil

.split.us.epil:                                   ; preds = %.split96.us.loopexit.unr-lcssa
  %129 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv100.unr
  %130 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv100.unr
  %131 = getelementptr inbounds i8, ptr %129, i64 8
  %132 = load float, ptr %131, align 4, !tbaa !65
  %133 = fmul float %.sroa.3.0.copyload, %132
  %134 = getelementptr inbounds i8, ptr %130, i64 16
  store float %133, ptr %134, align 4, !tbaa !67
  %135 = getelementptr inbounds i8, ptr %129, i64 12
  %136 = load float, ptr %135, align 4, !tbaa !69
  %137 = fmul float %.sroa.3.0.copyload, %136
  %138 = getelementptr inbounds i8, ptr %130, i64 24
  store float %137, ptr %138, align 4, !tbaa !70
  %139 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv100.unr
  %140 = load i64, ptr %129, align 4
  store i64 %140, ptr %139, align 4
  br label %.split96.us

.split96.us.loopexit110.unr-lcssa:                ; preds = %.split, %.split.preheader
  %indvars.iv.unr = phi i64 [ 0, %.split.preheader ], [ %indvars.iv.next.1, %.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.split96.us, label %.split.epil

.split.epil:                                      ; preds = %.split96.us.loopexit110.unr-lcssa
  %141 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv.unr
  %142 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv.unr
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  store float 0.000000e+00, ptr %143, align 4, !tbaa !67
  %144 = getelementptr inbounds i8, ptr %142, i64 24
  store float 0.000000e+00, ptr %144, align 4, !tbaa !70
  %145 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv.unr
  %146 = load i64, ptr %141, align 4
  store i64 %146, ptr %145, align 4
  br label %.split96.us

.split96.us:                                      ; preds = %.split.epil, %.split96.us.loopexit110.unr-lcssa, %.split.us.epil, %.split96.us.loopexit.unr-lcssa
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %147 = load i32, ptr %8, align 8, !tbaa !17
  %148 = sext i32 %147 to i64
  %149 = icmp slt i64 %indvars.iv.next106, %148
  br i1 %149, label %23, label %._crit_edge, !llvm.loop !73

.split:                                           ; preds = %.split, %.split.preheader.new
  %indvars.iv = phi i64 [ 0, %.split.preheader.new ], [ %indvars.iv.next.1, %.split ]
  %niter = phi i64 [ 0, %.split.preheader.new ], [ %niter.next.1, %.split ]
  %150 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv
  %151 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv
  %152 = getelementptr inbounds i8, ptr %151, i64 16
  store float 0.000000e+00, ptr %152, align 4, !tbaa !67
  %153 = getelementptr inbounds i8, ptr %151, i64 24
  store float 0.000000e+00, ptr %153, align 4, !tbaa !70
  %154 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv
  %155 = load i64, ptr %150, align 4
  store i64 %155, ptr %154, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %156 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %39, i64 %indvars.iv.next
  %157 = getelementptr inbounds %struct.b2VelocityConstraintPoint, ptr %46, i64 %indvars.iv.next
  %158 = getelementptr inbounds i8, ptr %157, i64 16
  store float 0.000000e+00, ptr %158, align 4, !tbaa !67
  %159 = getelementptr inbounds i8, ptr %157, i64 24
  store float 0.000000e+00, ptr %159, align 4, !tbaa !70
  %160 = getelementptr inbounds [2 x %struct.b2Vec2], ptr %48, i64 0, i64 %indvars.iv.next
  %161 = load i64, ptr %156, align 4
  store i64 %161, ptr %160, align 4
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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 %.split96.us.loopexit110.unr-lcssa, label %.split, !llvm.loop !71
}

declare noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932), i32 noundef) local_unnamed_addr #1

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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, !13, i64 64}
!6 = !{!"_ZTS18b2ContactSolverDef", !7, i64 0, !13, i64 32, !11, i64 40, !13, i64 48, !13, i64 56, !13, i64 64}
!7 = !{!"_ZTS10b2TimeStep", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !13, i64 16}
!15 = !{!"_ZTS15b2ContactSolver", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !11, i64 40}
!16 = !{!6, !11, i64 40}
!17 = !{!15, !11, i64 40}
!18 = !{!15, !13, i64 24}
!19 = !{!15, !13, i64 32}
!20 = !{!13, !13, i64 0}
!21 = !{!8, !8, i64 0}
!22 = !{!12, !12, i64 0}
!23 = !{!6, !13, i64 32}
!24 = !{!25, !13, i64 24}
!25 = !{!"_ZTS9b2Contact", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !26, i64 40, !11, i64 104, !11, i64 108, !8, i64 112, !8, i64 116, !8, i64 120, !8, i64 124}
!26 = !{!"_ZTS10b2Manifold", !9, i64 0, !27, i64 40, !27, i64 48, !28, i64 56, !11, i64 60}
!27 = !{!"_ZTS6b2Vec2", !8, i64 0, !8, i64 4}
!28 = !{!"_ZTSN10b2Manifold4TypeE", !9, i64 0}
!29 = !{!25, !13, i64 32}
!30 = !{!31, !8, i64 12}
!31 = !{!"_ZTS7b2Shape", !32, i64 8, !8, i64 12}
!32 = !{!"_ZTSN7b2Shape4TypeE", !9, i64 0}
!33 = !{!26, !11, i64 60}
!34 = !{!35, !11, i64 8}
!35 = !{!"_ZTS6b2Body", !36, i64 0, !37, i64 4, !11, i64 8, !38, i64 12, !38, i64 28, !40, i64 44, !27, i64 80, !8, i64 88, !27, i64 92, !8, i64 100, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !11, i64 136, !13, i64 144, !13, i64 152, !11, i64 160, !11, i64 164, !8, i64 168, !8, i64 172, !8, i64 176, !8, i64 180, !8, i64 184, !8, i64 188, !8, i64 192, !8, i64 196, !41, i64 200}
!36 = !{!"_ZTS10b2BodyType", !9, i64 0}
!37 = !{!"short", !9, i64 0}
!38 = !{!"_ZTS11b2Transform", !27, i64 0, !39, i64 8}
!39 = !{!"_ZTS5b2Rot", !8, i64 0, !8, i64 4}
!40 = !{!"_ZTS7b2Sweep", !27, i64 0, !27, i64 8, !27, i64 16, !8, i64 24, !8, i64 28, !8, i64 32}
!41 = !{!"_ZTS14b2BodyUserData", !42, i64 0}
!42 = !{!"long", !9, i64 0}
!43 = !{!44, !11, i64 112}
!44 = !{!"_ZTS27b2ContactVelocityConstraint", !9, i64 0, !27, i64 72, !45, i64 80, !45, i64 96, !11, i64 112, !11, i64 116, !8, i64 120, !8, i64 124, !8, i64 128, !8, i64 132, !8, i64 136, !8, i64 140, !8, i64 144, !8, i64 148, !11, i64 152, !13, i64 160}
!45 = !{!"_ZTS7b2Mat22", !27, i64 0, !27, i64 8}
!46 = !{!44, !11, i64 116}
!47 = !{!35, !8, i64 172}
!48 = !{!44, !8, i64 120}
!49 = !{!44, !8, i64 124}
!50 = !{!35, !8, i64 180}
!51 = !{!44, !13, i64 160}
!52 = !{!44, !11, i64 152}
!53 = !{!54, !11, i64 32}
!54 = !{!"_ZTS27b2ContactPositionConstraint", !9, i64 0, !27, i64 16, !27, i64 24, !11, i64 32, !11, i64 36, !8, i64 40, !8, i64 44, !27, i64 48, !27, i64 56, !8, i64 64, !8, i64 68, !28, i64 72, !8, i64 76, !8, i64 80, !11, i64 84}
!55 = !{!54, !11, i64 36}
!56 = !{!54, !8, i64 40}
!57 = !{!54, !8, i64 44}
!58 = !{!54, !8, i64 64}
!59 = !{!54, !8, i64 68}
!60 = !{!54, !11, i64 84}
!61 = !{!54, !8, i64 76}
!62 = !{!54, !8, i64 80}
!63 = !{!26, !28, i64 56}
!64 = !{!54, !28, i64 72}
!65 = !{!66, !8, i64 8}
!66 = !{!"_ZTS15b2ManifoldPoint", !27, i64 0, !8, i64 8, !8, i64 12, !9, i64 16}
!67 = !{!68, !8, i64 16}
!68 = !{!"_ZTS25b2VelocityConstraintPoint", !27, i64 0, !27, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32}
!69 = !{!66, !8, i64 12}
!70 = !{!68, !8, i64 24}
!71 = distinct !{!71, !72}
!72 = !{!"llvm.loop.mustprogress"}
!73 = distinct !{!73, !72}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass