; 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_printTwoArraysDiff = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 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_printTwoArraysDiff(ptr noundef %0, ptr noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [16 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %10 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %10, i64 noundef 16, ptr noundef @.str.19, i32 noundef %11) #5
  br label %13

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

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

34:                                               ; preds = %13
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._MatNd, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._MatNd, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !14
  %44 = icmp eq i32 %40, %43
  br i1 %44, label %58, label %45

45:                                               ; preds = %37
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.MatNd_printTwoArraysDiff, i32 noundef 459, ptr noundef @.str.22) #5
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._MatNd, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !14
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._MatNd, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.23, i32 noundef %51, i32 noundef %54) #5
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.4) #5
  call void @print_trace()
  call void @exit(i32 noundef 1) #6
  unreachable

58:                                               ; preds = %37
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %133, %60
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._MatNd, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = icmp ult i32 %62, %65
  br i1 %66, label %67, label %136

67:                                               ; preds = %61
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %82, %67
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._MatNd, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = icmp ult i32 %69, %72
  br i1 %73, label %74, label %85

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

82:                                               ; preds = %74
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !9
  br label %68, !llvm.loop !15

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

88:                                               ; preds = %102, %85
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._MatNd, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !14
  %93 = icmp ult i32 %89, %92
  br i1 %93, label %94, label %105

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

102:                                              ; preds = %94
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = add i32 %103, 1
  store i32 %104, ptr %8, align 4, !tbaa !9
  br label %88, !llvm.loop !17

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

108:                                              ; preds = %127, %105
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._MatNd, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !14
  %113 = icmp ult i32 %109, %112
  br i1 %113, label %114, label %130

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

127:                                              ; preds = %114
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = add i32 %128, 1
  store i32 %129, ptr %8, align 4, !tbaa !9
  br label %108, !llvm.loop !18

130:                                              ; preds = %108
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.4) #5
  br label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = add i32 %134, 1
  store i32 %135, ptr %7, align 4, !tbaa !9
  br label %61, !llvm.loop !19

136:                                              ; preds = %61
  %137 = load ptr, ptr @stderr, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  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_printTwoArraysDiff = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [32 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_printTwoArraysDiff(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #4 {
  %4 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %5 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 16, ptr noundef nonnull @.str.19, i32 noundef %2) #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 = %3
  %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_printTwoArraysDiff, i32 noundef 458, 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 = %3
  %21 = getelementptr inbounds i8, ptr %0, i64 12
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %1, i64 12
  %24 = load i32, ptr %23, align 4, !tbaa !13
  %25 = icmp eq i32 %22, %24
  br i1 %25, label %.preheader33, label %26

.preheader33:                                     ; preds = %20
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %._crit_edge44, label %.preheader

26:                                               ; preds = %20
  %27 = load ptr, ptr @stderr, align 8, !tbaa !12
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_printTwoArraysDiff, i32 noundef 459, ptr noundef nonnull @.str.22) #6
  %29 = load ptr, ptr @stderr, align 8, !tbaa !12
  %30 = load i32, ptr %21, align 4, !tbaa !13
  %31 = load i32, ptr %23, align 4, !tbaa !13
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.23, i32 noundef %30, i32 noundef %31) #6
  %33 = load ptr, ptr @stderr, align 8, !tbaa !12
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.4) #6
  tail call void @print_trace() #5
  tail call void @exit(i32 noundef 1) #7
  unreachable

.preheader:                                       ; preds = %.preheader33, %._crit_edge42
  %.03243 = phi i32 [ %64, %._crit_edge42 ], [ 0, %.preheader33 ]
  %35 = load i32, ptr %21, align 4, !tbaa !13
  %.not45 = icmp eq i32 %35, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

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

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %42 = load ptr, ptr @stderr, align 8, !tbaa !12
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.20) #6
  %44 = load i32, ptr %23, align 4, !tbaa !13
  %.not46 = icmp eq i32 %44, 0
  br i1 %.not46, label %._crit_edge38, label %.lr.ph37

.lr.ph37:                                         ; preds = %._crit_edge, %.lr.ph37
  %.135 = phi i32 [ %48, %.lr.ph37 ], [ 0, %._crit_edge ]
  %45 = load ptr, ptr @stderr, align 8, !tbaa !12
  %46 = tail call double @MatNd_get(ptr noundef nonnull %1, i32 noundef %.03243, i32 noundef %.135)
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull %4, double noundef %46) #6
  %48 = add nuw i32 %.135, 1
  %49 = load i32, ptr %23, align 4, !tbaa !13
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %.lr.ph37, label %._crit_edge38, !llvm.loop !16

._crit_edge38:                                    ; preds = %.lr.ph37, %._crit_edge
  %51 = load ptr, ptr @stderr, align 8, !tbaa !12
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.20) #6
  %53 = load i32, ptr %23, align 4, !tbaa !13
  %.not47 = icmp eq i32 %53, 0
  br i1 %.not47, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %._crit_edge38, %.lr.ph41
  %.239 = phi i32 [ %59, %.lr.ph41 ], [ 0, %._crit_edge38 ]
  %54 = load ptr, ptr @stderr, align 8, !tbaa !12
  %55 = tail call double @MatNd_get(ptr noundef %0, i32 noundef %.03243, i32 noundef %.239)
  %56 = tail call double @MatNd_get(ptr noundef nonnull %1, i32 noundef %.03243, i32 noundef %.239)
  %57 = fsub double %55, %56
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull %4, double noundef %57) #6
  %59 = add nuw i32 %.239, 1
  %60 = load i32, ptr %23, align 4, !tbaa !13
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %.lr.ph41, label %._crit_edge42, !llvm.loop !17

._crit_edge42:                                    ; preds = %.lr.ph41, %._crit_edge38
  %62 = load ptr, ptr @stderr, align 8, !tbaa !12
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.4) #6
  %64 = add nuw i32 %.03243, 1
  %65 = load i32, ptr %6, align 8, !tbaa !5
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %.preheader, label %._crit_edge44, !llvm.loop !18

._crit_edge44:                                    ; preds = %._crit_edge42, %.preheader33
  %67 = load ptr, ptr @stderr, align 8, !tbaa !12
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #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,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass