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

; 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 }
%struct.b2RopeStretch = type { i32, i32, float, float, float, float, float, float }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope5ResetERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.b2Vec2, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %13

13:                                               ; preds = %49, %2
  %14 = load i32, ptr %5, align 4, !tbaa !12
  %15 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp slt i32 %14, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %52

19:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 6
  %21 = load ptr, ptr %20, align 8, !tbaa !21
  %22 = load i32, ptr %5, align 4, !tbaa !12
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds %struct.b2Vec2, ptr %21, i64 %23
  %25 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 0
  %26 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %26, ptr %6, align 4
  %27 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 7
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = load i32, ptr %5, align 4, !tbaa !12
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds %struct.b2Vec2, ptr %28, i64 %30
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %32 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 6
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = load i32, ptr %5, align 4, !tbaa !12
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.b2Vec2, ptr %33, i64 %35
  %37 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 0
  %38 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %38, ptr %7, align 4
  %39 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 8
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = load i32, ptr %5, align 4, !tbaa !12
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %struct.b2Vec2, ptr %40, i64 %42
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %44 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 9
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %46 = load i32, ptr %5, align 4, !tbaa !12
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.b2Vec2, ptr %45, i64 %47
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %48)
  br label %49

49:                                               ; preds = %19
  %50 = load i32, ptr %5, align 4, !tbaa !12
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !12
  br label %13, !llvm.loop !25

52:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %53

53:                                               ; preds = %66, %52
  %54 = load i32, ptr %8, align 4, !tbaa !12
  %55 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 3
  %56 = load i32, ptr %55, align 8, !tbaa !27
  %57 = icmp slt i32 %54, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %69

59:                                               ; preds = %53
  %60 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 5
  %61 = load ptr, ptr %60, align 8, !tbaa !28
  %62 = load i32, ptr %8, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct.b2RopeBend, ptr %61, i64 %63
  %65 = getelementptr inbounds %struct.b2RopeBend, ptr %64, i32 0, i32 7
  store float 0.000000e+00, ptr %65, align 4, !tbaa !29
  br label %66

66:                                               ; preds = %59
  %67 = load i32, ptr %8, align 4, !tbaa !12
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !12
  br label %53, !llvm.loop !31

69:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %83, %69
  %71 = load i32, ptr %9, align 4, !tbaa !12
  %72 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !32
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %86

76:                                               ; preds = %70
  %77 = getelementptr inbounds %class.b2Rope, ptr %10, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !33
  %79 = load i32, ptr %9, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %struct.b2RopeStretch, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.b2RopeStretch, ptr %81, i32 0, i32 5
  store float 0.000000e+00, ptr %82, align 4, !tbaa !34
  br label %83

83:                                               ; preds = %76
  %84 = load i32, ptr %9, align 4, !tbaa !12
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !12
  br label %70, !llvm.loop !36

86:                                               ; preds = %75
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTS6b2Rope", !16, 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, !16, i64 80, !17, i64 88}
!16 = !{!"_ZTS6b2Vec2", !11, i64 0, !11, i64 4}
!17 = !{!"_ZTS12b2RopeTuning", !18, i64 0, !19, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !20, i64 36, !20, i64 37, !20, i64 38}
!18 = !{!"_ZTS17b2StretchingModel", !7, i64 0}
!19 = !{!"_ZTS14b2BendingModel", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!15, !6, i64 40}
!22 = !{!15, !6, i64 48}
!23 = !{!15, !6, i64 56}
!24 = !{!15, !6, i64 64}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!15, !13, i64 16}
!28 = !{!15, !6, i64 32}
!29 = !{!30, !11, i64 28}
!30 = !{!"_ZTS10b2RopeBend", !13, i64 0, !13, i64 4, !13, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!31 = distinct !{!31, !26}
!32 = !{!15, !13, i64 12}
!33 = !{!15, !6, i64 24}
!34 = !{!35, !11, i64 20}
!35 = !{!"_ZTS13b2RopeStretch", !13, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!36 = distinct !{!36, !26}


; 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 }
%struct.b2RopeStretch = type { i32, i32, float, float, float, float, float, float }

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

; 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 uwtable
define dso_local void @_ZN6b2Rope5ResetERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1) local_unnamed_addr #2 align 2 {
  %3 = load i64, ptr %1, align 4
  store i64 %3, ptr %0, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader17

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  br label %17

.preheader17:                                     ; preds = %17, %2
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !17
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph20, label %.preheader

.lr.ph20:                                         ; preds = %.preheader17
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !18
  %wide.trip.count = zext nneg i32 %12 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %16 = icmp ult i32 %12, 4
  br i1 %16, label %.preheader.loopexit.unr-lcssa, label %.lr.ph20.new

.lr.ph20.new:                                     ; preds = %.lr.ph20
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %40

17:                                               ; preds = %.lr.ph, %17
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %17 ]
  %18 = load ptr, ptr %7, align 8, !tbaa !19
  %19 = getelementptr inbounds %struct.b2Vec2, ptr %18, i64 %indvars.iv
  %20 = tail call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %21 = load ptr, ptr %8, align 8, !tbaa !20
  %22 = getelementptr inbounds %struct.b2Vec2, ptr %21, i64 %indvars.iv
  store <2 x float> %20, ptr %22, align 4
  %23 = load ptr, ptr %7, align 8, !tbaa !19
  %24 = getelementptr inbounds %struct.b2Vec2, ptr %23, i64 %indvars.iv
  %25 = tail call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %26 = load ptr, ptr %9, align 8, !tbaa !21
  %27 = getelementptr inbounds %struct.b2Vec2, ptr %26, i64 %indvars.iv
  store <2 x float> %25, ptr %27, align 4
  %28 = load ptr, ptr %10, align 8, !tbaa !22
  %29 = getelementptr inbounds %struct.b2Vec2, ptr %28, i64 %indvars.iv
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %29)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = load i32, ptr %4, align 8, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next, %31
  br i1 %32, label %17, label %.preheader17, !llvm.loop !23

.preheader.loopexit.unr-lcssa:                    ; preds = %40, %.lr.ph20
  %indvars.iv24.unr = phi i64 [ 0, %.lr.ph20 ], [ %indvars.iv.next25.3, %40 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv24.epil = phi i64 [ %indvars.iv.next25.epil, %.epil.preheader ], [ %indvars.iv24.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %33 = getelementptr inbounds %struct.b2RopeBend, ptr %15, i64 %indvars.iv24.epil, i32 7
  store float 0.000000e+00, ptr %33, align 4, !tbaa !25
  %indvars.iv.next25.epil = add nuw nsw i64 %indvars.iv24.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !27

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %.preheader17
  %34 = getelementptr inbounds i8, ptr %0, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !29
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph22, label %._crit_edge

.lr.ph22:                                         ; preds = %.preheader
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !30
  %wide.trip.count30 = zext nneg i32 %35 to i64
  %xtraiter33 = and i64 %wide.trip.count30, 3
  %39 = icmp ult i32 %35, 4
  br i1 %39, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph22.new

.lr.ph22.new:                                     ; preds = %.lr.ph22
  %unroll_iter36 = and i64 %wide.trip.count30, 2147483644
  br label %46

40:                                               ; preds = %40, %.lr.ph20.new
  %indvars.iv24 = phi i64 [ 0, %.lr.ph20.new ], [ %indvars.iv.next25.3, %40 ]
  %niter = phi i64 [ 0, %.lr.ph20.new ], [ %niter.next.3, %40 ]
  %41 = getelementptr inbounds %struct.b2RopeBend, ptr %15, i64 %indvars.iv24, i32 7
  store float 0.000000e+00, ptr %41, align 4, !tbaa !25
  %indvars.iv.next25 = or disjoint i64 %indvars.iv24, 1
  %42 = getelementptr inbounds %struct.b2RopeBend, ptr %15, i64 %indvars.iv.next25, i32 7
  store float 0.000000e+00, ptr %42, align 4, !tbaa !25
  %indvars.iv.next25.1 = or disjoint i64 %indvars.iv24, 2
  %43 = getelementptr inbounds %struct.b2RopeBend, ptr %15, i64 %indvars.iv.next25.1, i32 7
  store float 0.000000e+00, ptr %43, align 4, !tbaa !25
  %indvars.iv.next25.2 = or disjoint i64 %indvars.iv24, 3
  %44 = getelementptr inbounds %struct.b2RopeBend, ptr %15, i64 %indvars.iv.next25.2, i32 7
  store float 0.000000e+00, ptr %44, align 4, !tbaa !25
  %indvars.iv.next25.3 = add nuw nsw i64 %indvars.iv24, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %40, !llvm.loop !31

._crit_edge.loopexit.unr-lcssa:                   ; preds = %46, %.lr.ph22
  %indvars.iv27.unr = phi i64 [ 0, %.lr.ph22 ], [ %indvars.iv.next28.3, %46 ]
  %lcmp.mod35.not = icmp eq i64 %xtraiter33, 0
  br i1 %lcmp.mod35.not, label %._crit_edge, label %.epil.preheader32

.epil.preheader32:                                ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader32
  %indvars.iv27.epil = phi i64 [ %indvars.iv.next28.epil, %.epil.preheader32 ], [ %indvars.iv27.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter34 = phi i64 [ %epil.iter34.next, %.epil.preheader32 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %45 = getelementptr inbounds %struct.b2RopeStretch, ptr %38, i64 %indvars.iv27.epil, i32 5
  store float 0.000000e+00, ptr %45, align 4, !tbaa !32
  %indvars.iv.next28.epil = add nuw nsw i64 %indvars.iv27.epil, 1
  %epil.iter34.next = add i64 %epil.iter34, 1
  %epil.iter34.cmp.not = icmp eq i64 %epil.iter34.next, %xtraiter33
  br i1 %epil.iter34.cmp.not, label %._crit_edge, label %.epil.preheader32, !llvm.loop !34

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader32, %.preheader
  ret void

46:                                               ; preds = %46, %.lr.ph22.new
  %indvars.iv27 = phi i64 [ 0, %.lr.ph22.new ], [ %indvars.iv.next28.3, %46 ]
  %niter37 = phi i64 [ 0, %.lr.ph22.new ], [ %niter37.next.3, %46 ]
  %47 = getelementptr inbounds %struct.b2RopeStretch, ptr %38, i64 %indvars.iv27, i32 5
  store float 0.000000e+00, ptr %47, align 4, !tbaa !32
  %indvars.iv.next28 = or disjoint i64 %indvars.iv27, 1
  %48 = getelementptr inbounds %struct.b2RopeStretch, ptr %38, i64 %indvars.iv.next28, i32 5
  store float 0.000000e+00, ptr %48, align 4, !tbaa !32
  %indvars.iv.next28.1 = or disjoint i64 %indvars.iv27, 2
  %49 = getelementptr inbounds %struct.b2RopeStretch, ptr %38, i64 %indvars.iv.next28.1, i32 5
  store float 0.000000e+00, ptr %49, align 4, !tbaa !32
  %indvars.iv.next28.2 = or disjoint i64 %indvars.iv27, 3
  %50 = getelementptr inbounds %struct.b2RopeStretch, ptr %38, i64 %indvars.iv.next28.2, i32 5
  store float 0.000000e+00, ptr %50, align 4, !tbaa !32
  %indvars.iv.next28.3 = add nuw nsw i64 %indvars.iv27, 4
  %niter37.next.3 = add i64 %niter37, 4
  %niter37.ncmp.3 = icmp eq i64 %niter37.next.3, %unroll_iter36
  br i1 %niter37.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %46, !llvm.loop !35
}

attributes #0 = { 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 #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 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" }

!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, !11, i64 8}
!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 40}
!20 = !{!6, !12, i64 48}
!21 = !{!6, !12, i64 56}
!22 = !{!6, !12, i64 64}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !8, i64 28}
!26 = !{!"_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}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!29 = !{!6, !11, i64 12}
!30 = !{!6, !12, i64 24}
!31 = distinct !{!31, !24}
!32 = !{!33, !8, i64 20}
!33 = !{!"_ZTS13b2RopeStretch", !11, i64 0, !11, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !24}


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