; LLVM IR from erincatto/box2d :: src (distance)

; 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.b2DistanceOutput = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, i32, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2SimplexCache = type { i16, [3 x i8], [3 x i8] }
%struct.b2DistanceInput = type { %struct.b2ShapeProxy, %struct.b2ShapeProxy, %struct.b2Transform, %struct.b2Transform, i8 }
%struct.b2ShapeProxy = type { [8 x %struct.b2Vec2], i32, float }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }
%struct.b2ShapeCastPairInput = type { %struct.b2ShapeProxy, %struct.b2ShapeProxy, %struct.b2Transform, %struct.b2Transform, %struct.b2Vec2, float, i8 }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@b2_lengthUnitsPerMeter = external global float, align 4
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Dot(<2 x float>, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) #3

; Function Attrs: nounwind uwtable
declare dso_local void @b2ShapeDistance(ptr dead_on_unwind noalias writable sret(%struct.b2DistanceOutput) align 4, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2MaxFloat(float noundef, float noundef) #7

; Function Attrs: nounwind uwtable
define dso_local void @b2ShapeCast(ptr dead_on_unwind noalias writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %struct.b2SimplexCache, align 2
  %9 = alloca float, align 4
  %10 = alloca %struct.b2DistanceInput, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.b2DistanceOutput, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca %struct.b2Vec2, align 4
  %18 = alloca float, align 4
  %19 = alloca %struct.b2Vec2, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %20 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !9
  %21 = fmul float 0x3F747AE140000000, %20
  store float %21, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %struct.b2ShapeProxy, ptr %23, i32 0, i32 2
  %25 = load float, ptr %24, align 4, !tbaa !11
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %struct.b2ShapeProxy, ptr %27, i32 0, i32 2
  %29 = load float, ptr %28, align 4, !tbaa !19
  %30 = fadd float %25, %29
  store float %30, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %31 = load float, ptr %4, align 4, !tbaa !9
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = load float, ptr %4, align 4, !tbaa !9
  %34 = fsub float %32, %33
  %35 = call float @b2MaxFloat(float noundef %31, float noundef %34)
  store float %35, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %36 = load float, ptr %4, align 4, !tbaa !9
  %37 = fmul float 2.500000e-01, %36
  store float %37, ptr %7, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %2
  %39 = load float, ptr %6, align 4, !tbaa !9
  %40 = load float, ptr %7, align 4, !tbaa !9
  %41 = fcmp ogt float %39, %40
  br i1 %41, label %46, label %42

42:                                               ; preds = %38
  %43 = call i32 @b2InternalAssertFcn(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 608)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  call void @llvm.trap()
  br label %46

46:                                               ; preds = %45, %42, %38
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 2 %8, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store float 0.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 180, ptr %10) #8
  call void @llvm.memset.p0.i64(ptr align 4 %10, i8 0, i64 180, i1 false)
  %49 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 0
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %50, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %51, i64 72, i1 false), !tbaa.struct !20
  %52 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 1
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %53, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %54, i64 72, i1 false), !tbaa.struct !20
  %55 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 2
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %56, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %57, i64 16, i1 false), !tbaa.struct !23
  %58 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 3
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %59, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %60, i64 16, i1 false), !tbaa.struct !23
  %61 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 4
  store i8 0, ptr %61, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %62, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %63, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 20, ptr %13, align 4, !tbaa !22
  br label %64

64:                                               ; preds = %223, %48
  %65 = load i32, ptr %12, align 4, !tbaa !22
  %66 = load i32, ptr %13, align 4, !tbaa !22
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %68, label %226

68:                                               ; preds = %64
  %69 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 3
  %70 = load i32, ptr %69, align 4, !tbaa !27
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 36, ptr %14) #8
  call void @b2ShapeDistance(ptr dead_on_unwind writable sret(%struct.b2DistanceOutput) align 4 %14, ptr noundef %10, ptr noundef %8, ptr noundef null, i32 noundef 0)
  %72 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %73 = load float, ptr %72, align 4, !tbaa !29
  %74 = load float, ptr %6, align 4, !tbaa !9
  %75 = load float, ptr %7, align 4, !tbaa !9
  %76 = fadd float %74, %75
  %77 = fcmp olt float %73, %76
  br i1 %77, label %78, label %162

78:                                               ; preds = %68
  %79 = load i32, ptr %12, align 4, !tbaa !22
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %130

81:                                               ; preds = %78
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %82, i32 0, i32 6
  %84 = load i8, ptr %83, align 4, !tbaa !31, !range !32, !noundef !33
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %97

86:                                               ; preds = %81
  %87 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %88 = load float, ptr %87, align 4, !tbaa !29
  %89 = load float, ptr %4, align 4, !tbaa !9
  %90 = fmul float 2.000000e+00, %89
  %91 = fcmp ogt float %88, %90
  br i1 %91, label %92, label %97

92:                                               ; preds = %86
  %93 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %94 = load float, ptr %93, align 4, !tbaa !29
  %95 = load float, ptr %4, align 4, !tbaa !9
  %96 = fsub float %94, %95
  store float %96, ptr %6, align 4, !tbaa !9
  br label %129

97:                                               ; preds = %86, %81
  %98 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %99 = load float, ptr %98, align 4, !tbaa !29
  %100 = fcmp oeq float %99, 0.000000e+00
  br i1 %100, label %101, label %102

101:                                              ; preds = %97
  store i32 1, ptr %15, align 4
  br label %220

102:                                              ; preds = %97
  br label %103

103:                                              ; preds = %102
  %104 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %105 = load <2 x float>, ptr %104, align 4
  %106 = call zeroext i1 @b2IsNormalized(<2 x float> %105)
  br i1 %106, label %111, label %107

107:                                              ; preds = %103
  %108 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 650)
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  call void @llvm.trap()
  br label %111

111:                                              ; preds = %110, %107, %103
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = load float, ptr %9, align 4, !tbaa !9
  %115 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 2
  store float %114, ptr %115, align 4, !tbaa !34
  %116 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %117 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 0
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %struct.b2ShapeProxy, ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %123 = load <2 x float>, ptr %117, align 4
  %124 = load <2 x float>, ptr %122, align 4
  %125 = call <2 x float> @b2MulAdd(<2 x float> %123, float noundef %121, <2 x float> %124)
  store <2 x float> %125, ptr %16, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %126 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 0
  %127 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 4 %127, i64 8, i1 false), !tbaa.struct !26
  %128 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 4
  store i8 1, ptr %128, align 4, !tbaa !35
  store i32 1, ptr %15, align 4
  br label %220

129:                                              ; preds = %92
  br label %161

130:                                              ; preds = %78
  br label %131

131:                                              ; preds = %130
  %132 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %133 = load float, ptr %132, align 4, !tbaa !29
  %134 = fcmp ogt float %133, 0.000000e+00
  br i1 %134, label %135, label %139

135:                                              ; preds = %131
  %136 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %137 = load <2 x float>, ptr %136, align 4
  %138 = call zeroext i1 @b2IsNormalized(<2 x float> %137)
  br i1 %138, label %143, label %139

139:                                              ; preds = %135, %131
  %140 = call i32 @b2InternalAssertFcn(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 661)
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  call void @llvm.trap()
  br label %143

143:                                              ; preds = %142, %139, %135
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  %146 = load float, ptr %9, align 4, !tbaa !9
  %147 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 2
  store float %146, ptr %147, align 4, !tbaa !34
  %148 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %149 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 0
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %struct.b2ShapeProxy, ptr %151, i32 0, i32 2
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %155 = load <2 x float>, ptr %149, align 4
  %156 = load <2 x float>, ptr %154, align 4
  %157 = call <2 x float> @b2MulAdd(<2 x float> %155, float noundef %153, <2 x float> %156)
  store <2 x float> %157, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %148, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %158 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 0
  %159 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 4 %159, i64 8, i1 false), !tbaa.struct !26
  %160 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 4
  store i8 1, ptr %160, align 4, !tbaa !35
  store i32 1, ptr %15, align 4
  br label %220

161:                                              ; preds = %129
  br label %162

162:                                              ; preds = %161, %68
  br label %163

163:                                              ; preds = %162
  %164 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %165 = load float, ptr %164, align 4, !tbaa !29
  %166 = fcmp ogt float %165, 0.000000e+00
  br i1 %166, label %171, label %167

167:                                              ; preds = %163
  %168 = call i32 @b2InternalAssertFcn(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 670)
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %167
  call void @llvm.trap()
  br label %171

171:                                              ; preds = %170, %167, %163
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %176 = load <2 x float>, ptr %175, align 4
  %177 = call zeroext i1 @b2IsNormalized(<2 x float> %176)
  br i1 %177, label %182, label %178

178:                                              ; preds = %174
  %179 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 671)
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %178
  call void @llvm.trap()
  br label %182

182:                                              ; preds = %181, %178, %174
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %185 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 2
  %186 = load <2 x float>, ptr %11, align 4
  %187 = load <2 x float>, ptr %185, align 4
  %188 = call float @b2Dot(<2 x float> %186, <2 x float> %187)
  store float %188, ptr %18, align 4, !tbaa !9
  %189 = load float, ptr %18, align 4, !tbaa !9
  %190 = fcmp oge float %189, 0.000000e+00
  br i1 %190, label %191, label %193

191:                                              ; preds = %184
  %192 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 2
  store float 1.000000e+00, ptr %192, align 4, !tbaa !34
  store i32 1, ptr %15, align 4
  br label %219

193:                                              ; preds = %184
  %194 = load float, ptr %6, align 4, !tbaa !9
  %195 = getelementptr inbounds %struct.b2DistanceOutput, ptr %14, i32 0, i32 3
  %196 = load float, ptr %195, align 4, !tbaa !29
  %197 = fsub float %194, %196
  %198 = load float, ptr %18, align 4, !tbaa !9
  %199 = fdiv float %197, %198
  %200 = load float, ptr %9, align 4, !tbaa !9
  %201 = fadd float %200, %199
  store float %201, ptr %9, align 4, !tbaa !9
  %202 = load float, ptr %9, align 4, !tbaa !9
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %203, i32 0, i32 5
  %205 = load float, ptr %204, align 4, !tbaa !36
  %206 = fcmp oge float %202, %205
  br i1 %206, label %207, label %209

207:                                              ; preds = %193
  %208 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 2
  store float 1.000000e+00, ptr %208, align 4, !tbaa !34
  store i32 1, ptr %15, align 4
  br label %219

209:                                              ; preds = %193
  %210 = getelementptr inbounds %struct.b2DistanceInput, ptr %10, i32 0, i32 3
  %211 = getelementptr inbounds %struct.b2Transform, ptr %210, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.b2ShapeCastPairInput, ptr %212, i32 0, i32 3
  %214 = getelementptr inbounds %struct.b2Transform, ptr %213, i32 0, i32 0
  %215 = load float, ptr %9, align 4, !tbaa !9
  %216 = load <2 x float>, ptr %214, align 4
  %217 = load <2 x float>, ptr %11, align 4
  %218 = call <2 x float> @b2MulAdd(<2 x float> %216, float noundef %215, <2 x float> %217)
  store <2 x float> %218, ptr %19, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %211, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  store i32 0, ptr %15, align 4
  br label %219

219:                                              ; preds = %209, %207, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %220

220:                                              ; preds = %219, %145, %113, %101
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #8
  %221 = load i32, ptr %15, align 4
  switch i32 %221, label %227 [
    i32 0, label %222
  ]

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %12, align 4, !tbaa !22
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %12, align 4, !tbaa !22
  br label %64, !llvm.loop !37

226:                                              ; preds = %64
  store i32 1, ptr %15, align 4
  br label %227

227:                                              ; preds = %226, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 180, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @b2IsNormalized(<2 x float>) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint nounwind 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 = { nounwind 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 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #7 = { inlinehint 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 68}
!12 = !{!"b2ShapeCastPairInput", !13, i64 0, !13, i64 72, !15, i64 144, !15, i64 160, !16, i64 176, !10, i64 184, !18, i64 188}
!13 = !{!"b2ShapeProxy", !7, i64 0, !14, i64 64, !10, i64 68}
!14 = !{!"int", !7, i64 0}
!15 = !{!"b2Transform", !16, i64 0, !17, i64 8}
!16 = !{!"b2Vec2", !10, i64 0, !10, i64 4}
!17 = !{!"b2Rot", !10, i64 0, !10, i64 4}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!12, !10, i64 140}
!20 = !{i64 0, i64 64, !21, i64 64, i64 4, !22, i64 68, i64 4, !9}
!21 = !{!7, !7, i64 0}
!22 = !{!14, !14, i64 0}
!23 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!24 = !{!25, !18, i64 176}
!25 = !{!"b2DistanceInput", !13, i64 0, !13, i64 72, !15, i64 144, !15, i64 160, !18, i64 176}
!26 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!27 = !{!28, !14, i64 20}
!28 = !{!"b2CastOutput", !16, i64 0, !16, i64 8, !10, i64 16, !14, i64 20, !18, i64 24}
!29 = !{!30, !10, i64 24}
!30 = !{!"b2DistanceOutput", !16, i64 0, !16, i64 8, !16, i64 16, !10, i64 24, !14, i64 28, !14, i64 32}
!31 = !{!12, !18, i64 188}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!28, !10, i64 16}
!35 = !{!28, !18, i64 24}
!36 = !{!12, !10, i64 184}
!37 = distinct !{!37, !38}
!38 = !{!"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.b2DistanceOutput = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, i32, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2SimplexCache = type { i16, [3 x i8], [3 x i8] }
%struct.b2DistanceInput = type { %struct.b2ShapeProxy, %struct.b2ShapeProxy, %struct.b2Transform, %struct.b2Transform, i8 }
%struct.b2ShapeProxy = type { [8 x %struct.b2Vec2], i32, float }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@b2_lengthUnitsPerMeter = external local_unnamed_addr global float, align 4
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Dot(<2 x float>, <2 x float>) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @b2ShapeDistance(ptr dead_on_unwind noalias writable sret(%struct.b2DistanceOutput) align 4, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2MaxFloat(float noundef, float noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
define dso_local void @b2ShapeCast(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.b2CastOutput) align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = alloca %struct.b2SimplexCache, align 8
  %4 = alloca %struct.b2DistanceInput, align 4
  %5 = alloca %struct.b2DistanceOutput, align 8
  %6 = load float, ptr @b2_lengthUnitsPerMeter, align 4, !tbaa !5
  %7 = fmul float %6, 0x3F747AE140000000
  %8 = getelementptr inbounds i8, ptr %1, i64 68
  %9 = load float, ptr %8, align 4, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %1, i64 72
  %11 = getelementptr inbounds i8, ptr %1, i64 140
  %12 = load float, ptr %11, align 4, !tbaa !17
  %13 = fadd float %9, %12
  %14 = fsub float %13, %7
  %15 = tail call float @b2MaxFloat(float noundef %7, float noundef %14)
  %16 = fmul float %7, 2.500000e-01
  %17 = fcmp ogt float %15, %16
  br i1 %17, label %.peel.begin, label %18

18:                                               ; preds = %2
  %19 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 608) #8
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %.peel.begin, label %20

20:                                               ; preds = %18
  tail call void @llvm.trap()
  unreachable

.peel.begin:                                      ; preds = %18, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store i64 0, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 180, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(72) %4, ptr noundef nonnull align 4 dereferenceable(72) %1, i64 72, i1 false), !tbaa.struct !18
  %21 = getelementptr inbounds i8, ptr %4, i64 72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(72) %21, ptr noundef nonnull align 4 dereferenceable(72) %10, i64 72, i1 false), !tbaa.struct !18
  %22 = getelementptr inbounds i8, ptr %4, i64 144
  %23 = getelementptr inbounds i8, ptr %1, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %23, i64 16, i1 false), !tbaa.struct !21
  %24 = getelementptr inbounds i8, ptr %4, i64 160
  %25 = getelementptr inbounds i8, ptr %1, i64 160
  %26 = getelementptr inbounds i8, ptr %4, i64 176
  store i32 0, ptr %26, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %25, i64 16, i1 false), !tbaa.struct !21
  %27 = getelementptr inbounds i8, ptr %1, i64 176
  %.sroa.08.0.copyload = load <2 x float>, ptr %27, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %0, i8 0, i64 28, i1 false)
  %28 = getelementptr inbounds i8, ptr %0, i64 20
  %29 = getelementptr inbounds i8, ptr %5, i64 24
  %30 = getelementptr inbounds i8, ptr %5, i64 16
  %31 = getelementptr inbounds i8, ptr %1, i64 184
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #8
  call void @b2ShapeDistance(ptr dead_on_unwind nonnull writable sret(%struct.b2DistanceOutput) align 4 %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef null, i32 noundef 0)
  %32 = load float, ptr %29, align 8, !tbaa !22
  %33 = fadd float %16, %15
  %34 = fcmp olt float %32, %33
  br i1 %34, label %35, label %43

35:                                               ; preds = %.peel.begin
  %36 = fmul float %7, 2.000000e+00
  %37 = getelementptr inbounds i8, ptr %1, i64 188
  %38 = load i8, ptr %37, align 4, !tbaa !24, !range !25, !noundef !26
  %39 = trunc nuw i8 %38 to i1
  %40 = fcmp ogt float %32, %36
  %or.cond.peel = and i1 %40, %39
  br i1 %or.cond.peel, label %41, label %71

41:                                               ; preds = %35
  %42 = fsub float %32, %7
  br label %43

43:                                               ; preds = %41, %.peel.begin
  %.1.peel = phi float [ %42, %41 ], [ %15, %.peel.begin ]
  %44 = fcmp ogt float %32, 0.000000e+00
  br i1 %44, label %47, label %45

45:                                               ; preds = %43
  %46 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 670) #8
  %.not50.peel = icmp eq i32 %46, 0
  br i1 %.not50.peel, label %47, label %.loopexit100

47:                                               ; preds = %45, %43
  %48 = load <2 x float>, ptr %30, align 8
  %49 = call zeroext i1 @b2IsNormalized(<2 x float> %48)
  br i1 %49, label %52, label %50

50:                                               ; preds = %47
  %51 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 671) #8
  %.not51.peel = icmp eq i32 %51, 0
  br i1 %.not51.peel, label %52, label %.loopexit101

52:                                               ; preds = %50, %47
  %53 = load <2 x float>, ptr %30, align 8
  %54 = call float @b2Dot(<2 x float> %.sroa.08.0.copyload, <2 x float> %53)
  %55 = fcmp ult float %54, 0.000000e+00
  br i1 %55, label %56, label %.loopexit102

56:                                               ; preds = %52
  %57 = load float, ptr %29, align 8, !tbaa !22
  %58 = fsub float %.1.peel, %57
  %59 = fdiv float %58, %54
  %60 = load float, ptr %31, align 4, !tbaa !27
  %61 = fcmp ult float %59, %60
  br i1 %61, label %.peel.next, label %.loopexit103

.peel.next:                                       ; preds = %56
  %62 = fadd float %59, 0.000000e+00
  %63 = load <2 x float>, ptr %25, align 4
  %64 = call <2 x float> @b2MulAdd(<2 x float> %63, float noundef %62, <2 x float> %.sroa.08.0.copyload)
  store <2 x float> %64, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #8
  %65 = fadd float %16, %.1.peel
  br label %66

66:                                               ; preds = %.peel.next, %126
  %.03876 = phi float [ %62, %.peel.next ], [ %122, %126 ]
  %.04175 = phi i32 [ 1, %.peel.next ], [ %129, %126 ]
  %67 = phi i32 [ 1, %.peel.next ], [ %68, %126 ]
  %68 = add nuw nsw i32 %67, 1
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #8
  call void @b2ShapeDistance(ptr dead_on_unwind nonnull writable sret(%struct.b2DistanceOutput) align 4 %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef null, i32 noundef 0)
  %69 = load float, ptr %29, align 8, !tbaa !22
  %70 = fcmp olt float %69, %65
  br i1 %70, label %.loopexit98, label %104

71:                                               ; preds = %35
  store i32 1, ptr %28, align 4, !tbaa !28
  %72 = fcmp oeq float %32, 0.000000e+00
  br i1 %72, label %.thread, label %73

73:                                               ; preds = %71
  %74 = load <2 x float>, ptr %30, align 8
  %75 = call zeroext i1 @b2IsNormalized(<2 x float> %74)
  br i1 %75, label %79, label %76

76:                                               ; preds = %73
  %77 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 650) #8
  %.not49 = icmp eq i32 %77, 0
  br i1 %.not49, label %79, label %78

78:                                               ; preds = %76
  call void @llvm.trap()
  unreachable

79:                                               ; preds = %76, %73
  %80 = getelementptr inbounds i8, ptr %0, i64 16
  store float 0.000000e+00, ptr %80, align 4, !tbaa !30
  %81 = getelementptr inbounds i8, ptr %0, i64 8
  %82 = load float, ptr %8, align 4, !tbaa !9
  %83 = load <2 x float>, ptr %5, align 8
  %84 = load <2 x float>, ptr %30, align 8
  %85 = call <2 x float> @b2MulAdd(<2 x float> %83, float noundef %82, <2 x float> %84)
  store <2 x float> %85, ptr %81, align 4
  %86 = load i64, ptr %30, align 8
  store i64 %86, ptr %0, align 4
  %87 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %87, align 4, !tbaa !31
  br label %.thread

.loopexit98:                                      ; preds = %66
  store i32 %68, ptr %28, align 4, !tbaa !28
  %88 = fcmp ogt float %69, 0.000000e+00
  br i1 %88, label %89, label %92

89:                                               ; preds = %.loopexit98
  %90 = load <2 x float>, ptr %30, align 8
  %91 = call zeroext i1 @b2IsNormalized(<2 x float> %90)
  br i1 %91, label %95, label %92

92:                                               ; preds = %89, %.loopexit98
  %93 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 661) #8
  %.not48 = icmp eq i32 %93, 0
  br i1 %.not48, label %95, label %94

94:                                               ; preds = %92
  call void @llvm.trap()
  unreachable

95:                                               ; preds = %92, %89
  %96 = getelementptr inbounds i8, ptr %0, i64 16
  store float %.03876, ptr %96, align 4, !tbaa !30
  %97 = getelementptr inbounds i8, ptr %0, i64 8
  %98 = load float, ptr %8, align 4, !tbaa !9
  %99 = load <2 x float>, ptr %5, align 8
  %100 = load <2 x float>, ptr %30, align 8
  %101 = call <2 x float> @b2MulAdd(<2 x float> %99, float noundef %98, <2 x float> %100)
  store <2 x float> %101, ptr %97, align 4
  %102 = load i64, ptr %30, align 8
  store i64 %102, ptr %0, align 4
  %103 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %103, align 4, !tbaa !31
  br label %.thread

104:                                              ; preds = %66
  %105 = fcmp ogt float %69, 0.000000e+00
  br i1 %105, label %108, label %106

106:                                              ; preds = %104
  %107 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 670) #8
  %.not50 = icmp eq i32 %107, 0
  br i1 %.not50, label %108, label %.loopexit100

.loopexit100:                                     ; preds = %106, %45
  %.lcssa86 = phi i32 [ 1, %45 ], [ %68, %106 ]
  store i32 %.lcssa86, ptr %28, align 4, !tbaa !28
  call void @llvm.trap()
  unreachable

108:                                              ; preds = %104, %106
  %109 = load <2 x float>, ptr %30, align 8
  %110 = call zeroext i1 @b2IsNormalized(<2 x float> %109)
  br i1 %110, label %113, label %111

111:                                              ; preds = %108
  %112 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 671) #8
  %.not51 = icmp eq i32 %112, 0
  br i1 %.not51, label %113, label %.loopexit101

.loopexit101:                                     ; preds = %111, %50
  %.lcssa87 = phi i32 [ 1, %50 ], [ %68, %111 ]
  store i32 %.lcssa87, ptr %28, align 4, !tbaa !28
  call void @llvm.trap()
  unreachable

113:                                              ; preds = %111, %108
  %114 = load <2 x float>, ptr %30, align 8
  %115 = call float @b2Dot(<2 x float> %.sroa.08.0.copyload, <2 x float> %114)
  %116 = fcmp ult float %115, 0.000000e+00
  br i1 %116, label %118, label %.loopexit102

.loopexit102:                                     ; preds = %113, %52
  %.lcssa88 = phi i32 [ 1, %52 ], [ %68, %113 ]
  store i32 %.lcssa88, ptr %28, align 4, !tbaa !28
  %117 = getelementptr inbounds i8, ptr %0, i64 16
  store float 1.000000e+00, ptr %117, align 4, !tbaa !30
  br label %.thread

118:                                              ; preds = %113
  %119 = load float, ptr %29, align 8, !tbaa !22
  %120 = fsub float %.1.peel, %119
  %121 = fdiv float %120, %115
  %122 = fadd float %.03876, %121
  %123 = load float, ptr %31, align 4, !tbaa !27
  %124 = fcmp ult float %122, %123
  br i1 %124, label %126, label %.loopexit103

.loopexit103:                                     ; preds = %118, %56
  %.lcssa89 = phi i32 [ 1, %56 ], [ %68, %118 ]
  store i32 %.lcssa89, ptr %28, align 4, !tbaa !28
  %125 = getelementptr inbounds i8, ptr %0, i64 16
  store float 1.000000e+00, ptr %125, align 4, !tbaa !30
  br label %.thread

.thread:                                          ; preds = %79, %95, %71, %.loopexit102, %.loopexit103
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #8
  br label %130

126:                                              ; preds = %118
  %127 = load <2 x float>, ptr %25, align 4
  %128 = call <2 x float> @b2MulAdd(<2 x float> %127, float noundef %122, <2 x float> %.sroa.08.0.copyload)
  store <2 x float> %128, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #8
  %129 = add nuw nsw i32 %.04175, 1
  %exitcond.not = icmp eq i32 %129, 20
  br i1 %exitcond.not, label %.loopexit, label %66, !llvm.loop !32

.loopexit:                                        ; preds = %126
  store i32 20, ptr %28, align 4, !tbaa !28
  br label %130

130:                                              ; preds = %.loopexit, %.thread
  call void @llvm.lifetime.end.p0(i64 180, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @b2IsNormalized(<2 x float>) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint nounwind 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 = { nounwind 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 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #7 = { inlinehint 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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 68}
!10 = !{!"b2ShapeCastPairInput", !11, i64 0, !11, i64 72, !13, i64 144, !13, i64 160, !14, i64 176, !6, i64 184, !16, i64 188}
!11 = !{!"b2ShapeProxy", !7, i64 0, !12, i64 64, !6, i64 68}
!12 = !{!"int", !7, i64 0}
!13 = !{!"b2Transform", !14, i64 0, !15, i64 8}
!14 = !{!"b2Vec2", !6, i64 0, !6, i64 4}
!15 = !{!"b2Rot", !6, i64 0, !6, i64 4}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!10, !6, i64 140}
!18 = !{i64 0, i64 64, !19, i64 64, i64 4, !20, i64 68, i64 4, !5}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!22 = !{!23, !6, i64 24}
!23 = !{!"b2DistanceOutput", !14, i64 0, !14, i64 8, !14, i64 16, !6, i64 24, !12, i64 28, !12, i64 32}
!24 = !{!10, !16, i64 188}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !6, i64 184}
!28 = !{!29, !12, i64 20}
!29 = !{!"b2CastOutput", !14, i64 0, !14, i64 8, !6, i64 16, !12, i64 20, !16, i64 24}
!30 = !{!29, !6, i64 16}
!31 = !{!29, !16, i64 24}
!32 = distinct !{!32, !33, !34}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass