; LLVM IR from JessonYue/LeetCodeLearning :: Array/wuchao/array/7-4矩阵运算 (Matrix)

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

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

@__const.main.test1 = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@__const.main.test2 = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [5 x [3 x i32]], align 16
  %5 = alloca [5 x [3 x i32]], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %8 = call ptr @makeMatrix(i32 noundef 5, i32 noundef 3)
  store ptr %8, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %9 = call ptr @makeMatrix(i32 noundef 5, i32 noundef 3)
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 60, ptr %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.test1, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.test2, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %28, %0
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.Matrix, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = icmp slt i32 %11, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %31

17:                                               ; preds = %10
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [5 x [3 x i32]], ptr %4, i64 0, i64 %19
  %21 = getelementptr inbounds [3 x i32], ptr %20, i64 0, i64 0
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Matrix, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  store ptr %21, ptr %27, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %17
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %6, align 4, !tbaa !9
  br label %10, !llvm.loop !14

31:                                               ; preds = %16
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  call void @printMatrix(ptr noundef %32)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %52, %31
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Matrix, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = icmp slt i32 %35, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %34
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5 x [3 x i32]], ptr %5, i64 0, i64 %43
  %45 = getelementptr inbounds [3 x i32], ptr %44, i64 0, i64 0
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Matrix, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds ptr, ptr %48, i64 %50
  store ptr %45, ptr %51, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %41
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %7, align 4, !tbaa !9
  br label %34, !llvm.loop !16

55:                                               ; preds = %40
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  call void @printMatrix(ptr noundef %56)
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call ptr @matrixAdd(ptr noundef %58, ptr noundef %59)
  call void @printMatrix(ptr noundef %60)
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = call ptr @matrixSub(ptr noundef %62, ptr noundef %63)
  call void @printMatrix(ptr noundef %64)
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = call ptr @matrixMultiplyWithANumber(ptr noundef %66, i32 noundef 4)
  call void @printMatrix(ptr noundef %67)
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = call ptr @matrixMultiply(ptr noundef %68, ptr noundef %69)
  call void @printMatrix(ptr noundef %70)
  call void @llvm.lifetime.end.p0(i64 60, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 60, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %71 = load i32, ptr %1, align 4
  ret i32 %71
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @makeMatrix(i32 noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @printMatrix(ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixAdd(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixSub(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixMultiplyWithANumber(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixMultiply(ptr noundef, ptr noundef) #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"Matrix", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

@__const.main.test1 = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@__const.main.test2 = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [5 x [3 x i32]], align 16
  %2 = alloca [5 x [3 x i32]], align 16
  %3 = tail call ptr @makeMatrix(i32 noundef 5, i32 noundef 3)
  %4 = tail call ptr @makeMatrix(i32 noundef 5, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %1) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %1, ptr noundef nonnull align 16 dereferenceable(60) @__const.main.test1, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %2, ptr noundef nonnull align 16 dereferenceable(60) @__const.main.test2, i64 60, i1 false)
  %5 = load i32, ptr %3, align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %7 = getelementptr inbounds i8, ptr %3, i64 8
  %wide.trip.count = zext nneg i32 %5 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %8 = icmp ult i32 %5, 4
  br i1 %8, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %17

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

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %9 = getelementptr inbounds [5 x [3 x i32]], ptr %1, i64 0, i64 %indvars.iv.epil
  %10 = load ptr, ptr %7, align 8, !tbaa !11
  %11 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.epil
  store ptr %9, ptr %11, align 8, !tbaa !12
  %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 %._crit_edge, label %.epil.preheader, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %0
  call void @printMatrix(ptr noundef nonnull %3)
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %13 = load i32, ptr %4, align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph25, label %._crit_edge26

.lr.ph25:                                         ; preds = %._crit_edge
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %wide.trip.count31 = zext nneg i32 %13 to i64
  %xtraiter34 = and i64 %wide.trip.count31, 3
  %16 = icmp ult i32 %13, 4
  br i1 %16, label %._crit_edge26.loopexit.unr-lcssa, label %.lr.ph25.new

.lr.ph25.new:                                     ; preds = %.lr.ph25
  %unroll_iter37 = and i64 %wide.trip.count31, 2147483644
  br label %40

17:                                               ; preds = %17, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %17 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %17 ]
  %18 = getelementptr inbounds [5 x [3 x i32]], ptr %1, i64 0, i64 %indvars.iv
  %19 = load ptr, ptr %7, align 8, !tbaa !11
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv
  store ptr %18, ptr %20, align 8, !tbaa !12
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %21 = getelementptr inbounds [5 x [3 x i32]], ptr %1, i64 0, i64 %indvars.iv.next
  %22 = load ptr, ptr %7, align 8, !tbaa !11
  %23 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv.next
  store ptr %21, ptr %23, align 8, !tbaa !12
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %24 = getelementptr inbounds [5 x [3 x i32]], ptr %1, i64 0, i64 %indvars.iv.next.1
  %25 = load ptr, ptr %7, align 8, !tbaa !11
  %26 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv.next.1
  store ptr %24, ptr %26, align 8, !tbaa !12
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %27 = getelementptr inbounds [5 x [3 x i32]], ptr %1, i64 0, i64 %indvars.iv.next.2
  %28 = load ptr, ptr %7, align 8, !tbaa !11
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.2
  store ptr %27, ptr %29, align 8, !tbaa !12
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %17, !llvm.loop !15

._crit_edge26.loopexit.unr-lcssa:                 ; preds = %40, %.lr.ph25
  %indvars.iv28.unr = phi i64 [ 0, %.lr.ph25 ], [ %indvars.iv.next29.3, %40 ]
  %lcmp.mod36.not = icmp eq i64 %xtraiter34, 0
  br i1 %lcmp.mod36.not, label %._crit_edge26, label %.epil.preheader33

.epil.preheader33:                                ; preds = %._crit_edge26.loopexit.unr-lcssa, %.epil.preheader33
  %indvars.iv28.epil = phi i64 [ %indvars.iv.next29.epil, %.epil.preheader33 ], [ %indvars.iv28.unr, %._crit_edge26.loopexit.unr-lcssa ]
  %epil.iter35 = phi i64 [ %epil.iter35.next, %.epil.preheader33 ], [ 0, %._crit_edge26.loopexit.unr-lcssa ]
  %30 = getelementptr inbounds [5 x [3 x i32]], ptr %2, i64 0, i64 %indvars.iv28.epil
  %31 = load ptr, ptr %15, align 8, !tbaa !11
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv28.epil
  store ptr %30, ptr %32, align 8, !tbaa !12
  %indvars.iv.next29.epil = add nuw nsw i64 %indvars.iv28.epil, 1
  %epil.iter35.next = add i64 %epil.iter35, 1
  %epil.iter35.cmp.not = icmp eq i64 %epil.iter35.next, %xtraiter34
  br i1 %epil.iter35.cmp.not, label %._crit_edge26, label %.epil.preheader33, !llvm.loop !17

._crit_edge26:                                    ; preds = %._crit_edge26.loopexit.unr-lcssa, %.epil.preheader33, %._crit_edge
  call void @printMatrix(ptr noundef nonnull %4)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %34 = call ptr @matrixAdd(ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @printMatrix(ptr noundef %34)
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %36 = call ptr @matrixSub(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @printMatrix(ptr noundef %36)
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %38 = call ptr @matrixMultiplyWithANumber(ptr noundef nonnull %3, i32 noundef 4)
  call void @printMatrix(ptr noundef %38)
  %39 = call ptr @matrixMultiply(ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @printMatrix(ptr noundef %39)
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %1) #4
  ret i32 0

40:                                               ; preds = %40, %.lr.ph25.new
  %indvars.iv28 = phi i64 [ 0, %.lr.ph25.new ], [ %indvars.iv.next29.3, %40 ]
  %niter38 = phi i64 [ 0, %.lr.ph25.new ], [ %niter38.next.3, %40 ]
  %41 = getelementptr inbounds [5 x [3 x i32]], ptr %2, i64 0, i64 %indvars.iv28
  %42 = load ptr, ptr %15, align 8, !tbaa !11
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv28
  store ptr %41, ptr %43, align 8, !tbaa !12
  %indvars.iv.next29 = or disjoint i64 %indvars.iv28, 1
  %44 = getelementptr inbounds [5 x [3 x i32]], ptr %2, i64 0, i64 %indvars.iv.next29
  %45 = load ptr, ptr %15, align 8, !tbaa !11
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv.next29
  store ptr %44, ptr %46, align 8, !tbaa !12
  %indvars.iv.next29.1 = or disjoint i64 %indvars.iv28, 2
  %47 = getelementptr inbounds [5 x [3 x i32]], ptr %2, i64 0, i64 %indvars.iv.next29.1
  %48 = load ptr, ptr %15, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv.next29.1
  store ptr %47, ptr %49, align 8, !tbaa !12
  %indvars.iv.next29.2 = or disjoint i64 %indvars.iv28, 3
  %50 = getelementptr inbounds [5 x [3 x i32]], ptr %2, i64 0, i64 %indvars.iv.next29.2
  %51 = load ptr, ptr %15, align 8, !tbaa !11
  %52 = getelementptr inbounds ptr, ptr %51, i64 %indvars.iv.next29.2
  store ptr %50, ptr %52, align 8, !tbaa !12
  %indvars.iv.next29.3 = add nuw nsw i64 %indvars.iv28, 4
  %niter38.next.3 = add i64 %niter38, 4
  %niter38.ncmp.3 = icmp eq i64 %niter38.next.3, %unroll_iter37
  br i1 %niter38.ncmp.3, label %._crit_edge26.loopexit.unr-lcssa, label %40, !llvm.loop !18
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @makeMatrix(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @printMatrix(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixAdd(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixSub(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixMultiplyWithANumber(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @matrixMultiply(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"Matrix", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !16}


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