; LLVM IR from ayazhassan/RT-CUDA-GUI-Development :: RTCUDAGUI (mmio)

; 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.25 = 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: nounwind uwtable
declare dso_local i32 @mm_read_banner(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind 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

declare i32 @fclose(ptr noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mm_read_mtx_crd(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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str.25) #6
  %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 %186

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 %186

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 %186

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 %186

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

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

111:                                              ; preds = %85
  %112 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %112, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %186

113:                                              ; preds = %85
  br label %178

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

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

145:                                              ; preds = %120
  %146 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %146, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %186

147:                                              ; preds = %120
  br label %177

148:                                              ; preds = %114
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = getelementptr inbounds [4 x i8], ptr %149, i64 0, i64 2
  %151 = load i8, ptr %150, align 1, !tbaa !11
  %152 = sext i8 %151 to i32
  %153 = icmp eq i32 %152, 80
  br i1 %153, label %154, label %176

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

173:                                              ; preds = %154
  %174 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %174, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %186

175:                                              ; preds = %154
  br label %176

176:                                              ; preds = %175, %148
  br label %177

177:                                              ; preds = %176, %147
  br label %178

178:                                              ; preds = %177, %113
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = load ptr, ptr @stdin, align 8, !tbaa !5
  %181 = icmp ne ptr %179, %180
  br i1 %181, label %182, label %185

182:                                              ; preds = %178
  %183 = load ptr, ptr %19, align 8, !tbaa !5
  %184 = call i32 @fclose(ptr noundef %183)
  br label %185

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

186:                                              ; preds = %185, %173, %145, %111, %64, %56, %37, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %187 = load i32, ptr %9, align 4
  ret i32 %187
}

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 = { 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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !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.25 = 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: nounwind uwtable
declare dso_local i32 @mm_read_banner(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind 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: nounwind uwtable
declare dso_local i32 @mm_is_valid(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mm_read_mtx_crd(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.25) #4
  %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 %65, 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 %65

18:                                               ; preds = %16
  %19 = tail call i32 @mm_is_valid(ptr noundef %7)
  %.not65 = icmp eq i32 %19, 0
  br i1 %.not65, label %65, 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 %65

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

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 %65

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

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

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

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

61:                                               ; preds = %29, %47, %55, %37
  %62 = load ptr, ptr @stdin, align 8, !tbaa !5
  %.not70 = icmp eq ptr %.0, %62
  br i1 %.not70, label %65, label %63

63:                                               ; preds = %61
  %64 = tail call i32 @fclose(ptr noundef %.0)
  br label %65

65:                                               ; preds = %61, %63, %55, %47, %37, %27, %18, %20, %24, %16, %13
  %.057 = phi i32 [ 11, %13 ], [ %17, %16 ], [ 15, %24 ], [ 15, %20 ], [ 15, %18 ], [ %28, %27 ], [ %46, %37 ], [ %54, %47 ], [ %60, %55 ], [ 0, %63 ], [ 0, %61 ]
  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 = { 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 #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 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 #4 = { nounwind willreturn memory(read) }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


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