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

; 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"

%class.b2Rope = type { %struct.b2Vec2, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.b2Vec2, %struct.b2RopeTuning }
%struct.b2Vec2 = type { float, float }
%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: 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6b2Rope9SetTuningERK12b2RopeTuning(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(39) %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %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 float, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 4 %20, i64 39, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %22 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 12
  %23 = getelementptr inbounds %struct.b2RopeTuning, ptr %22, i32 0, i32 7
  %24 = load float, ptr %23, align 4, !tbaa !18
  %25 = fmul float 0x401921FB60000000, %24
  store float %25, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !23
  br label %26

26:                                               ; preds = %120, %2
  %27 = load i32, ptr %6, align 4, !tbaa !23
  %28 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 3
  %29 = load i32, ptr %28, align 8, !tbaa !24
  %30 = icmp slt i32 %27, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %123

32:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 5
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  %35 = load i32, ptr %6, align 4, !tbaa !23
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %struct.b2RopeBend, ptr %34, i64 %36
  store ptr %37, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.b2RopeBend, ptr %38, i32 0, i32 8
  %40 = load float, ptr %39, align 4, !tbaa !26
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.b2RopeBend, ptr %41, i32 0, i32 8
  %43 = load float, ptr %42, align 4, !tbaa !26
  %44 = fmul float %40, %43
  store float %44, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.b2RopeBend, ptr %45, i32 0, i32 9
  %47 = load float, ptr %46, align 4, !tbaa !28
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.b2RopeBend, ptr %48, i32 0, i32 9
  %50 = load float, ptr %49, align 4, !tbaa !28
  %51 = fmul float %47, %50
  store float %51, ptr %10, align 4, !tbaa !14
  %52 = load float, ptr %9, align 4, !tbaa !14
  %53 = load float, ptr %10, align 4, !tbaa !14
  %54 = fmul float %52, %53
  %55 = fcmp oeq float %54, 0.000000e+00
  br i1 %55, label %56, label %61

56:                                               ; preds = %32
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.b2RopeBend, ptr %57, i32 0, i32 12
  store float 0.000000e+00, ptr %58, align 4, !tbaa !29
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b2RopeBend, ptr %59, i32 0, i32 13
  store float 0.000000e+00, ptr %60, align 4, !tbaa !30
  store i32 4, ptr %7, align 4
  br label %117

61:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.b2RopeBend, ptr %62, i32 0, i32 8
  %64 = load float, ptr %63, align 4, !tbaa !26
  %65 = fdiv float 1.000000e+00, %64
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.b2RopeBend, ptr %66, i32 0, i32 9
  %68 = load float, ptr %67, align 4, !tbaa !28
  %69 = fdiv float 1.000000e+00, %68
  %70 = fadd float %65, %69
  store float %70, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.b2RopeBend, ptr %71, i32 0, i32 3
  %73 = load float, ptr %72, align 4, !tbaa !31
  %74 = load float, ptr %9, align 4, !tbaa !14
  %75 = fdiv float %73, %74
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.b2RopeBend, ptr %76, i32 0, i32 4
  %78 = load float, ptr %77, align 4, !tbaa !32
  %79 = load float, ptr %11, align 4, !tbaa !14
  %80 = fmul float %78, %79
  %81 = load float, ptr %11, align 4, !tbaa !14
  %82 = call float @llvm.fmuladd.f32(float %80, float %81, float %75)
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.b2RopeBend, ptr %83, i32 0, i32 5
  %85 = load float, ptr %84, align 4, !tbaa !33
  %86 = load float, ptr %10, align 4, !tbaa !14
  %87 = fdiv float %85, %86
  %88 = fadd float %82, %87
  store float %88, ptr %12, align 4, !tbaa !14
  %89 = load float, ptr %12, align 4, !tbaa !14
  %90 = fcmp oeq float %89, 0.000000e+00
  br i1 %90, label %91, label %96

91:                                               ; preds = %61
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.b2RopeBend, ptr %92, i32 0, i32 12
  store float 0.000000e+00, ptr %93, align 4, !tbaa !29
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.b2RopeBend, ptr %94, i32 0, i32 13
  store float 0.000000e+00, ptr %95, align 4, !tbaa !30
  store i32 4, ptr %7, align 4
  br label %116

96:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %97 = load float, ptr %12, align 4, !tbaa !14
  %98 = fdiv float 1.000000e+00, %97
  store float %98, ptr %13, align 4, !tbaa !14
  %99 = load float, ptr %13, align 4, !tbaa !14
  %100 = load float, ptr %5, align 4, !tbaa !14
  %101 = fmul float %99, %100
  %102 = load float, ptr %5, align 4, !tbaa !14
  %103 = fmul float %101, %102
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.b2RopeBend, ptr %104, i32 0, i32 12
  store float %103, ptr %105, align 4, !tbaa !29
  %106 = load float, ptr %13, align 4, !tbaa !14
  %107 = fmul float 2.000000e+00, %106
  %108 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 12
  %109 = getelementptr inbounds %struct.b2RopeTuning, ptr %108, i32 0, i32 8
  %110 = load float, ptr %109, align 8, !tbaa !34
  %111 = fmul float %107, %110
  %112 = load float, ptr %5, align 4, !tbaa !14
  %113 = fmul float %111, %112
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.b2RopeBend, ptr %114, i32 0, i32 13
  store float %113, ptr %115, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  store i32 0, ptr %7, align 4
  br label %116

116:                                              ; preds = %96, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %117

117:                                              ; preds = %116, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %118 = load i32, ptr %7, align 4
  switch i32 %118, label %177 [
    i32 0, label %119
    i32 4, label %120
  ]

119:                                              ; preds = %117
  br label %120

120:                                              ; preds = %119, %117
  %121 = load i32, ptr %6, align 4, !tbaa !23
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %6, align 4, !tbaa !23
  br label %26, !llvm.loop !35

123:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %124 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 12
  %125 = getelementptr inbounds %struct.b2RopeTuning, ptr %124, i32 0, i32 4
  %126 = load float, ptr %125, align 8, !tbaa !37
  %127 = fmul float 0x401921FB60000000, %126
  store float %127, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !23
  br label %128

128:                                              ; preds = %173, %123
  %129 = load i32, ptr %15, align 4, !tbaa !23
  %130 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !38
  %132 = icmp slt i32 %129, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %176

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %135 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !39
  %137 = load i32, ptr %15, align 4, !tbaa !23
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %struct.b2RopeStretch, ptr %136, i64 %138
  store ptr %139, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.b2RopeStretch, ptr %140, i32 0, i32 2
  %142 = load float, ptr %141, align 4, !tbaa !40
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.b2RopeStretch, ptr %143, i32 0, i32 3
  %145 = load float, ptr %144, align 4, !tbaa !42
  %146 = fadd float %142, %145
  store float %146, ptr %17, align 4, !tbaa !14
  %147 = load float, ptr %17, align 4, !tbaa !14
  %148 = fcmp oeq float %147, 0.000000e+00
  br i1 %148, label %149, label %150

149:                                              ; preds = %134
  store i32 7, ptr %7, align 4
  br label %170

150:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %151 = load float, ptr %17, align 4, !tbaa !14
  %152 = fdiv float 1.000000e+00, %151
  store float %152, ptr %18, align 4, !tbaa !14
  %153 = load float, ptr %18, align 4, !tbaa !14
  %154 = load float, ptr %14, align 4, !tbaa !14
  %155 = fmul float %153, %154
  %156 = load float, ptr %14, align 4, !tbaa !14
  %157 = fmul float %155, %156
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.b2RopeStretch, ptr %158, i32 0, i32 6
  store float %157, ptr %159, align 4, !tbaa !43
  %160 = load float, ptr %18, align 4, !tbaa !14
  %161 = fmul float 2.000000e+00, %160
  %162 = getelementptr inbounds %class.b2Rope, ptr %19, i32 0, i32 12
  %163 = getelementptr inbounds %struct.b2RopeTuning, ptr %162, i32 0, i32 5
  %164 = load float, ptr %163, align 4, !tbaa !44
  %165 = fmul float %161, %164
  %166 = load float, ptr %14, align 4, !tbaa !14
  %167 = fmul float %165, %166
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.b2RopeStretch, ptr %168, i32 0, i32 7
  store float %167, ptr %169, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  store i32 0, ptr %7, align 4
  br label %170

170:                                              ; preds = %150, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %171 = load i32, ptr %7, align 4
  switch i32 %171, label %177 [
    i32 0, label %172
    i32 7, label %173
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %170
  %174 = load i32, ptr %15, align 4, !tbaa !23
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %15, align 4, !tbaa !23
  br label %128, !llvm.loop !46

176:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void

177:                                              ; preds = %170, %117
  unreachable
}

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


; 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.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 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN6b2Rope9SetTuningERK12b2RopeTuning(ptr nocapture noundef nonnull align 8 dereferenceable(128) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(39) %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(39) %3, ptr noundef nonnull align 4 dereferenceable(39) %1, i64 39, i1 false), !tbaa.struct !5
  %4 = getelementptr inbounds i8, ptr %0, i64 116
  %5 = load float, ptr %4, align 4, !tbaa !16
  %6 = fmul float %5, 0x401921FB60000000
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !22
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !23
  %12 = getelementptr inbounds i8, ptr %0, i64 120
  %13 = load float, ptr %12, align 8
  %wide.trip.count = zext nneg i32 %8 to i64
  br label %27

._crit_edge:                                      ; preds = %64, %2
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  %15 = load i32, ptr %14, align 4, !tbaa !24
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %._crit_edge
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  %18 = load float, ptr %17, align 8, !tbaa !25
  %19 = fmul float %18, 0x401921FB60000000
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !26
  %22 = getelementptr inbounds i8, ptr %0, i64 108
  %23 = load float, ptr %22, align 4
  %wide.trip.count58 = zext nneg i32 %15 to i64
  %24 = insertelement <2 x float> poison, float %19, i64 0
  %25 = insertelement <2 x float> %24, float %23, i64 1
  %26 = shufflevector <2 x float> %24, <2 x float> poison, <2 x i32> zeroinitializer
  br label %66

27:                                               ; preds = %.lr.ph, %64
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %64 ]
  %28 = getelementptr inbounds %struct.b2RopeBend, ptr %11, i64 %indvars.iv
  %29 = getelementptr inbounds i8, ptr %28, i64 32
  %30 = load <2 x float>, ptr %29, align 4, !tbaa !12
  %31 = fmul <2 x float> %30, %30
  %32 = extractelement <2 x float> %31, i64 0
  %33 = extractelement <2 x float> %31, i64 1
  %34 = fmul float %32, %33
  %35 = fcmp oeq float %34, 0.000000e+00
  br i1 %35, label %36, label %38

36:                                               ; preds = %27
  %37 = getelementptr inbounds i8, ptr %28, i64 48
  store float 0.000000e+00, ptr %37, align 4, !tbaa !27
  br label %64

38:                                               ; preds = %27
  %39 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %30
  %shift = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %40 = fadd <2 x float> %39, %shift
  %41 = extractelement <2 x float> %40, i64 0
  %42 = getelementptr inbounds i8, ptr %28, i64 12
  %43 = load float, ptr %42, align 4, !tbaa !29
  %44 = fdiv float %43, %32
  %45 = getelementptr inbounds i8, ptr %28, i64 16
  %46 = load float, ptr %45, align 4, !tbaa !30
  %47 = fmul float %41, %46
  %48 = tail call float @llvm.fmuladd.f32(float %47, float %41, float %44)
  %49 = getelementptr inbounds i8, ptr %28, i64 20
  %50 = load float, ptr %49, align 4, !tbaa !31
  %51 = fdiv float %50, %33
  %52 = fadd float %48, %51
  %53 = fcmp oeq float %52, 0.000000e+00
  br i1 %53, label %54, label %56

54:                                               ; preds = %38
  %55 = getelementptr inbounds i8, ptr %28, i64 48
  store float 0.000000e+00, ptr %55, align 4, !tbaa !27
  br label %64

56:                                               ; preds = %38
  %57 = fdiv float 1.000000e+00, %52
  %58 = fmul float %6, %57
  %59 = fmul float %6, %58
  %60 = getelementptr inbounds i8, ptr %28, i64 48
  store float %59, ptr %60, align 4, !tbaa !27
  %61 = fmul float %57, 2.000000e+00
  %62 = fmul float %61, %13
  %63 = fmul float %6, %62
  br label %64

64:                                               ; preds = %54, %56, %36
  %.sink = phi float [ 0.000000e+00, %54 ], [ %63, %56 ], [ 0.000000e+00, %36 ]
  %65 = getelementptr inbounds i8, ptr %28, i64 52
  store float %.sink, ptr %65, align 4, !tbaa !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, label %27, !llvm.loop !33

._crit_edge53:                                    ; preds = %82, %._crit_edge
  ret void

66:                                               ; preds = %.lr.ph52, %82
  %indvars.iv55 = phi i64 [ 0, %.lr.ph52 ], [ %indvars.iv.next56, %82 ]
  %67 = getelementptr inbounds %struct.b2RopeStretch, ptr %21, i64 %indvars.iv55
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load float, ptr %68, align 4, !tbaa !35
  %70 = getelementptr inbounds i8, ptr %67, i64 12
  %71 = load float, ptr %70, align 4, !tbaa !37
  %72 = fadd float %69, %71
  %73 = fcmp oeq float %72, 0.000000e+00
  br i1 %73, label %82, label %74

74:                                               ; preds = %66
  %75 = fdiv float 1.000000e+00, %72
  %76 = getelementptr inbounds i8, ptr %67, i64 24
  %77 = fmul float %75, 2.000000e+00
  %78 = insertelement <2 x float> poison, float %75, i64 0
  %79 = insertelement <2 x float> %78, float %77, i64 1
  %80 = fmul <2 x float> %25, %79
  %81 = fmul <2 x float> %26, %80
  store <2 x float> %81, ptr %76, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %66, %74
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next56, %wide.trip.count58
  br i1 %exitcond59.not, label %._crit_edge53, label %66, !llvm.loop !38
}

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


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