; LLVM IR from mtsamis/box2d-optimized :: src/rope/b2_rope.ll (ZN6b2Rope22SolveBend_PBD_TriangleEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }
%class.b2Rope = type { %struct.b2Vec2, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.b2Vec2, %struct.b2RopeTuning }
%struct.b2RopeTuning = type <{ i32, i32, float, float, float, float, float, float, float, i8, i8, i8, i8 }>
%struct.b2RopeBend = type { i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float }

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope22SolveBend_PBD_TriangleEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #5 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.b2Vec2, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca %struct.b2Vec2, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca %struct.b2Vec2, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %22 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 12
  %23 = getelementptr inbounds %struct.b2RopeTuning, ptr %22, i32 0, i32 6
  %24 = load float, ptr %23, align 8, !tbaa !9
  store float %24, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !19
  br label %25

25:                                               ; preds = %115, %1
  %26 = load i32, ptr %4, align 4, !tbaa !19
  %27 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 3
  %28 = load i32, ptr %27, align 8, !tbaa !20
  %29 = icmp slt i32 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %118

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %32 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = load i32, ptr %4, align 4, !tbaa !19
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.b2RopeBend, ptr %33, i64 %35
  store ptr %36, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %37 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.b2RopeBend, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !23
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %struct.b2Vec2, ptr %38, i64 %42
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %44 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.b2RopeBend, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !26
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.b2Vec2, ptr %45, i64 %49
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %51 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.b2RopeBend, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !27
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.b2Vec2, ptr %52, i64 %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.b2RopeBend, ptr %58, i32 0, i32 3
  %60 = load float, ptr %59, align 4, !tbaa !28
  store float %60, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.b2RopeBend, ptr %61, i32 0, i32 4
  %63 = load float, ptr %62, align 4, !tbaa !29
  store float %63, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.b2RopeBend, ptr %64, i32 0, i32 5
  %66 = load float, ptr %65, align 4, !tbaa !30
  store float %66, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %67 = load float, ptr %9, align 4, !tbaa !18
  %68 = load float, ptr %11, align 4, !tbaa !18
  %69 = fadd float %67, %68
  %70 = load float, ptr %10, align 4, !tbaa !18
  %71 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %70, float %69)
  store float %71, ptr %12, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %72 = load float, ptr %3, align 4, !tbaa !18
  %73 = load float, ptr %12, align 4, !tbaa !18
  %74 = fdiv float %72, %73
  store float %74, ptr %13, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %75 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %75, ptr %17, align 4
  %76 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %76, ptr %16, align 4
  %77 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 0x3FD5555560000000, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %77, ptr %15, align 4
  %78 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %78, ptr %14, align 4
  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.start.p0(i64 8, ptr %18) #6
  %79 = load float, ptr %9, align 4, !tbaa !18
  %80 = fmul float 2.000000e+00, %79
  %81 = load float, ptr %13, align 4, !tbaa !18
  %82 = fmul float %80, %81
  %83 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %82, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %83, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %84 = load float, ptr %10, align 4, !tbaa !18
  %85 = fmul float -4.000000e+00, %84
  %86 = load float, ptr %13, align 4, !tbaa !18
  %87 = fmul float %85, %86
  %88 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %87, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %88, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %89 = load float, ptr %11, align 4, !tbaa !18
  %90 = fmul float 2.000000e+00, %89
  %91 = load float, ptr %13, align 4, !tbaa !18
  %92 = fmul float %90, %91
  %93 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %92, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %93, ptr %20, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %20)
  %94 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.b2RopeBend, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !23
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct.b2Vec2, ptr %95, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !25
  %101 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.b2RopeBend, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !26
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.b2Vec2, ptr %102, i64 %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !25
  %108 = getelementptr inbounds %class.b2Rope, ptr %21, i32 0, i32 7
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.b2RopeBend, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !27
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.b2Vec2, ptr %109, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %114, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !25
  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 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %115

115:                                              ; preds = %31
  %116 = load i32, ptr %4, align 4, !tbaa !19
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %4, align 4, !tbaa !19
  br label %25, !llvm.loop !31

118:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !12, i64 112}
!10 = !{!"_ZTS6b2Rope", !11, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !14, i64 88}
!11 = !{!"_ZTS6b2Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS12b2RopeTuning", !15, i64 0, !16, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !17, i64 36, !17, i64 37, !17, i64 38}
!15 = !{!"_ZTS17b2StretchingModel", !7, i64 0}
!16 = !{!"_ZTS14b2BendingModel", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!10, !13, i64 16}
!21 = !{!10, !6, i64 32}
!22 = !{!10, !6, i64 48}
!23 = !{!24, !13, i64 0}
!24 = !{!"_ZTS10b2RopeBend", !13, i64 0, !13, i64 4, !13, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!25 = !{i64 0, i64 4, !18, i64 4, i64 4, !18}
!26 = !{!24, !13, i64 4}
!27 = !{!24, !13, i64 8}
!28 = !{!24, !12, i64 12}
!29 = !{!24, !12, i64 16}
!30 = !{!24, !12, i64 20}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }
%struct.b2RopeBend = type { i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope22SolveBend_PBD_TriangleEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(128) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca %struct.b2Vec2, align 8
  %3 = alloca %struct.b2Vec2, align 8
  %4 = alloca %struct.b2Vec2, align 8
  %5 = alloca %struct.b2Vec2, align 8
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  %13 = load float, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !17
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  br label %19

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

19:                                               ; preds = %.lr.ph, %19
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %19 ]
  %20 = load ptr, ptr %17, align 8, !tbaa !18
  %21 = getelementptr inbounds %struct.b2RopeBend, ptr %20, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %22 = load ptr, ptr %18, align 8, !tbaa !19
  %23 = load i32, ptr %21, align 4, !tbaa !20
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.b2Vec2, ptr %22, i64 %24
  %26 = load i64, ptr %25, align 4
  store i64 %26, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %27 = getelementptr inbounds i8, ptr %21, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !22
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.b2Vec2, ptr %22, i64 %29
  %31 = load i64, ptr %30, align 4
  store i64 %31, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %32 = getelementptr inbounds i8, ptr %21, i64 8
  %33 = load i32, ptr %32, align 4, !tbaa !23
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct.b2Vec2, ptr %22, i64 %34
  %36 = load i64, ptr %35, align 4
  store i64 %36, ptr %4, align 8
  %37 = getelementptr inbounds i8, ptr %21, i64 12
  %38 = load float, ptr %37, align 4, !tbaa !24
  %39 = getelementptr inbounds i8, ptr %21, i64 16
  %40 = load float, ptr %39, align 4, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %21, i64 20
  %42 = load float, ptr %41, align 4, !tbaa !26
  %43 = fadd float %38, %42
  %44 = call float @llvm.fmuladd.f32(float %40, float 2.000000e+00, float %43)
  %45 = fdiv float %13, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %46 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %46, ptr %8, align 8
  %47 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %47, ptr %7, align 8
  %48 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 0x3FD5555560000000, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %48, ptr %6, align 8
  %49 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %49, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %50 = fmul float %38, 2.000000e+00
  %51 = fmul float %50, %45
  %52 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %51, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %52, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %53 = fmul float %40, -4.000000e+00
  %54 = fmul float %53, %45
  %55 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %54, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %55, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %56 = fmul float %42, 2.000000e+00
  %57 = fmul float %56, %45
  %58 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %57, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %58, ptr %11, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %59 = load ptr, ptr %18, align 8, !tbaa !19
  %60 = load i32, ptr %21, align 4, !tbaa !20
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.b2Vec2, ptr %59, i64 %61
  %63 = load i64, ptr %2, align 8
  store i64 %63, ptr %62, align 4
  %64 = load ptr, ptr %18, align 8, !tbaa !19
  %65 = load i32, ptr %27, align 4, !tbaa !22
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.b2Vec2, ptr %64, i64 %66
  %68 = load i64, ptr %3, align 8
  store i64 %68, ptr %67, align 4
  %69 = load ptr, ptr %18, align 8, !tbaa !19
  %70 = load i32, ptr %32, align 4, !tbaa !23
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.b2Vec2, ptr %69, i64 %71
  %73 = load i64, ptr %4, align 8
  store i64 %73, ptr %72, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = load i32, ptr %14, align 8, !tbaa !17
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next, %75
  br i1 %76, label %19, label %._crit_edge, !llvm.loop !27
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !8, i64 112}
!6 = !{!"_ZTS6b2Rope", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !13, i64 88}
!7 = !{!"_ZTS6b2Vec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTS12b2RopeTuning", !14, i64 0, !15, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !16, i64 36, !16, i64 37, !16, i64 38}
!14 = !{!"_ZTS17b2StretchingModel", !9, i64 0}
!15 = !{!"_ZTS14b2BendingModel", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!6, !11, i64 16}
!18 = !{!6, !12, i64 32}
!19 = !{!6, !12, i64 48}
!20 = !{!21, !11, i64 0}
!21 = !{!"_ZTS10b2RopeBend", !11, i64 0, !11, i64 4, !11, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !8, i64 48, !8, i64 52}
!22 = !{!21, !11, i64 4}
!23 = !{!21, !11, i64 8}
!24 = !{!21, !8, i64 12}
!25 = !{!21, !8, i64 16}
!26 = !{!21, !8, i64 20}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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