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

; 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.ClipParamSpec = type { float, float }
%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 [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8clipTestiPPc8DataType(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 i32, align 4
  %9 = alloca %struct.ClipParamSpec, align 4
  %10 = alloca %struct.TensorDesc, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %struct.TensorDesc, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.Tensor, align 8
  %17 = alloca %struct.TensorDesc, align 8
  %18 = alloca %class.Tensor, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.ClipParamSpec, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca i32, align 4
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %struct.ClipParamSpec, align 4
  %27 = alloca %class.Tensor, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %class.Tensor, align 8
  %31 = alloca %struct.ClipParamSpec, align 4
  %32 = alloca %class.Tensor, align 8
  %33 = alloca i32, align 4
  %34 = alloca %class.Tensor, align 8
  %35 = alloca %class.Tensor, align 8
  %36 = alloca double, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %class.Tensor, align 8
  %40 = alloca %struct.ClipParamSpec, align 4
  %41 = alloca %class.Tensor, align 8
  %42 = alloca i32, align 4
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca [150 x i8], align 16
  %46 = alloca [120 x i8], align 16
  %47 = 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
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 4
  br i1 %49, label %60, label %50

50:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %51 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %7, align 4, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %53)
  %55 = load ptr, ptr @stdout, align 8, !tbaa !9
  %56 = call i32 @fflush(ptr noundef %55)
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !9
  %59 = call i32 @fflush(ptr noundef %58)
  call void @exit(i32 noundef 1) #11
  unreachable

60:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 @atoi(ptr noundef %63) #12
  store i32 %64, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 2
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = call double @atof(ptr noundef %67) #12
  %69 = fptrunc double %68 to float
  %70 = getelementptr inbounds %struct.ClipParamSpec, ptr %9, i32 0, i32 0
  store float %69, ptr %70, align 4, !tbaa !13
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 3
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = call double @atof(ptr noundef %73) #12
  %75 = fptrunc double %74 to float
  %76 = getelementptr inbounds %struct.ClipParamSpec, ptr %9, i32 0, i32 1
  store float %75, ptr %76, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 92, ptr %10) #10
  %77 = load i32, ptr %6, align 4, !tbaa !11
  %78 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %10, i32 noundef %77, i32 noundef %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !11
  %81 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %79, i32 noundef %80, i32 noundef 0)
  store ptr %81, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %10, i64 92, i1 false), !tbaa.struct !17
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef byval(%struct.TensorDesc) align 8 %13)
          to label %82 unwind label %115

82:                                               ; preds = %60
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %83 unwind label %115

83:                                               ; preds = %82
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %84 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %16, i32 noundef 1)
          to label %85 unwind label %119

85:                                               ; preds = %83
  %86 = load ptr, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %10, i64 92, i1 false), !tbaa.struct !17
  %87 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %17)
          to label %88 unwind label %119

88:                                               ; preds = %85
  %89 = zext i32 %87 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %84, ptr noundef %86, i64 noundef %89)
          to label %90 unwind label %119

90:                                               ; preds = %88
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 1)
          to label %91 unwind label %123

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 1)
          to label %92 unwind label %127

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !21
  %93 = load <2 x float>, ptr %21, align 4
  %94 = invoke noundef i32 @_Z22clip_infer_output_sizeP6Tensor13ClipParamSpecS0_P8ArchInfo(ptr noundef %12, <2 x float> %93, ptr noundef %18, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %95 unwind label %131

95:                                               ; preds = %92
  store i32 %94, ptr %20, align 4, !tbaa !23
  %96 = load i32, ptr %20, align 4, !tbaa !23
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %139

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %99 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %22, align 4, !tbaa !5
  %101 = load i32, ptr %22, align 4, !tbaa !5
  %102 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %101)
          to label %103 unwind label %135

103:                                              ; preds = %98
  %104 = load ptr, ptr @stdout, align 8, !tbaa !9
  %105 = invoke i32 @fflush(ptr noundef %104)
          to label %106 unwind label %135

106:                                              ; preds = %103
  %107 = load i32, ptr %20, align 4, !tbaa !23
  %108 = invoke ptr @ee2str(i32 noundef %107)
          to label %109 unwind label %135

109:                                              ; preds = %106
  %110 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %108)
          to label %111 unwind label %135

111:                                              ; preds = %109
  %112 = load ptr, ptr @stdout, align 8, !tbaa !9
  %113 = invoke i32 @fflush(ptr noundef %112)
          to label %114 unwind label %135

114:                                              ; preds = %111
  call void @exit(i32 noundef 1) #11
  unreachable

115:                                              ; preds = %82, %60
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %14, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %15, align 4
  br label %313

119:                                              ; preds = %88, %85, %83
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  br label %313

123:                                              ; preds = %90
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %312

127:                                              ; preds = %91
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  br label %311

131:                                              ; preds = %92
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %14, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %15, align 4
  br label %166

135:                                              ; preds = %111, %109, %106, %103, %98
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %14, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %166

139:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %140 unwind label %167

140:                                              ; preds = %139
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %23, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %141 unwind label %167

141:                                              ; preds = %140
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef byval(%struct.TensorDesc) align 8 %23)
          to label %142 unwind label %167

142:                                              ; preds = %141
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %143 unwind label %167

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !21
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %144 = load <2 x float>, ptr %26, align 4
  %145 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef %25, <2 x float> %144, ptr noundef %27, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %146 unwind label %171

146:                                              ; preds = %143
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  store i32 %145, ptr %24, align 4, !tbaa !23
  %147 = load i32, ptr %24, align 4, !tbaa !23
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %179

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  %150 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %28, align 4, !tbaa !5
  %152 = load i32, ptr %28, align 4, !tbaa !5
  %153 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %152)
          to label %154 unwind label %175

154:                                              ; preds = %149
  %155 = load ptr, ptr @stdout, align 8, !tbaa !9
  %156 = invoke i32 @fflush(ptr noundef %155)
          to label %157 unwind label %175

157:                                              ; preds = %154
  %158 = load i32, ptr %24, align 4, !tbaa !23
  %159 = invoke ptr @ee2str(i32 noundef %158)
          to label %160 unwind label %175

160:                                              ; preds = %157
  %161 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %159)
          to label %162 unwind label %175

162:                                              ; preds = %160
  %163 = load ptr, ptr @stdout, align 8, !tbaa !9
  %164 = invoke i32 @fflush(ptr noundef %163)
          to label %165 unwind label %175

165:                                              ; preds = %162
  call void @exit(i32 noundef 1) #11
  unreachable

166:                                              ; preds = %135, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %310

167:                                              ; preds = %142, %141, %140, %139
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %14, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %15, align 4
  br label %310

171:                                              ; preds = %143
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %14, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %15, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %202

175:                                              ; preds = %162, %160, %157, %154, %149
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %14, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %202

179:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !21
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  %180 = load <2 x float>, ptr %31, align 4
  %181 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef %30, <2 x float> %180, ptr noundef %32, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %182 unwind label %203

182:                                              ; preds = %179
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  store i32 %181, ptr %29, align 4, !tbaa !23
  %183 = load i32, ptr %29, align 4, !tbaa !23
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %211

185:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  %186 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %187 = trunc i64 %186 to i32
  store i32 %187, ptr %33, align 4, !tbaa !5
  %188 = load i32, ptr %33, align 4, !tbaa !5
  %189 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %188)
          to label %190 unwind label %207

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

193:                                              ; preds = %190
  %194 = load i32, ptr %29, align 4, !tbaa !23
  %195 = invoke ptr @ee2str(i32 noundef %194)
          to label %196 unwind label %207

196:                                              ; preds = %193
  %197 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %195)
          to label %198 unwind label %207

198:                                              ; preds = %196
  %199 = load ptr, ptr @stdout, align 8, !tbaa !9
  %200 = invoke i32 @fflush(ptr noundef %199)
          to label %201 unwind label %207

201:                                              ; preds = %198
  call void @exit(i32 noundef 1) #11
  unreachable

202:                                              ; preds = %175, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %310

203:                                              ; preds = %179
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %14, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %15, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  br label %226

207:                                              ; preds = %198, %196, %193, %190, %185
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %14, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %226

211:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %212 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %34, i32 noundef 1)
          to label %213 unwind label %227

213:                                              ; preds = %211
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  %214 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %35, i32 noundef 1)
          to label %215 unwind label %231

215:                                              ; preds = %213
  %216 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %217 unwind label %231

217:                                              ; preds = %215
  %218 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %212, ptr noundef %214, i32 noundef %216, i32 noundef %218, float noundef 0.000000e+00)
          to label %219 unwind label %231

219:                                              ; preds = %217
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %220 = invoke noundef double @_Z10ut_time_msv()
          to label %221 unwind label %236

221:                                              ; preds = %219
  store double %220, ptr %36, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %272, %221
  %223 = load i32, ptr %37, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 6
  br i1 %224, label %240, label %225

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

226:                                              ; preds = %207, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %310

227:                                              ; preds = %211
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %14, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %15, align 4
  br label %235

231:                                              ; preds = %217, %215, %213
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %14, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %15, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  br label %235

235:                                              ; preds = %231, %227
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  br label %310

236:                                              ; preds = %219
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %14, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %15, align 4
  br label %309

240:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !21
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %241 = load <2 x float>, ptr %40, align 4
  %242 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef %39, <2 x float> %241, ptr noundef %41, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %243 unwind label %263

243:                                              ; preds = %240
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  store i32 %242, ptr %38, align 4, !tbaa !23
  %244 = load i32, ptr %38, align 4, !tbaa !23
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %271

246:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %247 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %248 = trunc i64 %247 to i32
  store i32 %248, ptr %42, align 4, !tbaa !5
  %249 = load i32, ptr %42, align 4, !tbaa !5
  %250 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %249)
          to label %251 unwind label %267

251:                                              ; preds = %246
  %252 = load ptr, ptr @stdout, align 8, !tbaa !9
  %253 = invoke i32 @fflush(ptr noundef %252)
          to label %254 unwind label %267

254:                                              ; preds = %251
  %255 = load i32, ptr %38, align 4, !tbaa !23
  %256 = invoke ptr @ee2str(i32 noundef %255)
          to label %257 unwind label %267

257:                                              ; preds = %254
  %258 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %256)
          to label %259 unwind label %267

259:                                              ; preds = %257
  %260 = load ptr, ptr @stdout, align 8, !tbaa !9
  %261 = invoke i32 @fflush(ptr noundef %260)
          to label %262 unwind label %267

262:                                              ; preds = %259
  call void @exit(i32 noundef 1) #11
  unreachable

263:                                              ; preds = %240
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %14, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %15, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %275

267:                                              ; preds = %259, %257, %254, %251, %246
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %14, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %275

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

272:                                              ; preds = %271
  %273 = load i32, ptr %37, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %37, align 4, !tbaa !5
  br label %222, !llvm.loop !27

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

276:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  %277 = invoke noundef double @_Z10ut_time_msv()
          to label %278 unwind label %300

278:                                              ; preds = %276
  store double %277, ptr %43, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %279 = load double, ptr %43, align 8, !tbaa !25
  %280 = load double, ptr %36, align 8, !tbaa !25
  %281 = fsub double %279, %280
  %282 = fdiv double %281, 6.000000e+00
  store double %282, ptr %44, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 150, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr %46) #10
  %283 = getelementptr inbounds [120 x i8], ptr %46, i64 0, i64 0
  %284 = load i32, ptr %8, align 4, !tbaa !5
  %285 = load i32, ptr %8, align 4, !tbaa !5
  %286 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %283, ptr noundef @.str.3, i32 noundef %284, i32 noundef %285) #10
  %287 = getelementptr inbounds [150 x i8], ptr %45, i64 0, i64 0
  %288 = getelementptr inbounds [120 x i8], ptr %46, i64 0, i64 0
  %289 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %287, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %288) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %290 = load i32, ptr %8, align 4, !tbaa !5
  %291 = uitofp i32 %290 to double
  %292 = fmul double 2.000000e+00, %291
  store double %292, ptr %47, align 8, !tbaa !25
  %293 = load i32, ptr %6, align 4, !tbaa !11
  %294 = getelementptr inbounds [150 x i8], ptr %45, i64 0, i64 0
  %295 = load double, ptr %47, align 8, !tbaa !25
  %296 = load double, ptr %44, align 8, !tbaa !25
  %297 = fdiv double %296, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %293, ptr noundef %294, double noundef %295, double noundef %297)
          to label %298 unwind label %304

298:                                              ; preds = %278
  %299 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %299) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  ret i32 0

300:                                              ; preds = %276
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %14, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %15, align 4
  br label %308

304:                                              ; preds = %278
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %14, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %308

308:                                              ; preds = %304, %300
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  br label %309

309:                                              ; preds = %308, %275, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %310

310:                                              ; preds = %309, %235, %226, %202, %167, %166
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  br label %311

311:                                              ; preds = %310, %127
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %312

312:                                              ; preds = %311, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  br label %313

313:                                              ; preds = %312, %119, %115
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %314

314:                                              ; preds = %313
  %315 = load ptr, ptr %14, align 8
  %316 = load i32, ptr %15, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

; 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 willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #7 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) #7 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) #8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef i32 @_Z22clip_infer_output_sizeP6Tensor13ClipParamSpecS0_P8ArchInfo(ptr noundef, <2 x float>, ptr noundef, ptr noundef) #3

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

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

declare noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef, <2 x float>, 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) #6

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

declare noundef double @_Z10ut_time_msv() #3

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { 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 = { 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 #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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, !15, i64 0}
!14 = !{!"_ZTS13ClipParamSpec", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{i64 0, i64 4, !11, i64 4, i64 4, !18, i64 8, i64 4, !5, i64 12, i64 80, !20}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS2EE", !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!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.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 [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8clipTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.TensorDesc, align 8
  %5 = alloca %class.Tensor, align 8
  %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 %class.Tensor, align 8
  %11 = alloca %class.Tensor, 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 [150 x i8], align 16
  %19 = alloca [120 x i8], align 16
  %20 = icmp eq i32 %0, 4
  br i1 %20, label %30, label %21

21:                                               ; preds = %3
  %22 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %23 = trunc i64 %22 to i32
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %23)
  %25 = load ptr, ptr @stdout, align 8, !tbaa !5
  %26 = tail call i32 @fflush(ptr noundef %25)
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %28 = load ptr, ptr @stdout, align 8, !tbaa !5
  %29 = tail call i32 @fflush(ptr noundef %28)
  tail call void @exit(i32 noundef 1) #12
  unreachable

30:                                               ; preds = %3
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = tail call i32 @atoi(ptr nocapture noundef %32) #13
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = tail call double @atof(ptr noundef %35) #13
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = tail call double @atof(ptr noundef %38) #13
  %40 = insertelement <2 x double> poison, double %36, i64 0
  %41 = insertelement <2 x double> %40, double %39, i64 1
  %42 = fptrunc <2 x double> %41 to <2 x float>
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %4) #11
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %4, i32 noundef %2, i32 noundef %33)
  %43 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %33, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %44 unwind label %66

44:                                               ; preds = %30
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %45 unwind label %66

45:                                               ; preds = %44
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  %46 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %6, i32 noundef 1)
          to label %47 unwind label %68

47:                                               ; preds = %45
  %48 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %49 unwind label %68

49:                                               ; preds = %47
  %50 = zext i32 %48 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %46, ptr noundef %43, i64 noundef %50)
          to label %51 unwind label %68

51:                                               ; preds = %49
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #11
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1)
          to label %52 unwind label %70

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %53 unwind label %72

53:                                               ; preds = %52
  %54 = invoke noundef i32 @_Z22clip_infer_output_sizeP6Tensor13ClipParamSpecS0_P8ArchInfo(ptr noundef nonnull %5, <2 x float> %42, ptr noundef nonnull %7, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %55 unwind label %74

55:                                               ; preds = %53
  %.not = icmp eq i32 %54, 0
  br i1 %.not, label %76, label %56

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

66:                                               ; preds = %44, %30
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %170

68:                                               ; preds = %49, %47, %45
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  br label %170

70:                                               ; preds = %51
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %169

72:                                               ; preds = %52
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %168

74:                                               ; preds = %53
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %167

76:                                               ; preds = %55
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %77 unwind label %93

77:                                               ; preds = %76
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %78 unwind label %93

78:                                               ; preds = %77
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
          to label %79 unwind label %93

79:                                               ; preds = %78
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %80 unwind label %93

80:                                               ; preds = %79
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %81 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %10, <2 x float> %42, ptr noundef nonnull %11, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %82 unwind label %95

82:                                               ; preds = %80
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  %.not55 = icmp eq i32 %81, 0
  br i1 %.not55, label %97, label %83

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

93:                                               ; preds = %79, %78, %77, %76
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %167

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

97:                                               ; preds = %82
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  %98 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %12, <2 x float> %42, ptr noundef nonnull %13, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %99 unwind label %110

99:                                               ; preds = %97
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  %.not56 = icmp eq i32 %98, 0
  br i1 %.not56, label %112, label %100

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

110:                                              ; preds = %97
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %167

112:                                              ; preds = %99
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %113 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %14, i32 noundef 1)
          to label %114 unwind label %134

114:                                              ; preds = %112
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  %115 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %15, i32 noundef 1)
          to label %116 unwind label %136

116:                                              ; preds = %114
  %117 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %118 unwind label %136

118:                                              ; preds = %116
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %113, ptr noundef %115, i32 noundef %117, i32 noundef %2, float noundef 0.000000e+00)
          to label %119 unwind label %136

119:                                              ; preds = %118
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  %120 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %139

.preheader.preheader:                             ; preds = %119
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %121 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %141 unwind label %152

.preheader.1:                                     ; preds = %141
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %122 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %123 unwind label %152

123:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66.1 = icmp eq i32 %122, 0
  br i1 %.not66.1, label %.preheader.2, label %142

.preheader.2:                                     ; preds = %123
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %124 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %125 unwind label %152

125:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66.2 = icmp eq i32 %124, 0
  br i1 %.not66.2, label %.preheader.3, label %142

.preheader.3:                                     ; preds = %125
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %126 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %127 unwind label %152

127:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66.3 = icmp eq i32 %126, 0
  br i1 %.not66.3, label %.preheader.4, label %142

.preheader.4:                                     ; preds = %127
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %128 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %129 unwind label %152

129:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66.4 = icmp eq i32 %128, 0
  br i1 %.not66.4, label %.preheader.5, label %142

.preheader.5:                                     ; preds = %129
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %130 = invoke noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %131 unwind label %152

131:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66.5 = icmp eq i32 %130, 0
  br i1 %.not66.5, label %132, label %142

132:                                              ; preds = %131
  %133 = invoke noundef double @_Z10ut_time_msv()
          to label %154 unwind label %163

134:                                              ; preds = %112
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %118, %116, %114
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  br label %138

138:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  br label %167

139:                                              ; preds = %119
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %167

141:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not66 = icmp eq i32 %121, 0
  br i1 %.not66, label %.preheader.1, label %142

142:                                              ; preds = %131, %129, %127, %125, %123, %141
  %.lcssa = phi i32 [ %121, %141 ], [ %122, %123 ], [ %124, %125 ], [ %126, %127 ], [ %128, %129 ], [ %130, %131 ]
  %143 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %144 = trunc i64 %143 to i32
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %144)
  %146 = load ptr, ptr @stdout, align 8, !tbaa !5
  %147 = call i32 @fflush(ptr noundef %146)
  %148 = call ptr @ee2str(i32 noundef %.lcssa)
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %148)
  %150 = load ptr, ptr @stdout, align 8, !tbaa !5
  %151 = call i32 @fflush(ptr noundef %150)
  call void @exit(i32 noundef 1) #12
  unreachable

152:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %167

154:                                              ; preds = %132
  %155 = fsub double %133, %120
  %156 = fdiv double %155, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #11
  %157 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %33, i32 noundef %33) #11
  %158 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %19) #11
  %159 = uitofp i32 %33 to double
  %160 = fmul double %159, 2.000000e+00
  %161 = fdiv double %156, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %18, double noundef %160, double noundef %161)
          to label %162 unwind label %165

162:                                              ; preds = %154
  call void @free(ptr noundef %43) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %18) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #11
  ret i32 0

163:                                              ; preds = %132
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %167

165:                                              ; preds = %154
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %18) #11
  br label %167

167:                                              ; preds = %139, %152, %165, %163, %138, %110, %95, %93, %74
  %.pn60.pn = phi { ptr, i32 } [ %.pn, %138 ], [ %111, %110 ], [ %96, %95 ], [ %94, %93 ], [ %75, %74 ], [ %153, %152 ], [ %140, %139 ], [ %166, %165 ], [ %164, %163 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %168

168:                                              ; preds = %167, %72
  %.pn60.pn.pn = phi { ptr, i32 } [ %.pn60.pn, %167 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  br label %169

169:                                              ; preds = %168, %70
  %.pn60.pn.pn.pn = phi { ptr, i32 } [ %.pn60.pn.pn, %168 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  br label %170

170:                                              ; preds = %169, %68, %66
  %.pn60.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn60.pn.pn.pn, %169 ], [ %69, %68 ], [ %67, %66 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #11
  resume { ptr, i32 } %.pn60.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 nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, 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 #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #7 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 #7 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 #7 align 2

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

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

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

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

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

declare noundef i32 @_Z22clip_infer_output_sizeP6Tensor13ClipParamSpecS0_P8ArchInfo(ptr noundef, <2 x float>, ptr noundef, ptr noundef) local_unnamed_addr #9

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

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

declare noundef i32 @_Z4clip6Tensor13ClipParamSpecS_P8ArchInfo(ptr noundef, <2 x float>, ptr noundef, ptr noundef) local_unnamed_addr #9

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

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

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #9

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #10

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { 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 = { 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 #9 = { "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 #10 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #11 = { nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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