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

; 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 }
%struct.b2RopeDef = type { %struct.b2Vec2, ptr, i32, ptr, %struct.b2Vec2, %struct.b2RopeTuning }
%struct.b2RopeTuning = type <{ i32, i32, float, float, float, float, float, float, float, i8, i8, i8, i8 }>
%class.b2Rope = type { %struct.b2Vec2, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.b2Vec2, %struct.b2RopeTuning }
%struct.b2RopeStretch = type { i32, i32, float, float, float, float, float, float }
%struct.b2RopeBend = type { i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN6b2Rope6CreateERK9b2RopeDef = external hidden unnamed_addr constant [39 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope6CreateERK9b2RopeDef(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.b2Vec2, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca %struct.b2Vec2, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca float, align 4
  %22 = alloca float, 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 %struct.b2Vec2, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.b2RopeDef, ptr %33, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !9
  %36 = icmp sge i32 %35, 3
  br i1 %36, label %37, label %38

37:                                               ; preds = %2
  br label %40

38:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__._ZN6b2Rope6CreateERK9b2RopeDef) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.b2RopeDef, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %42, i64 8, i1 false), !tbaa.struct !18
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.b2RopeDef, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  store i32 %46, ptr %47, align 8, !tbaa !20
  %48 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !20
  %50 = sext i32 %49 to i64
  %51 = mul i64 %50, 8
  %52 = trunc i64 %51 to i32
  %53 = call noundef ptr @_Z7b2Alloci(i32 noundef %52)
  %54 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 6
  store ptr %53, ptr %54, align 8, !tbaa !22
  %55 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !20
  %57 = sext i32 %56 to i64
  %58 = mul i64 %57, 8
  %59 = trunc i64 %58 to i32
  %60 = call noundef ptr @_Z7b2Alloci(i32 noundef %59)
  %61 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  store ptr %60, ptr %61, align 8, !tbaa !23
  %62 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !20
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 8
  %66 = trunc i64 %65 to i32
  %67 = call noundef ptr @_Z7b2Alloci(i32 noundef %66)
  %68 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 8
  store ptr %67, ptr %68, align 8, !tbaa !24
  %69 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !20
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 8
  %73 = trunc i64 %72 to i32
  %74 = call noundef ptr @_Z7b2Alloci(i32 noundef %73)
  %75 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 9
  store ptr %74, ptr %75, align 8, !tbaa !25
  %76 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !20
  %78 = sext i32 %77 to i64
  %79 = mul i64 %78, 4
  %80 = trunc i64 %79 to i32
  %81 = call noundef ptr @_Z7b2Alloci(i32 noundef %80)
  %82 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  store ptr %81, ptr %82, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 0, ptr %5, align 4, !tbaa !27
  br label %83

83:                                               ; preds = %156, %40
  %84 = load i32, ptr %5, align 4, !tbaa !27
  %85 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !20
  %87 = icmp slt i32 %84, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %159

89:                                               ; preds = %83
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.b2RopeDef, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = load i32, ptr %5, align 4, !tbaa !27
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.b2Vec2, ptr %92, i64 %94
  %96 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 6
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = load i32, ptr %5, align 4, !tbaa !27
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct.b2Vec2, ptr %97, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %95, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.b2RopeDef, ptr %101, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !28
  %104 = load i32, ptr %5, align 4, !tbaa !27
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.b2Vec2, ptr %103, i64 %105
  %107 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 0
  %108 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(8) %107)
  store <2 x float> %108, ptr %6, align 4
  %109 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !23
  %111 = load i32, ptr %5, align 4, !tbaa !27
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.b2Vec2, ptr %110, i64 %112
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.b2RopeDef, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = load i32, ptr %5, align 4, !tbaa !27
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %struct.b2Vec2, ptr %116, i64 %118
  %120 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 0
  %121 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %119, ptr noundef nonnull align 4 dereferenceable(8) %120)
  store <2 x float> %121, ptr %7, align 4
  %122 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 8
  %123 = load ptr, ptr %122, align 8, !tbaa !24
  %124 = load i32, ptr %5, align 4, !tbaa !27
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.b2Vec2, ptr %123, i64 %125
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  %127 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 9
  %128 = load ptr, ptr %127, align 8, !tbaa !25
  %129 = load i32, ptr %5, align 4, !tbaa !27
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.b2Vec2, ptr %128, i64 %130
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %131)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.b2RopeDef, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !29
  %135 = load i32, ptr %5, align 4, !tbaa !27
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %134, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !19
  store float %138, ptr %8, align 4, !tbaa !19
  %139 = load float, ptr %8, align 4, !tbaa !19
  %140 = fcmp ogt float %139, 0.000000e+00
  br i1 %140, label %141, label %149

141:                                              ; preds = %89
  %142 = load float, ptr %8, align 4, !tbaa !19
  %143 = fdiv float 1.000000e+00, %142
  %144 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %145 = load ptr, ptr %144, align 8, !tbaa !26
  %146 = load i32, ptr %5, align 4, !tbaa !27
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds float, ptr %145, i64 %147
  store float %143, ptr %148, align 4, !tbaa !19
  br label %155

149:                                              ; preds = %89
  %150 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %151 = load ptr, ptr %150, align 8, !tbaa !26
  %152 = load i32, ptr %5, align 4, !tbaa !27
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  store float 0.000000e+00, ptr %154, align 4, !tbaa !19
  br label %155

155:                                              ; preds = %149, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %5, align 4, !tbaa !27
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %5, align 4, !tbaa !27
  br label %83, !llvm.loop !30

159:                                              ; preds = %88
  %160 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !20
  %162 = sub nsw i32 %161, 1
  %163 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 2
  store i32 %162, ptr %163, align 4, !tbaa !32
  %164 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 1
  %165 = load i32, ptr %164, align 8, !tbaa !20
  %166 = sub nsw i32 %165, 2
  %167 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 3
  store i32 %166, ptr %167, align 8, !tbaa !33
  %168 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 2
  %169 = load i32, ptr %168, align 4, !tbaa !32
  %170 = sext i32 %169 to i64
  %171 = mul i64 %170, 32
  %172 = trunc i64 %171 to i32
  %173 = call noundef ptr @_Z7b2Alloci(i32 noundef %172)
  %174 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 4
  store ptr %173, ptr %174, align 8, !tbaa !34
  %175 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 3
  %176 = load i32, ptr %175, align 8, !tbaa !33
  %177 = sext i32 %176 to i64
  %178 = mul i64 %177, 56
  %179 = trunc i64 %178 to i32
  %180 = call noundef ptr @_Z7b2Alloci(i32 noundef %179)
  %181 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 5
  store ptr %180, ptr %181, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !27
  br label %182

182:                                              ; preds = %238, %159
  %183 = load i32, ptr %9, align 4, !tbaa !27
  %184 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 2
  %185 = load i32, ptr %184, align 4, !tbaa !32
  %186 = icmp slt i32 %183, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %241

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %189 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !34
  %191 = load i32, ptr %9, align 4, !tbaa !27
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct.b2RopeStretch, ptr %190, i64 %192
  store ptr %193, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %194 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %195 = load ptr, ptr %194, align 8, !tbaa !23
  %196 = load i32, ptr %9, align 4, !tbaa !27
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %struct.b2Vec2, ptr %195, i64 %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %198, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %199 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %200 = load ptr, ptr %199, align 8, !tbaa !23
  %201 = load i32, ptr %9, align 4, !tbaa !27
  %202 = add nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %struct.b2Vec2, ptr %200, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %204, i64 8, i1 false), !tbaa.struct !18
  %205 = load i32, ptr %9, align 4, !tbaa !27
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.b2RopeStretch, ptr %206, i32 0, i32 0
  store i32 %205, ptr %207, align 4, !tbaa !36
  %208 = load i32, ptr %9, align 4, !tbaa !27
  %209 = add nsw i32 %208, 1
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.b2RopeStretch, ptr %210, i32 0, i32 1
  store i32 %209, ptr %211, align 4, !tbaa !38
  %212 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.b2RopeStretch, ptr %213, i32 0, i32 4
  store float %212, ptr %214, align 4, !tbaa !39
  %215 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %216 = load ptr, ptr %215, align 8, !tbaa !26
  %217 = load i32, ptr %9, align 4, !tbaa !27
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds float, ptr %216, i64 %218
  %220 = load float, ptr %219, align 4, !tbaa !19
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.b2RopeStretch, ptr %221, i32 0, i32 2
  store float %220, ptr %222, align 4, !tbaa !40
  %223 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %224 = load ptr, ptr %223, align 8, !tbaa !26
  %225 = load i32, ptr %9, align 4, !tbaa !27
  %226 = add nsw i32 %225, 1
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds float, ptr %224, i64 %227
  %229 = load float, ptr %228, align 4, !tbaa !19
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.b2RopeStretch, ptr %230, i32 0, i32 3
  store float %229, ptr %231, align 4, !tbaa !41
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.b2RopeStretch, ptr %232, i32 0, i32 5
  store float 0.000000e+00, ptr %233, align 4, !tbaa !42
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.b2RopeStretch, ptr %234, i32 0, i32 7
  store float 0.000000e+00, ptr %235, align 4, !tbaa !43
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.b2RopeStretch, ptr %236, i32 0, i32 6
  store float 0.000000e+00, ptr %237, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %238

238:                                              ; preds = %188
  %239 = load i32, ptr %9, align 4, !tbaa !27
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %9, align 4, !tbaa !27
  br label %182, !llvm.loop !45

241:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !27
  br label %242

242:                                              ; preds = %375, %241
  %243 = load i32, ptr %13, align 4, !tbaa !27
  %244 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 3
  %245 = load i32, ptr %244, align 8, !tbaa !33
  %246 = icmp slt i32 %243, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %242
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %378

248:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %249 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 5
  %250 = load ptr, ptr %249, align 8, !tbaa !35
  %251 = load i32, ptr %13, align 4, !tbaa !27
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds %struct.b2RopeBend, ptr %250, i64 %252
  store ptr %253, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %254 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %255 = load ptr, ptr %254, align 8, !tbaa !23
  %256 = load i32, ptr %13, align 4, !tbaa !27
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds %struct.b2Vec2, ptr %255, i64 %257
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %258, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %259 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %260 = load ptr, ptr %259, align 8, !tbaa !23
  %261 = load i32, ptr %13, align 4, !tbaa !27
  %262 = add nsw i32 %261, 1
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.b2Vec2, ptr %260, i64 %263
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %264, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %265 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 7
  %266 = load ptr, ptr %265, align 8, !tbaa !23
  %267 = load i32, ptr %13, align 4, !tbaa !27
  %268 = add nsw i32 %267, 2
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.b2Vec2, ptr %266, i64 %269
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %270, i64 8, i1 false), !tbaa.struct !18
  %271 = load i32, ptr %13, align 4, !tbaa !27
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.b2RopeBend, ptr %272, i32 0, i32 0
  store i32 %271, ptr %273, align 4, !tbaa !46
  %274 = load i32, ptr %13, align 4, !tbaa !27
  %275 = add nsw i32 %274, 1
  %276 = load ptr, ptr %15, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.b2RopeBend, ptr %276, i32 0, i32 1
  store i32 %275, ptr %277, align 4, !tbaa !48
  %278 = load i32, ptr %13, align 4, !tbaa !27
  %279 = add nsw i32 %278, 2
  %280 = load ptr, ptr %15, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.b2RopeBend, ptr %280, i32 0, i32 2
  store i32 %279, ptr %281, align 4, !tbaa !49
  %282 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %283 = load ptr, ptr %282, align 8, !tbaa !26
  %284 = load i32, ptr %13, align 4, !tbaa !27
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds float, ptr %283, i64 %285
  %287 = load float, ptr %286, align 4, !tbaa !19
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.b2RopeBend, ptr %288, i32 0, i32 3
  store float %287, ptr %289, align 4, !tbaa !50
  %290 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %291 = load ptr, ptr %290, align 8, !tbaa !26
  %292 = load i32, ptr %13, align 4, !tbaa !27
  %293 = add nsw i32 %292, 1
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds float, ptr %291, i64 %294
  %296 = load float, ptr %295, align 4, !tbaa !19
  %297 = load ptr, ptr %15, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.b2RopeBend, ptr %297, i32 0, i32 4
  store float %296, ptr %298, align 4, !tbaa !51
  %299 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 10
  %300 = load ptr, ptr %299, align 8, !tbaa !26
  %301 = load i32, ptr %13, align 4, !tbaa !27
  %302 = add nsw i32 %301, 2
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds float, ptr %300, i64 %303
  %305 = load float, ptr %304, align 4, !tbaa !19
  %306 = load ptr, ptr %15, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.b2RopeBend, ptr %306, i32 0, i32 5
  store float %305, ptr %307, align 4, !tbaa !52
  %308 = load ptr, ptr %15, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.b2RopeBend, ptr %308, i32 0, i32 6
  store float 0.000000e+00, ptr %309, align 4, !tbaa !53
  %310 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %311 = load ptr, ptr %15, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.b2RopeBend, ptr %311, i32 0, i32 8
  store float %310, ptr %312, align 4, !tbaa !54
  %313 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %314 = load ptr, ptr %15, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.b2RopeBend, ptr %314, i32 0, i32 9
  store float %313, ptr %315, align 4, !tbaa !55
  %316 = load ptr, ptr %15, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.b2RopeBend, ptr %316, i32 0, i32 7
  store float 0.000000e+00, ptr %317, align 4, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %318 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %318, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %319 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %319, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  %320 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  store float %320, ptr %21, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %321 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %20)
  store float %321, ptr %22, align 4, !tbaa !19
  %322 = load float, ptr %21, align 4, !tbaa !19
  %323 = load float, ptr %22, align 4, !tbaa !19
  %324 = fmul float %322, %323
  %325 = fcmp oeq float %324, 0.000000e+00
  br i1 %325, label %326, label %327

