; LLVM IR from mtsamis/box2d-optimized :: src/collision (b2_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.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.b2DistanceInput = type <{ %struct.b2DistanceProxy, %struct.b2DistanceProxy, %struct.b2Transform, %struct.b2Transform, i8, [7 x i8] }>
%struct.b2DistanceProxy = type { [2 x %struct.b2Vec2], ptr, i32, float }
%struct.b2DistanceOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32 }

@b2_gjkCalls = external dso_local global i32, align 4
@b2_gjkIters = external dso_local global i32, align 4
@b2_gjkMaxIters = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput = external hidden unnamed_addr constant [79 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: mustprogress uwtable
declare dso_local void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.b2Transform, align 4
  %10 = alloca %struct.b2Transform, align 4
  %11 = alloca %struct.b2Simplex, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca [3 x i32], align 4
  %15 = alloca [3 x i32], align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, 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 %struct.b2Vec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr @b2_gjkCalls, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @b2_gjkCalls, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.b2DistanceInput, ptr %39, i32 0, i32 0
  store ptr %40, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.b2DistanceInput, ptr %41, i32 0, i32 1
  store ptr %42, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.b2DistanceInput, ptr %43, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.b2DistanceInput, ptr %45, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %46, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 112, ptr %11) #9
  call void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112) %11)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN9b2Simplex9ReadCacheEPK14b2SimplexCachePK15b2DistanceProxyRK11b2TransformS5_S8_(ptr noundef nonnull align 4 dereferenceable(112) %11, ptr noundef %47, ptr noundef %48, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef %49, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %50 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 0
  store ptr %50, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 20, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %186, %3
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 20
  br i1 %53, label %54, label %187

54:                                               ; preds = %51
  %55 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 3
  %56 = load i32, ptr %55, align 4, !tbaa !14
  store i32 %56, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %81, %54
  %58 = load i32, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %84

62:                                               ; preds = %57
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load i32, ptr %18, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.b2SimplexVertex, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct.b2SimplexVertex, ptr %66, i32 0, i32 4
  %68 = load i32, ptr %67, align 4, !tbaa !18
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %70
  store i32 %68, ptr %71, align 4, !tbaa !9
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.b2SimplexVertex, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct.b2SimplexVertex, ptr %75, i32 0, i32 5
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [3 x i32], ptr %15, i64 0, i64 %79
  store i32 %77, ptr %80, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %62
  %82 = load i32, ptr %18, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %18, align 4, !tbaa !9
  br label %57, !llvm.loop !20

84:                                               ; preds = %61
  %85 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 3
  %86 = load i32, ptr %85, align 4, !tbaa !14
  switch i32 %86, label %89 [
    i32 1, label %90
    i32 2, label %87
    i32 3, label %88
  ]

87:                                               ; preds = %84
  call void @_ZN9b2Simplex6Solve2Ev(ptr noundef nonnull align 4 dereferenceable(112) %11)
  br label %90

88:                                               ; preds = %84
  call void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112) %11)
  br label %90

89:                                               ; preds = %84
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 483, ptr noundef @__PRETTY_FUNCTION__._Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput) #10
  unreachable

90:                                               ; preds = %88, %87, %84
  %91 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 3
  %92 = load i32, ptr %91, align 4, !tbaa !14
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %95

94:                                               ; preds = %90
  br label %187

95:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %96 = call <2 x float> @_ZNK9b2Simplex18GetSearchDirectionEv(ptr noundef nonnull align 4 dereferenceable(112) %11)
  store <2 x float> %96, ptr %19, align 4
  %97 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  %98 = fcmp olt float %97, 0x3D10000000000000
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  store i32 3, ptr %20, align 4
  br label %184

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 3
  %103 = load i32, ptr %102, align 4, !tbaa !14
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.b2SimplexVertex, ptr %101, i64 %104
  store ptr %105, ptr %21, align 8, !tbaa !5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %107 = getelementptr inbounds %struct.b2Transform, ptr %9, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %108 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %108, ptr %23, align 4
  %109 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %107, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %109, ptr %22, align 4
  %110 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %106, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.b2SimplexVertex, ptr %111, i32 0, i32 4
  store i32 %110, ptr %112, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.b2SimplexVertex, ptr %114, i32 0, i32 4
  %116 = load i32, ptr %115, align 4, !tbaa !18
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %113, i32 noundef %116)
  %118 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(8) %117)
  store <2 x float> %118, ptr %24, align 4
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.b2SimplexVertex, ptr %119, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %122 = getelementptr inbounds %struct.b2Transform, ptr %10, i32 0, i32 1
  %123 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %122, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %123, ptr %25, align 4
  %124 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %121, ptr noundef nonnull align 4 dereferenceable(8) %25)
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.b2SimplexVertex, ptr %125, i32 0, i32 5
  store i32 %124, ptr %126, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load ptr, ptr %21, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.b2SimplexVertex, ptr %128, i32 0, i32 5
  %130 = load i32, ptr %129, align 4, !tbaa !19
  %131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %127, i32 noundef %130)
  %132 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(8) %131)
  store <2 x float> %132, ptr %26, align 4
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.b2SimplexVertex, ptr %133, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %134, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %135 = load ptr, ptr %21, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.b2SimplexVertex, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.b2SimplexVertex, ptr %137, i32 0, i32 0
  %139 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %136, ptr noundef nonnull align 4 dereferenceable(8) %138)
  store <2 x float> %139, ptr %27, align 4
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.b2SimplexVertex, ptr %140, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %141, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr @b2_gjkIters, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr @b2_gjkIters, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #9
  store i8 0, ptr %28, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %171, %100
  %147 = load i32, ptr %29, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 8, ptr %20, align 4
  br label %174

151:                                              ; preds = %146
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.b2SimplexVertex, ptr %152, i32 0, i32 4
  %154 = load i32, ptr %153, align 4, !tbaa !18
  %155 = load i32, ptr %29, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = icmp eq i32 %154, %158
  br i1 %159, label %160, label %170

160:                                              ; preds = %151
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.b2SimplexVertex, ptr %161, i32 0, i32 5
  %163 = load i32, ptr %162, align 4, !tbaa !19
  %164 = load i32, ptr %29, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [3 x i32], ptr %15, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = icmp eq i32 %163, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %160
  store i8 1, ptr %28, align 1, !tbaa !23
  store i32 8, ptr %20, align 4
  br label %174

170:                                              ; preds = %160, %151
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %29, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %29, align 4, !tbaa !9
  br label %146, !llvm.loop !25

174:                                              ; preds = %169, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %175

175:                                              ; preds = %174
  %176 = load i8, ptr %28, align 1, !tbaa !23, !range !26, !noundef !27
  %177 = trunc i8 %176 to i1
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  store i32 3, ptr %20, align 4
  br label %183

179:                                              ; preds = %175
  %180 = getelementptr inbounds %struct.b2Simplex, ptr %11, i32 0, i32 3
  %181 = load i32, ptr %180, align 4, !tbaa !14
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %180, align 4, !tbaa !14
  store i32 0, ptr %20, align 4
  br label %183

183:                                              ; preds = %179, %178
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %184

184:                                              ; preds = %183, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  %185 = load i32, ptr %20, align 4
  switch i32 %185, label %266 [
    i32 0, label %186
    i32 3, label %187
  ]

186:                                              ; preds = %184
  br label %51, !llvm.loop !28

187:                                              ; preds = %184, %94, %51
  %188 = load i32, ptr @b2_gjkMaxIters, align 4, !tbaa !9
  %189 = load i32, ptr %17, align 4, !tbaa !9
  %190 = call noundef i32 @_Z5b2MaxIiET_S0_S0_(i32 noundef %188, i32 noundef %189)
  store i32 %190, ptr @b2_gjkMaxIters, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.b2DistanceOutput, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.b2DistanceOutput, ptr %193, i32 0, i32 1
  call void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112) %11, ptr noundef %192, ptr noundef %194)
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.b2DistanceOutput, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.b2DistanceOutput, ptr %197, i32 0, i32 1
  %199 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %196, ptr noundef nonnull align 4 dereferenceable(8) %198)
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.b2DistanceOutput, ptr %200, i32 0, i32 2
  store float %199, ptr %201, align 4, !tbaa !29
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.b2DistanceOutput, ptr %203, i32 0, i32 3
  store i32 %202, ptr %204, align 4, !tbaa !31
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK9b2Simplex10WriteCacheEP14b2SimplexCache(ptr noundef nonnull align 4 dereferenceable(112) %11, ptr noundef %205)
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.b2DistanceInput, ptr %206, i32 0, i32 4
  %208 = load i8, ptr %207, align 8, !tbaa !32, !range !26, !noundef !27
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %265

210:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.b2DistanceProxy, ptr %211, i32 0, i32 3
  %213 = load float, ptr %212, align 4, !tbaa !37
  store float %213, ptr %30, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.b2DistanceProxy, ptr %214, i32 0, i32 3
  %216 = load float, ptr %215, align 4, !tbaa !37
  store float %216, ptr %31, align 4, !tbaa !12
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.b2DistanceOutput, ptr %217, i32 0, i32 2
  %219 = load float, ptr %218, align 4, !tbaa !29
  %220 = load float, ptr %30, align 4, !tbaa !12
  %221 = load float, ptr %31, align 4, !tbaa !12
  %222 = fadd float %220, %221
  %223 = fcmp ogt float %219, %222
  br i1 %223, label %224, label %251

224:                                              ; preds = %210
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.b2DistanceOutput, ptr %225, i32 0, i32 2
  %227 = load float, ptr %226, align 4, !tbaa !29
  %228 = fcmp ogt float %227, 0x3E80000000000000
  br i1 %228, label %229, label %251

229:                                              ; preds = %224
  %230 = load float, ptr %30, align 4, !tbaa !12
  %231 = load float, ptr %31, align 4, !tbaa !12
  %232 = fadd float %230, %231
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.b2DistanceOutput, ptr %233, i32 0, i32 2
  %235 = load float, ptr %234, align 4, !tbaa !29
  %236 = fsub float %235, %232
  store float %236, ptr %234, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.b2DistanceOutput, ptr %237, i32 0, i32 1
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.b2DistanceOutput, ptr %239, i32 0, i32 0
  %241 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %238, ptr noundef nonnull align 4 dereferenceable(8) %240)
  store <2 x float> %241, ptr %32, align 4
  %242 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %243 = load float, ptr %30, align 4, !tbaa !12
  %244 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %243, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store <2 x float> %244, ptr %33, align 4
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.b2DistanceOutput, ptr %245, i32 0, i32 0
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %246, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %247 = load float, ptr %31, align 4, !tbaa !12
  %248 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %247, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store <2 x float> %248, ptr %34, align 4
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.b2DistanceOutput, ptr %249, i32 0, i32 1
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %250, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %264

251:                                              ; preds = %224, %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.b2DistanceOutput, ptr %252, i32 0, i32 0
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.b2DistanceOutput, ptr %254, i32 0, i32 1
  %256 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %253, ptr noundef nonnull align 4 dereferenceable(8) %255)
  store <2 x float> %256, ptr %36, align 4
  %257 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(8) %36)
  store <2 x float> %257, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.b2DistanceOutput, ptr %258, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %259, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !22
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.b2DistanceOutput, ptr %260, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %261, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !22
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.b2DistanceOutput, ptr %262, i32 0, i32 2
  store float 0.000000e+00, ptr %263, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %264

264:                                              ; preds = %251, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %265

265:                                              ; preds = %264, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret void

266:                                              ; preds = %184
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5b2MaxIiET_S0_S0_(i32 noundef, i32 noundef) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9b2Simplex10WriteCacheEP14b2SimplexCache(ptr noundef nonnull align 4 dereferenceable(112), ptr noundef) #8 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

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

; 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

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 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !10, i64 108}
!15 = !{!"_ZTS9b2Simplex", !16, i64 0, !16, i64 36, !16, i64 72, !10, i64 108}
!16 = !{!"_ZTS15b2SimplexVertex", !17, i64 0, !17, i64 8, !17, i64 16, !13, i64 24, !10, i64 28, !10, i64 32}
!17 = !{!"_ZTS6b2Vec2", !13, i64 0, !13, i64 4}
!18 = !{!16, !10, i64 28}
!19 = !{!16, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = distinct !{!25, !21}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !21}
!29 = !{!30, !13, i64 16}
!30 = !{!"_ZTS16b2DistanceOutput", !17, i64 0, !17, i64 8, !13, i64 16, !10, i64 20}
!31 = !{!30, !10, i64 20}
!32 = !{!33, !24, i64 96}
!33 = !{!"_ZTS15b2DistanceInput", !34, i64 0, !34, i64 32, !35, i64 64, !35, i64 80, !24, i64 96}
!34 = !{!"_ZTS15b2DistanceProxy", !7, i64 0, !6, i64 16, !10, i64 24, !13, i64 28}
!35 = !{!"_ZTS11b2Transform", !17, i64 0, !36, i64 8}
!36 = !{!"_ZTS5b2Rot", !13, i64 0, !13, i64 4}
!37 = !{!34, !13, i64 28}


; 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 }

@b2_gjkCalls = external dso_local local_unnamed_addr global i32, align 4
@b2_gjkIters = external dso_local local_unnamed_addr global i32, align 4
@b2_gjkMaxIters = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput = external hidden unnamed_addr constant [79 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: mustprogress uwtable
declare dso_local void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %struct.b2Transform, align 4
  %5 = alloca %struct.b2Transform, align 4
  %6 = alloca %struct.b2Simplex, align 4
  %7 = alloca [3 x i32], align 4
  %8 = alloca [3 x i32], align 4
  %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 = load i32, ptr @b2_gjkCalls, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @b2_gjkCalls, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %2, i64 32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %20 = getelementptr inbounds i8, ptr %2, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %21 = getelementptr inbounds i8, ptr %2, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %21, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %6) #9
  call void @_ZN9b2SimplexC2Ev(ptr noundef nonnull align 4 dereferenceable(112) %6)
  call void @_ZN9b2Simplex9ReadCacheEPK14b2SimplexCachePK15b2DistanceProxyRK11b2TransformS5_S8_(ptr noundef nonnull align 4 dereferenceable(112) %6, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull %19, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #9
  %22 = getelementptr inbounds i8, ptr %6, i64 108
  %23 = getelementptr inbounds i8, ptr %4, i64 8
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %.pre = load i32, ptr %22, align 4, !tbaa !12
  br label %25

25:                                               ; preds = %3, %._crit_edge93
  %26 = phi i32 [ %.pre, %3 ], [ %92, %._crit_edge93 ]
  %.094 = phi i32 [ 0, %3 ], [ %77, %._crit_edge93 ]
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %25
  %wide.trip.count = zext nneg i32 %26 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %28 = icmp eq i32 %26, 1
  br i1 %28, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %29 = getelementptr inbounds %struct.b2SimplexVertex, ptr %6, i64 %indvars.iv.unr
  %30 = getelementptr inbounds i8, ptr %29, i64 28
  %31 = load i32, ptr %30, align 4, !tbaa !16
  %32 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %indvars.iv.unr
  store i32 %31, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %29, i64 32
  %34 = load i32, ptr %33, align 4, !tbaa !17
  %35 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %indvars.iv.unr
  store i32 %34, ptr %35, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %25
  switch i32 %26, label %52 [
    i32 1, label %53
    i32 2, label %50
    i32 3, label %51
  ]

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %36 = getelementptr inbounds %struct.b2SimplexVertex, ptr %6, i64 %indvars.iv
  %37 = getelementptr inbounds i8, ptr %36, i64 28
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %indvars.iv
  store i32 %38, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %36, i64 32
  %41 = load i32, ptr %40, align 4, !tbaa !17
  %42 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %indvars.iv
  store i32 %41, ptr %42, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %43 = getelementptr inbounds %struct.b2SimplexVertex, ptr %6, i64 %indvars.iv.next
  %44 = getelementptr inbounds i8, ptr %43, i64 28
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %indvars.iv.next
  store i32 %45, ptr %46, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %43, i64 32
  %48 = load i32, ptr %47, align 4, !tbaa !17
  %49 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %indvars.iv.next
  store i32 %48, ptr %49, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !18

50:                                               ; preds = %._crit_edge
  call void @_ZN9b2Simplex6Solve2Ev(ptr noundef nonnull align 4 dereferenceable(112) %6)
  br label %53

51:                                               ; preds = %._crit_edge
  call void @_ZN9b2Simplex6Solve3Ev(ptr noundef nonnull align 4 dereferenceable(112) %6)
  br label %53

52:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 483, ptr noundef nonnull @__PRETTY_FUNCTION__._Z10b2DistanceP16b2DistanceOutputP14b2SimplexCachePK15b2DistanceInput) #10
  unreachable

53:                                               ; preds = %51, %50, %._crit_edge
  %54 = load i32, ptr %22, align 4, !tbaa !12
  %55 = icmp eq i32 %54, 3
  br i1 %55, label %.loopexit, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %57 = call <2 x float> @_ZNK9b2Simplex18GetSearchDirectionEv(ptr noundef nonnull align 4 dereferenceable(112) %6)
  store <2 x float> %57, ptr %9, align 8
  %58 = call noundef float @_ZNK6b2Vec213LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %59 = fcmp olt float %58, 0x3D10000000000000
  br i1 %59, label %.thread, label %.lr.ph92

.lr.ph92:                                         ; preds = %56
  %60 = load i32, ptr %22, align 4, !tbaa !12
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.b2SimplexVertex, ptr %6, i64 %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %63 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %63, ptr %11, align 8
  %64 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %64, ptr %10, align 8
  %65 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %66 = getelementptr inbounds i8, ptr %62, i64 28
  store i32 %65, ptr %66, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %67 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %65)
  %68 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(8) %67)
  store <2 x float> %68, ptr %62, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %69 = call <2 x float> @_Z6b2MulTRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %69, ptr %12, align 8
  %70 = call noundef i32 @_ZNK15b2DistanceProxy10GetSupportERK6b2Vec2(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %71 = getelementptr inbounds i8, ptr %62, i64 32
  store i32 %70, ptr %71, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK15b2DistanceProxy9GetVertexEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %70)
  %73 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(8) %72)
  %74 = getelementptr inbounds i8, ptr %62, i64 8
  store <2 x float> %73, ptr %74, align 4
  %75 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(8) %62)
  %76 = getelementptr inbounds i8, ptr %62, i64 16
  store <2 x float> %75, ptr %76, align 4
  %77 = add nuw nsw i32 %.094, 1
  %78 = load i32, ptr @b2_gjkIters, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr @b2_gjkIters, align 4, !tbaa !5
  %80 = load i32, ptr %66, align 4, !tbaa !16
  %wide.trip.count103 = zext nneg i32 %26 to i64
  br label %81

81:                                               ; preds = %.lr.ph92, %90
  %indvars.iv100 = phi i64 [ 0, %.lr.ph92 ], [ %indvars.iv.next101, %90 ]
  %82 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 %indvars.iv100
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = icmp eq i32 %80, %83
  br i1 %84, label %85, label %90

85:                                               ; preds = %81
  %86 = load i32, ptr %71, align 4, !tbaa !17
  %87 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %indvars.iv100
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp eq i32 %86, %88
  br i1 %89, label %.thread, label %90

90:                                               ; preds = %81, %85
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count103
  br i1 %exitcond104.not, label %._crit_edge93, label %81, !llvm.loop !20

.thread:                                          ; preds = %56, %85
  %.1.ph = phi i32 [ %77, %85 ], [ %.094, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %.loopexit

._crit_edge93:                                    ; preds = %90
  %91 = load i32, ptr %22, align 4, !tbaa !12
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %22, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %exitcond105.not = icmp eq i32 %77, 20
  br i1 %exitcond105.not, label %.loopexit, label %25

.loopexit:                                        ; preds = %53, %._crit_edge93, %.thread
  %.2 = phi i32 [ %.1.ph, %.thread ], [ 20, %._crit_edge93 ], [ %.094, %53 ]
  %93 = load i32, ptr @b2_gjkMaxIters, align 4, !tbaa !5
  %94 = call noundef i32 @_Z5b2MaxIiET_S0_S0_(i32 noundef %93, i32 noundef %.2)
  store i32 %94, ptr @b2_gjkMaxIters, align 4, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNK9b2Simplex16GetWitnessPointsEP6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(112) %6, ptr noundef %0, ptr noundef nonnull %95)
  %96 = call noundef float @_Z10b2DistanceRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %95)
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  store float %96, ptr %97, align 4, !tbaa !21
  %98 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %.2, ptr %98, align 4, !tbaa !23
  call void @_ZNK9b2Simplex10WriteCacheEP14b2SimplexCache(ptr noundef nonnull align 4 dereferenceable(112) %6, ptr noundef %1)
  %99 = getelementptr inbounds i8, ptr %2, i64 96
  %100 = load i8, ptr %99, align 8, !tbaa !24, !range !31, !noundef !32
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %102, label %120

102:                                              ; preds = %.loopexit
  %103 = getelementptr inbounds i8, ptr %2, i64 28
  %104 = load float, ptr %103, align 4, !tbaa !33
  %105 = getelementptr inbounds i8, ptr %2, i64 60
  %106 = load float, ptr %105, align 4, !tbaa !33
  %107 = load float, ptr %97, align 4, !tbaa !21
  %108 = fadd float %104, %106
  %109 = fcmp ogt float %107, %108
  %110 = fcmp ogt float %107, 0x3E80000000000000
  %or.cond = and i1 %109, %110
  br i1 %or.cond, label %111, label %117

111:                                              ; preds = %102
  %112 = fsub float %107, %108
  store float %112, ptr %97, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %113 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %113, ptr %13, align 8
  %114 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %115 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %104, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %115, ptr %14, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %116 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %106, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %116, ptr %15, align 8
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %120

117:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %118 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %95)
  store <2 x float> %118, ptr %16, align 8
  %119 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  store <2 x float> %119, ptr %0, align 4
  store <2 x float> %119, ptr %95, align 4
  store float 0.000000e+00, ptr %97, align 4, !tbaa !21
  br label %120

120:                                              ; preds = %111, %117, %.loopexit
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5b2MaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9b2Simplex10WriteCacheEP14b2SimplexCache(ptr noundef nonnull align 4 dereferenceable(112), ptr noundef) local_unnamed_addr #8 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

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

; 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

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 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !6, i64 108}
!13 = !{!"_ZTS9b2Simplex", !14, i64 0, !14, i64 36, !14, i64 72, !6, i64 108}
!14 = !{!"_ZTS15b2SimplexVertex", !15, i64 0, !15, i64 8, !15, i64 16, !11, i64 24, !6, i64 28, !6, i64 32}
!15 = !{!"_ZTS6b2Vec2", !11, i64 0, !11, i64 4}
!16 = !{!14, !6, i64 28}
!17 = !{!14, !6, i64 32}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !11, i64 16}
!22 = !{!"_ZTS16b2DistanceOutput", !15, i64 0, !15, i64 8, !11, i64 16, !6, i64 20}
!23 = !{!22, !6, i64 20}
!24 = !{!25, !30, i64 96}
!25 = !{!"_ZTS15b2DistanceInput", !26, i64 0, !26, i64 32, !28, i64 64, !28, i64 80, !30, i64 96}
!26 = !{!"_ZTS15b2DistanceProxy", !7, i64 0, !27, i64 16, !6, i64 24, !11, i64 28}
!27 = !{!"any pointer", !7, i64 0}
!28 = !{!"_ZTS11b2Transform", !15, i64 0, !29, i64 8}
!29 = !{!"_ZTS5b2Rot", !11, i64 0, !11, i64 4}
!30 = !{!"bool", !7, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!26, !11, i64 28}


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