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

; 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 @_ZN6b2Rope15ApplyBendForcesEf(ptr noundef nonnull align 8 dereferenceable(128) %0, float noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.b2Vec2, align 4
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca %struct.b2Vec2, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca %struct.b2Vec2, align 4
  %37 = alloca %struct.b2Vec2, align 4
  %38 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %39 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %40 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 12
  %41 = getelementptr inbounds %struct.b2RopeTuning, ptr %40, i32 0, i32 7
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = fmul float 0x401921FB60000000, %42
  store float %43, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !19
  br label %44

44:                                               ; preds = %246, %2
  %45 = load i32, ptr %6, align 4, !tbaa !19
  %46 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 3
  %47 = load i32, ptr %46, align 8, !tbaa !20
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %51 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = load i32, ptr %6, align 4, !tbaa !19
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %struct.b2RopeBend, ptr %52, i64 %54
  store ptr %55, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %56 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.b2RopeBend, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.b2Vec2, ptr %57, i64 %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %63 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 7
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2RopeBend, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !26
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %struct.b2Vec2, ptr %64, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %69, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %70 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 7
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.b2RopeBend, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 4, !tbaa !27
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.b2Vec2, ptr %71, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %76, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %77 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.b2RopeBend, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !23
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.b2Vec2, ptr %78, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %83, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %84 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.b2RopeBend, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !26
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.b2Vec2, ptr %85, i64 %89
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %90, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %91 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.b2RopeBend, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 4, !tbaa !27
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.b2Vec2, ptr %92, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %97, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %98 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %98, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %99 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %99, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %100 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 12
  %101 = getelementptr inbounds %struct.b2RopeTuning, ptr %100, i32 0, i32 9
  %102 = load i8, ptr %101, align 4, !tbaa !29, !range !30, !noundef !31
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %119

104:                                              ; preds = %50
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.b2RopeBend, ptr %105, i32 0, i32 8
  %107 = load float, ptr %106, align 4, !tbaa !32
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.b2RopeBend, ptr %108, i32 0, i32 8
  %110 = load float, ptr %109, align 4, !tbaa !32
  %111 = fmul float %107, %110
  store float %111, ptr %17, align 4, !tbaa !9
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.b2RopeBend, ptr %112, i32 0, i32 9
  %114 = load float, ptr %113, align 4, !tbaa !33
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.b2RopeBend, ptr %115, i32 0, i32 9
  %117 = load float, ptr %116, align 4, !tbaa !33
  %118 = fmul float %114, %117
  store float %118, ptr %18, align 4, !tbaa !9
  br label %122

119:                                              ; preds = %50
  %120 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store float %120, ptr %17, align 4, !tbaa !9
  %121 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %121, ptr %18, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %119, %104
  %123 = load float, ptr %17, align 4, !tbaa !9
  %124 = load float, ptr %18, align 4, !tbaa !9
  %125 = fmul float %123, %124
  %126 = fcmp oeq float %125, 0.000000e+00
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store i32 4, ptr %7, align 4
  br label %243

128:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %129 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %129, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %130 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %130, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %131 = load float, ptr %19, align 4, !tbaa !9
  %132 = load float, ptr %20, align 4, !tbaa !9
  %133 = call float @atan2f(float noundef %131, float noundef %132) #8
  store float %133, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %134 = load float, ptr %17, align 4, !tbaa !9
  %135 = fdiv float -1.000000e+00, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %136 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %136, ptr %23, align 4
  %137 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %135, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %137, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %138 = load float, ptr %18, align 4, !tbaa !9
  %139 = fdiv float 1.000000e+00, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %140 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %140, ptr %25, align 4
  %141 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %139, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %141, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %142 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %22)
  store <2 x float> %142, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %143 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %143, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %144 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 12
  %145 = getelementptr inbounds %struct.b2RopeTuning, ptr %144, i32 0, i32 10
  %146 = load i8, ptr %145, align 1, !tbaa !34, !range !30, !noundef !31
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %152

148:                                              ; preds = %128
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.b2RopeBend, ptr %149, i32 0, i32 6
  %151 = load float, ptr %150, align 4, !tbaa !35
  store float %151, ptr %29, align 4, !tbaa !9
  br label %168

152:                                              ; preds = %128
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.b2RopeBend, ptr %153, i32 0, i32 3
  %155 = load float, ptr %154, align 4, !tbaa !36
  %156 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.b2RopeBend, ptr %157, i32 0, i32 4
  %159 = load float, ptr %158, align 4, !tbaa !37
  %160 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %161 = fmul float %159, %160
  %162 = call float @llvm.fmuladd.f32(float %155, float %156, float %161)
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.b2RopeBend, ptr %163, i32 0, i32 5
  %165 = load float, ptr %164, align 4, !tbaa !38
  %166 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %167 = call float @llvm.fmuladd.f32(float %165, float %166, float %162)
  store float %167, ptr %29, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %152, %148
  %169 = load float, ptr %29, align 4, !tbaa !9
  %170 = fcmp oeq float %169, 0.000000e+00
  br i1 %170, label %171, label %172

171:                                              ; preds = %168
  store i32 4, ptr %7, align 4
  br label %242

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %173 = load float, ptr %29, align 4, !tbaa !9
  %174 = fdiv float 1.000000e+00, %173
  store float %174, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %175 = load float, ptr %30, align 4, !tbaa !9
  %176 = load float, ptr %5, align 4, !tbaa !9
  %177 = fmul float %175, %176
  %178 = load float, ptr %5, align 4, !tbaa !9
  %179 = fmul float %177, %178
  store float %179, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %180 = load float, ptr %30, align 4, !tbaa !9
  %181 = fmul float 2.000000e+00, %180
  %182 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 12
  %183 = getelementptr inbounds %struct.b2RopeTuning, ptr %182, i32 0, i32 8
  %184 = load float, ptr %183, align 8, !tbaa !39
  %185 = fmul float %181, %184
  %186 = load float, ptr %5, align 4, !tbaa !9
  %187 = fmul float %185, %186
  store float %187, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %188 = load float, ptr %21, align 4, !tbaa !9
  store float %188, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %189 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %190 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %191 = fadd float %189, %190
  %192 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %193 = fadd float %191, %192
  store float %193, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %194 = load float, ptr %4, align 4, !tbaa !9
  %195 = fneg float %194
  %196 = load float, ptr %31, align 4, !tbaa !9
  %197 = load float, ptr %33, align 4, !tbaa !9
  %198 = load float, ptr %32, align 4, !tbaa !9
  %199 = load float, ptr %34, align 4, !tbaa !9
  %200 = fmul float %198, %199
  %201 = call float @llvm.fmuladd.f32(float %196, float %197, float %200)
  %202 = fmul float %195, %201
  store float %202, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.b2RopeBend, ptr %203, i32 0, i32 3
  %205 = load float, ptr %204, align 4, !tbaa !36
  %206 = load float, ptr %35, align 4, !tbaa !9
  %207 = fmul float %205, %206
  %208 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %207, ptr noundef nonnull align 4 dereferenceable(8) %26)
  store <2 x float> %208, ptr %36, align 4
  %209 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %210 = load ptr, ptr %209, align 8, !tbaa !28
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.b2RopeBend, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 4, !tbaa !23
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.b2Vec2, ptr %210, i64 %214
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %215, ptr noundef nonnull align 4 dereferenceable(8) %36)
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.b2RopeBend, ptr %216, i32 0, i32 4
  %218 = load float, ptr %217, align 4, !tbaa !37
  %219 = load float, ptr %35, align 4, !tbaa !9
  %220 = fmul float %218, %219
  %221 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %220, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %221, ptr %37, align 4
  %222 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %223 = load ptr, ptr %222, align 8, !tbaa !28
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.b2RopeBend, ptr %224, i32 0, i32 1
  %226 = load i32, ptr %225, align 4, !tbaa !26
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds %struct.b2Vec2, ptr %223, i64 %227
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %228, ptr noundef nonnull align 4 dereferenceable(8) %37)
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.b2RopeBend, ptr %229, i32 0, i32 5
  %231 = load float, ptr %230, align 4, !tbaa !38
  %232 = load float, ptr %35, align 4, !tbaa !9
  %233 = fmul float %231, %232
  %234 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %233, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %234, ptr %38, align 4
  %235 = getelementptr inbounds %class.b2Rope, ptr %39, i32 0, i32 9
  %236 = load ptr, ptr %235, align 8, !tbaa !28
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.b2RopeBend, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 4, !tbaa !27
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %struct.b2Vec2, ptr %236, i64 %240
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %241, ptr noundef nonnull align 4 dereferenceable(8) %38)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  store i32 0, ptr %7, align 4
  br label %242

242:                                              ; preds = %172, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %243

243:                                              ; preds = %242, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, 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
  %244 = load i32, ptr %7, align 4
  switch i32 %244, label %250 [
    i32 0, label %245
    i32 4, label %246
  ]

245:                                              ; preds = %243
  br label %246

246:                                              ; preds = %245, %243
  %247 = load i32, ptr %6, align 4, !tbaa !19
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %6, align 4, !tbaa !19
  br label %44, !llvm.loop !40

249:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  ret void

250:                                              ; preds = %243
  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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 116}
!12 = !{!"_ZTS6b2Rope", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !15, i64 88}
!13 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS12b2RopeTuning", !16, i64 0, !17, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !18, i64 36, !18, i64 37, !18, i64 38}
!16 = !{!"_ZTS17b2StretchingModel", !7, i64 0}
!17 = !{!"_ZTS14b2BendingModel", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!14, !14, i64 0}
!20 = !{!12, !14, i64 16}
!21 = !{!12, !6, i64 32}
!22 = !{!12, !6, i64 48}
!23 = !{!24, !14, i64 0}
!24 = !{!"_ZTS10b2RopeBend", !14, i64 0, !14, i64 4, !14, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!25 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!26 = !{!24, !14, i64 4}
!27 = !{!24, !14, i64 8}
!28 = !{!12, !6, i64 64}
!29 = !{!12, !18, i64 124}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!24, !10, i64 32}
!33 = !{!24, !10, i64 36}
!34 = !{!12, !18, i64 125}
!35 = !{!24, !10, i64 24}
!36 = !{!24, !10, i64 12}
!37 = !{!24, !10, i64 16}
!38 = !{!24, !10, i64 20}
!39 = !{!12, !10, i64 120}
!40 = distinct !{!40, !41}
!41 = !{!"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 @_ZN6b2Rope15ApplyBendForcesEf(ptr nocapture noundef nonnull readonly align 8 dereferenceable(128) %0, float noundef %1) local_unnamed_addr #3 align 2 {
  %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 = alloca %struct.b2Vec2, align 8
  %18 = alloca %struct.b2Vec2, align 8
  %19 = alloca %struct.b2Vec2, align 8
  %20 = alloca %struct.b2Vec2, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 116
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = fmul float %22, 0x401921FB60000000
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !17
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  %29 = getelementptr inbounds i8, ptr %0, i64 64
  %30 = getelementptr inbounds i8, ptr %0, i64 124
  %31 = getelementptr inbounds i8, ptr %0, i64 125
  %32 = getelementptr inbounds i8, ptr %0, i64 120
  %33 = fneg float %1
  br label %34

._crit_edge:                                      ; preds = %158, %2
  ret void

34:                                               ; preds = %.lr.ph, %158
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %158 ]
  %35 = load ptr, ptr %27, align 8, !tbaa !18
  %36 = getelementptr inbounds %struct.b2RopeBend, ptr %35, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %37 = load ptr, ptr %28, align 8, !tbaa !19
  %38 = load i32, ptr %36, align 4, !tbaa !20
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.b2Vec2, ptr %37, i64 %39
  %41 = load i64, ptr %40, align 4
  store i64 %41, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %42 = getelementptr inbounds i8, ptr %36, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !22
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds %struct.b2Vec2, ptr %37, i64 %44
  %46 = load i64, ptr %45, align 4
  store i64 %46, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %47 = getelementptr inbounds i8, ptr %36, i64 8
  %48 = load i32, ptr %47, align 4, !tbaa !23
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.b2Vec2, ptr %37, i64 %49
  %51 = load i64, ptr %50, align 4
  store i64 %51, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %52 = load ptr, ptr %29, align 8, !tbaa !24
  %53 = load i32, ptr %36, align 4, !tbaa !20
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %struct.b2Vec2, ptr %52, i64 %54
  %56 = load i64, ptr %55, align 4
  store i64 %56, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %57 = load i32, ptr %42, align 4, !tbaa !22
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.b2Vec2, ptr %52, i64 %58
  %60 = load i64, ptr %59, align 4
  store i64 %60, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %61 = load i32, ptr %47, align 4, !tbaa !23
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.b2Vec2, ptr %52, i64 %62
  %64 = load i64, ptr %63, align 4
  store i64 %64, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %65 = 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> %65, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %66 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %66, ptr %10, align 8
  %67 = load i8, ptr %30, align 4, !tbaa !25, !range !26, !noundef !27
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %69, label %73

69:                                               ; preds = %34
  %70 = getelementptr inbounds i8, ptr %36, i64 32
  %71 = load <2 x float>, ptr %70, align 4, !tbaa !28
  %72 = fmul <2 x float> %71, %71
  br label %78

73:                                               ; preds = %34
  %74 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %75 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %76 = insertelement <2 x float> poison, float %74, i64 0
  %77 = insertelement <2 x float> %76, float %75, i64 1
  br label %78

78:                                               ; preds = %73, %69
  %79 = phi <2 x float> [ %72, %69 ], [ %77, %73 ]
  %80 = extractelement <2 x float> %79, i64 0
  %81 = extractelement <2 x float> %79, i64 1
  %82 = fmul float %81, %80
  %83 = fcmp oeq float %82, 0.000000e+00
  br i1 %83, label %158, label %84

84:                                               ; preds = %78
  %85 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %86 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %87 = call float @atan2f(float noundef %85, float noundef %86) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %88 = fdiv float -1.000000e+00, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %89 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %89, ptr %12, align 8
  %90 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %88, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %90, ptr %11, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %91 = fdiv float 1.000000e+00, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %92 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %92, ptr %14, align 8
  %93 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %91, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %93, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %94 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %94, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %95 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %95, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %96 = load i64, ptr %13, align 8
  store i64 %96, ptr %17, align 8
  %97 = load i8, ptr %31, align 1, !tbaa !29, !range !26, !noundef !27
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %99, label %102

99:                                               ; preds = %84
  %100 = getelementptr inbounds i8, ptr %36, i64 24
  %101 = load float, ptr %100, align 4, !tbaa !30
  br label %115

102:                                              ; preds = %84
  %103 = getelementptr inbounds i8, ptr %36, i64 12
  %104 = load float, ptr %103, align 4, !tbaa !31
  %105 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %106 = getelementptr inbounds i8, ptr %36, i64 16
  %107 = load float, ptr %106, align 4, !tbaa !32
  %108 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %109 = fmul float %107, %108
  %110 = call float @llvm.fmuladd.f32(float %104, float %105, float %109)
  %111 = getelementptr inbounds i8, ptr %36, i64 20
  %112 = load float, ptr %111, align 4, !tbaa !33
  %113 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %114 = call float @llvm.fmuladd.f32(float %112, float %113, float %110)
  br label %115

115:                                              ; preds = %102, %99
  %.047 = phi float [ %101, %99 ], [ %114, %102 ]
  %116 = fcmp oeq float %.047, 0.000000e+00
  br i1 %116, label %157, label %117

117:                                              ; preds = %115
  %118 = fdiv float 1.000000e+00, %.047
  %119 = fmul float %23, %118
  %120 = fmul float %23, %119
  %121 = fmul float %118, 2.000000e+00
  %122 = load float, ptr %32, align 8, !tbaa !34
  %123 = fmul float %121, %122
  %124 = fmul float %23, %123
  %125 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %126 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %127 = fadd float %125, %126
  %128 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %129 = fadd float %127, %128
  %130 = fmul float %124, %129
  %131 = call float @llvm.fmuladd.f32(float %120, float %87, float %130)
  %132 = fmul float %131, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %133 = getelementptr inbounds i8, ptr %36, i64 12
  %134 = load float, ptr %133, align 4, !tbaa !31
  %135 = fmul float %134, %132
  %136 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %135, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %136, ptr %18, align 8
  %137 = load ptr, ptr %29, align 8, !tbaa !24
  %138 = load i32, ptr %36, align 4, !tbaa !20
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.b2Vec2, ptr %137, i64 %139
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %140, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %141 = getelementptr inbounds i8, ptr %36, i64 16
  %142 = load float, ptr %141, align 4, !tbaa !32
  %143 = fmul float %132, %142
  %144 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %143, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %144, ptr %19, align 8
  %145 = load ptr, ptr %29, align 8, !tbaa !24
  %146 = load i32, ptr %42, align 4, !tbaa !22
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %struct.b2Vec2, ptr %145, i64 %147
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %148, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %149 = getelementptr inbounds i8, ptr %36, i64 20
  %150 = load float, ptr %149, align 4, !tbaa !33
  %151 = fmul float %132, %150
  %152 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %151, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %152, ptr %20, align 8
  %153 = load ptr, ptr %29, align 8, !tbaa !24
  %154 = load i32, ptr %47, align 4, !tbaa !23
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %struct.b2Vec2, ptr %153, i64 %155
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %156, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %157

157:                                              ; preds = %115, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %158

158:                                              ; preds = %78, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  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
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %159 = load i32, ptr %24, align 8, !tbaa !17
  %160 = sext i32 %159 to i64
  %161 = icmp slt i64 %indvars.iv.next, %160
  br i1 %161, label %34, label %._crit_edge, !llvm.loop !35
}

; 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, !8, i64 116}
!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 = !{!6, !12, i64 64}
!25 = !{!6, !16, i64 124}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!8, !8, i64 0}
!29 = !{!6, !16, i64 125}
!30 = !{!21, !8, i64 24}
!31 = !{!21, !8, i64 12}
!32 = !{!21, !8, i64 16}
!33 = !{!21, !8, i64 20}
!34 = !{!6, !8, i64 120}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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