; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_MatNd)

; 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._MatNd = type { ptr, i32, i32, i32, i8 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@__func__.MatNd_printThreeArrays = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

declare void @print_trace() #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @MatNd_printThreeArrays(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [16 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  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 16, ptr %11) #5
  br label %12

12:                                               ; preds = %4
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._MatNd, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._MatNd, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp eq i32 %15, %18
  br i1 %19, label %33, label %20

20:                                               ; preds = %12
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.MatNd_printThreeArrays, i32 noundef 417, ptr noundef @.str.17) #5
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._MatNd, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._MatNd, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.18, i32 noundef %26, i32 noundef %29) #5
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.4) #5
  call void @print_trace()
  call void @exit(i32 noundef 1) #6
  unreachable

33:                                               ; preds = %12
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._MatNd, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._MatNd, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !11
  %43 = icmp eq i32 %39, %42
  br i1 %43, label %57, label %44

44:                                               ; preds = %36
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.MatNd_printThreeArrays, i32 noundef 418, ptr noundef @.str.21) #5
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._MatNd, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._MatNd, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !11
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.18, i32 noundef %50, i32 noundef %53) #5
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4) #5
  call void @print_trace()
  call void @exit(i32 noundef 1) #6
  unreachable

57:                                               ; preds = %36
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %60, i64 noundef 16, ptr noundef @.str.19, i32 noundef %61) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %130, %59
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._MatNd, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !11
  %68 = icmp ult i32 %64, %67
  br i1 %68, label %69, label %133

69:                                               ; preds = %63
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %84, %69
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._MatNd, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 4, !tbaa !14
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %76, label %87

76:                                               ; preds = %70
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = call double @MatNd_get(ptr noundef %79, i32 noundef %80, i32 noundef %81)
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef %78, double noundef %82) #5
  br label %84

84:                                               ; preds = %76
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !9
  br label %70, !llvm.loop !15

87:                                               ; preds = %70
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.20) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %104, %87
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._MatNd, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !14
  %95 = icmp ult i32 %91, %94
  br i1 %95, label %96, label %107

96:                                               ; preds = %90
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = call double @MatNd_get(ptr noundef %99, i32 noundef %100, i32 noundef %101)
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef %98, double noundef %102) #5
  br label %104

104:                                              ; preds = %96
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %10, align 4, !tbaa !9
  br label %90, !llvm.loop !17

107:                                              ; preds = %90
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.20) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %124, %107
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._MatNd, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = icmp ult i32 %111, %114
  br i1 %115, label %116, label %127

116:                                              ; preds = %110
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = call double @MatNd_get(ptr noundef %119, i32 noundef %120, i32 noundef %121)
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef %118, double noundef %122) #5
  br label %124

124:                                              ; preds = %116
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = add i32 %125, 1
  store i32 %126, ptr %10, align 4, !tbaa !9
  br label %110, !llvm.loop !18

127:                                              ; preds = %110
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.4) #5
  br label %130

130:                                              ; preds = %127
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = add i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !9
  br label %63, !llvm.loop !19

133:                                              ; preds = %63
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.4) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  ret void
}

attributes #0 = { 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 #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 = { noreturn 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_MatNd", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!12, !10, i64 12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@__func__.MatNd_printThreeArrays = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

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

declare void @print_trace() local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @MatNd_get(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @MatNd_printThreeArrays(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i32 %7, %9
  br i1 %10, label %20, label %11

11:                                               ; preds = %4
  %12 = load ptr, ptr @stderr, align 8, !tbaa !12
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_printThreeArrays, i32 noundef 417, ptr noundef nonnull @.str.17) #6
  %14 = load ptr, ptr @stderr, align 8, !tbaa !12
  %15 = load i32, ptr %6, align 8, !tbaa !5
  %16 = load i32, ptr %8, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.18, i32 noundef %15, i32 noundef %16) #6
  %18 = load ptr, ptr @stderr, align 8, !tbaa !12
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.4) #6
  tail call void @print_trace() #5
  tail call void @exit(i32 noundef 1) #7
  unreachable

20:                                               ; preds = %4
  %21 = getelementptr inbounds i8, ptr %2, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !5
  %23 = icmp eq i32 %7, %22
  br i1 %23, label %33, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr @stderr, align 8, !tbaa !12
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_printThreeArrays, i32 noundef 418, ptr noundef nonnull @.str.21) #6
  %27 = load ptr, ptr @stderr, align 8, !tbaa !12
  %28 = load i32, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %21, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.18, i32 noundef %28, i32 noundef %29) #6
  %31 = load ptr, ptr @stderr, align 8, !tbaa !12
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.4) #6
  tail call void @print_trace() #5
  tail call void @exit(i32 noundef 1) #7
  unreachable

33:                                               ; preds = %20
  %34 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.19, i32 noundef %3) #5
  %35 = load i32, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %._crit_edge41, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %33
  %36 = getelementptr inbounds i8, ptr %0, i64 12
  %37 = getelementptr inbounds i8, ptr %1, i64 12
  %38 = getelementptr inbounds i8, ptr %2, i64 12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge39
  %.02940 = phi i32 [ 0, %.preheader.lr.ph ], [ %66, %._crit_edge39 ]
  %39 = load i32, ptr %36, align 4, !tbaa !13
  %.not42 = icmp eq i32 %39, 0
  br i1 %.not42, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.031 = phi i32 [ %43, %.lr.ph ], [ 0, %.preheader ]
  %40 = load ptr, ptr @stderr, align 8, !tbaa !12
  %41 = tail call double @MatNd_get(ptr noundef nonnull %0, i32 noundef %.02940, i32 noundef %.031)
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull %5, double noundef %41) #6
  %43 = add nuw i32 %.031, 1
  %44 = load i32, ptr %36, align 4, !tbaa !13
  %45 = icmp ult i32 %43, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %46 = load ptr, ptr @stderr, align 8, !tbaa !12
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.20) #6
  %48 = load i32, ptr %37, align 4, !tbaa !13
  %.not43 = icmp eq i32 %48, 0
  br i1 %.not43, label %._crit_edge35, label %.lr.ph34

.lr.ph34:                                         ; preds = %._crit_edge, %.lr.ph34
  %.132 = phi i32 [ %52, %.lr.ph34 ], [ 0, %._crit_edge ]
  %49 = load ptr, ptr @stderr, align 8, !tbaa !12
  %50 = tail call double @MatNd_get(ptr noundef nonnull %1, i32 noundef %.02940, i32 noundef %.132)
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull %5, double noundef %50) #6
  %52 = add nuw i32 %.132, 1
  %53 = load i32, ptr %37, align 4, !tbaa !13
  %54 = icmp ult i32 %52, %53
  br i1 %54, label %.lr.ph34, label %._crit_edge35, !llvm.loop !16

._crit_edge35:                                    ; preds = %.lr.ph34, %._crit_edge
  %55 = load ptr, ptr @stderr, align 8, !tbaa !12
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.20) #6
  %57 = load i32, ptr %38, align 4, !tbaa !13
  %.not44 = icmp eq i32 %57, 0
  br i1 %.not44, label %._crit_edge39, label %.lr.ph38

.lr.ph38:                                         ; preds = %._crit_edge35, %.lr.ph38
  %.236 = phi i32 [ %61, %.lr.ph38 ], [ 0, %._crit_edge35 ]
  %58 = load ptr, ptr @stderr, align 8, !tbaa !12
  %59 = tail call double @MatNd_get(ptr noundef nonnull %2, i32 noundef %.02940, i32 noundef %.236)
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull %5, double noundef %59) #6
  %61 = add nuw i32 %.236, 1
  %62 = load i32, ptr %38, align 4, !tbaa !13
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %.lr.ph38, label %._crit_edge39, !llvm.loop !17

._crit_edge39:                                    ; preds = %.lr.ph38, %._crit_edge35
  %64 = load ptr, ptr @stderr, align 8, !tbaa !12
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.4) #6
  %66 = add nuw i32 %.02940, 1
  %67 = load i32, ptr %6, align 8, !tbaa !5
  %68 = icmp ult i32 %66, %67
  br i1 %68, label %.preheader, label %._crit_edge41, !llvm.loop !18

._crit_edge41:                                    ; preds = %._crit_edge39, %33
  %69 = load ptr, ptr @stderr, align 8, !tbaa !12
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret void
}

attributes #0 = { 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 #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 = { noreturn 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { cold nounwind }
attributes #7 = { noreturn 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, !10, i64 8}
!6 = !{!"_MatNd", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 12}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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