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

; 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, [3 x [3 x i64]] }

@t = external dso_local global i32, align 4
@p = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@phi = external dso_local global i64, align 8
@A = external dso_local global %struct.Matrix, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.Matrix, align 8
  store i32 0, ptr %1, align 4
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t, ptr noundef @p)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %6 = load i64, ptr @p, align 8, !tbaa !5
  store i64 %6, ptr %2, align 8, !tbaa !5
  %7 = load i64, ptr @p, align 8, !tbaa !5
  store i64 %7, ptr @phi, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 2, ptr %3, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %48, %0
  %9 = load i32, ptr %3, align 4, !tbaa !9
  %10 = sext i32 %9 to i64
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = sext i32 %11 to i64
  %13 = mul nsw i64 %10, %12
  %14 = load i64, ptr %2, align 8, !tbaa !5
  %15 = icmp sle i64 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %51

17:                                               ; preds = %8
  %18 = load i64, ptr %2, align 8, !tbaa !5
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = srem i64 %18, %20
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %47

23:                                               ; preds = %17
  %24 = load i64, ptr @phi, align 8, !tbaa !5
  %25 = load i32, ptr %3, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = sdiv i64 %24, %26
  %28 = load i64, ptr @phi, align 8, !tbaa !5
  %29 = sub nsw i64 %28, %27
  store i64 %29, ptr @phi, align 8, !tbaa !5
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = load i64, ptr %2, align 8, !tbaa !5
  %33 = sdiv i64 %32, %31
  store i64 %33, ptr %2, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %41, %23
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = srem i64 %35, %37
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %34
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %2, align 8, !tbaa !5
  %45 = sdiv i64 %44, %43
  store i64 %45, ptr %2, align 8, !tbaa !5
  br label %34, !llvm.loop !11

46:                                               ; preds = %34
  br label %47

47:                                               ; preds = %46, %17
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %3, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !9
  br label %8, !llvm.loop !13

51:                                               ; preds = %16
  %52 = load i64, ptr %2, align 8, !tbaa !5
  %53 = icmp sgt i64 %52, 1
  br i1 %53, label %54, label %60

54:                                               ; preds = %51
  %55 = load i64, ptr @phi, align 8, !tbaa !5
  %56 = load i64, ptr %2, align 8, !tbaa !5
  %57 = sdiv i64 %55, %56
  %58 = load i64, ptr @phi, align 8, !tbaa !5
  %59 = sub nsw i64 %58, %57
  store i64 %59, ptr @phi, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %54, %51
  br label %61

61:                                               ; preds = %65, %60
  %62 = load i32, ptr @t, align 4, !tbaa !9
  %63 = add nsw i32 %62, -1
  store i32 %63, ptr @t, align 4, !tbaa !9
  %64 = icmp ne i32 %62, 0
  br i1 %64, label %65, label %93

65:                                               ; preds = %61
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @m, ptr noundef @x, ptr noundef @q, ptr noundef @n)
  %67 = load i64, ptr @x, align 8, !tbaa !5
  %68 = load i64, ptr @p, align 8, !tbaa !5
  %69 = srem i64 %67, %68
  %70 = load i64, ptr @m, align 8, !tbaa !5
  %71 = load i64, ptr @phi, align 8, !tbaa !5
  %72 = srem i64 %70, %71
  %73 = load i64, ptr @n, align 8, !tbaa !5
  %74 = load i64, ptr @phi, align 8, !tbaa !5
  %75 = call noundef i64 @_Z7mod_powxxx(i64 noundef %72, i64 noundef %73, i64 noundef %74)
  %76 = load i64, ptr @p, align 8, !tbaa !5
  %77 = call noundef i64 @_Z7mod_powxxx(i64 noundef %69, i64 noundef %75, i64 noundef %76)
  store i64 %77, ptr %2, align 8, !tbaa !5
  store i32 3, ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 1), align 4, !tbaa !14
  store i32 3, ptr @A, align 8, !tbaa !16
  %78 = load i64, ptr @m, align 8, !tbaa !5
  %79 = load i64, ptr @phi, align 8, !tbaa !5
  %80 = srem i64 %78, %79
  store i64 %80, ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 2), i64 0, i64 2), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 2), i64 0, i64 1), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 2), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([3 x i64], ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #7
  %81 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNK6Matrix3powEx(ptr dead_on_unwind writable sret(%struct.Matrix) align 8 %4, ptr noundef nonnull align 8 dereferenceable(80) @A, i64 noundef %81)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @A, ptr align 8 %4, i64 80, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #7
  %82 = load i64, ptr %2, align 8, !tbaa !5
  %83 = load i64, ptr @q, align 8, !tbaa !5
  %84 = load i64, ptr @p, align 8, !tbaa !5
  %85 = srem i64 %83, %84
  %86 = load i64, ptr getelementptr inbounds ([3 x [3 x i64]], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 2), align 8, !tbaa !5
  %87 = load i64, ptr @p, align 8, !tbaa !5
  %88 = call noundef i64 @_Z7mod_powxxx(i64 noundef %85, i64 noundef %86, i64 noundef %87)
  %89 = load i64, ptr @p, align 8, !tbaa !5
  %90 = call noundef i64 @_Z7mod_mulxxx(i64 noundef %82, i64 noundef %88, i64 noundef %89)
  store i64 %90, ptr %2, align 8, !tbaa !5
  %91 = load i64, ptr %2, align 8, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %91)
  br label %61, !llvm.loop !19

93:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  ret i32 0
}

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z7mod_powxxx(i64 noundef, i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Matrix3powEx(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7mod_mulxxx(i64 noundef, i64 noundef, i64 noundef) #6

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


; 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 { i32, i32, [3 x [3 x i64]] }

@t = external dso_local global i32, align 4
@p = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@x = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@phi = external dso_local local_unnamed_addr global i64, align 8
@A = external dso_local global %struct.Matrix, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Matrix, align 8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t, ptr noundef nonnull @p)
  %3 = load i64, ptr @p, align 8, !tbaa !5
  store i64 %3, ptr @phi, align 8, !tbaa !5
  %.not19 = icmp slt i64 %3, 4
  br i1 %.not19, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.loopexit, %0
  %4 = phi i64 [ %3, %0 ], [ %15, %.loopexit ]
  %.017.lcssa = phi i64 [ %3, %0 ], [ %.2, %.loopexit ]
  %5 = icmp sgt i64 %.017.lcssa, 1
  br i1 %5, label %17, label %20

.lr.ph:                                           ; preds = %0, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 2, %0 ]
  %.01720 = phi i64 [ %.2, %.loopexit ], [ %3, %0 ]
  %6 = phi i64 [ %15, %.loopexit ], [ %3, %0 ]
  %7 = urem i64 %.01720, %indvars.iv
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %9, label %.loopexit

9:                                                ; preds = %.lr.ph
  %10 = sdiv i64 %6, %indvars.iv
  %11 = sub nsw i64 %6, %10
  store i64 %11, ptr @phi, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %12, %9
  %.017.pn = phi i64 [ %.01720, %9 ], [ %.1, %12 ]
  %.1 = sdiv i64 %.017.pn, %indvars.iv
  %13 = srem i64 %.1, %indvars.iv
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %12, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %12, %.lr.ph
  %15 = phi i64 [ %6, %.lr.ph ], [ %11, %12 ]
  %.2 = phi i64 [ %.01720, %.lr.ph ], [ %.1, %12 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = mul nuw nsw i64 %indvars.iv.next, %indvars.iv.next
  %.not = icmp sgt i64 %16, %.2
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

17:                                               ; preds = %._crit_edge
  %18 = sdiv i64 %4, %.017.lcssa
  %19 = sub nsw i64 %4, %18
  store i64 %19, ptr @phi, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %17, %._crit_edge
  %21 = load i32, ptr @t, align 4, !tbaa !12
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr @t, align 4, !tbaa !12
  %.not1822 = icmp eq i32 %21, 0
  br i1 %.not1822, label %._crit_edge25, label %.lr.ph24

.lr.ph24:                                         ; preds = %20, %.lr.ph24
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @m, ptr noundef nonnull @x, ptr noundef nonnull @q, ptr noundef nonnull @n)
  %24 = load i64, ptr @x, align 8, !tbaa !5
  %25 = load i64, ptr @p, align 8, !tbaa !5
  %26 = srem i64 %24, %25
  %27 = load i64, ptr @m, align 8, !tbaa !5
  %28 = load i64, ptr @phi, align 8, !tbaa !5
  %29 = srem i64 %27, %28
  %30 = load i64, ptr @n, align 8, !tbaa !5
  %31 = call noundef i64 @_Z7mod_powxxx(i64 noundef %29, i64 noundef %30, i64 noundef %28)
  %32 = load i64, ptr @p, align 8, !tbaa !5
  %33 = call noundef i64 @_Z7mod_powxxx(i64 noundef %26, i64 noundef %31, i64 noundef %32)
  store i32 3, ptr getelementptr inbounds (i8, ptr @A, i64 4), align 4, !tbaa !14
  store i32 3, ptr @A, align 8, !tbaa !16
  %34 = load i64, ptr @m, align 8, !tbaa !5
  %35 = load i64, ptr @phi, align 8, !tbaa !5
  %36 = srem i64 %34, %35
  store i64 %36, ptr getelementptr inbounds (i8, ptr @A, i64 8), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @A, i64 72), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @A, i64 64), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @A, i64 56), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @A, i64 40), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @A, i64 32), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #7
  %37 = load i64, ptr @n, align 8, !tbaa !5
  call void @_ZNK6Matrix3powEx(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 8 %1, ptr noundef nonnull align 8 dereferenceable(80) @A, i64 noundef %37)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) @A, ptr noundef nonnull align 8 dereferenceable(80) %1, i64 80, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #7
  %38 = load i64, ptr @q, align 8, !tbaa !5
  %39 = load i64, ptr @p, align 8, !tbaa !5
  %40 = srem i64 %38, %39
  %41 = load i64, ptr getelementptr inbounds (i8, ptr @A, i64 56), align 8, !tbaa !5
  %42 = call noundef i64 @_Z7mod_powxxx(i64 noundef %40, i64 noundef %41, i64 noundef %39)
  %43 = load i64, ptr @p, align 8, !tbaa !5
  %44 = call noundef i64 @_Z7mod_mulxxx(i64 noundef %33, i64 noundef %42, i64 noundef %43)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %44)
  %46 = load i32, ptr @t, align 4, !tbaa !12
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr @t, align 4, !tbaa !12
  %.not18 = icmp eq i32 %46, 0
  br i1 %.not18, label %._crit_edge25, label %.lr.ph24, !llvm.loop !19

._crit_edge25:                                    ; preds = %.lr.ph24, %20
  ret i32 0
}

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z7mod_powxxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Matrix3powEx(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 8, ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7mod_mulxxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 4}
!15 = !{!"_ZTS6Matrix", !13, i64 0, !13, i64 4, !7, i64 8}
!16 = !{!15, !13, i64 0}
!17 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 72, !18}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !10}


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