; LLVM IR from Amoiensis/Optimization-Algorithm :: [Direct_Method]直接法/[Univariate_Search_Method]坐标轮换法 (main)

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

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @M_mul(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._Matrix, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._Matrix, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !12
  %23 = icmp ne i32 %19, %22
  br i1 %23, label %24, label %26

24:                                               ; preds = %2
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %112

26:                                               ; preds = %2
  %27 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %27, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._Matrix, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !12
  store i32 %30, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._Matrix, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %33, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._Matrix, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %36, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %37 = load i32, ptr %6, align 4, !tbaa !13
  %38 = load i32, ptr %8, align 4, !tbaa !13
  %39 = mul nsw i32 %37, %38
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 8
  %42 = call noalias ptr @malloc(i64 noundef %41) #6
  store ptr %42, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !14
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %43

43:                                               ; preds = %99, %26
  %44 = load i32, ptr %9, align 4, !tbaa !13
  %45 = load i32, ptr %6, align 4, !tbaa !13
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %102

47:                                               ; preds = %43
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %48

48:                                               ; preds = %95, %47
  %49 = load i32, ptr %10, align 4, !tbaa !13
  %50 = load i32, ptr %8, align 4, !tbaa !13
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %98

52:                                               ; preds = %48
  store double 0.000000e+00, ptr %13, align 8, !tbaa !14
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %53

53:                                               ; preds = %82, %52
  %54 = load i32, ptr %11, align 4, !tbaa !13
  %55 = load i32, ptr %7, align 4, !tbaa !13
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %85

57:                                               ; preds = %53
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._Matrix, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = load i32, ptr %9, align 4, !tbaa !13
  %62 = load i32, ptr %7, align 4, !tbaa !13
  %63 = mul nsw i32 %61, %62
  %64 = load i32, ptr %11, align 4, !tbaa !13
  %65 = add nsw i32 %63, %64
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %60, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._Matrix, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load i32, ptr %11, align 4, !tbaa !13
  %73 = load i32, ptr %8, align 4, !tbaa !13
  %74 = mul nsw i32 %72, %73
  %75 = load i32, ptr %10, align 4, !tbaa !13
  %76 = add nsw i32 %74, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %71, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !14
  %80 = load double, ptr %13, align 8, !tbaa !14
  %81 = call double @llvm.fmuladd.f64(double %68, double %79, double %80)
  store double %81, ptr %13, align 8, !tbaa !14
  br label %82

82:                                               ; preds = %57
  %83 = load i32, ptr %11, align 4, !tbaa !13
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %11, align 4, !tbaa !13
  br label %53, !llvm.loop !17

85:                                               ; preds = %53
  %86 = load double, ptr %13, align 8, !tbaa !14
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !13
  %89 = load i32, ptr %8, align 4, !tbaa !13
  %90 = mul nsw i32 %88, %89
  %91 = load i32, ptr %10, align 4, !tbaa !13
  %92 = add nsw i32 %90, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %87, i64 %93
  store double %86, ptr %94, align 8, !tbaa !14
  br label %95

95:                                               ; preds = %85
  %96 = load i32, ptr %10, align 4, !tbaa !13
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %10, align 4, !tbaa !13
  br label %48, !llvm.loop !19

98:                                               ; preds = %48
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %9, align 4, !tbaa !13
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %9, align 4, !tbaa !13
  br label %43, !llvm.loop !20

102:                                              ; preds = %43
  %103 = load i32, ptr %6, align 4, !tbaa !13
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._Matrix, ptr %104, i32 0, i32 0
  store i32 %103, ptr %105, align 8, !tbaa !12
  %106 = load i32, ptr %8, align 4, !tbaa !13
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._Matrix, ptr %107, i32 0, i32 1
  store i32 %106, ptr %108, align 4, !tbaa !9
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._Matrix, ptr %110, i32 0, i32 2
  store ptr %109, ptr %111, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %112

112:                                              ; preds = %102, %24
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %113)
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %115
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !11, i64 4}
!10 = !{!"_Matrix", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!10, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind uwtable
define dso_local noundef ptr @M_mul(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %0, ptr noundef %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = load i32, ptr %1, align 8, !tbaa !11
  %.not = icmp eq i32 %5, %6
  br i1 %.not, label %9, label %7

7:                                                ; preds = %2
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %56

9:                                                ; preds = %2
  %10 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %11 = load i32, ptr %0, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = mul nsw i32 %13, %11
  %15 = sext i32 %14 to i64
  %16 = shl nsw i64 %15, 3
  %17 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %18 = icmp sgt i32 %11, 0
  br i1 %18, label %.preheader46.lr.ph, label %._crit_edge

.preheader46.lr.ph:                               ; preds = %9
  %19 = icmp sgt i32 %13, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  br i1 %19, label %.preheader46.lr.ph.split.us, label %._crit_edge

.preheader46.lr.ph.split.us:                      ; preds = %.preheader46.lr.ph
  %22 = icmp sgt i32 %5, 0
  br i1 %22, label %.preheader46.lr.ph.split.us.split.us, label %.preheader46.us.preheader

.preheader46.us.preheader:                        ; preds = %.preheader46.lr.ph.split.us
  %23 = zext nneg i32 %13 to i64
  %24 = zext nneg i32 %11 to i64
  %25 = mul nuw nsw i64 %23, %24
  %26 = shl i64 %25, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 %26, i1 false), !tbaa !12
  br label %._crit_edge

.preheader46.lr.ph.split.us.split.us:             ; preds = %.preheader46.lr.ph.split.us
  %27 = load ptr, ptr %20, align 8, !tbaa !14
  %28 = load ptr, ptr %21, align 8, !tbaa !14
  %29 = zext nneg i32 %13 to i64
  %30 = zext nneg i32 %5 to i64
  %wide.trip.count69 = zext nneg i32 %11 to i64
  %xtraiter = and i64 %30, 3
  %31 = icmp ult i32 %5, 4
  %unroll_iter = and i64 %30, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader46.us.us

.preheader46.us.us:                               ; preds = %._crit_edge50.split.us.us.us, %.preheader46.lr.ph.split.us.split.us
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %._crit_edge50.split.us.us.us ], [ 0, %.preheader46.lr.ph.split.us.split.us ]
  %32 = mul nuw nsw i64 %indvars.iv66, %30
  %33 = mul nuw nsw i64 %indvars.iv66, %29
  %invariant.gep = getelementptr inbounds double, ptr %27, i64 %32
  %invariant.gep73 = getelementptr inbounds double, ptr %17, i64 %33
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader46.us.us
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %._crit_edge.us.us.us ], [ 0, %.preheader46.us.us ]
  %invariant.gep71 = getelementptr inbounds double, ptr %28, i64 %indvars.iv61
  br i1 %31, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader.us.us.us.new

.preheader.us.us.us.new:                          ; preds = %.preheader.us.us.us, %.preheader.us.us.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %.048.us.us.us = phi double [ %49, %.preheader.us.us.us.new ], [ 0.000000e+00, %.preheader.us.us.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv
  %34 = load double, ptr %gep, align 8, !tbaa !12
  %35 = mul nuw nsw i64 %indvars.iv, %29
  %gep72 = getelementptr inbounds double, ptr %invariant.gep71, i64 %35
  %36 = load double, ptr %gep72, align 8, !tbaa !12
  %37 = tail call double @llvm.fmuladd.f64(double %34, double %36, double %.048.us.us.us)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next
  %38 = load double, ptr %gep.1, align 8, !tbaa !12
  %39 = mul nuw nsw i64 %indvars.iv.next, %29
  %gep72.1 = getelementptr inbounds double, ptr %invariant.gep71, i64 %39
  %40 = load double, ptr %gep72.1, align 8, !tbaa !12
  %41 = tail call double @llvm.fmuladd.f64(double %38, double %40, double %37)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %gep.2 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next.1
  %42 = load double, ptr %gep.2, align 8, !tbaa !12
  %43 = mul nuw nsw i64 %indvars.iv.next.1, %29
  %gep72.2 = getelementptr inbounds double, ptr %invariant.gep71, i64 %43
  %44 = load double, ptr %gep72.2, align 8, !tbaa !12
  %45 = tail call double @llvm.fmuladd.f64(double %42, double %44, double %41)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %gep.3 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next.2
  %46 = load double, ptr %gep.3, align 8, !tbaa !12
  %47 = mul nuw nsw i64 %indvars.iv.next.2, %29
  %gep72.3 = getelementptr inbounds double, ptr %invariant.gep71, i64 %47
  %48 = load double, ptr %gep72.3, align 8, !tbaa !12
  %49 = tail call double @llvm.fmuladd.f64(double %46, double %48, double %45)
  %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.us.us.us.unr-lcssa, label %.preheader.us.us.us.new, !llvm.loop !15

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.preheader.us.us.us.new, %.preheader.us.us.us
  %.lcssa.ph = phi double [ poison, %.preheader.us.us.us ], [ %49, %.preheader.us.us.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader.us.us.us ], [ %indvars.iv.next.3, %.preheader.us.us.us.new ]
  %.048.us.us.us.unr = phi double [ 0.000000e+00, %.preheader.us.us.us ], [ %49, %.preheader.us.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.us.us.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.us.us.us.unr-lcssa ]
  %.048.us.us.us.epil = phi double [ %53, %.epil.preheader ], [ %.048.us.us.us.unr, %._crit_edge.us.us.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.us.us.unr-lcssa ]
  %gep.epil = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.epil
  %50 = load double, ptr %gep.epil, align 8, !tbaa !12
  %51 = mul nuw nsw i64 %indvars.iv.epil, %29
  %gep72.epil = getelementptr inbounds double, ptr %invariant.gep71, i64 %51
  %52 = load double, ptr %gep72.epil, align 8, !tbaa !12
  %53 = tail call double @llvm.fmuladd.f64(double %50, double %52, double %.048.us.us.us.epil)
  %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.us.us.us, label %.epil.preheader, !llvm.loop !17

._crit_edge.us.us.us:                             ; preds = %.epil.preheader, %._crit_edge.us.us.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us.us.us.unr-lcssa ], [ %53, %.epil.preheader ]
  %gep74 = getelementptr inbounds double, ptr %invariant.gep73, i64 %indvars.iv61
  store double %.lcssa, ptr %gep74, align 8, !tbaa !12
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next62, %29
  br i1 %exitcond65.not, label %._crit_edge50.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !19

._crit_edge50.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %._crit_edge, label %.preheader46.us.us, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge50.split.us.us.us, %.preheader46.lr.ph, %.preheader46.us.preheader, %9
  store i32 %11, ptr %10, align 8, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 %13, ptr %54, align 4, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %17, ptr %55, align 8, !tbaa !14
  br label %56

56:                                               ; preds = %._crit_edge, %7
  %.039 = phi ptr [ null, %7 ], [ %10, %._crit_edge ]
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %.039)
  ret ptr %.039
}

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #3 = { nofree 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind allocsize(0) }

!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 4}
!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, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!6, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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