; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libUSAC/utils (FundmatrixFunctions)

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

declare void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6FTools13computeHFromFERKSt6vectorIjSaIjEEPdS5_S5_S5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [9 x double], align 16
  %12 = alloca [9 x double], align 16
  %13 = alloca [9 x double], align 16
  %14 = alloca [3 x double], align 16
  %15 = alloca [3 x double], align 16
  %16 = alloca [3 x double], align 16
  %17 = alloca [3 x double], align 16
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %27 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN9MathTools8skew_symEPdS0_(ptr noundef %27, ptr noundef %28)
  %29 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
  %30 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN9MathTools4mmulEPdS0_S0_i(ptr noundef %29, ptr noundef %30, ptr noundef %31, i32 noundef 3)
  %32 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
  store ptr %32, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %97, %5
  %34 = load i32, ptr %22, align 4, !tbaa !9
  %35 = icmp ult i32 %34, 3
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %100

37:                                               ; preds = %33
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %22, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = mul i32 6, %43
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds double, ptr %38, i64 %45
  store ptr %46, ptr %19, align 8, !tbaa !5
  %47 = load ptr, ptr %19, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 3
  store ptr %48, ptr %20, align 8, !tbaa !5
  %49 = load ptr, ptr %21, align 8, !tbaa !5
  %50 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef %49, ptr noundef %50, i64 noundef 24)
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 3
  store ptr %52, ptr %21, align 8, !tbaa !5
  %53 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 0
  %54 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef %53, ptr noundef %54, ptr noundef %55, i32 noundef 3)
  %56 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  %58 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 0
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef %56, ptr noundef %57, ptr noundef %58, i32 noundef 1)
  %59 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %60 = load ptr, ptr %20, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef %59, ptr noundef %60, ptr noundef %61, i32 noundef 1)
  %62 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %63 = load double, ptr %62, align 16, !tbaa !11
  %64 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %65 = load double, ptr %64, align 16, !tbaa !11
  %66 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = fmul double %67, %69
  %71 = call double @llvm.fmuladd.f64(double %63, double %65, double %70)
  %72 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %73 = load double, ptr %72, align 16, !tbaa !11
  %74 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %75 = load double, ptr %74, align 16, !tbaa !11
  %76 = call double @llvm.fmuladd.f64(double %73, double %75, double %71)
  store double %76, ptr %18, align 8, !tbaa !11
  %77 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %78 = load double, ptr %77, align 16, !tbaa !11
  %79 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  %80 = load double, ptr %79, align 16, !tbaa !11
  %81 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = fmul double %82, %84
  %86 = call double @llvm.fmuladd.f64(double %78, double %80, double %85)
  %87 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %88 = load double, ptr %87, align 16, !tbaa !11
  %89 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
  %90 = load double, ptr %89, align 16, !tbaa !11
  %91 = call double @llvm.fmuladd.f64(double %88, double %90, double %86)
  %92 = load double, ptr %18, align 8, !tbaa !11
  %93 = fdiv double %91, %92
  %94 = load i32, ptr %22, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 %95
  store double %93, ptr %96, align 8, !tbaa !11
  br label %97

97:                                               ; preds = %37
  %98 = load i32, ptr %22, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %22, align 4, !tbaa !9
  br label %33, !llvm.loop !13

100:                                              ; preds = %36
  %101 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
  %102 = call noundef i32 @_ZN9MathTools4minvEPdi(ptr noundef %101, i32 noundef 3)
  %103 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 0
  %104 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
  %105 = getelementptr inbounds [3 x double], ptr %16, i64 0, i64 0
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef %103, ptr noundef %104, ptr noundef %105, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %141, %100
  %107 = load i32, ptr %24, align 4, !tbaa !9
  %108 = icmp ult i32 %107, 3
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %144

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %137, %110
  %112 = load i32, ptr %26, align 4, !tbaa !9
  %113 = icmp ult i32 %112, 3
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %140

115:                                              ; preds = %111
  %116 = load i32, ptr %23, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load i32, ptr %24, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !11
  %125 = load i32, ptr %26, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !11
  %129 = fneg double %124
  %130 = call double @llvm.fmuladd.f64(double %129, double %128, double %119)
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  store double %130, ptr %134, align 8, !tbaa !11
  %135 = load i32, ptr %23, align 4, !tbaa !9
  %136 = add i32 %135, 1
  store i32 %136, ptr %23, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %115
  %138 = load i32, ptr %26, align 4, !tbaa !9
  %139 = add i32 %138, 1
  store i32 %139, ptr %26, align 4, !tbaa !9
  br label %111, !llvm.loop !15

140:                                              ; preds = %114
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %24, align 4, !tbaa !9
  br label %106, !llvm.loop !16

144:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #5
  ret void
}

declare void @_ZN9MathTools8skew_symEPdS0_(ptr noundef, ptr noundef) #2

declare void @_ZN9MathTools4mmulEPdS0_S0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

declare noundef i32 @_ZN9MathTools4minvEPdi(ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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"="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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

declare void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6FTools13computeHFromFERKSt6vectorIjSaIjEEPdS5_S5_S5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #4 {
.preheader:
  %5 = alloca [9 x double], align 16
  %6 = alloca [9 x double], align 16
  %7 = alloca [9 x double], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca [3 x double], align 16
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @_ZN9MathTools8skew_symEPdS0_(ptr noundef nonnull %6, ptr noundef %2)
  call void @_ZN9MathTools4mmulEPdS0_S0_i(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %3, i32 noundef 3)
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  %13 = getelementptr inbounds i8, ptr %9, i64 16
  %14 = getelementptr inbounds i8, ptr %8, i64 8
  %15 = getelementptr inbounds i8, ptr %8, i64 16
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = mul i32 %17, 6
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds double, ptr %1, i64 %19
  %21 = getelementptr inbounds i8, ptr %20, i64 24
  call void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef nonnull %7, ptr noundef %20, i64 noundef 24)
  %22 = getelementptr inbounds i8, ptr %7, i64 24
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef %20, i32 noundef 3)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %8, ptr noundef nonnull %21, ptr noundef nonnull %11, i32 noundef 1)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %9, ptr noundef nonnull %21, ptr noundef %2, i32 noundef 1)
  %23 = load double, ptr %9, align 16, !tbaa !9
  %24 = load double, ptr %12, align 8, !tbaa !9
  %25 = fmul double %24, %24
  %26 = call double @llvm.fmuladd.f64(double %23, double %23, double %25)
  %27 = load double, ptr %13, align 16, !tbaa !9
  %28 = call double @llvm.fmuladd.f64(double %27, double %27, double %26)
  %29 = load double, ptr %8, align 16, !tbaa !9
  %30 = load double, ptr %14, align 8, !tbaa !9
  %31 = fmul double %24, %30
  %32 = call double @llvm.fmuladd.f64(double %29, double %23, double %31)
  %33 = load double, ptr %15, align 16, !tbaa !9
  %34 = call double @llvm.fmuladd.f64(double %33, double %27, double %32)
  %35 = fdiv double %34, %28
  store double %35, ptr %10, align 16, !tbaa !9
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #5
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = mul i32 %37, 6
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %1, i64 %39
  %41 = getelementptr inbounds i8, ptr %40, i64 24
  call void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef nonnull %22, ptr noundef %40, i64 noundef 24)
  %42 = getelementptr inbounds i8, ptr %7, i64 48
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef %40, i32 noundef 3)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %8, ptr noundef nonnull %41, ptr noundef nonnull %11, i32 noundef 1)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %9, ptr noundef nonnull %41, ptr noundef %2, i32 noundef 1)
  %43 = load double, ptr %9, align 16, !tbaa !9
  %44 = load double, ptr %12, align 8, !tbaa !9
  %45 = fmul double %44, %44
  %46 = call double @llvm.fmuladd.f64(double %43, double %43, double %45)
  %47 = load double, ptr %13, align 16, !tbaa !9
  %48 = call double @llvm.fmuladd.f64(double %47, double %47, double %46)
  %49 = load double, ptr %8, align 16, !tbaa !9
  %50 = load double, ptr %14, align 8, !tbaa !9
  %51 = fmul double %44, %50
  %52 = call double @llvm.fmuladd.f64(double %49, double %43, double %51)
  %53 = load double, ptr %15, align 16, !tbaa !9
  %54 = call double @llvm.fmuladd.f64(double %53, double %47, double %52)
  %55 = fdiv double %54, %48
  %56 = getelementptr inbounds i8, ptr %10, i64 8
  store double %55, ptr %56, align 8, !tbaa !9
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #5
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = mul i32 %58, 6
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %1, i64 %60
  %62 = getelementptr inbounds i8, ptr %61, i64 24
  call void @_ZN6FTools8myMemCpyEPvPKvm(ptr noundef nonnull %42, ptr noundef %61, i64 noundef 24)
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef %61, i32 noundef 3)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %8, ptr noundef nonnull %62, ptr noundef nonnull %11, i32 noundef 1)
  call void @_ZN9MathTools9crossprodEPdPKdS2_j(ptr noundef nonnull %9, ptr noundef nonnull %62, ptr noundef %2, i32 noundef 1)
  %63 = load double, ptr %9, align 16, !tbaa !9
  %64 = load double, ptr %12, align 8, !tbaa !9
  %65 = fmul double %64, %64
  %66 = call double @llvm.fmuladd.f64(double %63, double %63, double %65)
  %67 = load double, ptr %13, align 16, !tbaa !9
  %68 = call double @llvm.fmuladd.f64(double %67, double %67, double %66)
  %69 = load double, ptr %8, align 16, !tbaa !9
  %70 = load double, ptr %14, align 8, !tbaa !9
  %71 = fmul double %64, %70
  %72 = call double @llvm.fmuladd.f64(double %69, double %63, double %71)
  %73 = load double, ptr %15, align 16, !tbaa !9
  %74 = call double @llvm.fmuladd.f64(double %73, double %67, double %72)
  %75 = fdiv double %74, %68
  %76 = getelementptr inbounds i8, ptr %10, i64 16
  store double %75, ptr %76, align 16, !tbaa !9
  %77 = call noundef i32 @_ZN9MathTools4minvEPdi(ptr noundef nonnull %7, i32 noundef 3)
  call void @_ZN9MathTools4vmulEPdS0_S0_i(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %10, i32 noundef 3)
  %78 = load double, ptr %5, align 16, !tbaa !9
  %79 = load double, ptr %2, align 8, !tbaa !9
  %80 = load double, ptr %11, align 16, !tbaa !9
  %81 = fneg double %79
  %82 = call double @llvm.fmuladd.f64(double %81, double %80, double %78)
  store double %82, ptr %4, align 8, !tbaa !9
  %83 = getelementptr inbounds i8, ptr %5, i64 8
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = load double, ptr %2, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %11, i64 8
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fneg double %85
  %89 = call double @llvm.fmuladd.f64(double %88, double %87, double %84)
  %90 = getelementptr inbounds i8, ptr %4, i64 8
  store double %89, ptr %90, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %5, i64 16
  %92 = load double, ptr %91, align 16, !tbaa !9
  %93 = load double, ptr %2, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %11, i64 16
  %95 = load double, ptr %94, align 16, !tbaa !9
  %96 = fneg double %93
  %97 = call double @llvm.fmuladd.f64(double %96, double %95, double %92)
  %98 = getelementptr inbounds i8, ptr %4, i64 16
  store double %97, ptr %98, align 8, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %2, i64 8
  %100 = getelementptr inbounds i8, ptr %5, i64 24
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load double, ptr %99, align 8, !tbaa !9
  %103 = fneg double %102
  %104 = call double @llvm.fmuladd.f64(double %103, double %80, double %101)
  %105 = getelementptr inbounds i8, ptr %4, i64 24
  store double %104, ptr %105, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %5, i64 32
  %107 = load double, ptr %106, align 16, !tbaa !9
  %108 = load double, ptr %99, align 8, !tbaa !9
  %109 = fneg double %108
  %110 = call double @llvm.fmuladd.f64(double %109, double %87, double %107)
  %111 = getelementptr inbounds i8, ptr %4, i64 32
  store double %110, ptr %111, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %5, i64 40
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = load double, ptr %99, align 8, !tbaa !9
  %115 = fneg double %114
  %116 = call double @llvm.fmuladd.f64(double %115, double %95, double %113)
  %117 = getelementptr inbounds i8, ptr %4, i64 40
  store double %116, ptr %117, align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %2, i64 16
  %119 = getelementptr inbounds i8, ptr %5, i64 48
  %120 = load double, ptr %119, align 16, !tbaa !9
  %121 = load double, ptr %118, align 8, !tbaa !9
  %122 = fneg double %121
  %123 = call double @llvm.fmuladd.f64(double %122, double %80, double %120)
  %124 = getelementptr inbounds i8, ptr %4, i64 48
  store double %123, ptr %124, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %5, i64 56
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load double, ptr %118, align 8, !tbaa !9
  %128 = fneg double %127
  %129 = call double @llvm.fmuladd.f64(double %128, double %87, double %126)
  %130 = getelementptr inbounds i8, ptr %4, i64 56
  store double %129, ptr %130, align 8, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %5, i64 64
  %132 = load double, ptr %131, align 16, !tbaa !9
  %133 = load double, ptr %118, align 8, !tbaa !9
  %134 = fneg double %133
  %135 = call double @llvm.fmuladd.f64(double %134, double %95, double %132)
  %136 = getelementptr inbounds i8, ptr %4, i64 64
  store double %135, ptr %136, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  ret void
}

declare void @_ZN9MathTools8skew_symEPdS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN9MathTools4mmulEPdS0_S0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare noundef i32 @_ZN9MathTools4minvEPdi(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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"="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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass