; LLVM IR from SOHNE/Dura2D :: src/collision (d2CollisionDetection)

; 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.d2Vec2 = type { float, float }
%struct.d2Contact = type <{ ptr, ptr, %struct.d2Vec2, %struct.d2Vec2, %struct.d2Vec2, float, [4 x i8] }>
%struct.d2PolygonShape = type { %struct.d2Shape, float, float, i32, ptr, ptr }
%struct.d2Shape = type { ptr }
%struct.d2CircleShape = type <{ %struct.d2Shape, float, [4 x i8] }>

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20d2CollisionDetection24IsCollidingPolygonCircleEP6d2BodyS1_RSt6vectorI9d2ContactSaIS3_EE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %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 i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca %struct.d2Vec2, align 4
  %14 = alloca %struct.d2Vec2, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.d2Vec2, align 4
  %21 = alloca %struct.d2Vec2, align 4
  %22 = alloca %struct.d2Vec2, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.d2Contact, align 8
  %25 = alloca %struct.d2Vec2, align 4
  %26 = alloca %struct.d2Vec2, align 4
  %27 = alloca %struct.d2Vec2, align 4
  %28 = alloca %struct.d2Vec2, align 4
  %29 = alloca %struct.d2Vec2, align 4
  %30 = alloca %struct.d2Vec2, align 4
  %31 = alloca %struct.d2Vec2, align 4
  %32 = alloca %struct.d2Vec2, align 4
  %33 = alloca %struct.d2Vec2, align 4
  %34 = alloca %struct.d2Vec2, align 4
  %35 = alloca %struct.d2Vec2, align 4
  %36 = alloca %struct.d2Vec2, align 4
  %37 = alloca %struct.d2Vec2, align 4
  %38 = alloca %struct.d2Vec2, align 4
  %39 = alloca %struct.d2Vec2, align 4
  %40 = alloca %struct.d2Vec2, align 4
  %41 = alloca %struct.d2Vec2, align 4
  %42 = alloca %struct.d2Vec2, align 4
  %43 = alloca %struct.d2Vec2, align 4
  %44 = alloca %struct.d2Vec2, align 4
  %45 = alloca %struct.d2Vec2, align 4
  %46 = alloca %struct.d2Vec2, align 4
  %47 = alloca %struct.d2Vec2, align 4
  %48 = alloca %struct.d2Vec2, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132) %49)
  store ptr %50, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = call noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132) %51)
  store ptr %52, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.d2PolygonShape, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  store ptr %55, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.d2PolygonShape, ptr %56, i32 0, i32 3
  %58 = load i32, ptr %57, align 8, !tbaa !14
  store i32 %58, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 0, ptr %12, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %59 = call noundef float @_ZNSt14numeric_limitsIfE6lowestEv() #7
  store float %59, ptr %15, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !15
  br label %60

60:                                               ; preds = %118, %3
  %61 = load i32, ptr %16, align 4, !tbaa !15
  %62 = load i32, ptr %11, align 4, !tbaa !15
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 2, ptr %17, align 4
  br label %121

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %66 = load i32, ptr %16, align 4, !tbaa !15
  store i32 %66, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %67 = load i32, ptr %16, align 4, !tbaa !15
  %68 = add nsw i32 %67, 1
  %69 = load i32, ptr %11, align 4, !tbaa !15
  %70 = srem i32 %68, %69
  store i32 %70, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %18, align 4, !tbaa !15
  %73 = call <2 x float> @_ZNK14d2PolygonShape6EdgeAtEi(ptr noundef nonnull align 8 dereferenceable(40) %71, i32 noundef %72)
  store <2 x float> %73, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %74 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %74, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %75)
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = load i32, ptr %18, align 4, !tbaa !15
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.d2Vec2, ptr %77, i64 %79
  %81 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %80)
  store <2 x float> %81, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %82 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store float %82, ptr %23, align 4, !tbaa !18
  %83 = load float, ptr %23, align 4, !tbaa !18
  %84 = fcmp ogt float %83, 0.000000e+00
  br i1 %84, label %85, label %97

85:                                               ; preds = %65
  %86 = load float, ptr %23, align 4, !tbaa !18
  store float %86, ptr %15, align 4, !tbaa !18
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load i32, ptr %18, align 4, !tbaa !15
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.d2Vec2, ptr %87, i64 %89
  %91 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %90)
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load i32, ptr %19, align 4, !tbaa !15
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.d2Vec2, ptr %92, i64 %94
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %95)
  store i8 1, ptr %12, align 1, !tbaa !16
  store i32 2, ptr %17, align 4
  br label %115

97:                                               ; preds = %65
  %98 = load float, ptr %23, align 4, !tbaa !18
  %99 = load float, ptr %15, align 4, !tbaa !18
  %100 = fcmp ogt float %98, %99
  br i1 %100, label %101, label %113

101:                                              ; preds = %97
  %102 = load float, ptr %23, align 4, !tbaa !18
  store float %102, ptr %15, align 4, !tbaa !18
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %18, align 4, !tbaa !15
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.d2Vec2, ptr %103, i64 %105
  %107 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %106)
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load i32, ptr %19, align 4, !tbaa !15
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %struct.d2Vec2, ptr %108, i64 %110
  %112 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %111)
  br label %113

113:                                              ; preds = %101, %97
  br label %114

114:                                              ; preds = %113
  store i32 0, ptr %17, align 4
  br label %115

115:                                              ; preds = %114, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %116 = load i32, ptr %17, align 4
  switch i32 %116, label %121 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %16, align 4, !tbaa !15
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %16, align 4, !tbaa !15
  br label %60, !llvm.loop !19

121:                                              ; preds = %115, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %122

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #7
  call void @_ZN9d2ContactC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %24)
  %123 = load i8, ptr %12, align 1, !tbaa !16, !range !21, !noundef !22
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %269

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %126)
  %128 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %127, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %128, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %129 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %129, ptr %26, align 4
  %130 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %131 = fcmp olt float %130, 0.000000e+00
  br i1 %131, label %132, label %173

132:                                              ; preds = %125
  %133 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.d2CircleShape, ptr %134, i32 0, i32 1
  %136 = load float, ptr %135, align 8, !tbaa !23
  %137 = fcmp ogt float %133, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %132
  store i1 false, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %266

139:                                              ; preds = %132
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 0
  store ptr %140, ptr %141, align 8, !tbaa !25
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 1
  store ptr %142, ptr %143, align 8, !tbaa !28
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.d2CircleShape, ptr %144, i32 0, i32 1
  %146 = load float, ptr %145, align 8, !tbaa !23
  %147 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %148 = fsub float %146, %147
  %149 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  store float %148, ptr %149, align 8, !tbaa !29
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %151 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %151, ptr noundef nonnull align 4 dereferenceable(8) %150)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %153)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %155 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.d2CircleShape, ptr %156, i32 0, i32 1
  %158 = load float, ptr %157, align 8, !tbaa !23
  %159 = fneg float %158
  %160 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %155, float noundef %159)
  store <2 x float> %160, ptr %28, align 4
  %161 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %154, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %161, ptr %27, align 4
  %162 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  %163 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %162, ptr noundef nonnull align 4 dereferenceable(8) %27)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %164 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %165 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %166 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  %167 = load float, ptr %166, align 8, !tbaa !29
  %168 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %165, float noundef %167)
  store <2 x float> %168, ptr %30, align 4
  %169 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %164, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %169, ptr %29, align 4
  %170 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 3
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %170, ptr noundef nonnull align 4 dereferenceable(8) %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %172

172:                                              ; preds = %139
  br label %265

173:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %174)
  %176 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %175, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %176, ptr %31, align 4
  %177 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %178 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %178, ptr %32, align 4
  %179 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  %180 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %181 = fcmp olt float %180, 0.000000e+00
  br i1 %181, label %182, label %223

182:                                              ; preds = %173
  %183 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.d2CircleShape, ptr %184, i32 0, i32 1
  %186 = load float, ptr %185, align 8, !tbaa !23
  %187 = fcmp ogt float %183, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %182
  store i1 false, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %266

189:                                              ; preds = %182
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 0
  store ptr %190, ptr %191, align 8, !tbaa !25
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 1
  store ptr %192, ptr %193, align 8, !tbaa !28
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.d2CircleShape, ptr %194, i32 0, i32 1
  %196 = load float, ptr %195, align 8, !tbaa !23
  %197 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %198 = fsub float %196, %197
  %199 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  store float %198, ptr %199, align 8, !tbaa !29
  %200 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %25)
  %201 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %202 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %200)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %203)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %205 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.d2CircleShape, ptr %206, i32 0, i32 1
  %208 = load float, ptr %207, align 8, !tbaa !23
  %209 = fneg float %208
  %210 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %205, float noundef %209)
  store <2 x float> %210, ptr %34, align 4
  %211 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %204, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %211, ptr %33, align 4
  %212 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  %213 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %212, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %214 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %215 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %216 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  %217 = load float, ptr %216, align 8, !tbaa !29
  %218 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %215, float noundef %217)
  store <2 x float> %218, ptr %36, align 4
  %219 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %214, ptr noundef nonnull align 4 dereferenceable(8) %36)
  store <2 x float> %219, ptr %35, align 4
  %220 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 3
  %221 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %220, ptr noundef nonnull align 4 dereferenceable(8) %35)
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %222

222:                                              ; preds = %189
  br label %264

223:                                              ; preds = %173
  %224 = load float, ptr %15, align 4, !tbaa !18
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.d2CircleShape, ptr %225, i32 0, i32 1
  %227 = load float, ptr %226, align 8, !tbaa !23
  %228 = fcmp ogt float %224, %227
  br i1 %228, label %229, label %230

229:                                              ; preds = %223
  store i1 false, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %266

230:                                              ; preds = %223
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 0
  store ptr %231, ptr %232, align 8, !tbaa !25
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 1
  store ptr %233, ptr %234, align 8, !tbaa !28
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.d2CircleShape, ptr %235, i32 0, i32 1
  %237 = load float, ptr %236, align 8, !tbaa !23
  %238 = load float, ptr %15, align 4, !tbaa !18
  %239 = fsub float %237, %238
  %240 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  store float %239, ptr %240, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %241 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %241, ptr %38, align 4
  %242 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %38)
  store <2 x float> %242, ptr %37, align 4
  %243 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %244 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %243, ptr noundef nonnull align 4 dereferenceable(8) %37)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %245)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %247 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.d2CircleShape, ptr %248, i32 0, i32 1
  %250 = load float, ptr %249, align 8, !tbaa !23
  %251 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %247, float noundef %250)
  store <2 x float> %251, ptr %40, align 4
  %252 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %246, ptr noundef nonnull align 4 dereferenceable(8) %40)
  store <2 x float> %252, ptr %39, align 4
  %253 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  %254 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %253, ptr noundef nonnull align 4 dereferenceable(8) %39)
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %255 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %256 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %257 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  %258 = load float, ptr %257, align 8, !tbaa !29
  %259 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %256, float noundef %258)
  store <2 x float> %259, ptr %42, align 4
  %260 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %255, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %260, ptr %41, align 4
  %261 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 3
  %262 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %261, ptr noundef nonnull align 4 dereferenceable(8) %41)
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %263

263:                                              ; preds = %230
  br label %264

264:                                              ; preds = %263, %222
  br label %265

265:                                              ; preds = %264, %172
  store i32 0, ptr %17, align 4
  br label %266

266:                                              ; preds = %265, %229, %188, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  %267 = load i32, ptr %17, align 4
  switch i32 %267, label %304 [
    i32 0, label %268
  ]

268:                                              ; preds = %266
  br label %302

269:                                              ; preds = %122
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 0
  store ptr %270, ptr %271, align 8, !tbaa !25
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 1
  store ptr %272, ptr %273, align 8, !tbaa !28
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.d2CircleShape, ptr %274, i32 0, i32 1
  %276 = load float, ptr %275, align 8, !tbaa !23
  %277 = load float, ptr %15, align 4, !tbaa !18
  %278 = fsub float %276, %277
  %279 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  store float %278, ptr %279, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %280 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %280, ptr %44, align 4
  %281 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %44)
  store <2 x float> %281, ptr %43, align 4
  %282 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %283 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %282, ptr noundef nonnull align 4 dereferenceable(8) %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %284)
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %286 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.d2CircleShape, ptr %287, i32 0, i32 1
  %289 = load float, ptr %288, align 8, !tbaa !23
  %290 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %286, float noundef %289)
  store <2 x float> %290, ptr %46, align 4
  %291 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %285, ptr noundef nonnull align 4 dereferenceable(8) %46)
  store <2 x float> %291, ptr %45, align 4
  %292 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  %293 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %292, ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %294 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %295 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 4
  %296 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 5
  %297 = load float, ptr %296, align 8, !tbaa !29
  %298 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %295, float noundef %297)
  store <2 x float> %298, ptr %48, align 4
  %299 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %294, ptr noundef nonnull align 4 dereferenceable(8) %48)
  store <2 x float> %299, ptr %47, align 4
  %300 = getelementptr inbounds %struct.d2Contact, ptr %24, i32 0, i32 3
  %301 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %300, ptr noundef nonnull align 4 dereferenceable(8) %47)
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %302

302:                                              ; preds = %269, %268
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorI9d2ContactSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %303, ptr noundef nonnull align 8 dereferenceable(44) %24)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %304

304:                                              ; preds = %302, %266
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %305 = load i1, ptr %4, align 1
  ret i1 %305
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132)) #1 align 2

declare <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9d2ContactC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #3

declare <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #3

declare <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9d2ContactSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(44)) #6 align 2

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

declare <2 x float> @_ZNK14d2PolygonShape6EdgeAtEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE6lowestEv() #5 align 2

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

!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, !6, i64 32}
!10 = !{!"_ZTS14d2PolygonShape", !11, i64 0, !12, i64 8, !12, i64 12, !13, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"_ZTS7d2Shape"}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !13, i64 16}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !12, i64 8}
!24 = !{!"_ZTS13d2CircleShape", !11, i64 0, !12, i64 8}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTS9d2Contact", !6, i64 0, !6, i64 8, !27, i64 16, !27, i64 24, !27, i64 32, !12, i64 40}
!27 = !{!"_ZTS6d2Vec2", !12, i64 0, !12, i64 4}
!28 = !{!26, !6, i64 8}
!29 = !{!26, !12, i64 40}


; 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.d2Vec2 = type { float, float }
%struct.d2Contact = type <{ ptr, ptr, %struct.d2Vec2, %struct.d2Vec2, %struct.d2Vec2, float, [4 x i8] }>

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20d2CollisionDetection24IsCollidingPolygonCircleEP6d2BodyS1_RSt6vectorI9d2ContactSaIS3_EE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull align 1 %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %struct.d2Vec2, align 4
  %5 = alloca %struct.d2Vec2, align 4
  %6 = alloca %struct.d2Vec2, align 8
  %7 = alloca %struct.d2Vec2, align 8
  %8 = alloca %struct.d2Vec2, align 8
  %9 = alloca %struct.d2Contact, align 8
  %10 = alloca %struct.d2Vec2, align 8
  %11 = alloca %struct.d2Vec2, align 8
  %12 = alloca %struct.d2Vec2, align 8
  %13 = alloca %struct.d2Vec2, align 8
  %14 = alloca %struct.d2Vec2, align 8
  %15 = alloca %struct.d2Vec2, align 8
  %16 = alloca %struct.d2Vec2, align 8
  %17 = alloca %struct.d2Vec2, align 8
  %18 = alloca %struct.d2Vec2, align 8
  %19 = alloca %struct.d2Vec2, align 8
  %20 = alloca %struct.d2Vec2, align 8
  %21 = alloca %struct.d2Vec2, align 8
  %22 = alloca %struct.d2Vec2, align 8
  %23 = alloca %struct.d2Vec2, align 8
  %24 = alloca %struct.d2Vec2, align 8
  %25 = alloca %struct.d2Vec2, align 8
  %26 = alloca %struct.d2Vec2, align 8
  %27 = alloca %struct.d2Vec2, align 8
  %28 = alloca %struct.d2Vec2, align 8
  %29 = alloca %struct.d2Vec2, align 8
  %30 = alloca %struct.d2Vec2, align 8
  %31 = alloca %struct.d2Vec2, align 8
  %32 = alloca %struct.d2Vec2, align 8
  %33 = alloca %struct.d2Vec2, align 8
  %34 = tail call noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  %35 = tail call noundef ptr @_ZNK6d2Body8GetShapeEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  %36 = getelementptr inbounds i8, ptr %34, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %34, i64 16
  %39 = load i32, ptr %38, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN6d2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %40 = call noundef float @_ZNSt14numeric_limitsIfE6lowestEv() #7
  %41 = icmp sgt i32 %39, 0
  br i1 %41, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %42 = zext nneg i32 %39 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %69
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %69 ]
  %.06381 = phi float [ %40, %.lr.ph.preheader ], [ %.265, %69 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = icmp eq i64 %indvars.iv.next, %42
  %44 = trunc nuw nsw i64 %indvars.iv.next to i32
  %iv.rem = select i1 %43, i32 0, i32 %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %45 = trunc nuw nsw i64 %indvars.iv to i32
  %46 = call <2 x float> @_ZNK14d2PolygonShape6EdgeAtEi(ptr noundef nonnull align 8 dereferenceable(40) %34, i32 noundef %45)
  store <2 x float> %46, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %47 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %47, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %48 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  %49 = getelementptr inbounds %struct.d2Vec2, ptr %37, i64 %indvars.iv
  %50 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %49)
  store <2 x float> %50, ptr %8, align 8
  %51 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %52 = fcmp ule float %51, 0.000000e+00
  br i1 %52, label %62, label %.thread73

.thread73:                                        ; preds = %.lr.ph
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %49)
  %54 = zext nneg i32 %iv.rem to i64
  %55 = getelementptr inbounds %struct.d2Vec2, ptr %37, i64 %54
  %56 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %55)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  call void @_ZN9d2ContactC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %57 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  %58 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %57, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %58, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %59 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %59, ptr %11, align 8
  %60 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %61 = fcmp olt float %60, 0.000000e+00
  br i1 %61, label %90, label %115

62:                                               ; preds = %.lr.ph
  %63 = fcmp ogt float %51, %.06381
  br i1 %63, label %64, label %69

64:                                               ; preds = %62
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %49)
  %66 = zext nneg i32 %iv.rem to i64
  %67 = getelementptr inbounds %struct.d2Vec2, ptr %37, i64 %66
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %67)
  br label %69

69:                                               ; preds = %64, %62
  %.265 = phi float [ %51, %64 ], [ %.06381, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %exitcond.not = icmp eq i64 %indvars.iv.next, %42
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %69, %3
  %.063.lcssa = phi float [ %40, %3 ], [ %.265, %69 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  call void @_ZN9d2ContactC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %9)
  store ptr %0, ptr %9, align 8, !tbaa !14
  %70 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %70, align 8, !tbaa !17
  %71 = getelementptr inbounds i8, ptr %35, i64 8
  %72 = load float, ptr %71, align 8, !tbaa !18
  %73 = fsub float %72, %.063.lcssa
  %74 = getelementptr inbounds i8, ptr %9, i64 40
  store float %73, ptr %74, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  %75 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %75, ptr %29, align 8
  %76 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %76, ptr %28, align 8
  %77 = getelementptr inbounds i8, ptr %9, i64 32
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %28)
  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 %30) #7
  %79 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  %80 = load float, ptr %71, align 8, !tbaa !18
  %81 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %77, float noundef %80)
  store <2 x float> %81, ptr %31, align 8
  %82 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %82, ptr %30, align 8
  %83 = getelementptr inbounds i8, ptr %9, i64 16
  %84 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %83, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  %85 = load float, ptr %74, align 8, !tbaa !20
  %86 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %77, float noundef %85)
  store <2 x float> %86, ptr %33, align 8
  %87 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %83, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store <2 x float> %87, ptr %32, align 8
  %88 = getelementptr inbounds i8, ptr %9, i64 24
  %89 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %88, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  br label %172

90:                                               ; preds = %.thread73
  %91 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %92 = getelementptr inbounds i8, ptr %35, i64 8
  %93 = load float, ptr %92, align 8, !tbaa !18
  %94 = fcmp ogt float %91, %93
  br i1 %94, label %.critedge, label %95

95:                                               ; preds = %90
  store ptr %0, ptr %9, align 8, !tbaa !14
  %96 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %96, align 8, !tbaa !17
  %97 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %98 = fsub float %93, %97
  %99 = getelementptr inbounds i8, ptr %9, i64 40
  store float %98, ptr %99, align 8, !tbaa !20
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %101 = getelementptr inbounds i8, ptr %9, i64 32
  %102 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %101, ptr noundef nonnull align 4 dereferenceable(8) %100)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %103 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %104 = load float, ptr %92, align 8, !tbaa !18
  %105 = fneg float %104
  %106 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %101, float noundef %105)
  store <2 x float> %106, ptr %13, align 8
  %107 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %103, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %107, ptr %12, align 8
  %108 = getelementptr inbounds i8, ptr %9, i64 16
  %109 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %108, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %110 = load float, ptr %99, align 8, !tbaa !20
  %111 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %101, float noundef %110)
  store <2 x float> %111, ptr %15, align 8
  %112 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %108, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %112, ptr %14, align 8
  %113 = getelementptr inbounds i8, ptr %9, i64 24
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %113, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %171

115:                                              ; preds = %.thread73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %116 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  %117 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %116, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %117, ptr %16, align 8
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %119 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %119, ptr %17, align 8
  %120 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %121 = call noundef float @_ZNK6d2Vec23DotERKS_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %122 = fcmp olt float %121, 0.000000e+00
  br i1 %122, label %123, label %148

123:                                              ; preds = %115
  %124 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %125 = getelementptr inbounds i8, ptr %35, i64 8
  %126 = load float, ptr %125, align 8, !tbaa !18
  %127 = fcmp ogt float %124, %126
  br i1 %127, label %.critedge, label %128

128:                                              ; preds = %123
  store ptr %0, ptr %9, align 8, !tbaa !14
  %129 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %129, align 8, !tbaa !17
  %130 = call noundef float @_ZNK6d2Vec26LenghtEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %131 = fsub float %126, %130
  %132 = getelementptr inbounds i8, ptr %9, i64 40
  store float %131, ptr %132, align 8, !tbaa !20
  %133 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %134 = getelementptr inbounds i8, ptr %9, i64 32
  %135 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %134, ptr noundef nonnull align 4 dereferenceable(8) %133)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %136 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %137 = load float, ptr %125, align 8, !tbaa !18
  %138 = fneg float %137
  %139 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %134, float noundef %138)
  store <2 x float> %139, ptr %19, align 8
  %140 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %136, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %140, ptr %18, align 8
  %141 = getelementptr inbounds i8, ptr %9, i64 16
  %142 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %141, ptr noundef nonnull align 4 dereferenceable(8) %18)
  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.start.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %143 = load float, ptr %132, align 8, !tbaa !20
  %144 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %134, float noundef %143)
  store <2 x float> %144, ptr %21, align 8
  %145 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %141, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %145, ptr %20, align 8
  %146 = getelementptr inbounds i8, ptr %9, i64 24
  %147 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %171

148:                                              ; preds = %115
  %149 = getelementptr inbounds i8, ptr %35, i64 8
  %150 = load float, ptr %149, align 8, !tbaa !18
  %151 = fcmp ogt float %51, %150
  br i1 %151, label %.critedge, label %152

152:                                              ; preds = %148
  store ptr %0, ptr %9, align 8, !tbaa !14
  %153 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %1, ptr %153, align 8, !tbaa !17
  %154 = fsub float %150, %51
  %155 = getelementptr inbounds i8, ptr %9, i64 40
  store float %154, ptr %155, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %156 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %156, ptr %23, align 8
  %157 = call <2 x float> @_ZNK6d2Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %157, ptr %22, align 8
  %158 = getelementptr inbounds i8, ptr %9, i64 32
  %159 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %158, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %160 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %161 = load float, ptr %149, align 8, !tbaa !18
  %162 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %158, float noundef %161)
  store <2 x float> %162, ptr %25, align 8
  %163 = call <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8) %160, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %163, ptr %24, align 8
  %164 = getelementptr inbounds i8, ptr %9, i64 16
  %165 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %164, ptr noundef nonnull align 4 dereferenceable(8) %24)
  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.start.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %166 = load float, ptr %155, align 8, !tbaa !20
  %167 = call <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %158, float noundef %166)
  store <2 x float> %167, ptr %27, align 8
  %168 = call <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %164, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %168, ptr %26, align 8
  %169 = getelementptr inbounds i8, ptr %9, i64 24
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8) %169, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %171

171:                                              ; preds = %95, %152, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %172

172:                                              ; preds = %171, %._crit_edge
  call void @_ZNSt6vectorI9d2ContactSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(44) %9)
  br label %173

.critedge:                                        ; preds = %148, %123, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %173

173:                                              ; preds = %.critedge, %172
  %.1 = phi i1 [ true, %172 ], [ false, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret i1 %.1
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6d2Body11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #1 align 2

declare <2 x float> @_ZNK6d2Vec2miERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9d2ContactC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec2aSERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN6d2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

declare <2 x float> @_ZNK6d2Vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #3

declare <2 x float> @_ZNK6d2Vec2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9d2ContactSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #6 align 2

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

declare <2 x float> @_ZNK14d2PolygonShape6EdgeAtEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE6lowestEv() local_unnamed_addr #5 align 2

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

!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 32}
!6 = !{!"_ZTS14d2PolygonShape", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 32}
!7 = !{!"_ZTS7d2Shape"}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!15, !12, i64 0}
!15 = !{!"_ZTS9d2Contact", !12, i64 0, !12, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !8, i64 40}
!16 = !{!"_ZTS6d2Vec2", !8, i64 0, !8, i64 4}
!17 = !{!15, !12, i64 8}
!18 = !{!19, !8, i64 8}
!19 = !{!"_ZTS13d2CircleShape", !7, i64 0, !8, i64 8}
!20 = !{!15, !8, i64 40}


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