; LLVM IR from huawei-noah/bolt :: compute/tensor/src (einsum)

; 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.EinsumParamSpec = type { [8 x i8], [8 x i8], [8 x i8], i32, i32, i32 }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ArchInfo = type { i32, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6einsumSt6vectorI6TensorSaIS0_EE15EinsumParamSpecS0_S0_P8ArchInfo(ptr noundef %0, ptr noundef byval(%struct.EinsumParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.TensorDesc, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %class.Tensor, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.TensorDesc, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %class.Tensor, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %"class.std::unordered_map", align 8
  %27 = alloca %"class.std::unordered_map", align 8
  %28 = alloca i32, align 4
  %29 = alloca i8, align 1
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca [8 x i32], align 16
  %42 = alloca [8 x i32], align 16
  %43 = alloca i32, align 4
  %44 = alloca %struct.TensorDesc, align 8
  %45 = alloca i32, align 4
  %46 = alloca %"class.std::vector.8", align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca float, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca %struct.TensorDesc, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca %struct.TensorDesc, align 4
  %58 = alloca %struct.TensorDesc, align 4
  %59 = alloca %struct.TensorDesc, align 4
  %60 = alloca %struct.TensorDesc, align 4
  %61 = alloca %struct.TensorDesc, align 4
  %62 = alloca %struct.TensorDesc, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca %struct.TensorDesc, align 8
  %70 = alloca i32, align 4
  %71 = alloca ptr, align 8
  %72 = alloca ptr, align 8
  %73 = alloca ptr, align 8
  %74 = alloca i32, align 4
  %75 = alloca %struct.TensorDesc, align 8
  %76 = alloca %struct.TensorDesc, align 8
  %77 = alloca %struct.TensorDesc, align 8
  %78 = alloca i32, align 4
  %79 = alloca [8 x i32], align 16
  %80 = alloca [8 x i32], align 16
  %81 = alloca [8 x i32], align 16
  %82 = alloca %"class.std::unordered_map", align 8
  %83 = alloca %"class.std::unordered_map", align 8
  %84 = alloca i32, align 4
  %85 = alloca i32, align 4
  %86 = alloca i32, align 4
  %87 = alloca i32, align 4
  %88 = alloca i32, align 4
  %89 = alloca ptr, align 8
  %90 = alloca i32, align 4
  %91 = alloca i32, align 4
  %92 = alloca i32, align 4
  %93 = alloca i32, align 4
  %94 = alloca i32, align 4
  %95 = alloca i32, align 4
  %96 = alloca i32, align 4
  %97 = alloca ptr, align 8
  %98 = alloca ptr, align 8
  %99 = alloca %struct.TensorDesc, align 8
  %100 = alloca %struct.TensorDesc, align 8
  %101 = alloca %struct.TensorDesc, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 5
  %103 = load i32, ptr %102, align 8, !tbaa !9
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %108, label %105

105:                                              ; preds = %5
  %106 = call noundef i64 @_ZNKSt6vectorI6TensorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #10
  %107 = icmp ult i64 %106, 2
  br i1 %107, label %108, label %124

108:                                              ; preds = %105, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store i32 51, ptr %10, align 4, !tbaa !12
  %109 = load i32, ptr %10, align 4, !tbaa !12
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %123

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  %112 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %113 = trunc i64 %112 to i32
  store i32 %113, ptr %11, align 4, !tbaa !14
  %114 = load i32, ptr %11, align 4, !tbaa !14
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %114)
  %116 = load ptr, ptr @stdout, align 8, !tbaa !5
  %117 = call i32 @fflush(ptr noundef %116)
  %118 = load i32, ptr %10, align 4, !tbaa !12
  %119 = call ptr @ee2str(i32 noundef %118)
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %119)
  %121 = load ptr, ptr @stdout, align 8, !tbaa !5
  %122 = call i32 @fflush(ptr noundef %121)
  call void @exit(i32 noundef 1) #11
  unreachable

123:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %124

124:                                              ; preds = %123, %105
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #10
  %125 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #10
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, ptr noundef nonnull align 8 dereferenceable(32) %125)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %126 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %126) #10
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ArchInfo, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !15
  %130 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %14, i32 noundef %129)
          to label %131 unwind label %156

131:                                              ; preds = %124
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  store ptr %130, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr %17) #10
  %132 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #10
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %17, ptr noundef nonnull align 8 dereferenceable(32) %132)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %133 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %133) #10
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ArchInfo, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !15
  %137 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %19, i32 noundef %136)
          to label %138 unwind label %160

138:                                              ; preds = %131
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  store ptr %137, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr %20) #10
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %20, ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %2) #10
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ArchInfo, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !15
  %142 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %22, i32 noundef %141)
          to label %143 unwind label %164

143:                                              ; preds = %138
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  store ptr %142, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %144 = call noundef i32 @_ZN6Tensor5bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  store i32 %144, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %3) #10
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ArchInfo, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !15
  %148 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %25, i32 noundef %147)
          to label %149 unwind label %168

149:                                              ; preds = %143
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  store ptr %148, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %26) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %27) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !14
  br label %150

150:                                              ; preds = %180, %149
  %151 = load i32, ptr %28, align 4, !tbaa !14
  %152 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 5
  %153 = load i32, ptr %152, align 8, !tbaa !9
  %154 = icmp slt i32 %151, %153
  br i1 %154, label %172, label %155

155:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %187

156:                                              ; preds = %124
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %15, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %1026

160:                                              ; preds = %131
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %15, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  br label %1025

164:                                              ; preds = %138
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %15, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  br label %1024

168:                                              ; preds = %143
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %15, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %1023

172:                                              ; preds = %150
  %173 = load i32, ptr %28, align 4, !tbaa !14
  %174 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 2
  %175 = load i32, ptr %28, align 4, !tbaa !14
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [8 x i8], ptr %174, i64 0, i64 %176
  %178 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %177)
          to label %179 unwind label %183

179:                                              ; preds = %172
  store i32 %173, ptr %178, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %28, align 4, !tbaa !14
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %28, align 4, !tbaa !14
  br label %150, !llvm.loop !18

183:                                              ; preds = %172
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %15, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %1022

187:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #10
  store i8 0, ptr %29, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 0, ptr %32, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !14
  br label %188

188:                                              ; preds = %240, %187
  %189 = load i32, ptr %33, align 4, !tbaa !14
  %190 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 4
  %191 = load i32, ptr %190, align 4, !tbaa !22
  %192 = icmp slt i32 %189, %191
  br i1 %192, label %194, label %193

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

194:                                              ; preds = %188
  %195 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %196 = load i32, ptr %33, align 4, !tbaa !14
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [8 x i8], ptr %195, i64 0, i64 %197
  %199 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %198)
          to label %200 unwind label %209

200:                                              ; preds = %194
  %201 = icmp ne i64 %199, 0
  br i1 %201, label %213, label %202

202:                                              ; preds = %200
  %203 = load i32, ptr %33, align 4, !tbaa !14
  store i32 %203, ptr %31, align 4, !tbaa !14
  %204 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %205 = load i32, ptr %31, align 4, !tbaa !14
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [20 x i32], ptr %204, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !14
  store i32 %208, ptr %30, align 4, !tbaa !14
  br label %239

209:                                              ; preds = %231, %224, %213, %194
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %15, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %1021

213:                                              ; preds = %200
  %214 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %215 = load i32, ptr %33, align 4, !tbaa !14
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [8 x i8], ptr %214, i64 0, i64 %216
  %218 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %217)
          to label %219 unwind label %209

219:                                              ; preds = %213
  %220 = load i32, ptr %218, align 4, !tbaa !14
  %221 = load i32, ptr %32, align 4, !tbaa !14
  %222 = icmp ult i32 %220, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %219
  store i8 1, ptr %29, align 1, !tbaa !20
  br label %224

224:                                              ; preds = %223, %219
  %225 = load i32, ptr %33, align 4, !tbaa !14
  %226 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %227 = load i32, ptr %33, align 4, !tbaa !14
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [8 x i8], ptr %226, i64 0, i64 %228
  %230 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 1 dereferenceable(1) %229)
          to label %231 unwind label %209

231:                                              ; preds = %224
  store i32 %225, ptr %230, align 4, !tbaa !14
  %232 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %233 = load i32, ptr %33, align 4, !tbaa !14
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [8 x i8], ptr %232, i64 0, i64 %234
  %236 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %235)
          to label %237 unwind label %209

237:                                              ; preds = %231
  %238 = load i32, ptr %236, align 4, !tbaa !14
  store i32 %238, ptr %32, align 4, !tbaa !14
  br label %239

239:                                              ; preds = %237, %202
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %33, align 4, !tbaa !14
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %33, align 4, !tbaa !14
  br label %188, !llvm.loop !23

243:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 0, ptr %35, align 4, !tbaa !14
  store i32 0, ptr %32, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  store i32 -1, ptr %36, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 -1, ptr %37, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  store i32 -1, ptr %38, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  store i32 0, ptr %39, align 4, !tbaa !14
  br label %244

244:                                              ; preds = %316, %243
  %245 = load i32, ptr %39, align 4, !tbaa !14
  %246 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 3
  %247 = load i32, ptr %246, align 8, !tbaa !24
  %248 = icmp slt i32 %245, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %319

250:                                              ; preds = %244
  %251 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %252 = load i32, ptr %39, align 4, !tbaa !14
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [8 x i8], ptr %251, i64 0, i64 %253
  %255 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %254)
          to label %256 unwind label %265

256:                                              ; preds = %250
  %257 = icmp ne i64 %255, 0
  br i1 %257, label %269, label %258

258:                                              ; preds = %256
  %259 = load i32, ptr %39, align 4, !tbaa !14
  store i32 %259, ptr %35, align 4, !tbaa !14
  %260 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %261 = load i32, ptr %35, align 4, !tbaa !14
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds [20 x i32], ptr %260, i64 0, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !14
  store i32 %264, ptr %34, align 4, !tbaa !14
  br label %315

265:                                              ; preds = %304, %298, %286, %280, %269, %250
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %15, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %1020

269:                                              ; preds = %256
  %270 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %271 = load i32, ptr %39, align 4, !tbaa !14
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [8 x i8], ptr %270, i64 0, i64 %272
  %274 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %273)
          to label %275 unwind label %265

275:                                              ; preds = %269
  %276 = load i32, ptr %274, align 4, !tbaa !14
  %277 = load i32, ptr %32, align 4, !tbaa !14
  %278 = icmp ult i32 %276, %277
  br i1 %278, label %279, label %280

279:                                              ; preds = %275
  store i8 1, ptr %29, align 1, !tbaa !20
  br label %280

280:                                              ; preds = %279, %275
  %281 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %282 = load i32, ptr %39, align 4, !tbaa !14
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [8 x i8], ptr %281, i64 0, i64 %283
  %285 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %284)
          to label %286 unwind label %265

286:                                              ; preds = %280
  %287 = load i32, ptr %285, align 4, !tbaa !14
  store i32 %287, ptr %32, align 4, !tbaa !14
  %288 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %289 = load i32, ptr %39, align 4, !tbaa !14
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [8 x i8], ptr %288, i64 0, i64 %290
  %292 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 1 dereferenceable(1) %291)
          to label %293 unwind label %265

293:                                              ; preds = %286
  %294 = icmp ne i64 %292, 0
  br i1 %294, label %295, label %314

295:                                              ; preds = %293
  %296 = load i32, ptr %36, align 4, !tbaa !14
  %297 = icmp eq i32 %296, -1
  br i1 %297, label %298, label %314

298:                                              ; preds = %295
  %299 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %300 = load i32, ptr %39, align 4, !tbaa !14
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [8 x i8], ptr %299, i64 0, i64 %301
  %303 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %302)
          to label %304 unwind label %265

304:                                              ; preds = %298
  %305 = load i32, ptr %303, align 4, !tbaa !14
  store i32 %305, ptr %36, align 4, !tbaa !14
  %306 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %307 = load i32, ptr %39, align 4, !tbaa !14
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [8 x i8], ptr %306, i64 0, i64 %308
  %310 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 1 dereferenceable(1) %309)
          to label %311 unwind label %265

311:                                              ; preds = %304
  %312 = load i32, ptr %310, align 4, !tbaa !14
  store i32 %312, ptr %37, align 4, !tbaa !14
  %313 = load i32, ptr %39, align 4, !tbaa !14
  store i32 %313, ptr %38, align 4, !tbaa !14
  br label %314

314:                                              ; preds = %311, %295, %293
  br label %315

315:                                              ; preds = %314, %258
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %39, align 4, !tbaa !14
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %39, align 4, !tbaa !14
  br label %244, !llvm.loop !25

319:                                              ; preds = %249
  %320 = load i32, ptr %30, align 4, !tbaa !14
  %321 = load i32, ptr %34, align 4, !tbaa !14
  %322 = icmp ne i32 %320, %321
  br i1 %322, label %323, label %347

323:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  %324 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %325 = trunc i64 %324 to i32
  store i32 %325, ptr %40, align 4, !tbaa !14
  %326 = load i32, ptr %40, align 4, !tbaa !14
  %327 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %326)
          to label %328 unwind label %343

328:                                              ; preds = %323
  %329 = load ptr, ptr @stdout, align 8, !tbaa !5
  %330 = invoke i32 @fflush(ptr noundef %329)
          to label %331 unwind label %343

331:                                              ; preds = %328
  %332 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %333 = getelementptr inbounds [8 x i8], ptr %332, i64 0, i64 0
  %334 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %335 = getelementptr inbounds [8 x i8], ptr %334, i64 0, i64 0
  %336 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 2
  %337 = getelementptr inbounds [8 x i8], ptr %336, i64 0, i64 0
  %338 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %333, ptr noundef %335, ptr noundef %337)
          to label %339 unwind label %343

339:                                              ; preds = %331
  %340 = load ptr, ptr @stdout, align 8, !tbaa !5
  %341 = invoke i32 @fflush(ptr noundef %340)
          to label %342 unwind label %343

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

343:                                              ; preds = %339, %331, %328, %323
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %15, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  br label %1020

347:                                              ; preds = %319
  %348 = load i32, ptr %35, align 4, !tbaa !14
  %349 = load i32, ptr %38, align 4, !tbaa !14
  %350 = icmp sgt i32 %348, %349
  br i1 %350, label %355, label %351

351:                                              ; preds = %347
  %352 = load i32, ptr %31, align 4, !tbaa !14
  %353 = load i32, ptr %37, align 4, !tbaa !14
  %354 = icmp sgt i32 %352, %353
  br i1 %354, label %355, label %356

355:                                              ; preds = %351, %347
  store i8 1, ptr %29, align 1, !tbaa !20
  br label %356

356:                                              ; preds = %355, %351
  %357 = load i8, ptr %29, align 1, !tbaa !20, !range !26, !noundef !27
  %358 = trunc i8 %357 to i1
  br i1 %358, label %359, label %520

359:                                              ; preds = %356
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  store i32 0, ptr %43, align 4, !tbaa !14
  br label %360

360:                                              ; preds = %513, %359
  %361 = load i32, ptr %43, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !28
  %362 = invoke noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %44)
          to label %363 unwind label %366

363:                                              ; preds = %360
  %364 = icmp ult i32 %361, %362
  br i1 %364, label %370, label %365

365:                                              ; preds = %363
  store i32 11, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %519

366:                                              ; preds = %360
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %15, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %16, align 4
  br label %518

370:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #10
  %371 = load i32, ptr %43, align 4, !tbaa !14
  %372 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %373 = getelementptr inbounds [20 x i32], ptr %372, i64 0, i64 0
  %374 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %375 = load i32, ptr %374, align 4, !tbaa !34
  invoke void @_Z19calculateLocalIndexjPKjj(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %46, i32 noundef %371, ptr noundef %373, i32 noundef %375)
          to label %376 unwind label %383

376:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #10
  store i32 0, ptr %47, align 4, !tbaa !14
  br label %377

377:                                              ; preds = %414, %376
  %378 = load i32, ptr %47, align 4, !tbaa !14
  %379 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 4
  %380 = load i32, ptr %379, align 4, !tbaa !22
  %381 = icmp slt i32 %378, %380
  br i1 %381, label %387, label %382

382:                                              ; preds = %377
  store i32 14, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  br label %417

383:                                              ; preds = %370
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %15, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %16, align 4
  br label %517

387:                                              ; preds = %377
  %388 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %389 = load i32, ptr %47, align 4, !tbaa !14
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [8 x i8], ptr %388, i64 0, i64 %390
  %392 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %391)
          to label %393 unwind label %409

393:                                              ; preds = %387
  %394 = icmp ne i64 %392, 0
  br i1 %394, label %395, label %413

395:                                              ; preds = %393
  %396 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %397 = load i32, ptr %47, align 4, !tbaa !14
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [8 x i8], ptr %396, i64 0, i64 %398
  %400 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %399)
          to label %401 unwind label %409

401:                                              ; preds = %395
  %402 = load i32, ptr %400, align 4, !tbaa !14
  %403 = zext i32 %402 to i64
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %403) #10
  %405 = load i32, ptr %404, align 4, !tbaa !14
  %406 = load i32, ptr %47, align 4, !tbaa !14
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [8 x i32], ptr %41, i64 0, i64 %407
  store i32 %405, ptr %408, align 4, !tbaa !14
  br label %413

409:                                              ; preds = %395, %387
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %15, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  br label %516

413:                                              ; preds = %401, %393
  br label %414

414:                                              ; preds = %413
  %415 = load i32, ptr %47, align 4, !tbaa !14
  %416 = add nsw i32 %415, 1
  store i32 %416, ptr %47, align 4, !tbaa !14
  br label %377, !llvm.loop !36

417:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  store i32 0, ptr %48, align 4, !tbaa !14
  br label %418

418:                                              ; preds = %451, %417
  %419 = load i32, ptr %48, align 4, !tbaa !14
  %420 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 3
  %421 = load i32, ptr %420, align 8, !tbaa !24
  %422 = icmp slt i32 %419, %421
  br i1 %422, label %424, label %423

423:                                              ; preds = %418
  store i32 17, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %454

424:                                              ; preds = %418
  %425 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %426 = load i32, ptr %48, align 4, !tbaa !14
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [8 x i8], ptr %425, i64 0, i64 %427
  %429 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %428)
          to label %430 unwind label %446

430:                                              ; preds = %424
  %431 = icmp ne i64 %429, 0
  br i1 %431, label %432, label %450

432:                                              ; preds = %430
  %433 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %434 = load i32, ptr %48, align 4, !tbaa !14
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [8 x i8], ptr %433, i64 0, i64 %435
  %437 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %436)
          to label %438 unwind label %446

438:                                              ; preds = %432
  %439 = load i32, ptr %437, align 4, !tbaa !14
  %440 = zext i32 %439 to i64
  %441 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %440) #10
  %442 = load i32, ptr %441, align 4, !tbaa !14
  %443 = load i32, ptr %48, align 4, !tbaa !14
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [8 x i32], ptr %42, i64 0, i64 %444
  store i32 %442, ptr %445, align 4, !tbaa !14
  br label %450

446:                                              ; preds = %432, %424
  %447 = landingpad { ptr, i32 }
          cleanup
  %448 = extractvalue { ptr, i32 } %447, 0
  store ptr %448, ptr %15, align 8
  %449 = extractvalue { ptr, i32 } %447, 1
  store i32 %449, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %516

450:                                              ; preds = %438, %430
  br label %451

451:                                              ; preds = %450
  %452 = load i32, ptr %48, align 4, !tbaa !14
  %453 = add nsw i32 %452, 1
  store i32 %453, ptr %48, align 4, !tbaa !14
  br label %418, !llvm.loop !37

454:                                              ; preds = %423
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  store float 0.000000e+00, ptr %49, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  store i32 0, ptr %50, align 4, !tbaa !14
  br label %455

455:                                              ; preds = %495, %454
  %456 = load i32, ptr %50, align 4, !tbaa !14
  %457 = load i32, ptr %30, align 4, !tbaa !14
  %458 = icmp ult i32 %456, %457
  br i1 %458, label %460, label %459

459:                                              ; preds = %455
  store i32 20, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  br label %507

460:                                              ; preds = %455
  %461 = load i32, ptr %50, align 4, !tbaa !14
  %462 = load i32, ptr %31, align 4, !tbaa !14
  %463 = zext i32 %462 to i64
  %464 = getelementptr inbounds [8 x i32], ptr %41, i64 0, i64 %463
  store i32 %461, ptr %464, align 4, !tbaa !14
  %465 = load i32, ptr %50, align 4, !tbaa !14
  %466 = load i32, ptr %35, align 4, !tbaa !14
  %467 = zext i32 %466 to i64
  %468 = getelementptr inbounds [8 x i32], ptr %42, i64 0, i64 %467
  store i32 %465, ptr %468, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  %469 = getelementptr inbounds [8 x i32], ptr %41, i64 0, i64 0
  %470 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %471 = getelementptr inbounds [20 x i32], ptr %470, i64 0, i64 0
  %472 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %473 = load i32, ptr %472, align 4, !tbaa !34
  %474 = invoke noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef %469, ptr noundef %471, i32 noundef %473)
          to label %475 unwind label %498

475:                                              ; preds = %460
  store i32 %474, ptr %51, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  %476 = getelementptr inbounds [8 x i32], ptr %42, i64 0, i64 0
  %477 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %478 = getelementptr inbounds [20 x i32], ptr %477, i64 0, i64 0
  %479 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 2
  %480 = load i32, ptr %479, align 4, !tbaa !34
  %481 = invoke noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef %476, ptr noundef %478, i32 noundef %480)
          to label %482 unwind label %502

482:                                              ; preds = %475
  store i32 %481, ptr %52, align 4, !tbaa !14
  %483 = load ptr, ptr %13, align 8, !tbaa !5
  %484 = load i32, ptr %51, align 4, !tbaa !14
  %485 = zext i32 %484 to i64
  %486 = getelementptr inbounds float, ptr %483, i64 %485
  %487 = load float, ptr %486, align 4, !tbaa !38
  %488 = load ptr, ptr %18, align 8, !tbaa !5
  %489 = load i32, ptr %52, align 4, !tbaa !14
  %490 = zext i32 %489 to i64
  %491 = getelementptr inbounds float, ptr %488, i64 %490
  %492 = load float, ptr %491, align 4, !tbaa !38
  %493 = load float, ptr %49, align 4, !tbaa !38
  %494 = call float @llvm.fmuladd.f32(float %487, float %492, float %493)
  store float %494, ptr %49, align 4, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  br label %495

495:                                              ; preds = %482
  %496 = load i32, ptr %50, align 4, !tbaa !14
  %497 = add i32 %496, 1
  store i32 %497, ptr %50, align 4, !tbaa !14
  br label %455, !llvm.loop !40

498:                                              ; preds = %460
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %15, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %16, align 4
  br label %506

502:                                              ; preds = %475
  %503 = landingpad { ptr, i32 }
          cleanup
  %504 = extractvalue { ptr, i32 } %503, 0
  store ptr %504, ptr %15, align 8
  %505 = extractvalue { ptr, i32 } %503, 1
  store i32 %505, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  br label %506

506:                                              ; preds = %502, %498
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  br label %516

507:                                              ; preds = %459
  %508 = load float, ptr %49, align 4, !tbaa !38
  %509 = load ptr, ptr %21, align 8, !tbaa !5
  %510 = load i32, ptr %43, align 4, !tbaa !14
  %511 = zext i32 %510 to i64
  %512 = getelementptr inbounds float, ptr %509, i64 %511
  store float %508, ptr %512, align 4, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #10
  br label %513

513:                                              ; preds = %507
  %514 = load i32, ptr %43, align 4, !tbaa !14
  %515 = add i32 %514, 1
  store i32 %515, ptr %43, align 4, !tbaa !14
  br label %360, !llvm.loop !41

516:                                              ; preds = %506, %446, %409
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #10
  br label %517

517:                                              ; preds = %516, %383
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #10
  br label %518

518:                                              ; preds = %517, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #10
  br label %1020

519:                                              ; preds = %365
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #10
  br label %1019

520:                                              ; preds = %356
  call void @llvm.lifetime.start.p0(i64 92, ptr %53) #10
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %53) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #10
  %521 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %522 = load i32, ptr %35, align 4, !tbaa !14
  %523 = zext i32 %522 to i64
  %524 = getelementptr inbounds [20 x i32], ptr %521, i64 0, i64 %523
  %525 = load i32, ptr %524, align 4, !tbaa !14
  store i32 %525, ptr %56, align 4, !tbaa !14
  %526 = load i32, ptr %35, align 4, !tbaa !14
  %527 = icmp ne i32 %526, 0
  br i1 %527, label %528, label %570

528:                                              ; preds = %520
  %529 = load i32, ptr %35, align 4, !tbaa !14
  %530 = add i32 %529, 1
  store i32 %530, ptr %38, align 4, !tbaa !14
  %531 = load i32, ptr %36, align 4, !tbaa !14
  %532 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %533 = load i32, ptr %38, align 4, !tbaa !14
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds [8 x i8], ptr %532, i64 0, i64 %534
  %536 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %535)
          to label %537 unwind label %562

537:                                              ; preds = %528
  %538 = load i32, ptr %536, align 4, !tbaa !14
  %539 = icmp slt i32 %531, %538
  br i1 %539, label %540, label %542

540:                                              ; preds = %537
  %541 = load i32, ptr %36, align 4, !tbaa !14
  br label %550

542:                                              ; preds = %537
  %543 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %544 = load i32, ptr %38, align 4, !tbaa !14
  %545 = sext i32 %544 to i64
  %546 = getelementptr inbounds [8 x i8], ptr %543, i64 0, i64 %545
  %547 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %546)
          to label %548 unwind label %562

548:                                              ; preds = %542
  %549 = load i32, ptr %547, align 4, !tbaa !14
  br label %550

550:                                              ; preds = %548, %540
  %551 = phi i32 [ %541, %540 ], [ %549, %548 ]
  store i32 %551, ptr %36, align 4, !tbaa !14
  %552 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %553 = getelementptr inbounds [20 x i32], ptr %552, i64 0, i64 0
  %554 = load i32, ptr %35, align 4, !tbaa !14
  %555 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %553, i32 noundef 0, i32 noundef %554)
          to label %556 unwind label %562

556:                                              ; preds = %550
  store i32 %555, ptr %55, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 92, ptr %57) #10
  %557 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 0
  %558 = load i32, ptr %557, align 4, !tbaa !42
  %559 = load i32, ptr %56, align 4, !tbaa !14
  %560 = load i32, ptr %55, align 4, !tbaa !14
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %57, i32 noundef %558, i32 noundef 14, i32 noundef %559, i32 noundef %560)
          to label %561 unwind label %566

561:                                              ; preds = %556
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %57, i64 92, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 92, ptr %57) #10
  br label %585

562:                                              ; preds = %570, %550, %542, %528
  %563 = landingpad { ptr, i32 }
          cleanup
  %564 = extractvalue { ptr, i32 } %563, 0
  store ptr %564, ptr %15, align 8
  %565 = extractvalue { ptr, i32 } %563, 1
  store i32 %565, ptr %16, align 4
  br label %1018

566:                                              ; preds = %556
  %567 = landingpad { ptr, i32 }
          cleanup
  %568 = extractvalue { ptr, i32 } %567, 0
  store ptr %568, ptr %15, align 8
  %569 = extractvalue { ptr, i32 } %567, 1
  store i32 %569, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %57) #10
  br label %1018

570:                                              ; preds = %520
  %571 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %572 = getelementptr inbounds [20 x i32], ptr %571, i64 0, i64 0
  %573 = load i32, ptr %38, align 4, !tbaa !14
  %574 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %572, i32 noundef 1, i32 noundef %573)
          to label %575 unwind label %562

575:                                              ; preds = %570
  store i32 %574, ptr %55, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 92, ptr %58) #10
  %576 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 0
  %577 = load i32, ptr %576, align 4, !tbaa !42
  %578 = load i32, ptr %55, align 4, !tbaa !14
  %579 = load i32, ptr %56, align 4, !tbaa !14
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %58, i32 noundef %577, i32 noundef 13, i32 noundef %578, i32 noundef %579)
          to label %580 unwind label %581

580:                                              ; preds = %575
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %58, i64 92, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 92, ptr %58) #10
  br label %585

581:                                              ; preds = %575
  %582 = landingpad { ptr, i32 }
          cleanup
  %583 = extractvalue { ptr, i32 } %582, 0
  store ptr %583, ptr %15, align 8
  %584 = extractvalue { ptr, i32 } %582, 1
  store i32 %584, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %58) #10
  br label %1018

585:                                              ; preds = %580, %561
  call void @llvm.lifetime.start.p0(i64 92, ptr %59) #10
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %59) #10
  %586 = load i32, ptr %31, align 4, !tbaa !14
  %587 = icmp ne i32 %586, 0
  br i1 %587, label %588, label %630

588:                                              ; preds = %585
  %589 = load i32, ptr %31, align 4, !tbaa !14
  %590 = add i32 %589, 1
  store i32 %590, ptr %37, align 4, !tbaa !14
  %591 = load i32, ptr %36, align 4, !tbaa !14
  %592 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %593 = load i32, ptr %37, align 4, !tbaa !14
  %594 = sext i32 %593 to i64
  %595 = getelementptr inbounds [8 x i8], ptr %592, i64 0, i64 %594
  %596 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %595)
          to label %597 unwind label %622

597:                                              ; preds = %588
  %598 = load i32, ptr %596, align 4, !tbaa !14
  %599 = icmp slt i32 %591, %598
  br i1 %599, label %600, label %602

600:                                              ; preds = %597
  %601 = load i32, ptr %36, align 4, !tbaa !14
  br label %610

602:                                              ; preds = %597
  %603 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %604 = load i32, ptr %37, align 4, !tbaa !14
  %605 = sext i32 %604 to i64
  %606 = getelementptr inbounds [8 x i8], ptr %603, i64 0, i64 %605
  %607 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 1 dereferenceable(1) %606)
          to label %608 unwind label %622

608:                                              ; preds = %602
  %609 = load i32, ptr %607, align 4, !tbaa !14
  br label %610

610:                                              ; preds = %608, %600
  %611 = phi i32 [ %601, %600 ], [ %609, %608 ]
  store i32 %611, ptr %36, align 4, !tbaa !14
  %612 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %613 = getelementptr inbounds [20 x i32], ptr %612, i64 0, i64 0
  %614 = load i32, ptr %31, align 4, !tbaa !14
  %615 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %613, i32 noundef 0, i32 noundef %614)
          to label %616 unwind label %622

616:                                              ; preds = %610
  store i32 %615, ptr %54, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 92, ptr %60) #10
  %617 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 0
  %618 = load i32, ptr %617, align 4, !tbaa !42
  %619 = load i32, ptr %56, align 4, !tbaa !14
  %620 = load i32, ptr %54, align 4, !tbaa !14
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %60, i32 noundef %618, i32 noundef 13, i32 noundef %619, i32 noundef %620)
          to label %621 unwind label %626

621:                                              ; preds = %616
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %60, i64 92, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 92, ptr %60) #10
  br label %645

622:                                              ; preds = %630, %610, %602, %588
  %623 = landingpad { ptr, i32 }
          cleanup
  %624 = extractvalue { ptr, i32 } %623, 0
  store ptr %624, ptr %15, align 8
  %625 = extractvalue { ptr, i32 } %623, 1
  store i32 %625, ptr %16, align 4
  br label %1017

626:                                              ; preds = %616
  %627 = landingpad { ptr, i32 }
          cleanup
  %628 = extractvalue { ptr, i32 } %627, 0
  store ptr %628, ptr %15, align 8
  %629 = extractvalue { ptr, i32 } %627, 1
  store i32 %629, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %60) #10
  br label %1017

630:                                              ; preds = %585
  %631 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %632 = getelementptr inbounds [20 x i32], ptr %631, i64 0, i64 0
  %633 = load i32, ptr %37, align 4, !tbaa !14
  %634 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %632, i32 noundef 1, i32 noundef %633)
          to label %635 unwind label %622

635:                                              ; preds = %630
  store i32 %634, ptr %54, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 92, ptr %61) #10
  %636 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 0
  %637 = load i32, ptr %636, align 4, !tbaa !42
  %638 = load i32, ptr %54, align 4, !tbaa !14
  %639 = load i32, ptr %56, align 4, !tbaa !14
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %61, i32 noundef %637, i32 noundef 14, i32 noundef %638, i32 noundef %639)
          to label %640 unwind label %641

640:                                              ; preds = %635
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %61, i64 92, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 92, ptr %61) #10
  br label %645

641:                                              ; preds = %635
  %642 = landingpad { ptr, i32 }
          cleanup
  %643 = extractvalue { ptr, i32 } %642, 0
  store ptr %643, ptr %15, align 8
  %644 = extractvalue { ptr, i32 } %642, 1
  store i32 %644, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %61) #10
  br label %1017

645:                                              ; preds = %640, %621
  call void @llvm.lifetime.start.p0(i64 92, ptr %62) #10
  %646 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 0
  %647 = load i32, ptr %646, align 4, !tbaa !42
  %648 = load i32, ptr %54, align 4, !tbaa !14
  %649 = load i32, ptr %55, align 4, !tbaa !14
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %62, i32 noundef %647, i32 noundef 14, i32 noundef %648, i32 noundef %649)
          to label %650 unwind label %701

650:                                              ; preds = %645
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #10
  %651 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %652 = getelementptr inbounds [20 x i32], ptr %651, i64 0, i64 0
  %653 = load i32, ptr %36, align 4, !tbaa !14
  %654 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %655 = load i32, ptr %654, align 4, !tbaa !34
  %656 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %652, i32 noundef %653, i32 noundef %655)
          to label %657 unwind label %705

657:                                              ; preds = %650
  store i32 %656, ptr %63, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #10
  %658 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %659 = getelementptr inbounds [20 x i32], ptr %658, i64 0, i64 0
  %660 = load i32, ptr %36, align 4, !tbaa !14
  %661 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %659, i32 noundef 0, i32 noundef %660)
          to label %662 unwind label %709

662:                                              ; preds = %657
  store i32 %661, ptr %64, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #10
  %663 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %664 = getelementptr inbounds [20 x i32], ptr %663, i64 0, i64 0
  %665 = load i32, ptr %37, align 4, !tbaa !14
  %666 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %667 = load i32, ptr %666, align 4, !tbaa !34
  %668 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %664, i32 noundef %665, i32 noundef %667)
          to label %669 unwind label %713

669:                                              ; preds = %662
  store i32 %668, ptr %65, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #10
  %670 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %671 = getelementptr inbounds [20 x i32], ptr %670, i64 0, i64 0
  %672 = load i32, ptr %37, align 4, !tbaa !14
  %673 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %671, i32 noundef 0, i32 noundef %672)
          to label %674 unwind label %717

674:                                              ; preds = %669
  store i32 %673, ptr %66, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %675 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %676 = getelementptr inbounds [20 x i32], ptr %675, i64 0, i64 0
  %677 = load i32, ptr %38, align 4, !tbaa !14
  %678 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 2
  %679 = load i32, ptr %678, align 4, !tbaa !34
  %680 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %676, i32 noundef %677, i32 noundef %679)
          to label %681 unwind label %721

681:                                              ; preds = %674
  store i32 %680, ptr %67, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #10
  %682 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %683 = getelementptr inbounds [20 x i32], ptr %682, i64 0, i64 0
  %684 = load i32, ptr %38, align 4, !tbaa !14
  %685 = invoke noundef i32 @_Z10reduceDimsPjjj(ptr noundef %683, i32 noundef 0, i32 noundef %684)
          to label %686 unwind label %725

686:                                              ; preds = %681
  store i32 %685, ptr %68, align 4, !tbaa !14
  %687 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !28
  %688 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %69)
          to label %689 unwind label %725

689:                                              ; preds = %686
  %690 = zext i32 %688 to i64
  invoke void @_Z10UNI_MEMSETPvim(ptr noundef %687, i32 noundef 0, i64 noundef %690)
          to label %691 unwind label %725

691:                                              ; preds = %689
  %692 = load i32, ptr %65, align 4, !tbaa !14
  %693 = load i32, ptr %67, align 4, !tbaa !14
  %694 = icmp eq i32 %692, %693
  br i1 %694, label %695, label %795

695:                                              ; preds = %691
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #10
  store i32 0, ptr %70, align 4, !tbaa !14
  br label %696

696:                                              ; preds = %790, %695
  %697 = load i32, ptr %70, align 4, !tbaa !14
  %698 = load i32, ptr %63, align 4, !tbaa !14
  %699 = icmp ult i32 %697, %698
  br i1 %699, label %729, label %700

700:                                              ; preds = %696
  store i32 23, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %794

701:                                              ; preds = %645
  %702 = landingpad { ptr, i32 }
          cleanup
  %703 = extractvalue { ptr, i32 } %702, 0
  store ptr %703, ptr %15, align 8
  %704 = extractvalue { ptr, i32 } %702, 1
  store i32 %704, ptr %16, align 4
  br label %1016

705:                                              ; preds = %650
  %706 = landingpad { ptr, i32 }
          cleanup
  %707 = extractvalue { ptr, i32 } %706, 0
  store ptr %707, ptr %15, align 8
  %708 = extractvalue { ptr, i32 } %706, 1
  store i32 %708, ptr %16, align 4
  br label %1015

709:                                              ; preds = %657
  %710 = landingpad { ptr, i32 }
          cleanup
  %711 = extractvalue { ptr, i32 } %710, 0
  store ptr %711, ptr %15, align 8
  %712 = extractvalue { ptr, i32 } %710, 1
  store i32 %712, ptr %16, align 4
  br label %1014

713:                                              ; preds = %662
  %714 = landingpad { ptr, i32 }
          cleanup
  %715 = extractvalue { ptr, i32 } %714, 0
  store ptr %715, ptr %15, align 8
  %716 = extractvalue { ptr, i32 } %714, 1
  store i32 %716, ptr %16, align 4
  br label %1013

717:                                              ; preds = %669
  %718 = landingpad { ptr, i32 }
          cleanup
  %719 = extractvalue { ptr, i32 } %718, 0
  store ptr %719, ptr %15, align 8
  %720 = extractvalue { ptr, i32 } %718, 1
  store i32 %720, ptr %16, align 4
  br label %1012

721:                                              ; preds = %674
  %722 = landingpad { ptr, i32 }
          cleanup
  %723 = extractvalue { ptr, i32 } %722, 0
  store ptr %723, ptr %15, align 8
  %724 = extractvalue { ptr, i32 } %722, 1
  store i32 %724, ptr %16, align 4
  br label %1011

725:                                              ; preds = %689, %686, %681
  %726 = landingpad { ptr, i32 }
          cleanup
  %727 = extractvalue { ptr, i32 } %726, 0
  store ptr %727, ptr %15, align 8
  %728 = extractvalue { ptr, i32 } %726, 1
  store i32 %728, ptr %16, align 4
  br label %1010

729:                                              ; preds = %696
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #10
  %730 = load ptr, ptr %21, align 8, !tbaa !5
  %731 = load i32, ptr %70, align 4, !tbaa !14
  %732 = load i32, ptr %64, align 4, !tbaa !14
  %733 = mul i32 %731, %732
  %734 = zext i32 %733 to i64
  %735 = getelementptr inbounds float, ptr %730, i64 %734
  store ptr %735, ptr %71, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #10
  %736 = load ptr, ptr %13, align 8, !tbaa !5
  %737 = load i32, ptr %70, align 4, !tbaa !14
  %738 = load i32, ptr %65, align 4, !tbaa !14
  %739 = urem i32 %737, %738
  %740 = load i32, ptr %66, align 4, !tbaa !14
  %741 = mul i32 %739, %740
  %742 = zext i32 %741 to i64
  %743 = getelementptr inbounds float, ptr %736, i64 %742
  store ptr %743, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #10
  %744 = load ptr, ptr %18, align 8, !tbaa !5
  %745 = load i32, ptr %70, align 4, !tbaa !14
  %746 = load i32, ptr %67, align 4, !tbaa !14
  %747 = urem i32 %745, %746
  %748 = load i32, ptr %68, align 4, !tbaa !14
  %749 = mul i32 %747, %748
  %750 = zext i32 %749 to i64
  %751 = getelementptr inbounds float, ptr %744, i64 %750
  store ptr %751, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %59, i64 92, i1 false), !tbaa.struct !28
  %752 = load ptr, ptr %72, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %53, i64 92, i1 false), !tbaa.struct !28
  %753 = load ptr, ptr %73, align 8, !tbaa !5
  %754 = load i32, ptr %23, align 4, !tbaa !14
  %755 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %62, i64 92, i1 false), !tbaa.struct !28
  %756 = load ptr, ptr %71, align 8, !tbaa !5
  %757 = load ptr, ptr %9, align 8, !tbaa !5
  %758 = getelementptr inbounds %struct.ArchInfo, ptr %757, i32 0, i32 0
  %759 = load i32, ptr %758, align 8, !tbaa !15
  %760 = invoke i32 @matrix_matrix_multiply(ptr noundef byval(%struct.TensorDesc) align 8 %75, ptr noundef %752, ptr noundef byval(%struct.TensorDesc) align 8 %76, ptr noundef %753, i32 noundef %754, ptr noundef %755, ptr noundef byval(%struct.TensorDesc) align 8 %77, ptr noundef %756, ptr noundef null, i32 noundef %759)
          to label %761 unwind label %781

761:                                              ; preds = %729
  store i32 %760, ptr %74, align 4, !tbaa !12
  %762 = load i32, ptr %74, align 4, !tbaa !12
  %763 = icmp ne i32 %762, 0
  br i1 %763, label %764, label %789

764:                                              ; preds = %761
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #10
  %765 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %766 = trunc i64 %765 to i32
  store i32 %766, ptr %78, align 4, !tbaa !14
  %767 = load i32, ptr %78, align 4, !tbaa !14
  %768 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %767)
          to label %769 unwind label %785

769:                                              ; preds = %764
  %770 = load ptr, ptr @stdout, align 8, !tbaa !5
  %771 = invoke i32 @fflush(ptr noundef %770)
          to label %772 unwind label %785

772:                                              ; preds = %769
  %773 = load i32, ptr %74, align 4, !tbaa !12
  %774 = invoke ptr @ee2str(i32 noundef %773)
          to label %775 unwind label %785

775:                                              ; preds = %772
  %776 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %774)
          to label %777 unwind label %785

777:                                              ; preds = %775
  %778 = load ptr, ptr @stdout, align 8, !tbaa !5
  %779 = invoke i32 @fflush(ptr noundef %778)
          to label %780 unwind label %785

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

781:                                              ; preds = %729
  %782 = landingpad { ptr, i32 }
          cleanup
  %783 = extractvalue { ptr, i32 } %782, 0
  store ptr %783, ptr %15, align 8
  %784 = extractvalue { ptr, i32 } %782, 1
  store i32 %784, ptr %16, align 4
  br label %793

785:                                              ; preds = %777, %775, %772, %769, %764
  %786 = landingpad { ptr, i32 }
          cleanup
  %787 = extractvalue { ptr, i32 } %786, 0
  store ptr %787, ptr %15, align 8
  %788 = extractvalue { ptr, i32 } %786, 1
  store i32 %788, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #10
  br label %793

789:                                              ; preds = %761
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  br label %790

790:                                              ; preds = %789
  %791 = load i32, ptr %70, align 4, !tbaa !14
  %792 = add i32 %791, 1
  store i32 %792, ptr %70, align 4, !tbaa !14
  br label %696, !llvm.loop !43

793:                                              ; preds = %785, %781
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %1010

794:                                              ; preds = %700
  br label %1009

795:                                              ; preds = %691
  call void @llvm.lifetime.start.p0(i64 32, ptr %79) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %80) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %81) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %82) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %82) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %83) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %83) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #10
  store i32 0, ptr %84, align 4, !tbaa !14
  br label %796

796:                                              ; preds = %810, %795
  %797 = load i32, ptr %84, align 4, !tbaa !14
  %798 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 4
  %799 = load i32, ptr %798, align 4, !tbaa !22
  %800 = icmp slt i32 %797, %799
  br i1 %800, label %802, label %801

801:                                              ; preds = %796
  store i32 26, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  br label %817

802:                                              ; preds = %796
  %803 = load i32, ptr %84, align 4, !tbaa !14
  %804 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 1
  %805 = load i32, ptr %84, align 4, !tbaa !14
  %806 = sext i32 %805 to i64
  %807 = getelementptr inbounds [8 x i8], ptr %804, i64 0, i64 %806
  %808 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef nonnull align 1 dereferenceable(1) %807)
          to label %809 unwind label %813

809:                                              ; preds = %802
  store i32 %803, ptr %808, align 4, !tbaa !14
  br label %810

810:                                              ; preds = %809
  %811 = load i32, ptr %84, align 4, !tbaa !14
  %812 = add nsw i32 %811, 1
  store i32 %812, ptr %84, align 4, !tbaa !14
  br label %796, !llvm.loop !44

813:                                              ; preds = %802
  %814 = landingpad { ptr, i32 }
          cleanup
  %815 = extractvalue { ptr, i32 } %814, 0
  store ptr %815, ptr %15, align 8
  %816 = extractvalue { ptr, i32 } %814, 1
  store i32 %816, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  br label %1008

817:                                              ; preds = %801
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #10
  store i32 0, ptr %85, align 4, !tbaa !14
  br label %818

818:                                              ; preds = %832, %817
  %819 = load i32, ptr %85, align 4, !tbaa !14
  %820 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 3
  %821 = load i32, ptr %820, align 8, !tbaa !24
  %822 = icmp slt i32 %819, %821
  br i1 %822, label %824, label %823

823:                                              ; preds = %818
  store i32 29, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #10
  br label %839

824:                                              ; preds = %818
  %825 = load i32, ptr %85, align 4, !tbaa !14
  %826 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 0
  %827 = load i32, ptr %85, align 4, !tbaa !14
  %828 = sext i32 %827 to i64
  %829 = getelementptr inbounds [8 x i8], ptr %826, i64 0, i64 %828
  %830 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %83, ptr noundef nonnull align 1 dereferenceable(1) %829)
          to label %831 unwind label %835

831:                                              ; preds = %824
  store i32 %825, ptr %830, align 4, !tbaa !14
  br label %832

832:                                              ; preds = %831
  %833 = load i32, ptr %85, align 4, !tbaa !14
  %834 = add nsw i32 %833, 1
  store i32 %834, ptr %85, align 4, !tbaa !14
  br label %818, !llvm.loop !45

835:                                              ; preds = %824
  %836 = landingpad { ptr, i32 }
          cleanup
  %837 = extractvalue { ptr, i32 } %836, 0
  store ptr %837, ptr %15, align 8
  %838 = extractvalue { ptr, i32 } %836, 1
  store i32 %838, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #10
  br label %1008

839:                                              ; preds = %823
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #10
  %840 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 2
  %841 = load i32, ptr %840, align 4, !tbaa !34
  %842 = load i32, ptr %36, align 4, !tbaa !14
  %843 = sub i32 %841, %842
  store i32 %843, ptr %86, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %87) #10
  store i32 0, ptr %87, align 4, !tbaa !14
  br label %844

844:                                              ; preds = %906, %839
  %845 = load i32, ptr %87, align 4, !tbaa !14
  %846 = load i32, ptr %86, align 4, !tbaa !14
  %847 = icmp ult i32 %845, %846
  br i1 %847, label %849, label %848

848:                                              ; preds = %844
  store i32 32, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #10
  br label %909

849:                                              ; preds = %844
  %850 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %851 = load i32, ptr %87, align 4, !tbaa !14
  %852 = load i32, ptr %36, align 4, !tbaa !14
  %853 = add i32 %851, %852
  %854 = zext i32 %853 to i64
  %855 = getelementptr inbounds [20 x i32], ptr %850, i64 0, i64 %854
  %856 = load i32, ptr %855, align 4, !tbaa !14
  %857 = load i32, ptr %87, align 4, !tbaa !14
  %858 = zext i32 %857 to i64
  %859 = getelementptr inbounds [8 x i32], ptr %81, i64 0, i64 %858
  store i32 %856, ptr %859, align 4, !tbaa !14
  %860 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 2
  %861 = load i32, ptr %87, align 4, !tbaa !14
  %862 = zext i32 %861 to i64
  %863 = getelementptr inbounds [8 x i8], ptr %860, i64 0, i64 %862
  %864 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef nonnull align 1 dereferenceable(1) %863)
          to label %865 unwind label %876

865:                                              ; preds = %849
  %866 = icmp ne i64 %864, 0
  br i1 %866, label %867, label %880

867:                                              ; preds = %865
  %868 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %869 = load i32, ptr %87, align 4, !tbaa !14
  %870 = zext i32 %869 to i64
  %871 = getelementptr inbounds [20 x i32], ptr %868, i64 0, i64 %870
  %872 = load i32, ptr %871, align 4, !tbaa !14
  %873 = load i32, ptr %87, align 4, !tbaa !14
  %874 = zext i32 %873 to i64
  %875 = getelementptr inbounds [8 x i32], ptr %79, i64 0, i64 %874
  store i32 %872, ptr %875, align 4, !tbaa !14
  br label %884

876:                                              ; preds = %884, %849
  %877 = landingpad { ptr, i32 }
          cleanup
  %878 = extractvalue { ptr, i32 } %877, 0
  store ptr %878, ptr %15, align 8
  %879 = extractvalue { ptr, i32 } %877, 1
  store i32 %879, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #10
  br label %1007

880:                                              ; preds = %865
  %881 = load i32, ptr %87, align 4, !tbaa !14
  %882 = zext i32 %881 to i64
  %883 = getelementptr inbounds [8 x i32], ptr %79, i64 0, i64 %882
  store i32 1, ptr %883, align 4, !tbaa !14
  br label %884

884:                                              ; preds = %880, %867
  %885 = getelementptr inbounds %struct.EinsumParamSpec, ptr %1, i32 0, i32 2
  %886 = load i32, ptr %87, align 4, !tbaa !14
  %887 = zext i32 %886 to i64
  %888 = getelementptr inbounds [8 x i8], ptr %885, i64 0, i64 %887
  %889 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %83, ptr noundef nonnull align 1 dereferenceable(1) %888)
          to label %890 unwind label %876

890:                                              ; preds = %884
  %891 = icmp ne i64 %889, 0
  br i1 %891, label %892, label %901

892:                                              ; preds = %890
  %893 = getelementptr inbounds %struct.TensorDesc, ptr %20, i32 0, i32 3
  %894 = load i32, ptr %87, align 4, !tbaa !14
  %895 = zext i32 %894 to i64
  %896 = getelementptr inbounds [20 x i32], ptr %893, i64 0, i64 %895
  %897 = load i32, ptr %896, align 4, !tbaa !14
  %898 = load i32, ptr %87, align 4, !tbaa !14
  %899 = zext i32 %898 to i64
  %900 = getelementptr inbounds [8 x i32], ptr %80, i64 0, i64 %899
  store i32 %897, ptr %900, align 4, !tbaa !14
  br label %905

901:                                              ; preds = %890
  %902 = load i32, ptr %87, align 4, !tbaa !14
  %903 = zext i32 %902 to i64
  %904 = getelementptr inbounds [8 x i32], ptr %80, i64 0, i64 %903
  store i32 1, ptr %904, align 4, !tbaa !14
  br label %905

905:                                              ; preds = %901, %892
  br label %906

906:                                              ; preds = %905
  %907 = load i32, ptr %87, align 4, !tbaa !14
  %908 = add i32 %907, 1
  store i32 %908, ptr %87, align 4, !tbaa !14
  br label %844, !llvm.loop !46

909:                                              ; preds = %848
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #10
  store i32 0, ptr %88, align 4, !tbaa !14
  br label %910

910:                                              ; preds = %999, %909
  %911 = load i32, ptr %88, align 4, !tbaa !14
  %912 = load i32, ptr %63, align 4, !tbaa !14
  %913 = icmp ult i32 %911, %912
  br i1 %913, label %915, label %914

914:                                              ; preds = %910
  store i32 35, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #10
  br label %1006

915:                                              ; preds = %910
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #10
  %916 = load ptr, ptr %21, align 8, !tbaa !5
  %917 = load i32, ptr %88, align 4, !tbaa !14
  %918 = load i32, ptr %64, align 4, !tbaa !14
  %919 = mul i32 %917, %918
  %920 = zext i32 %919 to i64
  %921 = getelementptr inbounds float, ptr %916, i64 %920
  store ptr %921, ptr %89, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #10
  store i32 0, ptr %90, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #10
  store i32 0, ptr %91, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #10
  %922 = load i32, ptr %88, align 4, !tbaa !14
  store i32 %922, ptr %92, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #10
  store i32 1, ptr %93, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %94) #10
  store i32 1, ptr %94, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #10
  store i32 0, ptr %95, align 4, !tbaa !14
  br label %923

923:                                              ; preds = %973, %915
  %924 = load i32, ptr %95, align 4, !tbaa !14
  %925 = load i32, ptr %86, align 4, !tbaa !14
  %926 = icmp ult i32 %924, %925
  br i1 %926, label %928, label %927

927:                                              ; preds = %923
  store i32 38, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #10
  br label %976

928:                                              ; preds = %923
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #10
  %929 = load i32, ptr %92, align 4, !tbaa !14
  %930 = load i32, ptr %95, align 4, !tbaa !14
  %931 = zext i32 %930 to i64
  %932 = getelementptr inbounds [8 x i32], ptr %81, i64 0, i64 %931
  %933 = load i32, ptr %932, align 4, !tbaa !14
  %934 = urem i32 %929, %933
  store i32 %934, ptr %96, align 4, !tbaa !14
  %935 = load i32, ptr %95, align 4, !tbaa !14
  %936 = zext i32 %935 to i64
  %937 = getelementptr inbounds [8 x i32], ptr %81, i64 0, i64 %936
  %938 = load i32, ptr %937, align 4, !tbaa !14
  %939 = load i32, ptr %92, align 4, !tbaa !14
  %940 = udiv i32 %939, %938
  store i32 %940, ptr %92, align 4, !tbaa !14
  %941 = load i32, ptr %96, align 4, !tbaa !14
  %942 = load i32, ptr %95, align 4, !tbaa !14
  %943 = zext i32 %942 to i64
  %944 = getelementptr inbounds [8 x i32], ptr %79, i64 0, i64 %943
  %945 = load i32, ptr %944, align 4, !tbaa !14
  %946 = urem i32 %941, %945
  %947 = load i32, ptr %93, align 4, !tbaa !14
  %948 = mul i32 %946, %947
  %949 = load i32, ptr %90, align 4, !tbaa !14
  %950 = add i32 %949, %948
  store i32 %950, ptr %90, align 4, !tbaa !14
  %951 = load i32, ptr %96, align 4, !tbaa !14
  %952 = load i32, ptr %95, align 4, !tbaa !14
  %953 = zext i32 %952 to i64
  %954 = getelementptr inbounds [8 x i32], ptr %80, i64 0, i64 %953
  %955 = load i32, ptr %954, align 4, !tbaa !14
  %956 = urem i32 %951, %955
  %957 = load i32, ptr %94, align 4, !tbaa !14
  %958 = mul i32 %956, %957
  %959 = load i32, ptr %91, align 4, !tbaa !14
  %960 = add i32 %959, %958
  store i32 %960, ptr %91, align 4, !tbaa !14
  %961 = load i32, ptr %95, align 4, !tbaa !14
  %962 = zext i32 %961 to i64
  %963 = getelementptr inbounds [8 x i32], ptr %79, i64 0, i64 %962
  %964 = load i32, ptr %963, align 4, !tbaa !14
  %965 = load i32, ptr %93, align 4, !tbaa !14
  %966 = mul i32 %965, %964
  store i32 %966, ptr %93, align 4, !tbaa !14
  %967 = load i32, ptr %95, align 4, !tbaa !14
  %968 = zext i32 %967 to i64
  %969 = getelementptr inbounds [8 x i32], ptr %80, i64 0, i64 %968
  %970 = load i32, ptr %969, align 4, !tbaa !14
  %971 = load i32, ptr %94, align 4, !tbaa !14
  %972 = mul i32 %971, %970
  store i32 %972, ptr %94, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #10
  br label %973

973:                                              ; preds = %928
  %974 = load i32, ptr %95, align 4, !tbaa !14
  %975 = add i32 %974, 1
  store i32 %975, ptr %95, align 4, !tbaa !14
  br label %923, !llvm.loop !47

976:                                              ; preds = %927
  call void @llvm.lifetime.start.p0(i64 8, ptr %97) #10
  %977 = load ptr, ptr %13, align 8, !tbaa !5
  %978 = load i32, ptr %90, align 4, !tbaa !14
  %979 = load i32, ptr %66, align 4, !tbaa !14
  %980 = mul i32 %978, %979
  %981 = zext i32 %980 to i64
  %982 = getelementptr inbounds float, ptr %977, i64 %981
  store ptr %982, ptr %97, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %98) #10
  %983 = load ptr, ptr %18, align 8, !tbaa !5
  %984 = load i32, ptr %91, align 4, !tbaa !14
  %985 = load i32, ptr %68, align 4, !tbaa !14
  %986 = mul i32 %984, %985
  %987 = zext i32 %986 to i64
  %988 = getelementptr inbounds float, ptr %983, i64 %987
  store ptr %988, ptr %98, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 4 %59, i64 92, i1 false), !tbaa.struct !28
  %989 = load ptr, ptr %97, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %53, i64 92, i1 false), !tbaa.struct !28
  %990 = load ptr, ptr %98, align 8, !tbaa !5
  %991 = load i32, ptr %23, align 4, !tbaa !14
  %992 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %62, i64 92, i1 false), !tbaa.struct !28
  %993 = load ptr, ptr %89, align 8, !tbaa !5
  %994 = load ptr, ptr %9, align 8, !tbaa !5
  %995 = getelementptr inbounds %struct.ArchInfo, ptr %994, i32 0, i32 0
  %996 = load i32, ptr %995, align 8, !tbaa !15
  %997 = invoke i32 @matrix_matrix_multiply(ptr noundef byval(%struct.TensorDesc) align 8 %99, ptr noundef %989, ptr noundef byval(%struct.TensorDesc) align 8 %100, ptr noundef %990, i32 noundef %991, ptr noundef %992, ptr noundef byval(%struct.TensorDesc) align 8 %101, ptr noundef %993, ptr noundef null, i32 noundef %996)
          to label %998 unwind label %1002

998:                                              ; preds = %976
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %94) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #10
  br label %999

999:                                              ; preds = %998
  %1000 = load i32, ptr %88, align 4, !tbaa !14
  %1001 = add i32 %1000, 1
  store i32 %1001, ptr %88, align 4, !tbaa !14
  br label %910, !llvm.loop !48

1002:                                             ; preds = %976
  %1003 = landingpad { ptr, i32 }
          cleanup
  %1004 = extractvalue { ptr, i32 } %1003, 0
  store ptr %1004, ptr %15, align 8
  %1005 = extractvalue { ptr, i32 } %1003, 1
  store i32 %1005, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %98) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %97) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %94) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #10
  br label %1007

1006:                                             ; preds = %914
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %83) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %83) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %82) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %82) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %80) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #10
  br label %1009

1007:                                             ; preds = %1002, %876
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #10
  br label %1008

1008:                                             ; preds = %1007, %835, %813
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %83) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %83) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %82) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %82) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %80) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #10
  br label %1010

1009:                                             ; preds = %1006, %794
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %53) #10
  br label %1019

1010:                                             ; preds = %1008, %793, %725
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  br label %1011

1011:                                             ; preds = %1010, %721
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %1012

1012:                                             ; preds = %1011, %717
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  br label %1013

1013:                                             ; preds = %1012, %713
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #10
  br label %1014

1014:                                             ; preds = %1013, %709
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  br label %1015

1015:                                             ; preds = %1014, %705
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  br label %1016

1016:                                             ; preds = %1015, %701
  call void @llvm.lifetime.end.p0(i64 92, ptr %62) #10
  br label %1017

1017:                                             ; preds = %1016, %641, %626, %622
  call void @llvm.lifetime.end.p0(i64 92, ptr %59) #10
  br label %1018

1018:                                             ; preds = %1017, %581, %566, %562
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %53) #10
  br label %1020

1019:                                             ; preds = %1009, %519
  store i32 1, ptr %45, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %27) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #10
  ret i32 0

1020:                                             ; preds = %1018, %518, %343, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %1021

1021:                                             ; preds = %1020, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #10
  br label %1022

1022:                                             ; preds = %1021, %183
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %27) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %27) #10
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %26) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %26) #10
  br label %1023

1023:                                             ; preds = %1022, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %1024

1024:                                             ; preds = %1023, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #10
  br label %1025

1025:                                             ; preds = %1024, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #10
  br label %1026

1026:                                             ; preds = %1025, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #10
  br label %1027

1027:                                             ; preds = %1026
  %1028 = load ptr, ptr %15, align 8
  %1029 = load i32, ptr %16, align 4
  %1030 = insertvalue { ptr, i32 } poison, ptr %1028, 0
  %1031 = insertvalue { ptr, i32 } %1030, i32 %1029, 1
  resume { ptr, i32 } %1031
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6TensorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #3

declare i32 @printf(ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) #7

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19calculateLocalIndexjPKjj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8, i32 noundef, ptr noundef, i32 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef, ptr noundef, i32 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10reduceDimsPjjj(ptr noundef, i32 noundef, i32 noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) #5

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

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

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

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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 32}
!10 = !{!"_ZTS15EinsumParamSpec", !7, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTS2EE", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS8ArchInfo", !17, i64 0, !6, i64 8}
!17 = !{!"_ZTS4Arch", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!10, !11, i64 28}
!23 = distinct !{!23, !19}
!24 = !{!10, !11, i64 24}
!25 = distinct !{!25, !19}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{i64 0, i64 4, !29, i64 4, i64 4, !31, i64 8, i64 4, !14, i64 12, i64 80, !33}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTS8DataType", !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"_ZTS10DataFormat", !7, i64 0}
!33 = !{!7, !7, i64 0}
!34 = !{!35, !11, i64 8}
!35 = !{!"_ZTS10TensorDesc", !30, i64 0, !32, i64 4, !11, i64 8, !7, i64 12}
!36 = distinct !{!36, !19}
!37 = distinct !{!37, !19}
!38 = !{!39, !39, i64 0}
!39 = !{!"float", !7, i64 0}
!40 = distinct !{!40, !19}
!41 = distinct !{!41, !19}
!42 = !{!35, !30, i64 0}
!43 = distinct !{!43, !19}
!44 = distinct !{!44, !19}
!45 = distinct !{!45, !19}
!46 = distinct !{!46, !19}
!47 = distinct !{!47, !19}
!48 = distinct !{!48, !19}


; 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.EinsumParamSpec = type { [8 x i8], [8 x i8], [8 x i8], i32, i32, i32 }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6einsumSt6vectorI6TensorSaIS0_EE15EinsumParamSpecS0_S0_P8ArchInfo(ptr noundef %0, ptr noundef byval(%struct.EinsumParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.TensorDesc, align 4
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %struct.TensorDesc, align 4
  %9 = alloca %class.Tensor, align 8
  %10 = alloca %struct.TensorDesc, align 8
  %11 = alloca %class.Tensor, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %"class.std::unordered_map", align 8
  %14 = alloca %"class.std::unordered_map", align 8
  %15 = alloca [8 x i32], align 16
  %16 = alloca [8 x i32], align 16
  %17 = alloca %"class.std::vector.8", align 8
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca %struct.TensorDesc, align 4
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca %struct.TensorDesc, align 4
  %23 = alloca %struct.TensorDesc, align 4
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca [8 x i32], align 16
  %26 = alloca [8 x i32], align 16
  %27 = alloca [8 x i32], align 16
  %28 = alloca %"class.std::unordered_map", align 8
  %29 = alloca %"class.std::unordered_map", align 8
  %30 = getelementptr inbounds i8, ptr %1, i64 32
  %31 = load i32, ptr %30, align 8, !tbaa !5
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %36, label %33

33:                                               ; preds = %5
  %34 = tail call noundef i64 @_ZNKSt6vectorI6TensorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %35 = icmp ult i64 %34, 2
  br i1 %35, label %36, label %46

36:                                               ; preds = %5, %33
  %37 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %38 = trunc i64 %37 to i32
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !10
  %41 = tail call i32 @fflush(ptr noundef %40)
  %42 = tail call ptr @ee2str(i32 noundef 51)
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %42)
  %44 = load ptr, ptr @stdout, align 8, !tbaa !10
  %45 = tail call i32 @fflush(ptr noundef %44)
  tail call void @exit(i32 noundef 1) #12
  unreachable

46:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %6) #11
  %47 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #11
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %6, ptr noundef nonnull align 8 dereferenceable(32) %47)
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %48) #11
  %49 = load i32, ptr %4, align 8, !tbaa !12
  %50 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef %49)
          to label %51 unwind label %72

51:                                               ; preds = %46
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %8) #11
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #11
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %8, ptr noundef nonnull align 8 dereferenceable(32) %52)
  %53 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %53) #11
  %54 = load i32, ptr %4, align 8, !tbaa !12
  %55 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %9, i32 noundef %54)
          to label %56 unwind label %74

56:                                               ; preds = %51
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #11
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %2) #11
  %57 = load i32, ptr %4, align 8, !tbaa !12
  %58 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %11, i32 noundef %57)
          to label %59 unwind label %76

59:                                               ; preds = %56
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  %60 = call noundef i32 @_ZN6Tensor5bytesEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %3) #11
  %61 = load i32, ptr %4, align 8, !tbaa !12
  %62 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %12, i32 noundef %61)
          to label %63 unwind label %78

63:                                               ; preds = %59
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #11
  %64 = load i32, ptr %30, align 8, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph, label %.preheader299

.lr.ph:                                           ; preds = %63
  %66 = getelementptr inbounds i8, ptr %1, i64 16
  br label %80

.preheader299:                                    ; preds = %83, %63
  %67 = getelementptr inbounds i8, ptr %1, i64 28
  %68 = load i32, ptr %67, align 4, !tbaa !15
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %.lr.ph319, label %.preheader298

.lr.ph319:                                        ; preds = %.preheader299
  %70 = getelementptr inbounds i8, ptr %1, i64 8
  %71 = getelementptr inbounds i8, ptr %6, i64 12
  br label %94

72:                                               ; preds = %46
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  br label %449

74:                                               ; preds = %51
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  br label %448

76:                                               ; preds = %56
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  br label %447

78:                                               ; preds = %59
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %447

80:                                               ; preds = %.lr.ph, %83
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %83 ]
  %81 = getelementptr inbounds [8 x i8], ptr %66, i64 0, i64 %indvars.iv
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %81)
          to label %83 unwind label %88

83:                                               ; preds = %80
  %84 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %84, ptr %82, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = load i32, ptr %30, align 8, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %indvars.iv.next, %86
  br i1 %87, label %80, label %.preheader299, !llvm.loop !17

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

.preheader298:                                    ; preds = %115, %.preheader299
  %.0227.lcssa = phi i32 [ 0, %.preheader299 ], [ %.1228, %115 ]
  %.0223.lcssa = phi i32 [ 0, %.preheader299 ], [ %.1224, %115 ]
  %.0214.lcssa = phi i1 [ false, %.preheader299 ], [ %.2216, %115 ]
  %90 = getelementptr inbounds i8, ptr %1, i64 24
  %91 = load i32, ptr %90, align 8, !tbaa !19
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph330, label %._crit_edge

.lr.ph330:                                        ; preds = %.preheader298
  %93 = getelementptr inbounds i8, ptr %8, i64 12
  br label %119

94:                                               ; preds = %.lr.ph319, %115
  %indvars.iv386 = phi i64 [ 0, %.lr.ph319 ], [ %indvars.iv.next387, %115 ]
  %.0214318 = phi i1 [ false, %.lr.ph319 ], [ %.2216, %115 ]
  %.0223317 = phi i32 [ 0, %.lr.ph319 ], [ %.1224, %115 ]
  %.0227316 = phi i32 [ 0, %.lr.ph319 ], [ %.1228, %115 ]
  %.0229315 = phi i32 [ 0, %.lr.ph319 ], [ %.1230, %115 ]
  %95 = getelementptr inbounds [8 x i8], ptr %70, i64 0, i64 %indvars.iv386
  %96 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %95)
          to label %97 unwind label %102

97:                                               ; preds = %94
  %.not282 = icmp eq i64 %96, 0
  br i1 %.not282, label %98, label %104

98:                                               ; preds = %97
  %99 = getelementptr inbounds [20 x i32], ptr %71, i64 0, i64 %indvars.iv386
  %100 = load i32, ptr %99, align 4, !tbaa !16
  %101 = trunc nuw nsw i64 %indvars.iv386 to i32
  br label %115

102:                                              ; preds = %110, %106, %104, %94
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %446

104:                                              ; preds = %97
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %95)
          to label %106 unwind label %102

106:                                              ; preds = %104
  %107 = load i32, ptr %105, align 4, !tbaa !16
  %108 = icmp ult i32 %107, %.0229315
  %spec.select = select i1 %108, i1 true, i1 %.0214318
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 1 dereferenceable(1) %95)
          to label %110 unwind label %102

110:                                              ; preds = %106
  %111 = trunc nuw nsw i64 %indvars.iv386 to i32
  store i32 %111, ptr %109, align 4, !tbaa !16
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %95)
          to label %113 unwind label %102

113:                                              ; preds = %110
  %114 = load i32, ptr %112, align 4, !tbaa !16
  br label %115

115:                                              ; preds = %98, %113
  %.1230 = phi i32 [ %114, %113 ], [ %.0229315, %98 ]
  %.1228 = phi i32 [ %.0227316, %113 ], [ %101, %98 ]
  %.1224 = phi i32 [ %.0223317, %113 ], [ %100, %98 ]
  %.2216 = phi i1 [ %spec.select, %113 ], [ %.0214318, %98 ]
  %indvars.iv.next387 = add nuw nsw i64 %indvars.iv386, 1
  %116 = load i32, ptr %67, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = icmp slt i64 %indvars.iv.next387, %117
  br i1 %118, label %94, label %.preheader298, !llvm.loop !20

._crit_edge:                                      ; preds = %149, %.preheader298
  %.0246.lcssa = phi i32 [ -1, %.preheader298 ], [ %.1247, %149 ]
  %.0243.lcssa = phi i32 [ -1, %.preheader298 ], [ %.1244, %149 ]
  %.0239.lcssa = phi i32 [ -1, %.preheader298 ], [ %.1240, %149 ]
  %.0236.lcssa = phi i32 [ 0, %.preheader298 ], [ %.1237, %149 ]
  %.0234.lcssa = phi i32 [ 0, %.preheader298 ], [ %.1235, %149 ]
  %.3217.lcssa = phi i1 [ %.0214.lcssa, %.preheader298 ], [ %.5219, %149 ]
  %.not = icmp eq i32 %.0223.lcssa, %.0234.lcssa
  br i1 %.not, label %164, label %153

119:                                              ; preds = %.lr.ph330, %149
  %indvars.iv388 = phi i64 [ 0, %.lr.ph330 ], [ %indvars.iv.next389, %149 ]
  %.3217329 = phi i1 [ %.0214.lcssa, %.lr.ph330 ], [ %.5219, %149 ]
  %.2231328 = phi i32 [ 0, %.lr.ph330 ], [ %.3232, %149 ]
  %.0234327 = phi i32 [ 0, %.lr.ph330 ], [ %.1235, %149 ]
  %.0236326 = phi i32 [ 0, %.lr.ph330 ], [ %.1237, %149 ]
  %.0239325 = phi i32 [ -1, %.lr.ph330 ], [ %.1240, %149 ]
  %.0243324 = phi i32 [ -1, %.lr.ph330 ], [ %.1244, %149 ]
  %.0246323 = phi i32 [ -1, %.lr.ph330 ], [ %.1247, %149 ]
  %120 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %indvars.iv388
  %121 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %122 unwind label %127

122:                                              ; preds = %119
  %.not279 = icmp eq i64 %121, 0
  br i1 %.not279, label %123, label %129

123:                                              ; preds = %122
  %124 = getelementptr inbounds [20 x i32], ptr %93, i64 0, i64 %indvars.iv388
  %125 = load i32, ptr %124, align 4, !tbaa !16
  %126 = trunc nuw nsw i64 %indvars.iv388 to i32
  br label %149

127:                                              ; preds = %143, %141, %135, %131, %129, %119
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %446

129:                                              ; preds = %122
  %130 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %131 unwind label %127

131:                                              ; preds = %129
  %132 = load i32, ptr %130, align 4, !tbaa !16
  %133 = icmp ult i32 %132, %.2231328
  %spec.select291 = select i1 %133, i1 true, i1 %.3217329
  %134 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %135 unwind label %127

135:                                              ; preds = %131
  %136 = load i32, ptr %134, align 4, !tbaa !16
  %137 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %138 unwind label %127

138:                                              ; preds = %135
  %139 = icmp ne i64 %137, 0
  %140 = icmp eq i32 %.0239325, -1
  %or.cond = select i1 %139, i1 %140, i1 false
  br i1 %or.cond, label %141, label %149

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %143 unwind label %127

143:                                              ; preds = %141
  %144 = load i32, ptr %142, align 4, !tbaa !16
  %145 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %146 unwind label %127

146:                                              ; preds = %143
  %147 = load i32, ptr %145, align 4, !tbaa !16
  %148 = trunc nuw nsw i64 %indvars.iv388 to i32
  br label %149

149:                                              ; preds = %123, %146, %138
  %.1247 = phi i32 [ %148, %146 ], [ %.0246323, %138 ], [ %.0246323, %123 ]
  %.1244 = phi i32 [ %147, %146 ], [ %.0243324, %138 ], [ %.0243324, %123 ]
  %.1240 = phi i32 [ %144, %146 ], [ %.0239325, %138 ], [ %.0239325, %123 ]
  %.1237 = phi i32 [ %.0236326, %146 ], [ %.0236326, %138 ], [ %126, %123 ]
  %.1235 = phi i32 [ %.0234327, %146 ], [ %.0234327, %138 ], [ %125, %123 ]
  %.3232 = phi i32 [ %136, %146 ], [ %136, %138 ], [ %.2231328, %123 ]
  %.5219 = phi i1 [ %spec.select291, %146 ], [ %spec.select291, %138 ], [ %.3217329, %123 ]
  %indvars.iv.next389 = add nuw nsw i64 %indvars.iv388, 1
  %150 = load i32, ptr %90, align 8, !tbaa !19
  %151 = sext i32 %150 to i64
  %152 = icmp slt i64 %indvars.iv.next389, %151
  br i1 %152, label %119, label %._crit_edge, !llvm.loop !21

153:                                              ; preds = %._crit_edge
  %154 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %155 = trunc i64 %154 to i32
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %155)
  %157 = load ptr, ptr @stdout, align 8, !tbaa !10
  %158 = call i32 @fflush(ptr noundef %157)
  %159 = getelementptr inbounds i8, ptr %1, i64 8
  %160 = getelementptr inbounds i8, ptr %1, i64 16
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull %159, ptr noundef nonnull %1, ptr noundef nonnull %160)
  %162 = load ptr, ptr @stdout, align 8, !tbaa !10
  %163 = call i32 @fflush(ptr noundef %162)
  call void @exit(i32 noundef 1) #12
  unreachable

164:                                              ; preds = %._crit_edge
  %165 = icmp sgt i32 %.0236.lcssa, %.0246.lcssa
  %166 = icmp sgt i32 %.0227.lcssa, %.0243.lcssa
  %or.cond292 = select i1 %165, i1 true, i1 %166
  %167 = select i1 %or.cond292, i1 true, i1 %.3217.lcssa
  br i1 %167, label %168, label %242

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #11
  %169 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
  %.not379 = icmp eq i32 %169, 0
  br i1 %.not379, label %._crit_edge374, label %.lr.ph373

.lr.ph373:                                        ; preds = %168
  %170 = getelementptr inbounds i8, ptr %10, i64 12
  %171 = getelementptr inbounds i8, ptr %10, i64 8
  %172 = getelementptr inbounds i8, ptr %1, i64 8
  %.not380 = icmp eq i32 %.0223.lcssa, 0
  %173 = zext i32 %.0227.lcssa to i64
  %174 = getelementptr inbounds [8 x i32], ptr %15, i64 0, i64 %173
  %175 = zext i32 %.0236.lcssa to i64
  %176 = getelementptr inbounds [8 x i32], ptr %16, i64 0, i64 %175
  %177 = getelementptr inbounds i8, ptr %6, i64 12
  %178 = getelementptr inbounds i8, ptr %6, i64 8
  %179 = getelementptr inbounds i8, ptr %8, i64 12
  %180 = getelementptr inbounds i8, ptr %8, i64 8
  br label %181

._crit_edge374:                                   ; preds = %._crit_edge369, %168
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #11
  br label %445

181:                                              ; preds = %.lr.ph373, %._crit_edge369
  %indvars.iv421 = phi i64 [ 0, %.lr.ph373 ], [ %indvars.iv.next422, %._crit_edge369 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #11
  %182 = load i32, ptr %171, align 8, !tbaa !22
  %183 = trunc nuw i64 %indvars.iv421 to i32
  invoke void @_Z19calculateLocalIndexjPKjj(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %17, i32 noundef %183, ptr noundef nonnull %170, i32 noundef %182)
          to label %.preheader294 unwind label %188

.preheader294:                                    ; preds = %181
  %184 = load i32, ptr %67, align 4, !tbaa !15
  %185 = icmp sgt i32 %184, 0
  br i1 %185, label %.lr.ph363, label %.preheader293

.preheader293:                                    ; preds = %203, %.preheader294
  %186 = load i32, ptr %90, align 8, !tbaa !19
  %187 = icmp sgt i32 %186, 0
  br i1 %187, label %.lr.ph365, label %.preheader

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

.lr.ph363:                                        ; preds = %.preheader294, %203
  %indvars.iv414 = phi i64 [ %indvars.iv.next415, %203 ], [ 0, %.preheader294 ]
  %190 = getelementptr inbounds [8 x i8], ptr %172, i64 0, i64 %indvars.iv414
  %191 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %190)
          to label %192 unwind label %201

192:                                              ; preds = %.lr.ph363
  %.not275 = icmp eq i64 %191, 0
  br i1 %.not275, label %203, label %193

193:                                              ; preds = %192
  %194 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %190)
          to label %195 unwind label %201

195:                                              ; preds = %193
  %196 = load i32, ptr %194, align 4, !tbaa !16
  %197 = zext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %197) #11
  %199 = load i32, ptr %198, align 4, !tbaa !16
  %200 = getelementptr inbounds [8 x i32], ptr %15, i64 0, i64 %indvars.iv414
  store i32 %199, ptr %200, align 4, !tbaa !16
  br label %203

201:                                              ; preds = %193, %.lr.ph363
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %240

203:                                              ; preds = %192, %195
  %indvars.iv.next415 = add nuw nsw i64 %indvars.iv414, 1
  %204 = load i32, ptr %67, align 4, !tbaa !15
  %205 = sext i32 %204 to i64
  %206 = icmp slt i64 %indvars.iv.next415, %205
  br i1 %206, label %.lr.ph363, label %.preheader293, !llvm.loop !26

.preheader:                                       ; preds = %220, %.preheader293
  br i1 %.not380, label %._crit_edge369, label %.lr.ph368

.lr.ph365:                                        ; preds = %.preheader293, %220
  %indvars.iv417 = phi i64 [ %indvars.iv.next418, %220 ], [ 0, %.preheader293 ]
  %207 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %indvars.iv417
  %208 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %207)
          to label %209 unwind label %218

209:                                              ; preds = %.lr.ph365
  %.not274 = icmp eq i64 %208, 0
  br i1 %.not274, label %220, label %210

210:                                              ; preds = %209
  %211 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %207)
          to label %212 unwind label %218

212:                                              ; preds = %210
  %213 = load i32, ptr %211, align 4, !tbaa !16
  %214 = zext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %214) #11
  %216 = load i32, ptr %215, align 4, !tbaa !16
  %217 = getelementptr inbounds [8 x i32], ptr %16, i64 0, i64 %indvars.iv417
  store i32 %216, ptr %217, align 4, !tbaa !16
  br label %220

218:                                              ; preds = %210, %.lr.ph365
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %240

220:                                              ; preds = %209, %212
  %indvars.iv.next418 = add nuw nsw i64 %indvars.iv417, 1
  %221 = load i32, ptr %90, align 8, !tbaa !19
  %222 = sext i32 %221 to i64
  %223 = icmp slt i64 %indvars.iv.next418, %222
  br i1 %223, label %.lr.ph365, label %.preheader, !llvm.loop !27

._crit_edge369:                                   ; preds = %.lr.ph368, %.preheader
  %.0255.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %238, %.lr.ph368 ]
  %224 = getelementptr inbounds float, ptr %58, i64 %indvars.iv421
  store float %.0255.lcssa, ptr %224, align 4, !tbaa !28
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  %indvars.iv.next422 = add nuw nsw i64 %indvars.iv421, 1
  %225 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
  %226 = zext i32 %225 to i64
  %227 = icmp ult i64 %indvars.iv.next422, %226
  br i1 %227, label %181, label %._crit_edge374, !llvm.loop !30

.lr.ph368:                                        ; preds = %.preheader, %.lr.ph368
  %.0255367 = phi float [ %238, %.lr.ph368 ], [ 0.000000e+00, %.preheader ]
  %.0256366 = phi i32 [ %239, %.lr.ph368 ], [ 0, %.preheader ]
  store i32 %.0256366, ptr %174, align 4, !tbaa !16
  store i32 %.0256366, ptr %176, align 4, !tbaa !16
  %228 = load i32, ptr %178, align 4, !tbaa !22
  %229 = call noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef nonnull %15, ptr noundef nonnull %177, i32 noundef %228)
  %230 = load i32, ptr %180, align 4, !tbaa !22
  %231 = call noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef nonnull %16, ptr noundef nonnull %179, i32 noundef %230)
  %232 = zext i32 %229 to i64
  %233 = getelementptr inbounds float, ptr %50, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !28
  %235 = zext i32 %231 to i64
  %236 = getelementptr inbounds float, ptr %55, i64 %235
  %237 = load float, ptr %236, align 4, !tbaa !28
  %238 = call float @llvm.fmuladd.f32(float %234, float %237, float %.0255367)
  %239 = add nuw i32 %.0256366, 1
  %exitcond420.not = icmp eq i32 %239, %.0223.lcssa
  br i1 %exitcond420.not, label %._crit_edge369, label %.lr.ph368, !llvm.loop !31

240:                                              ; preds = %218, %201
  %.pn276 = phi { ptr, i32 } [ %202, %201 ], [ %219, %218 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #11
  br label %241

241:                                              ; preds = %240, %188
  %.pn276.pn = phi { ptr, i32 } [ %.pn276, %240 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #11
  br label %446

242:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %18) #11
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %18) #11
  %243 = getelementptr inbounds i8, ptr %8, i64 12
  %244 = zext i32 %.0236.lcssa to i64
  %245 = getelementptr inbounds [20 x i32], ptr %243, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !16
  %.not261 = icmp eq i32 %.0236.lcssa, 0
  br i1 %.not261, label %268, label %247

247:                                              ; preds = %242
  %248 = add i32 %.0236.lcssa, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %249
  %251 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %250)
          to label %252 unwind label %264

252:                                              ; preds = %247
  %253 = load i32, ptr %251, align 4, !tbaa !16
  %254 = icmp slt i32 %.0239.lcssa, %253
  br i1 %254, label %259, label %255

255:                                              ; preds = %252
  %256 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %250)
          to label %257 unwind label %264

257:                                              ; preds = %255
  %258 = load i32, ptr %256, align 4, !tbaa !16
  br label %259

259:                                              ; preds = %252, %257
  %260 = phi i32 [ %258, %257 ], [ %.0239.lcssa, %252 ]
  %261 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %243, i32 noundef 0, i32 noundef %.0236.lcssa)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %19) #11
  %262 = load i32, ptr %8, align 4, !tbaa !32
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %19, i32 noundef %262, i32 noundef 14, i32 noundef %246, i32 noundef %261)
          to label %263 unwind label %266

263:                                              ; preds = %259
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef nonnull align 4 dereferenceable(92) %19, i64 92, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %19) #11
  br label %274

264:                                              ; preds = %255, %247
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %444

266:                                              ; preds = %259
  %267 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %19) #11
  br label %444

268:                                              ; preds = %242
  %269 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %243, i32 noundef 1, i32 noundef %.0246.lcssa)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %20) #11
  %270 = load i32, ptr %8, align 4, !tbaa !32
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %20, i32 noundef %270, i32 noundef 13, i32 noundef %269, i32 noundef %246)
          to label %271 unwind label %272

271:                                              ; preds = %268
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef nonnull align 4 dereferenceable(92) %20, i64 92, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %20) #11
  br label %274

272:                                              ; preds = %268
  %273 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %20) #11
  br label %444

274:                                              ; preds = %271, %263
  %.0252 = phi i32 [ %261, %263 ], [ %269, %271 ]
  %.2248 = phi i32 [ %248, %263 ], [ %.0246.lcssa, %271 ]
  %.2241 = phi i32 [ %260, %263 ], [ %.0239.lcssa, %271 ]
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %21) #11
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %21) #11
  %.not262 = icmp eq i32 %.0227.lcssa, 0
  br i1 %.not262, label %298, label %275

275:                                              ; preds = %274
  %276 = add i32 %.0227.lcssa, 1
  %277 = getelementptr inbounds i8, ptr %1, i64 8
  %278 = sext i32 %276 to i64
  %279 = getelementptr inbounds [8 x i8], ptr %277, i64 0, i64 %278
  %280 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %279)
          to label %281 unwind label %294

281:                                              ; preds = %275
  %282 = load i32, ptr %280, align 4, !tbaa !16
  %283 = icmp slt i32 %.2241, %282
  br i1 %283, label %288, label %284

284:                                              ; preds = %281
  %285 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 1 dereferenceable(1) %279)
          to label %286 unwind label %294

286:                                              ; preds = %284
  %287 = load i32, ptr %285, align 4, !tbaa !16
  br label %288

288:                                              ; preds = %281, %286
  %289 = phi i32 [ %287, %286 ], [ %.2241, %281 ]
  %290 = getelementptr inbounds i8, ptr %6, i64 12
  %291 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %290, i32 noundef 0, i32 noundef %.0227.lcssa)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %22) #11
  %292 = load i32, ptr %6, align 4, !tbaa !32
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %22, i32 noundef %292, i32 noundef 13, i32 noundef %246, i32 noundef %291)
          to label %293 unwind label %296

293:                                              ; preds = %288
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %21, ptr noundef nonnull align 4 dereferenceable(92) %22, i64 92, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %22) #11
  br label %305

294:                                              ; preds = %284, %275
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %443

296:                                              ; preds = %288
  %297 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %22) #11
  br label %443

298:                                              ; preds = %274
  %299 = getelementptr inbounds i8, ptr %6, i64 12
  %300 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %299, i32 noundef 1, i32 noundef %.0243.lcssa)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %23) #11
  %301 = load i32, ptr %6, align 4, !tbaa !32
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %23, i32 noundef %301, i32 noundef 14, i32 noundef %300, i32 noundef %246)
          to label %302 unwind label %303

302:                                              ; preds = %298
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %21, ptr noundef nonnull align 4 dereferenceable(92) %23, i64 92, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %23) #11
  br label %305

303:                                              ; preds = %298
  %304 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %23) #11
  br label %443

305:                                              ; preds = %302, %293
  %.0253 = phi i32 [ %291, %293 ], [ %300, %302 ]
  %.2245 = phi i32 [ %276, %293 ], [ %.0243.lcssa, %302 ]
  %.3242 = phi i32 [ %289, %293 ], [ %.2241, %302 ]
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %24) #11
  %306 = load i32, ptr %10, align 8, !tbaa !32
  invoke void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %24, i32 noundef %306, i32 noundef 14, i32 noundef %.0253, i32 noundef %.0252)
          to label %307 unwind label %327

307:                                              ; preds = %305
  %308 = getelementptr inbounds i8, ptr %10, i64 12
  %309 = getelementptr inbounds i8, ptr %10, i64 8
  %310 = load i32, ptr %309, align 8, !tbaa !22
  %311 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %308, i32 noundef %.3242, i32 noundef %310)
  %312 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %308, i32 noundef 0, i32 noundef %.3242)
  %313 = getelementptr inbounds i8, ptr %6, i64 12
  %314 = getelementptr inbounds i8, ptr %6, i64 8
  %315 = load i32, ptr %314, align 4, !tbaa !22
  %316 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %313, i32 noundef %.2245, i32 noundef %315)
  %317 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %313, i32 noundef 0, i32 noundef %.2245)
  %318 = getelementptr inbounds i8, ptr %8, i64 8
  %319 = load i32, ptr %318, align 4, !tbaa !22
  %320 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %243, i32 noundef %.2248, i32 noundef %319)
  %321 = call noundef i32 @_Z10reduceDimsPjjj(ptr noundef nonnull %243, i32 noundef 0, i32 noundef %.2248)
  %322 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
          to label %323 unwind label %329

323:                                              ; preds = %307
  %324 = zext i32 %322 to i64
  call void @_Z10UNI_MEMSETPvim(ptr noundef %58, i32 noundef 0, i64 noundef %324)
  %325 = icmp eq i32 %316, %320
  br i1 %325, label %.preheader295, label %357

.preheader295:                                    ; preds = %323
  %.not378 = icmp eq i32 %311, 0
  br i1 %.not378, label %.loopexit, label %.lr.ph361.preheader

.lr.ph361.preheader:                              ; preds = %.preheader295
  %wide.trip.count412 = zext i32 %311 to i64
  br label %.lr.ph361

326:                                              ; preds = %344
  %indvars.iv.next410 = add nuw nsw i64 %indvars.iv409, 1
  %exitcond413.not = icmp eq i64 %indvars.iv.next410, %wide.trip.count412
  br i1 %exitcond413.not, label %.loopexit, label %.lr.ph361, !llvm.loop !37

327:                                              ; preds = %305
  %328 = landingpad { ptr, i32 }
          cleanup
  br label %442

329:                                              ; preds = %307
  %330 = landingpad { ptr, i32 }
          cleanup
  br label %442

.lr.ph361:                                        ; preds = %.lr.ph361.preheader, %326
  %indvars.iv409 = phi i64 [ 0, %.lr.ph361.preheader ], [ %indvars.iv.next410, %326 ]
  %331 = trunc nuw i64 %indvars.iv409 to i32
  %332 = mul i32 %312, %331
  %333 = zext i32 %332 to i64
  %334 = getelementptr inbounds float, ptr %58, i64 %333
  %335 = urem i32 %331, %316
  %336 = mul i32 %335, %317
  %337 = zext i32 %336 to i64
  %338 = getelementptr inbounds float, ptr %50, i64 %337
  %339 = mul i32 %335, %321
  %340 = zext i32 %339 to i64
  %341 = getelementptr inbounds float, ptr %55, i64 %340
  %342 = load i32, ptr %4, align 8, !tbaa !12
  %343 = invoke i32 @matrix_matrix_multiply(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %21, ptr noundef %338, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %18, ptr noundef %341, i32 noundef %60, ptr noundef %62, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %24, ptr noundef %334, ptr noundef null, i32 noundef %342)
          to label %344 unwind label %355

344:                                              ; preds = %.lr.ph361
  %.not273 = icmp eq i32 %343, 0
  br i1 %.not273, label %326, label %345

345:                                              ; preds = %344
  %346 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %347 = trunc i64 %346 to i32
  %348 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %347)
  %349 = load ptr, ptr @stdout, align 8, !tbaa !10
  %350 = call i32 @fflush(ptr noundef %349)
  %351 = call ptr @ee2str(i32 noundef %343)
  %352 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %351)
  %353 = load ptr, ptr @stdout, align 8, !tbaa !10
  %354 = call i32 @fflush(ptr noundef %353)
  call void @exit(i32 noundef 1) #12
  unreachable

355:                                              ; preds = %.lr.ph361
  %356 = landingpad { ptr, i32 }
          cleanup
  br label %442

357:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %28) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #11
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %29) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #11
  %358 = load i32, ptr %67, align 4, !tbaa !15
  %359 = icmp sgt i32 %358, 0
  br i1 %359, label %.lr.ph339, label %.preheader297

.lr.ph339:                                        ; preds = %357
  %360 = getelementptr inbounds i8, ptr %1, i64 8
  br label %363

.preheader297:                                    ; preds = %366, %357
  %361 = load i32, ptr %90, align 8, !tbaa !19
  %362 = icmp sgt i32 %361, 0
  br i1 %362, label %.lr.ph341, label %._crit_edge342

363:                                              ; preds = %.lr.ph339, %366
  %indvars.iv390 = phi i64 [ 0, %.lr.ph339 ], [ %indvars.iv.next391, %366 ]
  %364 = getelementptr inbounds [8 x i8], ptr %360, i64 0, i64 %indvars.iv390
  %365 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 1 dereferenceable(1) %364)
          to label %366 unwind label %371

366:                                              ; preds = %363
  %367 = trunc nuw nsw i64 %indvars.iv390 to i32
  store i32 %367, ptr %365, align 4, !tbaa !16
  %indvars.iv.next391 = add nuw nsw i64 %indvars.iv390, 1
  %368 = load i32, ptr %67, align 4, !tbaa !15
  %369 = sext i32 %368 to i64
  %370 = icmp slt i64 %indvars.iv.next391, %369
  br i1 %370, label %363, label %.preheader297, !llvm.loop !38

371:                                              ; preds = %363
  %372 = landingpad { ptr, i32 }
          cleanup
  br label %441

._crit_edge342:                                   ; preds = %378, %.preheader297
  %373 = load i32, ptr %309, align 8, !tbaa !22
  %374 = sub i32 %373, %.3242
  %.not375 = icmp eq i32 %373, %.3242
  br i1 %.not375, label %.preheader296, label %.lr.ph345

.lr.ph345:                                        ; preds = %._crit_edge342
  %375 = getelementptr inbounds i8, ptr %1, i64 16
  %wide.trip.count = zext i32 %374 to i64
  br label %385

.lr.ph341:                                        ; preds = %.preheader297, %378
  %indvars.iv393 = phi i64 [ %indvars.iv.next394, %378 ], [ 0, %.preheader297 ]
  %376 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 %indvars.iv393
  %377 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 1 dereferenceable(1) %376)
          to label %378 unwind label %383

378:                                              ; preds = %.lr.ph341
  %379 = trunc nuw nsw i64 %indvars.iv393 to i32
  store i32 %379, ptr %377, align 4, !tbaa !16
  %indvars.iv.next394 = add nuw nsw i64 %indvars.iv393, 1
  %380 = load i32, ptr %90, align 8, !tbaa !19
  %381 = sext i32 %380 to i64
  %382 = icmp slt i64 %indvars.iv.next394, %381
  br i1 %382, label %.lr.ph341, label %._crit_edge342, !llvm.loop !39

383:                                              ; preds = %.lr.ph341
  %384 = landingpad { ptr, i32 }
          cleanup
  br label %441

.preheader296:                                    ; preds = %407, %._crit_edge342
  %.not376 = icmp eq i32 %311, 0
  br i1 %.not376, label %._crit_edge359, label %.lr.ph358

.lr.ph358:                                        ; preds = %.preheader296
  %wide.trip.count407 = zext i32 %311 to i64
  %wide.trip.count402 = zext i32 %374 to i64
  br label %409

385:                                              ; preds = %.lr.ph345, %407
  %indvars.iv396 = phi i64 [ 0, %.lr.ph345 ], [ %indvars.iv.next397, %407 ]
  %386 = trunc nuw i64 %indvars.iv396 to i32
  %387 = add i32 %.3242, %386
  %388 = zext i32 %387 to i64
  %389 = getelementptr inbounds [20 x i32], ptr %308, i64 0, i64 %388
  %390 = load i32, ptr %389, align 4, !tbaa !16
  %391 = getelementptr inbounds [8 x i32], ptr %27, i64 0, i64 %indvars.iv396
  store i32 %390, ptr %391, align 4, !tbaa !16
  %392 = getelementptr inbounds [8 x i8], ptr %375, i64 0, i64 %indvars.iv396
  %393 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 1 dereferenceable(1) %392)
          to label %394 unwind label %398

394:                                              ; preds = %385
  %.not263 = icmp eq i64 %393, 0
  br i1 %.not263, label %400, label %395

395:                                              ; preds = %394
  %396 = getelementptr inbounds [20 x i32], ptr %308, i64 0, i64 %indvars.iv396
  %397 = load i32, ptr %396, align 4, !tbaa !16
  br label %400

398:                                              ; preds = %400, %385
  %399 = landingpad { ptr, i32 }
          cleanup
  br label %441

400:                                              ; preds = %394, %395
  %.sink = phi i32 [ %397, %395 ], [ 1, %394 ]
  %401 = getelementptr inbounds [8 x i32], ptr %25, i64 0, i64 %indvars.iv396
  store i32 %.sink, ptr %401, align 4
  %402 = invoke noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 1 dereferenceable(1) %392)
          to label %403 unwind label %398

403:                                              ; preds = %400
  %.not265 = icmp eq i64 %402, 0
  br i1 %.not265, label %407, label %404

404:                                              ; preds = %403
  %405 = getelementptr inbounds [20 x i32], ptr %308, i64 0, i64 %indvars.iv396
  %406 = load i32, ptr %405, align 4, !tbaa !16
  br label %407

407:                                              ; preds = %403, %404
  %.sink424 = phi i32 [ %406, %404 ], [ 1, %403 ]
  %408 = getelementptr inbounds [8 x i32], ptr %26, i64 0, i64 %indvars.iv396
  store i32 %.sink424, ptr %408, align 4
  %indvars.iv.next397 = add nuw nsw i64 %indvars.iv396, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next397, %wide.trip.count
  br i1 %exitcond.not, label %.preheader296, label %385, !llvm.loop !40

._crit_edge359:                                   ; preds = %438, %.preheader296
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %29) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  br label %.loopexit

409:                                              ; preds = %.lr.ph358, %438
  %indvars.iv404 = phi i64 [ 0, %.lr.ph358 ], [ %indvars.iv.next405, %438 ]
  %410 = trunc nuw i64 %indvars.iv404 to i32
  %411 = mul i32 %312, %410
  %412 = zext i32 %411 to i64
  %413 = getelementptr inbounds float, ptr %58, i64 %412
  br i1 %.not375, label %._crit_edge354, label %.lr.ph353

._crit_edge354:                                   ; preds = %.lr.ph353, %409
  %.0213.lcssa = phi i32 [ 0, %409 ], [ %430, %.lr.ph353 ]
  %.0212.lcssa = phi i32 [ 0, %409 ], [ %435, %.lr.ph353 ]
  %414 = mul i32 %.0213.lcssa, %317
  %415 = zext i32 %414 to i64
  %416 = getelementptr inbounds float, ptr %50, i64 %415
  %417 = mul i32 %.0212.lcssa, %321
  %418 = zext i32 %417 to i64
  %419 = getelementptr inbounds float, ptr %55, i64 %418
  %420 = load i32, ptr %4, align 8, !tbaa !12
  %421 = invoke i32 @matrix_matrix_multiply(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %21, ptr noundef %416, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %18, ptr noundef %419, i32 noundef %60, ptr noundef %62, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %24, ptr noundef %413, ptr noundef null, i32 noundef %420)
          to label %438 unwind label %439

.lr.ph353:                                        ; preds = %409, %.lr.ph353
  %indvars.iv399 = phi i64 [ %indvars.iv.next400, %.lr.ph353 ], [ 0, %409 ]
  %.0209350 = phi i32 [ %437, %.lr.ph353 ], [ 1, %409 ]
  %.0210349 = phi i32 [ %436, %.lr.ph353 ], [ 1, %409 ]
  %.0211348 = phi i32 [ %425, %.lr.ph353 ], [ %410, %409 ]
  %.0212347 = phi i32 [ %435, %.lr.ph353 ], [ 0, %409 ]
  %.0213346 = phi i32 [ %430, %.lr.ph353 ], [ 0, %409 ]
  %422 = getelementptr inbounds [8 x i32], ptr %27, i64 0, i64 %indvars.iv399
  %423 = load i32, ptr %422, align 4, !tbaa !16
  %424 = urem i32 %.0211348, %423
  %425 = udiv i32 %.0211348, %423
  %426 = getelementptr inbounds [8 x i32], ptr %25, i64 0, i64 %indvars.iv399
  %427 = load i32, ptr %426, align 4, !tbaa !16
  %428 = urem i32 %424, %427
  %429 = mul i32 %428, %.0210349
  %430 = add i32 %429, %.0213346
  %431 = getelementptr inbounds [8 x i32], ptr %26, i64 0, i64 %indvars.iv399
  %432 = load i32, ptr %431, align 4, !tbaa !16
  %433 = urem i32 %424, %432
  %434 = mul i32 %433, %.0209350
  %435 = add i32 %434, %.0212347
  %436 = mul i32 %427, %.0210349
  %437 = mul i32 %432, %.0209350
  %indvars.iv.next400 = add nuw nsw i64 %indvars.iv399, 1
  %exitcond403.not = icmp eq i64 %indvars.iv.next400, %wide.trip.count402
  br i1 %exitcond403.not, label %._crit_edge354, label %.lr.ph353, !llvm.loop !41

438:                                              ; preds = %._crit_edge354
  %indvars.iv.next405 = add nuw nsw i64 %indvars.iv404, 1
  %exitcond408.not = icmp eq i64 %indvars.iv.next405, %wide.trip.count407
  br i1 %exitcond408.not, label %._crit_edge359, label %409, !llvm.loop !42

439:                                              ; preds = %._crit_edge354
  %440 = landingpad { ptr, i32 }
          cleanup
  br label %441

441:                                              ; preds = %398, %439, %383, %371
  %.pn266 = phi { ptr, i32 } [ %372, %371 ], [ %384, %383 ], [ %399, %398 ], [ %440, %439 ]
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %29) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  br label %442

.loopexit:                                        ; preds = %326, %.preheader295, %._crit_edge359
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %18) #11
  br label %445

442:                                              ; preds = %329, %355, %441, %327
  %.pn268.pn = phi { ptr, i32 } [ %328, %327 ], [ %356, %355 ], [ %.pn266, %441 ], [ %330, %329 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %24) #11
  br label %443

443:                                              ; preds = %442, %303, %296, %294
  %.pn268.pn.pn = phi { ptr, i32 } [ %.pn268.pn, %442 ], [ %297, %296 ], [ %295, %294 ], [ %304, %303 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %21) #11
  br label %444

444:                                              ; preds = %443, %272, %266, %264
  %.pn268.pn.pn.pn = phi { ptr, i32 } [ %.pn268.pn.pn, %443 ], [ %267, %266 ], [ %265, %264 ], [ %273, %272 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %18) #11
  br label %446

445:                                              ; preds = %.loopexit, %._crit_edge374
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #11
  ret i32 0

446:                                              ; preds = %102, %444, %241, %127, %88
  %.pn285 = phi { ptr, i32 } [ %89, %88 ], [ %103, %102 ], [ %128, %127 ], [ %.pn276.pn, %241 ], [ %.pn268.pn.pn.pn, %444 ]
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #11
  call void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #11
  br label %447

447:                                              ; preds = %78, %446, %76
  %.pn285.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %.pn285, %446 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #11
  br label %448

448:                                              ; preds = %447, %74
  %.pn285.pn.pn.pn = phi { ptr, i32 } [ %.pn285.pn.pn, %447 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #11
  br label %449

449:                                              ; preds = %448, %72
  %.pn285.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn285.pn.pn.pn, %448 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #11
  resume { ptr, i32 } %.pn285.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6TensorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #3

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) local_unnamed_addr #7

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapIcjSt4hashIcESt8equal_toIcESaISt4pairIKcjEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 1 dereferenceable(1)) 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 #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19calculateLocalIndexjPKjj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z20calculateGlobalIndexPKjS0_j(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10reduceDimsPjjj(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #5

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

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

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

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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind }
attributes #12 = { noreturn nounwind }

!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, !9, i64 32}
!6 = !{!"_ZTS15EinsumParamSpec", !7, i64 0, !7, i64 8, !7, i64 16, !9, i64 24, !9, i64 28, !9, i64 32}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS8ArchInfo", !14, i64 0, !11, i64 8}
!14 = !{!"_ZTS4Arch", !7, i64 0}
!15 = !{!6, !9, i64 28}
!16 = !{!9, !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !9, i64 24}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{!23, !9, i64 8}
!23 = !{!"_ZTS10TensorDesc", !24, i64 0, !25, i64 4, !9, i64 8, !7, i64 12}
!24 = !{!"_ZTS8DataType", !7, i64 0}
!25 = !{!"_ZTS10DataFormat", !7, i64 0}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = distinct !{!30, !18}
!31 = distinct !{!31, !18}
!32 = !{!23, !24, i64 0}
!33 = !{i64 0, i64 4, !34, i64 4, i64 4, !35, i64 8, i64 4, !16, i64 12, i64 80, !36}
!34 = !{!24, !24, i64 0}
!35 = !{!25, !25, i64 0}
!36 = !{!7, !7, i64 0}
!37 = distinct !{!37, !18}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}
!42 = distinct !{!42, !18}


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