; LLVM IR from huawei-noah/bolt :: compute/tensor/tests/test_argmax.ll (Z10argmaxTestiPPc8DataType)

; 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.ArchInfo = type { i32, ptr }
%struct.ArgMaxParamSpec = type { i32 }
%struct.TensorDesc = type { i32, i32, i32, [20 x 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 global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL15UT_CPU_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL18UT_SERIAL_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10argmaxTestiPPc8DataType(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.ArgMaxParamSpec, 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 = alloca %struct.TensorDesc, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %struct.TensorDesc, align 8
  %17 = alloca %class.Tensor, align 8
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.Tensor, align 8
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca %class.Tensor, align 8
  %24 = alloca %class.Tensor, align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.ArgMaxParamSpec, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.TensorDesc, align 8
  %29 = alloca %class.Tensor, align 8
  %30 = alloca i32, align 4
  %31 = alloca %class.Tensor, align 8
  %32 = alloca %struct.ArgMaxParamSpec, align 4
  %33 = alloca %class.Tensor, align 8
  %34 = alloca %class.Tensor, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %class.Tensor, align 8
  %38 = alloca %struct.ArgMaxParamSpec, align 4
  %39 = alloca %class.Tensor, align 8
  %40 = alloca %class.Tensor, align 8
  %41 = alloca i32, align 4
  %42 = alloca %class.Tensor, align 8
  %43 = alloca %class.Tensor, align 8
  %44 = alloca double, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %class.Tensor, align 8
  %48 = alloca %struct.ArgMaxParamSpec, align 4
  %49 = alloca %class.Tensor, align 8
  %50 = alloca %class.Tensor, align 8
  %51 = alloca i32, align 4
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca %struct.TensorDesc, align 8
  %59 = alloca i32, align 4
  %60 = alloca [150 x i8], align 16
  %61 = alloca [120 x i8], align 16
  %62 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = icmp eq i32 %63, 6
  br i1 %64, label %75, label %65

65:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %66 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !9
  %71 = call i32 @fflush(ptr noundef %70)
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %73 = load ptr, ptr @stdout, align 8, !tbaa !9
  %74 = call i32 @fflush(ptr noundef %73)
  call void @exit(i32 noundef 1) #10
  unreachable

75:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 1
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 @atoi(ptr noundef %78) #11
  store i32 %79, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 2
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 @atoi(ptr noundef %82) #11
  store i32 %83, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %84, i64 3
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = call i32 @atoi(ptr noundef %86) #11
  store i32 %87, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %88, i64 4
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call i32 @atoi(ptr noundef %90) #11
  store i32 %91, ptr %12, align 4, !tbaa !5
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 5
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call i32 @atoi(ptr noundef %94) #11
  %96 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %8, i32 0, i32 0
  store i32 %95, ptr %96, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 92, ptr %14) #9
  %97 = load i32, ptr %6, align 4, !tbaa !11
  %98 = load i32, ptr %13, align 4, !tbaa !15
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = load i32, ptr %12, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %14, i32 noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %102)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  %103 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %16)
  %104 = load i32, ptr %6, align 4, !tbaa !11
  %105 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %103, i32 noundef %104, i32 noundef 0)
  store ptr %105, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef byval(%struct.TensorDesc) align 8 %18)
          to label %106 unwind label %140

106:                                              ; preds = %75
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %107 unwind label %140

107:                                              ; preds = %106
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  %108 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %21, i32 noundef 1)
          to label %109 unwind label %144

109:                                              ; preds = %107
  %110 = load ptr, ptr %15, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  %111 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %22)
          to label %112 unwind label %144

112:                                              ; preds = %109
  %113 = zext i32 %111 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %108, ptr noundef %110, i64 noundef %113)
          to label %114 unwind label %144

114:                                              ; preds = %112
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef 1)
          to label %115 unwind label %148

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef 1)
          to label %116 unwind label %152

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !19
  %117 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %26, i32 0, i32 0
  %118 = load i32, ptr %117, align 4
  %119 = invoke noundef i32 @_Z24argmax_infer_output_sizeP6Tensor15ArgMaxParamSpecS0_P8ArchInfo(ptr noundef %17, i32 %118, ptr noundef %23, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %120 unwind label %156

120:                                              ; preds = %116
  store i32 %119, ptr %25, align 4, !tbaa !20
  %121 = load i32, ptr %25, align 4, !tbaa !20
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %164

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %124 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %125 = trunc i64 %124 to i32
  store i32 %125, ptr %27, align 4, !tbaa !5
  %126 = load i32, ptr %27, align 4, !tbaa !5
  %127 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %126)
          to label %128 unwind label %160

128:                                              ; preds = %123
  %129 = load ptr, ptr @stdout, align 8, !tbaa !9
  %130 = invoke i32 @fflush(ptr noundef %129)
          to label %131 unwind label %160

131:                                              ; preds = %128
  %132 = load i32, ptr %25, align 4, !tbaa !20
  %133 = invoke ptr @ee2str(i32 noundef %132)
          to label %134 unwind label %160

134:                                              ; preds = %131
  %135 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %133)
          to label %136 unwind label %160

136:                                              ; preds = %134
  %137 = load ptr, ptr @stdout, align 8, !tbaa !9
  %138 = invoke i32 @fflush(ptr noundef %137)
          to label %139 unwind label %160

139:                                              ; preds = %136
  call void @exit(i32 noundef 1) #10
  unreachable

140:                                              ; preds = %106, %75
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %19, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %20, align 4
  br label %395

144:                                              ; preds = %112, %109, %107
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %19, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %20, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %395

148:                                              ; preds = %114
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %19, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %20, align 4
  br label %394

152:                                              ; preds = %115
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %19, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %20, align 4
  br label %393

156:                                              ; preds = %116
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %19, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %20, align 4
  br label %193

160:                                              ; preds = %136, %134, %131, %128, %123
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %19, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %193

164:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %165 unwind label %194

165:                                              ; preds = %164
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %28, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %166 unwind label %194

166:                                              ; preds = %165
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef byval(%struct.TensorDesc) align 8 %28)
          to label %167 unwind label %194

167:                                              ; preds = %166
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %168 unwind label %194

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 1)
          to label %169 unwind label %198

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %170 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %32, i32 0, i32 0
  %171 = load i32, ptr %170, align 4
  %172 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef %31, i32 %171, ptr noundef %33, ptr noundef %34, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %173 unwind label %202

173:                                              ; preds = %169
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  store i32 %172, ptr %30, align 4, !tbaa !20
  %174 = load i32, ptr %30, align 4, !tbaa !20
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %210

176:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %177 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %178 = trunc i64 %177 to i32
  store i32 %178, ptr %35, align 4, !tbaa !5
  %179 = load i32, ptr %35, align 4, !tbaa !5
  %180 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %179)
          to label %181 unwind label %206

181:                                              ; preds = %176
  %182 = load ptr, ptr @stdout, align 8, !tbaa !9
  %183 = invoke i32 @fflush(ptr noundef %182)
          to label %184 unwind label %206

184:                                              ; preds = %181
  %185 = load i32, ptr %30, align 4, !tbaa !20
  %186 = invoke ptr @ee2str(i32 noundef %185)
          to label %187 unwind label %206

187:                                              ; preds = %184
  %188 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %186)
          to label %189 unwind label %206

189:                                              ; preds = %187
  %190 = load ptr, ptr @stdout, align 8, !tbaa !9
  %191 = invoke i32 @fflush(ptr noundef %190)
          to label %192 unwind label %206

192:                                              ; preds = %189
  call void @exit(i32 noundef 1) #10
  unreachable

193:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %392

194:                                              ; preds = %167, %166, %165, %164
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %19, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %20, align 4
  br label %392

198:                                              ; preds = %168
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %19, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %20, align 4
  br label %391

202:                                              ; preds = %169
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %19, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %20, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %234

206:                                              ; preds = %189, %187, %184, %181, %176
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %19, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %234

210:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  %211 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %38, i32 0, i32 0
  %212 = load i32, ptr %211, align 4
  %213 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef %37, i32 %212, ptr noundef %39, ptr noundef %40, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %214 unwind label %235

214:                                              ; preds = %210
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  store i32 %213, ptr %36, align 4, !tbaa !20
  %215 = load i32, ptr %36, align 4, !tbaa !20
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %243

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %218 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %219 = trunc i64 %218 to i32
  store i32 %219, ptr %41, align 4, !tbaa !5
  %220 = load i32, ptr %41, align 4, !tbaa !5
  %221 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %220)
          to label %222 unwind label %239

222:                                              ; preds = %217
  %223 = load ptr, ptr @stdout, align 8, !tbaa !9
  %224 = invoke i32 @fflush(ptr noundef %223)
          to label %225 unwind label %239

225:                                              ; preds = %222
  %226 = load i32, ptr %36, align 4, !tbaa !20
  %227 = invoke ptr @ee2str(i32 noundef %226)
          to label %228 unwind label %239

228:                                              ; preds = %225
  %229 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %227)
          to label %230 unwind label %239

230:                                              ; preds = %228
  %231 = load ptr, ptr @stdout, align 8, !tbaa !9
  %232 = invoke i32 @fflush(ptr noundef %231)
          to label %233 unwind label %239

233:                                              ; preds = %230
  call void @exit(i32 noundef 1) #10
  unreachable

234:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %390

235:                                              ; preds = %210
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %19, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %20, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  br label %257

239:                                              ; preds = %230, %228, %225, %222, %217
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %19, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %257

243:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %244 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %42, i32 noundef 1)
          to label %245 unwind label %258

245:                                              ; preds = %243
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  %246 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %43, i32 noundef 1)
          to label %247 unwind label %262

247:                                              ; preds = %245
  %248 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %249 unwind label %262

249:                                              ; preds = %247
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %244, ptr noundef %246, i32 noundef %248, i32 noundef 2, float noundef 0.000000e+00)
          to label %250 unwind label %262

250:                                              ; preds = %249
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %251 = invoke noundef double @_Z10ut_time_msv()
          to label %252 unwind label %267

252:                                              ; preds = %250
  store double %251, ptr %44, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %304, %252
  %254 = load i32, ptr %45, align 4, !tbaa !5
  %255 = icmp slt i32 %254, 6
  br i1 %255, label %271, label %256

256:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %308

257:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %390

258:                                              ; preds = %243
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %19, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %20, align 4
  br label %266

262:                                              ; preds = %249, %247, %245
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %19, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %20, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %266

266:                                              ; preds = %262, %258
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  br label %390

267:                                              ; preds = %250
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %19, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %20, align 4
  br label %389

271:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %272 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %48, i32 0, i32 0
  %273 = load i32, ptr %272, align 4
  %274 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef %47, i32 %273, ptr noundef %49, ptr noundef %50, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %275 unwind label %295

275:                                              ; preds = %271
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  store i32 %274, ptr %46, align 4, !tbaa !20
  %276 = load i32, ptr %46, align 4, !tbaa !20
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %303

278:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  %279 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %280 = trunc i64 %279 to i32
  store i32 %280, ptr %51, align 4, !tbaa !5
  %281 = load i32, ptr %51, align 4, !tbaa !5
  %282 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %281)
          to label %283 unwind label %299

283:                                              ; preds = %278
  %284 = load ptr, ptr @stdout, align 8, !tbaa !9
  %285 = invoke i32 @fflush(ptr noundef %284)
          to label %286 unwind label %299

286:                                              ; preds = %283
  %287 = load i32, ptr %46, align 4, !tbaa !20
  %288 = invoke ptr @ee2str(i32 noundef %287)
          to label %289 unwind label %299

289:                                              ; preds = %286
  %290 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %288)
          to label %291 unwind label %299

291:                                              ; preds = %289
  %292 = load ptr, ptr @stdout, align 8, !tbaa !9
  %293 = invoke i32 @fflush(ptr noundef %292)
          to label %294 unwind label %299

294:                                              ; preds = %291
  call void @exit(i32 noundef 1) #10
  unreachable

295:                                              ; preds = %271
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %19, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %20, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  br label %307

299:                                              ; preds = %291, %289, %286, %283, %278
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %19, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %307

303:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %45, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %45, align 4, !tbaa !5
  br label %253, !llvm.loop !24

307:                                              ; preds = %299, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %389

308:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %309 = invoke noundef double @_Z10ut_time_msv()
          to label %310 unwind label %337

310:                                              ; preds = %308
  store double %309, ptr %52, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  %311 = load double, ptr %52, align 8, !tbaa !22
  %312 = load double, ptr %44, align 8, !tbaa !22
  %313 = fsub double %311, %312
  %314 = fdiv double %313, 6.000000e+00
  store double %314, ptr %53, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %58, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %315 unwind label %341

315:                                              ; preds = %310
  %316 = invoke noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %58, ptr noundef %6, ptr noundef %13, ptr noundef %54, ptr noundef %55, ptr noundef %56)
          to label %317 unwind label %341

317:                                              ; preds = %315
  store i32 %316, ptr %57, align 4, !tbaa !20
  %318 = load i32, ptr %57, align 4, !tbaa !20
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %349

320:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  %321 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %322 = trunc i64 %321 to i32
  store i32 %322, ptr %59, align 4, !tbaa !5
  %323 = load i32, ptr %59, align 4, !tbaa !5
  %324 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %323)
          to label %325 unwind label %345

325:                                              ; preds = %320
  %326 = load ptr, ptr @stdout, align 8, !tbaa !9
  %327 = invoke i32 @fflush(ptr noundef %326)
          to label %328 unwind label %345

328:                                              ; preds = %325
  %329 = load i32, ptr %57, align 4, !tbaa !20
  %330 = invoke ptr @ee2str(i32 noundef %329)
          to label %331 unwind label %345

331:                                              ; preds = %328
  %332 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %330)
          to label %333 unwind label %345

333:                                              ; preds = %331
  %334 = load ptr, ptr @stdout, align 8, !tbaa !9
  %335 = invoke i32 @fflush(ptr noundef %334)
          to label %336 unwind label %345

336:                                              ; preds = %333
  call void @exit(i32 noundef 1) #10
  unreachable

337:                                              ; preds = %308
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %19, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %20, align 4
  br label %388

341:                                              ; preds = %315, %310
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %19, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %20, align 4
  br label %382

345:                                              ; preds = %333, %331, %328, %325, %320
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %19, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  br label %382

349:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 150, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %61) #9
  %350 = getelementptr inbounds [120 x i8], ptr %61, i64 0, i64 0
  %351 = load i32, ptr %9, align 4, !tbaa !5
  %352 = load i32, ptr %10, align 4, !tbaa !5
  %353 = load i32, ptr %11, align 4, !tbaa !5
  %354 = load i32, ptr %12, align 4, !tbaa !5
  %355 = getelementptr inbounds %struct.ArgMaxParamSpec, ptr %8, i32 0, i32 0
  %356 = load i32, ptr %355, align 4, !tbaa !13
  %357 = load i32, ptr %54, align 4, !tbaa !5
  %358 = load i32, ptr %55, align 4, !tbaa !5
  %359 = load i32, ptr %56, align 4, !tbaa !5
  %360 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %350, ptr noundef @.str.3, i32 noundef %351, i32 noundef %352, i32 noundef %353, i32 noundef %354, i32 noundef %356, i32 noundef %357, i32 noundef %358, i32 noundef %359) #9
  %361 = getelementptr inbounds [150 x i8], ptr %60, i64 0, i64 0
  %362 = getelementptr inbounds [120 x i8], ptr %61, i64 0, i64 0
  %363 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %361, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %362) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  %364 = load i32, ptr %9, align 4, !tbaa !5
  %365 = uitofp i32 %364 to double
  %366 = fmul double 1.000000e+00, %365
  %367 = load i32, ptr %10, align 4, !tbaa !5
  %368 = uitofp i32 %367 to double
  %369 = fmul double %366, %368
  %370 = load i32, ptr %11, align 4, !tbaa !5
  %371 = uitofp i32 %370 to double
  %372 = fmul double %369, %371
  %373 = load i32, ptr %12, align 4, !tbaa !5
  %374 = uitofp i32 %373 to double
  %375 = fmul double %372, %374
  store double %375, ptr %62, align 8, !tbaa !22
  %376 = load i32, ptr %6, align 4, !tbaa !11
  %377 = getelementptr inbounds [150 x i8], ptr %60, i64 0, i64 0
  %378 = load double, ptr %62, align 8, !tbaa !22
  %379 = load double, ptr %53, align 8, !tbaa !22
  %380 = fdiv double %379, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %376, ptr noundef %377, double noundef %378, double noundef %380)
          to label %381 unwind label %383

381:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret i32 0

382:                                              ; preds = %345, %341
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  br label %387

383:                                              ; preds = %349
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %19, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %60) #9
  br label %387

387:                                              ; preds = %383, %382
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %388

388:                                              ; preds = %387, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %389

389:                                              ; preds = %388, %307, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  br label %390

390:                                              ; preds = %389, %266, %257, %234
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  br label %391

391:                                              ; preds = %390, %198
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  br label %392

392:                                              ; preds = %391, %194, %193
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  br label %393

393:                                              ; preds = %392, %152
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  br label %394

394:                                              ; preds = %393, %148
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  br label %395

395:                                              ; preds = %394, %144, %140
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %396

396:                                              ; preds = %395
  %397 = load ptr, ptr %19, align 8
  %398 = load i32, ptr %20, align 4
  %399 = insertvalue { ptr, i32 } poison, ptr %397, 0
  %400 = insertvalue { ptr, i32 } %399, i32 %398, 1
  resume { ptr, i32 } %400
}

; 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: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

; 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 @_Z24argmax_infer_output_sizeP6Tensor15ArgMaxParamSpecS0_P8ArchInfo(ptr noundef, i32, ptr noundef, ptr noundef) #3

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

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

; 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)) #0 align 2

declare noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef, i32, ptr noundef, ptr noundef, ptr noundef) #3

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

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

declare noundef double @_Z10ut_time_msv() #3

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

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 = { 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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!"int", !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 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS15ArgMaxParamSpec", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS10DataFormat", !7, i64 0}
!17 = !{i64 0, i64 4, !11, i64 4, i64 4, !15, i64 8, i64 4, !5, i64 12, i64 80, !18}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 4, !5}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS2EE", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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.ArchInfo = type { i32, ptr }
%struct.TensorDesc = type { i32, i32, i32, [20 x 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
@_ZL15UT_CPU_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL18UT_SERIAL_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10argmaxTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.TensorDesc, align 8
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %class.Tensor, align 8
  %9 = alloca %class.Tensor, align 8
  %10 = alloca %class.Tensor, align 8
  %11 = alloca %struct.TensorDesc, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %class.Tensor, align 8
  %14 = alloca %class.Tensor, align 8
  %15 = alloca %class.Tensor, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca %class.Tensor, align 8
  %18 = alloca %class.Tensor, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca %class.Tensor, align 8
  %21 = alloca %class.Tensor, align 8
  %22 = alloca %class.Tensor, align 8
  %23 = alloca %class.Tensor, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca [150 x i8], align 16
  %29 = alloca [120 x i8], align 16
  store i32 %2, ptr %4, align 4, !tbaa !5
  %30 = icmp eq i32 %0, 6
  br i1 %30, label %40, label %31

31:                                               ; preds = %3
  %32 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %33 = trunc i64 %32 to i32
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !9
  %36 = tail call i32 @fflush(ptr noundef %35)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %38 = load ptr, ptr @stdout, align 8, !tbaa !9
  %39 = tail call i32 @fflush(ptr noundef %38)
  tail call void @exit(i32 noundef 1) #10
  unreachable

40:                                               ; preds = %3
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = tail call i32 @atoi(ptr nocapture noundef %42) #11
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = tail call i32 @atoi(ptr nocapture noundef %45) #11
  %47 = getelementptr inbounds i8, ptr %1, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = tail call i32 @atoi(ptr nocapture noundef %48) #11
  %50 = getelementptr inbounds i8, ptr %1, i64 32
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = tail call i32 @atoi(ptr nocapture noundef %51) #11
  %53 = getelementptr inbounds i8, ptr %1, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = tail call i32 @atoi(ptr nocapture noundef %54) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %6) #9
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %6, i32 noundef %2, i32 noundef 0, i32 noundef %43, i32 noundef %46, i32 noundef %49, i32 noundef %52)
  %56 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
  %57 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %56, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
          to label %58 unwind label %80

58:                                               ; preds = %40
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %59 unwind label %80

59:                                               ; preds = %58
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  %60 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %8, i32 noundef 1)
          to label %61 unwind label %82

61:                                               ; preds = %59
  %62 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
          to label %63 unwind label %82

63:                                               ; preds = %61
  %64 = zext i32 %62 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %60, ptr noundef %57, i64 noundef %64)
          to label %65 unwind label %82

65:                                               ; preds = %63
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 1)
          to label %66 unwind label %84

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
          to label %67 unwind label %86

67:                                               ; preds = %66
  %68 = invoke noundef i32 @_Z24argmax_infer_output_sizeP6Tensor15ArgMaxParamSpecS0_P8ArchInfo(ptr noundef nonnull %7, i32 %55, ptr noundef nonnull %9, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %69 unwind label %88

69:                                               ; preds = %67
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %90, label %70

70:                                               ; preds = %69
  %71 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %72 = trunc i64 %71 to i32
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %72)
  %74 = load ptr, ptr @stdout, align 8, !tbaa !9
  %75 = call i32 @fflush(ptr noundef %74)
  %76 = call ptr @ee2str(i32 noundef %68)
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %76)
  %78 = load ptr, ptr @stdout, align 8, !tbaa !9
  %79 = call i32 @fflush(ptr noundef %78)
  call void @exit(i32 noundef 1) #10
  unreachable

80:                                               ; preds = %58, %40
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %214

82:                                               ; preds = %63, %61, %59
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %214

84:                                               ; preds = %65
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %213

86:                                               ; preds = %66
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %212

88:                                               ; preds = %67
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %211

90:                                               ; preds = %69
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %91 unwind label %108

91:                                               ; preds = %90
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %92 unwind label %108

92:                                               ; preds = %91
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11)
          to label %93 unwind label %108

93:                                               ; preds = %92
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %94 unwind label %108

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
          to label %95 unwind label %110

95:                                               ; preds = %94
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %96 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %13, i32 %55, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %97 unwind label %112

97:                                               ; preds = %95
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %.not66 = icmp eq i32 %96, 0
  br i1 %.not66, label %114, label %98

98:                                               ; preds = %97
  %99 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %100 = trunc i64 %99 to i32
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %100)
  %102 = load ptr, ptr @stdout, align 8, !tbaa !9
  %103 = call i32 @fflush(ptr noundef %102)
  %104 = call ptr @ee2str(i32 noundef %96)
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %104)
  %106 = load ptr, ptr @stdout, align 8, !tbaa !9
  %107 = call i32 @fflush(ptr noundef %106)
  call void @exit(i32 noundef 1) #10
  unreachable

108:                                              ; preds = %93, %92, %91, %90
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %211

110:                                              ; preds = %94
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %210

112:                                              ; preds = %95
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %209

114:                                              ; preds = %97
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  %115 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %16, i32 %55, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %116 unwind label %127

116:                                              ; preds = %114
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  %.not67 = icmp eq i32 %115, 0
  br i1 %.not67, label %129, label %117

117:                                              ; preds = %116
  %118 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %119 = trunc i64 %118 to i32
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %119)
  %121 = load ptr, ptr @stdout, align 8, !tbaa !9
  %122 = call i32 @fflush(ptr noundef %121)
  %123 = call ptr @ee2str(i32 noundef %115)
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %123)
  %125 = load ptr, ptr @stdout, align 8, !tbaa !9
  %126 = call i32 @fflush(ptr noundef %125)
  call void @exit(i32 noundef 1) #10
  unreachable

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %209

129:                                              ; preds = %116
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %130 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %19, i32 noundef 1)
          to label %131 unwind label %151

131:                                              ; preds = %129
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  %132 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %20, i32 noundef 1)
          to label %133 unwind label %153

133:                                              ; preds = %131
  %134 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %135 unwind label %153

135:                                              ; preds = %133
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %130, ptr noundef %132, i32 noundef %134, i32 noundef 2, float noundef 0.000000e+00)
          to label %136 unwind label %153

136:                                              ; preds = %135
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %137 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %156

.preheader.preheader:                             ; preds = %136
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %138 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %158 unwind label %169

.preheader.1:                                     ; preds = %158
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %139 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %140 unwind label %169

140:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81.1 = icmp eq i32 %139, 0
  br i1 %.not81.1, label %.preheader.2, label %159

.preheader.2:                                     ; preds = %140
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %141 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %142 unwind label %169

142:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81.2 = icmp eq i32 %141, 0
  br i1 %.not81.2, label %.preheader.3, label %159

.preheader.3:                                     ; preds = %142
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %143 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %144 unwind label %169

144:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81.3 = icmp eq i32 %143, 0
  br i1 %.not81.3, label %.preheader.4, label %159

.preheader.4:                                     ; preds = %144
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %145 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %146 unwind label %169

146:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81.4 = icmp eq i32 %145, 0
  br i1 %.not81.4, label %.preheader.5, label %159

.preheader.5:                                     ; preds = %146
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  %147 = invoke noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef nonnull %21, i32 %55, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %148 unwind label %169

148:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81.5 = icmp eq i32 %147, 0
  br i1 %.not81.5, label %149, label %159

149:                                              ; preds = %148
  %150 = invoke noundef double @_Z10ut_time_msv()
          to label %171 unwind label %186

151:                                              ; preds = %129
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %155

153:                                              ; preds = %135, %133, %131
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %155

155:                                              ; preds = %153, %151
  %.pn = phi { ptr, i32 } [ %154, %153 ], [ %152, %151 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %209

156:                                              ; preds = %136
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %209

158:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  %.not81 = icmp eq i32 %138, 0
  br i1 %.not81, label %.preheader.1, label %159

159:                                              ; preds = %148, %146, %144, %142, %140, %158
  %.lcssa = phi i32 [ %138, %158 ], [ %139, %140 ], [ %141, %142 ], [ %143, %144 ], [ %145, %146 ], [ %147, %148 ]
  %160 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %161 = trunc i64 %160 to i32
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %161)
  %163 = load ptr, ptr @stdout, align 8, !tbaa !9
  %164 = call i32 @fflush(ptr noundef %163)
  %165 = call ptr @ee2str(i32 noundef %.lcssa)
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %165)
  %167 = load ptr, ptr @stdout, align 8, !tbaa !9
  %168 = call i32 @fflush(ptr noundef %167)
  call void @exit(i32 noundef 1) #10
  unreachable

169:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %209

171:                                              ; preds = %149
  %172 = fsub double %150, %137
  %173 = fdiv double %172, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %27, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %174 unwind label %188

174:                                              ; preds = %171
  %175 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %27, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26)
  %.not69 = icmp eq i32 %175, 0
  br i1 %.not69, label %190, label %176

176:                                              ; preds = %174
  %177 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %178 = trunc i64 %177 to i32
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %178)
  %180 = load ptr, ptr @stdout, align 8, !tbaa !9
  %181 = call i32 @fflush(ptr noundef %180)
  %182 = call ptr @ee2str(i32 noundef %175)
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %182)
  %184 = load ptr, ptr @stdout, align 8, !tbaa !9
  %185 = call i32 @fflush(ptr noundef %184)
  call void @exit(i32 noundef 1) #10
  unreachable

186:                                              ; preds = %149
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %209

188:                                              ; preds = %171
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %208

190:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %29) #9
  %191 = load i32, ptr %24, align 4, !tbaa !13
  %192 = load i32, ptr %25, align 4, !tbaa !13
  %193 = load i32, ptr %26, align 4, !tbaa !13
  %194 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %43, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %191, i32 noundef %192, i32 noundef %193) #9
  %195 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %29) #9
  %196 = uitofp i32 %43 to double
  %197 = uitofp i32 %46 to double
  %198 = fmul double %196, %197
  %199 = uitofp i32 %49 to double
  %200 = fmul double %198, %199
  %201 = uitofp i32 %52 to double
  %202 = fmul double %200, %201
  %203 = load i32, ptr %4, align 4, !tbaa !5
  %204 = fdiv double %173, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %203, ptr noundef nonnull %28, double noundef %202, double noundef %204)
          to label %205 unwind label %206

205:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  ret i32 0

206:                                              ; preds = %190
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %28) #9
  br label %208

208:                                              ; preds = %206, %188
  %.pn70 = phi { ptr, i32 } [ %207, %206 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %209

209:                                              ; preds = %156, %169, %208, %186, %155, %127, %112
  %.pn73.pn = phi { ptr, i32 } [ %.pn, %155 ], [ %128, %127 ], [ %113, %112 ], [ %170, %169 ], [ %157, %156 ], [ %.pn70, %208 ], [ %187, %186 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %210

210:                                              ; preds = %209, %110
  %.pn73.pn.pn = phi { ptr, i32 } [ %.pn73.pn, %209 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %211

211:                                              ; preds = %210, %108, %88
  %.pn73.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn, %210 ], [ %109, %108 ], [ %89, %88 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %212

212:                                              ; preds = %211, %86
  %.pn73.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn.pn, %211 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %213

213:                                              ; preds = %212, %84
  %.pn73.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn.pn.pn, %212 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %214

214:                                              ; preds = %213, %82, %80
  %.pn73.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn.pn.pn.pn, %213 ], [ %83, %82 ], [ %81, %80 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn73.pn.pn.pn.pn.pn.pn
}

; 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; 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 @_Z24argmax_infer_output_sizeP6Tensor15ArgMaxParamSpecS0_P8ArchInfo(ptr noundef, i32, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

; 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 #0 align 2

declare noundef i32 @_Z6argmax6Tensor15ArgMaxParamSpecS_S_P8ArchInfo(ptr noundef, i32, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #8

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

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

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

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 = { 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 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 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 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!"_ZTS8DataType", !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 = !{!"_ZTS10DataFormat", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass