; LLVM IR from Tinker-Twins/3D-LIDAR-Localization :: fast_gicp/thirdparty/nvbio/contrib/moderngpu/src (sparsematrix)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.mgpu::MatrixStats" = type { i32, i32, i32, double, double, double }
%"struct.mgpu::SparseMatrix" = type { i32, i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.8" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4mgpu18ComputeMatrixStatsERKNS_12SparseMatrixE(ptr dead_on_unwind noalias writable sret(%"struct.mgpu::MatrixStats") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 0
  store i32 %14, ptr %15, align 8, !tbaa !20
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !23
  %19 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 1
  store i32 %18, ptr %19, align 4, !tbaa !24
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !25
  %23 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 2
  store i32 %22, ptr %23, align 8, !tbaa !26
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !25
  %27 = sitofp i32 %26 to double
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = sitofp i32 %30 to double
  %32 = fdiv double %27, %31
  %33 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 3
  store double %32, ptr %33, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store double 0.000000e+00, ptr %4, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !29
  br label %34

34:                                               ; preds = %65, %2
  %35 = load i32, ptr %5, align 4, !tbaa !29
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !9
  %39 = icmp slt i32 %35, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %68

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %42, i32 0, i32 3
  %44 = load i32, ptr %5, align 4, !tbaa !29
  %45 = add nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %46) #4
  %48 = load i32, ptr %47, align 4, !tbaa !29
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %49, i32 0, i32 3
  %51 = load i32, ptr %5, align 4, !tbaa !29
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #4
  %54 = load i32, ptr %53, align 4, !tbaa !29
  %55 = sub nsw i32 %48, %54
  store i32 %55, ptr %6, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %56 = load i32, ptr %6, align 4, !tbaa !29
  %57 = sitofp i32 %56 to double
  %58 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 3
  %59 = load double, ptr %58, align 8, !tbaa !27
  %60 = fsub double %57, %59
  store double %60, ptr %7, align 8, !tbaa !28
  %61 = load double, ptr %7, align 8, !tbaa !28
  %62 = load double, ptr %7, align 8, !tbaa !28
  %63 = load double, ptr %4, align 8, !tbaa !28
  %64 = call double @llvm.fmuladd.f64(double %61, double %62, double %63)
  store double %64, ptr %4, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %65

65:                                               ; preds = %41
  %66 = load i32, ptr %5, align 4, !tbaa !29
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !29
  br label %34, !llvm.loop !30

68:                                               ; preds = %40
  %69 = load double, ptr %4, align 8, !tbaa !28
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !9
  %73 = sitofp i32 %72 to double
  %74 = fdiv double %69, %73
  %75 = call double @sqrt(double noundef %74) #4
  %76 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 4
  store double %75, ptr %76, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0.000000e+00, ptr %8, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !29
  br label %77

77:                                               ; preds = %110, %68
  %78 = load i32, ptr %9, align 4, !tbaa !29
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = icmp slt i32 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %113

84:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %85, i32 0, i32 3
  %87 = load i32, ptr %9, align 4, !tbaa !29
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %89) #4
  %91 = load i32, ptr %90, align 4, !tbaa !29
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %92, i32 0, i32 3
  %94 = load i32, ptr %9, align 4, !tbaa !29
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #4
  %97 = load i32, ptr %96, align 4, !tbaa !29
  %98 = sub nsw i32 %91, %97
  store i32 %98, ptr %10, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %99 = load i32, ptr %10, align 4, !tbaa !29
  %100 = sitofp i32 %99 to double
  %101 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 3
  %102 = load double, ptr %101, align 8, !tbaa !27
  %103 = fsub double %100, %102
  store double %103, ptr %11, align 8, !tbaa !28
  %104 = load double, ptr %11, align 8, !tbaa !28
  %105 = load double, ptr %11, align 8, !tbaa !28
  %106 = fmul double %104, %105
  %107 = load double, ptr %11, align 8, !tbaa !28
  %108 = load double, ptr %8, align 8, !tbaa !28
  %109 = call double @llvm.fmuladd.f64(double %106, double %107, double %108)
  store double %109, ptr %8, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %110

110:                                              ; preds = %84
  %111 = load i32, ptr %9, align 4, !tbaa !29
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %9, align 4, !tbaa !29
  br label %77, !llvm.loop !33

113:                                              ; preds = %83
  %114 = load double, ptr %8, align 8, !tbaa !28
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.mgpu::SparseMatrix", ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !9
  %118 = sitofp i32 %117 to double
  %119 = fdiv double %114, %118
  %120 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 4
  %121 = load double, ptr %120, align 8, !tbaa !32
  %122 = call double @pow(double noundef %121, double noundef 3.000000e+00) #4
  %123 = fdiv double %119, %122
  %124 = getelementptr inbounds %"struct.mgpu::MatrixStats", ptr %0, i32 0, i32 5
  store double %123, ptr %124, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  ret void
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTSN4mgpu12SparseMatrixE", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 40, !16, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!21, !11, i64 0}
!21 = !{!"_ZTSN4mgpu11MatrixStatsE", !11, i64 0, !11, i64 4, !11, i64 8, !22, i64 16, !22, i64 24, !22, i64 32}
!22 = !{!"double", !7, i64 0}
!23 = !{!10, !11, i64 4}
!24 = !{!21, !11, i64 4}
!25 = !{!10, !11, i64 8}
!26 = !{!21, !11, i64 8}
!27 = !{!21, !22, i64 16}
!28 = !{!22, !22, i64 0}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!21, !22, i64 24}
!33 = distinct !{!33, !31}
!34 = !{!21, !22, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.mgpu::MatrixStats" = type { i32, i32, i32, double, double, double }

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4mgpu18ComputeMatrixStatsERKNS_12SparseMatrixE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"struct.mgpu::MatrixStats") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1) local_unnamed_addr #0 {
  %3 = load <2 x i32>, ptr %1, align 8, !tbaa !5
  store <2 x i32> %3, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %5, ptr %6, align 8, !tbaa !20
  %7 = sitofp i32 %5 to double
  %8 = extractelement <2 x i32> %3, i64 0
  %9 = sitofp i32 %8 to double
  %10 = fdiv double %7, %9
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  store double %10, ptr %11, align 8, !tbaa !23
  %12 = icmp sgt i32 %8, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  br label %20

._crit_edge.loopexit:                             ; preds = %20
  %.pre = sitofp i32 %29 to double
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.pre-phi = phi double [ %.pre, %._crit_edge.loopexit ], [ %9, %2 ]
  %.0.lcssa = phi double [ %28, %._crit_edge.loopexit ], [ 0.000000e+00, %2 ]
  %14 = fdiv double %.0.lcssa, %.pre-phi
  %15 = tail call double @sqrt(double noundef %14) #3
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  store double %15, ptr %16, align 8, !tbaa !24
  %17 = load i32, ptr %1, align 8, !tbaa !25
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph43, label %._crit_edge44

.lr.ph43:                                         ; preds = %._crit_edge
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  br label %37

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %.038 = phi double [ 0.000000e+00, %.lr.ph ], [ %28, %20 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv.next) #3
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #3
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = sub nsw i32 %22, %24
  %26 = sitofp i32 %25 to double
  %27 = fsub double %26, %10
  %28 = tail call double @llvm.fmuladd.f64(double %27, double %27, double %.038)
  %29 = load i32, ptr %1, align 8, !tbaa !25
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %20, label %._crit_edge.loopexit, !llvm.loop !26

._crit_edge44:                                    ; preds = %37, %._crit_edge
  %.033.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %46, %37 ]
  %.lcssa = phi i32 [ %17, %._crit_edge ], [ %47, %37 ]
  %32 = sitofp i32 %.lcssa to double
  %33 = fdiv double %.033.lcssa, %32
  %34 = tail call double @pow(double noundef %15, double noundef 3.000000e+00) #3
  %35 = fdiv double %33, %34
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  store double %35, ptr %36, align 8, !tbaa !28
  ret void

37:                                               ; preds = %.lr.ph43, %37
  %indvars.iv52 = phi i64 [ 0, %.lr.ph43 ], [ %indvars.iv.next53, %37 ]
  %.03340 = phi double [ 0.000000e+00, %.lr.ph43 ], [ %46, %37 ]
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv.next53) #3
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv52) #3
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sub nsw i32 %39, %41
  %43 = sitofp i32 %42 to double
  %44 = fsub double %43, %10
  %45 = fmul double %44, %44
  %46 = tail call double @llvm.fmuladd.f64(double %45, double %44, double %.03340)
  %47 = load i32, ptr %1, align 8, !tbaa !25
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next53, %48
  br i1 %49, label %37, label %._crit_edge44, !llvm.loop !29
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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, !6, i64 8}
!10 = !{!"_ZTSN4mgpu12SparseMatrixE", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !11, i64 40, !16, i64 64}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!21, !6, i64 8}
!21 = !{!"_ZTSN4mgpu11MatrixStatsE", !6, i64 0, !6, i64 4, !6, i64 8, !22, i64 16, !22, i64 24, !22, i64 32}
!22 = !{!"double", !7, i64 0}
!23 = !{!21, !22, i64 16}
!24 = !{!21, !22, i64 24}
!25 = !{!10, !6, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!21, !22, i64 32}
!29 = distinct !{!29, !27}


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