; LLVM IR from Mithreindeir/VelocityRaptor :: VelocityRaptor/src (vrCollision)

; 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.vrEdge = type { %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2 }
%struct.vrVec2 = type { float, float }
%struct.vrPolygonShape = type { ptr, i32, ptr, i32, %struct.vrVec2 }
%struct.vrCircleShape = type { float, %struct.vrVec2 }
%struct.vrManifold = type { ptr, ptr, [2 x %struct.vrContactPoint], i32, %struct.vrVec2, %struct.vrVec2, float, float, float, %struct.vrBlockSolverData, i32, i32, i32, i32 }
%struct.vrContactPoint = type { %struct.vrVec2, %struct.vrVec2, float, float, float, float, %struct.vrVec2, %struct.vrVec2, float, float, float, float, %struct.vrLocalPoint }
%struct.vrLocalPoint = type { float, %struct.vrVec2, ptr }
%struct.vrBlockSolverData = type { %struct.vrVec2, %struct.vrMat2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2 }
%struct.vrMat2 = type { %struct.vrVec2, %struct.vrVec2 }

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

declare <2 x float> @vrVect(float noundef, float noundef) #1

declare <2 x float> @vrSub(<2 x float>, <2 x float>) #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) #2

; Function Attrs: nounwind uwtable
declare dso_local void @vrPolyBestEdge(ptr dead_on_unwind noalias writable sret(%struct.vrEdge) align 4, ptr noundef byval(%struct.vrPolygonShape) align 8, i32 noundef, <2 x float>) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @vrPolyGetFarthestVertex(ptr noundef byval(%struct.vrPolygonShape) align 8, <2 x float>) #3

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

declare <2 x float> @vrNormalize(<2 x float>) #1

declare float @vrDot(<2 x float>, <2 x float>) #1

; Function Attrs: nounwind uwtable
define dso_local void @vrPolyCircle(ptr noundef %0, ptr noundef byval(%struct.vrPolygonShape) align 8 %1, <2 x float> %2, float %3) #3 {
  %5 = alloca %struct.vrCircleShape, align 4
  %6 = alloca { <2 x float>, float }, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %struct.vrVec2, align 4
  %9 = alloca float, align 4
  %10 = alloca %struct.vrVec2, align 4
  %11 = alloca float, align 4
  %12 = alloca %struct.vrVec2, align 4
  %13 = alloca %struct.vrEdge, align 4
  %14 = alloca %struct.vrVec2, align 4
  %15 = alloca %struct.vrEdge, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.vrEdge, align 4
  %20 = alloca float, align 4
  %21 = alloca %struct.vrVec2, align 4
  %22 = alloca %struct.vrVec2, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.vrVec2, align 4
  %25 = alloca %struct.vrVec2, align 4
  %26 = alloca float, align 4
  %27 = alloca %struct.vrVec2, align 4
  %28 = alloca %struct.vrVec2, align 4
  %29 = alloca %struct.vrVec2, align 4
  %30 = alloca %struct.vrVec2, align 4
  %31 = alloca %struct.vrVec2, align 4
  %32 = alloca %struct.vrVec2, align 4
  %33 = alloca %struct.vrVec2, align 4
  %34 = alloca %struct.vrEdge, align 4
  %35 = alloca %struct.vrVec2, align 4
  %36 = alloca %struct.vrVec2, align 4
  %37 = alloca %struct.vrVec2, align 4
  %38 = alloca %struct.vrVec2, align 4
  %39 = alloca %struct.vrVec2, align 4
  %40 = alloca %struct.vrVec2, align 4
  %41 = alloca float, align 4
  %42 = alloca %struct.vrVec2, align 4
  %43 = alloca %struct.vrVec2, align 4
  %44 = alloca %struct.vrVec2, align 4
  %45 = alloca float, align 4
  %46 = alloca %struct.vrVec2, align 4
  %47 = alloca %struct.vrVec2, align 4
  %48 = alloca i1, align 1
  %49 = getelementptr inbounds { <2 x float>, float }, ptr %6, i32 0, i32 0
  store <2 x float> %2, ptr %49, align 4
  %50 = getelementptr inbounds { <2 x float>, float }, ptr %6, i32 0, i32 1
  store float %3, ptr %50, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %6, i64 12, i1 false)
  store ptr %0, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.vrManifold, ptr %51, i32 0, i32 3
  store i32 0, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %53 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %54 = getelementptr inbounds %struct.vrPolygonShape, ptr %1, i32 0, i32 4
  %55 = load <2 x float>, ptr %53, align 4
  %56 = load <2 x float>, ptr %54, align 4
  %57 = call <2 x float> @vrSub(<2 x float> %55, <2 x float> %56)
  store <2 x float> %57, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %58 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !16
  %60 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %61 = load float, ptr %60, align 4, !tbaa !16
  %62 = fmul float %59, %61
  store float %62, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float -1.000000e+06, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !19
  br label %63

63:                                               ; preds = %115, %4
  %64 = load i32, ptr %17, align 4, !tbaa !19
  %65 = getelementptr inbounds %struct.vrPolygonShape, ptr %1, i32 0, i32 3
  %66 = load i32, ptr %65, align 8, !tbaa !20
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %63
  store i32 2, ptr %18, align 4
  br label %118

69:                                               ; preds = %63
  %70 = getelementptr inbounds %struct.vrPolygonShape, ptr %1, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = load i32, ptr %17, align 4, !tbaa !19
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %struct.vrVec2, ptr %71, i64 %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %74, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #4
  %75 = load <2 x float>, ptr %14, align 4
  %76 = call i32 @vrPolyGetFarthestVertex(ptr noundef byval(%struct.vrPolygonShape) align 8 %1, <2 x float> %75)
  %77 = load <2 x float>, ptr %14, align 4
  call void @vrPolyBestEdge(ptr dead_on_unwind writable sret(%struct.vrEdge) align 4 %19, ptr noundef byval(%struct.vrPolygonShape) align 8 %1, i32 noundef %76, <2 x float> %77)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %19, i64 40, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %78 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %79 = getelementptr inbounds %struct.vrEdge, ptr %15, i32 0, i32 0
  %80 = load <2 x float>, ptr %78, align 4
  %81 = load <2 x float>, ptr %79, align 4
  %82 = call <2 x float> @vrSub(<2 x float> %80, <2 x float> %81)
  store <2 x float> %82, ptr %21, align 4
  %83 = load <2 x float>, ptr %14, align 4
  %84 = load <2 x float>, ptr %21, align 4
  %85 = call float @vrDot(<2 x float> %83, <2 x float> %84)
  store float %85, ptr %20, align 4, !tbaa !18
  %86 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %87 = getelementptr inbounds %struct.vrEdge, ptr %15, i32 0, i32 1
  %88 = load <2 x float>, ptr %86, align 4
  %89 = load <2 x float>, ptr %87, align 4
  %90 = call <2 x float> @vrSub(<2 x float> %88, <2 x float> %89)
  store <2 x float> %90, ptr %22, align 4
  %91 = load <2 x float>, ptr %14, align 4
  %92 = load <2 x float>, ptr %22, align 4
  %93 = call float @vrDot(<2 x float> %91, <2 x float> %92)
  store float %93, ptr %16, align 4, !tbaa !18
  %94 = load float, ptr %16, align 4, !tbaa !18
  %95 = load float, ptr %20, align 4, !tbaa !18
  %96 = fcmp ogt float %94, %95
  br i1 %96, label %97, label %99

97:                                               ; preds = %69
  %98 = load float, ptr %16, align 4, !tbaa !18
  store float %98, ptr %20, align 4, !tbaa !18
  br label %99

99:                                               ; preds = %97, %69
  %100 = load float, ptr %20, align 4, !tbaa !18
  %101 = load float, ptr %11, align 4, !tbaa !18
  %102 = fcmp ogt float %100, %101
  br i1 %102, label %103, label %111

103:                                              ; preds = %99
  %104 = load float, ptr %20, align 4, !tbaa !18
  store float %104, ptr %11, align 4, !tbaa !18
  %105 = load float, ptr %11, align 4, !tbaa !18
  %106 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !16
  %108 = fcmp ogt float %105, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %103
  store i32 1, ptr %18, align 4
  br label %112

110:                                              ; preds = %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %15, i64 40, i1 false), !tbaa.struct !24
  br label %111

111:                                              ; preds = %110, %99
  store i32 0, ptr %18, align 4
  br label %112

112:                                              ; preds = %111, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %113 = load i32, ptr %18, align 4
  switch i32 %113, label %118 [
    i32 0, label %114
  ]

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %17, align 4, !tbaa !19
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %17, align 4, !tbaa !19
  br label %63, !llvm.loop !25

118:                                              ; preds = %112, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %119 = load i32, ptr %18, align 4
  switch i32 %119, label %336 [
    i32 2, label %120
  ]

120:                                              ; preds = %118
  %121 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = load float, ptr %11, align 4, !tbaa !18
  %124 = fsub float %122, %123
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.vrManifold, ptr %125, i32 0, i32 8
  store float %124, ptr %126, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %127 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %128 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %129 = load <2 x float>, ptr %127, align 4
  %130 = load <2 x float>, ptr %128, align 4
  %131 = call <2 x float> @vrSub(<2 x float> %129, <2 x float> %130)
  store <2 x float> %131, ptr %24, align 4
  %132 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %133 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %134 = load <2 x float>, ptr %132, align 4
  %135 = load <2 x float>, ptr %133, align 4
  %136 = call <2 x float> @vrSub(<2 x float> %134, <2 x float> %135)
  store <2 x float> %136, ptr %25, align 4
  %137 = load <2 x float>, ptr %24, align 4
  %138 = load <2 x float>, ptr %25, align 4
  %139 = call float @vrDot(<2 x float> %137, <2 x float> %138)
  store float %139, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %140 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %141 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %142 = load <2 x float>, ptr %140, align 4
  %143 = load <2 x float>, ptr %141, align 4
  %144 = call <2 x float> @vrSub(<2 x float> %142, <2 x float> %143)
  store <2 x float> %144, ptr %27, align 4
  %145 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %146 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %147 = load <2 x float>, ptr %145, align 4
  %148 = load <2 x float>, ptr %146, align 4
  %149 = call <2 x float> @vrSub(<2 x float> %147, <2 x float> %148)
  store <2 x float> %149, ptr %28, align 4
  %150 = load <2 x float>, ptr %27, align 4
  %151 = load <2 x float>, ptr %28, align 4
  %152 = call float @vrDot(<2 x float> %150, <2 x float> %151)
  store float %152, ptr %26, align 4, !tbaa !18
  %153 = load float, ptr %23, align 4, !tbaa !18
  %154 = fcmp ole float %153, 0.000000e+00
  br i1 %154, label %155, label %195

155:                                              ; preds = %120
  %156 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %157 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %158 = load <2 x float>, ptr %156, align 4
  %159 = load <2 x float>, ptr %157, align 4
  %160 = call float @vrDist_Sqr(<2 x float> %158, <2 x float> %159)
  %161 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %162 = load float, ptr %161, align 4, !tbaa !16
  %163 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !16
  %165 = fmul float %162, %164
  %166 = fcmp ogt float %160, %165
  br i1 %166, label %167, label %168

167:                                              ; preds = %155
  store i32 1, ptr %18, align 4
  br label %335

168:                                              ; preds = %155
  %169 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %169, i64 8, i1 false), !tbaa.struct !23
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.vrManifold, ptr %170, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %172 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %173 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %174 = load <2 x float>, ptr %172, align 4
  %175 = load <2 x float>, ptr %173, align 4
  %176 = call <2 x float> @vrSub(<2 x float> %174, <2 x float> %175)
  store <2 x float> %176, ptr %30, align 4
  %177 = load <2 x float>, ptr %30, align 4
  %178 = call <2 x float> @vrNormalize(<2 x float> %177)
  store <2 x float> %178, ptr %29, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %171, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  %179 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %180 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 0
  %181 = load <2 x float>, ptr %179, align 4
  %182 = load <2 x float>, ptr %180, align 4
  %183 = call float @vrDist(<2 x float> %181, <2 x float> %182)
  %184 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !16
  %186 = fsub float %183, %185
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.vrManifold, ptr %187, i32 0, i32 8
  store float %186, ptr %188, align 4, !tbaa !27
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.vrManifold, ptr %189, i32 0, i32 8
  %191 = load float, ptr %190, align 4, !tbaa !27
  %192 = fneg float %191
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.vrManifold, ptr %193, i32 0, i32 8
  store float %192, ptr %194, align 4, !tbaa !27
  br label %281

195:                                              ; preds = %120
  %196 = load float, ptr %26, align 4, !tbaa !18
  %197 = fcmp ole float %196, 0.000000e+00
  br i1 %197, label %198, label %238

198:                                              ; preds = %195
  %199 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %200 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %201 = load <2 x float>, ptr %199, align 4
  %202 = load <2 x float>, ptr %200, align 4
  %203 = call float @vrDist_Sqr(<2 x float> %201, <2 x float> %202)
  %204 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %205 = load float, ptr %204, align 4, !tbaa !16
  %206 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %207 = load float, ptr %206, align 4, !tbaa !16
  %208 = fmul float %205, %207
  %209 = fcmp ogt float %203, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %198
  store i32 1, ptr %18, align 4
  br label %335

211:                                              ; preds = %198
  %212 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %212, i64 8, i1 false), !tbaa.struct !23
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.vrManifold, ptr %213, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %215 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %216 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %217 = load <2 x float>, ptr %215, align 4
  %218 = load <2 x float>, ptr %216, align 4
  %219 = call <2 x float> @vrSub(<2 x float> %217, <2 x float> %218)
  store <2 x float> %219, ptr %32, align 4
  %220 = load <2 x float>, ptr %32, align 4
  %221 = call <2 x float> @vrNormalize(<2 x float> %220)
  store <2 x float> %221, ptr %31, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %214, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  %222 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %223 = getelementptr inbounds %struct.vrEdge, ptr %13, i32 0, i32 1
  %224 = load <2 x float>, ptr %222, align 4
  %225 = load <2 x float>, ptr %223, align 4
  %226 = call float @vrDist(<2 x float> %224, <2 x float> %225)
  %227 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %228 = load float, ptr %227, align 4, !tbaa !16
  %229 = fsub float %226, %228
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.vrManifold, ptr %230, i32 0, i32 8
  store float %229, ptr %231, align 4, !tbaa !27
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.vrManifold, ptr %232, i32 0, i32 8
  %234 = load float, ptr %233, align 4, !tbaa !27
  %235 = fneg float %234
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.vrManifold, ptr %236, i32 0, i32 8
  store float %235, ptr %237, align 4, !tbaa !27
  br label %280

238:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 40, ptr %34) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %13, i64 40, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %239 = getelementptr inbounds %struct.vrEdge, ptr %34, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %239, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %240 = getelementptr inbounds %struct.vrEdge, ptr %34, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %240, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %241 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %241, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %242 = load <2 x float>, ptr %36, align 4
  %243 = load <2 x float>, ptr %35, align 4
  %244 = call <2 x float> @vrSub(<2 x float> %242, <2 x float> %243)
  store <2 x float> %244, ptr %40, align 4
  %245 = load <2 x float>, ptr %40, align 4
  %246 = call <2 x float> @vrNormalize(<2 x float> %245)
  store <2 x float> %246, ptr %39, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  %247 = load <2 x float>, ptr %37, align 4
  %248 = load <2 x float>, ptr %35, align 4
  %249 = call <2 x float> @vrSub(<2 x float> %247, <2 x float> %248)
  store <2 x float> %249, ptr %42, align 4
  %250 = load <2 x float>, ptr %42, align 4
  %251 = load <2 x float>, ptr %39, align 4
  %252 = call float @vrDot(<2 x float> %250, <2 x float> %251)
  store float %252, ptr %41, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %253 = load float, ptr %41, align 4, !tbaa !18
  %254 = load <2 x float>, ptr %39, align 4
  %255 = call <2 x float> @vrScale(<2 x float> %254, float noundef %253)
  store <2 x float> %255, ptr %44, align 4
  %256 = load <2 x float>, ptr %35, align 4
  %257 = load <2 x float>, ptr %44, align 4
  %258 = call <2 x float> @vrAdd(<2 x float> %256, <2 x float> %257)
  store <2 x float> %258, ptr %43, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %259 = load <2 x float>, ptr %38, align 4
  %260 = load <2 x float>, ptr %37, align 4
  %261 = call float @vrDist(<2 x float> %259, <2 x float> %260)
  store float %261, ptr %45, align 4, !tbaa !18
  %262 = load float, ptr %45, align 4, !tbaa !18
  %263 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 0
  %264 = load float, ptr %263, align 4, !tbaa !16
  %265 = fcmp ole float %262, %264
  br i1 %265, label %266, label %275

266:                                              ; preds = %238
  %267 = load float, ptr %41, align 4, !tbaa !18
  %268 = load <2 x float>, ptr %35, align 4
  %269 = load <2 x float>, ptr %36, align 4
  %270 = call float @vrDist(<2 x float> %268, <2 x float> %269)
  %271 = fcmp olt float %267, %270
  br i1 %271, label %272, label %275

272:                                              ; preds = %266
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.vrManifold, ptr %273, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %274, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !23
  br label %276

275:                                              ; preds = %266, %238
  store i32 1, ptr %18, align 4
  br label %277

276:                                              ; preds = %272
  store i32 0, ptr %18, align 4
  br label %277

277:                                              ; preds = %276, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  %278 = load i32, ptr %18, align 4
  switch i32 %278, label %335 [
    i32 0, label %279
  ]

279:                                              ; preds = %277
  br label %280

280:                                              ; preds = %279, %211
  br label %281

281:                                              ; preds = %280, %168
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.vrManifold, ptr %282, i32 0, i32 3
  store i32 1, ptr %283, align 8, !tbaa !9
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.vrManifold, ptr %284, i32 0, i32 4
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.vrManifold, ptr %286, i32 0, i32 4
  %288 = getelementptr inbounds %struct.vrCircleShape, ptr %5, i32 0, i32 1
  %289 = getelementptr inbounds %struct.vrPolygonShape, ptr %1, i32 0, i32 4
  %290 = load <2 x float>, ptr %288, align 4
  %291 = load <2 x float>, ptr %289, align 4
  %292 = call <2 x float> @vrSub(<2 x float> %290, <2 x float> %291)
  store <2 x float> %292, ptr %46, align 4
  %293 = load <2 x float>, ptr %287, align 4
  %294 = load <2 x float>, ptr %46, align 4
  %295 = call float @vrDot(<2 x float> %293, <2 x float> %294)
  %296 = fcmp oge float %295, 0.000000e+00
  store i1 false, ptr %48, align 1
  br i1 %296, label %297, label %309

297:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  store i1 true, ptr %48, align 1
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.vrManifold, ptr %298, i32 0, i32 4
  %300 = getelementptr inbounds %struct.vrVec2, ptr %299, i32 0, i32 0
  %301 = load float, ptr %300, align 4, !tbaa !28
  %302 = fneg float %301
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.vrManifold, ptr %303, i32 0, i32 4
  %305 = getelementptr inbounds %struct.vrVec2, ptr %304, i32 0, i32 1
  %306 = load float, ptr %305, align 4, !tbaa !29
  %307 = fneg float %306
  %308 = call <2 x float> @vrVect(float noundef %302, float noundef %307)
  store <2 x float> %308, ptr %47, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %285, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  br label %312

309:                                              ; preds = %281
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.vrManifold, ptr %310, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %285, ptr align 4 %311, i64 8, i1 false), !tbaa.struct !23
  br label %312

312:                                              ; preds = %309, %297
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.vrManifold, ptr %313, i32 0, i32 2
  %315 = getelementptr inbounds [2 x %struct.vrContactPoint], ptr %314, i64 0, i64 0
  %316 = getelementptr inbounds %struct.vrContactPoint, ptr %315, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %316, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !23
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.vrManifold, ptr %317, i32 0, i32 8
  %319 = load float, ptr %318, align 4, !tbaa !27
  %320 = fneg float %319
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.vrManifold, ptr %321, i32 0, i32 2
  %323 = getelementptr inbounds [2 x %struct.vrContactPoint], ptr %322, i64 0, i64 0
  %324 = getelementptr inbounds %struct.vrContactPoint, ptr %323, i32 0, i32 2
  store float %320, ptr %324, align 8, !tbaa !30
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.vrManifold, ptr %325, i32 0, i32 2
  %327 = getelementptr inbounds [2 x %struct.vrContactPoint], ptr %326, i64 0, i64 0
  %328 = getelementptr inbounds %struct.vrContactPoint, ptr %327, i32 0, i32 3
  store float 0.000000e+00, ptr %328, align 4, !tbaa !33
  %329 = load ptr, ptr %7, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.vrManifold, ptr %329, i32 0, i32 2
  %331 = getelementptr inbounds [2 x %struct.vrContactPoint], ptr %330, i64 0, i64 0
  %332 = getelementptr inbounds %struct.vrContactPoint, ptr %331, i32 0, i32 4
  store float 0.000000e+00, ptr %332, align 8, !tbaa !34
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.vrManifold, ptr %333, i32 0, i32 10
  store i32 0, ptr %334, align 8, !tbaa !35
  store i32 0, ptr %18, align 4
  br label %335

335:                                              ; preds = %312, %277, %210, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %336

336:                                              ; preds = %335, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %337 = load i32, ptr %18, align 4
  switch i32 %337, label %339 [
    i32 0, label %338
    i32 1, label %338
  ]

338:                                              ; preds = %336, %336
  ret void

339:                                              ; preds = %336
  unreachable
}

declare float @vrDist_Sqr(<2 x float>, <2 x float>) #1

declare float @vrDist(<2 x float>, <2 x float>) #1

declare <2 x float> @vrAdd(<2 x float>, <2 x float>) #1

declare <2 x float> @vrScale(<2 x float>, float noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 192}
!10 = !{!"vrManifold", !6, i64 0, !6, i64 8, !7, i64 16, !11, i64 192, !12, i64 196, !12, i64 204, !13, i64 212, !13, i64 216, !13, i64 220, !14, i64 224, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292}
!11 = !{!"int", !7, i64 0}
!12 = !{!"vrVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"vrBlockSolverData", !12, i64 0, !15, i64 8, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!15 = !{!"vrMat2", !12, i64 0, !12, i64 8}
!16 = !{!17, !13, i64 0}
!17 = !{!"vrCircleShape", !13, i64 0, !12, i64 4}
!18 = !{!13, !13, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !11, i64 24}
!21 = !{!"vrPolygonShape", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !12, i64 28}
!22 = !{!21, !6, i64 16}
!23 = !{i64 0, i64 4, !18, i64 4, i64 4, !18}
!24 = !{i64 0, i64 4, !18, i64 4, i64 4, !18, i64 8, i64 4, !18, i64 12, i64 4, !18, i64 16, i64 4, !18, i64 20, i64 4, !18, i64 24, i64 4, !18, i64 28, i64 4, !18, i64 32, i64 4, !18, i64 36, i64 4, !18}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !13, i64 220}
!28 = !{!10, !13, i64 196}
!29 = !{!10, !13, i64 200}
!30 = !{!31, !13, i64 16}
!31 = !{!"vrContactPoint", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !32, i64 64}
!32 = !{!"vrLocalPoint", !13, i64 0, !12, i64 4, !6, i64 16}
!33 = !{!31, !13, i64 20}
!34 = !{!31, !13, i64 24}
!35 = !{!10, !11, i64 280}


; 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.vrEdge = type { %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2 }
%struct.vrVec2 = type { float, float }
%struct.vrPolygonShape = type { ptr, i32, ptr, i32, %struct.vrVec2 }
%struct.vrCircleShape = type { float, %struct.vrVec2 }

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

declare <2 x float> @vrVect(float noundef, float noundef) local_unnamed_addr #1

declare <2 x float> @vrSub(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @vrPolyBestEdge(ptr dead_on_unwind noalias writable sret(%struct.vrEdge) align 4, ptr noundef byval(%struct.vrPolygonShape) align 8, i32 noundef, <2 x float>) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @vrPolyGetFarthestVertex(ptr noundef byval(%struct.vrPolygonShape) align 8, <2 x float>) 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) #0

declare <2 x float> @vrNormalize(<2 x float>) local_unnamed_addr #1

declare float @vrDot(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @vrPolyCircle(ptr nocapture noundef %0, ptr noundef byval(%struct.vrPolygonShape) align 8 %1, <2 x float> %2, float %3) local_unnamed_addr #2 {
  %5 = alloca %struct.vrCircleShape, align 8
  %6 = alloca %struct.vrEdge, align 8
  store <2 x float> %2, ptr %5, align 8
  %.8.sroa_idx181 = getelementptr inbounds i8, ptr %5, i64 8
  store float %3, ptr %.8.sroa_idx181, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 0, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 28
  %.4.sroa_idx180 = getelementptr inbounds i8, ptr %5, i64 4
  %.4..4..4..4. = load <2 x float>, ptr %.4.sroa_idx180, align 4
  %9 = load <2 x float>, ptr %8, align 4
  %10 = tail call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %9) #3
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %.not169 = icmp sgt i32 %12, 0
  %13 = extractelement <2 x float> %2, i64 0
  br i1 %.not169, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.546.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %15

15:                                               ; preds = %.lr.ph, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %27 ]
  %.0174 = phi float [ -1.000000e+06, %.lr.ph ], [ %.2.ph, %27 ]
  %.sroa.068.0173 = phi <2 x float> [ undef, %.lr.ph ], [ %.sroa.068.2.ph, %27 ]
  %.sroa.11.0172 = phi <2 x float> [ undef, %.lr.ph ], [ %.sroa.11.2.ph, %27 ]
  %.sroa.055.0171 = phi <2 x float> [ undef, %.lr.ph ], [ %.sroa.055.2.ph, %27 ]
  %16 = load ptr, ptr %14, align 8, !tbaa !17
  %17 = getelementptr inbounds %struct.vrVec2, ptr %16, i64 %indvars.iv
  %.sroa.050.0.copyload = load <2 x float>, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  %18 = call i32 @vrPolyGetFarthestVertex(ptr noundef nonnull byval(%struct.vrPolygonShape) align 8 %1, <2 x float> %.sroa.050.0.copyload)
  call void @vrPolyBestEdge(ptr dead_on_unwind nonnull writable sret(%struct.vrEdge) align 4 %6, ptr noundef nonnull byval(%struct.vrPolygonShape) align 8 %1, i32 noundef %18, <2 x float> %.sroa.050.0.copyload)
  %.sroa.044.0.copyload = load <2 x float>, ptr %6, align 8
  %.sroa.546.0.copyload = load <2 x float>, ptr %.sroa.546.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  %19 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.044.0.copyload) #3
  %20 = call float @vrDot(<2 x float> %.sroa.050.0.copyload, <2 x float> %19) #3
  %21 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.546.0.copyload) #3
  %22 = call float @vrDot(<2 x float> %.sroa.050.0.copyload, <2 x float> %21) #3
  %23 = fcmp ogt float %22, %20
  %.0138 = select i1 %23, float %22, float %20
  %24 = fcmp ogt float %.0138, %.0174
  br i1 %24, label %25, label %27

25:                                               ; preds = %15
  %26 = fcmp ogt float %.0138, %13
  br i1 %26, label %.thread160, label %27

27:                                               ; preds = %25, %15
  %.sroa.055.2.ph = phi <2 x float> [ %.sroa.055.0171, %15 ], [ %.sroa.044.0.copyload, %25 ]
  %.sroa.11.2.ph = phi <2 x float> [ %.sroa.11.0172, %15 ], [ %.sroa.546.0.copyload, %25 ]
  %.sroa.068.2.ph = phi <2 x float> [ %.sroa.068.0173, %15 ], [ %.sroa.050.0.copyload, %25 ]
  %.2.ph = phi float [ %.0174, %15 ], [ %.0138, %25 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr %11, align 8, !tbaa !15
  %29 = sext i32 %28 to i64
  %.not = icmp slt i64 %indvars.iv.next, %29
  br i1 %.not, label %15, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %27, %4
  %.sroa.055.0.lcssa = phi <2 x float> [ undef, %4 ], [ %.sroa.055.2.ph, %27 ]
  %.sroa.11.0.lcssa = phi <2 x float> [ undef, %4 ], [ %.sroa.11.2.ph, %27 ]
  %.sroa.068.0.lcssa = phi <2 x float> [ undef, %4 ], [ %.sroa.068.2.ph, %27 ]
  %.0.lcssa = phi float [ -1.000000e+06, %4 ], [ %.2.ph, %27 ]
  %30 = fsub float %13, %.0.lcssa
  %31 = getelementptr inbounds i8, ptr %0, i64 220
  store float %30, ptr %31, align 4, !tbaa !20
  %32 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.055.0.lcssa) #3
  %33 = call <2 x float> @vrSub(<2 x float> %.sroa.11.0.lcssa, <2 x float> %.sroa.055.0.lcssa) #3
  %34 = call float @vrDot(<2 x float> %32, <2 x float> %33) #3
  %35 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.11.0.lcssa) #3
  %36 = call <2 x float> @vrSub(<2 x float> %.sroa.055.0.lcssa, <2 x float> %.sroa.11.0.lcssa) #3
  %37 = call float @vrDot(<2 x float> %35, <2 x float> %36) #3
  %38 = fcmp ugt float %34, 0.000000e+00
  br i1 %38, label %51, label %39

39:                                               ; preds = %._crit_edge
  %40 = call float @vrDist_Sqr(<2 x float> %.4..4..4..4., <2 x float> %.sroa.055.0.lcssa) #3
  %41 = fmul <2 x float> %2, %2
  %42 = extractelement <2 x float> %41, i64 0
  %43 = fcmp ogt float %40, %42
  br i1 %43, label %.thread160, label %44

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %0, i64 196
  %46 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.055.0.lcssa) #3
  %47 = call <2 x float> @vrNormalize(<2 x float> %46) #3
  store <2 x float> %47, ptr %45, align 4
  %48 = call float @vrDist(<2 x float> %.4..4..4..4., <2 x float> %.sroa.055.0.lcssa) #3
  %49 = fsub float %48, %13
  %50 = fneg float %49
  store float %50, ptr %31, align 4, !tbaa !20
  br label %78

51:                                               ; preds = %._crit_edge
  %52 = fcmp ugt float %37, 0.000000e+00
  br i1 %52, label %65, label %53

53:                                               ; preds = %51
  %54 = call float @vrDist_Sqr(<2 x float> %.4..4..4..4., <2 x float> %.sroa.11.0.lcssa) #3
  %55 = fmul <2 x float> %2, %2
  %56 = extractelement <2 x float> %55, i64 0
  %57 = fcmp ogt float %54, %56
  br i1 %57, label %.thread160, label %58

58:                                               ; preds = %53
  %59 = getelementptr inbounds i8, ptr %0, i64 196
  %60 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.11.0.lcssa) #3
  %61 = call <2 x float> @vrNormalize(<2 x float> %60) #3
  store <2 x float> %61, ptr %59, align 4
  %62 = call float @vrDist(<2 x float> %.4..4..4..4., <2 x float> %.sroa.11.0.lcssa) #3
  %63 = fsub float %62, %13
  %64 = fneg float %63
  store float %64, ptr %31, align 4, !tbaa !20
  br label %78

65:                                               ; preds = %51
  %66 = call <2 x float> @vrSub(<2 x float> %.sroa.11.0.lcssa, <2 x float> %.sroa.055.0.lcssa) #3
  %67 = call <2 x float> @vrNormalize(<2 x float> %66) #3
  %68 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %.sroa.055.0.lcssa) #3
  %69 = call float @vrDot(<2 x float> %68, <2 x float> %67) #3
  %70 = call <2 x float> @vrScale(<2 x float> %67, float noundef %69) #3
  %71 = call <2 x float> @vrAdd(<2 x float> %.sroa.055.0.lcssa, <2 x float> %70) #3
  %72 = call float @vrDist(<2 x float> %71, <2 x float> %.4..4..4..4.) #3
  %73 = fcmp ugt float %72, %13
  br i1 %73, label %.thread160, label %74

74:                                               ; preds = %65
  %75 = call float @vrDist(<2 x float> %.sroa.055.0.lcssa, <2 x float> %.sroa.11.0.lcssa) #3
  %76 = fcmp olt float %69, %75
  br i1 %76, label %.critedge, label %.thread160

.critedge:                                        ; preds = %74
  %77 = getelementptr inbounds i8, ptr %0, i64 196
  store <2 x float> %.sroa.068.0.lcssa, ptr %77, align 4
  br label %78

78:                                               ; preds = %.critedge, %58, %44
  %.sroa.074.1 = phi <2 x float> [ %.sroa.055.0.lcssa, %44 ], [ %.sroa.11.0.lcssa, %58 ], [ %71, %.critedge ]
  store i32 1, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %0, i64 196
  %80 = load <2 x float>, ptr %8, align 4
  %81 = call <2 x float> @vrSub(<2 x float> %.4..4..4..4., <2 x float> %80) #3
  %82 = load <2 x float>, ptr %79, align 4
  %83 = call float @vrDot(<2 x float> %82, <2 x float> %81) #3
  %84 = fcmp ult float %83, 0.000000e+00
  br i1 %84, label %92, label %85

85:                                               ; preds = %78
  %86 = load float, ptr %79, align 4, !tbaa !21
  %87 = fneg float %86
  %88 = getelementptr inbounds i8, ptr %0, i64 200
  %89 = load float, ptr %88, align 4, !tbaa !22
  %90 = fneg float %89
  %91 = call <2 x float> @vrVect(float noundef %87, float noundef %90) #3
  store <2 x float> %91, ptr %79, align 4
  br label %92

92:                                               ; preds = %78, %85
  %93 = getelementptr inbounds i8, ptr %0, i64 24
  store <2 x float> %.sroa.074.1, ptr %93, align 8
  %94 = load float, ptr %31, align 4, !tbaa !20
  %95 = fneg float %94
  %96 = getelementptr inbounds i8, ptr %0, i64 32
  store float %95, ptr %96, align 8, !tbaa !23
  %97 = getelementptr inbounds i8, ptr %0, i64 36
  store <2 x float> zeroinitializer, ptr %97, align 4, !tbaa !26
  %98 = getelementptr inbounds i8, ptr %0, i64 280
  store i32 0, ptr %98, align 8, !tbaa !27
  br label %.thread160

.thread160:                                       ; preds = %25, %92, %39, %53, %65, %74
  ret void
}

declare float @vrDist_Sqr(<2 x float>, <2 x float>) local_unnamed_addr #1

declare float @vrDist(<2 x float>, <2 x float>) local_unnamed_addr #1

declare <2 x float> @vrAdd(<2 x float>, <2 x float>) local_unnamed_addr #1

declare <2 x float> @vrScale(<2 x float>, float noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !10, i64 192}
!6 = !{!"vrManifold", !7, i64 0, !7, i64 8, !8, i64 16, !10, i64 192, !11, i64 196, !11, i64 204, !12, i64 212, !12, i64 216, !12, i64 220, !13, i64 224, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"vrVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"vrBlockSolverData", !11, i64 0, !14, i64 8, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!14 = !{!"vrMat2", !11, i64 0, !11, i64 8}
!15 = !{!16, !10, i64 24}
!16 = !{!"vrPolygonShape", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !11, i64 28}
!17 = !{!16, !7, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !12, i64 220}
!21 = !{!6, !12, i64 196}
!22 = !{!6, !12, i64 200}
!23 = !{!24, !12, i64 16}
!24 = !{!"vrContactPoint", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !25, i64 64}
!25 = !{!"vrLocalPoint", !12, i64 0, !11, i64 4, !7, i64 16}
!26 = !{!12, !12, i64 0}
!27 = !{!6, !10, i64 280}


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