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

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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [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 [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13layerNormTestiPPc8DataType(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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.LayerNormParamSpec, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.Tensor, align 8
  %16 = alloca %struct.TensorDesc, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.TensorDesc, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %class.Tensor, align 8
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %class.Tensor, align 8
  %27 = alloca i32, align 4
  %28 = alloca %struct.LayerNormParamSpec, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.TensorDesc, align 4
  %31 = alloca %struct.TensorDesc, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i32, align 4
  %38 = alloca %class.Tensor, align 8
  %39 = alloca %class.Tensor, align 8
  %40 = alloca %class.Tensor, align 8
  %41 = alloca %struct.TensorDesc, align 4
  %42 = alloca %struct.TensorDesc, align 4
  %43 = alloca %struct.TensorDesc, align 4
  %44 = alloca %struct.TensorDesc, align 4
  %45 = alloca %struct.TensorDesc, align 8
  %46 = alloca %struct.TensorDesc, align 8
  %47 = alloca %class.Tensor, align 8
  %48 = alloca %struct.TensorDesc, align 8
  %49 = alloca %class.Tensor, align 8
  %50 = alloca %struct.TensorDesc, align 8
  %51 = alloca i32, align 4
  %52 = alloca %class.Tensor, align 8
  %53 = alloca %struct.LayerNormParamSpec, align 4
  %54 = alloca %class.Tensor, align 8
  %55 = alloca %class.Tensor, align 8
  %56 = alloca %class.Tensor, align 8
  %57 = alloca %class.Tensor, align 8
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca %class.Tensor, align 8
  %61 = alloca %struct.LayerNormParamSpec, align 4
  %62 = alloca %class.Tensor, align 8
  %63 = alloca %class.Tensor, align 8
  %64 = alloca %class.Tensor, align 8
  %65 = alloca %class.Tensor, align 8
  %66 = alloca i32, align 4
  %67 = alloca %class.Tensor, align 8
  %68 = alloca %class.Tensor, align 8
  %69 = alloca double, align 8
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca %class.Tensor, align 8
  %73 = alloca %struct.LayerNormParamSpec, align 4
  %74 = alloca %class.Tensor, align 8
  %75 = alloca %class.Tensor, align 8
  %76 = alloca %class.Tensor, align 8
  %77 = alloca %class.Tensor, align 8
  %78 = alloca i32, align 4
  %79 = alloca double, align 8
  %80 = alloca double, align 8
  %81 = alloca [150 x i8], align 16
  %82 = alloca [120 x i8], align 16
  %83 = 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
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 6
  br i1 %85, label %96, label %86

86:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %87 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %89)
  %91 = load ptr, ptr @stdout, align 8, !tbaa !9
  %92 = call i32 @fflush(ptr noundef %91)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %94 = load ptr, ptr @stdout, align 8, !tbaa !9
  %95 = call i32 @fflush(ptr noundef %94)
  call void @exit(i32 noundef 1) #11
  unreachable

96:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %97 = load ptr, ptr %5, align 8, !tbaa !9
  %98 = getelementptr inbounds ptr, ptr %97, i64 1
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = call i32 @atoi(ptr noundef %99) #12
  store i32 %100, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = getelementptr inbounds ptr, ptr %101, i64 2
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = call i32 @atoi(ptr noundef %103) #12
  store i32 %104, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 3
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = call i32 @atoi(ptr noundef %107) #12
  store i32 %108, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  %109 = load ptr, ptr %5, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 4
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = call i32 @atoi(ptr noundef %111) #12
  store i32 %112, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  %113 = load ptr, ptr %5, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %113, i64 5
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call i32 @atoi(ptr noundef %115) #12
  store i32 %116, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %117 = getelementptr inbounds %struct.LayerNormParamSpec, ptr %13, i32 0, i32 0
  store i32 -1, ptr %117, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 15, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 92, ptr %16) #10
  %118 = load i32, ptr %6, align 4, !tbaa !11
  %119 = load i32, ptr %14, align 4, !tbaa !16
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = load i32, ptr %11, align 4, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !5
  invoke void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %16, i32 noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %122)
          to label %123 unwind label %163

123:                                              ; preds = %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef byval(%struct.TensorDesc) align 8 %19)
          to label %124 unwind label %163

124:                                              ; preds = %123
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %125 unwind label %163

125:                                              ; preds = %124
  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 %16, i64 92, i1 false), !tbaa.struct !18
  %126 = invoke noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %21)
          to label %127 unwind label %167

127:                                              ; preds = %125
  store i32 %126, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %128 = load i32, ptr %20, align 4, !tbaa !5
  %129 = load i32, ptr %6, align 4, !tbaa !11
  %130 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %128, i32 noundef %129, i32 noundef 0)
          to label %131 unwind label %171

131:                                              ; preds = %127
  store ptr %130, ptr %22, align 8, !tbaa !9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %132 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %23, i32 noundef 1)
          to label %133 unwind label %175

133:                                              ; preds = %131
  %134 = load ptr, ptr %22, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !18
  %135 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %24)
          to label %136 unwind label %175

136:                                              ; preds = %133
  %137 = zext i32 %135 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %132, ptr noundef %134, i64 noundef %137)
          to label %138 unwind label %175

138:                                              ; preds = %136
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 1)
          to label %139 unwind label %179

139:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %26, i32 noundef 1)
          to label %140 unwind label %183

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !20
  %141 = load i64, ptr %28, align 4
  %142 = invoke noundef i32 @_Z28layer_norm_infer_output_sizeP6Tensor18LayerNormParamSpecS0_P8ArchInfo(ptr noundef %15, i64 %141, ptr noundef %25, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %143 unwind label %187

143:                                              ; preds = %140
  store i32 %142, ptr %27, align 4, !tbaa !22
  %144 = load i32, ptr %27, align 4, !tbaa !22
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %195

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

151:                                              ; preds = %146
  %152 = load ptr, ptr @stdout, align 8, !tbaa !9
  %153 = invoke i32 @fflush(ptr noundef %152)
          to label %154 unwind label %191

154:                                              ; preds = %151
  %155 = load i32, ptr %27, align 4, !tbaa !22
  %156 = invoke ptr @ee2str(i32 noundef %155)
          to label %157 unwind label %191

157:                                              ; preds = %154
  %158 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %156)
          to label %159 unwind label %191

159:                                              ; preds = %157
  %160 = load ptr, ptr @stdout, align 8, !tbaa !9
  %161 = invoke i32 @fflush(ptr noundef %160)
          to label %162 unwind label %191

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

163:                                              ; preds = %124, %123, %96
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %17, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %18, align 4
  br label %505

167:                                              ; preds = %125
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %17, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %18, align 4
  br label %504

171:                                              ; preds = %127
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %17, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %18, align 4
  br label %503

175:                                              ; preds = %136, %133, %131
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %17, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  br label %503

179:                                              ; preds = %138
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %17, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %18, align 4
  br label %502

183:                                              ; preds = %139
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %17, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %18, align 4
  br label %501

187:                                              ; preds = %140
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %17, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %18, align 4
  br label %231

191:                                              ; preds = %159, %157, %154, %151, %146
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %17, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %231

195:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %196 unwind label %232

196:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 92, ptr %30) #10
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %30, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %197 unwind label %236

197:                                              ; preds = %196
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %30, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef byval(%struct.TensorDesc) align 8 %31)
          to label %198 unwind label %236

198:                                              ; preds = %197
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %199 unwind label %236

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  %200 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %201 unwind label %240

201:                                              ; preds = %199
  store i32 %200, ptr %32, align 4, !tbaa !5
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = load i32, ptr %10, align 4, !tbaa !5
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = mul i32 %203, %204
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = mul i32 %205, %206
  %208 = icmp eq i32 %202, %207
  br i1 %208, label %209, label %217

209:                                              ; preds = %201
  %210 = load i32, ptr %32, align 4, !tbaa !5
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = mul i32 %211, %212
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = mul i32 %213, %214
  %216 = icmp eq i32 %210, %215
  br i1 %216, label %248, label %217

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

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

225:                                              ; preds = %222
  %226 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %227 unwind label %244

227:                                              ; preds = %225
  %228 = load ptr, ptr @stdout, align 8, !tbaa !9
  %229 = invoke i32 @fflush(ptr noundef %228)
          to label %230 unwind label %244

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

231:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %500

232:                                              ; preds = %195
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %17, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %18, align 4
  br label %500

236:                                              ; preds = %198, %197, %196
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %17, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %18, align 4
  br label %499

240:                                              ; preds = %199
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %17, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %18, align 4
  br label %498

244:                                              ; preds = %227, %225, %222, %217
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %17, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %498

248:                                              ; preds = %209
  %249 = load i32, ptr %10, align 4, !tbaa !5
  %250 = zext i32 %249 to i64
  %251 = call ptr @llvm.stacksave.p0()
  store ptr %251, ptr %34, align 8
  %252 = alloca i32, i64 %250, align 16
  store i64 %250, ptr %35, align 8
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = zext i32 %253 to i64
  %255 = alloca i32, i64 %254, align 16
  store i64 %254, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %256

256:                                              ; preds = %270, %248
  %257 = load i32, ptr %37, align 4, !tbaa !5
  %258 = load i32, ptr %10, align 4, !tbaa !5
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %261, label %260

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

261:                                              ; preds = %256
  %262 = load i32, ptr %8, align 4, !tbaa !5
  %263 = load i32, ptr %37, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds i32, ptr %252, i64 %264
  store i32 %262, ptr %265, align 4, !tbaa !5
  %266 = load i32, ptr %9, align 4, !tbaa !5
  %267 = load i32, ptr %37, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds i32, ptr %255, i64 %268
  store i32 %266, ptr %269, align 4, !tbaa !5
  br label %270

270:                                              ; preds = %261
  %271 = load i32, ptr %37, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %37, align 4, !tbaa !5
  br label %256, !llvm.loop !24

273:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 1)
          to label %274 unwind label %321

274:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %39, i32 noundef 1)
          to label %275 unwind label %325

275:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 1)
          to label %276 unwind label %329

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 92, ptr %41) #10
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %41) #10
  call void @llvm.lifetime.start.p0(i64 92, ptr %42) #10
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %42) #10
  call void @llvm.lifetime.start.p0(i64 92, ptr %43) #10
  %277 = load i32, ptr %6, align 4, !tbaa !11
  %278 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %43, i32 noundef %277, i32 noundef %278)
          to label %279 unwind label %333

279:                                              ; preds = %276
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %43, i64 92, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 92, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 92, ptr %44) #10
  %280 = load i32, ptr %6, align 4, !tbaa !11
  %281 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %44, i32 noundef %280, i32 noundef %281)
          to label %282 unwind label %337

282:                                              ; preds = %279
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %44, i64 92, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 92, ptr %44) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %41, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef byval(%struct.TensorDesc) align 8 %45)
          to label %283 unwind label %341

283:                                              ; preds = %282
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %42, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef byval(%struct.TensorDesc) align 8 %46)
          to label %284 unwind label %341

284:                                              ; preds = %283
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %285 unwind label %341

285:                                              ; preds = %284
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %286 unwind label %341

286:                                              ; preds = %285
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  %287 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %47, i32 noundef 1)
          to label %288 unwind label %345

288:                                              ; preds = %286
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %41, i64 92, i1 false), !tbaa.struct !18
  %289 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %48)
          to label %290 unwind label %345

290:                                              ; preds = %288
  %291 = zext i32 %289 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %287, ptr noundef %252, i64 noundef %291)
          to label %292 unwind label %345

292:                                              ; preds = %290
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  %293 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %49, i32 noundef 1)
          to label %294 unwind label %349

294:                                              ; preds = %292
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %42, i64 92, i1 false), !tbaa.struct !18
  %295 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %50)
          to label %296 unwind label %349

296:                                              ; preds = %294
  %297 = zext i32 %295 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %293, ptr noundef %255, i64 noundef %297)
          to label %298 unwind label %349

298:                                              ; preds = %296
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !20
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull align 8 dereferenceable(32) %40) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  %299 = load i64, ptr %53, align 4
  %300 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef %52, i64 %299, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %301 unwind label %353

301:                                              ; preds = %298
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #10
  store i32 %300, ptr %51, align 4, !tbaa !22
  %302 = load i32, ptr %51, align 4, !tbaa !22
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %361

304:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  %305 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %306 = trunc i64 %305 to i32
  store i32 %306, ptr %58, align 4, !tbaa !5
  %307 = load i32, ptr %58, align 4, !tbaa !5
  %308 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %307)
          to label %309 unwind label %357

309:                                              ; preds = %304
  %310 = load ptr, ptr @stdout, align 8, !tbaa !9
  %311 = invoke i32 @fflush(ptr noundef %310)
          to label %312 unwind label %357

312:                                              ; preds = %309
  %313 = load i32, ptr %51, align 4, !tbaa !22
  %314 = invoke ptr @ee2str(i32 noundef %313)
          to label %315 unwind label %357

315:                                              ; preds = %312
  %316 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %314)
          to label %317 unwind label %357

317:                                              ; preds = %315
  %318 = load ptr, ptr @stdout, align 8, !tbaa !9
  %319 = invoke i32 @fflush(ptr noundef %318)
          to label %320 unwind label %357

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

321:                                              ; preds = %273
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %17, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %18, align 4
  br label %497

325:                                              ; preds = %274
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %17, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %18, align 4
  br label %496

329:                                              ; preds = %275
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %17, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %18, align 4
  br label %495

333:                                              ; preds = %276
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %17, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %43) #10
  br label %494

337:                                              ; preds = %279
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %17, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %44) #10
  br label %494

341:                                              ; preds = %285, %284, %283, %282
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %17, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %18, align 4
  br label %494

345:                                              ; preds = %290, %288, %286
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %17, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  br label %494

349:                                              ; preds = %296, %294, %292
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %17, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #10
  br label %494

353:                                              ; preds = %298
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %17, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #10
  br label %384

357:                                              ; preds = %317, %315, %312, %309, %304
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %17, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %384

361:                                              ; preds = %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !20
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef nonnull align 8 dereferenceable(32) %40) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  %362 = load i64, ptr %61, align 4
  %363 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef %60, i64 %362, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %364 unwind label %385

364:                                              ; preds = %361
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #10
  store i32 %363, ptr %59, align 4, !tbaa !22
  %365 = load i32, ptr %59, align 4, !tbaa !22
  %366 = icmp ne i32 %365, 0
  br i1 %366, label %367, label %393

367:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #10
  %368 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %369 = trunc i64 %368 to i32
  store i32 %369, ptr %66, align 4, !tbaa !5
  %370 = load i32, ptr %66, align 4, !tbaa !5
  %371 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %370)
          to label %372 unwind label %389

372:                                              ; preds = %367
  %373 = load ptr, ptr @stdout, align 8, !tbaa !9
  %374 = invoke i32 @fflush(ptr noundef %373)
          to label %375 unwind label %389

375:                                              ; preds = %372
  %376 = load i32, ptr %59, align 4, !tbaa !22
  %377 = invoke ptr @ee2str(i32 noundef %376)
          to label %378 unwind label %389

378:                                              ; preds = %375
  %379 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %377)
          to label %380 unwind label %389

380:                                              ; preds = %378
  %381 = load ptr, ptr @stdout, align 8, !tbaa !9
  %382 = invoke i32 @fflush(ptr noundef %381)
          to label %383 unwind label %389

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

384:                                              ; preds = %357, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  br label %494

385:                                              ; preds = %361
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %17, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #10
  br label %407

389:                                              ; preds = %380, %378, %375, %372, %367
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %17, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  br label %407

393:                                              ; preds = %364
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  %394 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %67, i32 noundef 1)
          to label %395 unwind label %408

395:                                              ; preds = %393
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %68, ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  %396 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %68, i32 noundef 1)
          to label %397 unwind label %412

397:                                              ; preds = %395
  %398 = load i32, ptr %32, align 4, !tbaa !5
  %399 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %394, ptr noundef %396, i32 noundef %398, i32 noundef %399, float noundef 0x3EB0C6F7A0000000)
          to label %400 unwind label %412

400:                                              ; preds = %397
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #10
  %401 = invoke noundef double @_Z10ut_time_msv()
          to label %402 unwind label %417

402:                                              ; preds = %400
  store double %401, ptr %69, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #10
  store i32 0, ptr %70, align 4, !tbaa !5
  br label %403

403:                                              ; preds = %453, %402
  %404 = load i32, ptr %70, align 4, !tbaa !5
  %405 = icmp slt i32 %404, 6
  br i1 %405, label %421, label %406

406:                                              ; preds = %403
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %457

407:                                              ; preds = %389, %385
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  br label %494

408:                                              ; preds = %393
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %17, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %18, align 4
  br label %416

412:                                              ; preds = %397, %395
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %17, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #10
  br label %416

416:                                              ; preds = %412, %408
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #10
  br label %494

417:                                              ; preds = %400
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %17, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %18, align 4
  br label %493

421:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %72, ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !20
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef nonnull align 8 dereferenceable(32) %40) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  %422 = load i64, ptr %73, align 4
  %423 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef %72, i64 %422, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %424 unwind label %444

424:                                              ; preds = %421
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %76) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %74) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #10
  store i32 %423, ptr %71, align 4, !tbaa !22
  %425 = load i32, ptr %71, align 4, !tbaa !22
  %426 = icmp ne i32 %425, 0
  br i1 %426, label %427, label %452

427:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #10
  %428 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %429 = trunc i64 %428 to i32
  store i32 %429, ptr %78, align 4, !tbaa !5
  %430 = load i32, ptr %78, align 4, !tbaa !5
  %431 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %430)
          to label %432 unwind label %448

432:                                              ; preds = %427
  %433 = load ptr, ptr @stdout, align 8, !tbaa !9
  %434 = invoke i32 @fflush(ptr noundef %433)
          to label %435 unwind label %448

435:                                              ; preds = %432
  %436 = load i32, ptr %71, align 4, !tbaa !22
  %437 = invoke ptr @ee2str(i32 noundef %436)
          to label %438 unwind label %448

438:                                              ; preds = %435
  %439 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %437)
          to label %440 unwind label %448

440:                                              ; preds = %438
  %441 = load ptr, ptr @stdout, align 8, !tbaa !9
  %442 = invoke i32 @fflush(ptr noundef %441)
          to label %443 unwind label %448

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

444:                                              ; preds = %421
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %17, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %18, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %76) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %74) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #10
  br label %456

448:                                              ; preds = %440, %438, %435, %432, %427
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %17, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #10
  br label %456

452:                                              ; preds = %424
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  br label %453

453:                                              ; preds = %452
  %454 = load i32, ptr %70, align 4, !tbaa !5
  %455 = add nsw i32 %454, 1
  store i32 %455, ptr %70, align 4, !tbaa !5
  br label %403, !llvm.loop !28

456:                                              ; preds = %448, %444
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %493

457:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #10
  %458 = invoke noundef double @_Z10ut_time_msv()
          to label %459 unwind label %484

459:                                              ; preds = %457
  store double %458, ptr %79, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #10
  %460 = load double, ptr %79, align 8, !tbaa !26
  %461 = load double, ptr %69, align 8, !tbaa !26
  %462 = fsub double %460, %461
  %463 = fdiv double %462, 6.000000e+00
  store double %463, ptr %80, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 150, ptr %81) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr %82) #10
  %464 = getelementptr inbounds [120 x i8], ptr %82, i64 0, i64 0
  %465 = load i32, ptr %10, align 4, !tbaa !5
  %466 = load i32, ptr %11, align 4, !tbaa !5
  %467 = load i32, ptr %12, align 4, !tbaa !5
  %468 = load i32, ptr %10, align 4, !tbaa !5
  %469 = load i32, ptr %11, align 4, !tbaa !5
  %470 = load i32, ptr %12, align 4, !tbaa !5
  %471 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %464, ptr noundef @.str.3, i32 noundef %465, i32 noundef %466, i32 noundef %467, i32 noundef %468, i32 noundef %469, i32 noundef %470) #10
  %472 = getelementptr inbounds [150 x i8], ptr %81, i64 0, i64 0
  %473 = getelementptr inbounds [120 x i8], ptr %82, i64 0, i64 0
  %474 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %472, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %473) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #10
  %475 = load i32, ptr %20, align 4, !tbaa !5
  %476 = uitofp i32 %475 to double
  store double %476, ptr %83, align 8, !tbaa !26
  %477 = load i32, ptr %6, align 4, !tbaa !11
  %478 = getelementptr inbounds [150 x i8], ptr %81, i64 0, i64 0
  %479 = load double, ptr %83, align 8, !tbaa !26
  %480 = load double, ptr %80, align 8, !tbaa !26
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %477, ptr noundef %478, double noundef %479, double noundef %480)
          to label %481 unwind label %488

481:                                              ; preds = %459
  %482 = load ptr, ptr %22, align 8, !tbaa !9
  call void @free(ptr noundef %482) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %82) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #10
  %483 = load ptr, ptr %34, align 8
  call void @llvm.stackrestore.p0(ptr %483)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %30) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  ret i32 0

484:                                              ; preds = %457
  %485 = landingpad { ptr, i32 }
          cleanup
  %486 = extractvalue { ptr, i32 } %485, 0
  store ptr %486, ptr %17, align 8
  %487 = extractvalue { ptr, i32 } %485, 1
  store i32 %487, ptr %18, align 4
  br label %492

488:                                              ; preds = %459
  %489 = landingpad { ptr, i32 }
          cleanup
  %490 = extractvalue { ptr, i32 } %489, 0
  store ptr %490, ptr %17, align 8
  %491 = extractvalue { ptr, i32 } %489, 1
  store i32 %491, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %82) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #10
  br label %492

492:                                              ; preds = %488, %484
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  br label %493

493:                                              ; preds = %492, %456, %417
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #10
  br label %494

494:                                              ; preds = %493, %416, %407, %384, %349, %345, %341, %337, %333
  call void @llvm.lifetime.end.p0(i64 92, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #10
  br label %495

495:                                              ; preds = %494, %329
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %496

496:                                              ; preds = %495, %325
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  br label %497

497:                                              ; preds = %496, %321
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #10
  br label %498

498:                                              ; preds = %497, %244, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %499

499:                                              ; preds = %498, %236
  call void @llvm.lifetime.end.p0(i64 92, ptr %30) #10
  br label %500

500:                                              ; preds = %499, %232, %231
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  br label %501

501:                                              ; preds = %500, %183
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %502

502:                                              ; preds = %501, %179
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  br label %503

503:                                              ; preds = %502, %175, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %504

504:                                              ; preds = %503, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %505

505:                                              ; preds = %504, %163
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %506

506:                                              ; preds = %505
  %507 = load ptr, ptr %17, align 8
  %508 = load i32, ptr %18, align 4
  %509 = insertvalue { ptr, i32 } poison, ptr %507, 0
  %510 = insertvalue { ptr, i32 } %509, i32 %508, 1
  resume { ptr, i32 } %510
}

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

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

declare i32 @__gxx_personality_v0(...)

; 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

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

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

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

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

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

declare noundef i32 @_Z28layer_norm_infer_output_sizeP6Tensor18LayerNormParamSpecS0_P8ArchInfo(ptr noundef, i64, ptr noundef, ptr noundef) #3

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

; 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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #9

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

; 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

declare noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef, i64, ptr noundef, ptr noundef, 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) #6

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #9

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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn }
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, !6, i64 0}
!14 = !{!"_ZTS18LayerNormParamSpec", !6, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{i64 0, i64 4, !11, i64 4, i64 4, !16, i64 8, i64 4, !5, i64 12, i64 80, !19}
!19 = !{!7, !7, i64 0}
!20 = !{i64 0, i64 4, !5, i64 4, i64 4, !21}
!21 = !{!15, !15, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS2EE", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !25}


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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [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 [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13layerNormTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Tensor, align 8
  %5 = alloca %struct.TensorDesc, 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 %struct.TensorDesc, align 8
  %14 = alloca %struct.TensorDesc, align 8
  %15 = alloca %struct.TensorDesc, align 4
  %16 = alloca %struct.TensorDesc, align 4
  %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 %class.Tensor, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %class.Tensor, align 8
  %27 = alloca %class.Tensor, align 8
  %28 = alloca %class.Tensor, align 8
  %29 = alloca %class.Tensor, align 8
  %30 = alloca %class.Tensor, align 8
  %31 = alloca %class.Tensor, align 8
  %32 = alloca %class.Tensor, align 8
  %33 = alloca %class.Tensor, align 8
  %34 = alloca %class.Tensor, align 8
  %35 = alloca %class.Tensor, align 8
  %36 = alloca [150 x i8], align 16
  %37 = alloca [120 x i8], align 16
  %38 = icmp eq i32 %0, 6
  br i1 %38, label %48, label %39

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

48:                                               ; preds = %3
  %49 = getelementptr inbounds i8, ptr %1, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = tail call i32 @atoi(ptr nocapture noundef %50) #14
  %52 = getelementptr inbounds i8, ptr %1, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = tail call i32 @atoi(ptr nocapture noundef %53) #14
  %55 = getelementptr inbounds i8, ptr %1, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = tail call i32 @atoi(ptr nocapture noundef %56) #14
  %58 = getelementptr inbounds i8, ptr %1, i64 32
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = tail call i32 @atoi(ptr nocapture noundef %59) #14
  %61 = getelementptr inbounds i8, ptr %1, i64 40
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = tail call i32 @atoi(ptr nocapture noundef %62) #14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #12
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %5) #12
  invoke void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %5, i32 noundef %2, i32 noundef 15, i32 noundef %57, i32 noundef %60, i32 noundef %63)
          to label %64 unwind label %90

64:                                               ; preds = %48
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %65 unwind label %90

65:                                               ; preds = %64
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %66 unwind label %90

66:                                               ; preds = %65
  %67 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
  %68 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %67, i32 noundef %2, i32 noundef 0)
          to label %69 unwind label %92

69:                                               ; preds = %66
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  %70 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %6, i32 noundef 1)
          to label %71 unwind label %94

71:                                               ; preds = %69
  %72 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %73 unwind label %94

73:                                               ; preds = %71
  %74 = zext i32 %72 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %70, ptr noundef %68, i64 noundef %74)
          to label %75 unwind label %94

75:                                               ; preds = %73
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1)
          to label %76 unwind label %96

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %77 unwind label %98

77:                                               ; preds = %76
  %78 = invoke noundef i32 @_Z28layer_norm_infer_output_sizeP6Tensor18LayerNormParamSpecS0_P8ArchInfo(ptr noundef nonnull %4, i64 4294967295, ptr noundef nonnull %7, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %79 unwind label %100

79:                                               ; preds = %77
  %.not = icmp eq i32 %78, 0
  br i1 %.not, label %102, label %80

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

90:                                               ; preds = %65, %64, %48
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %266

92:                                               ; preds = %66
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %266

94:                                               ; preds = %73, %71, %69
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  br label %266

96:                                               ; preds = %75
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %265

98:                                               ; preds = %76
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %264

100:                                              ; preds = %77
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %263

102:                                              ; preds = %79
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %103 unwind label %122

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #12
  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 %104 unwind label %124

104:                                              ; preds = %103
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
          to label %105 unwind label %124

105:                                              ; preds = %104
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %106 unwind label %124

106:                                              ; preds = %105
  %107 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %108 unwind label %126

108:                                              ; preds = %106
  %109 = mul i32 %60, %57
  %110 = mul i32 %109, %63
  %111 = icmp eq i32 %67, %110
  %112 = icmp eq i32 %107, %110
  %or.cond = and i1 %111, %112
  br i1 %or.cond, label %128, label %113

113:                                              ; preds = %108
  %114 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %115 = trunc i64 %114 to i32
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %115)
  %117 = load ptr, ptr @stdout, align 8, !tbaa !5
  %118 = call i32 @fflush(ptr noundef %117)
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %120 = load ptr, ptr @stdout, align 8, !tbaa !5
  %121 = call i32 @fflush(ptr noundef %120)
  call void @exit(i32 noundef 1) #13
  unreachable

122:                                              ; preds = %102
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %263

124:                                              ; preds = %105, %104, %103
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %262

126:                                              ; preds = %106
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %262

128:                                              ; preds = %108
  %129 = zext i32 %57 to i64
  %130 = call ptr @llvm.stacksave.p0()
  %131 = alloca i32, i64 %129, align 16
  %132 = alloca i32, i64 %129, align 16
  %133 = icmp sgt i32 %57, 0
  br i1 %133, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %128
  %min.iters.check = icmp ult i32 %57, 8
  br i1 %min.iters.check, label %.lr.ph.preheader143, label %vector.ph

.lr.ph.preheader143:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %129, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %51, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert141 = insertelement <4 x i32> poison, i32 %54, i64 0
  %broadcast.splat142 = shufflevector <4 x i32> %broadcast.splatinsert141, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %134 = getelementptr inbounds i32, ptr %131, i64 %index
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  store <4 x i32> %broadcast.splat, ptr %134, align 16, !tbaa !9
  store <4 x i32> %broadcast.splat, ptr %135, align 16, !tbaa !9
  %136 = getelementptr inbounds i32, ptr %132, i64 %index
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  store <4 x i32> %broadcast.splat142, ptr %136, align 16, !tbaa !9
  store <4 x i32> %broadcast.splat142, ptr %137, align 16, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %138 = icmp eq i64 %index.next, %n.vec
  br i1 %138, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %129
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader143

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %128
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
          to label %141 unwind label %174

.lr.ph:                                           ; preds = %.lr.ph.preheader143, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader143 ]
  %139 = getelementptr inbounds i32, ptr %131, i64 %indvars.iv
  store i32 %51, ptr %139, align 4, !tbaa !9
  %140 = getelementptr inbounds i32, ptr %132, i64 %indvars.iv
  store i32 %54, ptr %140, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %129
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

141:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1)
          to label %142 unwind label %176

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
          to label %143 unwind label %178

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %13) #12
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %13) #12
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %14) #12
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %14) #12
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %15) #12
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %15, i32 noundef %2, i32 noundef %57)
          to label %144 unwind label %180

144:                                              ; preds = %143
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %13, ptr noundef nonnull align 4 dereferenceable(92) %15, i64 92, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %15) #12
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %16) #12
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %16, i32 noundef %2, i32 noundef %57)
          to label %145 unwind label %182

145:                                              ; preds = %144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %14, ptr noundef nonnull align 4 dereferenceable(92) %16, i64 92, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %16) #12
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %13)
          to label %146 unwind label %184

146:                                              ; preds = %145
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %14)
          to label %147 unwind label %184

147:                                              ; preds = %146
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %148 unwind label %184

148:                                              ; preds = %147
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %149 unwind label %184

149:                                              ; preds = %148
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  %150 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %17, i32 noundef 1)
          to label %151 unwind label %186

151:                                              ; preds = %149
  %152 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %13)
          to label %153 unwind label %186

153:                                              ; preds = %151
  %154 = zext i32 %152 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %150, ptr noundef nonnull %131, i64 noundef %154)
          to label %155 unwind label %186

155:                                              ; preds = %153
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  %156 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %18, i32 noundef 1)
          to label %157 unwind label %188

157:                                              ; preds = %155
  %158 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %14)
          to label %159 unwind label %188

159:                                              ; preds = %157
  %160 = zext i32 %158 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %156, ptr noundef nonnull %132, i64 noundef %160)
          to label %161 unwind label %188

161:                                              ; preds = %159
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %162 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %19, i64 4294967295, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %163 unwind label %190

163:                                              ; preds = %161
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not117 = icmp eq i32 %162, 0
  br i1 %.not117, label %192, label %164

164:                                              ; preds = %163
  %165 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %166 = trunc i64 %165 to i32
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %166)
  %168 = load ptr, ptr @stdout, align 8, !tbaa !5
  %169 = call i32 @fflush(ptr noundef %168)
  %170 = call ptr @ee2str(i32 noundef %162)
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %170)
  %172 = load ptr, ptr @stdout, align 8, !tbaa !5
  %173 = call i32 @fflush(ptr noundef %172)
  call void @exit(i32 noundef 1) #13
  unreachable

174:                                              ; preds = %._crit_edge
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %261

176:                                              ; preds = %141
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %260

178:                                              ; preds = %142
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %259

180:                                              ; preds = %143
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %15) #12
  br label %258

182:                                              ; preds = %144
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %16) #12
  br label %258

184:                                              ; preds = %148, %147, %146, %145
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %258

186:                                              ; preds = %153, %151, %149
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  br label %258

188:                                              ; preds = %159, %157, %155
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #12
  br label %258

190:                                              ; preds = %161
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  br label %258

192:                                              ; preds = %163
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %8) #12
  %193 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %24, i64 4294967295, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %194 unwind label %205

194:                                              ; preds = %192
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  %.not118 = icmp eq i32 %193, 0
  br i1 %.not118, label %207, label %195

195:                                              ; preds = %194
  %196 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %197 = trunc i64 %196 to i32
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %197)
  %199 = load ptr, ptr @stdout, align 8, !tbaa !5
  %200 = call i32 @fflush(ptr noundef %199)
  %201 = call ptr @ee2str(i32 noundef %193)
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %201)
  %203 = load ptr, ptr @stdout, align 8, !tbaa !5
  %204 = call i32 @fflush(ptr noundef %203)
  call void @exit(i32 noundef 1) #13
  unreachable

205:                                              ; preds = %192
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  br label %258

207:                                              ; preds = %194
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %208 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %29, i32 noundef 1)
          to label %209 unwind label %227

209:                                              ; preds = %207
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %8) #12
  %210 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %30, i32 noundef 1)
          to label %211 unwind label %229

211:                                              ; preds = %209
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %208, ptr noundef %210, i32 noundef %107, i32 noundef %2, float noundef 0x3EB0C6F7A0000000)
          to label %212 unwind label %229

212:                                              ; preds = %211
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #12
  %213 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %232

.preheader.preheader:                             ; preds = %212
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %214 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %234 unwind label %245

.preheader.1:                                     ; preds = %234
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %215 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %216 unwind label %245

216:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135.1 = icmp eq i32 %215, 0
  br i1 %.not135.1, label %.preheader.2, label %235

.preheader.2:                                     ; preds = %216
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %217 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %218 unwind label %245

218:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135.2 = icmp eq i32 %217, 0
  br i1 %.not135.2, label %.preheader.3, label %235

.preheader.3:                                     ; preds = %218
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %219 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %220 unwind label %245

220:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135.3 = icmp eq i32 %219, 0
  br i1 %.not135.3, label %.preheader.4, label %235

.preheader.4:                                     ; preds = %220
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %221 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %222 unwind label %245

222:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135.4 = icmp eq i32 %221, 0
  br i1 %.not135.4, label %.preheader.5, label %235

.preheader.5:                                     ; preds = %222
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  %223 = invoke noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef nonnull %31, i64 4294967295, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %224 unwind label %245

224:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135.5 = icmp eq i32 %223, 0
  br i1 %.not135.5, label %225, label %235

225:                                              ; preds = %224
  %226 = invoke noundef double @_Z10ut_time_msv()
          to label %247 unwind label %254

227:                                              ; preds = %207
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %231

229:                                              ; preds = %211, %209
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #12
  br label %231

231:                                              ; preds = %229, %227
  %.pn = phi { ptr, i32 } [ %230, %229 ], [ %228, %227 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #12
  br label %258

232:                                              ; preds = %212
  %233 = landingpad { ptr, i32 }
          cleanup
  br label %258

234:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  %.not135 = icmp eq i32 %214, 0
  br i1 %.not135, label %.preheader.1, label %235

235:                                              ; preds = %224, %222, %220, %218, %216, %234
  %.lcssa = phi i32 [ %214, %234 ], [ %215, %216 ], [ %217, %218 ], [ %219, %220 ], [ %221, %222 ], [ %223, %224 ]
  %236 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %237 = trunc i64 %236 to i32
  %238 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %237)
  %239 = load ptr, ptr @stdout, align 8, !tbaa !5
  %240 = call i32 @fflush(ptr noundef %239)
  %241 = call ptr @ee2str(i32 noundef %.lcssa)
  %242 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %241)
  %243 = load ptr, ptr @stdout, align 8, !tbaa !5
  %244 = call i32 @fflush(ptr noundef %243)
  call void @exit(i32 noundef 1) #13
  unreachable

245:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  br label %258

247:                                              ; preds = %225
  %248 = fsub double %226, %213
  %249 = fdiv double %248, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %36) #12
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %37) #12
  %250 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %37, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %57, i32 noundef %60, i32 noundef %63, i32 noundef %57, i32 noundef %60, i32 noundef %63) #12
  %251 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %36, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %37) #12
  %252 = uitofp i32 %67 to double
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %36, double noundef %252, double noundef %249)
          to label %253 unwind label %256

253:                                              ; preds = %247
  call void @free(ptr noundef %68) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %37) #12
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %36) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.stackrestore.p0(ptr %130)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #12
  ret i32 0

254:                                              ; preds = %225
  %255 = landingpad { ptr, i32 }
          cleanup
  br label %258

256:                                              ; preds = %247
  %257 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %37) #12
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %36) #12
  br label %258

258:                                              ; preds = %232, %245, %256, %254, %231, %205, %190, %188, %186, %184, %182, %180
  %.pn122.pn = phi { ptr, i32 } [ %.pn, %231 ], [ %206, %205 ], [ %191, %190 ], [ %189, %188 ], [ %187, %186 ], [ %185, %184 ], [ %183, %182 ], [ %181, %180 ], [ %246, %245 ], [ %233, %232 ], [ %257, %256 ], [ %255, %254 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %14) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  br label %259

259:                                              ; preds = %258, %178
  %.pn122.pn.pn = phi { ptr, i32 } [ %.pn122.pn, %258 ], [ %179, %178 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #12
  br label %260

260:                                              ; preds = %259, %176
  %.pn122.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn, %259 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  br label %261

261:                                              ; preds = %260, %174
  %.pn122.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn.pn, %260 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br label %262

262:                                              ; preds = %126, %261, %124
  %.pn122.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %125, %124 ], [ %.pn122.pn.pn.pn.pn, %261 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #12
  br label %263

263:                                              ; preds = %262, %122, %100
  %.pn122.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn.pn.pn.pn.pn, %262 ], [ %123, %122 ], [ %101, %100 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #12
  br label %264

264:                                              ; preds = %263, %98
  %.pn122.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn.pn.pn.pn.pn.pn, %263 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  br label %265

265:                                              ; preds = %264, %96
  %.pn122.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn.pn.pn.pn.pn.pn.pn, %264 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #12
  br label %266

266:                                              ; preds = %92, %94, %265, %90
  %.pn122.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %91, %90 ], [ %.pn122.pn.pn.pn.pn.pn.pn.pn.pn.pn, %265 ], [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #12
  resume { ptr, i32 } %.pn122.pn.pn.pn.pn.pn.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: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; 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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; 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 nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #8

; 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: 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 @_Z28layer_norm_infer_output_sizeP6Tensor18LayerNormParamSpecS0_P8ArchInfo(ptr noundef, i64, 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 #0 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #10

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

; 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

declare noundef i32 @_Z10layer_norm6Tensor18LayerNormParamSpecS_S_S_S_P8ArchInfo(ptr noundef, i64, ptr noundef, ptr noundef, ptr noundef, 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

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 #11

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #10

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 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 nocallback nofree nosync nounwind willreturn }
attributes #11 = { 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 #12 = { nounwind }
attributes #13 = { noreturn nounwind }
attributes #14 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !19, i64 8, i64 4, !9, i64 12, i64 80, !21}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS8DataType", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS10DataFormat", !7, i64 0}
!21 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass