; LLVM IR from mtsamis/box2d-optimized :: src/collision (b2_collide_edge)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }
%struct.b2ContactFeature = type { i8, i8, i8, i8 }
%struct.b2Manifold = type { [2 x %struct.b2ManifoldPoint], %struct.b2Vec2, %struct.b2Vec2, i32, i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }
%union.b2ContactID = type { i32 }
%class.b2CircleShape = type { %class.b2Shape, %struct.b2Vec2 }
%class.b2Shape = type { ptr, i32, float }
%class.b2EdgeShape = type <{ %class.b2Shape, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__._Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_ = external hidden unnamed_addr constant [128 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(16) %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca float, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca float, align 4
  %26 = alloca %struct.b2ContactFeature, align 1
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca %struct.b2Vec2, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca float, align 4
  %34 = alloca %struct.b2Vec2, align 4
  %35 = alloca %struct.b2Vec2, align 4
  %36 = alloca %struct.b2Vec2, align 4
  %37 = alloca float, align 4
  %38 = alloca %struct.b2Vec2, align 4
  %39 = alloca %struct.b2Vec2, align 4
  %40 = alloca %struct.b2Vec2, align 4
  %41 = alloca float, align 4
  %42 = alloca %struct.b2Vec2, align 4
  %43 = alloca float, 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 float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.b2Manifold, ptr %50, i32 0, i32 4
  store i32 0, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.b2CircleShape, ptr %54, i32 0, i32 1
  %56 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(8) %55)
  store <2 x float> %56, ptr %12, align 4
  %57 = call <2 x float> @_Z6b2MulTRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %57, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.b2EdgeShape, ptr %58, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %59, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.b2EdgeShape, ptr %60, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %61, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %62 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %62, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %63 = getelementptr inbounds %struct.b2Vec2, ptr %15, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !17
  %65 = getelementptr inbounds %struct.b2Vec2, ptr %15, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !18
  %67 = fneg float %66
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %64, float noundef %67)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %68 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %68, ptr %18, align 4
  %69 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  store float %69, ptr %17, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.b2EdgeShape, ptr %70, i32 0, i32 5
  %72 = load i8, ptr %71, align 8, !tbaa !19, !range !24, !noundef !25
  %73 = trunc i8 %72 to i1
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %19, align 1, !tbaa !26
  %75 = load i8, ptr %19, align 1, !tbaa !26, !range !24, !noundef !25
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %81

77:                                               ; preds = %5
  %78 = load float, ptr %17, align 4, !tbaa !16
  %79 = fcmp olt float %78, 0.000000e+00
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i32 1, ptr %20, align 4
  br label %268

81:                                               ; preds = %77, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %82 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %82, ptr %22, align 4
  %83 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  store float %83, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %84 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %84, ptr %24, align 4
  %85 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  store float %85, ptr %23, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.b2Shape, ptr %86, i32 0, i32 2
  %88 = load float, ptr %87, align 4, !tbaa !27
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.b2Shape, ptr %89, i32 0, i32 2
  %91 = load float, ptr %90, align 4, !tbaa !27
  %92 = fadd float %88, %91
  store float %92, ptr %25, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %93 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 1
  store i8 0, ptr %93, align 1, !tbaa !28
  %94 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 3
  store i8 0, ptr %94, align 1, !tbaa !30
  %95 = load float, ptr %23, align 4, !tbaa !16
  %96 = fcmp ole float %95, 0.000000e+00
  br i1 %96, label %97, label %150

97:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %98 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %98, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %99 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store float %99, ptr %29, align 4, !tbaa !16
  %100 = load float, ptr %29, align 4, !tbaa !16
  %101 = load float, ptr %25, align 4, !tbaa !16
  %102 = load float, ptr %25, align 4, !tbaa !16
  %103 = fmul float %101, %102
  %104 = fcmp ogt float %100, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %97
  store i32 1, ptr %20, align 4
  br label %149

106:                                              ; preds = %97
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.b2EdgeShape, ptr %107, i32 0, i32 5
  %109 = load i8, ptr %108, align 8, !tbaa !19, !range !24, !noundef !25
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %124

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.b2EdgeShape, ptr %112, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %113, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %114 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %114, ptr %32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %115 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %115, ptr %34, align 4
  %116 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  store float %116, ptr %33, align 4, !tbaa !16
  %117 = load float, ptr %33, align 4, !tbaa !16
  %118 = fcmp ogt float %117, 0.000000e+00
  br i1 %118, label %119, label %120

