; LLVM IR from gunrock/gunrock :: include/gunrock/io/detail/mmio.ll (Z15mm_read_mtx_crdPcPmS0_S0_PS0_S1_PPdPA4_c)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@stdin = external global ptr, align 8

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_banner(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_mtx_crd_size(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

declare i32 @fclose(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mm_is_valid(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_mtx_crd_data(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15mm_read_mtx_crdPcPmS0_S0_PS0_S1_PPdPA4_c(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str.27) #7
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %8
  %25 = load ptr, ptr @stdin, align 8, !tbaa !5
  store ptr %25, ptr %19, align 8, !tbaa !5
  br label %32

26:                                               ; preds = %8
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = call noalias ptr @fopen(ptr noundef %27, ptr noundef @.str)
  store ptr %28, ptr %19, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  store i32 11, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

31:                                               ; preds = %26
  br label %32

32:                                               ; preds = %31, %24
  %33 = load ptr, ptr %19, align 8, !tbaa !5
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  %35 = call i32 @mm_read_banner(ptr noundef %33, ptr noundef %34)
  store i32 %35, ptr %18, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  %38 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

39:                                               ; preds = %32
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = getelementptr inbounds [4 x i8], ptr %40, i64 0, i64 0
  %42 = call i32 @mm_is_valid(ptr noundef %41)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %56

44:                                               ; preds = %39
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  %46 = getelementptr inbounds [4 x i8], ptr %45, i64 0, i64 1
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp eq i32 %48, 67
  br i1 %49, label %50, label %56

50:                                               ; preds = %44
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  %52 = getelementptr inbounds [4 x i8], ptr %51, i64 0, i64 0
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = icmp eq i32 %54, 77
  br i1 %55, label %57, label %56

56:                                               ; preds = %50, %44, %39
  store i32 15, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

57:                                               ; preds = %50
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = call i32 @mm_read_mtx_crd_size(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61)
  store i32 %62, ptr %18, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %57
  %65 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %65, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

66:                                               ; preds = %57
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !12
  %69 = mul i64 %68, 8
  %70 = call noalias ptr @malloc(i64 noundef %69) #8
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %70, ptr %71, align 8, !tbaa !5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !12
  %74 = mul i64 %73, 8
  %75 = call noalias ptr @malloc(i64 noundef %74) #8
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %75, ptr %76, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr null, ptr %77, align 8, !tbaa !5
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = getelementptr inbounds [4 x i8], ptr %78, i64 0, i64 2
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 67
  br i1 %82, label %83, label %111

83:                                               ; preds = %66
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !12
  %86 = mul i64 %85, 2
  %87 = mul i64 %86, 8
  %88 = call noalias ptr @malloc(i64 noundef %87) #8
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %88, ptr %89, align 8, !tbaa !5
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !12
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !12
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !12
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds [4 x i8], ptr %103, i64 0, i64 0
  %105 = call i32 @mm_read_mtx_crd_data(ptr noundef %90, i64 noundef %92, i64 noundef %94, i64 noundef %96, ptr noundef %98, ptr noundef %100, ptr noundef %102, ptr noundef %104)
  store i32 %105, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %83
  %109 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %109, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

110:                                              ; preds = %83
  br label %174

111:                                              ; preds = %66
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = getelementptr inbounds [4 x i8], ptr %112, i64 0, i64 2
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %115, 82
  br i1 %116, label %117, label %144

117:                                              ; preds = %111
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !12
  %120 = mul i64 %119, 8
  %121 = call noalias ptr @malloc(i64 noundef %120) #8
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %121, ptr %122, align 8, !tbaa !5
  %123 = load ptr, ptr %19, align 8, !tbaa !5
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !12
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load i64, ptr %126, align 8, !tbaa !12
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !12
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = getelementptr inbounds [4 x i8], ptr %136, i64 0, i64 0
  %138 = call i32 @mm_read_mtx_crd_data(ptr noundef %123, i64 noundef %125, i64 noundef %127, i64 noundef %129, ptr noundef %131, ptr noundef %133, ptr noundef %135, ptr noundef %137)
  store i32 %138, ptr %18, align 4, !tbaa !9
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %143

141:                                              ; preds = %117
  %142 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %142, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

143:                                              ; preds = %117
  br label %173

144:                                              ; preds = %111
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = getelementptr inbounds [4 x i8], ptr %145, i64 0, i64 2
  %147 = load i8, ptr %146, align 1, !tbaa !11
  %148 = sext i8 %147 to i32
  %149 = icmp eq i32 %148, 80
  br i1 %149, label %150, label %172

150:                                              ; preds = %144
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !12
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = load i64, ptr %154, align 8, !tbaa !12
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !12
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = getelementptr inbounds [4 x i8], ptr %164, i64 0, i64 0
  %166 = call i32 @mm_read_mtx_crd_data(ptr noundef %151, i64 noundef %153, i64 noundef %155, i64 noundef %157, ptr noundef %159, ptr noundef %161, ptr noundef %163, ptr noundef %165)
  store i32 %166, ptr %18, align 4, !tbaa !9
  %167 = load i32, ptr %18, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %171

169:                                              ; preds = %150
  %170 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %170, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

171:                                              ; preds = %150
  br label %172

172:                                              ; preds = %171, %144
  br label %173

173:                                              ; preds = %172, %143
  br label %174

174:                                              ; preds = %173, %110
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr @stdin, align 8, !tbaa !5
  %177 = icmp ne ptr %175, %176
  br i1 %177, label %178, label %181

178:                                              ; preds = %174
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = call i32 @fclose(ptr noundef %179)
  br label %181

181:                                              ; preds = %178, %174
  store i32 0, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %182

182:                                              ; preds = %181, %169, %141, %108, %64, %56, %37, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %183 = load i32, ptr %9, align 4
  ret i32 %183
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nounwind 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 = { 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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_banner(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_mtx_crd_size(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mm_is_valid(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mm_read_mtx_crd_data(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15mm_read_mtx_crdPcPmS0_S0_PS0_S1_PPdPA4_c(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7) local_unnamed_addr #1 {
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.27) #5
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %8
  %12 = load ptr, ptr @stdin, align 8, !tbaa !5
  br label %16

13:                                               ; preds = %8
  %14 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %61, label %16

16:                                               ; preds = %13, %11
  %.0 = phi ptr [ %12, %11 ], [ %14, %13 ]
  %17 = tail call i32 @mm_read_banner(ptr noundef %.0, ptr noundef %7)
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %61

18:                                               ; preds = %16
  %19 = tail call i32 @mm_is_valid(ptr noundef %7)
  %.not65 = icmp eq i32 %19, 0
  br i1 %.not65, label %61, label %20

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %7, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = icmp eq i8 %22, 67
  br i1 %23, label %24, label %61

24:                                               ; preds = %20
  %25 = load i8, ptr %7, align 1, !tbaa !9
  %26 = icmp eq i8 %25, 77
  br i1 %26, label %27, label %61

27:                                               ; preds = %24
  %28 = tail call i32 @mm_read_mtx_crd_size(ptr noundef %.0, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  %.not66 = icmp eq i32 %28, 0
  br i1 %.not66, label %29, label %61

29:                                               ; preds = %27
  %30 = load i64, ptr %3, align 8, !tbaa !10
  %31 = shl i64 %30, 3
  %32 = tail call noalias ptr @malloc(i64 noundef %31) #6
  store ptr %32, ptr %4, align 8, !tbaa !5
  %33 = tail call noalias ptr @malloc(i64 noundef %31) #6
  store ptr %33, ptr %5, align 8, !tbaa !5
  store ptr null, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %7, i64 2
  %35 = load i8, ptr %34, align 1, !tbaa !9
  switch i8 %35, label %57 [
    i8 67, label %36
    i8 82, label %44
    i8 80, label %51
  ]

36:                                               ; preds = %29
  %37 = shl i64 %30, 4
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #6
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %1, align 8, !tbaa !10
  %40 = load i64, ptr %2, align 8, !tbaa !10
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = tail call i32 @mm_read_mtx_crd_data(ptr noundef %.0, i64 noundef %39, i64 noundef %40, i64 noundef %30, ptr noundef %41, ptr noundef %42, ptr noundef %38, ptr noundef nonnull %7)
  %.not69 = icmp eq i32 %43, 0
  br i1 %.not69, label %57, label %61

44:                                               ; preds = %29
  %45 = tail call noalias ptr @malloc(i64 noundef %31) #6
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = load i64, ptr %1, align 8, !tbaa !10
  %47 = load i64, ptr %2, align 8, !tbaa !10
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = tail call i32 @mm_read_mtx_crd_data(ptr noundef %.0, i64 noundef %46, i64 noundef %47, i64 noundef %30, ptr noundef %48, ptr noundef %49, ptr noundef %45, ptr noundef nonnull %7)
  %.not68 = icmp eq i32 %50, 0
  br i1 %.not68, label %57, label %61

51:                                               ; preds = %29
  %52 = load i64, ptr %1, align 8, !tbaa !10
  %53 = load i64, ptr %2, align 8, !tbaa !10
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = tail call i32 @mm_read_mtx_crd_data(ptr noundef %.0, i64 noundef %52, i64 noundef %53, i64 noundef %30, ptr noundef %54, ptr noundef %55, ptr noundef null, ptr noundef nonnull %7)
  %.not67 = icmp eq i32 %56, 0
  br i1 %.not67, label %57, label %61

57:                                               ; preds = %29, %44, %51, %36
  %58 = load ptr, ptr @stdin, align 8, !tbaa !5
  %.not70 = icmp eq ptr %.0, %58
  br i1 %.not70, label %61, label %59

59:                                               ; preds = %57
  %60 = tail call i32 @fclose(ptr noundef %.0)
  br label %61

61:                                               ; preds = %57, %59, %51, %44, %36, %27, %18, %20, %24, %16, %13
  %.057 = phi i32 [ 11, %13 ], [ %17, %16 ], [ 15, %24 ], [ 15, %20 ], [ 15, %18 ], [ %28, %27 ], [ %43, %36 ], [ %50, %44 ], [ %56, %51 ], [ 0, %59 ], [ 0, %57 ]
  ret i32 %.057
}

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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { nounwind 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass