; LLVM IR from dmalyuta/FlyARocket_GNC :: la_funcs (mmultiply)

; 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 { i64, i64, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @initMatrix(ptr dead_on_unwind noalias writable sret(%struct.MATRIX) align 8, i64 noundef, i64 noundef) #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: nounwind uwtable
define dso_local void @mmultiply(ptr dead_on_unwind noalias writable sret(%struct.MATRIX) align 8 %0, ptr noundef byval(%struct.MATRIX) align 8 %1, ptr noundef byval(%struct.MATRIX) align 8 %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %7 = getelementptr inbounds %struct.MATRIX, ptr %1, i32 0, i32 0
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.MATRIX, ptr %2, i32 0, i32 1
  %10 = load i64, ptr %9, align 8, !tbaa !11
  call void @initMatrix(ptr dead_on_unwind writable sret(%struct.MATRIX) align 8 %0, i64 noundef %8, i64 noundef %10)
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %11

11:                                               ; preds = %89, %3
  %12 = load i32, ptr %4, align 4, !tbaa !12
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds %struct.MATRIX, ptr %1, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = icmp ult i64 %13, %15
  br i1 %16, label %17, label %92

17:                                               ; preds = %11
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %18

18:                                               ; preds = %85, %17
  %19 = load i32, ptr %5, align 4, !tbaa !12
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.MATRIX, ptr %2, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp ult i64 %20, %22
  br i1 %23, label %24, label %88

24:                                               ; preds = %18
  %25 = getelementptr inbounds %struct.MATRIX, ptr %0, i32 0, i32 2
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = load i32, ptr %4, align 4, !tbaa !12
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %26, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = load i32, ptr %5, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds float, ptr %30, i64 %32
  store float 0.000000e+00, ptr %33, align 4, !tbaa !16
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %34

34:                                               ; preds = %81, %24
  %35 = load i32, ptr %6, align 4, !tbaa !12
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %struct.MATRIX, ptr %1, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = icmp ult i64 %36, %38
  br i1 %39, label %40, label %84

40:                                               ; preds = %34
  %41 = getelementptr inbounds %struct.MATRIX, ptr %0, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = load i32, ptr %4, align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = load i32, ptr %5, align 4, !tbaa !12
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %46, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !16
  %51 = getelementptr inbounds %struct.MATRIX, ptr %1, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = load i32, ptr %4, align 4, !tbaa !12
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load i32, ptr %6, align 4, !tbaa !12
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !16
  %61 = getelementptr inbounds %struct.MATRIX, ptr %2, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load i32, ptr %6, align 4, !tbaa !12
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = load i32, ptr %5, align 4, !tbaa !12
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !16
  %71 = call float @llvm.fmuladd.f32(float %60, float %70, float %50)
  %72 = getelementptr inbounds %struct.MATRIX, ptr %0, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = load i32, ptr %4, align 4, !tbaa !12
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = load i32, ptr %5, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %77, i64 %79
  store float %71, ptr %80, align 4, !tbaa !16
  br label %81

81:                                               ; preds = %40
  %82 = load i32, ptr %6, align 4, !tbaa !12
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %6, align 4, !tbaa !12
  br label %34, !llvm.loop !18

84:                                               ; preds = %34
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %5, align 4, !tbaa !12
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %5, align 4, !tbaa !12
  br label %18, !llvm.loop !20

88:                                               ; preds = %18
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %4, align 4, !tbaa !12
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %4, align 4, !tbaa !12
  br label %11, !llvm.loop !21

92:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  ret void
}

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

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 nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"MATRIX", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !10, i64 16}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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

%struct.MATRIX = type { i64, i64, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @initMatrix(ptr dead_on_unwind noalias writable sret(%struct.MATRIX) align 8, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @mmultiply(ptr dead_on_unwind noalias writable sret(%struct.MATRIX) align 8 %0, ptr nocapture noundef readonly byval(%struct.MATRIX) align 8 %1, ptr nocapture noundef readonly byval(%struct.MATRIX) align 8 %2) local_unnamed_addr #0 {
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !11
  tail call void @initMatrix(ptr dead_on_unwind writable sret(%struct.MATRIX) align 8 %0, i64 noundef %4, i64 noundef %6)
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %3
  %.not29 = icmp eq i64 %6, 0
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  %12 = load ptr, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  %14 = load ptr, ptr %13, align 8
  br i1 %.not29, label %._crit_edge, label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %.not30 = icmp eq i64 %10, 0
  br i1 %.not30, label %.preheader.us.preheader, label %.preheader.us.us.preheader

.preheader.us.us.preheader:                       ; preds = %.preheader.lr.ph.split.us
  %xtraiter = and i64 %10, 1
  %15 = icmp eq i64 %10, 1
  %unroll_iter = and i64 %10, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us.us

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph.split.us
  %16 = shl nuw i64 %6, 2
  %xtraiter55 = and i64 %4, 7
  %17 = icmp ult i64 %4, 8
  br i1 %17, label %._crit_edge.loopexit.unr-lcssa, label %.preheader.us.preheader.new

.preheader.us.preheader.new:                      ; preds = %.preheader.us.preheader
  %unroll_iter57 = and i64 %4, -8
  br label %.preheader.us

.preheader.us.us:                                 ; preds = %.preheader.us.us.preheader, %._crit_edge24.split.us.us.us
  %indvars.iv38 = phi i64 [ %indvars.iv.next39, %._crit_edge24.split.us.us.us ], [ 0, %.preheader.us.us.preheader ]
  %18 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv38
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv38
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  br label %.lr.ph.us.us.us

.lr.ph.us.us.us:                                  ; preds = %._crit_edge.us.us.us, %.preheader.us.us
  %indvars.iv34 = phi i64 [ %indvars.iv.next35, %._crit_edge.us.us.us ], [ 0, %.preheader.us.us ]
  %22 = getelementptr inbounds float, ptr %19, i64 %indvars.iv34
  store float 0.000000e+00, ptr %22, align 4, !tbaa !13
  br i1 %15, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph.us.us.us.new

.lr.ph.us.us.us.new:                              ; preds = %.lr.ph.us.us.us, %.lr.ph.us.us.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph.us.us.us.new ], [ 0, %.lr.ph.us.us.us ]
  %23 = phi float [ %37, %.lr.ph.us.us.us.new ], [ 0.000000e+00, %.lr.ph.us.us.us ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph.us.us.us.new ], [ 0, %.lr.ph.us.us.us ]
  %24 = getelementptr inbounds float, ptr %21, i64 %indvars.iv
  %25 = load float, ptr %24, align 4, !tbaa !13
  %26 = getelementptr inbounds ptr, ptr %14, i64 %indvars.iv
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %28 = getelementptr inbounds float, ptr %27, i64 %indvars.iv34
  %29 = load float, ptr %28, align 4, !tbaa !13
  %30 = tail call float @llvm.fmuladd.f32(float %25, float %29, float %23)
  store float %30, ptr %22, align 4, !tbaa !13
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %31 = getelementptr inbounds float, ptr %21, i64 %indvars.iv.next
  %32 = load float, ptr %31, align 4, !tbaa !13
  %33 = getelementptr inbounds ptr, ptr %14, i64 %indvars.iv.next
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  %35 = getelementptr inbounds float, ptr %34, i64 %indvars.iv34
  %36 = load float, ptr %35, align 4, !tbaa !13
  %37 = tail call float @llvm.fmuladd.f32(float %32, float %36, float %30)
  store float %37, ptr %22, align 4, !tbaa !13
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph.us.us.us.new, !llvm.loop !15

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.lr.ph.us.us.us.new, %.lr.ph.us.us.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.us.us.us ], [ %indvars.iv.next.1, %.lr.ph.us.us.us.new ]
  %.unr = phi float [ 0.000000e+00, %.lr.ph.us.us.us ], [ %37, %.lr.ph.us.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us.us, label %._crit_edge.us.us.us.epilog-lcssa

._crit_edge.us.us.us.epilog-lcssa:                ; preds = %._crit_edge.us.us.us.unr-lcssa
  %38 = getelementptr inbounds float, ptr %21, i64 %indvars.iv.unr
  %39 = load float, ptr %38, align 4, !tbaa !13
  %40 = getelementptr inbounds ptr, ptr %14, i64 %indvars.iv.unr
  %41 = load ptr, ptr %40, align 8, !tbaa !12
  %42 = getelementptr inbounds float, ptr %41, i64 %indvars.iv34
  %43 = load float, ptr %42, align 4, !tbaa !13
  %44 = tail call float @llvm.fmuladd.f32(float %39, float %43, float %.unr)
  store float %44, ptr %22, align 4, !tbaa !13
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.unr-lcssa, %._crit_edge.us.us.us.epilog-lcssa
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next35, %6
  br i1 %exitcond37.not, label %._crit_edge24.split.us.us.us, label %.lr.ph.us.us.us, !llvm.loop !17

._crit_edge24.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1
  %exitcond41.not = icmp eq i64 %indvars.iv.next39, %4
  br i1 %exitcond41.not, label %._crit_edge, label %.preheader.us.us, !llvm.loop !18

.preheader.us:                                    ; preds = %.preheader.us, %.preheader.us.preheader.new
  %indvars.iv45 = phi i64 [ 0, %.preheader.us.preheader.new ], [ %indvars.iv.next46.7, %.preheader.us ]
  %niter58 = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter58.next.7, %.preheader.us ]
  %45 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv45
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %46, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46 = or disjoint i64 %indvars.iv45, 1
  %47 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %48, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.1 = or disjoint i64 %indvars.iv45, 2
  %49 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.1
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %50, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.2 = or disjoint i64 %indvars.iv45, 3
  %51 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.2
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %52, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.3 = or disjoint i64 %indvars.iv45, 4
  %53 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.3
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %54, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.4 = or disjoint i64 %indvars.iv45, 5
  %55 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.4
  %56 = load ptr, ptr %55, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %56, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.5 = or disjoint i64 %indvars.iv45, 6
  %57 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.5
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %58, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.6 = or disjoint i64 %indvars.iv45, 7
  %59 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv.next46.6
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %60, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.7 = add nuw nsw i64 %indvars.iv45, 8
  %niter58.next.7 = add i64 %niter58, 8
  %niter58.ncmp.7 = icmp eq i64 %niter58.next.7, %unroll_iter57
  br i1 %niter58.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.preheader.us, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.preheader.us, %.preheader.us.preheader
  %indvars.iv45.unr = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next46.7, %.preheader.us ]
  %lcmp.mod56.not = icmp eq i64 %xtraiter55, 0
  br i1 %lcmp.mod56.not, label %._crit_edge, label %.preheader.us.epil

.preheader.us.epil:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.preheader.us.epil
  %indvars.iv45.epil = phi i64 [ %indvars.iv.next46.epil, %.preheader.us.epil ], [ %indvars.iv45.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.us.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %61 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv45.epil
  %62 = load ptr, ptr %61, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr align 4 %62, i8 0, i64 %16, i1 false), !tbaa !13
  %indvars.iv.next46.epil = add nuw nsw i64 %indvars.iv45.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter55
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.preheader.us.epil, !llvm.loop !19

._crit_edge:                                      ; preds = %._crit_edge24.split.us.us.us, %._crit_edge.loopexit.unr-lcssa, %.preheader.us.epil, %.preheader.lr.ph, %3
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}


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