; LLVM IR from huawei-noah/bolt :: compute/image/src (resize)

; 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] }
%struct.ResizeParamSpec = type { [2 x i32], [4 x float], i32, i32, i32, i32, i32, float, i32, i32 }
%struct.ArchInfo = type { i32, ptr }

@.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: 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) #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) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z30resize_infer_forward_tmp_bytes6Tensor15ResizeParamSpecS_PjP8ArchInfo(ptr noundef %0, ptr noundef byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #6 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.TensorDesc, align 4
  %13 = alloca %struct.TensorDesc, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.TensorDesc, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca %struct.TensorDesc, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %38

22:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %37

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %26 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %11, align 4, !tbaa !11
  %28 = load i32, ptr %11, align 4, !tbaa !11
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %28)
  %30 = load ptr, ptr @stdout, align 8, !tbaa !5
  %31 = call i32 @fflush(ptr noundef %30)
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = call ptr @ee2str(i32 noundef %32)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !5
  %36 = call i32 @fflush(ptr noundef %35)
  call void @exit(i32 noundef 1) #9
  unreachable

37:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %38

38:                                               ; preds = %37, %5
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 92, ptr %13) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %13, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ArchInfo, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !13
  store i32 %42, ptr %14, align 4, !tbaa !16
  %43 = load i32, ptr %14, align 4, !tbaa !16
  %44 = icmp eq i32 %43, 2
  br i1 %44, label %48, label %45

45:                                               ; preds = %38
  %46 = load i32, ptr %14, align 4, !tbaa !16
  %47 = icmp eq i32 %46, 7
  br i1 %47, label %48, label %59

48:                                               ; preds = %45, %38
  %49 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !17
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %58

52:                                               ; preds = %48
  %53 = call noundef i32 @_ZN6Tensor12get_mem_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %56 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %15)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %56, ptr %57, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %55, %52, %48
  br label %117

59:                                               ; preds = %45
  %60 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !17
  %62 = icmp eq i32 0, %61
  br i1 %62, label %63, label %116

63:                                               ; preds = %59
  %64 = load i32, ptr %14, align 4, !tbaa !16
  %65 = icmp eq i32 %64, 5
  br i1 %65, label %90, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr %14, align 4, !tbaa !16
  %68 = icmp eq i32 %67, 6
  br i1 %68, label %90, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %14, align 4, !tbaa !16
  %71 = icmp eq i32 %70, 4
  br i1 %71, label %90, label %72

72:                                               ; preds = %69
  %73 = load i32, ptr %14, align 4, !tbaa !16
  %74 = icmp eq i32 %73, 3
  br i1 %74, label %90, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %14, align 4, !tbaa !16
  %77 = icmp eq i32 %76, 8
  br i1 %77, label %90, label %78

78:                                               ; preds = %75
  %79 = load i32, ptr %14, align 4, !tbaa !16
  %80 = icmp eq i32 %79, 9
  br i1 %80, label %90, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %14, align 4, !tbaa !16
  %83 = icmp eq i32 %82, 10
  br i1 %83, label %90, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr %14, align 4, !tbaa !16
  %86 = icmp eq i32 %85, 9
  br i1 %86, label %90, label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %14, align 4, !tbaa !16
  %89 = icmp eq i32 %88, 10
  br i1 %89, label %90, label %116

90:                                               ; preds = %87, %84, %81, %78, %75, %72, %69, %66, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %91 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !25
  %93 = sub i32 %92, 2
  store i32 %93, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %94 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %95 = load i32, ptr %16, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [20 x i32], ptr %94, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !11
  %99 = add i32 %98, 7
  %100 = udiv i32 %99, 8
  %101 = mul i32 %100, 8
  store i32 %101, ptr %17, align 4, !tbaa !11
  %102 = load i32, ptr %17, align 4, !tbaa !11
  %103 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %104 = load i32, ptr %16, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [20 x i32], ptr %103, i64 0, i64 %105
  store i32 %102, ptr %106, align 4, !tbaa !11
  %107 = load i32, ptr %17, align 4, !tbaa !11
  %108 = getelementptr inbounds %struct.TensorDesc, ptr %13, i32 0, i32 3
  %109 = load i32, ptr %16, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [20 x i32], ptr %108, i64 0, i64 %110
  store i32 %107, ptr %111, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %112 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %18)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %13, i64 92, i1 false), !tbaa.struct !21
  %113 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %19)
  %114 = add i32 %112, %113
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %114, ptr %115, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %116

116:                                              ; preds = %90, %87, %59
  br label %117

117:                                              ; preds = %116, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #8
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor12get_mem_typeEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { 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 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"_ZTS2EE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS8ArchInfo", !15, i64 0, !6, i64 8}
!15 = !{!"_ZTS4Arch", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!18, !20, i64 4}
!18 = !{!"_ZTS10TensorDesc", !19, i64 0, !20, i64 4, !12, i64 8, !7, i64 12}
!19 = !{!"_ZTS8DataType", !7, i64 0}
!20 = !{!"_ZTS10DataFormat", !7, i64 0}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !23, i64 8, i64 4, !11, i64 12, i64 80, !24}
!22 = !{!19, !19, i64 0}
!23 = !{!20, !20, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!18, !12, i64 8}


; 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] }
%struct.ResizeParamSpec = type { [2 x i32], [4 x float], i32, i32, i32, i32, i32, float, i32, 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: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #1

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z30resize_infer_forward_tmp_bytes6Tensor15ResizeParamSpecS_PjP8ArchInfo(ptr noundef %0, ptr nocapture noundef readnone byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %2, ptr noundef writeonly %3, ptr nocapture noundef readonly %4) local_unnamed_addr #5 {
  %6 = alloca %struct.TensorDesc, align 8
  %7 = alloca %struct.TensorDesc, align 8
  %8 = icmp eq ptr %3, null
  br i1 %8, label %9, label %19

9:                                                ; preds = %5
  %10 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %11 = trunc i64 %10 to i32
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %11)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !5
  %14 = tail call i32 @fflush(ptr noundef %13)
  %15 = tail call ptr @ee2str(i32 noundef 1)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %15)
  %17 = load ptr, ptr @stdout, align 8, !tbaa !5
  %18 = tail call i32 @fflush(ptr noundef %17)
  tail call void @exit(i32 noundef 1) #8
  unreachable

19:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %6) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %6, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %7) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %7, ptr noundef nonnull align 8 dereferenceable(32) %2)
  store i32 0, ptr %3, align 4, !tbaa !9
  %20 = load i32, ptr %4, align 8, !tbaa !11
  switch i32 %20, label %29 [
    i32 7, label %21
    i32 2, label %21
  ]

21:                                               ; preds = %19, %19
  %22 = getelementptr inbounds i8, ptr %6, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !14
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %49

25:                                               ; preds = %21
  %26 = call noundef i32 @_ZN6Tensor12get_mem_typeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %49, label %27

27:                                               ; preds = %25
  %28 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
  br label %.sink.split

29:                                               ; preds = %19
  %30 = getelementptr inbounds i8, ptr %6, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %49

33:                                               ; preds = %29
  switch i32 %20, label %49 [
    i32 10, label %34
    i32 9, label %34
    i32 8, label %34
    i32 6, label %34
    i32 5, label %34
    i32 4, label %34
    i32 3, label %34
  ]

34:                                               ; preds = %33, %33, %33, %33, %33, %33, %33
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  %36 = load i32, ptr %35, align 8, !tbaa !18
  %37 = add i32 %36, -2
  %38 = getelementptr inbounds i8, ptr %6, i64 12
  %39 = sext i32 %37 to i64
  %40 = getelementptr inbounds [20 x i32], ptr %38, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = add i32 %41, 7
  %43 = and i32 %42, -8
  store i32 %43, ptr %40, align 4, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %7, i64 12
  %45 = getelementptr inbounds [20 x i32], ptr %44, i64 0, i64 %39
  store i32 %43, ptr %45, align 4, !tbaa !9
  %46 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
  %47 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %7)
  %48 = add i32 %47, %46
  br label %.sink.split

.sink.split:                                      ; preds = %27, %34
  %.sink = phi i32 [ %48, %34 ], [ %28, %27 ]
  store i32 %.sink, ptr %3, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %.sink.split, %33, %29, %21, %25
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #7
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor12get_mem_typeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 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 = { inlinehint 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, !13, i64 0}
!12 = !{!"_ZTS8ArchInfo", !13, i64 0, !6, i64 8}
!13 = !{!"_ZTS4Arch", !7, i64 0}
!14 = !{!15, !17, i64 4}
!15 = !{!"_ZTS10TensorDesc", !16, i64 0, !17, i64 4, !10, i64 8, !7, i64 12}
!16 = !{!"_ZTS8DataType", !7, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!15, !10, i64 8}


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