; LLVM IR from wgtdkp/apollonia :: src/collision.ll (ZN9apollonia7Arbiter12ApplyImpulseEv)

; 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.apollonia::Vec2" = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.apollonia::Arbiter" = type { ptr, ptr, %"struct.apollonia::Vec2", %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<apollonia::Contact, std::allocator<apollonia::Contact>>::_Vector_impl" }
%"struct.std::_Vector_base<apollonia::Contact, std::allocator<apollonia::Contact>>::_Vector_impl" = type { %"struct.std::_Vector_base<apollonia::Contact, std::allocator<apollonia::Contact>>::_Vector_impl_data" }
%"struct.std::_Vector_base<apollonia::Contact, std::allocator<apollonia::Contact>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.apollonia::Contact" = type { %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.std::array.5", %"struct.std::array.6", float, float, float, float, float, float }
%"struct.std::array.5" = type { [2 x i8] }
%"struct.std::array.6" = type { [2 x i64] }

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9apollonia7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.apollonia::Vec2", align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.apollonia::Vec2", align 4
  %9 = alloca %"struct.apollonia::Vec2", align 4
  %10 = alloca %"struct.apollonia::Vec2", align 4
  %11 = alloca %"struct.apollonia::Vec2", align 4
  %12 = alloca %"struct.apollonia::Vec2", align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.apollonia::Vec2", align 4
  %24 = alloca %"struct.apollonia::Vec2", align 4
  %25 = alloca %"struct.apollonia::Vec2", align 4
  %26 = alloca %"struct.apollonia::Vec2", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %28 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 2
  %29 = call <2 x float> @_ZNK9apollonia4Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %29, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %30 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 3
  store ptr %30, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %151, %1
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %153

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %41 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %42 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %43)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %45 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call noundef float @_ZNK9apollonia4Body16angular_velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %46)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.apollonia::Contact", ptr %48, i32 0, i32 2
  %50 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %47, ptr noundef nonnull align 4 dereferenceable(8) %49)
  store <2 x float> %50, ptr %10, align 4
  %51 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %51, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %52 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %55 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = call noundef float @_ZNK9apollonia4Body16angular_velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %56)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.apollonia::Contact", ptr %58, i32 0, i32 1
  %60 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %57, ptr noundef nonnull align 4 dereferenceable(8) %59)
  store <2 x float> %60, ptr %12, align 4
  %61 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %54, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %61, ptr %11, align 4
  %62 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %62, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, 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.start.p0(i64 4, ptr %13) #7
  %63 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 2
  %64 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %63)
  store float %64, ptr %13, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %65 = load float, ptr %13, align 4, !tbaa !18
  %66 = fneg float %65
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.apollonia::Contact", ptr %67, i32 0, i32 8
  %69 = load float, ptr %68, align 4, !tbaa !19
  %70 = fadd float %66, %69
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.apollonia::Contact", ptr %71, i32 0, i32 9
  %73 = load float, ptr %72, align 8, !tbaa !23
  %74 = fmul float %70, %73
  store float %74, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.apollonia::Contact", ptr %75, i32 0, i32 6
  %77 = load float, ptr %76, align 4, !tbaa !24
  %78 = load float, ptr %14, align 4, !tbaa !18
  %79 = fadd float %77, %78
  store float %79, ptr %15, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store float 0.000000e+00, ptr %16, align 4, !tbaa !18
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %81 = load float, ptr %80, align 4, !tbaa !18
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.apollonia::Contact", ptr %82, i32 0, i32 6
  %84 = load float, ptr %83, align 4, !tbaa !24
  %85 = fsub float %81, %84
  store float %85, ptr %14, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %86 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = call noundef float @_ZNK9apollonia4Body8frictionEv(ptr noundef nonnull align 8 dereferenceable(88) %87)
  %89 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call noundef float @_ZNK9apollonia4Body8frictionEv(ptr noundef nonnull align 8 dereferenceable(88) %90)
  %92 = fmul float %88, %91
  %93 = fpext float %92 to double
  %94 = call double @sqrt(double noundef %93) #7
  %95 = fptrunc double %94 to float
  store float %95, ptr %17, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %96 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store float %96, ptr %18, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %97 = load float, ptr %18, align 4, !tbaa !18
  %98 = fneg float %97
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.apollonia::Contact", ptr %99, i32 0, i32 10
  %101 = load float, ptr %100, align 4, !tbaa !25
  %102 = fmul float %98, %101
  store float %102, ptr %19, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %103 = load float, ptr %17, align 4, !tbaa !18
  %104 = fneg float %103
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.apollonia::Contact", ptr %105, i32 0, i32 6
  %107 = load float, ptr %106, align 4, !tbaa !24
  %108 = fmul float %104, %107
  store float %108, ptr %20, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %109 = load float, ptr %17, align 4, !tbaa !18
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.apollonia::Contact", ptr %110, i32 0, i32 6
  %112 = load float, ptr %111, align 4, !tbaa !24
  %113 = fmul float %109, %112
  store float %113, ptr %21, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.apollonia::Contact", ptr %114, i32 0, i32 7
  %116 = load float, ptr %115, align 8, !tbaa !26
  %117 = load float, ptr %19, align 4, !tbaa !18
  %118 = fadd float %116, %117
  store float %118, ptr %22, align 4, !tbaa !18
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %119)
  %121 = load float, ptr %120, align 4, !tbaa !18
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.apollonia::Contact", ptr %122, i32 0, i32 7
  %124 = load float, ptr %123, align 8, !tbaa !26
  %125 = fsub float %121, %124
  store float %125, ptr %19, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %126 = load float, ptr %14, align 4, !tbaa !18
  %127 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 2
  %128 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %126, ptr noundef nonnull align 4 dereferenceable(8) %127)
  store <2 x float> %128, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %129 = load float, ptr %19, align 4, !tbaa !18
  %130 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %129, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %130, ptr %25, align 4
  %131 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %131, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %132 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %134 = call <2 x float> @_ZNK9apollonia4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %134, ptr %26, align 4
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.apollonia::Contact", ptr %135, i32 0, i32 1
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %133, ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %136)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %137 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %27, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.apollonia::Contact", ptr %139, i32 0, i32 2
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %138, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %140)
  %141 = load float, ptr %14, align 4, !tbaa !18
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.apollonia::Contact", ptr %142, i32 0, i32 6
  %144 = load float, ptr %143, align 4, !tbaa !24
  %145 = fadd float %144, %141
  store float %145, ptr %143, align 4, !tbaa !24
  %146 = load float, ptr %19, align 4, !tbaa !18
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.apollonia::Contact", ptr %147, i32 0, i32 7
  %149 = load float, ptr %148, align 8, !tbaa !26
  %150 = fadd float %149, %146
  store float %150, ptr %148, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %151

151:                                              ; preds = %40
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %37

153:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

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

declare void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 8}
!10 = !{!"_ZTSN9apollonia7ArbiterE", !6, i64 0, !6, i64 8, !11, i64 16, !13, i64 24}
!11 = !{!"_ZTSN9apollonia4Vec2E", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN9apollonia7ContactESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN9apollonia7ContactESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!10, !6, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !12, i64 60}
!20 = !{!"_ZTSN9apollonia7ContactE", !11, i64 0, !11, i64 8, !11, i64 16, !21, i64 24, !22, i64 32, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68}
!21 = !{!"_ZTSSt5arrayIbLm2EE", !7, i64 0}
!22 = !{!"_ZTSSt5arrayImLm2EE", !7, i64 0}
!23 = !{!20, !12, i64 64}
!24 = !{!20, !12, i64 52}
!25 = !{!20, !12, i64 68}
!26 = !{!20, !12, i64 56}


; 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.apollonia::Vec2" = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9apollonia7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.apollonia::Vec2", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"struct.apollonia::Vec2", align 8
  %6 = alloca %"struct.apollonia::Vec2", align 8
  %7 = alloca %"struct.apollonia::Vec2", align 8
  %8 = alloca %"struct.apollonia::Vec2", align 8
  %9 = alloca %"struct.apollonia::Vec2", align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.apollonia::Vec2", align 8
  %16 = alloca %"struct.apollonia::Vec2", align 8
  %17 = alloca %"struct.apollonia::Vec2", align 8
  %18 = alloca %"struct.apollonia::Vec2", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = tail call <2 x float> @_ZNK9apollonia4Vec26NormalEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %20, ptr %2, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %22 = tail call ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %22, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = tail call ptr @_ZNSt6vectorIN9apollonia7ContactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %23, ptr %4, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  br label %26

._crit_edge:                                      ; preds = %26, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

26:                                               ; preds = %.lr.ph, %26
  %27 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %28 = load ptr, ptr %25, align 8, !tbaa !5
  %29 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %30 = load ptr, ptr %25, align 8, !tbaa !5
  %31 = call noundef float @_ZNK9apollonia4Body16angular_velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
  %32 = getelementptr inbounds i8, ptr %27, i64 16
  %33 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %31, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store <2 x float> %33, ptr %7, align 8
  %34 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %34, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %35 = load ptr, ptr %0, align 8, !tbaa !16
  %36 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %37 = load ptr, ptr %0, align 8, !tbaa !16
  %38 = call noundef float @_ZNK9apollonia4Body16angular_velocityEv(ptr noundef nonnull align 8 dereferenceable(88) %37)
  %39 = getelementptr inbounds i8, ptr %27, i64 8
  %40 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %38, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %40, ptr %9, align 8
  %41 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %41, ptr %8, align 8
  %42 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %42, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %43 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %44 = getelementptr inbounds i8, ptr %27, i64 60
  %45 = load float, ptr %44, align 4, !tbaa !17
  %46 = fsub float %45, %43
  %47 = getelementptr inbounds i8, ptr %27, i64 64
  %48 = load float, ptr %47, align 8, !tbaa !21
  %49 = fmul float %46, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %50 = getelementptr inbounds i8, ptr %27, i64 52
  %51 = load float, ptr %50, align 4, !tbaa !22
  %52 = fadd float %49, %51
  store float %52, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !23
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %54 = load float, ptr %53, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %55 = load ptr, ptr %0, align 8, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %27, i64 68
  %57 = getelementptr inbounds i8, ptr %27, i64 56
  %58 = load <4 x float>, ptr %50, align 4
  %59 = shufflevector <4 x float> %58, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %60 = call noundef float @_ZNK9apollonia4Body8frictionEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  %61 = load ptr, ptr %25, align 8, !tbaa !5
  %62 = call noundef float @_ZNK9apollonia4Body8frictionEv(ptr noundef nonnull align 8 dereferenceable(88) %61)
  %63 = fmul float %60, %62
  %sqrtf = call float @sqrtf(float noundef %63) #7
  %64 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %65 = load float, ptr %56, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %66 = fneg float %sqrtf
  %67 = load float, ptr %50, align 4, !tbaa !22
  %68 = fmul float %67, %66
  store float %68, ptr %12, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %69 = fmul float %sqrtf, %67
  store float %69, ptr %13, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %70 = load float, ptr %57, align 8, !tbaa !25
  %71 = fmul float %64, %65
  %72 = fsub float %70, %71
  store float %72, ptr %14, align 4, !tbaa !23
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = load float, ptr %74, align 4, !tbaa !23
  %76 = load float, ptr %57, align 8, !tbaa !25
  %77 = insertelement <2 x float> poison, float %54, i64 0
  %78 = insertelement <2 x float> %77, float %75, i64 1
  %79 = insertelement <2 x float> %59, float %76, i64 1
  %80 = fsub <2 x float> %78, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %81 = extractelement <2 x float> %80, i64 0
  %82 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %81, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %82, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %83 = extractelement <2 x float> %80, i64 1
  %84 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %83, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %84, ptr %17, align 8
  %85 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %85, ptr %15, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %86 = load ptr, ptr %0, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %87 = call <2 x float> @_ZNK9apollonia4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %87, ptr %18, align 8
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %86, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %39)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  %88 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %88, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %32)
  %89 = load <2 x float>, ptr %50, align 4, !tbaa !23
  %90 = fadd <2 x float> %80, %89
  store <2 x float> %90, ptr %50, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %92, label %26, label %._crit_edge
}

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

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

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

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

declare void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

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

declare float @sqrtf(float) local_unnamed_addr

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

!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, !7, i64 8}
!6 = !{!"_ZTSN9apollonia7ArbiterE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN9apollonia4Vec2E", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN9apollonia7ContactESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN9apollonia7ContactESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !11, i64 60}
!18 = !{!"_ZTSN9apollonia7ContactE", !10, i64 0, !10, i64 8, !10, i64 16, !19, i64 24, !20, i64 32, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!19 = !{!"_ZTSSt5arrayIbLm2EE", !8, i64 0}
!20 = !{!"_ZTSSt5arrayImLm2EE", !8, i64 0}
!21 = !{!18, !11, i64 64}
!22 = !{!18, !11, i64 52}
!23 = !{!11, !11, i64 0}
!24 = !{!18, !11, i64 68}
!25 = !{!18, !11, i64 56}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass