; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/stats (stats)

; 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.GaussMixture = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, i32 }
%class.Matrix = type { ptr, ptr, i32, i32 }

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

declare void @_ZN6MatrixC1EPKc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GaussMixture11loadCentersEPKc(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %13 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN6MatrixC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %14)
          to label %15 unwind label %51

15:                                               ; preds = %2
  store ptr %13, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %18 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 7
  store i32 %17, ptr %18, align 8, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %21 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 10
  store i32 %20, ptr %21, align 4, !tbaa !13
  %22 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 7
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %24, i64 8)
  %26 = extractvalue { i64, i1 } %25, 1
  %27 = extractvalue { i64, i1 } %25, 0
  %28 = select i1 %26, i64 -1, i64 %27
  %29 = call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #8
  %30 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 3
  store ptr %29, ptr %30, align 8, !tbaa !14
  %31 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 7
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 10
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = mul nsw i32 %32, %34
  %36 = sext i32 %35 to i64
  %37 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %36, i64 4)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = call noalias noundef nonnull ptr @_Znam(i64 noundef %40) #8
  %42 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = getelementptr inbounds ptr, ptr %43, i64 0
  store ptr %41, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !15
  br label %45

45:                                               ; preds = %71, %15
  %46 = load i32, ptr %8, align 4, !tbaa !15
  %47 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 7
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %55, label %50

50:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %74

51:                                               ; preds = %2
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %13, i64 noundef 24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %127

55:                                               ; preds = %45
  %56 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = load i32, ptr %8, align 4, !tbaa !15
  %61 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 10
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = mul nsw i32 %60, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %59, i64 %64
  %66 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = load i32, ptr %8, align 4, !tbaa !15
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  store ptr %65, ptr %70, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %55
  %72 = load i32, ptr %8, align 4, !tbaa !15
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %8, align 4, !tbaa !15
  br label %45, !llvm.loop !16

74:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %75

75:                                               ; preds = %116, %74
  %76 = load i32, ptr %9, align 4, !tbaa !15
  %77 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 7
  %78 = load i32, ptr %77, align 8, !tbaa !9
  %79 = icmp slt i32 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %119

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %82

82:                                               ; preds = %112, %81
  %83 = load i32, ptr %11, align 4, !tbaa !15
  %84 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 10
  %85 = load i32, ptr %84, align 4, !tbaa !13
  %86 = icmp slt i32 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %115

88:                                               ; preds = %82
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.Matrix, ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load i32, ptr %11, align 4, !tbaa !15
  %93 = add nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %91, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i32, ptr %9, align 4, !tbaa !15
  %98 = add nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %96, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !20
  %102 = fptrunc double %101 to float
  %103 = getelementptr inbounds %class.GaussMixture, ptr %12, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !14
  %105 = load i32, ptr %9, align 4, !tbaa !15
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i32, ptr %11, align 4, !tbaa !15
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  store float %102, ptr %111, align 4, !tbaa !22
  br label %112

112:                                              ; preds = %88
  %113 = load i32, ptr %11, align 4, !tbaa !15
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !15
  br label %82, !llvm.loop !23

115:                                              ; preds = %87
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %9, align 4, !tbaa !15
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %9, align 4, !tbaa !15
  br label %75, !llvm.loop !24

119:                                              ; preds = %80
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = icmp eq ptr %120, null
  br i1 %121, label %126, label %122

122:                                              ; preds = %119
  %123 = load ptr, ptr %120, align 8, !tbaa !25
  %124 = getelementptr inbounds ptr, ptr %123, i64 1
  %125 = load ptr, ptr %124, align 8
  call void %125(ptr noundef nonnull align 8 dereferenceable(24) %120) #7
  br label %126

126:                                              ; preds = %122, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

127:                                              ; preds = %51
  %128 = load ptr, ptr %6, align 8
  %129 = load i32, ptr %7, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { nobuiltin 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 48}
!10 = !{!"_ZTS12GaussMixture", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !11, i64 84}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 60}
!14 = !{!10, !6, i64 24}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTS6Matrix", !6, i64 8, !11, i64 16, !11, i64 20}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = !{!12, !12, i64 0}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}


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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN6MatrixC1EPKc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GaussMixture11loadCentersEPKc(ptr nocapture noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  invoke void @_ZN6MatrixC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %1)
          to label %4 unwind label %75

4:                                                ; preds = %2
  %5 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %5, ptr %6, align 8, !tbaa !5
  %7 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %8 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %7, ptr %8, align 4, !tbaa !12
  %9 = load i32, ptr %6, align 8, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = icmp slt i32 %9, 0
  %12 = shl nsw i64 %10, 3
  %13 = select i1 %11, i64 -1, i64 %12
  %14 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %13) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %14, ptr %15, align 8, !tbaa !13
  %16 = mul nsw i32 %9, %7
  %17 = sext i32 %16 to i64
  %18 = icmp slt i32 %16, 0
  %19 = shl nsw i64 %17, 2
  %20 = select i1 %18, i64 -1, i64 %19
  %21 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  store ptr %21, ptr %14, align 8, !tbaa !14
  %22 = icmp sgt i32 %9, 1
  br i1 %22, label %.lr.ph.preheader, label %.preheader21

.lr.ph.preheader:                                 ; preds = %4
  %23 = sext i32 %7 to i64
  %wide.trip.count = zext nneg i32 %9 to i64
  %24 = add nsw i64 %wide.trip.count, -1
  %25 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %24, 3
  %26 = icmp ult i64 %25, 3
  br i1 %26, label %.preheader21.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %24, -4
  br label %.lr.ph

.preheader21.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader21, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader21.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader21.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader21.loopexit.unr-lcssa ]
  %27 = load ptr, ptr %15, align 8, !tbaa !13
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = mul nsw i64 %indvars.iv.epil, %23
  %30 = getelementptr inbounds float, ptr %28, i64 %29
  %31 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv.epil
  store ptr %30, ptr %31, align 8, !tbaa !14
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader21, label %.lr.ph.epil, !llvm.loop !15

.preheader21:                                     ; preds = %.preheader21.loopexit.unr-lcssa, %.lr.ph.epil, %4
  %32 = icmp sgt i32 %9, 0
  br i1 %32, label %.preheader.lr.ph, label %._crit_edge26

.preheader.lr.ph:                                 ; preds = %.preheader21
  %33 = icmp sgt i32 %7, 0
  %34 = load ptr, ptr %15, align 8
  br i1 %33, label %.preheader.lr.ph.split.us, label %._crit_edge26

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %35 = getelementptr inbounds i8, ptr %3, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %wide.trip.count37 = zext nneg i32 %9 to i64
  %wide.trip.count32 = zext nneg i32 %7 to i64
  %xtraiter39 = and i64 %wide.trip.count32, 3
  %37 = icmp ult i32 %7, 4
  %unroll_iter42 = and i64 %wide.trip.count32, 2147483644
  %lcmp.mod41.not = icmp eq i64 %xtraiter39, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  %38 = getelementptr inbounds ptr, ptr %34, i64 %indvars.iv34
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  br i1 %37, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv29 = phi i64 [ %indvars.iv.next30.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter43 = phi i64 [ %niter43.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %indvars.iv.next30 = or disjoint i64 %indvars.iv29, 1
  %40 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next30
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds double, ptr %41, i64 %indvars.iv34
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = fptrunc double %44 to float
  %46 = getelementptr inbounds float, ptr %39, i64 %indvars.iv29
  store float %45, ptr %46, align 4, !tbaa !21
  %indvars.iv.next30.1 = or disjoint i64 %indvars.iv29, 2
  %47 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next30.1
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  %49 = getelementptr inbounds double, ptr %48, i64 %indvars.iv34
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = fptrunc double %51 to float
  %53 = getelementptr inbounds float, ptr %39, i64 %indvars.iv.next30
  store float %52, ptr %53, align 4, !tbaa !21
  %indvars.iv.next30.2 = or disjoint i64 %indvars.iv29, 3
  %54 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next30.2
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds double, ptr %55, i64 %indvars.iv34
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = fptrunc double %58 to float
  %60 = getelementptr inbounds float, ptr %39, i64 %indvars.iv.next30.1
  store float %59, ptr %60, align 4, !tbaa !21
  %indvars.iv.next30.3 = add nuw nsw i64 %indvars.iv29, 4
  %61 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next30.3
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = getelementptr inbounds double, ptr %62, i64 %indvars.iv34
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = fptrunc double %65 to float
  %67 = getelementptr inbounds float, ptr %39, i64 %indvars.iv.next30.2
  store float %66, ptr %67, align 4, !tbaa !21
  %niter43.next.3 = add i64 %niter43, 4
  %niter43.ncmp.3 = icmp eq i64 %niter43.next.3, %unroll_iter42
  br i1 %niter43.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !22

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv29.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next30.3, %.preheader.us.new ]
  br i1 %lcmp.mod41.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv29.epil = phi i64 [ %indvars.iv.next30.epil, %.epil.preheader ], [ %indvars.iv29.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter40 = phi i64 [ %epil.iter40.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %indvars.iv.next30.epil = add nuw nsw i64 %indvars.iv29.epil, 1
  %68 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next30.epil
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = getelementptr inbounds double, ptr %69, i64 %indvars.iv34
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load double, ptr %71, align 8, !tbaa !19
  %73 = fptrunc double %72 to float
  %74 = getelementptr inbounds float, ptr %39, i64 %indvars.iv29.epil
  store float %73, ptr %74, align 4, !tbaa !21
  %epil.iter40.next = add i64 %epil.iter40, 1
  %epil.iter40.cmp.not = icmp eq i64 %epil.iter40.next, %xtraiter39
  br i1 %epil.iter40.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !24

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond38.not = icmp eq i64 %indvars.iv.next35, %wide.trip.count37
  br i1 %exitcond38.not, label %._crit_edge26, label %.preheader.us, !llvm.loop !25

75:                                               ; preds = %2
  %76 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %3, i64 noundef 24) #6
  resume { ptr, i32 } %76

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %77 = load ptr, ptr %15, align 8, !tbaa !13
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = mul nsw i64 %indvars.iv, %23
  %80 = getelementptr inbounds float, ptr %78, i64 %79
  %81 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv
  store ptr %80, ptr %81, align 8, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %82 = load ptr, ptr %15, align 8, !tbaa !13
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  %84 = mul nsw i64 %indvars.iv.next, %23
  %85 = getelementptr inbounds float, ptr %83, i64 %84
  %86 = getelementptr inbounds ptr, ptr %82, i64 %indvars.iv.next
  store ptr %85, ptr %86, align 8, !tbaa !14
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %87 = load ptr, ptr %15, align 8, !tbaa !13
  %88 = load ptr, ptr %87, align 8, !tbaa !14
  %89 = mul nsw i64 %indvars.iv.next.1, %23
  %90 = getelementptr inbounds float, ptr %88, i64 %89
  %91 = getelementptr inbounds ptr, ptr %87, i64 %indvars.iv.next.1
  store ptr %90, ptr %91, align 8, !tbaa !14
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %92 = load ptr, ptr %15, align 8, !tbaa !13
  %93 = load ptr, ptr %92, align 8, !tbaa !14
  %94 = mul nsw i64 %indvars.iv.next.2, %23
  %95 = getelementptr inbounds float, ptr %93, i64 %94
  %96 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv.next.2
  store ptr %95, ptr %96, align 8, !tbaa !14
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add nuw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader21.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !26

._crit_edge26:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %.preheader21
  %97 = load ptr, ptr %3, align 8, !tbaa !27
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8
  tail call void %99(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

attributes #0 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { 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 #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 = { builtin allocsize(0) }
attributes #6 = { builtin nounwind }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 48}
!6 = !{!"_ZTS12GaussMixture", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !10, i64 84}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 60}
!13 = !{!6, !7, i64 24}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!18, !7, i64 8}
!18 = !{!"_ZTS6Matrix", !7, i64 8, !10, i64 16, !10, i64 20}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !9, i64 0}


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