; 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.b2Manifold = type { %struct.b2Vec2, float, [2 x %struct.b2ManifoldPoint], i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, i16, i8 }
%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.b2ContactConstraintSIMD = type { [4 x i32], [4 x i32], <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float> }
%struct.b2Vec2W = type { <4 x float>, <4 x float> }
%struct.b2ContactSim = type { i32, i32, i32, i32, i32, float, float, float, float, %struct.b2Manifold, float, float, float, float, i32, %struct.b2SimplexCache }
%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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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 @b2StoreImpulsesTask(i32 noundef %0, i32 noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.b2Manifold, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.b2StepContext, ptr %25, i32 0, i32 19
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  store ptr %27, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.b2StepContext, ptr %28, i32 0, i32 20
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  store ptr %30, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 112, ptr %9) #3
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 112, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %31 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %31, ptr %10, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %170, %3
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %173

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %38, i64 %40
  store ptr %41, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %42 = load ptr, ptr %12, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %42, i32 0, i32 11
  store ptr %43, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %44 = load ptr, ptr %12, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %44, i32 0, i32 20
  store ptr %45, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %46 = load ptr, ptr %12, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %46, i32 0, i32 26
  store ptr %47, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %48 = load ptr, ptr %12, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %48, i32 0, i32 22
  store ptr %49, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %50 = load ptr, ptr %12, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %50, i32 0, i32 28
  store ptr %51, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %52, i32 0, i32 21
  store ptr %53, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %54 = load ptr, ptr %12, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %54, i32 0, i32 27
  store ptr %55, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %56 = load ptr, ptr %12, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %56, i32 0, i32 32
  store ptr %57, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %58, i32 0, i32 33
  store ptr %59, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = mul nsw i32 4, %60
  store i32 %61, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %166, %37
  %63 = load i32, ptr %23, align 4, !tbaa !5
  %64 = icmp slt i32 %63, 4
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %169

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = load i32, ptr %22, align 4, !tbaa !5
  %69 = load i32, ptr %23, align 4, !tbaa !5
  %70 = add nsw i32 %68, %69
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %67, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %66
  br label %85

76:                                               ; preds = %66
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = load i32, ptr %22, align 4, !tbaa !5
  %79 = load i32, ptr %23, align 4, !tbaa !5
  %80 = add nsw i32 %78, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %77, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.b2ContactSim, ptr %83, i32 0, i32 9
  br label %85

85:                                               ; preds = %76, %75
  %86 = phi ptr [ %9, %75 ], [ %84, %76 ]
  store ptr %86, ptr %24, align 8, !tbaa !9
  %87 = load ptr, ptr %13, align 8, !tbaa !9
  %88 = load i32, ptr %23, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !19
  %92 = load ptr, ptr %24, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.b2Manifold, ptr %92, i32 0, i32 1
  store float %91, ptr %93, align 4, !tbaa !20
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = load i32, ptr %23, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !19
  %99 = load ptr, ptr %24, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.b2Manifold, ptr %99, i32 0, i32 2
  %101 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %100, i64 0, i64 0
  %102 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %101, i32 0, i32 4
  store float %98, ptr %102, align 4, !tbaa !23
  %103 = load ptr, ptr %16, align 8, !tbaa !9
  %104 = load i32, ptr %23, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %103, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !19
  %108 = load ptr, ptr %24, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.b2Manifold, ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %109, i64 0, i64 0
  %111 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %110, i32 0, i32 5
  store float %107, ptr %111, align 4, !tbaa !26
  %112 = load ptr, ptr %18, align 8, !tbaa !9
  %113 = load i32, ptr %23, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds float, ptr %112, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !19
  %117 = load ptr, ptr %24, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.b2Manifold, ptr %117, i32 0, i32 2
  %119 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %118, i64 0, i64 0
  %120 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %119, i32 0, i32 6
  store float %116, ptr %120, align 4, !tbaa !27
  %121 = load ptr, ptr %20, align 8, !tbaa !9
  %122 = load i32, ptr %23, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %121, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !19
  %126 = load ptr, ptr %24, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.b2Manifold, ptr %126, i32 0, i32 2
  %128 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %127, i64 0, i64 0
  %129 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %128, i32 0, i32 7
  store float %125, ptr %129, align 4, !tbaa !28
  %130 = load ptr, ptr %15, align 8, !tbaa !9
  %131 = load i32, ptr %23, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %130, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !19
  %135 = load ptr, ptr %24, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.b2Manifold, ptr %135, i32 0, i32 2
  %137 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %136, i64 0, i64 1
  %138 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %137, i32 0, i32 4
  store float %134, ptr %138, align 4, !tbaa !23
  %139 = load ptr, ptr %17, align 8, !tbaa !9
  %140 = load i32, ptr %23, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !19
  %144 = load ptr, ptr %24, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.b2Manifold, ptr %144, i32 0, i32 2
  %146 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %145, i64 0, i64 1
  %147 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %146, i32 0, i32 5
  store float %143, ptr %147, align 4, !tbaa !26
  %148 = load ptr, ptr %19, align 8, !tbaa !9
  %149 = load i32, ptr %23, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds float, ptr %148, i64 %150
  %152 = load float, ptr %151, align 4, !tbaa !19
  %153 = load ptr, ptr %24, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.b2Manifold, ptr %153, i32 0, i32 2
  %155 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %154, i64 0, i64 1
  %156 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %155, i32 0, i32 6
  store float %152, ptr %156, align 4, !tbaa !27
  %157 = load ptr, ptr %21, align 8, !tbaa !9
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %157, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !19
  %162 = load ptr, ptr %24, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.b2Manifold, ptr %162, i32 0, i32 2
  %164 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %163, i64 0, i64 1
  %165 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %164, i32 0, i32 7
  store float %161, ptr %165, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %166

166:                                              ; preds = %85
  %167 = load i32, ptr %23, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %23, align 4, !tbaa !5
  br label %62, !llvm.loop !29

169:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %10, align 4, !tbaa !5
  br label %32, !llvm.loop !31

173:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 112, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 136}
!12 = !{!"b2StepContext", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !6, i64 16, !14, i64 20, !14, i64 32, !14, i64 44, !13, i64 56, !13, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !15, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !6, i64 152, !6, i64 156, !10, i64 160, !6, i64 168, !16, i64 172, !7, i64 173, !17, i64 240, !7, i64 244}
!13 = !{!"float", !7, i64 0}
!14 = !{!"b2Softness", !13, i64 0, !13, i64 4, !13, i64 8}
!15 = !{!"b2AtomicInt", !6, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"b2AtomicU32", !6, i64 0}
!18 = !{!12, !10, i64 144}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !13, i64 8}
!21 = !{!"b2Manifold", !22, i64 0, !13, i64 8, !7, i64 12, !6, i64 108}
!22 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!23 = !{!24, !13, i64 28}
!24 = !{!"b2ManifoldPoint", !22, i64 0, !22, i64 8, !22, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !25, i64 44, !16, i64 46}
!25 = !{!"short", !7, i64 0}
!26 = !{!24, !13, i64 32}
!27 = !{!24, !13, i64 36}
!28 = !{!24, !13, i64 40}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}


; 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.b2ContactConstraintSIMD = type { [4 x i32], [4 x i32], <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, %struct.b2Vec2W, %struct.b2Vec2W, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float>, <4 x float> }
%struct.b2Vec2W = type { <4 x float>, <4 x float> }

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @b2StoreImpulsesTask(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %2, i64 136
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %2, i64 144
  %7 = load ptr, ptr %6, align 8, !tbaa !16
  %8 = icmp slt i32 %0, %1
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %9 = sext i32 %0 to i64
  %wide.trip.count = sext i32 %1 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.cont.3, %3
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.cont.3
  %indvars.iv = phi i64 [ %9, %.lr.ph.preheader ], [ %indvars.iv.next, %.cont.3 ]
  %10 = getelementptr inbounds %struct.b2ContactConstraintSIMD, ptr %7, i64 %indvars.iv
  %11 = shl nsw i64 %indvars.iv, 2
  %12 = getelementptr inbounds ptr, ptr %5, i64 %11
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  %14 = icmp eq ptr %13, null
  br i1 %14, label %.cont, label %.else

.else:                                            ; preds = %.lr.ph
  %15 = getelementptr inbounds i8, ptr %10, i64 608
  %16 = getelementptr inbounds i8, ptr %10, i64 512
  %17 = getelementptr inbounds i8, ptr %10, i64 528
  %18 = getelementptr inbounds i8, ptr %10, i64 496
  %19 = getelementptr inbounds i8, ptr %10, i64 592
  %20 = getelementptr inbounds i8, ptr %10, i64 384
  %21 = getelementptr inbounds i8, ptr %10, i64 400
  %22 = getelementptr inbounds i8, ptr %10, i64 368
  %23 = getelementptr inbounds i8, ptr %10, i64 192
  %.sroa.gep77 = getelementptr inbounds i8, ptr %13, i64 44
  %24 = load float, ptr %23, align 4, !tbaa !18
  store float %24, ptr %.sroa.gep77, align 4, !tbaa !19
  %25 = load float, ptr %22, align 4, !tbaa !18
  %.sroa.gep74 = getelementptr inbounds i8, ptr %13, i64 76
  store float %25, ptr %.sroa.gep74, align 4, !tbaa !22
  %26 = load float, ptr %21, align 4, !tbaa !18
  %.sroa.gep71 = getelementptr inbounds i8, ptr %13, i64 80
  store float %26, ptr %.sroa.gep71, align 4, !tbaa !25
  %27 = load float, ptr %20, align 4, !tbaa !18
  %.sroa.gep68 = getelementptr inbounds i8, ptr %13, i64 84
  store float %27, ptr %.sroa.gep68, align 4, !tbaa !26
  %28 = load float, ptr %19, align 4, !tbaa !18
  %.sroa.gep65 = getelementptr inbounds i8, ptr %13, i64 88
  store float %28, ptr %.sroa.gep65, align 4, !tbaa !27
  %29 = load float, ptr %18, align 4, !tbaa !18
  %.sroa.gep62 = getelementptr inbounds i8, ptr %13, i64 124
  store float %29, ptr %.sroa.gep62, align 4, !tbaa !22
  %30 = load float, ptr %17, align 4, !tbaa !18
  %.sroa.gep59 = getelementptr inbounds i8, ptr %13, i64 128
  store float %30, ptr %.sroa.gep59, align 4, !tbaa !25
  %31 = load float, ptr %16, align 4, !tbaa !18
  %.sroa.gep56 = getelementptr inbounds i8, ptr %13, i64 132
  store float %31, ptr %.sroa.gep56, align 4, !tbaa !26
  %32 = load float, ptr %15, align 4, !tbaa !18
  %.sroa.gep54 = getelementptr inbounds i8, ptr %13, i64 136
  store float %32, ptr %.sroa.gep54, align 4, !tbaa !27
  br label %.cont

.cont:                                            ; preds = %.lr.ph, %.else
  %33 = or disjoint i64 %11, 1
  %34 = getelementptr inbounds ptr, ptr %5, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = icmp eq ptr %35, null
  br i1 %36, label %.cont.1, label %.else.1

.else.1:                                          ; preds = %.cont
  %.sroa.gep77.1 = getelementptr inbounds i8, ptr %35, i64 44
  %37 = getelementptr inbounds i8, ptr %10, i64 196
  %38 = load float, ptr %37, align 4, !tbaa !18
  store float %38, ptr %.sroa.gep77.1, align 4, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %10, i64 372
  %40 = load float, ptr %39, align 4, !tbaa !18
  %.sroa.gep74.1 = getelementptr inbounds i8, ptr %35, i64 76
  store float %40, ptr %.sroa.gep74.1, align 4, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %10, i64 404
  %42 = load float, ptr %41, align 4, !tbaa !18
  %.sroa.gep71.1 = getelementptr inbounds i8, ptr %35, i64 80
  store float %42, ptr %.sroa.gep71.1, align 4, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %10, i64 388
  %44 = load float, ptr %43, align 4, !tbaa !18
  %.sroa.gep68.1 = getelementptr inbounds i8, ptr %35, i64 84
  store float %44, ptr %.sroa.gep68.1, align 4, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %10, i64 596
  %46 = load float, ptr %45, align 4, !tbaa !18
  %.sroa.gep65.1 = getelementptr inbounds i8, ptr %35, i64 88
  store float %46, ptr %.sroa.gep65.1, align 4, !tbaa !27
  %47 = getelementptr inbounds i8, ptr %10, i64 500
  %48 = load float, ptr %47, align 4, !tbaa !18
  %.sroa.gep62.1 = getelementptr inbounds i8, ptr %35, i64 124
  store float %48, ptr %.sroa.gep62.1, align 4, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %10, i64 532
  %50 = load float, ptr %49, align 4, !tbaa !18
  %.sroa.gep59.1 = getelementptr inbounds i8, ptr %35, i64 128
  store float %50, ptr %.sroa.gep59.1, align 4, !tbaa !25
  %51 = getelementptr inbounds i8, ptr %10, i64 516
  %52 = load float, ptr %51, align 4, !tbaa !18
  %.sroa.gep56.1 = getelementptr inbounds i8, ptr %35, i64 132
  store float %52, ptr %.sroa.gep56.1, align 4, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %10, i64 612
  %54 = load float, ptr %53, align 4, !tbaa !18
  %.sroa.gep54.1 = getelementptr inbounds i8, ptr %35, i64 136
  store float %54, ptr %.sroa.gep54.1, align 4, !tbaa !27
  br label %.cont.1

.cont.1:                                          ; preds = %.else.1, %.cont
  %55 = or disjoint i64 %11, 2
  %56 = getelementptr inbounds ptr, ptr %5, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = icmp eq ptr %57, null
  br i1 %58, label %.cont.2, label %.else.2

.else.2:                                          ; preds = %.cont.1
  %.sroa.gep77.2 = getelementptr inbounds i8, ptr %57, i64 44
  %59 = getelementptr inbounds i8, ptr %10, i64 200
  %60 = load float, ptr %59, align 4, !tbaa !18
  store float %60, ptr %.sroa.gep77.2, align 4, !tbaa !19
  %61 = getelementptr inbounds i8, ptr %10, i64 376
  %62 = load float, ptr %61, align 4, !tbaa !18
  %.sroa.gep74.2 = getelementptr inbounds i8, ptr %57, i64 76
  store float %62, ptr %.sroa.gep74.2, align 4, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %10, i64 408
  %64 = load float, ptr %63, align 4, !tbaa !18
  %.sroa.gep71.2 = getelementptr inbounds i8, ptr %57, i64 80
  store float %64, ptr %.sroa.gep71.2, align 4, !tbaa !25
  %65 = getelementptr inbounds i8, ptr %10, i64 392
  %66 = load float, ptr %65, align 4, !tbaa !18
  %.sroa.gep68.2 = getelementptr inbounds i8, ptr %57, i64 84
  store float %66, ptr %.sroa.gep68.2, align 4, !tbaa !26
  %67 = getelementptr inbounds i8, ptr %10, i64 600
  %68 = load float, ptr %67, align 4, !tbaa !18
  %.sroa.gep65.2 = getelementptr inbounds i8, ptr %57, i64 88
  store float %68, ptr %.sroa.gep65.2, align 4, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %10, i64 504
  %70 = load float, ptr %69, align 4, !tbaa !18
  %.sroa.gep62.2 = getelementptr inbounds i8, ptr %57, i64 124
  store float %70, ptr %.sroa.gep62.2, align 4, !tbaa !22
  %71 = getelementptr inbounds i8, ptr %10, i64 536
  %72 = load float, ptr %71, align 4, !tbaa !18
  %.sroa.gep59.2 = getelementptr inbounds i8, ptr %57, i64 128
  store float %72, ptr %.sroa.gep59.2, align 4, !tbaa !25
  %73 = getelementptr inbounds i8, ptr %10, i64 520
  %74 = load float, ptr %73, align 4, !tbaa !18
  %.sroa.gep56.2 = getelementptr inbounds i8, ptr %57, i64 132
  store float %74, ptr %.sroa.gep56.2, align 4, !tbaa !26
  %75 = getelementptr inbounds i8, ptr %10, i64 616
  %76 = load float, ptr %75, align 4, !tbaa !18
  %.sroa.gep54.2 = getelementptr inbounds i8, ptr %57, i64 136
  store float %76, ptr %.sroa.gep54.2, align 4, !tbaa !27
  br label %.cont.2

.cont.2:                                          ; preds = %.else.2, %.cont.1
  %77 = or disjoint i64 %11, 3
  %78 = getelementptr inbounds ptr, ptr %5, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = icmp eq ptr %79, null
  br i1 %80, label %.cont.3, label %.else.3

.else.3:                                          ; preds = %.cont.2
  %.sroa.gep77.3 = getelementptr inbounds i8, ptr %79, i64 44
  %81 = getelementptr inbounds i8, ptr %10, i64 204
  %82 = load float, ptr %81, align 4, !tbaa !18
  store float %82, ptr %.sroa.gep77.3, align 4, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %10, i64 380
  %84 = load float, ptr %83, align 4, !tbaa !18
  %.sroa.gep74.3 = getelementptr inbounds i8, ptr %79, i64 76
  store float %84, ptr %.sroa.gep74.3, align 4, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %10, i64 412
  %86 = load float, ptr %85, align 4, !tbaa !18
  %.sroa.gep71.3 = getelementptr inbounds i8, ptr %79, i64 80
  store float %86, ptr %.sroa.gep71.3, align 4, !tbaa !25
  %87 = getelementptr inbounds i8, ptr %10, i64 396
  %88 = load float, ptr %87, align 4, !tbaa !18
  %.sroa.gep68.3 = getelementptr inbounds i8, ptr %79, i64 84
  store float %88, ptr %.sroa.gep68.3, align 4, !tbaa !26
  %89 = getelementptr inbounds i8, ptr %10, i64 604
  %90 = load float, ptr %89, align 4, !tbaa !18
  %.sroa.gep65.3 = getelementptr inbounds i8, ptr %79, i64 88
  store float %90, ptr %.sroa.gep65.3, align 4, !tbaa !27
  %91 = getelementptr inbounds i8, ptr %10, i64 508
  %92 = load float, ptr %91, align 4, !tbaa !18
  %.sroa.gep62.3 = getelementptr inbounds i8, ptr %79, i64 124
  store float %92, ptr %.sroa.gep62.3, align 4, !tbaa !22
  %93 = getelementptr inbounds i8, ptr %10, i64 540
  %94 = load float, ptr %93, align 4, !tbaa !18
  %.sroa.gep59.3 = getelementptr inbounds i8, ptr %79, i64 128
  store float %94, ptr %.sroa.gep59.3, align 4, !tbaa !25
  %95 = getelementptr inbounds i8, ptr %10, i64 524
  %96 = load float, ptr %95, align 4, !tbaa !18
  %.sroa.gep56.3 = getelementptr inbounds i8, ptr %79, i64 132
  store float %96, ptr %.sroa.gep56.3, align 4, !tbaa !26
  %97 = getelementptr inbounds i8, ptr %10, i64 620
  %98 = load float, ptr %97, align 4, !tbaa !18
  %.sroa.gep54.3 = getelementptr inbounds i8, ptr %79, i64 136
  store float %98, ptr %.sroa.gep54.3, align 4, !tbaa !27
  br label %.cont.3

.cont.3:                                          ; preds = %.else.3, %.cont.2
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !28
}

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 136}
!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 = !{!6, !12, i64 144}
!17 = !{!12, !12, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 8}
!20 = !{!"b2Manifold", !21, i64 0, !7, i64 8, !8, i64 12, !10, i64 108}
!21 = !{!"b2Vec2", !7, i64 0, !7, i64 4}
!22 = !{!23, !7, i64 28}
!23 = !{!"b2ManifoldPoint", !21, i64 0, !21, i64 8, !21, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !24, i64 44, !14, i64 46}
!24 = !{!"short", !8, i64 0}
!25 = !{!23, !7, i64 32}
!26 = !{!23, !7, i64 36}
!27 = !{!23, !7, i64 40}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass