; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseSynetConvolution16b)

; 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.Simd::ConvParam" = type <{ %struct.SimdConvolutionParameters, i32, [4 x i8], i64, i32, [4 x i8] }>
%struct.SimdConvolutionParameters = type { i64, i64, i64, i32, i32, i64, i64, i64, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32 }
%"class.Simd::Base::SynetConvolution16bGemm" = type { %"class.Simd::SynetConvolution16b", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%"class.Simd::SynetConvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"struct.Simd::Array.1", i8, i8, i8, i64, i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::Array" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }

@_ZTVN4Simd4Base23SynetConvolution16bGemmE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base23SynetConvolution16bGemmC2ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef nonnull align 8 dereferenceable(180) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Simd19SynetConvolution16bC2ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(328) %7, ptr noundef nonnull align 8 dereferenceable(180) %8)
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTVN4Simd4Base23SynetConvolution16bGemmE, i32 0, i32 0, i32 2), ptr %7, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %9, i32 0, i32 1
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %84

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %14, i32 0, i32 6
  %16 = load i64, ptr %15, align 8, !tbaa !20
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %17, i32 0, i32 7
  %19 = load i64, ptr %18, align 8, !tbaa !21
  %20 = mul i64 %16, %19
  %21 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  store i64 %20, ptr %21, align 8, !tbaa !22
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %22, i32 0, i32 5
  %24 = load i64, ptr %23, align 8, !tbaa !32
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %25, i32 0, i32 20
  %27 = load i64, ptr %26, align 8, !tbaa !33
  %28 = udiv i64 %24, %27
  %29 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  store i64 %28, ptr %29, align 8, !tbaa !34
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !35
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %33, i32 0, i32 10
  %35 = load i64, ptr %34, align 8, !tbaa !36
  %36 = mul i64 %32, %35
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %37, i32 0, i32 11
  %39 = load i64, ptr %38, align 8, !tbaa !37
  %40 = mul i64 %36, %39
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %41, i32 0, i32 20
  %43 = load i64, ptr %42, align 8, !tbaa !33
  %44 = udiv i64 %40, %43
  %45 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  store i64 %44, ptr %45, align 8, !tbaa !38
  %46 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %47 = load i64, ptr %46, align 8, !tbaa !38
  %48 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 5
  store i64 %47, ptr %48, align 8, !tbaa !39
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %49, i32 0, i32 5
  %51 = load i64, ptr %50, align 8, !tbaa !32
  %52 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 4
  store i64 %51, ptr %52, align 8, !tbaa !40
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %53, i32 0, i32 5
  %55 = load i64, ptr %54, align 8, !tbaa !32
  %56 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 6
  store i64 %55, ptr %56, align 8, !tbaa !41
  %57 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %58 = load i64, ptr %57, align 8, !tbaa !34
  %59 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 7
  store i64 %58, ptr %59, align 8, !tbaa !42
  %60 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %61 = load i64, ptr %60, align 8, !tbaa !38
  %62 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !22
  %64 = mul i64 %61, %63
  %65 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 8
  store i64 %64, ptr %65, align 8, !tbaa !43
  %66 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %67 = load i64, ptr %66, align 8, !tbaa !34
  %68 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 9
  store i64 %67, ptr %68, align 8, !tbaa !44
  %69 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 4
  %70 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %71 = load i64, ptr %70, align 8, !tbaa !38
  %72 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %73 = load i64, ptr %72, align 8, !tbaa !34
  %74 = mul i64 %71, %73
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %75, i32 0, i32 20
  %77 = load i64, ptr %76, align 8, !tbaa !33
  %78 = mul i64 %74, %77
  invoke void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %69, i64 noundef %78, i1 noundef zeroext false, i64 noundef 8)
          to label %79 unwind label %80

79:                                               ; preds = %13
  br label %155

80:                                               ; preds = %84, %13
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %5, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %6, align 4
  call void @_ZN4Simd19SynetConvolution16bD2Ev(ptr noundef nonnull align 8 dereferenceable(328) %7) #3
  br label %216

84:                                               ; preds = %2
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %85, i32 0, i32 5
  %87 = load i64, ptr %86, align 8, !tbaa !32
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %88, i32 0, i32 20
  %90 = load i64, ptr %89, align 8, !tbaa !33
  %91 = udiv i64 %87, %90
  %92 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  store i64 %91, ptr %92, align 8, !tbaa !22
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %93, i32 0, i32 6
  %95 = load i64, ptr %94, align 8, !tbaa !20
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %96, i32 0, i32 7
  %98 = load i64, ptr %97, align 8, !tbaa !21
  %99 = mul i64 %95, %98
  %100 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  store i64 %99, ptr %100, align 8, !tbaa !34
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %101, i32 0, i32 0
  %103 = load i64, ptr %102, align 8, !tbaa !35
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %104, i32 0, i32 10
  %106 = load i64, ptr %105, align 8, !tbaa !36
  %107 = mul i64 %103, %106
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %108, i32 0, i32 11
  %110 = load i64, ptr %109, align 8, !tbaa !37
  %111 = mul i64 %107, %110
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %112, i32 0, i32 20
  %114 = load i64, ptr %113, align 8, !tbaa !33
  %115 = udiv i64 %111, %114
  %116 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  store i64 %115, ptr %116, align 8, !tbaa !38
  %117 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %118 = load i64, ptr %117, align 8, !tbaa !38
  %119 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 4
  store i64 %118, ptr %119, align 8, !tbaa !40
  %120 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %121 = load i64, ptr %120, align 8, !tbaa !34
  %122 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 5
  store i64 %121, ptr %122, align 8, !tbaa !39
  %123 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !34
  %125 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 6
  store i64 %124, ptr %125, align 8, !tbaa !41
  %126 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  %127 = load i64, ptr %126, align 8, !tbaa !22
  %128 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %129 = load i64, ptr %128, align 8, !tbaa !38
  %130 = mul i64 %127, %129
  %131 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 7
  store i64 %130, ptr %131, align 8, !tbaa !42
  %132 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %133 = load i64, ptr %132, align 8, !tbaa !38
  %134 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %135 = load i64, ptr %134, align 8, !tbaa !34
  %136 = mul i64 %133, %135
  %137 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 8
  store i64 %136, ptr %137, align 8, !tbaa !43
  %138 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  %139 = load i64, ptr %138, align 8, !tbaa !22
  %140 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 2
  %141 = load i64, ptr %140, align 8, !tbaa !34
  %142 = mul i64 %139, %141
  %143 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 9
  store i64 %142, ptr %143, align 8, !tbaa !44
  %144 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 4
  %145 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 3
  %146 = load i64, ptr %145, align 8, !tbaa !38
  %147 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !22
  %149 = mul i64 %146, %148
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %150, i32 0, i32 20
  %152 = load i64, ptr %151, align 8, !tbaa !33
  %153 = mul i64 %149, %152
  invoke void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %144, i64 noundef %153, i1 noundef zeroext false, i64 noundef 8)
          to label %154 unwind label %80

154:                                              ; preds = %84
  br label %155

155:                                              ; preds = %154, %79
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %156, i32 0, i32 3
  %158 = load i64, ptr %157, align 8, !tbaa !45
  %159 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 10
  store i64 %158, ptr %159, align 8, !tbaa !46
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %160, i32 0, i32 0
  %162 = load i64, ptr %161, align 8, !tbaa !35
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %163, i32 0, i32 1
  %165 = load i64, ptr %164, align 8, !tbaa !47
  %166 = mul i64 %162, %165
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %167, i32 0, i32 2
  %169 = load i64, ptr %168, align 8, !tbaa !48
  %170 = mul i64 %166, %169
  %171 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 11
  store i64 %170, ptr %171, align 8, !tbaa !49
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %172, i32 0, i32 0
  %174 = load i64, ptr %173, align 8, !tbaa !35
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %175, i32 0, i32 10
  %177 = load i64, ptr %176, align 8, !tbaa !36
  %178 = mul i64 %174, %177
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %179, i32 0, i32 11
  %181 = load i64, ptr %180, align 8, !tbaa !37
  %182 = mul i64 %178, %181
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %183, i32 0, i32 6
  %185 = load i64, ptr %184, align 8, !tbaa !20
  %186 = mul i64 %182, %185
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %187, i32 0, i32 7
  %189 = load i64, ptr %188, align 8, !tbaa !21
  %190 = mul i64 %186, %189
  %191 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 12
  store i64 %190, ptr %191, align 8, !tbaa !50
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %192, i32 0, i32 5
  %194 = load i64, ptr %193, align 8, !tbaa !32
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %195, i32 0, i32 6
  %197 = load i64, ptr %196, align 8, !tbaa !20
  %198 = mul i64 %194, %197
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %199, i32 0, i32 7
  %201 = load i64, ptr %200, align 8, !tbaa !21
  %202 = mul i64 %198, %201
  %203 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 13
  store i64 %202, ptr %203, align 8, !tbaa !51
  %204 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 11
  %205 = load i64, ptr %204, align 8, !tbaa !49
  %206 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 10
  %207 = load i64, ptr %206, align 8, !tbaa !52
  %208 = mul i64 %205, %207
  %209 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 12
  store i64 %208, ptr %209, align 8, !tbaa !53
  %210 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bGemm", ptr %7, i32 0, i32 13
  %211 = load i64, ptr %210, align 8, !tbaa !51
  %212 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 11
  %213 = load i64, ptr %212, align 8, !tbaa !54
  %214 = mul i64 %211, %213
  %215 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %7, i32 0, i32 13
  store i64 %214, ptr %215, align 8, !tbaa !55
  ret void

216:                                              ; preds = %80
  %217 = load ptr, ptr %5, align 8
  %218 = load i32, ptr %6, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd19SynetConvolution16bD2Ev(ptr noundef nonnull align 8 dereferenceable(328)) unnamed_addr #2 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 = { alwaysinline 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 #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 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !18, i64 160}
!12 = !{!"_ZTSN4Simd9ConvParamE", !13, i64 0, !18, i64 160, !14, i64 168, !19, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !14, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !16, i64 28, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !16, i64 60, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !17, i64 152}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!16 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!17 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!18 = !{!"_ZTS8SimdBool", !7, i64 0}
!19 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!20 = !{!13, !14, i64 40}
!21 = !{!13, !14, i64 48}
!22 = !{!23, !14, i64 328}
!23 = !{!"_ZTSN4Simd4Base23SynetConvolution16bGemmE", !24, i64 0, !14, i64 328, !14, i64 336, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !14, i64 400, !14, i64 408, !14, i64 416, !14, i64 424}
!24 = !{!"_ZTSN4Simd19SynetConvolution16bE", !25, i64 0, !12, i64 8, !26, i64 192, !27, i64 208, !29, i64 240, !30, i64 256, !30, i64 272, !31, i64 288, !31, i64 289, !31, i64 290, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320}
!25 = !{!"_ZTSN4Simd9DeletableE"}
!26 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !14, i64 8}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !14, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !14, i64 8}
!30 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !14, i64 8}
!31 = !{!"bool", !7, i64 0}
!32 = !{!13, !14, i64 32}
!33 = !{!13, !14, i64 144}
!34 = !{!23, !14, i64 336}
!35 = !{!13, !14, i64 0}
!36 = !{!13, !14, i64 64}
!37 = !{!13, !14, i64 72}
!38 = !{!23, !14, i64 344}
!39 = !{!23, !14, i64 360}
!40 = !{!23, !14, i64 352}
!41 = !{!23, !14, i64 368}
!42 = !{!23, !14, i64 376}
!43 = !{!23, !14, i64 384}
!44 = !{!23, !14, i64 392}
!45 = !{!12, !14, i64 168}
!46 = !{!23, !14, i64 400}
!47 = !{!13, !14, i64 8}
!48 = !{!13, !14, i64 16}
!49 = !{!23, !14, i64 408}
!50 = !{!23, !14, i64 416}
!51 = !{!23, !14, i64 424}
!52 = !{!24, !14, i64 296}
!53 = !{!24, !14, i64 312}
!54 = !{!24, !14, i64 304}
!55 = !{!24, !14, i64 320}


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

@_ZTVN4Simd4Base23SynetConvolution16bGemmE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base23SynetConvolution16bGemmC2ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef nonnull align 8 dereferenceable(180) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4Simd19SynetConvolution16bC2ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(180) %1)
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTVN4Simd4Base23SynetConvolution16bGemmE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 160
  %4 = load i32, ptr %3, align 8, !tbaa !8
  %.not = icmp eq i32 %4, 0
  %5 = getelementptr inbounds i8, ptr %0, i64 328
  %6 = getelementptr inbounds i8, ptr %0, i64 336
  %7 = getelementptr inbounds i8, ptr %1, i64 64
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = getelementptr inbounds i8, ptr %0, i64 344
  br i1 %.not, label %38, label %10

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 40
  %12 = load i64, ptr %11, align 8, !tbaa !18
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  %14 = load i64, ptr %13, align 8, !tbaa !19
  %15 = mul i64 %14, %12
  store i64 %15, ptr %5, align 8, !tbaa !20
  %16 = getelementptr inbounds i8, ptr %1, i64 32
  %17 = load i64, ptr %16, align 8, !tbaa !31
  %18 = getelementptr inbounds i8, ptr %1, i64 144
  %19 = load i64, ptr %18, align 8, !tbaa !32
  %20 = udiv i64 %17, %19
  store i64 %20, ptr %6, align 8, !tbaa !33
  %21 = load i64, ptr %1, align 8, !tbaa !34
  %22 = load i64, ptr %7, align 8, !tbaa !35
  %23 = mul i64 %22, %21
  %24 = load i64, ptr %8, align 8, !tbaa !36
  %25 = mul i64 %23, %24
  %26 = udiv i64 %25, %19
  store i64 %26, ptr %9, align 8, !tbaa !37
  %27 = getelementptr inbounds i8, ptr %0, i64 360
  store i64 %26, ptr %27, align 8, !tbaa !38
  %28 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %17, ptr %28, align 8, !tbaa !39
  %29 = getelementptr inbounds i8, ptr %0, i64 368
  store i64 %17, ptr %29, align 8, !tbaa !40
  %30 = getelementptr inbounds i8, ptr %0, i64 376
  store i64 %20, ptr %30, align 8, !tbaa !41
  %31 = mul i64 %26, %15
  %32 = getelementptr inbounds i8, ptr %0, i64 384
  store i64 %31, ptr %32, align 8, !tbaa !42
  %33 = getelementptr inbounds i8, ptr %0, i64 392
  store i64 %20, ptr %33, align 8, !tbaa !43
  %34 = mul i64 %20, %19
  %35 = mul i64 %34, %26
  br label %.invoke

36:                                               ; preds = %.invoke
  %37 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN4Simd19SynetConvolution16bD2Ev(ptr noundef nonnull align 8 dereferenceable(328) %0) #3
  resume { ptr, i32 } %37

38:                                               ; preds = %2
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load i64, ptr %39, align 8, !tbaa !31
  %41 = getelementptr inbounds i8, ptr %1, i64 144
  %42 = load i64, ptr %41, align 8, !tbaa !32
  %43 = udiv i64 %40, %42
  store i64 %43, ptr %5, align 8, !tbaa !20
  %44 = getelementptr inbounds i8, ptr %1, i64 40
  %45 = load i64, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds i8, ptr %1, i64 48
  %47 = load i64, ptr %46, align 8, !tbaa !19
  %48 = mul i64 %47, %45
  store i64 %48, ptr %6, align 8, !tbaa !33
  %49 = load i64, ptr %1, align 8, !tbaa !34
  %50 = load i64, ptr %7, align 8, !tbaa !35
  %51 = mul i64 %50, %49
  %52 = load i64, ptr %8, align 8, !tbaa !36
  %53 = mul i64 %51, %52
  %54 = udiv i64 %53, %42
  store i64 %54, ptr %9, align 8, !tbaa !37
  %55 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %54, ptr %55, align 8, !tbaa !39
  %56 = getelementptr inbounds i8, ptr %0, i64 360
  store i64 %48, ptr %56, align 8, !tbaa !38
  %57 = getelementptr inbounds i8, ptr %0, i64 368
  store i64 %48, ptr %57, align 8, !tbaa !40
  %58 = mul i64 %54, %43
  %59 = getelementptr inbounds i8, ptr %0, i64 376
  store i64 %58, ptr %59, align 8, !tbaa !41
  %60 = mul i64 %54, %48
  %61 = getelementptr inbounds i8, ptr %0, i64 384
  store i64 %60, ptr %61, align 8, !tbaa !42
  %62 = mul i64 %48, %43
  %63 = getelementptr inbounds i8, ptr %0, i64 392
  store i64 %62, ptr %63, align 8, !tbaa !43
  %64 = mul i64 %58, %42
  br label %.invoke

.invoke:                                          ; preds = %10, %38
  %65 = phi i64 [ %64, %38 ], [ %35, %10 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 240
  invoke void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %65, i1 noundef zeroext false, i64 noundef 8)
          to label %67 unwind label %36

67:                                               ; preds = %.invoke
  %68 = getelementptr inbounds i8, ptr %1, i64 168
  %69 = load i64, ptr %68, align 8, !tbaa !44
  %70 = getelementptr inbounds i8, ptr %0, i64 400
  store i64 %69, ptr %70, align 8, !tbaa !45
  %71 = load i64, ptr %1, align 8, !tbaa !34
  %72 = getelementptr inbounds i8, ptr %1, i64 8
  %73 = load i64, ptr %72, align 8, !tbaa !46
  %74 = mul i64 %73, %71
  %75 = getelementptr inbounds i8, ptr %1, i64 16
  %76 = load i64, ptr %75, align 8, !tbaa !47
  %77 = mul i64 %74, %76
  %78 = getelementptr inbounds i8, ptr %0, i64 408
  store i64 %77, ptr %78, align 8, !tbaa !48
  %79 = getelementptr inbounds i8, ptr %1, i64 64
  %80 = load i64, ptr %79, align 8, !tbaa !35
  %81 = getelementptr inbounds i8, ptr %1, i64 72
  %82 = load i64, ptr %81, align 8, !tbaa !36
  %83 = getelementptr inbounds i8, ptr %1, i64 40
  %84 = load i64, ptr %83, align 8, !tbaa !18
  %85 = getelementptr inbounds i8, ptr %1, i64 48
  %86 = load i64, ptr %85, align 8, !tbaa !19
  %87 = mul i64 %86, %84
  %88 = mul i64 %87, %71
  %89 = mul i64 %88, %80
  %90 = mul i64 %89, %82
  %91 = getelementptr inbounds i8, ptr %0, i64 416
  store i64 %90, ptr %91, align 8, !tbaa !49
  %92 = getelementptr inbounds i8, ptr %1, i64 32
  %93 = load i64, ptr %92, align 8, !tbaa !31
  %94 = mul i64 %87, %93
  %95 = getelementptr inbounds i8, ptr %0, i64 424
  store i64 %94, ptr %95, align 8, !tbaa !50
  %96 = getelementptr inbounds i8, ptr %0, i64 296
  %97 = load i64, ptr %96, align 8, !tbaa !51
  %98 = mul i64 %97, %77
  %99 = getelementptr inbounds i8, ptr %0, i64 312
  store i64 %98, ptr %99, align 8, !tbaa !52
  %100 = getelementptr inbounds i8, ptr %0, i64 304
  %101 = load i64, ptr %100, align 8, !tbaa !53
  %102 = mul i64 %101, %94
  %103 = getelementptr inbounds i8, ptr %0, i64 320
  store i64 %102, ptr %103, align 8, !tbaa !54
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd19SynetConvolution16bD2Ev(ptr noundef nonnull align 8 dereferenceable(328)) unnamed_addr #2 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 = { alwaysinline 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 #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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 160}
!9 = !{!"_ZTSN4Simd9ConvParamE", !10, i64 0, !16, i64 160, !11, i64 168, !17, i64 176}
!10 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !14, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !13, i64 56, !14, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !15, i64 152}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTS18SimdTensorDataType", !12, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !12, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !12, i64 0}
!16 = !{!"_ZTS8SimdBool", !12, i64 0}
!17 = !{!"_ZTS26SimdSynetCompatibilityType", !12, i64 0}
!18 = !{!10, !11, i64 40}
!19 = !{!10, !11, i64 48}
!20 = !{!21, !11, i64 328}
!21 = !{!"_ZTSN4Simd4Base23SynetConvolution16bGemmE", !22, i64 0, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424}
!22 = !{!"_ZTSN4Simd19SynetConvolution16bE", !23, i64 0, !9, i64 8, !24, i64 192, !26, i64 208, !28, i64 240, !29, i64 256, !29, i64 272, !30, i64 288, !30, i64 289, !30, i64 290, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320}
!23 = !{!"_ZTSN4Simd9DeletableE"}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !25, i64 0, !11, i64 8}
!25 = !{!"any pointer", !12, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !11, i64 8, !12, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !25, i64 0}
!28 = !{!"_ZTSN4Simd5ArrayItEE", !25, i64 0, !11, i64 8}
!29 = !{!"_ZTSN4Simd5ArrayIfEE", !25, i64 0, !11, i64 8}
!30 = !{!"bool", !12, i64 0}
!31 = !{!10, !11, i64 32}
!32 = !{!10, !11, i64 144}
!33 = !{!21, !11, i64 336}
!34 = !{!10, !11, i64 0}
!35 = !{!10, !11, i64 64}
!36 = !{!10, !11, i64 72}
!37 = !{!21, !11, i64 344}
!38 = !{!21, !11, i64 360}
!39 = !{!21, !11, i64 352}
!40 = !{!21, !11, i64 368}
!41 = !{!21, !11, i64 376}
!42 = !{!21, !11, i64 384}
!43 = !{!21, !11, i64 392}
!44 = !{!9, !11, i64 168}
!45 = !{!21, !11, i64 400}
!46 = !{!10, !11, i64 8}
!47 = !{!10, !11, i64 16}
!48 = !{!21, !11, i64 408}
!49 = !{!21, !11, i64 416}
!50 = !{!21, !11, i64 424}
!51 = !{!22, !11, i64 296}
!52 = !{!22, !11, i64 312}
!53 = !{!22, !11, i64 304}
!54 = !{!22, !11, i64 320}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass