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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.ActivationParamSpec = type { i32, [4 x float] }
%struct.GatherParamSpec = type { i32, i8, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.5" = type { ptr, i64 }
%"class.std::allocator.2" = type { i8 }
%struct.EltwiseParamSpec = type { i32, %struct.EltwiseSumSpec, i32, %union.ActivationSpec }
%struct.EltwiseSumSpec = type { [8 x float], i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }

@.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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10preprocess10TensorDescS_PvS0_S0_S0_S0_19ActivationParamSpecS0_S_S0_4Arch(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef byval(%struct.TensorDesc) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef byval(%struct.ActivationParamSpec) align 8 %7, ptr noundef %8, ptr noundef byval(%struct.TensorDesc) align 8 %9, ptr noundef %10, i32 noundef %11) #0 personality ptr @__gxx_personality_v0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.GatherParamSpec, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca %struct.GatherParamSpec, align 4
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca { i64, i32 }, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca %struct.TensorDesc, align 8
  %32 = alloca i32, align 4
  %33 = alloca %struct.TensorDesc, align 8
  %34 = alloca %struct.TensorDesc, align 8
  %35 = alloca %struct.GatherParamSpec, align 4
  %36 = alloca %struct.TensorDesc, align 8
  %37 = alloca { i64, i32 }, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca %"class.std::initializer_list", align 8
  %41 = alloca [3 x %struct.TensorDesc], align 4
  %42 = alloca %"class.std::allocator", align 1
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca %"class.std::vector.0", align 8
  %46 = alloca %"class.std::initializer_list.5", align 8
  %47 = alloca [3 x ptr], align 8
  %48 = alloca %"class.std::allocator.2", align 1
  %49 = alloca %struct.EltwiseParamSpec, align 4
  %50 = alloca i32, align 4
  %51 = alloca %"class.std::vector", align 8
  %52 = alloca %"class.std::vector.0", align 8
  %53 = alloca %struct.EltwiseParamSpec, align 8
  %54 = alloca %struct.TensorDesc, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca %struct.TensorDesc, align 8
  %58 = alloca %struct.ActivationParamSpec, align 8
  %59 = alloca %struct.TensorDesc, align 8
  %60 = alloca i32, align 4
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  store ptr %10, ptr %19, align 8, !tbaa !5
  store i32 %11, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #9
  call void @_ZN15GatherParamSpecC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  %61 = getelementptr inbounds %struct.GatherParamSpec, ptr %21, i32 0, i32 0
  store i32 0, ptr %61, align 4, !tbaa !11
  %62 = getelementptr inbounds %struct.GatherParamSpec, ptr %21, i32 0, i32 1
  store i8 0, ptr %62, align 4, !tbaa !15
  %63 = getelementptr inbounds %struct.GatherParamSpec, ptr %21, i32 0, i32 2
  store i32 0, ptr %63, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %64, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !17
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !17
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %26, i64 12, i1 false)
  %68 = getelementptr inbounds { i64, i32 }, ptr %28, i32 0, i32 0
  %69 = load i64, ptr %68, align 4
  %70 = getelementptr inbounds { i64, i32 }, ptr %28, i32 0, i32 1
  %71 = load i32, ptr %70, align 4
  %72 = call noundef i32 @_Z10gather_cpu10TensorDescPKvS_S1_15GatherParamSpecPvS_S3_(ptr noundef byval(%struct.TensorDesc) align 8 %24, ptr noundef %65, ptr noundef byval(%struct.TensorDesc) align 8 %25, ptr noundef %66, i64 %69, i32 %71, ptr noundef null, ptr noundef byval(%struct.TensorDesc) align 8 %27, ptr noundef %67)
  store i32 %72, ptr %23, align 4, !tbaa !26
  %73 = load i32, ptr %23, align 4, !tbaa !26
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %87

75:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %76 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %29, align 4, !tbaa !22
  %78 = load i32, ptr %29, align 4, !tbaa !22
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %78)
  %80 = load ptr, ptr @stdout, align 8, !tbaa !5
  %81 = call i32 @fflush(ptr noundef %80)
  %82 = load i32, ptr %23, align 4, !tbaa !26
  %83 = call ptr @ee2str(i32 noundef %82)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %83)
  %85 = load ptr, ptr @stdout, align 8, !tbaa !5
  %86 = call i32 @fflush(ptr noundef %85)
  call void @exit(i32 noundef 1) #10
  unreachable

87:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %88 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %89 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %31)
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %88, i64 %90
  store ptr %91, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !17
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !17
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %94 = load ptr, ptr %30, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %35, i64 12, i1 false)
  %95 = getelementptr inbounds { i64, i32 }, ptr %37, i32 0, i32 0
  %96 = load i64, ptr %95, align 4
  %97 = getelementptr inbounds { i64, i32 }, ptr %37, i32 0, i32 1
  %98 = load i32, ptr %97, align 4
  %99 = call noundef i32 @_Z10gather_cpu10TensorDescPKvS_S1_15GatherParamSpecPvS_S3_(ptr noundef byval(%struct.TensorDesc) align 8 %33, ptr noundef %92, ptr noundef byval(%struct.TensorDesc) align 8 %34, ptr noundef %93, i64 %96, i32 %98, ptr noundef null, ptr noundef byval(%struct.TensorDesc) align 8 %36, ptr noundef %94)
  store i32 %99, ptr %32, align 4, !tbaa !26
  %100 = load i32, ptr %32, align 4, !tbaa !26
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %114

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

114:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 276, ptr %41) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %115 = getelementptr inbounds %struct.TensorDesc, ptr %41, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %115, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %116 = getelementptr inbounds %struct.TensorDesc, ptr %41, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %117 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 0
  store ptr %41, ptr %117, align 8, !tbaa !28
  %118 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 1
  store i64 3, ptr %118, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #9
  call void @_ZNSaI10TensorDescEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #9
  %119 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %122 = load i64, ptr %121, align 8
  invoke void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr %120, i64 %122, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %123 unwind label %163

123:                                              ; preds = %114
  call void @_ZNSt15__new_allocatorI10TensorDescED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 276, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #9
  %124 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %124, ptr %47, align 8, !tbaa !5
  %125 = getelementptr inbounds ptr, ptr %47, i64 1
  %126 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %126, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds ptr, ptr %47, i64 2
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %128, ptr %127, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.std::initializer_list.5", ptr %46, i32 0, i32 0
  store ptr %47, ptr %129, align 8, !tbaa !32
  %130 = getelementptr inbounds %"class.std::initializer_list.5", ptr %46, i32 0, i32 1
  store i64 3, ptr %130, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #9
  call void @_ZNSaIPvEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #9
  %131 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 1
  %134 = load i64, ptr %133, align 8
  invoke void @_ZNSt6vectorIPvSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr %132, i64 %134, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %135 unwind label %167

135:                                              ; preds = %123
  call void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #9
  call void @llvm.lifetime.start.p0(i64 52, ptr %49) #9
  %136 = getelementptr inbounds %struct.EltwiseParamSpec, ptr %49, i32 0, i32 0
  store i32 0, ptr %136, align 4, !tbaa !35
  %137 = getelementptr inbounds %struct.EltwiseParamSpec, ptr %49, i32 0, i32 2
  store i32 0, ptr %137, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  invoke void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %138 unwind label %171

138:                                              ; preds = %135
  invoke void @_ZNSt6vectorIPvSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %139 unwind label %175

139:                                              ; preds = %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %49, i64 52, i1 false), !tbaa.struct !41
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = invoke noundef i32 @_Z11eltwise_cpuSt6vectorI10TensorDescSaIS0_EES_IPvSaIS3_EE16EltwiseParamSpecjS3_S0_S3_4Arch(ptr noundef %51, ptr noundef %52, ptr noundef byval(%struct.EltwiseParamSpec) align 8 %53, i32 noundef 0, ptr noundef null, ptr noundef byval(%struct.TensorDesc) align 8 %54, ptr noundef %140, i32 noundef %141)
          to label %143 unwind label %179

143:                                              ; preds = %139
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #9
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #9
  store i32 %142, ptr %50, align 4, !tbaa !26
  %144 = load i32, ptr %50, align 4, !tbaa !26
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %188

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

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

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

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

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

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

163:                                              ; preds = %114
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %43, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %44, align 4
  call void @_ZNSt15__new_allocatorI10TensorDescED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 276, ptr %41) #9
  br label %226

167:                                              ; preds = %123
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %43, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %44, align 4
  call void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #9
  br label %225

171:                                              ; preds = %135
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %43, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %44, align 4
  br label %213

175:                                              ; preds = %138
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %43, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %44, align 4
  br label %183

179:                                              ; preds = %139
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %43, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %44, align 4
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #9
  br label %183

183:                                              ; preds = %179, %175
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %51) #9
  br label %213

184:                                              ; preds = %159, %157, %154, %151, %146
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %43, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  br label %213

188:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 8 %7, i64 20, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 8 %9, i64 92, i1 false), !tbaa.struct !17
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = load i32, ptr %20, align 4, !tbaa !9
  %192 = invoke noundef i32 @_Z14activation_cpu10TensorDescPv19ActivationParamSpecS_S0_Pf4Arch(ptr noundef byval(%struct.TensorDesc) align 8 %57, ptr noundef %189, ptr noundef byval(%struct.ActivationParamSpec) align 8 %58, ptr noundef byval(%struct.TensorDesc) align 8 %59, ptr noundef %190, ptr noundef null, i32 noundef %191)
          to label %193 unwind label %214

193:                                              ; preds = %188
  store i32 %192, ptr %56, align 4, !tbaa !26
  %194 = load i32, ptr %56, align 4, !tbaa !26
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %222

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  %197 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %198 = trunc i64 %197 to i32
  store i32 %198, ptr %60, align 4, !tbaa !22
  %199 = load i32, ptr %60, align 4, !tbaa !22
  %200 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %199)
          to label %201 unwind label %218

201:                                              ; preds = %196
  %202 = load ptr, ptr @stdout, align 8, !tbaa !5
  %203 = invoke i32 @fflush(ptr noundef %202)
          to label %204 unwind label %218

204:                                              ; preds = %201
  %205 = load i32, ptr %56, align 4, !tbaa !26
  %206 = invoke ptr @ee2str(i32 noundef %205)
          to label %207 unwind label %218

207:                                              ; preds = %204
  %208 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %206)
          to label %209 unwind label %218

209:                                              ; preds = %207
  %210 = load ptr, ptr @stdout, align 8, !tbaa !5
  %211 = invoke i32 @fflush(ptr noundef %210)
          to label %212 unwind label %218

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

213:                                              ; preds = %184, %183, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  br label %224

214:                                              ; preds = %188
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %43, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %44, align 4
  br label %223

218:                                              ; preds = %209, %207, %204, %201, %196
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %43, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  br label %223

222:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 52, ptr %49) #9
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #9
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  ret void

223:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  br label %224

224:                                              ; preds = %223, %213
  call void @llvm.lifetime.end.p0(i64 52, ptr %49) #9
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  br label %225

225:                                              ; preds = %224, %167
  call void @llvm.lifetime.end.p0(i64 24, ptr %45) #9
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  br label %226

226:                                              ; preds = %225, %163
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %43, align 8
  %229 = load i32, ptr %44, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231
}

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

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

declare noundef i32 @_Z10gather_cpu10TensorDescPKvS_S1_15GatherParamSpecPvS_S3_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i64, i32, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef) #3

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

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

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

declare i32 @fflush(ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPvSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare noundef i32 @_Z11eltwise_cpuSt6vectorI10TensorDescSaIS0_EES_IPvSaIS3_EE16EltwiseParamSpecjS3_S0_S3_4Arch(ptr noundef, ptr noundef, ptr noundef byval(%struct.EltwiseParamSpec) align 8, i32 noundef, ptr noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) #3

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

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

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

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

declare noundef i32 @_Z14activation_cpu10TensorDescPv19ActivationParamSpecS_S0_Pf4Arch(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef byval(%struct.ActivationParamSpec) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"_ZTS4Arch", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS15GatherParamSpec", !13, i64 0, !14, i64 4, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !14, i64 4}
!16 = !{!12, !13, i64 8}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !20, i64 8, i64 4, !22, i64 12, i64 80, !23}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS8DataType", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS10DataFormat", !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{i64 0, i64 4, !22, i64 4, i64 1, !25, i64 8, i64 4, !22}
!25 = !{!14, !14, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS2EE", !7, i64 0}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSSt16initializer_listI10TensorDescE", !6, i64 0, !30, i64 8}
!30 = !{!"long", !7, i64 0}
!31 = !{!29, !30, i64 8}
!32 = !{!33, !6, i64 0}
!33 = !{!"_ZTSSt16initializer_listIPvE", !6, i64 0, !30, i64 8}
!34 = !{!33, !30, i64 8}
!35 = !{!36, !37, i64 0}
!36 = !{!"_ZTS16EltwiseParamSpec", !37, i64 0, !38, i64 4, !39, i64 40, !7, i64 44}
!37 = !{!"_ZTS11EltwiseMode", !7, i64 0}
!38 = !{!"_ZTS14EltwiseSumSpec", !7, i64 0, !13, i64 32}
!39 = !{!"_ZTS14ActivationMode", !7, i64 0}
!40 = !{!36, !39, i64 40}
!41 = !{i64 0, i64 4, !42, i64 4, i64 32, !23, i64 36, i64 4, !22, i64 40, i64 4, !43, i64 44, i64 8, !23}
!42 = !{!37, !37, i64 0}
!43 = !{!39, !39, i64 0}
!44 = !{i64 0, i64 4, !43, i64 4, i64 16, !23}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.ActivationParamSpec = type { i32, [4 x float] }
%struct.GatherParamSpec = type { i32, i8, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TensorDesc, std::allocator<TensorDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%struct.EltwiseParamSpec = type { i32, %struct.EltwiseSumSpec, i32, %union.ActivationSpec }
%struct.EltwiseSumSpec = type { [8 x float], i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }

@.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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10preprocess10TensorDescS_PvS0_S0_S0_S0_19ActivationParamSpecS0_S_S0_4Arch(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef readonly byval(%struct.ActivationParamSpec) align 8 %7, ptr noundef %8, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %9, ptr noundef %10, i32 noundef %11) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %13 = alloca %struct.GatherParamSpec, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca [3 x %struct.TensorDesc], align 4
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::vector.0", align 8
  %18 = alloca [3 x ptr], align 8
  %19 = alloca %"class.std::allocator.2", align 1
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::vector.0", align 8
  %22 = alloca %struct.EltwiseParamSpec, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #10
  call void @_ZN15GatherParamSpecC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #10
  store i32 0, ptr %13, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %13, i64 4
  store i8 0, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 0, ptr %24, align 8, !tbaa !12
  %.sroa.023.0.copyload = load i64, ptr %13, align 8
  %25 = call noundef i32 @_Z10gather_cpu10TensorDescPKvS_S1_15GatherParamSpecPvS_S3_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef %2, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef %3, i64 %.sroa.023.0.copyload, i32 0, ptr noundef null, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %8)
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %36, label %26

26:                                               ; preds = %12
  %27 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %28 = trunc i64 %27 to i32
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %28)
  %30 = load ptr, ptr @stdout, align 8, !tbaa !13
  %31 = call i32 @fflush(ptr noundef %30)
  %32 = call ptr @ee2str(i32 noundef %25)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %32)
  %34 = load ptr, ptr @stdout, align 8, !tbaa !13
  %35 = call i32 @fflush(ptr noundef %34)
  call void @exit(i32 noundef 1) #11
  unreachable

36:                                               ; preds = %12
  %37 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %8, i64 %38
  %.sroa.014.0.copyload = load i64, ptr %13, align 8
  %.sroa.215.0.copyload = load i32, ptr %24, align 8, !tbaa !15
  %40 = call noundef i32 @_Z10gather_cpu10TensorDescPKvS_S1_15GatherParamSpecPvS_S3_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef %5, i64 %.sroa.014.0.copyload, i32 %.sroa.215.0.copyload, ptr noundef null, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %39)
  %.not50 = icmp eq i32 %40, 0
  br i1 %.not50, label %51, label %41

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

51:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 276, ptr nonnull %15) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %15, ptr noundef nonnull align 8 dereferenceable(92) %9, i64 92, i1 false), !tbaa.struct !16
  %52 = getelementptr inbounds i8, ptr %15, i64 92
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %52, ptr noundef nonnull align 8 dereferenceable(92) %9, i64 92, i1 false), !tbaa.struct !16
  %53 = getelementptr inbounds i8, ptr %15, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %53, ptr noundef nonnull align 8 dereferenceable(92) %9, i64 92, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #10
  call void @_ZNSaI10TensorDescEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  invoke void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr nonnull %15, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %54 unwind label %72

54:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorI10TensorDescED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 276, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #10
  store ptr %8, ptr %18, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %18, i64 8
  store ptr %39, ptr %55, align 8, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %18, i64 16
  store ptr %6, ptr %56, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #10
  call void @_ZNSaIPvEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  invoke void @_ZNSt6vectorIPvSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %57 unwind label %74

57:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #10
  invoke void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %58 unwind label %76

58:                                               ; preds = %57
  invoke void @_ZNSt6vectorIPvSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %59 unwind label %78

59:                                               ; preds = %58
  store i32 0, ptr %22, align 8, !tbaa !22
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 40
  store i32 0, ptr %.sroa.56.0..sroa_idx, align 8, !tbaa !24
  %60 = invoke noundef i32 @_Z11eltwise_cpuSt6vectorI10TensorDescSaIS0_EES_IPvSaIS3_EE16EltwiseParamSpecjS3_S0_S3_4Arch(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull byval(%struct.EltwiseParamSpec) align 8 %22, i32 noundef 0, ptr noundef null, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %10, i32 noundef %11)
          to label %61 unwind label %80

61:                                               ; preds = %59
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #10
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #10
  %.not53 = icmp eq i32 %60, 0
  br i1 %.not53, label %83, label %62

62:                                               ; preds = %61
  %63 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %64 = trunc i64 %63 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !13
  %67 = call i32 @fflush(ptr noundef %66)
  %68 = call ptr @ee2str(i32 noundef %60)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !13
  %71 = call i32 @fflush(ptr noundef %70)
  call void @exit(i32 noundef 1) #11
  unreachable

72:                                               ; preds = %51
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI10TensorDescED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 276, ptr nonnull %15) #10
  br label %101

74:                                               ; preds = %54
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #10
  br label %100

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

78:                                               ; preds = %58
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %82

80:                                               ; preds = %59
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #10
  br label %82

82:                                               ; preds = %80, %78
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %79, %78 ]
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #10
  br label %99

83:                                               ; preds = %61
  %84 = invoke noundef i32 @_Z14activation_cpu10TensorDescPv19ActivationParamSpecS_S0_Pf4Arch(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %10, ptr noundef nonnull byval(%struct.ActivationParamSpec) align 8 %7, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %10, ptr noundef null, i32 noundef %11)
          to label %85 unwind label %96

85:                                               ; preds = %83
  %.not58 = icmp eq i32 %84, 0
  br i1 %.not58, label %98, label %86

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

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

98:                                               ; preds = %85
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #10
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #10
  ret void

99:                                               ; preds = %76, %82, %96
  %.pn54 = phi { ptr, i32 } [ %97, %96 ], [ %.pn, %82 ], [ %77, %76 ]
  call void @_ZNSt6vectorIPvSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  br label %100

100:                                              ; preds = %99, %74
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %99 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #10
  call void @_ZNSt6vectorI10TensorDescSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br label %101

101:                                              ; preds = %100, %72
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %100 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #10
  resume { ptr, i32 } %.pn54.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI10TensorDescSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPvSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPvED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #9 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS15GatherParamSpec", !7, i64 0, !10, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!6, !10, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !19, i64 8, i64 4, !15, i64 12, i64 80, !21}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS8DataType", !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS10DataFormat", !8, i64 0}
!21 = !{!8, !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS11EltwiseMode", !8, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS14ActivationMode", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass