; LLVM IR from erincatto/box2d-lite :: src/Arbiter.ll (ZN7Arbiter6UpdateEP7Contacti)

; 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.Contact = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, %union.FeaturePair }
%struct.Vec2 = type { float, float }
%union.FeaturePair = type { i32 }
%struct.Arbiter = type <{ [2 x %struct.Contact], i32, [4 x i8], ptr, ptr, float, [4 x i8] }>

@_ZN5World12warmStartingE = external global i8, align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ContactC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Arbiter6UpdateEP7Contacti(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef %1, i32 noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [2 x %struct.Contact], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #3
  %18 = getelementptr inbounds [2 x %struct.Contact], ptr %7, i32 0, i32 0
  %19 = getelementptr inbounds %struct.Contact, ptr %18, i64 2
  br label %20

20:                                               ; preds = %20, %3
  %21 = phi ptr [ %18, %3 ], [ %22, %20 ]
  call void @_ZN7ContactC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %21)
  %22 = getelementptr inbounds %struct.Contact, ptr %21, i64 1
  %23 = icmp eq ptr %22, %19
  br i1 %23, label %24, label %20

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %114, %24
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.Contact, ptr %31, i64 %33
  store ptr %34, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %60, %30
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = getelementptr inbounds %struct.Arbiter, ptr %17, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  store i32 5, ptr %9, align 4
  br label %63

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %42 = getelementptr inbounds %struct.Arbiter, ptr %17, i32 0, i32 0
  %43 = getelementptr inbounds [2 x %struct.Contact], ptr %42, i64 0, i64 0
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %struct.Contact, ptr %43, i64 %45
  store ptr %46, ptr %13, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Contact, ptr %47, i32 0, i32 11
  %49 = load i32, ptr %48, align 4, !tbaa !14
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.Contact, ptr %50, i32 0, i32 11
  %52 = load i32, ptr %51, align 4, !tbaa !14
  %53 = icmp eq i32 %49, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %41
  %55 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %55, ptr %11, align 4, !tbaa !9
  store i32 5, ptr %9, align 4
  br label %57

56:                                               ; preds = %41
  store i32 0, ptr %9, align 4
  br label %57

57:                                               ; preds = %56, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %58 = load i32, ptr %9, align 4
  switch i32 %58, label %63 [
    i32 0, label %59
  ]

59:                                               ; preds = %57
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %12, align 4, !tbaa !9
  br label %35, !llvm.loop !15

63:                                               ; preds = %57, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = icmp sgt i32 %65, -1
  br i1 %66, label %67, label %105

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %68 = getelementptr inbounds [2 x %struct.Contact], ptr %7, i64 0, i64 0
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %struct.Contact, ptr %68, i64 %70
  store ptr %71, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %72 = getelementptr inbounds %struct.Arbiter, ptr %17, i32 0, i32 0
  %73 = getelementptr inbounds [2 x %struct.Contact], ptr %72, i64 0, i64 0
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.Contact, ptr %73, i64 %75
  store ptr %76, ptr %15, align 8, !tbaa !5
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %77, i64 64, i1 false), !tbaa.struct !17
  %79 = load i8, ptr @_ZN5World12warmStartingE, align 1, !tbaa !19, !range !21, !noundef !22
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %97

81:                                               ; preds = %67
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Contact, ptr %82, i32 0, i32 5
  %84 = load float, ptr %83, align 4, !tbaa !23
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Contact, ptr %85, i32 0, i32 5
  store float %84, ptr %86, align 4, !tbaa !23
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Contact, ptr %87, i32 0, i32 6
  %89 = load float, ptr %88, align 4, !tbaa !26
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Contact, ptr %90, i32 0, i32 6
  store float %89, ptr %91, align 4, !tbaa !26
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Contact, ptr %92, i32 0, i32 7
  %94 = load float, ptr %93, align 4, !tbaa !27
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Contact, ptr %95, i32 0, i32 7
  store float %94, ptr %96, align 4, !tbaa !27
  br label %104

97:                                               ; preds = %67
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Contact, ptr %98, i32 0, i32 5
  store float 0.000000e+00, ptr %99, align 4, !tbaa !23
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Contact, ptr %100, i32 0, i32 6
  store float 0.000000e+00, ptr %101, align 4, !tbaa !26
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Contact, ptr %102, i32 0, i32 7
  store float 0.000000e+00, ptr %103, align 4, !tbaa !27
  br label %104

104:                                              ; preds = %97, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %113

105:                                              ; preds = %64
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds %struct.Contact, ptr %106, i64 %108
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x %struct.Contact], ptr %7, i64 0, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %112, ptr align 4 %109, i64 64, i1 false), !tbaa.struct !17
  br label %113

113:                                              ; preds = %105, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !9
  br label %25, !llvm.loop !28

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

118:                                              ; preds = %131, %117
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

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

123:                                              ; preds = %118
  %124 = load i32, ptr %16, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [2 x %struct.Contact], ptr %7, i64 0, i64 %125
  %127 = getelementptr inbounds %struct.Arbiter, ptr %17, i32 0, i32 0
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [2 x %struct.Contact], ptr %127, i64 0, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 16 %126, i64 64, i1 false), !tbaa.struct !17
  br label %131

131:                                              ; preds = %123
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %16, align 4, !tbaa !9
  br label %118, !llvm.loop !29

134:                                              ; preds = %122
  %135 = load i32, ptr %6, align 4, !tbaa !9
  %136 = getelementptr inbounds %struct.Arbiter, ptr %17, i32 0, i32 1
  store i32 %135, ptr %136, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #3
  ret void
}

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 128}
!12 = !{!"_ZTS7Arbiter", !7, i64 0, !10, i64 128, !6, i64 136, !6, i64 144, !13, i64 152}
!13 = !{!"float", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !18, i64 8, i64 4, !18, i64 12, i64 4, !18, i64 16, i64 4, !18, i64 20, i64 4, !18, i64 24, i64 4, !18, i64 28, i64 4, !18, i64 32, i64 4, !18, i64 36, i64 4, !18, i64 40, i64 4, !18, i64 44, i64 4, !18, i64 48, i64 4, !18, i64 52, i64 4, !18, i64 56, i64 4, !18, i64 60, i64 4, !14}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !13, i64 36}
!24 = !{!"_ZTS7Contact", !25, i64 0, !25, i64 8, !25, i64 16, !25, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !7, i64 60}
!25 = !{!"_ZTS4Vec2", !13, i64 0, !13, i64 4}
!26 = !{!24, !13, i64 40}
!27 = !{!24, !13, i64 44}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}


; 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.Contact = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, %union.FeaturePair }
%struct.Vec2 = type { float, float }
%union.FeaturePair = type { i32 }

@_ZN5World12warmStartingE = external local_unnamed_addr global i8, align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ContactC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Arbiter6UpdateEP7Contacti(ptr nocapture noundef nonnull align 8 dereferenceable(156) %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
.preheader41:
  %3 = alloca [2 x %struct.Contact], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #3
  call void @_ZN7ContactC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %3)
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 64
  call void @_ZN7ContactC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %.ptr.1)
  %4 = icmp sgt i32 %2, 0
  br i1 %4, label %.lr.ph46, label %._crit_edge

.lr.ph46:                                         ; preds = %.preheader41
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  %8 = load i8, ptr @_ZN5World12warmStartingE, align 1, !range !12
  %.fr56 = freeze i8 %8
  %9 = trunc i8 %.fr56 to i1
  %wide.trip.count74 = zext nneg i32 %2 to i64
  br i1 %9, label %.lr.ph46.split.us.preheader, label %.lr.ph46.split

.lr.ph46.split.us.preheader:                      ; preds = %.lr.ph46
  %wide.trip.count69 = zext nneg i32 %6 to i64
  br label %.lr.ph46.split.us

.lr.ph46.split.us:                                ; preds = %.lr.ph46.split.us.preheader, %25
  %indvars.iv71 = phi i64 [ 0, %.lr.ph46.split.us.preheader ], [ %indvars.iv.next72, %25 ]
  %10 = getelementptr inbounds %struct.Contact, ptr %1, i64 %indvars.iv71
  br i1 %7, label %.lr.ph.us, label %._crit_edge.us.thread

11:                                               ; preds = %.lr.ph.us, %14
  %indvars.iv66 = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next67, %14 ]
  %12 = getelementptr inbounds %struct.Contact, ptr %0, i64 %indvars.iv66, i32 11
  %13 = load i32, ptr %12, align 4, !tbaa !13
  %.not.us = icmp eq i32 %27, %13
  br i1 %.not.us, label %._crit_edge.us, label %14

14:                                               ; preds = %11
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %._crit_edge.us.thread, label %11, !llvm.loop !14

._crit_edge.us.thread:                            ; preds = %14, %.lr.ph46.split.us
  %15 = getelementptr inbounds [2 x %struct.Contact], ptr %3, i64 0, i64 %indvars.iv71
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 4 dereferenceable(64) %10, i64 64, i1 false), !tbaa.struct !16
  br label %25

._crit_edge.us:                                   ; preds = %11
  %16 = getelementptr inbounds %struct.Contact, ptr %3, i64 %indvars.iv71
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(64) %10, i64 64, i1 false), !tbaa.struct !16
  %17 = and i64 %indvars.iv66, 4294967295
  %18 = getelementptr inbounds %struct.Contact, ptr %0, i64 %17
  %19 = getelementptr inbounds i8, ptr %18, i64 36
  %20 = getelementptr inbounds i8, ptr %16, i64 36
  %21 = load <2 x float>, ptr %19, align 4, !tbaa !17
  store <2 x float> %21, ptr %20, align 4, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %18, i64 44
  %23 = load float, ptr %22, align 4, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %16, i64 44
  store float %23, ptr %24, align 4, !tbaa !18
  br label %25

25:                                               ; preds = %._crit_edge.us, %._crit_edge.us.thread
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %.preheader, label %.lr.ph46.split.us, !llvm.loop !21

.lr.ph.us:                                        ; preds = %.lr.ph46.split.us
  %26 = getelementptr inbounds i8, ptr %10, i64 60
  %27 = load i32, ptr %26, align 4, !tbaa !13
  br label %11

.lr.ph46.split:                                   ; preds = %.lr.ph46
  br i1 %7, label %.lr.ph.us51.preheader, label %.preheader.thread

.preheader.thread:                                ; preds = %.lr.ph46.split
  %28 = shl nuw nsw i64 %wide.trip.count74, 6
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %3, ptr align 4 %1, i64 %28, i1 false)
  br label %.lr.ph.preheader

.lr.ph.us51.preheader:                            ; preds = %.lr.ph46.split
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %.lr.ph.us51

.lr.ph.us51:                                      ; preds = %.lr.ph.us51.preheader, %40
  %indvars.iv61 = phi i64 [ 0, %.lr.ph.us51.preheader ], [ %indvars.iv.next62, %40 ]
  %29 = getelementptr inbounds %struct.Contact, ptr %1, i64 %indvars.iv61
  %30 = getelementptr inbounds i8, ptr %29, i64 60
  %31 = load i32, ptr %30, align 4, !tbaa !13
  br label %32

32:                                               ; preds = %.lr.ph.us51, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph.us51 ], [ %indvars.iv.next, %35 ]
  %33 = getelementptr inbounds %struct.Contact, ptr %0, i64 %indvars.iv, i32 11
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %.not.us49 = icmp eq i32 %31, %34
  br i1 %.not.us49, label %._crit_edge.us52, label %35

35:                                               ; preds = %32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us52.thread, label %32, !llvm.loop !14

._crit_edge.us52.thread:                          ; preds = %35
  %36 = getelementptr inbounds [2 x %struct.Contact], ptr %3, i64 0, i64 %indvars.iv61
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %36, ptr noundef nonnull align 4 dereferenceable(64) %29, i64 64, i1 false), !tbaa.struct !16
  br label %40

._crit_edge.us52:                                 ; preds = %32
  %37 = getelementptr inbounds %struct.Contact, ptr %3, i64 %indvars.iv61
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %37, ptr noundef nonnull align 4 dereferenceable(64) %29, i64 64, i1 false), !tbaa.struct !16
  %38 = getelementptr inbounds i8, ptr %37, i64 36
  store <2 x float> zeroinitializer, ptr %38, align 4, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %37, i64 44
  store float 0.000000e+00, ptr %39, align 4, !tbaa !18
  br label %40

40:                                               ; preds = %._crit_edge.us52, %._crit_edge.us52.thread
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %wide.trip.count74
  br i1 %exitcond65.not, label %.preheader, label %.lr.ph.us51, !llvm.loop !21

.preheader:                                       ; preds = %40, %25
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader.thread, %.preheader
  %41 = zext nneg i32 %2 to i64
  %42 = shl nuw nsw i64 %41, 6
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %0, ptr nonnull align 16 %3, i64 %42, i1 false)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader41, %.lr.ph.preheader, %.preheader
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %2, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #3
  ret void
}

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !9, i64 128}
!6 = !{!"_ZTS7Arbiter", !7, i64 0, !9, i64 128, !10, i64 136, !10, i64 144, !11, i64 152}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 12, i64 4, !17, i64 16, i64 4, !17, i64 20, i64 4, !17, i64 24, i64 4, !17, i64 28, i64 4, !17, i64 32, i64 4, !17, i64 36, i64 4, !17, i64 40, i64 4, !17, i64 44, i64 4, !17, i64 48, i64 4, !17, i64 52, i64 4, !17, i64 56, i64 4, !17, i64 60, i64 4, !13}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 44}
!19 = !{!"_ZTS7Contact", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 60}
!20 = !{!"_ZTS4Vec2", !11, i64 0, !11, i64 4}
!21 = distinct !{!21, !15}


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