; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/matrix_pack/src/cpu_matrix.ll (ZN10CPU_Matrix5scaleER6Matrix4Axis)

; 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, i32, [4 x i8], i64, i64, i64, ptr, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@__FUNCTION__._ZN10CPU_Matrix5scaleEf = external hidden unnamed_addr constant [6 x i8], align 1

declare void @_Z10_my_assertbPKciS0_(i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) #0

declare noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10CPU_Matrix5scaleER6Matrix4Axis(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(49) %1, i32 noundef %2) unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 5
  %15 = load i64, ptr %14, align 8, !tbaa !11
  %16 = icmp ugt i64 %15, 0
  br i1 %16, label %17, label %21

17:                                               ; preds = %3
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %18)
  %20 = icmp ugt i64 %19, 0
  br label %21

21:                                               ; preds = %17, %3
  %22 = phi i1 [ false, %3 ], [ %20, %17 ]
  call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %22, ptr noundef @.str, i32 noundef 142, ptr noundef @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  %23 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %23, label %137 [
    i32 0, label %24
    i32 1, label %67
    i32 2, label %110
  ]

24:                                               ; preds = %21
  %25 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 3
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %27)
  %29 = icmp eq i64 %26, %28
  call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %29, ptr noundef @.str, i32 noundef 145, ptr noundef @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !17
  br label %30

30:                                               ; preds = %63, %24
  %31 = load i64, ptr %7, align 8, !tbaa !17
  %32 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 3
  %33 = load i64, ptr %32, align 8, !tbaa !16
  %34 = icmp ult i64 %31, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  store i32 3, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %66

36:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !17
  br label %37

37:                                               ; preds = %59, %36
  %38 = load i64, ptr %9, align 8, !tbaa !17
  %39 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 4
  %40 = load i64, ptr %39, align 8, !tbaa !18
  %41 = icmp ult i64 %38, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 6, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %62

43:                                               ; preds = %37
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i64, ptr %7, align 8, !tbaa !17
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %44, i64 noundef %45)
  %47 = load float, ptr %46, align 4, !tbaa !19
  %48 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  %50 = load i64, ptr %9, align 8, !tbaa !17
  %51 = load i64, ptr %7, align 8, !tbaa !17
  %52 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 4
  %53 = load i64, ptr %52, align 8, !tbaa !18
  %54 = mul i64 %51, %53
  %55 = add i64 %50, %54
  %56 = getelementptr inbounds float, ptr %49, i64 %55
  %57 = load float, ptr %56, align 4, !tbaa !19
  %58 = fmul float %57, %47
  store float %58, ptr %56, align 4, !tbaa !19
  br label %59

59:                                               ; preds = %43
  %60 = load i64, ptr %9, align 8, !tbaa !17
  %61 = add i64 %60, 1
  store i64 %61, ptr %9, align 8, !tbaa !17
  br label %37, !llvm.loop !22

62:                                               ; preds = %42
  br label %63

63:                                               ; preds = %62
  %64 = load i64, ptr %7, align 8, !tbaa !17
  %65 = add i64 %64, 1
  store i64 %65, ptr %7, align 8, !tbaa !17
  br label %30, !llvm.loop !24

66:                                               ; preds = %35
  br label %137

67:                                               ; preds = %21
  %68 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 4
  %69 = load i64, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %70)
  %72 = icmp eq i64 %69, %71
  call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %72, ptr noundef @.str, i32 noundef 153, ptr noundef @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %73

73:                                               ; preds = %106, %67
  %74 = load i64, ptr %10, align 8, !tbaa !17
  %75 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 3
  %76 = load i64, ptr %75, align 8, !tbaa !16
  %77 = icmp ult i64 %74, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %73
  store i32 9, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %109

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !17
  br label %80

80:                                               ; preds = %102, %79
  %81 = load i64, ptr %11, align 8, !tbaa !17
  %82 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 4
  %83 = load i64, ptr %82, align 8, !tbaa !18
  %84 = icmp ult i64 %81, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %80
  store i32 12, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %105

86:                                               ; preds = %80
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load i64, ptr %11, align 8, !tbaa !17
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %87, i64 noundef %88)
  %90 = load float, ptr %89, align 4, !tbaa !19
  %91 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = load i64, ptr %11, align 8, !tbaa !17
  %94 = load i64, ptr %10, align 8, !tbaa !17
  %95 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 4
  %96 = load i64, ptr %95, align 8, !tbaa !18
  %97 = mul i64 %94, %96
  %98 = add i64 %93, %97
  %99 = getelementptr inbounds float, ptr %92, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !19
  %101 = fmul float %100, %90
  store float %101, ptr %99, align 4, !tbaa !19
  br label %102

102:                                              ; preds = %86
  %103 = load i64, ptr %11, align 8, !tbaa !17
  %104 = add i64 %103, 1
  store i64 %104, ptr %11, align 8, !tbaa !17
  br label %80, !llvm.loop !25

105:                                              ; preds = %85
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %10, align 8, !tbaa !17
  %108 = add i64 %107, 1
  store i64 %108, ptr %10, align 8, !tbaa !17
  br label %73, !llvm.loop !26

109:                                              ; preds = %78
  br label %137

110:                                              ; preds = %21
  %111 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 5
  %112 = load i64, ptr %111, align 8, !tbaa !11
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %113)
  %115 = icmp eq i64 %112, %114
  call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %115, ptr noundef @.str, i32 noundef 161, ptr noundef @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !17
  br label %116

116:                                              ; preds = %133, %110
  %117 = load i64, ptr %12, align 8, !tbaa !17
  %118 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 5
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = icmp ult i64 %117, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %116
  store i32 15, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %136

122:                                              ; preds = %116
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = load i64, ptr %12, align 8, !tbaa !17
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %123, i64 noundef %124)
  %126 = load float, ptr %125, align 4, !tbaa !19
  %127 = getelementptr inbounds %class.Matrix, ptr %13, i32 0, i32 6
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  %129 = load i64, ptr %12, align 8, !tbaa !17
  %130 = getelementptr inbounds float, ptr %128, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !19
  %132 = fmul float %131, %126
  store float %132, ptr %130, align 4, !tbaa !19
  br label %133

133:                                              ; preds = %122
  %134 = load i64, ptr %12, align 8, !tbaa !17
  %135 = add i64 %134, 1
  store i64 %135, ptr %12, align 8, !tbaa !17
  br label %116, !llvm.loop !27

136:                                              ; preds = %121
  br label %137

137:                                              ; preds = %136, %109, %66, %21
  ret void
}

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) #0

attributes #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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS4Axis", !7, i64 0}
!11 = !{!12, !14, i64 32}
!12 = !{!"_ZTS6Matrix", !13, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !15, i64 48}
!13 = !{!"_ZTS11DEVICE_NAME", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!12, !14, i64 16}
!17 = !{!14, !14, i64 0}
!18 = !{!12, !14, i64 24}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!12, !6, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


; 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"

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@__FUNCTION__._ZN10CPU_Matrix5scaleEf = external hidden unnamed_addr constant [6 x i8], align 1

declare void @_Z10_my_assertbPKciS0_(i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10CPU_Matrix5scaleER6Matrix4Axis(ptr nocapture noundef nonnull readonly align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(49) %1, i32 noundef %2) unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %9, label %6

6:                                                ; preds = %3
  %7 = tail call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
  %8 = icmp ne i64 %7, 0
  br label %9

9:                                                ; preds = %6, %3
  %10 = phi i1 [ false, %3 ], [ %8, %6 ]
  tail call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %10, ptr noundef nonnull @.str, i32 noundef 142, ptr noundef nonnull @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  switch i32 %2, label %.loopexit [
    i32 0, label %11
    i32 1, label %37
    i32 2, label %63
  ]

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %14 = tail call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
  %15 = icmp eq i64 %13, %14
  tail call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %15, ptr noundef nonnull @.str, i32 noundef 145, ptr noundef nonnull @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  %16 = load i64, ptr %12, align 8, !tbaa !13
  %.not45 = icmp eq i64 %16, 0
  br i1 %.not45, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load i64, ptr %17, align 8, !tbaa !14
  %.not46 = icmp eq i64 %19, 0
  br i1 %.not46, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge39
  %20 = phi i64 [ %22, %._crit_edge39 ], [ %16, %.preheader.lr.ph ]
  %21 = phi i64 [ %23, %._crit_edge39 ], [ 1, %.preheader.lr.ph ]
  %.02940 = phi i64 [ %24, %._crit_edge39 ], [ 0, %.preheader.lr.ph ]
  %.not47 = icmp eq i64 %21, 0
  br i1 %.not47, label %._crit_edge39, label %.lr.ph38

._crit_edge39.loopexit:                           ; preds = %.lr.ph38
  %.pre52 = load i64, ptr %12, align 8, !tbaa !13
  br label %._crit_edge39

._crit_edge39:                                    ; preds = %._crit_edge39.loopexit, %.preheader
  %22 = phi i64 [ %.pre52, %._crit_edge39.loopexit ], [ %20, %.preheader ]
  %23 = phi i64 [ %29, %._crit_edge39.loopexit ], [ 0, %.preheader ]
  %24 = add nuw i64 %.02940, 1
  %25 = icmp ult i64 %24, %22
  br i1 %25, label %.preheader, label %.loopexit, !llvm.loop !15

.lr.ph38:                                         ; preds = %.preheader, %.lr.ph38
  %.02837 = phi i64 [ %35, %.lr.ph38 ], [ 0, %.preheader ]
  %26 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %1, i64 noundef %.02940)
  %27 = load float, ptr %26, align 4, !tbaa !18
  %28 = load ptr, ptr %18, align 8, !tbaa !20
  %29 = load i64, ptr %17, align 8, !tbaa !14
  %30 = mul i64 %29, %.02940
  %31 = getelementptr float, ptr %28, i64 %.02837
  %32 = getelementptr float, ptr %31, i64 %30
  %33 = load float, ptr %32, align 4, !tbaa !18
  %34 = fmul float %27, %33
  store float %34, ptr %32, align 4, !tbaa !18
  %35 = add nuw i64 %.02837, 1
  %36 = icmp ult i64 %35, %29
  br i1 %36, label %.lr.ph38, label %._crit_edge39.loopexit, !llvm.loop !21

37:                                               ; preds = %9
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = load i64, ptr %38, align 8, !tbaa !14
  %40 = tail call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
  %41 = icmp eq i64 %39, %40
  tail call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %41, ptr noundef nonnull @.str, i32 noundef 153, ptr noundef nonnull @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %43 = load i64, ptr %42, align 8, !tbaa !13
  %.not42 = icmp eq i64 %43, 0
  br i1 %.not42, label %.loopexit, label %.preheader30.lr.ph

.preheader30.lr.ph:                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  %45 = load i64, ptr %38, align 8, !tbaa !14
  %.not43 = icmp eq i64 %45, 0
  br i1 %.not43, label %.loopexit, label %.preheader30

.preheader30:                                     ; preds = %.preheader30.lr.ph, %._crit_edge
  %46 = phi i64 [ %48, %._crit_edge ], [ %43, %.preheader30.lr.ph ]
  %47 = phi i64 [ %49, %._crit_edge ], [ 1, %.preheader30.lr.ph ]
  %.02736 = phi i64 [ %50, %._crit_edge ], [ 0, %.preheader30.lr.ph ]
  %.not44 = icmp eq i64 %47, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph35

._crit_edge.loopexit:                             ; preds = %.lr.ph35
  %.pre = load i64, ptr %42, align 8, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader30
  %48 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %46, %.preheader30 ]
  %49 = phi i64 [ %55, %._crit_edge.loopexit ], [ 0, %.preheader30 ]
  %50 = add nuw i64 %.02736, 1
  %51 = icmp ult i64 %50, %48
  br i1 %51, label %.preheader30, label %.loopexit, !llvm.loop !22

.lr.ph35:                                         ; preds = %.preheader30, %.lr.ph35
  %.02634 = phi i64 [ %61, %.lr.ph35 ], [ 0, %.preheader30 ]
  %52 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %1, i64 noundef %.02634)
  %53 = load float, ptr %52, align 4, !tbaa !18
  %54 = load ptr, ptr %44, align 8, !tbaa !20
  %55 = load i64, ptr %38, align 8, !tbaa !14
  %56 = mul i64 %55, %.02736
  %57 = getelementptr float, ptr %54, i64 %.02634
  %58 = getelementptr float, ptr %57, i64 %56
  %59 = load float, ptr %58, align 4, !tbaa !18
  %60 = fmul float %53, %59
  store float %60, ptr %58, align 4, !tbaa !18
  %61 = add nuw i64 %.02634, 1
  %62 = icmp ult i64 %61, %55
  br i1 %62, label %.lr.ph35, label %._crit_edge.loopexit, !llvm.loop !23

63:                                               ; preds = %9
  %64 = load i64, ptr %4, align 8, !tbaa !5
  %65 = tail call noundef i64 @_ZNK6Matrix15get_numElementsEv(ptr noundef nonnull align 8 dereferenceable(49) %1)
  %66 = icmp eq i64 %64, %65
  tail call void @_Z10_my_assertbPKciS0_(i1 noundef zeroext %66, ptr noundef nonnull @.str, i32 noundef 161, ptr noundef nonnull @__FUNCTION__._ZN10CPU_Matrix5scaleEf)
  %67 = load i64, ptr %4, align 8, !tbaa !5
  %.not41 = icmp eq i64 %67, 0
  br i1 %.not41, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %63
  %68 = getelementptr inbounds i8, ptr %0, i64 40
  br label %69

69:                                               ; preds = %.lr.ph, %69
  %.033 = phi i64 [ 0, %.lr.ph ], [ %76, %69 ]
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %1, i64 noundef %.033)
  %71 = load float, ptr %70, align 4, !tbaa !18
  %72 = load ptr, ptr %68, align 8, !tbaa !20
  %73 = getelementptr inbounds float, ptr %72, i64 %.033
  %74 = load float, ptr %73, align 4, !tbaa !18
  %75 = fmul float %71, %74
  store float %75, ptr %73, align 4, !tbaa !18
  %76 = add nuw i64 %.033, 1
  %77 = load i64, ptr %4, align 8, !tbaa !5
  %78 = icmp ult i64 %76, %77
  br i1 %78, label %69, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %69, %._crit_edge, %._crit_edge39, %.preheader30.lr.ph, %.preheader.lr.ph, %63, %37, %11, %9
  ret void
}

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) local_unnamed_addr #0

attributes #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 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" }

!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 32}
!6 = !{!"_ZTS6Matrix", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !12, i64 48}
!7 = !{!"_ZTS11DEVICE_NAME", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 24}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !8, i64 0}
!20 = !{!6, !11, i64 40}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16, !17}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}


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