; LLVM IR from huawei-noah/bolt :: compute/tensor/src/expand.ll (Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo)

; 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.ExpandParamSpec = type { [8 x i32], i32 }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%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 [23 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: 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)) #1 align 2

; 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: 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 noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef, i32 noundef) #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7bytesOf8DataType(i32 noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef %0, ptr noundef byval(%struct.ExpandParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %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 ptr, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %class.Tensor, align 8
  %19 = alloca %struct.TensorDesc, align 4
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.TensorDesc, align 8
  %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
  %32 = alloca %struct.TensorDesc, align 4
  %33 = alloca %struct.TensorDesc, align 8
  %34 = alloca %struct.TensorDesc, align 8
  %35 = alloca %class.Tensor, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ArchInfo, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !9
  store i32 %38, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  %39 = load i32, ptr %10, align 4, !tbaa !12
  %40 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %12, i32 noundef %39)
          to label %41 unwind label %54

41:                                               ; preds = %5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %42 = load i32, ptr %10, align 4, !tbaa !12
  %43 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %16, i32 noundef %42)
          to label %44 unwind label %58

44:                                               ; preds = %41
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %45 = load i32, ptr %10, align 4, !tbaa !12
  %46 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %18, i32 noundef %45)
          to label %47 unwind label %62

47:                                               ; preds = %44
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  store ptr %46, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr %19) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %19, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 92, ptr %20) #8
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %20, ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 51, ptr %21, align 4, !tbaa !13
  %48 = load i32, ptr %10, align 4, !tbaa !12
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load i32, ptr %10, align 4, !tbaa !12
  %52 = icmp eq i32 %51, 7
  br i1 %52, label %53, label %66

53:                                               ; preds = %50, %47
  br label %189

54:                                               ; preds = %5
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %13, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %14, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %193

58:                                               ; preds = %41
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %13, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %14, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %192

62:                                               ; preds = %44
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %191

66:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !15
  %67 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %23)
  store i32 %67, ptr %22, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 92, i1 false), !tbaa.struct !15
  %68 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %25)
  store i32 %68, ptr %24, align 4, !tbaa !20
  %69 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !23
  %71 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !23
  %73 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %70, i32 noundef %72)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %83, label %75

75:                                               ; preds = %66
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %76, ptr %15, align 8, !tbaa !5
  %77 = load i32, ptr %22, align 4, !tbaa !20
  %78 = load i32, ptr %24, align 4, !tbaa !20
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %75
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %81, ptr %15, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %80, %75
  br label %83

83:                                               ; preds = %82, %66
  %84 = load i32, ptr %22, align 4, !tbaa !20
  %85 = load i32, ptr %24, align 4, !tbaa !20
  %86 = icmp eq i32 %84, %85
  br i1 %86, label %87, label %97

87:                                               ; preds = %83
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = icmp ne ptr %88, %89
  br i1 %90, label %91, label %96

91:                                               ; preds = %87
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i32, ptr %22, align 4, !tbaa !20
  %95 = zext i32 %94 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %92, ptr noundef %93, i64 noundef %95)
  br label %96

96:                                               ; preds = %91, %87
  br label %167

97:                                               ; preds = %83
  %98 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !23
  %100 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %99, i32 noundef 0)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %112, label %102

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %103 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %26, align 4, !tbaa !20
  %105 = load i32, ptr %26, align 4, !tbaa !20
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %105)
  %107 = load ptr, ptr @stdout, align 8, !tbaa !5
  %108 = call i32 @fflush(ptr noundef %107)
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %110 = load ptr, ptr @stdout, align 8, !tbaa !5
  %111 = call i32 @fflush(ptr noundef %110)
  call void @exit(i32 noundef 1) #9
  unreachable

112:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %113 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !25
  store i32 %114, ptr %28, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %115 = load i32, ptr %28, align 4, !tbaa !16
  %116 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %115)
  store i32 %116, ptr %29, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !20
  br label %117

117:                                              ; preds = %146, %112
  %118 = load i32, ptr %30, align 4, !tbaa !20
  %119 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !26
  %121 = icmp ult i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  store i32 2, ptr %31, align 4
  br label %149

123:                                              ; preds = %117
  %124 = load i32, ptr %30, align 4, !tbaa !20
  %125 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !26
  %127 = icmp uge i32 %124, %126
  br i1 %127, label %135, label %128

128:                                              ; preds = %123
  %129 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 3
  %130 = load i32, ptr %30, align 4, !tbaa !20
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [20 x i32], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !20
  %134 = icmp eq i32 %133, 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %128, %123
  store i32 2, ptr %31, align 4
  br label %149

136:                                              ; preds = %128
  %137 = load i32, ptr %30, align 4, !tbaa !20
  %138 = add i32 %137, 1
  store i32 %138, ptr %27, align 4, !tbaa !20
  %139 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 3
  %140 = load i32, ptr %30, align 4, !tbaa !20
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [20 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !20
  %144 = load i32, ptr %29, align 4, !tbaa !20
  %145 = mul i32 %144, %143
  store i32 %145, ptr %29, align 4, !tbaa !20
  br label %146

146:                                              ; preds = %136
  %147 = load i32, ptr %30, align 4, !tbaa !20
  %148 = add i32 %147, 1
  store i32 %148, ptr %30, align 4, !tbaa !20
  br label %117, !llvm.loop !27

149:                                              ; preds = %135, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %150

150:                                              ; preds = %149
  %151 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %152 = load i32, ptr %151, align 4, !tbaa !26
  %153 = sub i32 %152, 1
  %154 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !26
  %156 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %157 = load i32, ptr %156, align 4, !tbaa !26
  %158 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 3
  %159 = getelementptr inbounds [20 x i32], ptr %158, i64 0, i64 0
  %160 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %161 = getelementptr inbounds [20 x i32], ptr %160, i64 0, i64 0
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = load i32, ptr %28, align 4, !tbaa !16
  %165 = load i32, ptr %27, align 4, !tbaa !20
  %166 = load i32, ptr %29, align 4, !tbaa !20
  call void @_Z18expand_copy_kerneljjjPjS_PhS0_8DataTypejj(i32 noundef %153, i32 noundef %155, i32 noundef %157, ptr noundef %159, ptr noundef %161, ptr noundef %162, ptr noundef %163, i32 noundef %164, i32 noundef %165, i32 noundef %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %167

167:                                              ; preds = %150, %96
  store i32 0, ptr %21, align 4, !tbaa !13
  %168 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !23
  %170 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !23
  %172 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %169, i32 noundef %171)
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %188, label %174

174:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 92, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !15
  %175 = getelementptr inbounds %struct.TensorDesc, ptr %19, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !23
  %177 = getelementptr inbounds %struct.TensorDesc, ptr %32, i32 0, i32 1
  store i32 %176, ptr %177, align 4, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %32, i64 92, i1 false), !tbaa.struct !15
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !15
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %179 = load i32, ptr %10, align 4, !tbaa !12
  %180 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %35, i32 noundef %179)
          to label %181 unwind label %184

181:                                              ; preds = %174
  %182 = invoke noundef i32 @_Z15transformFormat10TensorDescPKvS_Pv(ptr noundef byval(%struct.TensorDesc) align 8 %33, ptr noundef %178, ptr noundef byval(%struct.TensorDesc) align 8 %34, ptr noundef %180)
          to label %183 unwind label %184

183:                                              ; preds = %181
  store i32 %182, ptr %21, align 4, !tbaa !13
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %32) #8
  br label %188

184:                                              ; preds = %181, %174
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %13, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %14, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %19) #8
  br label %191

188:                                              ; preds = %183, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %189

189:                                              ; preds = %188, %53
  %190 = load i32, ptr %21, align 4, !tbaa !13
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  ret i32 %190

191:                                              ; preds = %184, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %192

192:                                              ; preds = %191, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %193

193:                                              ; preds = %192, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %13, align 8
  %196 = load i32, ptr %14, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare noundef i32 @_Z15transformFormat10TensorDescPKvS_Pv(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef) #4

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


; 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.ExpandParamSpec = type { [8 x i32], i32 }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }

@.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 [23 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: 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 #1 align 2

; Function Attrs: mustprogress 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, ...) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture 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) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef, i32 noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7bytesOf8DataType(i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %0, ptr nocapture noundef readnone byval(%struct.ExpandParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.Tensor, align 8
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %class.Tensor, align 8
  %9 = alloca %struct.TensorDesc, align 8
  %10 = alloca %struct.TensorDesc, align 8
  %11 = alloca %struct.TensorDesc, align 8
  %12 = alloca %struct.TensorDesc, align 8
  %13 = alloca %class.Tensor, align 8
  %14 = load i32, ptr %4, align 8, !tbaa !5
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %0) #10
  %15 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %6, i32 noundef %14)
          to label %16 unwind label %21

16:                                               ; preds = %5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %3) #10
  %17 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef %14)
          to label %18 unwind label %23

18:                                               ; preds = %16
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %2) #10
  %19 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %8, i32 noundef %14)
          to label %20 unwind label %25

20:                                               ; preds = %18
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #10
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #10
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, ptr noundef nonnull align 8 dereferenceable(32) %3)
  switch i32 %14, label %27 [
    i32 7, label %79
    i32 2, label %79
  ]

21:                                               ; preds = %5
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  br label %80

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %80

25:                                               ; preds = %18
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %80

27:                                               ; preds = %20
  %28 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
  %29 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
  %30 = getelementptr inbounds i8, ptr %10, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %9, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %31, i32 noundef %33)
  %.not = icmp eq i32 %34, 0
  %35 = icmp eq i32 %28, %29
  %spec.select = select i1 %35, ptr %15, ptr %19
  %.045 = select i1 %.not, ptr %spec.select, ptr %17
  br i1 %35, label %36, label %39

36:                                               ; preds = %27
  %.not55 = icmp eq ptr %.045, %15
  br i1 %.not55, label %67, label %37

37:                                               ; preds = %36
  %38 = zext i32 %28 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %.045, ptr noundef %15, i64 noundef %38)
  br label %67

39:                                               ; preds = %27
  %40 = load i32, ptr %32, align 4, !tbaa !11
  %41 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %40, i32 noundef 0)
  %.not53 = icmp eq i32 %41, 0
  br i1 %.not53, label %42, label %51

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

51:                                               ; preds = %39
  %52 = load i32, ptr %9, align 8, !tbaa !17
  %53 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %52)
  %54 = getelementptr inbounds i8, ptr %9, i64 12
  %55 = getelementptr inbounds i8, ptr %10, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %9, i64 8
  %58 = load i32, ptr %57, align 8
  %.fr = freeze i32 %58
  %invariant.umin = call i32 @llvm.umin.i32(i32 %56, i32 %.fr)
  %or.cond62.not = icmp eq i32 %invariant.umin, 0
  br i1 %or.cond62.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %51
  %wide.trip.count = zext i32 %invariant.umin to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %62
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %62 ]
  %.04463 = phi i32 [ %53, %.lr.ph.preheader ], [ %63, %62 ]
  %59 = getelementptr inbounds [20 x i32], ptr %54, i64 0, i64 %indvars.iv
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %._crit_edge.loopexit.split.loop.exit, label %62

62:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = mul i32 %60, %.04463
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit.split.loop.exit:             ; preds = %.lr.ph
  %64 = trunc nuw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %62, %._crit_edge.loopexit.split.loop.exit, %51
  %.044.lcssa = phi i32 [ %53, %51 ], [ %.04463, %._crit_edge.loopexit.split.loop.exit ], [ %63, %62 ]
  %.043.lcssa = phi i32 [ 0, %51 ], [ %64, %._crit_edge.loopexit.split.loop.exit ], [ %invariant.umin, %62 ]
  %65 = add i32 %56, -1
  %66 = getelementptr inbounds i8, ptr %10, i64 12
  call void @_Z18expand_copy_kerneljjjPjS_PhS0_8DataTypejj(i32 noundef %65, i32 noundef %.fr, i32 noundef %56, ptr noundef nonnull %54, ptr noundef nonnull %66, ptr noundef %15, ptr noundef %.045, i32 noundef %52, i32 noundef %.043.lcssa, i32 noundef %.044.lcssa)
  br label %67

67:                                               ; preds = %36, %37, %._crit_edge
  %68 = load i32, ptr %30, align 4, !tbaa !11
  %69 = load i32, ptr %32, align 4, !tbaa !11
  %70 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %68, i32 noundef %69)
  %.not56 = icmp eq i32 %70, 0
  br i1 %.not56, label %71, label %79

71:                                               ; preds = %67
  %.sroa.0.0.copyload = load i32, ptr %10, align 8, !tbaa !22
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.6.0..sroa_idx5 = getelementptr inbounds i8, ptr %11, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(84) %.sroa.6.0..sroa_idx5, ptr noundef nonnull align 8 dereferenceable(84) %.sroa.6.0..sroa_idx, i64 84, i1 false)
  %72 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %.sroa.0.0.copyload, ptr %11, align 8, !tbaa !22
  %.sroa.5.0..sroa_idx3 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %72, ptr %.sroa.5.0..sroa_idx3, align 4, !tbaa !23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %12, ptr noundef nonnull align 8 dereferenceable(92) %10, i64 92, i1 false), !tbaa.struct !24
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %3) #10
  %73 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %13, i32 noundef %14)
          to label %74 unwind label %77

74:                                               ; preds = %71
  %75 = invoke noundef i32 @_Z15transformFormat10TensorDescPKvS_Pv(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef %.045, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %12, ptr noundef %73)
          to label %76 unwind label %77

76:                                               ; preds = %74
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  br label %79

77:                                               ; preds = %74, %71
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  br label %80

79:                                               ; preds = %67, %76, %20, %20
  %.148 = phi i32 [ 51, %20 ], [ 51, %20 ], [ 0, %67 ], [ %75, %76 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  ret i32 %.148

80:                                               ; preds = %23, %77, %25, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %22, %21 ], [ %24, %23 ], [ %78, %77 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare noundef i32 @_Z15transformFormat10TensorDescPKvS_Pv(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef) local_unnamed_addr #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #9

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass