; LLVM IR from erincatto/box2d :: src (contact_solver)

; 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.b2StepContext = type { float, float, float, float, i32, %struct.b2Softness, %struct.b2Softness, %struct.b2Softness, float, float, ptr, ptr, ptr, ptr, ptr, i32, ptr, %struct.b2AtomicInt, ptr, ptr, ptr, i32, i32, ptr, i32, i8, [64 x i8], %struct.b2AtomicU32, [64 x i8] }
%struct.b2Softness = type { float, float, float }
%struct.b2AtomicInt = type { i32 }
%struct.b2AtomicU32 = type { i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }
%struct.b2ContactConstraint = type { i32, i32, [2 x %struct.b2ContactConstraintPoint], %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, %struct.b2Softness, i32 }
%struct.b2ContactConstraintPoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float }
%struct.b2Vec2 = type { float, float }
%struct.b2ContactSim = type { i32, i32, i32, i32, i32, float, float, float, float, %struct.b2Manifold, float, float, float, float, i32, %struct.b2SimplexCache }
%struct.b2Manifold = type { %struct.b2Vec2, float, [2 x %struct.b2ManifoldPoint], i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, i16, i8 }
%struct.b2SimplexCache = type { i16, [3 x i8], [3 x i8] }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2StoreOverflowImpulses(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.b2StepContext, ptr %15, i32 0, i32 11
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.b2ConstraintGraph, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds [12 x %struct.b2GraphColor], ptr %19, i64 0, i64 0
  %21 = getelementptr inbounds %struct.b2GraphColor, ptr %20, i64 11
  store ptr %21, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.b2GraphColor, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.b2GraphColor, ptr %25, i32 0, i32 1
  %27 = getelementptr inbounds %struct.b2ContactSimArray, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  store ptr %28, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2GraphColor, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds %struct.b2ContactSimArray, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !22
  store i32 %32, ptr %7, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 0, ptr %8, align 4, !tbaa !23
  br label %33

33:                                               ; preds = %119, %1
  %34 = load i32, ptr %8, align 4, !tbaa !23
  %35 = load i32, ptr %7, align 4, !tbaa !23
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  br label %122

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !23
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.b2ContactConstraint, ptr %39, i64 %41
  store ptr %42, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !23
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %struct.b2ContactSim, ptr %43, i64 %45
  store ptr %46, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.b2ContactSim, ptr %47, i32 0, i32 9
  store ptr %48, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.b2Manifold, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 4, !tbaa !24
  store i32 %51, ptr %13, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  store i32 0, ptr %14, align 4, !tbaa !23
  br label %52

52:                                               ; preds = %110, %38
  %53 = load i32, ptr %14, align 4, !tbaa !23
  %54 = load i32, ptr %13, align 4, !tbaa !23
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %113

57:                                               ; preds = %52
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.b2ContactConstraint, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %14, align 4, !tbaa !23
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %59, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.b2ContactConstraintPoint, ptr %62, i32 0, i32 4
  %64 = load float, ptr %63, align 4, !tbaa !27
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2Manifold, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %14, align 4, !tbaa !23
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %66, i64 0, i64 %68
  %70 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %69, i32 0, i32 4
  store float %64, ptr %70, align 4, !tbaa !29
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.b2ContactConstraint, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %14, align 4, !tbaa !23
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %72, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.b2ContactConstraintPoint, ptr %75, i32 0, i32 5
  %77 = load float, ptr %76, align 4, !tbaa !32
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.b2Manifold, ptr %78, i32 0, i32 2
  %80 = load i32, ptr %14, align 4, !tbaa !23
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %79, i64 0, i64 %81
  %83 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %82, i32 0, i32 5
  store float %77, ptr %83, align 4, !tbaa !33
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.b2ContactConstraint, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %14, align 4, !tbaa !23
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %85, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.b2ContactConstraintPoint, ptr %88, i32 0, i32 6
  %90 = load float, ptr %89, align 4, !tbaa !34
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.b2Manifold, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %14, align 4, !tbaa !23
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %92, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %95, i32 0, i32 6
  store float %90, ptr %96, align 4, !tbaa !35
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.b2ContactConstraint, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %14, align 4, !tbaa !23
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %98, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.b2ContactConstraintPoint, ptr %101, i32 0, i32 3
  %103 = load float, ptr %102, align 4, !tbaa !36
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.b2Manifold, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %14, align 4, !tbaa !23
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %105, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %108, i32 0, i32 7
  store float %103, ptr %109, align 4, !tbaa !37
  br label %110

110:                                              ; preds = %57
  %111 = load i32, ptr %14, align 4, !tbaa !23
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !23
  br label %52, !llvm.loop !38

113:                                              ; preds = %56
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.b2ContactConstraint, ptr %114, i32 0, i32 13
  %116 = load float, ptr %115, align 4, !tbaa !40
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.b2Manifold, ptr %117, i32 0, i32 1
  store float %116, ptr %118, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %119

119:                                              ; preds = %113
  %120 = load i32, ptr %8, align 4, !tbaa !23
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %8, align 4, !tbaa !23
  br label %33, !llvm.loop !43

122:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 72}
!10 = !{!"b2StepContext", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !13, i64 20, !13, i64 32, !13, i64 44, !11, i64 56, !11, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !12, i64 104, !6, i64 112, !14, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !12, i64 156, !6, i64 160, !12, i64 168, !15, i64 172, !7, i64 173, !16, i64 240, !7, i64 244}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"b2Softness", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!"b2AtomicInt", !12, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"b2AtomicU32", !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"b2GraphColor", !20, i64 0, !21, i64 16, !21, i64 32, !7, i64 48}
!20 = !{!"b2BitSet", !6, i64 0, !12, i64 8, !12, i64 12}
!21 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!22 = !{!19, !12, i64 24}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !12, i64 108}
!25 = !{!"b2Manifold", !26, i64 0, !11, i64 8, !7, i64 12, !12, i64 108}
!26 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!27 = !{!28, !11, i64 24}
!28 = !{!"b2ContactConstraintPoint", !26, i64 0, !26, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40}
!29 = !{!30, !11, i64 28}
!30 = !{!"b2ManifoldPoint", !26, i64 0, !26, i64 8, !26, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !31, i64 44, !15, i64 46}
!31 = !{!"short", !7, i64 0}
!32 = !{!28, !11, i64 28}
!33 = !{!30, !11, i64 32}
!34 = !{!28, !11, i64 32}
!35 = !{!30, !11, i64 36}
!36 = !{!28, !11, i64 20}
!37 = !{!30, !11, i64 40}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!41, !11, i64 140}
!41 = !{!"b2ContactConstraint", !12, i64 0, !12, i64 4, !7, i64 8, !26, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !13, i64 144, !12, i64 156}
!42 = !{!25, !11, i64 8}
!43 = distinct !{!43, !39}


; 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.b2ContactConstraint = type { i32, i32, [2 x %struct.b2ContactConstraintPoint], %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, %struct.b2Softness, i32 }
%struct.b2ContactConstraintPoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float }
%struct.b2Vec2 = type { float, float }
%struct.b2Softness = type { float, float, float }
%struct.b2ContactSim = type { i32, i32, i32, i32, i32, float, float, float, float, %struct.b2Manifold, float, float, float, float, i32, %struct.b2SimplexCache }
%struct.b2Manifold = type { %struct.b2Vec2, float, [2 x %struct.b2ManifoldPoint], i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, i16, i8 }
%struct.b2SimplexCache = type { i16, [3 x i8], [3 x i8] }

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @b2StoreOverflowImpulses(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 72
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 664
  %5 = load ptr, ptr %4, align 8, !tbaa !16
  %6 = getelementptr inbounds i8, ptr %3, i64 632
  %7 = load ptr, ptr %6, align 8, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %3, i64 640
  %9 = load i32, ptr %8, align 8, !tbaa !21
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph38.preheader, label %._crit_edge39

.lr.ph38.preheader:                               ; preds = %1
  %wide.trip.count44 = zext nneg i32 %9 to i64
  br label %.lr.ph38

._crit_edge39:                                    ; preds = %._crit_edge, %1
  ret void

.lr.ph38:                                         ; preds = %.lr.ph38.preheader, %._crit_edge
  %indvars.iv41 = phi i64 [ 0, %.lr.ph38.preheader ], [ %indvars.iv.next42, %._crit_edge ]
  %11 = getelementptr inbounds %struct.b2ContactConstraint, ptr %5, i64 %indvars.iv41
  %12 = getelementptr inbounds %struct.b2ContactSim, ptr %7, i64 %indvars.iv41, i32 9
  %13 = getelementptr inbounds i8, ptr %12, i64 108
  %14 = load i32, ptr %13, align 4, !tbaa !22
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph38
  %16 = getelementptr inbounds i8, ptr %11, i64 8
  %17 = getelementptr inbounds i8, ptr %12, i64 12
  %wide.trip.count = zext nneg i32 %14 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %18 = icmp eq i32 %14, 1
  br i1 %18, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %26

._crit_edge.loopexit.unr-lcssa:                   ; preds = %26, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %26 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %19 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %17, i64 0, i64 %indvars.iv.unr, i32 4
  %20 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %16, i64 0, i64 %indvars.iv.unr, i32 3
  %21 = load <4 x float>, ptr %20, align 4, !tbaa !25
  %22 = shufflevector <4 x float> %21, <4 x float> poison, <4 x i32> <i32 1, i32 2, i32 3, i32 0>
  store <4 x float> %22, ptr %19, align 4, !tbaa !25
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.lr.ph38
  %23 = getelementptr inbounds i8, ptr %11, i64 140
  %24 = load float, ptr %23, align 4, !tbaa !26
  %25 = getelementptr inbounds i8, ptr %12, i64 8
  store float %24, ptr %25, align 4, !tbaa !28
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next42, %wide.trip.count44
  br i1 %exitcond45.not, label %._crit_edge39, label %.lr.ph38, !llvm.loop !29

26:                                               ; preds = %26, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %26 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %26 ]
  %27 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %17, i64 0, i64 %indvars.iv, i32 4
  %28 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %16, i64 0, i64 %indvars.iv, i32 3
  %29 = load <4 x float>, ptr %28, align 4, !tbaa !25
  %30 = shufflevector <4 x float> %29, <4 x float> poison, <4 x i32> <i32 1, i32 2, i32 3, i32 0>
  store <4 x float> %30, ptr %27, align 4, !tbaa !25
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %31 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %17, i64 0, i64 %indvars.iv.next, i32 4
  %32 = getelementptr inbounds [2 x %struct.b2ContactConstraintPoint], ptr %16, i64 0, i64 %indvars.iv.next, i32 3
  %33 = load <4 x float>, ptr %32, align 4, !tbaa !25
  %34 = shufflevector <4 x float> %33, <4 x float> poison, <4 x i32> <i32 1, i32 2, i32 3, i32 0>
  store <4 x float> %34, ptr %31, align 4, !tbaa !25
  %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 %._crit_edge.loopexit.unr-lcssa, label %26, !llvm.loop !31
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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" }

!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, !12, i64 72}
!6 = !{!"b2StepContext", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 20, !11, i64 32, !11, i64 44, !7, i64 56, !7, i64 60, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !10, i64 104, !12, i64 112, !13, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !10, i64 152, !10, i64 156, !12, i64 160, !10, i64 168, !14, i64 172, !8, i64 173, !15, i64 240, !8, i64 244}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"b2Softness", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"b2AtomicInt", !10, i64 0}
!14 = !{!"_Bool", !8, i64 0}
!15 = !{!"b2AtomicU32", !10, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !12, i64 16}
!18 = !{!"b2GraphColor", !19, i64 0, !20, i64 16, !20, i64 32, !8, i64 48}
!19 = !{!"b2BitSet", !12, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!"", !12, i64 0, !10, i64 8, !10, i64 12}
!21 = !{!18, !10, i64 24}
!22 = !{!23, !10, i64 108}
!23 = !{!"b2Manifold", !24, i64 0, !7, i64 8, !8, i64 12, !10, i64 108}
!24 = !{!"b2Vec2", !7, i64 0, !7, i64 4}
!25 = !{!7, !7, i64 0}
!26 = !{!27, !7, i64 140}
!27 = !{!"b2ContactConstraint", !10, i64 0, !10, i64 4, !8, i64 8, !24, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !11, i64 144, !10, i64 156}
!28 = !{!23, !7, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


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