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

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

34:                                               ; preds = %121, %2
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %123

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  store ptr %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %39 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %40)
  %42 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %43)
  %45 = fadd float %41, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %46 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %47)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.apollonia::Contact", ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 2
  %52 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %50, ptr noundef nonnull align 4 dereferenceable(8) %51)
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.apollonia::Contact", ptr %53, i32 0, i32 1
  %55 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %52, ptr noundef nonnull align 4 dereferenceable(8) %54)
  store <2 x float> %55, ptr %13, align 4
  %56 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %48, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %56, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %57 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.apollonia::Contact", ptr %60, i32 0, i32 2
  %62 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 2
  %63 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %62)
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.apollonia::Contact", ptr %64, i32 0, i32 2
  %66 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %63, ptr noundef nonnull align 4 dereferenceable(8) %65)
  store <2 x float> %66, ptr %15, align 4
  %67 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %59, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %67, ptr %14, align 4
  %68 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %68, ptr %11, align 4
  %69 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 2
  %70 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %69)
  %71 = fadd float %45, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  store float %71, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %72 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %73)
  %75 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %76)
  %78 = fadd float %74, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %79 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %80)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.apollonia::Contact", ptr %82, i32 0, i32 1
  %84 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %83, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.apollonia::Contact", ptr %85, i32 0, i32 1
  %87 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %84, ptr noundef nonnull align 4 dereferenceable(8) %86)
  store <2 x float> %87, ptr %19, align 4
  %88 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %81, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %88, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %89 = getelementptr inbounds %"class.apollonia::Arbiter", ptr %24, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %90)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.apollonia::Contact", ptr %92, i32 0, i32 2
  %94 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %93, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.apollonia::Contact", ptr %95, i32 0, i32 2
  %97 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %94, ptr noundef nonnull align 4 dereferenceable(8) %96)
  store <2 x float> %97, ptr %21, align 4
  %98 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %91, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %98, ptr %20, align 4
  %99 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %99, ptr %17, align 4
  %100 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %101 = fadd float %78, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  store float %101, ptr %16, align 4, !tbaa !9
  %102 = load float, ptr %10, align 4, !tbaa !9
  %103 = fdiv float 1.000000e+00, %102
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.apollonia::Contact", ptr %104, i32 0, i32 9
  store float %103, ptr %105, align 8, !tbaa !19
  %106 = load float, ptr %16, align 4, !tbaa !9
  %107 = fdiv float 1.000000e+00, %106
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.apollonia::Contact", ptr %108, i32 0, i32 10
  store float %107, ptr %109, align 4, !tbaa !23
  %110 = load float, ptr %4, align 4, !tbaa !9
  %111 = fdiv float 0xBFC99999A0000000, %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store float 0.000000e+00, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.apollonia::Contact", ptr %112, i32 0, i32 5
  %114 = load float, ptr %113, align 8, !tbaa !24
  %115 = fadd float %114, 0x3F847AE140000000
  store float %115, ptr %23, align 4, !tbaa !9
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = fmul float %111, %117
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.apollonia::Contact", ptr %119, i32 0, i32 8
  store float %118, ptr %120, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %121

121:                                              ; preds = %37
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %34

123:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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

; 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 hidden noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; 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

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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN9apollonia7ArbiterE", !6, i64 0, !6, i64 8, !13, i64 16, !14, i64 24}
!13 = !{!"_ZTSN9apollonia4Vec2E", !10, i64 0, !10, i64 4}
!14 = !{!"_ZTSSt6vectorIN9apollonia7ContactESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN9apollonia7ContactESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN9apollonia7ContactESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!12, !6, i64 8}
!19 = !{!20, !10, i64 64}
!20 = !{!"_ZTSN9apollonia7ContactE", !13, i64 0, !13, i64 8, !13, i64 16, !21, i64 24, !22, i64 32, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68}
!21 = !{!"_ZTSSt5arrayIbLm2EE", !7, i64 0}
!22 = !{!"_ZTSSt5arrayImLm2EE", !7, i64 0}
!23 = !{!20, !10, i64 68}
!24 = !{!20, !10, i64 48}
!25 = !{!20, !10, i64 60}


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

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

._crit_edge:                                      ; preds = %26, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  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) %4) #5
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %28)
  %30 = load ptr, ptr %24, align 8, !tbaa !16
  %31 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %34 = getelementptr inbounds i8, ptr %27, i64 8
  %35 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %36 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %35, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %36, ptr %8, align 8
  %37 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %33, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %37, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %38 = load ptr, ptr %24, align 8, !tbaa !16
  %39 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %40 = getelementptr inbounds i8, ptr %27, i64 16
  %41 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %42 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %41, ptr noundef nonnull align 4 dereferenceable(8) %40)
  store <2 x float> %42, ptr %10, align 8
  %43 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %39, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %43, ptr %9, align 8
  %44 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %44, ptr %6, align 8
  %45 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %46 = load ptr, ptr %0, align 8, !tbaa !5
  %47 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %46)
  %48 = load ptr, ptr %24, align 8, !tbaa !16
  %49 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %52 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %3)
  %53 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %52, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %53, ptr %13, align 8
  %54 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %51, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %54, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %55 = load ptr, ptr %24, align 8, !tbaa !16
  %56 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %57 = call noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(8) %3)
  %58 = call <2 x float> @_ZN9apolloniaL5CrossEfRKNS_4Vec2E(float noundef %57, ptr noundef nonnull align 4 dereferenceable(8) %40)
  store <2 x float> %58, ptr %15, align 8
  %59 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %56, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %59, ptr %14, align 8
  %60 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %60, ptr %11, align 8
  %61 = call noundef float @_ZN9apolloniaL3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %62 = getelementptr inbounds i8, ptr %27, i64 64
  %63 = insertelement <2 x float> poison, float %29, i64 0
  %64 = insertelement <2 x float> %63, float %47, i64 1
  %65 = insertelement <2 x float> poison, float %31, i64 0
  %66 = insertelement <2 x float> %65, float %49, i64 1
  %67 = fadd <2 x float> %64, %66
  %68 = insertelement <2 x float> poison, float %45, i64 0
  %69 = insertelement <2 x float> %68, float %61, i64 1
  %70 = fadd <2 x float> %67, %69
  %71 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %70
  store <2 x float> %71, ptr %62, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  store float 0.000000e+00, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %72 = getelementptr inbounds i8, ptr %27, i64 48
  %73 = load float, ptr %72, align 8, !tbaa !18
  %74 = fadd float %73, 0x3F847AE140000000
  store float %74, ptr %17, align 4, !tbaa !17
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %76 = load float, ptr %75, align 4, !tbaa !17
  %77 = fmul float %25, %76
  %78 = getelementptr inbounds i8, ptr %27, i64 60
  store float %77, ptr %78, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN9apollonia7ContactESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %80, label %26, label %._crit_edge
}

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

; 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 hidden noundef float @_ZN9apolloniaL5CrossERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; 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

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 = { 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, !7, i64 0}
!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 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 48}
!19 = !{!"_ZTSN9apollonia7ContactE", !10, i64 0, !10, i64 8, !10, i64 16, !20, i64 24, !21, i64 32, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!20 = !{!"_ZTSSt5arrayIbLm2EE", !8, i64 0}
!21 = !{!"_ZTSSt5arrayImLm2EE", !8, i64 0}
!22 = !{!19, !11, i64 60}


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