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

; 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: 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: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 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: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope19SolveBend_PBD_AngleEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca %struct.b2Vec2, align 4
  %9 = alloca %struct.b2Vec2, align 4
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, 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
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %29 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %30 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 12
  %31 = getelementptr inbounds %struct.b2RopeTuning, ptr %30, i32 0, i32 6
  %32 = load float, ptr %31, align 8, !tbaa !9
  store float %32, ptr %3, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !19
  br label %33

33:                                               ; preds = %192, %1
  %34 = load i32, ptr %4, align 4, !tbaa !19
  %35 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 3
  %36 = load i32, ptr %35, align 8, !tbaa !20
  %37 = icmp slt i32 %34, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %195

39:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %40 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = load i32, ptr %4, align 4, !tbaa !19
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct.b2RopeBend, ptr %41, i64 %43
  store ptr %44, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %45 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.b2RopeBend, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !23
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %struct.b2Vec2, ptr %46, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %51, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %52 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.b2RopeBend, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !26
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %struct.b2Vec2, ptr %53, i64 %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %59 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %60 = load ptr, ptr %59, align 8, !tbaa !22
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.b2RopeBend, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !27
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.b2Vec2, ptr %60, i64 %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %65, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %66 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %66, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %67 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %67, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %68 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store float %68, ptr %12, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %69 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store float %69, ptr %13, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %70 = load float, ptr %12, align 4, !tbaa !18
  %71 = load float, ptr %13, align 4, !tbaa !18
  %72 = call float @atan2f(float noundef %70, float noundef %71) #8
  store float %72, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %73 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 12
  %74 = getelementptr inbounds %struct.b2RopeTuning, ptr %73, i32 0, i32 9
  %75 = load i8, ptr %74, align 4, !tbaa !28, !range !29, !noundef !30
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %92

77:                                               ; preds = %39
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.b2RopeBend, ptr %78, i32 0, i32 8
  %80 = load float, ptr %79, align 4, !tbaa !31
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.b2RopeBend, ptr %81, i32 0, i32 8
  %83 = load float, ptr %82, align 4, !tbaa !31
  %84 = fmul float %80, %83
  store float %84, ptr %15, align 4, !tbaa !18
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.b2RopeBend, ptr %85, i32 0, i32 9
  %87 = load float, ptr %86, align 4, !tbaa !32
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.b2RopeBend, ptr %88, i32 0, i32 9
  %90 = load float, ptr %89, align 4, !tbaa !32
  %91 = fmul float %87, %90
  store float %91, ptr %16, align 4, !tbaa !18
  br label %95

92:                                               ; preds = %39
  %93 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  store float %93, ptr %15, align 4, !tbaa !18
  %94 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  store float %94, ptr %16, align 4, !tbaa !18
  br label %95

95:                                               ; preds = %92, %77
  %96 = load float, ptr %15, align 4, !tbaa !18
  %97 = load float, ptr %16, align 4, !tbaa !18
  %98 = fmul float %96, %97
  %99 = fcmp oeq float %98, 0.000000e+00
  br i1 %99, label %100, label %101

100:                                              ; preds = %95
  store i32 4, ptr %5, align 4
  br label %189

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %102 = load float, ptr %15, align 4, !tbaa !18
  %103 = fdiv float -1.000000e+00, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %104 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %104, ptr %18, align 4
  %105 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %103, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %105, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %106 = load float, ptr %16, align 4, !tbaa !18
  %107 = fdiv float 1.000000e+00, %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %108 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %108, ptr %20, align 4
  %109 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %107, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %109, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %110 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %110, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %111 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %111, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %112 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 12
  %113 = getelementptr inbounds %struct.b2RopeTuning, ptr %112, i32 0, i32 10
  %114 = load i8, ptr %113, align 1, !tbaa !33, !range !29, !noundef !30
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %120

116:                                              ; preds = %101
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.b2RopeBend, ptr %117, i32 0, i32 6
  %119 = load float, ptr %118, align 4, !tbaa !34
  store float %119, ptr %24, align 4, !tbaa !18
  br label %136

120:                                              ; preds = %101
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.b2RopeBend, ptr %121, i32 0, i32 3
  %123 = load float, ptr %122, align 4, !tbaa !35
  %124 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %21)
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.b2RopeBend, ptr %125, i32 0, i32 4
  %127 = load float, ptr %126, align 4, !tbaa !36
  %128 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %129 = fmul float %127, %128
  %130 = call float @llvm.fmuladd.f32(float %123, float %124, float %129)
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.b2RopeBend, ptr %131, i32 0, i32 5
  %133 = load float, ptr %132, align 4, !tbaa !37
  %134 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %135 = call float @llvm.fmuladd.f32(float %133, float %134, float %130)
  store float %135, ptr %24, align 4, !tbaa !18
  br label %136

136:                                              ; preds = %120, %116
  %137 = load float, ptr %24, align 4, !tbaa !18
  %138 = fcmp oeq float %137, 0.000000e+00
  br i1 %138, label %139, label %143

139:                                              ; preds = %136
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.b2RopeBend, ptr %140, i32 0, i32 6
  %142 = load float, ptr %141, align 4, !tbaa !34
  store float %142, ptr %24, align 4, !tbaa !18
  br label %143

143:                                              ; preds = %139, %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %144 = load float, ptr %3, align 4, !tbaa !18
  %145 = fneg float %144
  %146 = load float, ptr %14, align 4, !tbaa !18
  %147 = fmul float %145, %146
  %148 = load float, ptr %24, align 4, !tbaa !18
  %149 = fdiv float %147, %148
  store float %149, ptr %25, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.b2RopeBend, ptr %150, i32 0, i32 3
  %152 = load float, ptr %151, align 4, !tbaa !35
  %153 = load float, ptr %25, align 4, !tbaa !18
  %154 = fmul float %152, %153
  %155 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %154, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %155, ptr %26, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.b2RopeBend, ptr %156, i32 0, i32 4
  %158 = load float, ptr %157, align 4, !tbaa !36
  %159 = load float, ptr %25, align 4, !tbaa !18
  %160 = fmul float %158, %159
  %161 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %160, ptr noundef nonnull align 4 dereferenceable(8) %22)
  store <2 x float> %161, ptr %27, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %27)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.b2RopeBend, ptr %162, i32 0, i32 5
  %164 = load float, ptr %163, align 4, !tbaa !37
  %165 = load float, ptr %25, align 4, !tbaa !18
  %166 = fmul float %164, %165
  %167 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %166, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %167, ptr %28, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  %168 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.b2RopeBend, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !23
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.b2Vec2, ptr %169, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %174, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !25
  %175 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %176 = load ptr, ptr %175, align 8, !tbaa !22
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.b2RopeBend, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !26
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %struct.b2Vec2, ptr %176, i64 %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !25
  %182 = getelementptr inbounds %class.b2Rope, ptr %29, i32 0, i32 7
  %183 = load ptr, ptr %182, align 8, !tbaa !22
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.b2RopeBend, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 4, !tbaa !27
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %struct.b2Vec2, ptr %183, i64 %187
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %188, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  store i32 0, ptr %5, align 4
  br label %189

189:                                              ; preds = %143, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %190 = load i32, ptr %5, align 4
  switch i32 %190, label %196 [
    i32 0, label %191
    i32 4, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load i32, ptr %4, align 4, !tbaa !19
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %4, align 4, !tbaa !19
  br label %33, !llvm.loop !38

195:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret void

196:                                              ; preds = %189
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

; Function Attrs: nounwind
declare float @atan2f(float noundef, float noundef) #7

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 = { 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 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind "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 #8 = { 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 = !{!10, !17, i64 124}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!24, !12, i64 32}
!32 = !{!24, !12, i64 36}
!33 = !{!10, !17, i64 125}
!34 = !{!24, !12, i64 24}
!35 = !{!24, !12, i64 12}
!36 = !{!24, !12, i64 16}
!37 = !{!24, !12, i64 20}
!38 = distinct !{!38, !39}
!39 = !{!"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: 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: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; 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 uwtable
declare dso_local <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope19SolveBend_PBD_AngleEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(128) %0) local_unnamed_addr #3 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 = alloca %struct.b2Vec2, align 8
  %13 = alloca %struct.b2Vec2, align 8
  %14 = alloca %struct.b2Vec2, align 8
  %15 = alloca %struct.b2Vec2, align 8
  %16 = alloca %struct.b2Vec2, align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 112
  %21 = load float, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = getelementptr inbounds i8, ptr %0, i64 124
  %25 = getelementptr inbounds i8, ptr %0, i64 125
  %26 = fneg float %21
  br label %27

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

27:                                               ; preds = %.lr.ph, %130
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %130 ]
  %28 = load ptr, ptr %22, align 8, !tbaa !18
  %29 = getelementptr inbounds %struct.b2RopeBend, ptr %28, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %30 = load ptr, ptr %23, align 8, !tbaa !19
  %31 = load i32, ptr %29, align 4, !tbaa !20
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %struct.b2Vec2, ptr %30, i64 %32
  %34 = load i64, ptr %33, align 4
  store i64 %34, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %35 = getelementptr inbounds i8, ptr %29, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !22
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds %struct.b2Vec2, ptr %30, i64 %37
  %39 = load i64, ptr %38, align 4
  store i64 %39, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %40 = getelementptr inbounds i8, ptr %29, i64 8
  %41 = load i32, ptr %40, align 4, !tbaa !23
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %struct.b2Vec2, ptr %30, i64 %42
  %44 = load i64, ptr %43, align 4
  store i64 %44, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %45 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %45, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %46 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %46, ptr %6, align 8
  %47 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %48 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %49 = call float @atan2f(float noundef %47, float noundef %48) #7
  %50 = load i8, ptr %24, align 4, !tbaa !24, !range !25, !noundef !26
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %52, label %56

52:                                               ; preds = %27
  %53 = getelementptr inbounds i8, ptr %29, i64 32
  %54 = load <2 x float>, ptr %53, align 4, !tbaa !27
  %55 = fmul <2 x float> %54, %54
  br label %61

56:                                               ; preds = %27
  %57 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %58 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %59 = insertelement <2 x float> poison, float %57, i64 0
  %60 = insertelement <2 x float> %59, float %58, i64 1
  br label %61

61:                                               ; preds = %56, %52
  %62 = phi <2 x float> [ %55, %52 ], [ %60, %56 ]
  %63 = extractelement <2 x float> %62, i64 0
  %64 = extractelement <2 x float> %62, i64 1
  %65 = fmul float %63, %64
  %66 = fcmp oeq float %65, 0.000000e+00
  br i1 %66, label %130, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %68 = fdiv float -1.000000e+00, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %69 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %69, ptr %8, align 8
  %70 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %68, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %70, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %71 = fdiv float 1.000000e+00, %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %72 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %72, ptr %10, align 8
  %73 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %71, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %73, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %74 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %74, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %75 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %75, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %76 = load i64, ptr %9, align 8
  store i64 %76, ptr %13, align 8
  %77 = load i8, ptr %25, align 1, !tbaa !28, !range !25, !noundef !26
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %82

79:                                               ; preds = %67
  %80 = getelementptr inbounds i8, ptr %29, i64 24
  %81 = load float, ptr %80, align 4, !tbaa !29
  br label %95

82:                                               ; preds = %67
  %83 = getelementptr inbounds i8, ptr %29, i64 12
  %84 = load float, ptr %83, align 4, !tbaa !30
  %85 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %86 = getelementptr inbounds i8, ptr %29, i64 16
  %87 = load float, ptr %86, align 4, !tbaa !31
  %88 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %89 = fmul float %87, %88
  %90 = call float @llvm.fmuladd.f32(float %84, float %85, float %89)
  %91 = getelementptr inbounds i8, ptr %29, i64 20
  %92 = load float, ptr %91, align 4, !tbaa !32
  %93 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %94 = call float @llvm.fmuladd.f32(float %92, float %93, float %90)
  br label %95

95:                                               ; preds = %82, %79
  %.034 = phi float [ %81, %79 ], [ %94, %82 ]
  %96 = fcmp oeq float %.034, 0.000000e+00
  br i1 %96, label %97, label %100

97:                                               ; preds = %95
  %98 = getelementptr inbounds i8, ptr %29, i64 24
  %99 = load float, ptr %98, align 4, !tbaa !29
  br label %100

100:                                              ; preds = %97, %95
  %.1 = phi float [ %99, %97 ], [ %.034, %95 ]
  %101 = fmul float %49, %26
  %102 = fdiv float %101, %.1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %103 = getelementptr inbounds i8, ptr %29, i64 12
  %104 = load float, ptr %103, align 4, !tbaa !30
  %105 = fmul float %102, %104
  %106 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %105, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %106, ptr %14, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %107 = getelementptr inbounds i8, ptr %29, i64 16
  %108 = load float, ptr %107, align 4, !tbaa !31
  %109 = fmul float %102, %108
  %110 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %109, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %110, ptr %15, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %111 = getelementptr inbounds i8, ptr %29, i64 20
  %112 = load float, ptr %111, align 4, !tbaa !32
  %113 = fmul float %102, %112
  %114 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %113, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %114, ptr %16, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %115 = load ptr, ptr %23, align 8, !tbaa !19
  %116 = load i32, ptr %29, align 4, !tbaa !20
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %struct.b2Vec2, ptr %115, i64 %117
  %119 = load i64, ptr %2, align 8
  store i64 %119, ptr %118, align 4
  %120 = load ptr, ptr %23, align 8, !tbaa !19
  %121 = load i32, ptr %35, align 4, !tbaa !22
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.b2Vec2, ptr %120, i64 %122
  %124 = load i64, ptr %3, align 8
  store i64 %124, ptr %123, align 4
  %125 = load ptr, ptr %23, align 8, !tbaa !19
  %126 = load i32, ptr %40, align 4, !tbaa !23
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.b2Vec2, ptr %125, i64 %127
  %129 = load i64, ptr %4, align 8
  store i64 %129, ptr %128, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %130

130:                                              ; preds = %61, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %131 = load i32, ptr %17, align 8, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next, %132
  br i1 %133, label %27, label %._crit_edge, !llvm.loop !33
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @atan2f(float noundef, float noundef) local_unnamed_addr #6

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { inlinehint 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "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 #7 = { 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, !11, i64 16}
!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, !8, i64 112}
!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 = !{!6, !16, i64 124}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!8, !8, i64 0}
!28 = !{!6, !16, i64 125}
!29 = !{!21, !8, i64 24}
!30 = !{!21, !8, i64 12}
!31 = !{!21, !8, i64 16}
!32 = !{!21, !8, i64 20}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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