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

; 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: mustprogress uwtable
define dso_local void @_ZNK6Matrix2luERS_S0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %13 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %14 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  br label %20

18:                                               ; preds = %3
  %19 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  br label %20

20:                                               ; preds = %18, %16
  %21 = phi i32 [ %17, %16 ], [ %19, %18 ]
  store i32 %21, ptr %11, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %22, align 8, !tbaa !11
  %26 = getelementptr inbounds ptr, ptr %25, i64 2
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %23, i32 noundef %24)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %31 = load ptr, ptr %28, align 8, !tbaa !11
  %32 = getelementptr inbounds ptr, ptr %31, i64 2
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %29, i32 noundef %30)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = sub nsw i32 %35, %36
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %8, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %52, %20
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  %43 = icmp sle i32 %40, %42
  br i1 %43, label %44, label %55

44:                                               ; preds = %39
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = load ptr, ptr %45, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 6
  %50 = load ptr, ptr %49, align 8
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr %50(ptr noundef nonnull align 8 dereferenceable(24) %45, i32 noundef %46, i32 noundef %47)
  store double 1.000000e+00, ptr %51, align 8, !tbaa !13
  br label %52

52:                                               ; preds = %44
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %8, align 4, !tbaa !9
  br label %39, !llvm.loop !15

55:                                               ; preds = %39
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %181, %55
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  %60 = icmp sle i32 %57, %59
  br i1 %60, label %61, label %184

61:                                               ; preds = %56
  %62 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %62, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %112, %61
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %67 = icmp sle i32 %64, %66
  br i1 %67, label %68, label %115

68:                                               ; preds = %63
  store double 0.000000e+00, ptr %7, align 8, !tbaa !13
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %93, %68
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = sub nsw i32 %71, 1
  %73 = icmp sle i32 %70, %72
  br i1 %73, label %74, label %96

74:                                               ; preds = %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = load ptr, ptr %75, align 8, !tbaa !11
  %79 = getelementptr inbounds ptr, ptr %78, i64 6
  %80 = load ptr, ptr %79, align 8
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr %80(ptr noundef nonnull align 8 dereferenceable(24) %75, i32 noundef %76, i32 noundef %77)
  %82 = load double, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = load ptr, ptr %83, align 8, !tbaa !11
  %87 = getelementptr inbounds ptr, ptr %86, i64 6
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr %88(ptr noundef nonnull align 8 dereferenceable(24) %83, i32 noundef %84, i32 noundef %85)
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = load double, ptr %7, align 8, !tbaa !13
  %92 = call double @llvm.fmuladd.f64(double %82, double %90, double %91)
  store double %92, ptr %7, align 8, !tbaa !13
  br label %93

93:                                               ; preds = %74
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %10, align 4, !tbaa !9
  br label %69, !llvm.loop !17

96:                                               ; preds = %69
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load ptr, ptr %12, align 8, !tbaa !11
  %100 = getelementptr inbounds ptr, ptr %99, i64 5
  %101 = load ptr, ptr %100, align 8
  %102 = call noundef double %101(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %97, i32 noundef %98)
  %103 = load double, ptr %7, align 8, !tbaa !13
  %104 = fsub double %102, %103
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = load ptr, ptr %105, align 8, !tbaa !11
  %109 = getelementptr inbounds ptr, ptr %108, i64 6
  %110 = load ptr, ptr %109, align 8
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr %110(ptr noundef nonnull align 8 dereferenceable(24) %105, i32 noundef %106, i32 noundef %107)
  store double %104, ptr %111, align 8, !tbaa !13
  br label %112

112:                                              ; preds = %96
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %9, align 4, !tbaa !9
  br label %63, !llvm.loop !18

115:                                              ; preds = %63
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %177, %115
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
  %122 = icmp sle i32 %119, %121
  br i1 %122, label %123, label %180

123:                                              ; preds = %118
  store double 0.000000e+00, ptr %7, align 8, !tbaa !13
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %148, %123
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = sub nsw i32 %126, 1
  %128 = icmp sle i32 %125, %127
  br i1 %128, label %129, label %151

129:                                              ; preds = %124
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = load ptr, ptr %130, align 8, !tbaa !11
  %134 = getelementptr inbounds ptr, ptr %133, i64 6
  %135 = load ptr, ptr %134, align 8
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr %135(ptr noundef nonnull align 8 dereferenceable(24) %130, i32 noundef %131, i32 noundef %132)
  %137 = load double, ptr %136, align 8, !tbaa !13
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = load ptr, ptr %138, align 8, !tbaa !11
  %142 = getelementptr inbounds ptr, ptr %141, i64 6
  %143 = load ptr, ptr %142, align 8
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr %143(ptr noundef nonnull align 8 dereferenceable(24) %138, i32 noundef %139, i32 noundef %140)
  %145 = load double, ptr %144, align 8, !tbaa !13
  %146 = load double, ptr %7, align 8, !tbaa !13
  %147 = call double @llvm.fmuladd.f64(double %137, double %145, double %146)
  store double %147, ptr %7, align 8, !tbaa !13
  br label %148

148:                                              ; preds = %129
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %10, align 4, !tbaa !9
  br label %124, !llvm.loop !19

151:                                              ; preds = %124
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %8, align 4, !tbaa !9
  %154 = load ptr, ptr %12, align 8, !tbaa !11
  %155 = getelementptr inbounds ptr, ptr %154, i64 5
  %156 = load ptr, ptr %155, align 8
  %157 = call noundef double %156(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %152, i32 noundef %153)
  %158 = load double, ptr %7, align 8, !tbaa !13
  %159 = fsub double %157, %158
  %160 = fmul double 1.000000e+00, %159
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = load i32, ptr %8, align 4, !tbaa !9
  %164 = load ptr, ptr %161, align 8, !tbaa !11
  %165 = getelementptr inbounds ptr, ptr %164, i64 6
  %166 = load ptr, ptr %165, align 8
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr %166(ptr noundef nonnull align 8 dereferenceable(24) %161, i32 noundef %162, i32 noundef %163)
  %168 = load double, ptr %167, align 8, !tbaa !13
  %169 = fdiv double %160, %168
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = load ptr, ptr %170, align 8, !tbaa !11
  %174 = getelementptr inbounds ptr, ptr %173, i64 6
  %175 = load ptr, ptr %174, align 8
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr %175(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %171, i32 noundef %172)
  store double %169, ptr %176, align 8, !tbaa !13
  br label %177

177:                                              ; preds = %151
  %178 = load i32, ptr %9, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %9, align 4, !tbaa !9
  br label %118, !llvm.loop !20

180:                                              ; preds = %118
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %8, align 4, !tbaa !9
  br label %56, !llvm.loop !21

184:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

; 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

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

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

; 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


