; LLVM IR from wgtdkp/apollonia :: src/joint.ll (ZN9apollonia13RevoluteJoint7PreStepEf)

; 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::Mat22" = type { %"struct.std::array" }
%"struct.std::array" = type { [2 x %"struct.apollonia::Vec2"] }
%"struct.apollonia::Vec2" = type { float, float }
%"class.apollonia::RevoluteJoint" = type { %"class.apollonia::Joint", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2", %"struct.apollonia::Mat22", %"struct.apollonia::Vec2", %"struct.apollonia::Vec2" }
%"class.apollonia::Joint" = type { ptr, ptr, ptr }

@_ZN9apollonia5Mat221IE = external global %"struct.apollonia::Mat22", align 4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9apollonia13RevoluteJoint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(96) %0, float noundef %1) unnamed_addr #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.apollonia::Vec2", align 4
  %8 = alloca %"struct.apollonia::Vec2", align 4
  %9 = alloca %"struct.apollonia::Mat22", align 4
  %10 = alloca %"struct.apollonia::Mat22", align 4
  %11 = alloca %"struct.apollonia::Mat22", align 4
  %12 = alloca %"struct.apollonia::Mat22", align 4
  %13 = alloca %"struct.apollonia::Mat22", align 4
  %14 = alloca %"struct.apollonia::Mat22", align 4
  %15 = alloca %"struct.apollonia::Mat22", align 4
  %16 = alloca %"struct.apollonia::Mat22", 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 %"struct.apollonia::Vec2", align 4
  %23 = alloca %"struct.apollonia::Vec2", 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) #8
  %25 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN9apollonia5Joint1aEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %26 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN9apollonia5Joint1bEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9apollonia4Body8rotationEv(ptr noundef nonnull align 8 dereferenceable(88) %27)
  %29 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 2
  %30 = call <2 x float> @_ZN9apolloniamlERKNS_5Mat22ERKNS_4Vec2E(ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %30, ptr %7, align 4
  %31 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9apollonia4Body8rotationEv(ptr noundef nonnull align 8 dereferenceable(88) %32)
  %34 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 3
  %35 = call <2 x float> @_ZN9apolloniamlERKNS_5Mat22ERKNS_4Vec2E(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %35, ptr %8, align 4
  %36 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %37)
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %39)
  %41 = fadd float %38, %40
  %42 = call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %41, ptr noundef nonnull align 4 dereferenceable(16) @_ZN9apollonia5Mat221IE)
  %43 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %11, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::array", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 0
  %46 = extractvalue { <2 x float>, <2 x float> } %42, 0
  store <2 x float> %46, ptr %45, align 4
  %47 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 1
  %48 = extractvalue { <2 x float>, <2 x float> } %42, 1
  store <2 x float> %48, ptr %47, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %51 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %52 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %51, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !12
  %54 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %55 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %54, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !12
  %57 = fmul float %53, %56
  %58 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %59 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %58, i32 0, i32 1
  %60 = load float, ptr %59, align 4, !tbaa !12
  %61 = fneg float %60
  %62 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %63 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 8, !tbaa !18
  %65 = fmul float %61, %64
  %66 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %67 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %66, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !12
  %69 = fneg float %68
  %70 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %71 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 8, !tbaa !18
  %73 = fmul float %69, %72
  %74 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %75 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %74, i32 0, i32 0
  %76 = load float, ptr %75, align 8, !tbaa !18
  %77 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %78 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 8, !tbaa !18
  %80 = fmul float %76, %79
  call void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %13, float noundef %57, float noundef %65, float noundef %73, float noundef %80)
  %81 = call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %50, ptr noundef nonnull align 4 dereferenceable(16) %13)
  %82 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %12, i32 0, i32 0
  %83 = getelementptr inbounds %"struct.std::array", ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %83, i32 0, i32 0
  %85 = extractvalue { <2 x float>, <2 x float> } %81, 0
  store <2 x float> %85, ptr %84, align 4
  %86 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %83, i32 0, i32 1
  %87 = extractvalue { <2 x float>, <2 x float> } %81, 1
  store <2 x float> %87, ptr %86, align 4
  %88 = call { <2 x float>, <2 x float> } @_ZN9apolloniaplERKNS_5Mat22ES2_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %89 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %10, i32 0, i32 0
  %90 = getelementptr inbounds %"struct.std::array", ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %90, i32 0, i32 0
  %92 = extractvalue { <2 x float>, <2 x float> } %88, 0
  store <2 x float> %92, ptr %91, align 4
  %93 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %90, i32 0, i32 1
  %94 = extractvalue { <2 x float>, <2 x float> } %88, 1
  store <2 x float> %94, ptr %93, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %95)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %97 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %98 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %97, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !19
  %100 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %101 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %100, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !19
  %103 = fmul float %99, %102
  %104 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %105 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %104, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !19
  %107 = fneg float %106
  %108 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %109 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 8, !tbaa !20
  %111 = fmul float %107, %110
  %112 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %113 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %112, i32 0, i32 1
  %114 = load float, ptr %113, align 4, !tbaa !19
  %115 = fneg float %114
  %116 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %117 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 8, !tbaa !20
  %119 = fmul float %115, %118
  %120 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %121 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 8, !tbaa !20
  %123 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %124 = getelementptr inbounds %"struct.apollonia::Vec2", ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 8, !tbaa !20
  %126 = fmul float %122, %125
  call void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %15, float noundef %103, float noundef %111, float noundef %119, float noundef %126)
  %127 = call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %96, ptr noundef nonnull align 4 dereferenceable(16) %15)
  %128 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %14, i32 0, i32 0
  %129 = getelementptr inbounds %"struct.std::array", ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %129, i32 0, i32 0
  %131 = extractvalue { <2 x float>, <2 x float> } %127, 0
  store <2 x float> %131, ptr %130, align 4
  %132 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %129, i32 0, i32 1
  %133 = extractvalue { <2 x float>, <2 x float> } %127, 1
  store <2 x float> %133, ptr %132, align 4
  %134 = call { <2 x float>, <2 x float> } @_ZN9apolloniaplERKNS_5Mat22ES2_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %14)
  %135 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %9, i32 0, i32 0
  %136 = getelementptr inbounds %"struct.std::array", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %136, i32 0, i32 0
  %138 = extractvalue { <2 x float>, <2 x float> } %134, 0
  store <2 x float> %138, ptr %137, align 4
  %139 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %136, i32 0, i32 1
  %140 = extractvalue { <2 x float>, <2 x float> } %134, 1
  store <2 x float> %140, ptr %139, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %141 = call { <2 x float>, <2 x float> } @_ZNK9apollonia5Mat223InvEv(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %142 = getelementptr inbounds %"struct.apollonia::Mat22", ptr %16, i32 0, i32 0
  %143 = getelementptr inbounds %"struct.std::array", ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %143, i32 0, i32 0
  %145 = extractvalue { <2 x float>, <2 x float> } %141, 0
  store <2 x float> %145, ptr %144, align 4
  %146 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %143, i32 0, i32 1
  %147 = extractvalue { <2 x float>, <2 x float> } %141, 1
  store <2 x float> %147, ptr %146, align 4
  %148 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 4 %16, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %149 = load float, ptr %4, align 4, !tbaa !9
  %150 = fdiv float 0xBFC99999A0000000, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8centroidEv(ptr noundef nonnull align 8 dereferenceable(88) %152)
  %154 = call <2 x float> @_ZNK9apollonia4Body12LocalToWorldERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(88) %151, ptr noundef nonnull align 4 dereferenceable(8) %153)
  store <2 x float> %154, ptr %21, align 4
  %155 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  %156 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %155)
  store <2 x float> %156, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8centroidEv(ptr noundef nonnull align 8 dereferenceable(88) %158)
  %160 = call <2 x float> @_ZNK9apollonia4Body12LocalToWorldERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(88) %157, ptr noundef nonnull align 4 dereferenceable(8) %159)
  store <2 x float> %160, ptr %22, align 4
  %161 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %22)
  store <2 x float> %161, ptr %19, align 4
  %162 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  %163 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %162)
  store <2 x float> %163, ptr %18, align 4
  %164 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %150, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %164, ptr %17, align 4
  %165 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %165, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %167 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 7
  %168 = call <2 x float> @_ZNK9apollonia4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %167)
  store <2 x float> %168, ptr %23, align 4
  %169 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 4
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %166, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %169)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 7
  %172 = getelementptr inbounds %"class.apollonia::RevoluteJoint", ptr %24, i32 0, i32 5
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %170, ptr noundef nonnull align 4 dereferenceable(8) %171, ptr noundef nonnull align 4 dereferenceable(8) %172)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN9apolloniaplERKNS_5Mat22ES2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK9apollonia5Mat223InvEv(ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

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

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

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

!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 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!12 = !{!13, !10, i64 52}
!13 = !{!"_ZTSN9apollonia13RevoluteJointE", !14, i64 0, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !16, i64 64, !15, i64 80, !15, i64 88}
!14 = !{!"_ZTSN9apollonia5JointE", !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSN9apollonia4Vec2E", !10, i64 0, !10, i64 4}
!16 = !{!"_ZTSN9apollonia5Mat22E", !17, i64 0}
!17 = !{!"_ZTSSt5arrayIN9apollonia4Vec2ELm2EE", !7, i64 0}
!18 = !{!13, !10, i64 48}
!19 = !{!13, !10, i64 60}
!20 = !{!13, !10, i64 56}
!21 = !{i64 0, i64 16, !22}
!22 = !{!7, !7, i64 0}


; 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::Mat22" = type { %"struct.std::array" }
%"struct.std::array" = type { [2 x %"struct.apollonia::Vec2"] }
%"struct.apollonia::Vec2" = type { float, float }

@_ZN9apollonia5Mat221IE = external global %"struct.apollonia::Mat22", align 4

; 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 uwtable
declare hidden <2 x float> @_ZN9apolloniamlERKNS_5Mat22ERKNS_4Vec2E(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; 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 #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8centroidEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 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 uwtable
define dso_local void @_ZN9apollonia13RevoluteJoint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(96) %0, float noundef %1) unnamed_addr #3 align 2 {
  %3 = alloca %"struct.apollonia::Mat22", align 8
  %4 = alloca %"struct.apollonia::Mat22", align 8
  %5 = alloca %"struct.apollonia::Mat22", align 8
  %6 = alloca %"struct.apollonia::Mat22", align 8
  %7 = alloca %"struct.apollonia::Mat22", align 4
  %8 = alloca %"struct.apollonia::Mat22", align 8
  %9 = alloca %"struct.apollonia::Mat22", align 4
  %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 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZN9apollonia5Joint1aEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %17 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZN9apollonia5Joint1bEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %18 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9apollonia4Body8rotationEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = tail call <2 x float> @_ZN9apolloniamlERKNS_5Mat22ERKNS_4Vec2E(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  store <2 x float> %20, ptr %21, align 8
  %22 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9apollonia4Body8rotationEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = tail call <2 x float> @_ZN9apolloniamlERKNS_5Mat22ERKNS_4Vec2E(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %25 = getelementptr inbounds i8, ptr %0, i64 56
  store <2 x float> %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %26 = tail call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
  %27 = tail call noundef float @_ZNK9apollonia4Body8inv_massEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
  %28 = fadd float %26, %27
  %29 = tail call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %28, ptr noundef nonnull align 4 dereferenceable(16) @_ZN9apollonia5Mat221IE)
  %30 = extractvalue { <2 x float>, <2 x float> } %29, 0
  store <2 x float> %30, ptr %5, align 8
  %31 = getelementptr inbounds i8, ptr %5, i64 8
  %32 = extractvalue { <2 x float>, <2 x float> } %29, 1
  store <2 x float> %32, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %33 = tail call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %34 = getelementptr inbounds i8, ptr %0, i64 52
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = fmul float %35, %35
  %37 = fneg float %35
  %38 = load float, ptr %21, align 8, !tbaa !15
  %39 = fmul float %38, %37
  %40 = fmul float %38, %38
  call void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef %36, float noundef %39, float noundef %39, float noundef %40)
  %41 = call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %33, ptr noundef nonnull align 4 dereferenceable(16) %7)
  %42 = extractvalue { <2 x float>, <2 x float> } %41, 0
  store <2 x float> %42, ptr %6, align 8
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  %44 = extractvalue { <2 x float>, <2 x float> } %41, 1
  store <2 x float> %44, ptr %43, align 8
  %45 = call { <2 x float>, <2 x float> } @_ZN9apolloniaplERKNS_5Mat22ES2_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %46 = extractvalue { <2 x float>, <2 x float> } %45, 0
  store <2 x float> %46, ptr %4, align 8
  %47 = getelementptr inbounds i8, ptr %4, i64 8
  %48 = extractvalue { <2 x float>, <2 x float> } %45, 1
  store <2 x float> %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %49 = call noundef float @_ZNK9apollonia4Body11inv_inertiaEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %50 = getelementptr inbounds i8, ptr %0, i64 60
  %51 = load float, ptr %50, align 4, !tbaa !16
  %52 = fmul float %51, %51
  %53 = fneg float %51
  %54 = load float, ptr %25, align 8, !tbaa !17
  %55 = fmul float %54, %53
  %56 = fmul float %54, %54
  call void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %52, float noundef %55, float noundef %55, float noundef %56)
  %57 = call { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef %49, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %58 = extractvalue { <2 x float>, <2 x float> } %57, 0
  store <2 x float> %58, ptr %8, align 8
  %59 = getelementptr inbounds i8, ptr %8, i64 8
  %60 = extractvalue { <2 x float>, <2 x float> } %57, 1
  store <2 x float> %60, ptr %59, align 8
  %61 = call { <2 x float>, <2 x float> } @_ZN9apolloniaplERKNS_5Mat22ES2_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %62 = extractvalue { <2 x float>, <2 x float> } %61, 0
  store <2 x float> %62, ptr %3, align 8
  %63 = getelementptr inbounds i8, ptr %3, i64 8
  %64 = extractvalue { <2 x float>, <2 x float> } %61, 1
  store <2 x float> %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  %65 = call { <2 x float>, <2 x float> } @_ZNK9apollonia5Mat223InvEv(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %66 = extractvalue { <2 x float>, <2 x float> } %65, 0
  %67 = extractvalue { <2 x float>, <2 x float> } %65, 1
  %68 = getelementptr inbounds i8, ptr %0, i64 64
  store <2 x float> %66, ptr %68, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 72
  store <2 x float> %67, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !18
  %69 = fdiv float 0xBFC99999A0000000, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %70 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8centroidEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
  %71 = call <2 x float> @_ZNK9apollonia4Body12LocalToWorldERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(88) %17, ptr noundef nonnull align 4 dereferenceable(8) %70)
  store <2 x float> %71, ptr %13, align 8
  %72 = call <2 x float> @_ZN9apolloniaplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %72, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9apollonia4Body8centroidEv(ptr noundef nonnull align 8 dereferenceable(88) %16)
  %74 = call <2 x float> @_ZNK9apollonia4Body12LocalToWorldERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 4 dereferenceable(8) %73)
  store <2 x float> %74, ptr %14, align 8
  %75 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %75, ptr %11, align 8
  %76 = call <2 x float> @_ZN9apolloniamiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %76, ptr %10, align 8
  %77 = call <2 x float> @_ZN9apolloniamlEfRKNS_4Vec2E(float noundef %69, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %78 = getelementptr inbounds i8, ptr %0, i64 88
  store <2 x float> %77, ptr %78, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  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.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %79 = getelementptr inbounds i8, ptr %0, i64 80
  %80 = call <2 x float> @_ZNK9apollonia4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %79)
  store <2 x float> %80, ptr %15, align 8
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @_ZN9apollonia4Body12ApplyImpulseERKNS_4Vec2ES3_(ptr noundef nonnull align 8 dereferenceable(88) %17, ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN9apolloniamlEfRKNS_5Mat22E(float noundef, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

; 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: 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: mustprogress uwtable
declare dso_local void @_ZN9apollonia5Mat22C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK9apollonia5Mat223InvEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; 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 #1

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 #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 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 = { "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 52}
!6 = !{!"_ZTSN9apollonia13RevoluteJointE", !7, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !13, i64 64, !11, i64 80, !11, i64 88}
!7 = !{!"_ZTSN9apollonia5JointE", !8, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN9apollonia4Vec2E", !12, i64 0, !12, i64 4}
!12 = !{!"float", !9, i64 0}
!13 = !{!"_ZTSN9apollonia5Mat22E", !14, i64 0}
!14 = !{!"_ZTSSt5arrayIN9apollonia4Vec2ELm2EE", !9, i64 0}
!15 = !{!6, !12, i64 48}
!16 = !{!6, !12, i64 60}
!17 = !{!6, !12, i64 56}
!18 = !{!9, !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass