; LLVM IR from tangjz/acm-icpc :: lydsy (4037)

; 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 { [5 x [5 x i32]] }

@m = external dso_local global i32, align 4
@buf = external dso_local global [501 x i8], align 16
@A = external dso_local global [11 x [501 x %struct.Matrix]], align 16
@B = external dso_local global %struct.Matrix, align 4
@f = external dso_local global [501 x %struct.Matrix], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Matrix, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Matrix, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Matrix, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.Matrix, align 4
  %14 = alloca %struct.Matrix, align 4
  %15 = alloca %struct.Matrix, align 4
  store i32 0, ptr %1, align 4
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @buf, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %17 = call i64 @strlen(ptr noundef @buf) #7
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr %2, align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr @A, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %42, %0
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %45

24:                                               ; preds = %19
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), i64 0, i64 %27
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [5 x i32], ptr %28, i64 0, i64 %30
  store i32 1, ptr %31, align 4, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), i64 0, i64 %33
  %35 = getelementptr inbounds [5 x i32], ptr %34, i64 0, i64 0
  store i32 1, ptr %35, align 4, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [5 x [5 x i32]], ptr @A, i64 0, i64 %37
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [5 x i32], ptr %38, i64 0, i64 %40
  store i32 1, ptr %41, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %24
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %3, align 4, !tbaa !5
  br label %19, !llvm.loop !9

45:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %60, %45
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = icmp slt i32 %47, 10
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %63

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 100, ptr %5) #6
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %53
  %55 = getelementptr inbounds [501 x %struct.Matrix], ptr %54, i64 0, i64 0
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %5, ptr noundef nonnull align 4 dereferenceable(100) %55, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1))
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %57
  %59 = getelementptr inbounds [501 x %struct.Matrix], ptr %58, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %5, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 100, ptr %5) #6
  br label %60

60:                                               ; preds = %50
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %4, align 4, !tbaa !5
  br label %46, !llvm.loop !13

63:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %113, %63
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %116

69:                                               ; preds = %64
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [501 x %struct.Matrix], ptr @A, i64 0, i64 %72
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [501 x %struct.Matrix], ptr @A, i64 0, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %73, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 100, ptr %8) #6
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 9), i64 0, i64 %79
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), i64 0, i64 %83
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %8, ptr noundef nonnull align 4 dereferenceable(100) %80, ptr noundef nonnull align 4 dereferenceable(100) %84)
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), i64 0, i64 %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %8, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 100, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %109, %69
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = icmp slt i32 %89, 10
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %112

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 100, ptr %10) #6
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %95
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [501 x %struct.Matrix], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds ([11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1), i64 0, i64 %101
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %10, ptr noundef nonnull align 4 dereferenceable(100) %99, ptr noundef nonnull align 4 dereferenceable(100) %102)
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %104
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [501 x %struct.Matrix], ptr %105, i64 0, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %108, ptr align 4 %10, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #6
  br label %109

109:                                              ; preds = %92
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %88, !llvm.loop !14

112:                                              ; preds = %91
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %6, align 4, !tbaa !5
  br label %64, !llvm.loop !15

116:                                              ; preds = %68
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @f, ptr align 16 @A, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %157, %116
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = icmp sle i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %160

122:                                              ; preds = %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @B, ptr align 16 @A, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = sub nsw i32 %123, 1
  store i32 %124, ptr %12, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %153, %122
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = icmp sge i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %156

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 100, ptr %13) #6
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [501 x i8], ptr @buf, i64 0, i64 %131
  %133 = load i8, ptr %132, align 1, !tbaa !12
  %134 = sext i8 %133 to i32
  %135 = sub nsw i32 %134, 48
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %136
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = sub nsw i32 %138, %139
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [501 x %struct.Matrix], ptr %137, i64 0, i64 %142
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %13, ptr noundef nonnull align 4 dereferenceable(100) @B, ptr noundef nonnull align 4 dereferenceable(100) %143)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @B, ptr align 4 %13, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 100, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 100, ptr %14) #6
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %145
  call void @llvm.lifetime.start.p0(i64 100, ptr %15) #6
  %147 = load i32, ptr %12, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %148
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %15, ptr noundef nonnull align 4 dereferenceable(100) %149, ptr noundef nonnull align 4 dereferenceable(100) @B)
  call void @_ZNK6MatrixplERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %14, ptr noundef nonnull align 4 dereferenceable(100) %146, ptr noundef nonnull align 4 dereferenceable(100) %15)
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %152, ptr align 4 %14, i64 100, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 100, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %14) #6
  br label %153

153:                                              ; preds = %129
  %154 = load i32, ptr %12, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %12, align 4, !tbaa !5
  br label %125, !llvm.loop !16

156:                                              ; preds = %128
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %11, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !5
  br label %117, !llvm.loop !17

160:                                              ; preds = %121
  %161 = load i32, ptr %2, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %162
  %164 = getelementptr inbounds %struct.Matrix, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds [5 x [5 x i32]], ptr %164, i64 0, i64 0
  %166 = getelementptr inbounds [5 x i32], ptr %165, i64 0, i64 0
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %167)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %169 = load i32, ptr %1, align 4
  ret i32 %169
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(100), ptr noundef nonnull align 4 dereferenceable(100)) #4 align 2

; 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) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixplERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(100), ptr noundef nonnull align 4 dereferenceable(100)) #4 align 2

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

attributes #0 = { mustprogress norecurse 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 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 100, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; 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 { [5 x [5 x i32]] }

@m = external dso_local global i32, align 4
@buf = external dso_local global [501 x i8], align 16
@A = external dso_local global [11 x [501 x %struct.Matrix]], align 16
@B = external dso_local global %struct.Matrix, align 4
@f = external dso_local global [501 x %struct.Matrix], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Matrix, align 4
  %2 = alloca %struct.Matrix, align 4
  %3 = alloca %struct.Matrix, align 4
  %4 = alloca %struct.Matrix, align 4
  %5 = alloca %struct.Matrix, align 4
  %6 = alloca %struct.Matrix, align 4
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @buf, ptr noundef nonnull @m)
  %8 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @buf) #6
  %9 = trunc i64 %8 to i32
  store i32 1, ptr getelementptr inbounds (i8, ptr @A, i64 50100), align 4, !tbaa !5
  store i32 1, ptr @A, align 16, !tbaa !5
  %10 = load i32, ptr @m, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 1
  br i1 %11, label %.lr.ph.preheader, label %.preheader46

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %10 to i64
  %12 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %12, 1
  %13 = icmp eq i32 %10, 2
  br i1 %13, label %.preheader46.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %12, -2
  br label %.lr.ph

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

.lr.ph.epil:                                      ; preds = %.preheader46.loopexit.unr-lcssa
  %14 = add nsw i64 %indvars.iv.unr, -1
  %15 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %14, i64 %indvars.iv.unr
  store i32 1, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %indvars.iv.unr
  store i32 1, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds [5 x [5 x i32]], ptr @A, i64 0, i64 %indvars.iv.unr, i64 %indvars.iv.unr
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %.preheader46

.preheader46:                                     ; preds = %.lr.ph.epil, %.preheader46.loopexit.unr-lcssa, %0
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 100200), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 100200), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 150300), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 150300), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 200400), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 200400), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 250500), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 250500), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 300600), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 300600), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 350700), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 350700), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 400800), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %1) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 400800), ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 50100))
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) getelementptr inbounds (i8, ptr @A, i64 450900), ptr noundef nonnull align 4 dereferenceable(100) %1, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %1) #7
  %18 = icmp sgt i32 %9, 1
  br i1 %18, label %.lr.ph51.preheader, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %19 = add nsw i64 %indvars.iv, -1
  %20 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %19, i64 %indvars.iv
  store i32 1, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %indvars.iv
  store i32 1, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [5 x [5 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 %indvars.iv
  store i32 1, ptr %22, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %indvars.iv, i64 %indvars.iv.next
  store i32 1, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [5 x [5 x i32]], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %indvars.iv.next
  store i32 1, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [5 x [5 x i32]], ptr @A, i64 0, i64 %indvars.iv.next, i64 %indvars.iv.next
  store i32 1, ptr %25, align 4, !tbaa !5
  %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 %.preheader46.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

.lr.ph51.preheader:                               ; preds = %.preheader46
  %wide.trip.count70 = and i64 %8, 2147483647
  br label %.lr.ph51

._crit_edge:                                      ; preds = %.lr.ph51, %.preheader46
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) @f, ptr noundef nonnull align 16 dereferenceable(100) @A, i64 100, i1 false), !tbaa.struct !9
  %.not53 = icmp slt i32 %9, 1
  br i1 %.not53, label %._crit_edge57, label %.lr.ph56.preheader

.lr.ph56.preheader:                               ; preds = %._crit_edge
  %26 = add nuw nsw i64 %8, 1
  %wide.trip.count78 = and i64 %26, 4294967295
  br label %.lr.ph56

.lr.ph51:                                         ; preds = %.lr.ph51.preheader, %.lr.ph51
  %indvars.iv67 = phi i64 [ 1, %.lr.ph51.preheader ], [ %indvars.iv.next68, %.lr.ph51 ]
  %27 = add nsw i64 %indvars.iv67, -1
  %28 = getelementptr inbounds [501 x %struct.Matrix], ptr @A, i64 0, i64 %27
  %29 = getelementptr inbounds [501 x %struct.Matrix], ptr @A, i64 0, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %29, ptr noundef nonnull align 4 dereferenceable(100) %28, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %2) #7
  %30 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds (i8, ptr @A, i64 450900), i64 0, i64 %27
  %31 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %27
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %2, ptr noundef nonnull align 4 dereferenceable(100) %30, ptr noundef nonnull align 4 dereferenceable(100) %31)
  %32 = getelementptr inbounds [501 x %struct.Matrix], ptr getelementptr inbounds (i8, ptr @A, i64 50100), i64 0, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %32, ptr noundef nonnull align 4 dereferenceable(100) %2, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  %33 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 1, i64 %indvars.iv67
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %33, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %34 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 2, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %34, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %34, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %35 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 3, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %35, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %35, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %36 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 4, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %36, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %36, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %37 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 5, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %37, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %37, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %38 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 6, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %38, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %38, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %39 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 7, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %39, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %39, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %40 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 8, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %40, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %3, ptr noundef nonnull align 4 dereferenceable(100) %40, ptr noundef nonnull align 4 dereferenceable(100) %32)
  %41 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 9, i64 %indvars.iv67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %41, ptr noundef nonnull align 4 dereferenceable(100) %3, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count70
  br i1 %exitcond71.not, label %._crit_edge, label %.lr.ph51, !llvm.loop !13

._crit_edge57:                                    ; preds = %47, %._crit_edge
  %sext = shl i64 %8, 32
  %42 = ashr exact i64 %sext, 32
  %43 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %44)
  ret i32 0

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %47
  %indvars.iv72 = phi i64 [ 1, %.lr.ph56.preheader ], [ %indvars.iv.next73, %47 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) @B, ptr noundef nonnull align 16 dereferenceable(100) @A, i64 100, i1 false), !tbaa.struct !9
  %46 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %indvars.iv72
  br label %48

47:                                               ; preds = %48
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next73, %wide.trip.count78
  br i1 %exitcond79.not, label %._crit_edge57, label %.lr.ph56, !llvm.loop !14

48:                                               ; preds = %.lr.ph56, %48
  %indvars.iv74 = phi i64 [ %indvars.iv72, %.lr.ph56 ], [ %indvars.iv.next75, %48 ]
  %indvars.iv.next75 = add nsw i64 %indvars.iv74, -1
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %4) #7
  %49 = getelementptr inbounds [501 x i8], ptr @buf, i64 0, i64 %indvars.iv.next75
  %50 = load i8, ptr %49, align 1, !tbaa !10
  %51 = sext i8 %50 to i64
  %52 = add nsw i64 %51, -48
  %53 = sub nuw nsw i64 %indvars.iv72, %indvars.iv74
  %54 = getelementptr inbounds [11 x [501 x %struct.Matrix]], ptr @A, i64 0, i64 %52, i64 %53
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %4, ptr noundef nonnull align 4 dereferenceable(100) @B, ptr noundef nonnull align 4 dereferenceable(100) %54)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) @B, ptr noundef nonnull align 4 dereferenceable(100) %4, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %6) #7
  %55 = getelementptr inbounds [501 x %struct.Matrix], ptr @f, i64 0, i64 %indvars.iv.next75
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %6, ptr noundef nonnull align 4 dereferenceable(100) %55, ptr noundef nonnull align 4 dereferenceable(100) @B)
  call void @_ZNK6MatrixplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %5, ptr noundef nonnull align 4 dereferenceable(100) %46, ptr noundef nonnull align 4 dereferenceable(100) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(100) %46, ptr noundef nonnull align 4 dereferenceable(100) %5, i64 100, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %5) #7
  %56 = icmp sgt i64 %indvars.iv74, 1
  br i1 %56, label %48, label %47, !llvm.loop !15
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(100), ptr noundef nonnull align 4 dereferenceable(100)) local_unnamed_addr #4 align 2

; 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) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixplERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(100), ptr noundef nonnull align 4 dereferenceable(100)) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress norecurse 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 100, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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