; 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 uwtable
define dso_local void @_ZNK6Matrix2luERS_S0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 align 2 {
  %4 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %5 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %6 = icmp slt i32 %4, %5
  br i1 %6, label %7, label %9

7:                                                ; preds = %3
  %8 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  br label %11

9:                                                ; preds = %3
  %10 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  br label %11

11:                                               ; preds = %9, %7
  %12 = phi i32 [ %8, %7 ], [ %10, %9 ]
  %13 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load ptr, ptr %15, align 8
  tail call void %16(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %13, i32 noundef %12)
  %17 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load ptr, ptr %19, align 8
  tail call void %20(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %12, i32 noundef %17)
  %21 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %22 = sub nsw i32 %21, %12
  %23 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not.not71 = icmp slt i32 %22, %23
  br i1 %.not.not71, label %.lr.ph, label %.preheader70

.preheader70:                                     ; preds = %.lr.ph, %11
  %24 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not86 = icmp slt i32 %24, 1
  br i1 %.not86, label %._crit_edge88, label %.preheader69

.lr.ph:                                           ; preds = %11, %.lr.ph
  %.062.in72 = phi i32 [ %.062, %.lr.ph ], [ %22, %11 ]
  %.062 = add nsw i32 %.062.in72, 1
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 48
  %27 = load ptr, ptr %26, align 8
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr %27(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.062, i32 noundef %.062)
  store double 1.000000e+00, ptr %28, align 8, !tbaa !8
  %29 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not.not = icmp slt i32 %.062, %29
  br i1 %.not.not, label %.lr.ph, label %.preheader70, !llvm.loop !11

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge79
  %30 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not.not89 = icmp slt i32 %.16387, %30
  br i1 %.not.not89, label %.preheader69, label %._crit_edge88, !llvm.loop !13

.preheader69:                                     ; preds = %.preheader70, %.loopexit
  %.16387 = phi i32 [ %66, %.loopexit ], [ 1, %.preheader70 ]
  %31 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not6477 = icmp sgt i32 %.16387, %31
  br i1 %.not6477, label %._crit_edge79, label %.preheader68.lr.ph

.preheader68.lr.ph:                               ; preds = %.preheader69
  %.not67.not73 = icmp ugt i32 %.16387, 1
  br i1 %.not67.not73, label %.preheader68.us, label %.preheader68

.preheader68.us:                                  ; preds = %.preheader68.lr.ph, %._crit_edge.us
  %.06078.us = phi i32 [ %54, %._crit_edge.us ], [ %.16387, %.preheader68.lr.ph ]
  br label %32

32:                                               ; preds = %.preheader68.us, %32
  %.075.us = phi double [ 0.000000e+00, %.preheader68.us ], [ %43, %32 ]
  %.05874.us = phi i32 [ 1, %.preheader68.us ], [ %44, %32 ]
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 48
  %35 = load ptr, ptr %34, align 8
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr %35(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.16387, i32 noundef %.05874.us)
  %37 = load double, ptr %36, align 8, !tbaa !8
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 48
  %40 = load ptr, ptr %39, align 8
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr %40(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.05874.us, i32 noundef %.06078.us)
  %42 = load double, ptr %41, align 8, !tbaa !8
  %43 = tail call double @llvm.fmuladd.f64(double %37, double %42, double %.075.us)
  %44 = add nuw nsw i32 %.05874.us, 1
  %exitcond.not = icmp eq i32 %44, %.16387
  br i1 %exitcond.not, label %._crit_edge.us, label %32, !llvm.loop !14

._crit_edge.us:                                   ; preds = %32
  %45 = load ptr, ptr %0, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 40
  %47 = load ptr, ptr %46, align 8
  %48 = tail call noundef double %47(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.16387, i32 noundef %.06078.us)
  %49 = fsub double %48, %43
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 48
  %52 = load ptr, ptr %51, align 8
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr %52(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.16387, i32 noundef %.06078.us)
  store double %49, ptr %53, align 8, !tbaa !8
  %54 = add nuw nsw i32 %.06078.us, 1
  %55 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not64.us.not = icmp slt i32 %.06078.us, %55
  br i1 %.not64.us.not, label %.preheader68.us, label %._crit_edge79, !llvm.loop !15

.preheader68:                                     ; preds = %.preheader68.lr.ph, %.preheader68
  %.06078 = phi i32 [ %64, %.preheader68 ], [ %.16387, %.preheader68.lr.ph ]
  %56 = load ptr, ptr %0, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 40
  %58 = load ptr, ptr %57, align 8
  %59 = tail call noundef double %58(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.16387, i32 noundef %.06078)
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 48
  %62 = load ptr, ptr %61, align 8
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr %62(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.16387, i32 noundef %.06078)
  store double %59, ptr %63, align 8, !tbaa !8
  %64 = add nuw nsw i32 %.06078, 1
  %65 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not64.not = icmp slt i32 %.06078, %65
  br i1 %.not64.not, label %.preheader68, label %._crit_edge79, !llvm.loop !15

._crit_edge79:                                    ; preds = %.preheader68, %._crit_edge.us, %.preheader69
  %66 = add nuw nsw i32 %.16387, 1
  %67 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not6584.not = icmp slt i32 %.16387, %67
  br i1 %.not6584.not, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %._crit_edge79
  %.not66.not80 = icmp ugt i32 %.16387, 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %.16185 = phi i32 [ %66, %.preheader.lr.ph ], [ %95, %._crit_edge ]
  br i1 %.not66.not80, label %.lr.ph83, label %._crit_edge

.lr.ph83:                                         ; preds = %.preheader, %.lr.ph83
  %.182 = phi double [ %78, %.lr.ph83 ], [ 0.000000e+00, %.preheader ]
  %.15981 = phi i32 [ %79, %.lr.ph83 ], [ 1, %.preheader ]
  %68 = load ptr, ptr %1, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 48
  %70 = load ptr, ptr %69, align 8
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr %70(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.16185, i32 noundef %.15981)
  %72 = load double, ptr %71, align 8, !tbaa !8
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 48
  %75 = load ptr, ptr %74, align 8
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr %75(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.15981, i32 noundef %.16387)
  %77 = load double, ptr %76, align 8, !tbaa !8
  %78 = tail call double @llvm.fmuladd.f64(double %72, double %77, double %.182)
  %79 = add nuw nsw i32 %.15981, 1
  %exitcond92.not = icmp eq i32 %79, %.16387
  br i1 %exitcond92.not, label %._crit_edge, label %.lr.ph83, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph83, %.preheader
  %.1.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %78, %.lr.ph83 ]
  %80 = load ptr, ptr %0, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 40
  %82 = load ptr, ptr %81, align 8
  %83 = tail call noundef double %82(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.16185, i32 noundef %.16387)
  %84 = fsub double %83, %.1.lcssa
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 48
  %87 = load ptr, ptr %86, align 8
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr %87(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %.16387, i32 noundef %.16387)
  %89 = load double, ptr %88, align 8, !tbaa !8
  %90 = fdiv double %84, %89
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 48
  %93 = load ptr, ptr %92, align 8
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr %93(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %.16185, i32 noundef %.16387)
  store double %90, ptr %94, align 8, !tbaa !8
  %95 = add nuw nsw i32 %.16185, 1
  %96 = tail call noundef i32 @_ZNK6Matrix6nbRowsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not65.not = icmp slt i32 %.16185, %96
  br i1 %.not65.not, label %.preheader, label %.loopexit, !llvm.loop !17

._crit_edge88:                                    ; preds = %.loopexit, %.preheader70
  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

; 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

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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