; LLVM IR from atlantis13579/Riemann :: Src/RigidBodyDynamics (MassParameters)

; 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"

%"class.Maths::TVector3" = type { float, float, float }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }
%"struct.Riemann::MassParameters" = type { float, float, %"class.Maths::Matrix3", %"class.Maths::TVector3", %"class.Maths::TAABB3" }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"struct.Maths::Transform" = type { %"class.Maths::TVector3", %"class.Maths::Quaternion" }
%"class.Maths::Quaternion" = type { float, float, float, float }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__._ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_ = external hidden unnamed_addr constant [132 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(80) %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca i64, align 8
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca i64, align 8
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca %"class.Maths::TVector3", align 4
  %20 = alloca %"class.Maths::TVector3", align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  %22 = alloca %"class.Maths::Matrix3", align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca %"class.Maths::Matrix3", align 4
  %27 = alloca %"class.Maths::Matrix3", align 4
  %28 = alloca %"class.Maths::Matrix3", align 4
  %29 = alloca %"class.Maths::Matrix3", align 4
  %30 = alloca %"class.Maths::Matrix3", align 4
  %31 = alloca %"class.Maths::Matrix3", align 4
  %32 = alloca %"class.Maths::Matrix3", align 4
  %33 = alloca %"class.Maths::Matrix3", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = icmp eq i64 %35, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %3
  br label %42

40:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 11, ptr noundef @__PRETTY_FUNCTION__._ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_) #7
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %46, label %83

46:                                               ; preds = %42
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #6
  %49 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %48, i32 0, i32 1
  %50 = load float, ptr %49, align 4, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %51, i32 0, i32 1
  store float %50, ptr %52, align 4, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 0) #6
  %55 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %54, i32 0, i32 0
  %56 = load float, ptr %55, align 4, !tbaa !15
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %57, i32 0, i32 0
  store float %56, ptr %58, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef 0) #6
  %61 = getelementptr inbounds %"struct.Maths::Transform", ptr %60, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 0) #6
  %64 = getelementptr inbounds %"struct.Maths::Transform", ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #6
  %67 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %66, i32 0, i32 3
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(12) %67)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %68, i32 0, i32 3
  %70 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 0) #6
  %73 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %74, i32 0, i32 2
  %76 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %75, ptr noundef nonnull align 4 dereferenceable(36) %73)
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #6
  %79 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %80, i32 0, i32 4
  %82 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(24) %79)
  br label %236

83:                                               ; preds = %42
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %84, i32 0, i32 0
  store float 0.000000e+00, ptr %85, align 4, !tbaa !15
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %86, i32 0, i32 1
  store float 0.000000e+00, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %9)
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %88, i32 0, i32 3
  %90 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  %91 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix34ZeroEv()
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %92, i32 0, i32 2
  %94 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %93, ptr noundef nonnull align 4 dereferenceable(36) %91)
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %95, i32 0, i32 4
  call void @_ZN5Maths6TAABB3IfE8SetEmptyEv(ptr noundef nonnull align 4 dereferenceable(24) %96)
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #6
  br i1 %98, label %99, label %100

99:                                               ; preds = %83
  br label %236

100:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %101

101:                                              ; preds = %152, %100
  %102 = load i64, ptr %10, align 8, !tbaa !16
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #6
  %105 = icmp ult i64 %102, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %155

107:                                              ; preds = %101
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load i64, ptr %10, align 8, !tbaa !16
  %110 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109) #6
  %111 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %110, i32 0, i32 0
  %112 = load float, ptr %111, align 4, !tbaa !15
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !15
  %116 = fadd float %115, %112
  store float %116, ptr %114, align 4, !tbaa !15
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load i64, ptr %10, align 8, !tbaa !16
  %119 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %118) #6
  %120 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %119, i32 0, i32 1
  %121 = load float, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %122, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !9
  %125 = fadd float %124, %121
  store float %125, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load i64, ptr %10, align 8, !tbaa !16
  %128 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %127) #6
  %129 = getelementptr inbounds %"struct.Maths::Transform", ptr %128, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = load i64, ptr %10, align 8, !tbaa !16
  %132 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #6
  %133 = getelementptr inbounds %"struct.Maths::Transform", ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load i64, ptr %10, align 8, !tbaa !16
  %136 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %135) #6
  %137 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %136, i32 0, i32 3
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %133, ptr noundef nonnull align 4 dereferenceable(12) %137)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %129, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = load i64, ptr %10, align 8, !tbaa !16
  %140 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %139) #6
  %141 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %140, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !15
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %142)
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %143, i32 0, i32 3
  call void @_ZN5Maths8TVector3IfEpLERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %144, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = load i64, ptr %10, align 8, !tbaa !16
  %149 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %148) #6
  %150 = getelementptr inbounds %"struct.Maths::Transform", ptr %149, i32 0, i32 0
  %151 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE11EncapsulateERKNS_8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(24) %146, ptr noundef nonnull align 4 dereferenceable(12) %150)
  br label %152

152:                                              ; preds = %107
  %153 = load i64, ptr %10, align 8, !tbaa !16
  %154 = add i64 %153, 1
  store i64 %154, ptr %10, align 8, !tbaa !16
  br label %101, !llvm.loop !18

155:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 0x3F50624DE0000000, ptr %14, align 4, !tbaa !20
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %156, i32 0, i32 0
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %157)
  %159 = load float, ptr %158, align 4, !tbaa !20
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %160, i32 0, i32 0
  store float %159, ptr %161, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0x3F50624DE0000000, ptr %15, align 4, !tbaa !20
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %162, i32 0, i32 1
  %164 = 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) %163)
  %165 = load float, ptr %164, align 4, !tbaa !20
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %166, i32 0, i32 1
  store float %165, ptr %167, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %168, i32 0, i32 3
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %170, i32 0, i32 0
  %172 = load float, ptr %171, align 4, !tbaa !15
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %169, float noundef %172)
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %173, i32 0, i32 3
  %175 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %174, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !16
  br label %176

176:                                              ; preds = %233, %155
  %177 = load i64, ptr %17, align 8, !tbaa !16
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #6
  %180 = icmp ult i64 %177, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %236

182:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = load i64, ptr %17, align 8, !tbaa !16
  %185 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %184) #6
  %186 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %185, i32 0, i32 0
  %187 = load float, ptr %186, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load i64, ptr %17, align 8, !tbaa !16
  %190 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %189) #6
  %191 = getelementptr inbounds %"struct.Maths::Transform", ptr %190, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #6
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = load i64, ptr %17, align 8, !tbaa !16
  %194 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %193) #6
  %195 = getelementptr inbounds %"struct.Maths::Transform", ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = load i64, ptr %17, align 8, !tbaa !16
  %198 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %197) #6
  %199 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %198, i32 0, i32 3
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %195, ptr noundef nonnull align 4 dereferenceable(12) %199)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %191, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %200, i32 0, i32 3
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %201)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %18, float noundef %187, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %202 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %203 = load float, ptr %202, align 4, !tbaa !21
  %204 = fneg float %203
  %205 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 1
  %206 = load float, ptr %205, align 4, !tbaa !22
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef 0.000000e+00, float noundef %204, float noundef %206)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %207 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %208 = load float, ptr %207, align 4, !tbaa !21
  %209 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %210 = load float, ptr %209, align 4, !tbaa !23
  %211 = fneg float %210
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %208, float noundef 0.000000e+00, float noundef %211)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #6
  %212 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !22
  %214 = fneg float %213
  %215 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %216 = load float, ptr %215, align 4, !tbaa !23
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %25, float noundef %214, float noundef %216, float noundef 0.000000e+00)
  call void @_ZN5Maths7Matrix3C2ERKNS_8TVector3IfEES4_S4_b(ptr noundef nonnull align 4 dereferenceable(36) %22, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %25, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %26) #6
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = load i64, ptr %17, align 8, !tbaa !16
  %219 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %218) #6
  %220 = getelementptr inbounds %"struct.Maths::Transform", ptr %219, i32 0, i32 1
  call void @_ZNK5Maths10Quaternion17ToRotationMatrix3Ev(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(16) %220)
  call void @llvm.lifetime.start.p0(i64 36, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %29) #6
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = load i64, ptr %17, align 8, !tbaa !16
  %223 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %222) #6
  %224 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %223, i32 0, i32 2
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(36) %26, ptr noundef nonnull align 4 dereferenceable(36) %224)
  call void @llvm.lifetime.start.p0(i64 36, ptr %30) #6
  call void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %30, ptr noundef nonnull align 4 dereferenceable(36) %26)
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(36) %29, ptr noundef nonnull align 4 dereferenceable(36) %30)
  call void @llvm.lifetime.start.p0(i64 36, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %32) #6
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = load i64, ptr %17, align 8, !tbaa !16
  %227 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %226) #6
  %228 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %227, i32 0, i32 0
  %229 = load float, ptr %228, align 4, !tbaa !15
  call void @_ZNK5Maths7Matrix3mlEf(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %32, ptr noundef nonnull align 4 dereferenceable(36) %22, float noundef %229)
  call void @llvm.lifetime.start.p0(i64 36, ptr %33) #6
  call void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %33, ptr noundef nonnull align 4 dereferenceable(36) %22)
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(36) %32, ptr noundef nonnull align 4 dereferenceable(36) %33)
  call void @_ZNK5Maths7Matrix3plERKS0_(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(36) %28, ptr noundef nonnull align 4 dereferenceable(36) %31)
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %230, i32 0, i32 2
  %232 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %231, ptr noundef nonnull align 4 dereferenceable(36) %27)
  call void @llvm.lifetime.end.p0(i64 36, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  br label %233

233:                                              ; preds = %182
  %234 = load i64, ptr %17, align 8, !tbaa !16
  %235 = add i64 %234, 1
  store i64 %235, ptr %17, align 8, !tbaa !16
  br label %176, !llvm.loop !24

236:                                              ; preds = %181, %99, %46
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix34ZeroEv() #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6TAABB3IfE8SetEmptyEv(ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEpLERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE11EncapsulateERKNS_8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #0 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)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths7Matrix3C2ERKNS_8TVector3IfEES4_S4_b(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Maths10Quaternion17ToRotationMatrix3Ev(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3plERKS0_(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), float noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !11, i64 4}
!10 = !{!"_ZTSN7Riemann14MassParametersE", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 44, !14, i64 56}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTSN5Maths7Matrix3E", !7, i64 0}
!13 = !{!"_ZTSN5Maths8TVector3IfEE", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!"_ZTSN5Maths6TAABB3IfEE", !13, i64 0, !13, i64 12}
!15 = !{!10, !11, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!11, !11, i64 0}
!21 = !{!13, !11, i64 8}
!22 = !{!13, !11, i64 4}
!23 = !{!13, !11, i64 0}
!24 = distinct !{!24, !19}


; 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"

%"class.Maths::TVector3" = type { float, float, float }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@__PRETTY_FUNCTION__._ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_ = external hidden unnamed_addr constant [132 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(80) %2) local_unnamed_addr #0 {
  %4 = alloca %"class.Maths::TVector3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::Matrix3", align 4
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca %"class.Maths::TVector3", align 4
  %20 = alloca %"class.Maths::TVector3", align 4
  %21 = alloca %"class.Maths::Matrix3", align 4
  %22 = alloca %"class.Maths::Matrix3", align 4
  %23 = alloca %"class.Maths::Matrix3", align 4
  %24 = alloca %"class.Maths::Matrix3", align 4
  %25 = alloca %"class.Maths::Matrix3", align 4
  %26 = alloca %"class.Maths::Matrix3", align 4
  %27 = alloca %"class.Maths::Matrix3", align 4
  %28 = alloca %"class.Maths::Matrix3", align 4
  %29 = tail call noundef i64 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %30 = tail call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %31 = icmp eq i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 11, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7Riemann30ComputeCompositeMassParametersERKSt6vectorIN5Maths9TransformESaIS2_EERKS0_INS_14MassParametersESaIS7_EERS7_) #7
  unreachable

33:                                               ; preds = %3
  %34 = tail call noundef i64 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %35 = icmp eq i64 %34, 1
  br i1 %35, label %36, label %58

36:                                               ; preds = %33
  %37 = tail call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %2, i64 4
  store float %39, ptr %40, align 4, !tbaa !5
  %41 = tail call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %42 = load float, ptr %41, align 4, !tbaa !13
  store float %42, ptr %2, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %43 = tail call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %44 = tail call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 12
  %46 = tail call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %47 = getelementptr inbounds i8, ptr %46, i64 44
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(12) %47)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %48 = getelementptr inbounds i8, ptr %2, i64 44
  %49 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %50 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = getelementptr inbounds i8, ptr %2, i64 8
  %53 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %52, ptr noundef nonnull align 4 dereferenceable(36) %51)
  %54 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %55 = getelementptr inbounds i8, ptr %54, i64 56
  %56 = getelementptr inbounds i8, ptr %2, i64 56
  %57 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %56, ptr noundef nonnull align 4 dereferenceable(24) %55)
  br label %.loopexit

58:                                               ; preds = %33
  %59 = getelementptr inbounds i8, ptr %2, i64 4
  store <2 x float> zeroinitializer, ptr %2, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6)
  %60 = getelementptr inbounds i8, ptr %2, i64 44
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  %62 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix34ZeroEv()
  %63 = getelementptr inbounds i8, ptr %2, i64 8
  %64 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %63, ptr noundef nonnull align 4 dereferenceable(36) %62)
  %65 = getelementptr inbounds i8, ptr %2, i64 56
  call void @_ZN5Maths6TAABB3IfE8SetEmptyEv(ptr noundef nonnull align 4 dereferenceable(24) %65)
  %66 = call noundef zeroext i1 @_ZNKSt6vectorIN5Maths9TransformESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br i1 %66, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %58
  %67 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %67, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store float 0x3F50624DE0000000, ptr %10, align 4, !tbaa !14
  %68 = 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) %2)
  %69 = load float, ptr %68, align 4, !tbaa !14
  store float %69, ptr %2, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store float 0x3F50624DE0000000, ptr %11, align 4, !tbaa !14
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %71 = load float, ptr %70, align 4, !tbaa !14
  store float %71, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  %72 = load float, ptr %2, align 4, !tbaa !13
  call void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %60, float noundef %72)
  %73 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  %74 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not72 = icmp eq i64 %74, 0
  br i1 %.not72, label %.loopexit, label %.lr.ph71

.lr.ph71:                                         ; preds = %._crit_edge
  %75 = getelementptr inbounds i8, ptr %13, i64 8
  %76 = getelementptr inbounds i8, ptr %13, i64 4
  br label %98

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.06768 = phi i64 [ %95, %.lr.ph ], [ 0, %.preheader ]
  %77 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06768) #6
  %78 = load float, ptr %77, align 4, !tbaa !13
  %79 = load float, ptr %2, align 4, !tbaa !13
  %80 = fadd float %78, %79
  store float %80, ptr %2, align 4, !tbaa !13
  %81 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06768) #6
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = load float, ptr %59, align 4, !tbaa !5
  %85 = fadd float %83, %84
  store float %85, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  %86 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06768) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  %87 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06768) #6
  %88 = getelementptr inbounds i8, ptr %87, i64 12
  %89 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06768) #6
  %90 = getelementptr inbounds i8, ptr %89, i64 44
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %88, ptr noundef nonnull align 4 dereferenceable(12) %90)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %86, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %91 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06768) #6
  %92 = load float, ptr %91, align 4, !tbaa !13
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %92)
  call void @_ZN5Maths8TVector3IfEpLERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  %93 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06768) #6
  %94 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE11EncapsulateERKNS_8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(24) %65, ptr noundef nonnull align 4 dereferenceable(12) %93)
  %95 = add nuw i64 %.06768, 1
  %96 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %.lr.ph, label %._crit_edge, !llvm.loop !15

98:                                               ; preds = %.lr.ph71, %98
  %.069 = phi i64 [ 0, %.lr.ph71 ], [ %122, %98 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  %99 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.069) #6
  %100 = load float, ptr %99, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  %101 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.069) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  %102 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.069) #6
  %103 = getelementptr inbounds i8, ptr %102, i64 12
  %104 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.069) #6
  %105 = getelementptr inbounds i8, ptr %104, i64 44
  call void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(16) %103, ptr noundef nonnull align 4 dereferenceable(12) %105)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %60)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %13, float noundef %100, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #6
  %106 = load float, ptr %75, align 4, !tbaa !17
  %107 = fneg float %106
  %108 = load float, ptr %76, align 4, !tbaa !18
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef 0.000000e+00, float noundef %107, float noundef %108)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #6
  %109 = load float, ptr %75, align 4, !tbaa !17
  %110 = load float, ptr %13, align 4, !tbaa !19
  %111 = fneg float %110
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef %109, float noundef 0.000000e+00, float noundef %111)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  %112 = load float, ptr %76, align 4, !tbaa !18
  %113 = fneg float %112
  %114 = load float, ptr %13, align 4, !tbaa !19
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef %113, float noundef %114, float noundef 0.000000e+00)
  call void @_ZN5Maths7Matrix3C2ERKNS_8TVector3IfEES4_S4_b(ptr noundef nonnull align 4 dereferenceable(36) %17, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %20, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %21) #6
  %115 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.069) #6
  %116 = getelementptr inbounds i8, ptr %115, i64 12
  call void @_ZNK5Maths10Quaternion17ToRotationMatrix3Ev(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %116)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %24) #6
  %117 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.069) #6
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(36) %21, ptr noundef nonnull align 4 dereferenceable(36) %118)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %25) #6
  call void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(36) %21)
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(36) %24, ptr noundef nonnull align 4 dereferenceable(36) %25)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %27) #6
  %119 = call noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.069) #6
  %120 = load float, ptr %119, align 4, !tbaa !13
  call void @_ZNK5Maths7Matrix3mlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(36) %17, float noundef %120)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %28) #6
  call void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(36) %17)
  call void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(36) %27, ptr noundef nonnull align 4 dereferenceable(36) %28)
  call void @_ZNK5Maths7Matrix3plERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(36) %23, ptr noundef nonnull align 4 dereferenceable(36) %26)
  %121 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %63, ptr noundef nonnull align 4 dereferenceable(36) %22)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  %122 = add nuw i64 %.069, 1
  %123 = call noundef i64 @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %98, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %98, %._crit_edge, %58, %36
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(80) ptr @_ZNKSt6vectorIN7Riemann14MassParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNKSt6vectorIN5Maths9TransformESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths10QuaternionmlERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix34ZeroEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6TAABB3IfE8SetEmptyEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEpLERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfE11EncapsulateERKNS_8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 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 #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths7Matrix3C2ERKNS_8TVector3IfEES4_S4_b(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Maths10Quaternion17ToRotationMatrix3Ev(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix39TransposeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3plERKS0_(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 4 dereferenceable(36), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 align 2

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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 4}
!6 = !{!"_ZTSN7Riemann14MassParametersE", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 44, !12, i64 56}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN5Maths7Matrix3E", !8, i64 0}
!11 = !{!"_ZTSN5Maths8TVector3IfEE", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!"_ZTSN5Maths6TAABB3IfEE", !11, i64 0, !11, i64 12}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!11, !7, i64 8}
!18 = !{!11, !7, i64 4}
!19 = !{!11, !7, i64 0}
!20 = distinct !{!20, !16}


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