; LLVM IR from MakeContributions/DSA :: algorithms/CPlusPlus/Graphs/dijkstra.ll (Z16getExampleMatrixRPiRm)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) #4

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16getExampleMatrixRPiRm(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #6 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 4, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %10 = load i64, ptr %5, align 8, !tbaa !9
  %11 = load i64, ptr %5, align 8, !tbaa !9
  %12 = mul i64 %10, %11
  %13 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %12, i64 4)
  %14 = extractvalue { i64, i1 } %13, 1
  %15 = extractvalue { i64, i1 } %13, 0
  %16 = select i1 %14, i64 -1, i64 %15
  %17 = call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #8
  store ptr %17, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %18, i64 noundef %19, i64 noundef 0, i64 noundef 0, i32 noundef 0)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %20, i64 noundef %21, i64 noundef 0, i64 noundef 1, i32 noundef 0)
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %22, i64 noundef %23, i64 noundef 0, i64 noundef 2, i32 noundef 3)
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %24, i64 noundef %25, i64 noundef 0, i64 noundef 3, i32 noundef 1)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %26, i64 noundef %27, i64 noundef 1, i64 noundef 0, i32 noundef 0)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %28, i64 noundef %29, i64 noundef 1, i64 noundef 1, i32 noundef 0)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %30, i64 noundef %31, i64 noundef 1, i64 noundef 2, i32 noundef 0)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %32, i64 noundef %33, i64 noundef 1, i64 noundef 3, i32 noundef 5)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %34, i64 noundef %35, i64 noundef 2, i64 noundef 0, i32 noundef 3)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %36, i64 noundef %37, i64 noundef 2, i64 noundef 1, i32 noundef 0)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %38, i64 noundef %39, i64 noundef 2, i64 noundef 2, i32 noundef 0)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %40, i64 noundef %41, i64 noundef 2, i64 noundef 3, i32 noundef 1)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %42, i64 noundef %43, i64 noundef 3, i64 noundef 0, i32 noundef 1)
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %44, i64 noundef %45, i64 noundef 3, i64 noundef 1, i32 noundef 5)
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %46, i64 noundef %47, i64 noundef 3, i64 noundef 2, i32 noundef 1)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef %48, i64 noundef %49, i64 noundef 3, i64 noundef 3, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %75, %2
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = load i64, ptr %5, align 8, !tbaa !9
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %78

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %70, %55
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %73

61:                                               ; preds = %56
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i64, ptr %5, align 8, !tbaa !9
  %64 = load i64, ptr %7, align 8, !tbaa !9
  %65 = load i64, ptr %9, align 8, !tbaa !9
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef %62, i64 noundef %63, i64 noundef %64, i64 noundef %65)
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @.str.6)
  br label %70

70:                                               ; preds = %61
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = add i64 %71, 1
  store i64 %72, ptr %9, align 8, !tbaa !9
  br label %56, !llvm.loop !13

73:                                               ; preds = %60
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  br label %75

75:                                               ; preds = %73
  %76 = load i64, ptr %7, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %7, align 8, !tbaa !9
  br label %50, !llvm.loop !15

78:                                               ; preds = %54
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %80 = load i64, ptr %5, align 8, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  store i64 %80, ptr %81, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %82, ptr %83, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin 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 #4 = { 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 #5 = { "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16getExampleMatrixRPiRm(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %0, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %1) local_unnamed_addr #4 {
.preheader:
  %2 = tail call noalias noundef nonnull dereferenceable(64) ptr @_Znam(i64 noundef 64) #5
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 0, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 1, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 2, i32 noundef 3)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 3, i32 noundef 1)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 0, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 1, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 2, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 3, i32 noundef 5)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 0, i32 noundef 3)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 1, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 2, i32 noundef 0)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 3, i32 noundef 1)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 0, i32 noundef 1)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 1, i32 noundef 5)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 2, i32 noundef 1)
  tail call void @_Z16setMatrixElementIiEvPT_mmmS0_(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 3, i32 noundef 0)
  %3 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 0)
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %4)
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.6)
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 1)
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %8)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.6)
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 2)
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %12)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.6)
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 0, i64 noundef 3)
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %16)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.6)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 0)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %21)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.6)
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 1)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %25)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str.6)
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 2)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %29)
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.6)
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 1, i64 noundef 3)
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %33)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @.str.6)
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 0)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %38)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.6)
  %41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 1)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.6)
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 2)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %46)
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @.str.6)
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 2, i64 noundef 3)
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %50)
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str.6)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 0)
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %55)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.6)
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 1)
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %59)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @.str.6)
  %62 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 2)
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %63)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.6)
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef nonnull %2, i64 noundef 4, i64 noundef 3, i64 noundef 3)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %67)
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.6)
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  store i64 4, ptr %1, align 8, !tbaa !9
  store ptr %2, ptr %0, align 8, !tbaa !11
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_Z16getMatrixElementIiERT_PS0_mmm(ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { nobuiltin 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 = { 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 #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 = { 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 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass