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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Matrix9choleskiLEv(ptr dead_on_unwind noalias writable sret(%class.Matrix) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i1 false, ptr %9, align 1
  %13 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %14 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %13, i32 noundef %14, double noundef 0.000000e+00)
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %96, %2
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = invoke noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %18 unwind label %48

18:                                               ; preds = %15
  %19 = icmp sle i32 %16, %17
  br i1 %19, label %20, label %99

20:                                               ; preds = %18
  %21 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %21, ptr %5, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %92, %20
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = invoke noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %25 unwind label %48

25:                                               ; preds = %22
  %26 = icmp sle i32 %23, %24
  br i1 %26, label %27, label %95

27:                                               ; preds = %25
  store i32 1, ptr %7, align 4, !tbaa !9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %45, %27
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %52

32:                                               ; preds = %28
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %33, i32 noundef %34)
          to label %36 unwind label %48

36:                                               ; preds = %32
  %37 = load double, ptr %35, align 8, !tbaa !11
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %38, i32 noundef %39)
          to label %41 unwind label %48

41:                                               ; preds = %36
  %42 = load double, ptr %40, align 8, !tbaa !11
  %43 = load double, ptr %8, align 8, !tbaa !11
  %44 = call double @llvm.fmuladd.f64(double %37, double %42, double %43)
  store double %44, ptr %8, align 8, !tbaa !11
  br label %45

45:                                               ; preds = %41
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !9
  br label %28, !llvm.loop !13

48:                                               ; preds = %84, %78, %71, %63, %56, %36, %32, %22, %15
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %10, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %11, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %103

52:                                               ; preds = %28
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = icmp eq i32 %53, %54
  br i1 %55, label %56, label %71

56:                                               ; preds = %52
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !15
  %60 = getelementptr inbounds ptr, ptr %59, i64 5
  %61 = load ptr, ptr %60, align 8
  %62 = invoke noundef double %61(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %57, i32 noundef %58)
          to label %63 unwind label %48

63:                                               ; preds = %56
  %64 = load double, ptr %8, align 8, !tbaa !11
  %65 = fsub double %62, %64
  %66 = call double @sqrt(double noundef %65) #6
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %67, i32 noundef %68)
          to label %70 unwind label %48

70:                                               ; preds = %63
  store double %66, ptr %69, align 8, !tbaa !11
  br label %91

71:                                               ; preds = %52
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = load ptr, ptr %12, align 8, !tbaa !15
  %75 = getelementptr inbounds ptr, ptr %74, i64 5
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef double %76(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %72, i32 noundef %73)
          to label %78 unwind label %48

78:                                               ; preds = %71
  %79 = load double, ptr %8, align 8, !tbaa !11
  %80 = fsub double %77, %79
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %81, i32 noundef %82)
          to label %84 unwind label %48

84:                                               ; preds = %78
  %85 = load double, ptr %83, align 8, !tbaa !11
  %86 = fdiv double %80, %85
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %87, i32 noundef %88)
          to label %90 unwind label %48

90:                                               ; preds = %84
  store double %86, ptr %89, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %90, %70
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %5, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %5, align 4, !tbaa !9
  br label %22, !llvm.loop !17

95:                                               ; preds = %25
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %6, align 4, !tbaa !9
  br label %15, !llvm.loop !18

99:                                               ; preds = %18
  store i1 true, ptr %9, align 1
  %100 = load i1, ptr %9, align 1
  br i1 %100, label %102, label %101

101:                                              ; preds = %99
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %102

102:                                              ; preds = %101, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void

103:                                              ; preds = %48
  %104 = load ptr, ptr %10, align 8
  %105 = load i32, ptr %11, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

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

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

%class.Matrix = type { ptr, ptr, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Matrix9choleskiLEv(ptr dead_on_unwind noalias writable sret(%class.Matrix) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %4 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  tail call void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %3, i32 noundef %4, double noundef 0.000000e+00)
  %5 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not40 = icmp slt i32 %5, 1
  br i1 %.not40, label %._crit_edge, label %.preheader34

.preheader34:                                     ; preds = %2, %._crit_edge39
  %.03041 = phi i32 [ %61, %._crit_edge39 ], [ 1, %2 ]
  %6 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not3337 = icmp sgt i32 %.03041, %6
  br i1 %.not3337, label %._crit_edge39, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader34
  %7 = icmp ugt i32 %.03041, 1
  br i1 %7, label %.preheader.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 40
  %10 = load ptr, ptr %9, align 8
  %11 = invoke noundef double %10(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.03041, i32 noundef %.03041)
          to label %12 unwind label %.split.loopexit.split-lp

12:                                               ; preds = %.preheader.preheader
  %13 = tail call double @sqrt(double noundef %11) #6
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041, i32 noundef %.03041)
  store double %13, ptr %14, align 8, !tbaa !8
  %15 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not33.not.peel = icmp slt i32 %.03041, %15
  br i1 %.not33.not.peel, label %.preheader, label %._crit_edge39

.preheader.us:                                    ; preds = %.preheader.lr.ph, %28
  %.038.us = phi i32 [ %30, %28 ], [ %.03041, %.preheader.lr.ph ]
  br label %32

16:                                               ; preds = %._crit_edge.us
  %17 = invoke noundef double %42(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.038.us, i32 noundef %.03041)
          to label %18 unwind label %.split.us

18:                                               ; preds = %16
  %19 = fsub double %17, %37
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041, i32 noundef %.03041)
  %21 = load double, ptr %20, align 8, !tbaa !8
  %22 = fdiv double %19, %21
  br label %28

23:                                               ; preds = %._crit_edge.us
  %24 = invoke noundef double %42(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.03041, i32 noundef %.03041)
          to label %25 unwind label %.split.us

25:                                               ; preds = %23
  %26 = fsub double %24, %37
  %27 = tail call double @sqrt(double noundef %26) #6
  br label %28

28:                                               ; preds = %25, %18
  %.03041.sink = phi i32 [ %.03041, %25 ], [ %.038.us, %18 ]
  %.sink = phi double [ %27, %25 ], [ %22, %18 ]
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041.sink, i32 noundef %.03041)
  store double %.sink, ptr %29, align 8, !tbaa !8
  %30 = add nuw nsw i32 %.038.us, 1
  %31 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not33.us.not = icmp slt i32 %.038.us, %31
  br i1 %.not33.us.not, label %.preheader.us, label %._crit_edge39, !llvm.loop !11

32:                                               ; preds = %.preheader.us, %32
  %.03136.us = phi double [ 0.000000e+00, %.preheader.us ], [ %37, %32 ]
  %.03235.us = phi i32 [ 1, %.preheader.us ], [ %38, %32 ]
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.038.us, i32 noundef %.03235.us)
  %34 = load double, ptr %33, align 8, !tbaa !8
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041, i32 noundef %.03235.us)
  %36 = load double, ptr %35, align 8, !tbaa !8
  %37 = tail call double @llvm.fmuladd.f64(double %34, double %36, double %.03136.us)
  %38 = add nuw nsw i32 %.03235.us, 1
  %exitcond.not = icmp eq i32 %38, %.03041
  br i1 %exitcond.not, label %._crit_edge.us, label %32, !llvm.loop !13

._crit_edge.us:                                   ; preds = %32
  %39 = icmp eq i32 %.038.us, %.03041
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 40
  %42 = load ptr, ptr %41, align 8
  br i1 %39, label %23, label %16

.split.us:                                        ; preds = %23, %16
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.preheader:                                       ; preds = %12, %58
  %.038.in = phi i32 [ %.038, %58 ], [ %.03041, %12 ]
  %.038 = add nuw nsw i32 %.038.in, 1
  %44 = icmp eq i32 %.038, %.03041
  %45 = load ptr, ptr %1, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 40
  %47 = load ptr, ptr %46, align 8
  br i1 %44, label %48, label %52

.split.loopexit:                                  ; preds = %48, %52
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split.loopexit.split-lp:                         ; preds = %.preheader.preheader
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split:                                           ; preds = %.split.loopexit, %.split.loopexit.split-lp, %.split.us
  %.us-phi = phi { ptr, i32 } [ %43, %.split.us ], [ %lpad.loopexit, %.split.loopexit ], [ %lpad.loopexit.split-lp, %.split.loopexit.split-lp ]
  tail call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.us-phi

48:                                               ; preds = %.preheader
  %49 = invoke noundef double %47(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.03041, i32 noundef %.03041)
          to label %50 unwind label %.split.loopexit

50:                                               ; preds = %48
  %51 = tail call double @sqrt(double noundef %49) #6
  br label %58

52:                                               ; preds = %.preheader
  %53 = invoke noundef double %47(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.038, i32 noundef %.03041)
          to label %54 unwind label %.split.loopexit

54:                                               ; preds = %52
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041, i32 noundef %.03041)
  %56 = load double, ptr %55, align 8, !tbaa !8
  %57 = fdiv double %53, %56
  br label %58

58:                                               ; preds = %50, %54
  %.03041.sink49 = phi i32 [ %.03041, %50 ], [ %.038, %54 ]
  %.sink47 = phi double [ %51, %50 ], [ %57, %54 ]
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.03041.sink49, i32 noundef %.03041)
  store double %.sink47, ptr %59, align 8, !tbaa !8
  %60 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not33.not = icmp slt i32 %.038, %60
  br i1 %.not33.not, label %.preheader, label %._crit_edge39, !llvm.loop !14

._crit_edge39:                                    ; preds = %58, %28, %12, %.preheader34
  %61 = add nuw nsw i32 %.03041, 1
  %62 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %.not.not = icmp slt i32 %.03041, %62
  br i1 %.not.not, label %.preheader34, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge39, %2
  ret void
}

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

declare void @_ZN6MatrixC1Eiid(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, double 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !12}


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