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

; 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: mustprogress uwtable
define dso_local i32 @vector_vector_axpby(float noundef %0, ptr noundef byval(%struct.TensorDesc) align 8 %1, ptr noundef %2, float noundef %3, ptr noundef byval(%struct.TensorDesc) align 8 %4, ptr noundef %5, i32 noundef %6) #0 {
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %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 = alloca i32, align 4
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.TensorDesc, align 8
  %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 i32, align 4
  store float %0, ptr %8, align 4, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !5
  store ptr %5, ptr %11, align 8, !tbaa !9
  store i32 %6, ptr %12, align 4, !tbaa !11
  %32 = load ptr, ptr %9, align 8, !tbaa !9
  %33 = icmp eq ptr null, %32
  br i1 %33, label %37, label %34

34:                                               ; preds = %7
  %35 = load ptr, ptr %11, align 8, !tbaa !9
  %36 = icmp eq ptr null, %35
  br i1 %36, label %37, label %53

37:                                               ; preds = %34, %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !13
  %38 = load i32, ptr %13, align 4, !tbaa !13
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %52

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %41 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %14, align 4, !tbaa !15
  %43 = load i32, ptr %14, align 4, !tbaa !15
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !9
  %46 = call i32 @fflush(ptr noundef %45)
  %47 = load i32, ptr %13, align 4, !tbaa !13
  %48 = call ptr @ee2str(i32 noundef %47)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %48)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !9
  %51 = call i32 @fflush(ptr noundef %50)
  call void @exit(i32 noundef 1) #8
  unreachable

52:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %53

53:                                               ; preds = %52, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  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.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !17
  %54 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8 %22, ptr noundef %15, ptr noundef %17, ptr noundef %19)
  store i32 %54, ptr %21, align 4, !tbaa !13
  %55 = load i32, ptr %21, align 4, !tbaa !13
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %69

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

69:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !17
  %70 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef byval(%struct.TensorDesc) align 8 %25, ptr noundef %16, ptr noundef %18, ptr noundef %20)
  store i32 %70, ptr %24, align 4, !tbaa !13
  %71 = load i32, ptr %24, align 4, !tbaa !13
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %85

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %74 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %26, align 4, !tbaa !15
  %76 = load i32, ptr %26, align 4, !tbaa !15
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %76)
  %78 = load ptr, ptr @stdout, align 8, !tbaa !9
  %79 = call i32 @fflush(ptr noundef %78)
  %80 = load i32, ptr %24, align 4, !tbaa !13
  %81 = call ptr @ee2str(i32 noundef %80)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %81)
  %83 = load ptr, ptr @stdout, align 8, !tbaa !9
  %84 = call i32 @fflush(ptr noundef %83)
  call void @exit(i32 noundef 1) #8
  unreachable

85:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %86 = load i32, ptr %15, align 4, !tbaa !18
  %87 = load i32, ptr %16, align 4, !tbaa !18
  %88 = icmp ne i32 %86, %87
  br i1 %88, label %89, label %105

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 2, ptr %27, align 4, !tbaa !13
  %90 = load i32, ptr %27, align 4, !tbaa !13
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %104

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

104:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %105

105:                                              ; preds = %104, %85
  %106 = load i32, ptr %19, align 4, !tbaa !15
  %107 = load i32, ptr %20, align 4, !tbaa !15
  %108 = icmp ne i32 %106, %107
  br i1 %108, label %109, label %125

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 2, ptr %29, align 4, !tbaa !13
  %110 = load i32, ptr %29, align 4, !tbaa !13
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %124

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

124:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %125

125:                                              ; preds = %124, %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 51, ptr %31, align 4, !tbaa !13
  %126 = load i32, ptr %12, align 4, !tbaa !11
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  br label %129

129:                                              ; preds = %128, %125
  %130 = load i32, ptr %31, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret i32 %130
}

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

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

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

declare i32 @fflush(ptr noundef) #3

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

; 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) #1

; 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) #4

; 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) #6

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS4Arch", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !20, i64 8, i64 4, !15, i64 12, i64 80, !22}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS8DataType", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS10DataFormat", !7, i64 0}
!22 = !{!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"

%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 nounwind uwtable
define dso_local noundef i32 @vector_vector_axpby(float noundef %0, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %1, ptr noundef readnone %2, float noundef %3, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %4, ptr noundef readnone %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = icmp eq ptr %2, null
  %15 = icmp eq ptr %5, null
  %or.cond = or i1 %14, %15
  br i1 %or.cond, label %16, label %26

16:                                               ; preds = %7
  %17 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %18 = trunc i64 %17 to i32
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %18)
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = tail call i32 @fflush(ptr noundef %20)
  %22 = tail call ptr @ee2str(i32 noundef 1)
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22)
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = tail call i32 @fflush(ptr noundef %24)
  tail call void @exit(i32 noundef 1) #7
  unreachable

26:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  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
  %27 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %12)
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %38, label %28

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

38:                                               ; preds = %26
  %39 = call noundef i32 @_Z11tensor1dGet10TensorDescP8DataTypeP10DataFormatPj(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %13)
  %.not20 = icmp eq i32 %39, 0
  br i1 %.not20, label %50, label %40

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

50:                                               ; preds = %38
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %.not21 = icmp eq i32 %51, %52
  br i1 %.not21, label %63, label %53

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

63:                                               ; preds = %50
  %64 = load i32, ptr %12, align 4, !tbaa !11
  %65 = load i32, ptr %13, align 4, !tbaa !11
  %.not22 = icmp eq i32 %64, %65
  br i1 %.not22, label %76, label %66

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

76:                                               ; preds = %63
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  ret i32 51
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #4

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

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

; 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 #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { 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 = !{!"_ZTS8DataType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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