119:                                              ; preds = %111
  store i32 1, ptr %20, align 4
  br label %121

120:                                              ; preds = %111
  store i32 0, ptr %20, align 4
  br label %121

121:                                              ; preds = %120, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  %122 = load i32, ptr %20, align 4
  switch i32 %122, label %149 [
    i32 0, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123, %106
  %125 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 0
  store i8 0, ptr %125, align 1, !tbaa !31
  %126 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 2
  store i8 0, ptr %126, align 1, !tbaa !32
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.b2Manifold, ptr %127, i32 0, i32 4
  store i32 1, ptr %128, align 4, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.b2Manifold, ptr %129, i32 0, i32 3
  store i32 0, ptr %130, align 4, !tbaa !33
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.b2Manifold, ptr %131, i32 0, i32 1
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %132)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.b2Manifold, ptr %133, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %134, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !15
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.b2Manifold, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %136, i64 0, i64 0
  %138 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %137, i32 0, i32 3
  store i32 0, ptr %138, align 4, !tbaa !34
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.b2Manifold, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %140, i64 0, i64 0
  %142 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %141, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %142, ptr align 1 %26, i64 4, i1 false), !tbaa.struct !35
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.b2CircleShape, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.b2Manifold, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %146, i64 0, i64 0
  %148 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %147, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %148, ptr align 8 %144, i64 8, i1 false), !tbaa.struct !15
  store i32 1, ptr %20, align 4
  br label %149

149:                                              ; preds = %124, %121, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %267

150:                                              ; preds = %81
  %151 = load float, ptr %21, align 4, !tbaa !16
  %152 = fcmp ole float %151, 0.000000e+00
  br i1 %152, label %153, label %206

153:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %154 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %154, ptr %36, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %155 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %36)
  store float %155, ptr %37, align 4, !tbaa !16
  %156 = load float, ptr %37, align 4, !tbaa !16
  %157 = load float, ptr %25, align 4, !tbaa !16
  %158 = load float, ptr %25, align 4, !tbaa !16
  %159 = fmul float %157, %158
  %160 = fcmp ogt float %156, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %153
  store i32 1, ptr %20, align 4
  br label %205

162:                                              ; preds = %153
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %class.b2EdgeShape, ptr %163, i32 0, i32 5
  %165 = load i8, ptr %164, align 8, !tbaa !19, !range !24, !noundef !25
  %166 = trunc i8 %165 to i1
  br i1 %166, label %167, label %180

167:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %class.b2EdgeShape, ptr %168, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %169, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %170 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %170, ptr %40, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %171 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %171, ptr %42, align 4
  %172 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  store float %172, ptr %41, align 4, !tbaa !16
  %173 = load float, ptr %41, align 4, !tbaa !16
  %174 = fcmp ogt float %173, 0.000000e+00
  br i1 %174, label %175, label %176

175:                                              ; preds = %167
  store i32 1, ptr %20, align 4
  br label %177

176:                                              ; preds = %167
  store i32 0, ptr %20, align 4
  br label %177

177:                                              ; preds = %176, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %178 = load i32, ptr %20, align 4
  switch i32 %178, label %205 [
    i32 0, label %179
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179, %162
  %181 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 0
  store i8 1, ptr %181, align 1, !tbaa !31
  %182 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 2
  store i8 0, ptr %182, align 1, !tbaa !32
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.b2Manifold, ptr %183, i32 0, i32 4
  store i32 1, ptr %184, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.b2Manifold, ptr %185, i32 0, i32 3
  store i32 0, ptr %186, align 4, !tbaa !33
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.b2Manifold, ptr %187, i32 0, i32 1
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %188)
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.b2Manifold, ptr %189, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %190, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !15
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.b2Manifold, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %192, i64 0, i64 0
  %194 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %193, i32 0, i32 3
  store i32 0, ptr %194, align 4, !tbaa !34
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.b2Manifold, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %196, i64 0, i64 0
  %198 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %197, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %198, ptr align 1 %26, i64 4, i1 false), !tbaa.struct !35
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %class.b2CircleShape, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.b2Manifold, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %202, i64 0, i64 0
  %204 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %203, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %204, ptr align 8 %200, i64 8, i1 false), !tbaa.struct !15
  store i32 1, ptr %20, align 4
  br label %205

205:                                              ; preds = %180, %177, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %267

206:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %207 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store float %207, ptr %43, align 4, !tbaa !16
  %208 = load float, ptr %43, align 4, !tbaa !16
  %209 = fcmp ogt float %208, 0.000000e+00
  br i1 %209, label %210, label %211

210:                                              ; preds = %206
  br label %213

211:                                              ; preds = %206
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 141, ptr noundef @__PRETTY_FUNCTION__._Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_) #9
  unreachable

212:                                              ; No predecessors!
  br label %213

213:                                              ; preds = %212, %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %214 = load float, ptr %43, align 4, !tbaa !16
  %215 = fdiv float 1.000000e+00, %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %216 = load float, ptr %21, align 4, !tbaa !16
  %217 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %216, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %217, ptr %46, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %218 = load float, ptr %23, align 4, !tbaa !16
  %219 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %218, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %219, ptr %47, align 4
  %220 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(8) %47)
  store <2 x float> %220, ptr %45, align 4
  %221 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %215, ptr noundef nonnull align 4 dereferenceable(8) %45)
  store <2 x float> %221, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %222 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %44)
  store <2 x float> %222, ptr %48, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %223 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %48)
  store float %223, ptr %49, align 4, !tbaa !16
  %224 = load float, ptr %49, align 4, !tbaa !16
  %225 = load float, ptr %25, align 4, !tbaa !16
  %226 = load float, ptr %25, align 4, !tbaa !16
  %227 = fmul float %225, %226
  %228 = fcmp ogt float %224, %227
  br i1 %228, label %229, label %230

229:                                              ; preds = %213
  store i32 1, ptr %20, align 4
  br label %266

230:                                              ; preds = %213
  %231 = load float, ptr %17, align 4, !tbaa !16
  %232 = fcmp olt float %231, 0.000000e+00
  br i1 %232, label %233, label %240

233:                                              ; preds = %230
  %234 = getelementptr inbounds %struct.b2Vec2, ptr %16, i32 0, i32 0
  %235 = load float, ptr %234, align 4, !tbaa !18
  %236 = fneg float %235
  %237 = getelementptr inbounds %struct.b2Vec2, ptr %16, i32 0, i32 1
  %238 = load float, ptr %237, align 4, !tbaa !17
  %239 = fneg float %238
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %236, float noundef %239)
  br label %240

240:                                              ; preds = %233, %230
  %241 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %242 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 0
  store i8 0, ptr %242, align 1, !tbaa !31
  %243 = getelementptr inbounds %struct.b2ContactFeature, ptr %26, i32 0, i32 2
  store i8 1, ptr %243, align 1, !tbaa !32
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.b2Manifold, ptr %244, i32 0, i32 4
  store i32 1, ptr %245, align 4, !tbaa !9
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.b2Manifold, ptr %246, i32 0, i32 3
  store i32 1, ptr %247, align 4, !tbaa !33
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.b2Manifold, ptr %248, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %249, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !15
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.b2Manifold, ptr %250, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %251, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !15
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.b2Manifold, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %253, i64 0, i64 0
  %255 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %254, i32 0, i32 3
  store i32 0, ptr %255, align 4, !tbaa !34
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.b2Manifold, ptr %256, i32 0, i32 0
  %258 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %257, i64 0, i64 0
  %259 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %258, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %259, ptr align 1 %26, i64 4, i1 false), !tbaa.struct !35
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.b2CircleShape, ptr %260, i32 0, i32 1
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.b2Manifold, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %263, i64 0, i64 0
  %265 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %264, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %265, ptr align 8 %261, i64 8, i1 false), !tbaa.struct !15
  store i32 0, ptr %20, align 4
  br label %266

266:                                              ; preds = %240, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %267

267:                                              ; preds = %266, %205, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %268

268:                                              ; preds = %267, %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %269 = load i32, ptr %20, align 4
  switch i32 %269, label %271 [
    i32 0, label %270
    i32 1, label %270
  ]

270:                                              ; preds = %268, %268
  ret void

271:                                              ; preds = %268
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !14, i64 60}
!10 = !{!"_ZTS10b2Manifold", !7, i64 0, !11, i64 40, !11, i64 48, !13, i64 56, !14, i64 60}
!11 = !{!"_ZTS6b2Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTSN10b2Manifold4TypeE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !16}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !12, i64 4}
!18 = !{!11, !12, i64 0}
!19 = !{!20, !23, i64 48}
!20 = !{!"_ZTS11b2EdgeShape", !21, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !23, i64 48}
!21 = !{!"_ZTS7b2Shape", !22, i64 8, !12, i64 12}
!22 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!23, !23, i64 0}
!27 = !{!21, !12, i64 12}
!28 = !{!29, !7, i64 1}
!29 = !{!"_ZTS16b2ContactFeature", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!30 = !{!29, !7, i64 3}
!31 = !{!29, !7, i64 0}
!32 = !{!29, !7, i64 2}
!33 = !{!10, !13, i64 56}
!34 = !{!7, !7, i64 0}
!35 = !{i64 0, i64 1, !34, i64 1, i64 1, !34, i64 2, i64 1, !34, i64 3, i64 1, !34}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__._Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_ = external hidden unnamed_addr constant [128 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(16) %4) local_unnamed_addr #0 {
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 8
  %12 = alloca %struct.b2Vec2, align 8
  %13 = alloca %struct.b2Vec2, align 8
  %14 = alloca %struct.b2Vec2, align 8
  %15 = alloca %struct.b2Vec2, align 8
  %16 = alloca %struct.b2Vec2, align 8
  %17 = alloca %struct.b2Vec2, align 8
  %18 = alloca %struct.b2Vec2, align 8
  %19 = alloca %struct.b2Vec2, align 8
  %20 = alloca %struct.b2Vec2, align 8
  %21 = alloca %struct.b2Vec2, align 8
  %22 = alloca %struct.b2Vec2, align 8
  %23 = alloca %struct.b2Vec2, align 8
  %24 = alloca %struct.b2Vec2, align 8
  %25 = alloca %struct.b2Vec2, align 8
  %26 = alloca %struct.b2Vec2, align 8
  %27 = alloca %struct.b2Vec2, align 8
  %28 = alloca %struct.b2Vec2, align 8
  %29 = alloca %struct.b2Vec2, align 8
  %30 = alloca %struct.b2Vec2, align 8
  %31 = alloca %struct.b2Vec2, align 8
  %32 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 0, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %33 = getelementptr inbounds i8, ptr %3, i64 16
  %34 = tail call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store <2 x float> %34, ptr %7, align 8
  %35 = call <2 x float> @_Z6b2MulTRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %35, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %36 = getelementptr inbounds i8, ptr %1, i64 16
  %37 = load i64, ptr %36, align 8
  store i64 %37, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %38 = getelementptr inbounds i8, ptr %1, i64 24
  %39 = load i64, ptr %38, align 8
  store i64 %39, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %40 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %40, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %41 = extractelement <2 x float> %40, i64 1
  %42 = extractelement <2 x float> %40, i64 0
  %43 = fneg float %42
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %41, float noundef %43)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %44 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %44, ptr %12, align 8
  %45 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %46 = getelementptr inbounds i8, ptr %1, i64 48
  %47 = load i8, ptr %46, align 8, !tbaa !13, !range !18, !noundef !19
  %48 = trunc nuw i8 %47 to i1
  %49 = fcmp olt float %45, 0.000000e+00
  %or.cond = and i1 %49, %48
  br i1 %or.cond, label %144, label %50

50:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %51 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %51, ptr %13, align 8
  %52 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %53 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %53, ptr %14, align 8
  %54 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %55 = getelementptr inbounds i8, ptr %1, i64 12
  %56 = load float, ptr %55, align 4, !tbaa !20
  %57 = getelementptr inbounds i8, ptr %3, i64 12
  %58 = load float, ptr %57, align 4, !tbaa !20
  %59 = fadd float %56, %58
  %60 = fcmp ugt float %54, 0.000000e+00
  br i1 %60, label %86, label %61

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %62 = load i64, ptr %8, align 8
  store i64 %62, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %63 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %63, ptr %16, align 8
  %64 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %65 = fmul float %59, %59
  %66 = fcmp ogt float %64, %65
  br i1 %66, label %85, label %67

67:                                               ; preds = %61
  %68 = load i8, ptr %46, align 8, !tbaa !13, !range !18, !noundef !19
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %70, label %78

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %71 = getelementptr inbounds i8, ptr %1, i64 32
  %72 = load i64, ptr %71, align 8
  store i64 %72, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %73 = load i64, ptr %8, align 8
  store i64 %73, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %74 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %74, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %75 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %75, ptr %20, align 8
  %76 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  %77 = fcmp ule float %76, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br i1 %77, label %78, label %85

78:                                               ; preds = %70, %67
  store i32 1, ptr %32, align 4, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %79, align 4, !tbaa !21
  %80 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %80)
  %81 = getelementptr inbounds i8, ptr %0, i64 48
  %82 = load i64, ptr %15, align 8
  store i64 %82, ptr %81, align 4
  %83 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 0, ptr %83, align 4
  %84 = load i64, ptr %33, align 8
  store i64 %84, ptr %0, align 4
  br label %85

85:                                               ; preds = %61, %70, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %144

86:                                               ; preds = %50
  %87 = fcmp ugt float %52, 0.000000e+00
  br i1 %87, label %113, label %88

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %89 = load i64, ptr %9, align 8
  store i64 %89, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %90 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %90, ptr %22, align 8
  %91 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %92 = fmul float %59, %59
  %93 = fcmp ogt float %91, %92
  br i1 %93, label %112, label %94

94:                                               ; preds = %88
  %95 = load i8, ptr %46, align 8, !tbaa !13, !range !18, !noundef !19
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %97, label %105

97:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %98 = getelementptr inbounds i8, ptr %1, i64 40
  %99 = load i64, ptr %98, align 8
  store i64 %99, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %100 = load i64, ptr %9, align 8
  store i64 %100, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %101 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %101, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %102 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %102, ptr %26, align 8
  %103 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  %104 = fcmp ule float %103, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br i1 %104, label %105, label %112

105:                                              ; preds = %97, %94
  store i32 1, ptr %32, align 4, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %106, align 4, !tbaa !21
  %107 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %107)
  %108 = getelementptr inbounds i8, ptr %0, i64 48
  %109 = load i64, ptr %21, align 8
  store i64 %109, ptr %108, align 4
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 1, ptr %110, align 4, !tbaa !22
  %111 = load i64, ptr %33, align 8
  store i64 %111, ptr %0, align 4
  br label %112

112:                                              ; preds = %88, %97, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %144

113:                                              ; preds = %86
  %114 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %115 = fcmp ogt float %114, 0.000000e+00
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 141, ptr noundef nonnull @__PRETTY_FUNCTION__._Z22b2CollideEdgeAndCircleP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK13b2CircleShapeS6_) #8
  unreachable

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %118 = fdiv float 1.000000e+00, %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %119 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %52, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %119, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %120 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %54, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %120, ptr %30, align 8
  %121 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %121, ptr %28, align 8
  %122 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %118, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %122, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  %123 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %123, ptr %31, align 8
  %124 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %125 = fmul float %59, %59
  %126 = fcmp ogt float %124, %125
  br i1 %126, label %143, label %127

127:                                              ; preds = %117
  br i1 %49, label %128, label %134

128:                                              ; preds = %127
  %129 = load float, ptr %11, align 8, !tbaa !23
  %130 = fneg float %129
  %131 = getelementptr inbounds i8, ptr %11, i64 4
  %132 = load float, ptr %131, align 4, !tbaa !24
  %133 = fneg float %132
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %130, float noundef %133)
  br label %134

134:                                              ; preds = %128, %127
  %135 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  store i32 1, ptr %32, align 4, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 1, ptr %136, align 4, !tbaa !21
  %137 = getelementptr inbounds i8, ptr %0, i64 40
  %138 = load i64, ptr %11, align 8
  store i64 %138, ptr %137, align 4
  %139 = getelementptr inbounds i8, ptr %0, i64 48
  %140 = load i64, ptr %8, align 8
  store i64 %140, ptr %139, align 4
  %141 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 65536, ptr %141, align 4, !tbaa !22
  %142 = load i64, ptr %33, align 8
  store i64 %142, ptr %0, align 4
  br label %143

143:                                              ; preds = %117, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br label %144

144:                                              ; preds = %85, %112, %143, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 = { nounwind }
attributes #8 = { 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, !12, i64 60}
!6 = !{!"_ZTS10b2Manifold", !7, i64 0, !9, i64 40, !9, i64 48, !11, i64 56, !12, i64 60}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!10 = !{!"float", !7, i64 0}
!11 = !{!"_ZTSN10b2Manifold4TypeE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !17, i64 48}
!14 = !{!"_ZTS11b2EdgeShape", !15, i64 0, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !17, i64 48}
!15 = !{!"_ZTS7b2Shape", !16, i64 8, !10, i64 12}
!16 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!15, !10, i64 12}
!21 = !{!6, !11, i64 56}
!22 = !{!7, !7, i64 0}
!23 = !{!9, !10, i64 0}
!24 = !{!9, !10, i64 4}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass