; 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

declare noundef i32 @_ZN9MathTools5svduvEPdS0_S0_iS0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6FTools20computeHFromMinCorrsERKSt6vectorIjSaIjEEjjPdS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [72 x double], align 16
  %12 = alloca [72 x double], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca [9 x double], align 16
  %20 = alloca [81 x double], align 16
  %21 = alloca [64 x double], align 16
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  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 576, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 576, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %24 = getelementptr inbounds [72 x double], ptr %11, i64 0, i64 0
  store ptr %24, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %71, %5
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %74

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %67, %30
  %32 = load i32, ptr %17, align 4, !tbaa !9
  %33 = icmp ult i32 %32, 2
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %70

35:                                               ; preds = %31
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #4
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = mul i32 2, %41
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %36, i64 %43
  %45 = load i32, ptr %17, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  store ptr %47, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %63, %35
  %49 = load i32, ptr %18, align 4, !tbaa !9
  %50 = icmp ult i32 %49, 9
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %66

52:                                               ; preds = %48
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  store double %54, ptr %55, align 8, !tbaa !11
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i32 1
  store ptr %57, ptr %14, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = mul i32 2, %58
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = zext i32 %59 to i64
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store ptr %62, ptr %13, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %52
  %64 = load i32, ptr %18, align 4, !tbaa !9
  %65 = add i32 %64, 1
  store i32 %65, ptr %18, align 4, !tbaa !9
  br label %48, !llvm.loop !13

66:                                               ; preds = %51
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %17, align 4, !tbaa !9
  br label %31, !llvm.loop !15

70:                                               ; preds = %34
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %15, align 4, !tbaa !9
  br label %25, !llvm.loop !16

74:                                               ; preds = %29
  %75 = getelementptr inbounds [72 x double], ptr %12, i64 0, i64 0
  %76 = getelementptr inbounds [72 x double], ptr %11, i64 0, i64 0
  call void @_ZN9MathTools5mattrEPdS0_ii(ptr noundef %75, ptr noundef %76, i32 noundef 8, i32 noundef 9)
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 648, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 512, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %77 = getelementptr inbounds [9 x double], ptr %19, i64 0, i64 0
  %78 = getelementptr inbounds [72 x double], ptr %12, i64 0, i64 0
  %79 = getelementptr inbounds [81 x double], ptr %20, i64 0, i64 0
  %80 = getelementptr inbounds [64 x double], ptr %21, i64 0, i64 0
  %81 = call noundef i32 @_ZN9MathTools5svduvEPdS0_S0_iS0_i(ptr noundef %77, ptr noundef %78, ptr noundef %79, i32 noundef 9, ptr noundef %80, i32 noundef 8)
  %82 = getelementptr inbounds [81 x double], ptr %20, i64 0, i64 0
  %83 = getelementptr inbounds double, ptr %82, i64 8
  store ptr %83, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %97, %74
  %85 = load i32, ptr %23, align 4, !tbaa !9
  %86 = icmp ult i32 %85, 9
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %100

88:                                               ; preds = %84
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i32, ptr %23, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %91, i64 %93
  store double %90, ptr %94, align 8, !tbaa !11
  %95 = load ptr, ptr %22, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 9
  store ptr %96, ptr %22, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %88
  %98 = load i32, ptr %23, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %23, align 4, !tbaa !9
  br label %84, !llvm.loop !17

100:                                              ; preds = %87
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 648, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 576, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 576, ptr %11) #4
  ret i32 1
}

declare void @_ZN9MathTools5mattrEPdS0_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

declare noundef i32 @_ZN9MathTools5svduvEPdS0_S0_iS0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6FTools20computeHFromMinCorrsERKSt6vectorIjSaIjEEjjPdS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #3 {
  %6 = alloca [72 x double], align 16
  %7 = alloca [72 x double], align 16
  %8 = alloca [9 x double], align 16
  %9 = alloca [81 x double], align 16
  %10 = alloca [64 x double], align 16
  call void @llvm.lifetime.start.p0(i64 576, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 576, ptr nonnull %7) #4
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %5
  %11 = shl i32 %2, 1
  %12 = zext i32 %11 to i64
  %wide.trip.count = zext i32 %1 to i64
  %invariant.gep = getelementptr inbounds i8, ptr %3, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next, %.preheader ]
  %.02532 = phi ptr [ %6, %.preheader.lr.ph ], [ %73, %.preheader ]
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = shl i32 %14, 1
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds double, ptr %3, i64 %16
  %18 = load double, ptr %17, align 8, !tbaa !9
  store double %18, ptr %.02532, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %.02532, i64 8
  %20 = getelementptr inbounds double, ptr %17, i64 %12
  %21 = load double, ptr %20, align 8, !tbaa !9
  store double %21, ptr %19, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %.02532, i64 16
  %23 = getelementptr inbounds double, ptr %20, i64 %12
  %24 = load double, ptr %23, align 8, !tbaa !9
  store double %24, ptr %22, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %.02532, i64 24
  %26 = getelementptr inbounds double, ptr %23, i64 %12
  %27 = load double, ptr %26, align 8, !tbaa !9
  store double %27, ptr %25, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %.02532, i64 32
  %29 = getelementptr inbounds double, ptr %26, i64 %12
  %30 = load double, ptr %29, align 8, !tbaa !9
  store double %30, ptr %28, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %.02532, i64 40
  %32 = getelementptr inbounds double, ptr %29, i64 %12
  %33 = load double, ptr %32, align 8, !tbaa !9
  store double %33, ptr %31, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %.02532, i64 48
  %35 = getelementptr inbounds double, ptr %32, i64 %12
  %36 = load double, ptr %35, align 8, !tbaa !9
  store double %36, ptr %34, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %.02532, i64 56
  %38 = getelementptr inbounds double, ptr %35, i64 %12
  %39 = load double, ptr %38, align 8, !tbaa !9
  store double %39, ptr %37, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %.02532, i64 64
  %41 = getelementptr inbounds double, ptr %38, i64 %12
  %42 = load double, ptr %41, align 8, !tbaa !9
  store double %42, ptr %40, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %.02532, i64 72
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = shl i32 %45, 1
  %47 = zext i32 %46 to i64
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %47
  %48 = load double, ptr %gep, align 8, !tbaa !9
  store double %48, ptr %43, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %.02532, i64 80
  %50 = getelementptr inbounds double, ptr %gep, i64 %12
  %51 = load double, ptr %50, align 8, !tbaa !9
  store double %51, ptr %49, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %.02532, i64 88
  %53 = getelementptr inbounds double, ptr %50, i64 %12
  %54 = load double, ptr %53, align 8, !tbaa !9
  store double %54, ptr %52, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %.02532, i64 96
  %56 = getelementptr inbounds double, ptr %53, i64 %12
  %57 = load double, ptr %56, align 8, !tbaa !9
  store double %57, ptr %55, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %.02532, i64 104
  %59 = getelementptr inbounds double, ptr %56, i64 %12
  %60 = load double, ptr %59, align 8, !tbaa !9
  store double %60, ptr %58, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %.02532, i64 112
  %62 = getelementptr inbounds double, ptr %59, i64 %12
  %63 = load double, ptr %62, align 8, !tbaa !9
  store double %63, ptr %61, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %.02532, i64 120
  %65 = getelementptr inbounds double, ptr %62, i64 %12
  %66 = load double, ptr %65, align 8, !tbaa !9
  store double %66, ptr %64, align 8, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %.02532, i64 128
  %68 = getelementptr inbounds double, ptr %65, i64 %12
  %69 = load double, ptr %68, align 8, !tbaa !9
  store double %69, ptr %67, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %.02532, i64 136
  %71 = getelementptr inbounds double, ptr %68, i64 %12
  %72 = load double, ptr %71, align 8, !tbaa !9
  store double %72, ptr %70, align 8, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %.02532, i64 144
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.preheader, %5
  call void @_ZN9MathTools5mattrEPdS0_ii(ptr noundef nonnull %7, ptr noundef nonnull %6, i32 noundef 8, i32 noundef 9)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 648, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %10) #4
  %74 = call noundef i32 @_ZN9MathTools5svduvEPdS0_S0_iS0_i(ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef nonnull %9, i32 noundef 9, ptr noundef nonnull %10, i32 noundef 8)
  %75 = getelementptr inbounds i8, ptr %9, i64 64
  %76 = load double, ptr %75, align 16, !tbaa !9
  store double %76, ptr %4, align 8, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %9, i64 136
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %4, i64 8
  store double %78, ptr %79, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %9, i64 208
  %81 = load double, ptr %80, align 16, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %4, i64 16
  store double %81, ptr %82, align 8, !tbaa !9
  %83 = getelementptr inbounds i8, ptr %9, i64 280
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %4, i64 24
  store double %84, ptr %85, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %9, i64 352
  %87 = load double, ptr %86, align 16, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %4, i64 32
  store double %87, ptr %88, align 8, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %9, i64 424
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %4, i64 40
  store double %90, ptr %91, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %9, i64 496
  %93 = load double, ptr %92, align 16, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %4, i64 48
  store double %93, ptr %94, align 8, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %9, i64 568
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %4, i64 56
  store double %96, ptr %97, align 8, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %9, i64 640
  %99 = load double, ptr %98, align 16, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %4, i64 64
  store double %99, ptr %100, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 648, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 576, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 576, ptr nonnull %6) #4
  ret i32 1
}

declare void @_ZN9MathTools5mattrEPdS0_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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


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