; LLVM IR from mtsamis/box2d-optimized :: src/collision/b2_distance.ll (Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput)

; 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.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2Simplex = type { %struct.b2SimplexVertex, %struct.b2SimplexVertex, %struct.b2SimplexVertex, i32 }
%struct.b2SimplexVertex = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, i32, i32 }
%struct.b2ShapeCastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32 }
%struct.b2ShapeCastInput = type { %struct.b2DistanceProxy, %struct.b2DistanceProxy, %struct.b2Transform, %struct.b2Transform, %struct.b2Vec2 }
%struct.b2DistanceProxy = type { [2 x %struct.b2Vec2], ptr, i32, float }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput = external hidden unnamed_addr constant [64 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112), ptr noundef, ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.b2Transform, align 4
  %12 = alloca %struct.b2Transform, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca float, align 4
  %16 = alloca %struct.b2Simplex, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca %struct.b2Vec2, align 4
  %34 = alloca %struct.b2Vec2, align 4
  %35 = alloca %struct.b2Vec2, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca i32, align 4
  %39 = alloca %struct.b2Vec2, align 4
  %40 = alloca ptr, align 8
  %41 = alloca %struct.b2Vec2, align 4
  %42 = alloca %struct.b2Vec2, align 4
  %43 = alloca %struct.b2Vec2, align 4
  %44 = alloca %struct.b2Vec2, align 4
  %45 = alloca %struct.b2Vec2, align 4
  %46 = alloca %struct.b2Vec2, align 4
  %47 = alloca %struct.b2Vec2, align 4
  %48 = alloca %struct.b2Vec2, align 4
  %49 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %50, i32 0, i32 3
  store i32 0, ptr %51, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %52, i32 0, i32 2
  store float 1.000000e+00, ptr %53, align 4, !tbaa !14
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %54, i32 0, i32 1
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %55)
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %56, i32 0, i32 0
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %57)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.b2ShapeCastInput, ptr %58, i32 0, i32 0
  store ptr %59, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.b2ShapeCastInput, ptr %60, i32 0, i32 1
  store ptr %61, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.b2DistanceProxy, ptr %62, i32 0, i32 3
  %64 = load float, ptr %63, align 4, !tbaa !15
  %65 = call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef %64, float noundef 0x3F847AE140000000)
  store float %65, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.b2DistanceProxy, ptr %66, i32 0, i32 3
  %68 = load float, ptr %67, align 4, !tbaa !15
  %69 = call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef %68, float noundef 0x3F847AE140000000)
  store float %69, ptr %9, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %70 = load float, ptr %8, align 4, !tbaa !17
  %71 = load float, ptr %9, align 4, !tbaa !17
  %72 = fadd float %70, %71
  store float %72, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.b2ShapeCastInput, ptr %73, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %74, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.b2ShapeCastInput, ptr %75, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %76, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2ShapeCastInput, ptr %77, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %78, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store float 0.000000e+00, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 112, ptr %16) #9
  call void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112) %16)
  %79 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  store i32 0, ptr %79, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %80 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 0
  store ptr %80, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %82 = getelementptr inbounds %struct.b2Transform, ptr %11, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %83 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %83, ptr %20, align 4
  %84 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %84, ptr %19, align 4
  %85 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  store i32 %85, ptr %18, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr %18, align 4, !tbaa !23
  %88 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %86, i32 noundef %87)
  %89 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %88)
  store <2 x float> %89, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %91 = getelementptr inbounds %struct.b2Transform, ptr %12, i32 0, i32 1
  %92 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %91, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %92, ptr %23, align 4
  %93 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  store i32 %93, ptr %22, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %22, align 4, !tbaa !23
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %94, i32 noundef %95)
  %97 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(8) %96)
  store <2 x float> %97, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %98 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %98, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %99 = load float, ptr %10, align 4, !tbaa !17
  %100 = fsub float %99, 0x3F847AE140000000
  %101 = call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef 0x3F847AE140000000, float noundef %100)
  store float %101, ptr %26, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store float 0x3F647AE140000000, ptr %27, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 20, ptr %28, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !23
  br label %102

102:                                              ; preds = %216, %2
  %103 = load i32, ptr %29, align 4, !tbaa !23
  %104 = icmp slt i32 %103, 20
  br i1 %104, label %105, label %110

105:                                              ; preds = %102
  %106 = call noundef float @_ZNK6b2Vec26LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %107 = load float, ptr %26, align 4, !tbaa !17
  %108 = fsub float %106, %107
  %109 = fcmp ogt float %108, 0x3F647AE140000000
  br label %110

110:                                              ; preds = %105, %102
  %111 = phi i1 [ false, %102 ], [ %109, %105 ]
  br i1 %111, label %112, label %217

112:                                              ; preds = %110
  %113 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  %114 = load i32, ptr %113, align 4, !tbaa !20
  %115 = icmp slt i32 %114, 3
  br i1 %115, label %116, label %117

116:                                              ; preds = %112
  br label %119

117:                                              ; preds = %112
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 625, ptr noundef @__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput) #10
  unreachable

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %116
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %121, align 4, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %125 = getelementptr inbounds %struct.b2Transform, ptr %11, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %126 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %126, ptr %31, align 4
  %127 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %125, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %127, ptr %30, align 4
  %128 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %124, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store i32 %128, ptr %18, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !23
  %131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %129, i32 noundef %130)
  %132 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %131)
  store <2 x float> %132, ptr %32, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %134 = getelementptr inbounds %struct.b2Transform, ptr %12, i32 0, i32 1
  %135 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %134, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %135, ptr %33, align 4
  %136 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store i32 %136, ptr %22, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load i32, ptr %22, align 4, !tbaa !23
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %137, i32 noundef %138)
  %140 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(8) %139)
  store <2 x float> %140, ptr %34, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %141 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %141, ptr %35, align 4
  %142 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  %143 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store float %143, ptr %36, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %144 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store float %144, ptr %37, align 4, !tbaa !17
  %145 = load float, ptr %36, align 4, !tbaa !17
  %146 = load float, ptr %26, align 4, !tbaa !17
  %147 = fsub float %145, %146
  %148 = load float, ptr %15, align 4, !tbaa !17
  %149 = load float, ptr %37, align 4, !tbaa !17
  %150 = fmul float %148, %149
  %151 = fcmp ogt float %147, %150
  br i1 %151, label %152, label %168

152:                                              ; preds = %119
  %153 = load float, ptr %37, align 4, !tbaa !17
  %154 = fcmp ole float %153, 0.000000e+00
  br i1 %154, label %155, label %156

155:                                              ; preds = %152
  store i1 false, ptr %3, align 1
  store i32 1, ptr %38, align 4
  br label %214

156:                                              ; preds = %152
  %157 = load float, ptr %36, align 4, !tbaa !17
  %158 = load float, ptr %26, align 4, !tbaa !17
  %159 = fsub float %157, %158
  %160 = load float, ptr %37, align 4, !tbaa !17
  %161 = fdiv float %159, %160
  store float %161, ptr %15, align 4, !tbaa !17
  %162 = load float, ptr %15, align 4, !tbaa !17
  %163 = fcmp ogt float %162, 1.000000e+00
  br i1 %163, label %164, label %165

164:                                              ; preds = %156
  store i1 false, ptr %3, align 1
  store i32 1, ptr %38, align 4
  br label %214

165:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %166 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %166, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  %167 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  store i32 0, ptr %167, align 4, !tbaa !20
  br label %168

168:                                              ; preds = %165, %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  %171 = load i32, ptr %170, align 4, !tbaa !20
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds %struct.b2SimplexVertex, ptr %169, i64 %172
  store ptr %173, ptr %40, align 8, !tbaa !5
  %174 = load i32, ptr %22, align 4, !tbaa !23
  %175 = load ptr, ptr %40, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.b2SimplexVertex, ptr %175, i32 0, i32 4
  store i32 %174, ptr %176, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %177 = load float, ptr %15, align 4, !tbaa !17
  %178 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %177, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %178, ptr %42, align 4
  %179 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %179, ptr %41, align 4
  %180 = load ptr, ptr %40, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.b2SimplexVertex, ptr %180, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  %182 = load i32, ptr %18, align 4, !tbaa !23
  %183 = load ptr, ptr %40, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.b2SimplexVertex, ptr %183, i32 0, i32 5
  store i32 %182, ptr %184, align 4, !tbaa !25
  %185 = load ptr, ptr %40, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.b2SimplexVertex, ptr %185, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %186, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %187 = load ptr, ptr %40, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.b2SimplexVertex, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %40, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.b2SimplexVertex, ptr %189, i32 0, i32 0
  %191 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %188, ptr noundef nonnull align 4 dereferenceable(8) %190)
  store <2 x float> %191, ptr %43, align 4
  %192 = load ptr, ptr %40, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.b2SimplexVertex, ptr %192, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  %194 = load ptr, ptr %40, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.b2SimplexVertex, ptr %194, i32 0, i32 3
  store float 1.000000e+00, ptr %195, align 4, !tbaa !26
  %196 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  %197 = load i32, ptr %196, align 4, !tbaa !20
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %196, align 4, !tbaa !20
  %199 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  %200 = load i32, ptr %199, align 4, !tbaa !20
  switch i32 %200, label %203 [
    i32 1, label %204
    i32 2, label %201
    i32 3, label %202
  ]

201:                                              ; preds = %168
  call void @_ZN9b2Simplex6Solve2Ev(ptr noundef nonnull align 4 dereferenceable(112) %16)
  br label %204

202:                                              ; preds = %168
  call void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112) %16)
  br label %204

203:                                              ; preds = %168
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 686, ptr noundef @__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput) #10
  unreachable

204:                                              ; preds = %202, %201, %168
  %205 = getelementptr inbounds %struct.b2Simplex, ptr %16, i32 0, i32 3
  %206 = load i32, ptr %205, align 4, !tbaa !20
  %207 = icmp eq i32 %206, 3
  br i1 %207, label %208, label %209

208:                                              ; preds = %204
  store i1 false, ptr %3, align 1
  store i32 1, ptr %38, align 4
  br label %213

209:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %210 = call <2 x float> @_ZNK9b2Simplex15GetClosestPointEv(ptr noundef nonnull align 4 dereferenceable(112) %16)
  store <2 x float> %210, ptr %44, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  %211 = load i32, ptr %29, align 4, !tbaa !23
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %29, align 4, !tbaa !23
  store i32 0, ptr %38, align 4
  br label %213

213:                                              ; preds = %209, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %214

214:                                              ; preds = %213, %164, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  %215 = load i32, ptr %38, align 4
  switch i32 %215, label %241 [
    i32 0, label %216
  ]

216:                                              ; preds = %214
  br label %102, !llvm.loop !27

217:                                              ; preds = %110
  %218 = load i32, ptr %29, align 4, !tbaa !23
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %221

220:                                              ; preds = %217
  store i1 false, ptr %3, align 1
  store i32 1, ptr %38, align 4
  br label %241

221:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %46)
  call void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112) %16, ptr noundef %46, ptr noundef %45)
  %222 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %223 = fcmp ogt float %222, 0.000000e+00
  br i1 %223, label %224, label %227

224:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %225 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %225, ptr %47, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  %226 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %14)
  br label %227

227:                                              ; preds = %224, %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %228 = load float, ptr %8, align 4, !tbaa !17
  %229 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %228, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %229, ptr %49, align 4
  %230 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(8) %49)
  store <2 x float> %230, ptr %48, align 4
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %231, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %232, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %233, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %234, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !19
  %235 = load float, ptr %15, align 4, !tbaa !17
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %236, i32 0, i32 2
  store float %235, ptr %237, align 4, !tbaa !14
  %238 = load i32, ptr %29, align 4, !tbaa !23
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.b2ShapeCastOutput, ptr %239, i32 0, i32 3
  store i32 %238, ptr %240, align 4, !tbaa !9
  store i1 true, ptr %3, align 1
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %241

241:                                              ; preds = %227, %220, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %242 = load i1, ptr %3, align 1
  ret i1 %242
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2MaxIfET_S0_S0_(float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #7 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 20}
!10 = !{!"_ZTS17b2ShapeCastOutput", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 20}
!11 = !{!"_ZTS6b2Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !12, i64 16}
!15 = !{!16, !12, i64 28}
!16 = !{!"_ZTS15b2DistanceProxy", !7, i64 0, !6, i64 16, !13, i64 24, !12, i64 28}
!17 = !{!12, !12, i64 0}
!18 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 12, i64 4, !17}
!19 = !{i64 0, i64 4, !17, i64 4, i64 4, !17}
!20 = !{!21, !13, i64 108}
!21 = !{!"_ZTS9b2Simplex", !22, i64 0, !22, i64 36, !22, i64 72, !13, i64 108}
!22 = !{!"_ZTS15b2SimplexVertex", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 28, !13, i64 32}
!23 = !{!13, !13, i64 0}
!24 = !{!22, !13, i64 28}
!25 = !{!22, !13, i64 32}
!26 = !{!22, !12, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"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.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2Simplex = type { %struct.b2SimplexVertex, %struct.b2SimplexVertex, %struct.b2SimplexVertex, i32 }
%struct.b2SimplexVertex = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput = external hidden unnamed_addr constant [64 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9b2Simplex6Solve2Ev(ptr noundef nonnull align 4 dereferenceable(112)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.b2Transform, align 4
  %4 = alloca %struct.b2Transform, align 4
  %5 = alloca %struct.b2Vec2, align 8
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Simplex, align 4
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 8
  %12 = alloca %struct.b2Vec2, align 8
  %13 = alloca %struct.b2Vec2, align 8
  %14 = alloca %struct.b2Vec2, align 8
  %15 = alloca %struct.b2Vec2, align 8
  %16 = alloca %struct.b2Vec2, align 8
  %17 = alloca %struct.b2Vec2, align 8
  %18 = alloca %struct.b2Vec2, align 8
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 8
  %22 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 0, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  store float 1.000000e+00, ptr %23, align 4, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %24)
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %0)
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  %26 = getelementptr inbounds i8, ptr %1, i64 28
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = tail call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef %27, float noundef 0x3F847AE140000000)
  %29 = getelementptr inbounds i8, ptr %1, i64 60
  %30 = load float, ptr %29, align 4, !tbaa !13
  %31 = tail call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef %30, float noundef 0x3F847AE140000000)
  %32 = fadd float %28, %31
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %33 = getelementptr inbounds i8, ptr %1, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %34 = getelementptr inbounds i8, ptr %1, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %34, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %35 = getelementptr inbounds i8, ptr %1, i64 96
  %36 = load i64, ptr %35, align 8
  store i64 %36, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %7) #9
  call void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112) %7)
  %37 = getelementptr inbounds i8, ptr %7, i64 108
  store i32 0, ptr %37, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %38 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %39 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %39, ptr %9, align 8
  %40 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %40, ptr %8, align 8
  %41 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(8) %8)
  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.start.p0(i64 8, ptr nonnull %10) #9
  %42 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %41)
  %43 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %43, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %44 = getelementptr inbounds i8, ptr %4, i64 8
  %45 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %45, ptr %11, align 8
  %46 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef %46)
  %48 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(8) %47)
  store <2 x float> %48, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %49 = 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> %49, ptr %13, align 8
  %50 = fadd float %32, 0xBF847AE140000000
  %51 = call noundef float @_Z5b2MaxIfET_S0_S0_(float noundef 0x3F847AE140000000, float noundef %50)
  br label %52

52:                                               ; preds = %2, %.thread
  %.06795 = phi float [ 0.000000e+00, %2 ], [ %.168, %.thread ]
  %.07094 = phi i32 [ 0, %2 ], [ %107, %.thread ]
  %53 = call noundef float @_ZNK6b2Vec26LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %54 = fsub float %53, %51
  %55 = fcmp ogt float %54, 0x3F647AE140000000
  br i1 %55, label %56, label %.critedge

56:                                               ; preds = %52
  %57 = load i32, ptr %37, align 4, !tbaa !18
  %58 = icmp slt i32 %57, 3
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 625, ptr noundef nonnull @__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput) #10
  unreachable

60:                                               ; preds = %56
  %61 = load i32, ptr %22, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %63 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %63, ptr %15, align 8
  %64 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %64, ptr %14, align 8
  %65 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  %66 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %65)
  %67 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %66)
  store <2 x float> %67, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %68 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %68, ptr %16, align 8
  %69 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  %70 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef %69)
  %71 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(8) %70)
  store <2 x float> %71, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %72 = 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> %72, ptr %17, align 8
  %73 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %74 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %75 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %76 = fsub float %74, %51
  %77 = fmul float %.06795, %75
  %78 = fcmp ogt float %76, %77
  br i1 %78, label %79, label %._crit_edge

._crit_edge:                                      ; preds = %60
  %.pre = load i32, ptr %37, align 4, !tbaa !18
  br label %86

79:                                               ; preds = %60
  %80 = fcmp ugt float %75, 0.000000e+00
  br i1 %80, label %81, label %.thread79

81:                                               ; preds = %79
  %82 = fdiv float %76, %75
  %83 = fcmp ogt float %82, 1.000000e+00
  br i1 %83, label %.thread79, label %84

84:                                               ; preds = %81
  %85 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %85, ptr %6, align 8
  store i32 0, ptr %37, align 4, !tbaa !18
  br label %86

86:                                               ; preds = %._crit_edge, %84
  %87 = phi i32 [ 0, %84 ], [ %.pre, %._crit_edge ]
  %.168 = phi float [ %82, %84 ], [ %.06795, %._crit_edge ]
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.b2SimplexVertex, ptr %7, i64 %88
  %90 = getelementptr inbounds i8, ptr %89, i64 28
  store i32 %69, ptr %90, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %91 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %.168, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %91, ptr %18, align 8
  %92 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %92, ptr %89, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  %93 = getelementptr inbounds i8, ptr %89, i64 32
  store i32 %65, ptr %93, align 4, !tbaa !22
  %94 = getelementptr inbounds i8, ptr %89, i64 8
  %95 = load i64, ptr %10, align 8
  store i64 %95, ptr %94, align 4
  %96 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %94, ptr noundef nonnull align 4 dereferenceable(8) %89)
  %97 = getelementptr inbounds i8, ptr %89, i64 16
  store <2 x float> %96, ptr %97, align 4
  %98 = getelementptr inbounds i8, ptr %89, i64 24
  store float 1.000000e+00, ptr %98, align 4, !tbaa !23
  %99 = load i32, ptr %37, align 4, !tbaa !18
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %37, align 4, !tbaa !18
  switch i32 %99, label %103 [
    i32 0, label %.thread
    i32 1, label %101
    i32 2, label %102
  ]

101:                                              ; preds = %86
  call void @_ZN9b2Simplex6Solve2Ev(ptr noundef nonnull align 4 dereferenceable(112) %7)
  br label %104

102:                                              ; preds = %86
  call void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112) %7)
  br label %104

103:                                              ; preds = %86
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 686, ptr noundef nonnull @__PRETTY_FUNCTION__._Z11b2ShapeCastP17b2ShapeCastOutputPK16b2ShapeCastInput) #10
  unreachable

104:                                              ; preds = %102, %101
  %.pr = load i32, ptr %37, align 4, !tbaa !18
  %105 = icmp eq i32 %.pr, 3
  br i1 %105, label %.thread79, label %.thread

.thread79:                                        ; preds = %79, %81, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br label %118

.thread:                                          ; preds = %86, %104
  %106 = call <2 x float> @_ZNK9b2Simplex15GetClosestPointEv(ptr noundef nonnull align 4 dereferenceable(112) %7)
  store <2 x float> %106, ptr %13, align 8
  %107 = add nuw nsw i32 %.07094, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  %exitcond.not = icmp eq i32 %107, 20
  br i1 %exitcond.not, label %.critedge.thread, label %52, !llvm.loop !24

.critedge:                                        ; preds = %52
  %108 = icmp eq i32 %.07094, 0
  br i1 %108, label %118, label %.critedge.thread

.critedge.thread:                                 ; preds = %.thread, %.critedge
  %.07093 = phi i32 [ %.07094, %.critedge ], [ 20, %.thread ]
  %.06788 = phi float [ %.06795, %.critedge ], [ %.168, %.thread ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112) %7, ptr noundef nonnull %20, ptr noundef nonnull %19)
  %109 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %110 = fcmp ogt float %109, 0.000000e+00
  br i1 %110, label %111, label %114

111:                                              ; preds = %.critedge.thread
  %112 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %112, ptr %6, align 8
  %113 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  br label %114

114:                                              ; preds = %111, %.critedge.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  %115 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %28, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %115, ptr %21, align 8
  %116 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %116, ptr %0, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  %117 = load i64, ptr %6, align 8
  store i64 %117, ptr %24, align 4
  store float %.06788, ptr %23, align 4, !tbaa !12
  store i32 %.07093, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %118

118:                                              ; preds = %.thread79, %.critedge, %114
  %.3 = phi i1 [ true, %114 ], [ false, %.critedge ], [ false, %.thread79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #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
  call void @llvm.lifetime.end.p0(i64 112, 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
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  ret i1 %.3
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2MaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #7 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 20}
!6 = !{!"_ZTS17b2ShapeCastOutput", !7, i64 0, !7, i64 8, !8, i64 16, !11, i64 20}
!7 = !{!"_ZTS6b2Vec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!6, !8, i64 16}
!13 = !{!14, !8, i64 28}
!14 = !{!"_ZTS15b2DistanceProxy", !9, i64 0, !15, i64 16, !11, i64 24, !8, i64 28}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 12, i64 4, !17}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !11, i64 108}
!19 = !{!"_ZTS9b2Simplex", !20, i64 0, !20, i64 36, !20, i64 72, !11, i64 108}
!20 = !{!"_ZTS15b2SimplexVertex", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !11, i64 28, !11, i64 32}
!21 = !{!20, !11, i64 28}
!22 = !{!20, !11, i64 32}
!23 = !{!20, !8, i64 24}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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