326:                                              ; preds = %248
  store i32 10, ptr %14, align 4
  br label %372

327:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %328 = load float, ptr %21, align 4, !tbaa !19
  %329 = fdiv float -1.000000e+00, %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %330 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %330, ptr %24, align 4
  %331 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %329, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %331, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %332 = load float, ptr %22, align 4, !tbaa !19
  %333 = fdiv float 1.000000e+00, %332
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %334 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %334, ptr %26, align 4
  %335 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %333, ptr noundef nonnull align 4 dereferenceable(8) %26)
  store <2 x float> %335, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %336 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %336, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %337 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %337, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !18
  %338 = load ptr, ptr %15, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.b2RopeBend, ptr %338, i32 0, i32 3
  %340 = load float, ptr %339, align 4, !tbaa !50
  %341 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %342 = load ptr, ptr %15, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.b2RopeBend, ptr %342, i32 0, i32 4
  %344 = load float, ptr %343, align 4, !tbaa !51
  %345 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %346 = fmul float %344, %345
  %347 = call float @llvm.fmuladd.f32(float %340, float %341, float %346)
  %348 = load ptr, ptr %15, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.b2RopeBend, ptr %348, i32 0, i32 5
  %350 = load float, ptr %349, align 4, !tbaa !52
  %351 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %352 = call float @llvm.fmuladd.f32(float %350, float %351, float %347)
  %353 = load ptr, ptr %15, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.b2RopeBend, ptr %353, i32 0, i32 6
  store float %352, ptr %354, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %355 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %355, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  %356 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %30)
  store float %356, ptr %31, align 4, !tbaa !19
  %357 = load float, ptr %31, align 4, !tbaa !19
  %358 = fcmp oeq float %357, 0.000000e+00
  br i1 %358, label %359, label %360

359:                                              ; preds = %327
  store i32 10, ptr %14, align 4
  br label %371

360:                                              ; preds = %327
  %361 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %30)
  %362 = load float, ptr %31, align 4, !tbaa !19
  %363 = fdiv float %361, %362
  %364 = load ptr, ptr %15, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.b2RopeBend, ptr %364, i32 0, i32 10
  store float %363, ptr %365, align 4, !tbaa !57
  %366 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %30)
  %367 = load float, ptr %31, align 4, !tbaa !19
  %368 = fdiv float %366, %367
  %369 = load ptr, ptr %15, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.b2RopeBend, ptr %369, i32 0, i32 11
  store float %368, ptr %370, align 4, !tbaa !58
  store i32 0, ptr %14, align 4
  br label %371

371:                                              ; preds = %360, %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %372

372:                                              ; preds = %371, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  %373 = load i32, ptr %14, align 4
  switch i32 %373, label %384 [
    i32 0, label %374
    i32 10, label %375
  ]

374:                                              ; preds = %372
  br label %375

375:                                              ; preds = %374, %372
  %376 = load i32, ptr %13, align 4, !tbaa !27
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %13, align 4, !tbaa !27
  br label %242, !llvm.loop !59

378:                                              ; preds = %247
  %379 = load ptr, ptr %4, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.b2RopeDef, ptr %379, i32 0, i32 4
  %381 = getelementptr inbounds %class.b2Rope, ptr %32, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %381, ptr align 8 %380, i64 8, i1 false), !tbaa.struct !18
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.b2RopeDef, ptr %382, i32 0, i32 5
  call void @_ZN6b2Rope9SetTuningERK12b2RopeTuning(ptr noundef nonnull align 8 dereferenceable(128) %32, ptr noundef nonnull align 4 dereferenceable(39) %383)
  ret void

384:                                              ; preds = %372
  unreachable
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z7b2Alloci(i32 noundef) #4

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) #1 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)) #7

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !13, i64 16}
!10 = !{!"_ZTS9b2RopeDef", !11, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !11, i64 32, !14, i64 40}
!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 = !{i64 0, i64 4, !19, i64 4, i64 4, !19}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !13, i64 8}
!21 = !{!"_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}
!22 = !{!21, !6, i64 40}
!23 = !{!21, !6, i64 48}
!24 = !{!21, !6, i64 56}
!25 = !{!21, !6, i64 64}
!26 = !{!21, !6, i64 72}
!27 = !{!13, !13, i64 0}
!28 = !{!10, !6, i64 8}
!29 = !{!10, !6, i64 24}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!21, !13, i64 12}
!33 = !{!21, !13, i64 16}
!34 = !{!21, !6, i64 24}
!35 = !{!21, !6, i64 32}
!36 = !{!37, !13, i64 0}
!37 = !{!"_ZTS13b2RopeStretch", !13, i64 0, !13, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!38 = !{!37, !13, i64 4}
!39 = !{!37, !12, i64 16}
!40 = !{!37, !12, i64 8}
!41 = !{!37, !12, i64 12}
!42 = !{!37, !12, i64 20}
!43 = !{!37, !12, i64 28}
!44 = !{!37, !12, i64 24}
!45 = distinct !{!45, !31}
!46 = !{!47, !13, i64 0}
!47 = !{!"_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}
!48 = !{!47, !13, i64 4}
!49 = !{!47, !13, i64 8}
!50 = !{!47, !12, i64 12}
!51 = !{!47, !12, i64 16}
!52 = !{!47, !12, i64 20}
!53 = !{!47, !12, i64 24}
!54 = !{!47, !12, i64 32}
!55 = !{!47, !12, i64 36}
!56 = !{!47, !12, i64 28}
!57 = !{!47, !12, i64 40}
!58 = !{!47, !12, i64 44}
!59 = distinct !{!59, !31}


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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN6b2Rope6CreateERK9b2RopeDef = external hidden unnamed_addr constant [39 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6b2Rope6CreateERK9b2RopeDef(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #1 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 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !5
  %20 = icmp sgt i32 %19, 2
  br i1 %20, label %22, label %21

21:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6b2Rope6CreateERK9b2RopeDef) #8
  unreachable

22:                                               ; preds = %2
  %23 = load i64, ptr %1, align 8
  store i64 %23, ptr %0, align 8
  %24 = load i32, ptr %18, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %24, ptr %25, align 8, !tbaa !17
  %26 = shl i32 %24, 3
  %27 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %27, ptr %28, align 8, !tbaa !19
  %29 = load i32, ptr %25, align 8, !tbaa !17
  %30 = shl i32 %29, 3
  %31 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %31, ptr %32, align 8, !tbaa !20
  %33 = load i32, ptr %25, align 8, !tbaa !17
  %34 = shl i32 %33, 3
  %35 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %34)
  %36 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %35, ptr %36, align 8, !tbaa !21
  %37 = load i32, ptr %25, align 8, !tbaa !17
  %38 = shl i32 %37, 3
  %39 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %39, ptr %40, align 8, !tbaa !22
  %41 = load i32, ptr %25, align 8, !tbaa !17
  %42 = shl i32 %41, 2
  %43 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %43, ptr %44, align 8, !tbaa !23
  %45 = load i32, ptr %25, align 8, !tbaa !17
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %47 = getelementptr inbounds i8, ptr %1, i64 8
  %48 = getelementptr inbounds i8, ptr %1, i64 24
  br label %62

._crit_edge:                                      ; preds = %62, %22
  %.lcssa = phi i32 [ %45, %22 ], [ %87, %62 ]
  %49 = add nsw i32 %.lcssa, -1
  %50 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %49, ptr %50, align 4, !tbaa !24
  %51 = add nsw i32 %.lcssa, -2
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %51, ptr %52, align 8, !tbaa !25
  %53 = shl i32 %49, 5
  %54 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %53)
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %54, ptr %55, align 8, !tbaa !26
  %56 = load i32, ptr %52, align 8, !tbaa !25
  %57 = mul i32 %56, 56
  %58 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %57)
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %58, ptr %59, align 8, !tbaa !27
  %60 = load i32, ptr %50, align 4, !tbaa !24
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph84, label %.preheader

62:                                               ; preds = %.lr.ph, %62
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %62 ]
  %63 = load ptr, ptr %47, align 8, !tbaa !28
  %64 = getelementptr inbounds %struct.b2Vec2, ptr %63, i64 %indvars.iv
  %65 = load ptr, ptr %28, align 8, !tbaa !19
  %66 = getelementptr inbounds %struct.b2Vec2, ptr %65, i64 %indvars.iv
  %67 = load i64, ptr %64, align 4
  store i64 %67, ptr %66, align 4
  %68 = load ptr, ptr %47, align 8, !tbaa !28
  %69 = getelementptr inbounds %struct.b2Vec2, ptr %68, i64 %indvars.iv
  %70 = tail call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %71 = load ptr, ptr %32, align 8, !tbaa !20
  %72 = getelementptr inbounds %struct.b2Vec2, ptr %71, i64 %indvars.iv
  store <2 x float> %70, ptr %72, align 4
  %73 = load ptr, ptr %47, align 8, !tbaa !28
  %74 = getelementptr inbounds %struct.b2Vec2, ptr %73, i64 %indvars.iv
  %75 = tail call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %76 = load ptr, ptr %36, align 8, !tbaa !21
  %77 = getelementptr inbounds %struct.b2Vec2, ptr %76, i64 %indvars.iv
  store <2 x float> %75, ptr %77, align 4
  %78 = load ptr, ptr %40, align 8, !tbaa !22
  %79 = getelementptr inbounds %struct.b2Vec2, ptr %78, i64 %indvars.iv
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %79)
  %80 = load ptr, ptr %48, align 8, !tbaa !29
  %81 = getelementptr inbounds float, ptr %80, i64 %indvars.iv
  %82 = load float, ptr %81, align 4, !tbaa !30
  %83 = fcmp ogt float %82, 0.000000e+00
  %84 = fdiv float 1.000000e+00, %82
  %.sink = select i1 %83, float %84, float 0.000000e+00
  %85 = load ptr, ptr %44, align 8, !tbaa !23
  %86 = getelementptr inbounds float, ptr %85, i64 %indvars.iv
  store float %.sink, ptr %86, align 4, !tbaa !30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = load i32, ptr %25, align 8, !tbaa !17
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %62, label %._crit_edge, !llvm.loop !31

.preheader:                                       ; preds = %.lr.ph84, %._crit_edge
  %90 = load i32, ptr %52, align 8, !tbaa !25
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph86, label %._crit_edge87

.lr.ph84:                                         ; preds = %._crit_edge, %.lr.ph84
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %.lr.ph84 ], [ 0, %._crit_edge ]
  %92 = load ptr, ptr %55, align 8, !tbaa !26
  %93 = getelementptr inbounds %struct.b2RopeStretch, ptr %92, i64 %indvars.iv90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %94 = load ptr, ptr %32, align 8, !tbaa !20
  %95 = getelementptr inbounds %struct.b2Vec2, ptr %94, i64 %indvars.iv90
  %96 = load i64, ptr %95, align 4
  store i64 %96, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %97 = getelementptr inbounds %struct.b2Vec2, ptr %94, i64 %indvars.iv.next91
  %98 = load i64, ptr %97, align 4
  store i64 %98, ptr %4, align 8
  %99 = trunc nuw nsw i64 %indvars.iv90 to i32
  store i32 %99, ptr %93, align 4, !tbaa !33
  %100 = getelementptr inbounds i8, ptr %93, i64 4
  %101 = trunc nuw nsw i64 %indvars.iv.next91 to i32
  store i32 %101, ptr %100, align 4, !tbaa !35
  %102 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %103 = getelementptr inbounds i8, ptr %93, i64 16
  store float %102, ptr %103, align 4, !tbaa !36
  %104 = load ptr, ptr %44, align 8, !tbaa !23
  %105 = getelementptr inbounds float, ptr %104, i64 %indvars.iv90
  %106 = load float, ptr %105, align 4, !tbaa !30
  %107 = getelementptr inbounds i8, ptr %93, i64 8
  store float %106, ptr %107, align 4, !tbaa !37
  %108 = getelementptr inbounds float, ptr %104, i64 %indvars.iv.next91
  %109 = load float, ptr %108, align 4, !tbaa !30
  %110 = getelementptr inbounds i8, ptr %93, i64 12
  store float %109, ptr %110, align 4, !tbaa !38
  %111 = getelementptr inbounds i8, ptr %93, i64 20
  %112 = getelementptr inbounds i8, ptr %93, i64 28
  store float 0.000000e+00, ptr %112, align 4, !tbaa !39
  store <2 x float> zeroinitializer, ptr %111, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %113 = load i32, ptr %50, align 4, !tbaa !24
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next91, %114
  br i1 %115, label %.lr.ph84, label %.preheader, !llvm.loop !40

._crit_edge87:                                    ; preds = %187, %.preheader
  %116 = getelementptr inbounds i8, ptr %1, i64 32
  %117 = getelementptr inbounds i8, ptr %0, i64 80
  %118 = load i64, ptr %116, align 8
  store i64 %118, ptr %117, align 8
  %119 = getelementptr inbounds i8, ptr %1, i64 40
  call void @_ZN6b2Rope9SetTuningERK12b2RopeTuning(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(39) %119)
  ret void

.lr.ph86:                                         ; preds = %.preheader, %187
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %187 ], [ 0, %.preheader ]
  %120 = load ptr, ptr %59, align 8, !tbaa !27
  %121 = getelementptr inbounds %struct.b2RopeBend, ptr %120, i64 %indvars.iv93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %122 = load ptr, ptr %32, align 8, !tbaa !20
  %123 = getelementptr inbounds %struct.b2Vec2, ptr %122, i64 %indvars.iv93
  %124 = load i64, ptr %123, align 4
  store i64 %124, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %125 = getelementptr inbounds %struct.b2Vec2, ptr %122, i64 %indvars.iv.next94
  %126 = load i64, ptr %125, align 4
  store i64 %126, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %127 = add nuw nsw i64 %indvars.iv93, 2
  %128 = getelementptr inbounds %struct.b2Vec2, ptr %122, i64 %127
  %129 = load i64, ptr %128, align 4
  store i64 %129, ptr %7, align 8
  %130 = trunc nuw nsw i64 %indvars.iv93 to i32
  store i32 %130, ptr %121, align 4, !tbaa !41
  %131 = getelementptr inbounds i8, ptr %121, i64 4
  %132 = trunc nuw nsw i64 %indvars.iv.next94 to i32
  store i32 %132, ptr %131, align 4, !tbaa !43
  %133 = getelementptr inbounds i8, ptr %121, i64 8
  %134 = trunc nuw nsw i64 %127 to i32
  store i32 %134, ptr %133, align 4, !tbaa !44
  %135 = load ptr, ptr %44, align 8, !tbaa !23
  %136 = getelementptr inbounds float, ptr %135, i64 %indvars.iv93
  %137 = load float, ptr %136, align 4, !tbaa !30
  %138 = getelementptr inbounds i8, ptr %121, i64 12
  store float %137, ptr %138, align 4, !tbaa !45
  %139 = getelementptr inbounds float, ptr %135, i64 %indvars.iv.next94
  %140 = load float, ptr %139, align 4, !tbaa !30
  %141 = getelementptr inbounds i8, ptr %121, i64 16
  store float %140, ptr %141, align 4, !tbaa !46
  %142 = getelementptr inbounds float, ptr %135, i64 %127
  %143 = load float, ptr %142, align 4, !tbaa !30
  %144 = getelementptr inbounds i8, ptr %121, i64 20
  store float %143, ptr %144, align 4, !tbaa !47
  %145 = getelementptr inbounds i8, ptr %121, i64 24
  store float 0.000000e+00, ptr %145, align 4, !tbaa !48
  %146 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %147 = getelementptr inbounds i8, ptr %121, i64 32
  store float %146, ptr %147, align 4, !tbaa !49
  %148 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %149 = getelementptr inbounds i8, ptr %121, i64 36
  store float %148, ptr %149, align 4, !tbaa !50
  %150 = getelementptr inbounds i8, ptr %121, i64 28
  store float 0.000000e+00, ptr %150, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %151 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %151, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %152 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %152, ptr %9, align 8
  %153 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %154 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %155 = fmul float %153, %154
  %156 = fcmp oeq float %155, 0.000000e+00
  br i1 %156, label %187, label %157

157:                                              ; preds = %.lr.ph86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %158 = fdiv float -1.000000e+00, %153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %159 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %159, ptr %11, align 8
  %160 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %158, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %160, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %161 = fdiv float 1.000000e+00, %154
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %162 = call <2 x float> @_ZNK6b2Vec24SkewEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %162, ptr %13, align 8
  %163 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %161, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %163, ptr %12, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %164 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %164, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %165 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %165, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %166 = load i64, ptr %12, align 8
  store i64 %166, ptr %16, align 8
  %167 = load float, ptr %138, align 4, !tbaa !45
  %168 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %169 = load float, ptr %141, align 4, !tbaa !46
  %170 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %171 = fmul float %169, %170
  %172 = call float @llvm.fmuladd.f32(float %167, float %168, float %171)
  %173 = load float, ptr %144, align 4, !tbaa !47
  %174 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %175 = call float @llvm.fmuladd.f32(float %173, float %174, float %172)
  store float %175, ptr %145, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %176 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %176, ptr %17, align 8
  %177 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
  %178 = fcmp oeq float %177, 0.000000e+00
  br i1 %178, label %186, label %179

179:                                              ; preds = %157
  %180 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %181 = fdiv float %180, %177
  %182 = getelementptr inbounds i8, ptr %121, i64 40
  store float %181, ptr %182, align 4, !tbaa !52
  %183 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %184 = fdiv float %183, %177
  %185 = getelementptr inbounds i8, ptr %121, i64 44
  store float %184, ptr %185, align 4, !tbaa !53
  br label %186

186:                                              ; preds = %157, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %187

187:                                              ; preds = %.lr.ph86, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  %188 = load i32, ptr %52, align 8, !tbaa !25
  %189 = sext i32 %188 to i64
  %190 = icmp slt i64 %indvars.iv.next94, %189
  br i1 %190, label %.lr.ph86, label %._crit_edge87, !llvm.loop !54
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z7b2Alloci(i32 noundef) local_unnamed_addr #3

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

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

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

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

; 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 #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 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 #5

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 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 #6

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn 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 #3 = { inlinehint mustprogress 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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, !12, i64 16}
!6 = !{!"_ZTS9b2RopeDef", !7, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !7, i64 32, !13, i64 40}
!7 = !{!"_ZTS6b2Vec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !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 = !{!18, !12, i64 8}
!18 = !{!"_ZTS6b2Rope", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !7, i64 80, !13, i64 88}
!19 = !{!18, !11, i64 40}
!20 = !{!18, !11, i64 48}
!21 = !{!18, !11, i64 56}
!22 = !{!18, !11, i64 64}
!23 = !{!18, !11, i64 72}
!24 = !{!18, !12, i64 12}
!25 = !{!18, !12, i64 16}
!26 = !{!18, !11, i64 24}
!27 = !{!18, !11, i64 32}
!28 = !{!6, !11, i64 8}
!29 = !{!6, !11, i64 24}
!30 = !{!8, !8, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !12, i64 0}
!34 = !{!"_ZTS13b2RopeStretch", !12, i64 0, !12, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!35 = !{!34, !12, i64 4}
!36 = !{!34, !8, i64 16}
!37 = !{!34, !8, i64 8}
!38 = !{!34, !8, i64 12}
!39 = !{!34, !8, i64 28}
!40 = distinct !{!40, !32}
!41 = !{!42, !12, i64 0}
!42 = !{!"_ZTS10b2RopeBend", !12, i64 0, !12, i64 4, !12, 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}
!43 = !{!42, !12, i64 4}
!44 = !{!42, !12, i64 8}
!45 = !{!42, !8, i64 12}
!46 = !{!42, !8, i64 16}
!47 = !{!42, !8, i64 20}
!48 = !{!42, !8, i64 24}
!49 = !{!42, !8, i64 32}
!50 = !{!42, !8, i64 36}
!51 = !{!42, !8, i64 28}
!52 = !{!42, !8, i64 40}
!53 = !{!42, !8, i64 44}
!54 = distinct !{!54, !32}


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