; LLVM IR from huawei-noah/bolt :: compute/blas_enhance/src (mvm)

; 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.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #3

declare i32 @printf(ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @matrix_vector_multiply(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.TensorDesc) align 8 %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef byval(%struct.TensorDesc) align 8 %6, ptr noundef %7, ptr noundef %8, i32 noundef %9) #6 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.TensorDesc, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %struct.TensorDesc, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.TensorDesc, align 8
  %38 = alloca i32, align 4
  %39 = alloca i8, align 1
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %7, ptr %15, align 8, !tbaa !5
  store ptr %8, ptr %16, align 8, !tbaa !5
  store i32 %9, ptr %17, align 4, !tbaa !11
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %48

45:                                               ; preds = %10
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %57, label %48

48:                                               ; preds = %45, %10
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = icmp eq ptr null, %49
  br i1 %50, label %57, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = icmp eq ptr null, %52
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = icmp eq ptr null, %55
  br i1 %56, label %57, label %73

57:                                               ; preds = %54, %51, %48, %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !13
  %58 = load i32, ptr %18, align 4, !tbaa !13
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %72

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %61 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %19, align 4, !tbaa !9
  %63 = load i32, ptr %19, align 4, !tbaa !9
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %63)
  %65 = load ptr, ptr @stdout, align 8, !tbaa !5
  %66 = call i32 @fflush(ptr noundef %65)
  %67 = load i32, ptr %18, align 4, !tbaa !13
  %68 = call ptr @ee2str(i32 noundef %67)
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = call i32 @fflush(ptr noundef %70)
  call void @exit(i32 noundef 1) #8
  unreachable

72:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %73

73:                                               ; preds = %72, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %74 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %31, ptr noundef %20, ptr noundef %23, ptr noundef %26, ptr noundef %27)
  store i32 %74, ptr %30, align 4, !tbaa !13
  %75 = load i32, ptr %30, align 4, !tbaa !13
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %89

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %78 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %79 = trunc i64 %78 to i32
  store i32 %79, ptr %32, align 4, !tbaa !9
  %80 = load i32, ptr %32, align 4, !tbaa !9
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %80)
  %82 = load ptr, ptr @stdout, align 8, !tbaa !5
  %83 = call i32 @fflush(ptr noundef %82)
  %84 = load i32, ptr %30, align 4, !tbaa !13
  %85 = call ptr @ee2str(i32 noundef %84)
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %85)
  %87 = load ptr, ptr @stdout, align 8, !tbaa !5
  %88 = call i32 @fflush(ptr noundef %87)
  call void @exit(i32 noundef 1) #8
  unreachable

89:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %90 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8 %34, ptr noundef %21, ptr noundef %24, ptr noundef %28)
  store i32 %90, ptr %33, align 4, !tbaa !13
  %91 = load i32, ptr %33, align 4, !tbaa !13
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %105

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %94 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %35, align 4, !tbaa !9
  %96 = load i32, ptr %35, align 4, !tbaa !9
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %96)
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = call i32 @fflush(ptr noundef %98)
  %100 = load i32, ptr %33, align 4, !tbaa !13
  %101 = call ptr @ee2str(i32 noundef %100)
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %101)
  %103 = load ptr, ptr @stdout, align 8, !tbaa !5
  %104 = call i32 @fflush(ptr noundef %103)
  call void @exit(i32 noundef 1) #8
  unreachable

105:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %6, i64 92, i1 false), !tbaa.struct !15
  %106 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8 %37, ptr noundef %22, ptr noundef %25, ptr noundef %29)
  store i32 %106, ptr %36, align 4, !tbaa !13
  %107 = load i32, ptr %36, align 4, !tbaa !13
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %121

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %110 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %111 = trunc i64 %110 to i32
  store i32 %111, ptr %38, align 4, !tbaa !9
  %112 = load i32, ptr %38, align 4, !tbaa !9
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %112)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !5
  %115 = call i32 @fflush(ptr noundef %114)
  %116 = load i32, ptr %36, align 4, !tbaa !13
  %117 = call ptr @ee2str(i32 noundef %116)
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %117)
  %119 = load ptr, ptr @stdout, align 8, !tbaa !5
  %120 = call i32 @fflush(ptr noundef %119)
  call void @exit(i32 noundef 1) #8
  unreachable

121:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #7
  %122 = load i32, ptr %23, align 4, !tbaa !18
  %123 = icmp eq i32 %122, 13
  %124 = zext i1 %123 to i8
  store i8 %124, ptr %39, align 1, !tbaa !21
  %125 = load i8, ptr %39, align 1, !tbaa !21, !range !23, !noundef !24
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %128

127:                                              ; preds = %121
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27) #7
  br label %128

128:                                              ; preds = %127, %121
  %129 = load i32, ptr %26, align 4, !tbaa !9
  %130 = load i32, ptr %29, align 4, !tbaa !9
  %131 = icmp ne i32 %129, %130
  br i1 %131, label %136, label %132

132:                                              ; preds = %128
  %133 = load i32, ptr %27, align 4, !tbaa !9
  %134 = load i32, ptr %28, align 4, !tbaa !9
  %135 = icmp ne i32 %133, %134
  br i1 %135, label %136, label %152

136:                                              ; preds = %132, %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 2, ptr %40, align 4, !tbaa !13
  %137 = load i32, ptr %40, align 4, !tbaa !13
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %151

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %140 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %141 = trunc i64 %140 to i32
  store i32 %141, ptr %41, align 4, !tbaa !9
  %142 = load i32, ptr %41, align 4, !tbaa !9
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %142)
  %144 = load ptr, ptr @stdout, align 8, !tbaa !5
  %145 = call i32 @fflush(ptr noundef %144)
  %146 = load i32, ptr %40, align 4, !tbaa !13
  %147 = call ptr @ee2str(i32 noundef %146)
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %147)
  %149 = load ptr, ptr @stdout, align 8, !tbaa !5
  %150 = call i32 @fflush(ptr noundef %149)
  call void @exit(i32 noundef 1) #8
  unreachable

151:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %152

152:                                              ; preds = %151, %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 51, ptr %42, align 4, !tbaa !13
  %153 = load i32, ptr %17, align 4, !tbaa !11
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %156

155:                                              ; preds = %152
  br label %156

156:                                              ; preds = %155, %152
  %157 = load i32, ptr %42, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  ret i32 %157
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS4Arch", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !18, i64 8, i64 4, !9, i64 12, i64 80, !20}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}


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

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @matrix_vector_multiply(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef readnone %1, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %2, ptr noundef readnone %3, i32 noundef %4, ptr noundef readnone %5, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %6, ptr noundef readnone %7, ptr nocapture noundef readnone %8, i32 noundef %9) local_unnamed_addr #5 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = icmp ne i32 %4, 0
  %22 = icmp eq ptr %5, null
  %or.cond = and i1 %21, %22
  %23 = icmp eq ptr %1, null
  %or.cond3 = or i1 %23, %or.cond
  %24 = icmp eq ptr %3, null
  %or.cond5 = or i1 %24, %or.cond3
  %25 = icmp eq ptr %7, null
  %or.cond7 = or i1 %25, %or.cond5
  br i1 %or.cond7, label %26, label %36

26:                                               ; preds = %10
  %27 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %28 = trunc i64 %27 to i32
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %28)
  %30 = load ptr, ptr @stdout, align 8, !tbaa !5
  %31 = tail call i32 @fflush(ptr noundef %30)
  %32 = tail call ptr @ee2str(i32 noundef 1)
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %32)
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = tail call i32 @fflush(ptr noundef %34)
  tail call void @exit(i32 noundef 1) #7
  unreachable

36:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %37 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %48, label %38

38:                                               ; preds = %36
  %39 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %40 = trunc i64 %39 to i32
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %40)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 @fflush(ptr noundef %42)
  %44 = call ptr @ee2str(i32 noundef %37)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %44)
  %46 = load ptr, ptr @stdout, align 8, !tbaa !5
  %47 = call i32 @fflush(ptr noundef %46)
  call void @exit(i32 noundef 1) #7
  unreachable

48:                                               ; preds = %36
  %49 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %12, ptr noundef nonnull %15, ptr noundef nonnull %19)
  %.not31 = icmp eq i32 %49, 0
  br i1 %.not31, label %60, label %50

50:                                               ; preds = %48
  %51 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %52 = trunc i64 %51 to i32
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %52)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 @fflush(ptr noundef %54)
  %56 = call ptr @ee2str(i32 noundef %49)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %56)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = call i32 @fflush(ptr noundef %58)
  call void @exit(i32 noundef 1) #7
  unreachable

60:                                               ; preds = %48
  %61 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef nonnull %13, ptr noundef nonnull %16, ptr noundef nonnull %20)
  %.not32 = icmp eq i32 %61, 0
  br i1 %.not32, label %72, label %62

62:                                               ; preds = %60
  %63 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %64 = trunc i64 %63 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 @fflush(ptr noundef %66)
  %68 = call ptr @ee2str(i32 noundef %61)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = call i32 @fflush(ptr noundef %70)
  call void @exit(i32 noundef 1) #7
  unreachable

72:                                               ; preds = %60
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 13
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18) #6
  br label %76

76:                                               ; preds = %75, %72
  %77 = load i32, ptr %17, align 4, !tbaa !11
  %78 = load i32, ptr %20, align 4, !tbaa !11
  %.not33 = icmp eq i32 %77, %78
  br i1 %.not33, label %79, label %82

79:                                               ; preds = %76
  %80 = load i32, ptr %18, align 4, !tbaa !11
  %81 = load i32, ptr %19, align 4, !tbaa !11
  %.not34 = icmp eq i32 %80, %81
  br i1 %.not34, label %92, label %82

82:                                               ; preds = %76, %79
  %83 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %84 = trunc i64 %83 to i32
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = call i32 @fflush(ptr noundef %86)
  %88 = call ptr @ee2str(i32 noundef 2)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %88)
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = call i32 @fflush(ptr noundef %90)
  call void @exit(i32 noundef 1) #7
  unreachable

92:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  ret i32 51
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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, !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 = !{!"_ZTS10DataFormat", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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