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

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

%"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::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 }
%"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 }
%"class.Simd::Base::SynetConvolution16bNchwGemm" = type { %"class.Simd::SynetConvolution16b", %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr, [2 x ptr] }
%"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetConvolution16bNchwGemm11SetAlgParamEmmmmmmm(ptr noundef nonnull align 8 dereferenceable(464) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7) #1 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !9
  store i64 %3, ptr %12, align 8, !tbaa !9
  store i64 %4, ptr %13, align 8, !tbaa !9
  store i64 %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !9
  store i64 %7, ptr %16, align 8, !tbaa !9
  %19 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %20 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 1
  store ptr %20, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %21 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bNchwGemm", ptr %19, i32 0, i32 1
  store ptr %21, ptr %18, align 8, !tbaa !5
  %22 = load ptr, ptr %17, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %22, i32 0, i32 7
  %24 = load i64, ptr %23, align 8, !tbaa !11
  %25 = load ptr, ptr %17, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %25, i32 0, i32 6
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = mul i64 %24, %27
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %29, i32 0, i32 1
  store i64 %28, ptr %30, align 8, !tbaa !17
  %31 = load ptr, ptr %17, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !20
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %34, i32 0, i32 10
  %36 = load i64, ptr %35, align 8, !tbaa !21
  %37 = mul i64 %33, %36
  %38 = load ptr, ptr %17, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %38, i32 0, i32 11
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = mul i64 %37, %40
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %42, i32 0, i32 0
  store i64 %41, ptr %43, align 8, !tbaa !23
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %45, i32 0, i32 2
  store i64 %44, ptr %46, align 8, !tbaa !24
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %48, i32 0, i32 3
  store i64 %47, ptr %49, align 8, !tbaa !25
  %50 = load i64, ptr %12, align 8, !tbaa !9
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %51, i32 0, i32 4
  store i64 %50, ptr %52, align 8, !tbaa !26
  %53 = load i64, ptr %13, align 8, !tbaa !9
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %54, i32 0, i32 5
  store i64 %53, ptr %55, align 8, !tbaa !27
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %56, i32 0, i32 5
  %58 = load i64, ptr %57, align 8, !tbaa !28
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %59, i32 0, i32 3
  %61 = load i64, ptr %60, align 8, !tbaa !25
  %62 = call noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef %58, i64 noundef %61)
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %63, i32 0, i32 9
  store i64 %62, ptr %64, align 8, !tbaa !29
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !23
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %68, i32 0, i32 5
  %70 = load i64, ptr %69, align 8, !tbaa !27
  %71 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %67, i64 noundef %70)
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %72, i32 0, i32 11
  store i64 %71, ptr %73, align 8, !tbaa !30
  %74 = load i64, ptr %14, align 8, !tbaa !9
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %75, i32 0, i32 3
  %77 = load i64, ptr %76, align 8, !tbaa !25
  %78 = udiv i64 %74, %77
  %79 = udiv i64 %78, 2
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %80, i32 0, i32 5
  %82 = load i64, ptr %81, align 8, !tbaa !27
  %83 = call noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef %79, i64 noundef %82)
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %84, i32 0, i32 5
  %86 = load i64, ptr %85, align 8, !tbaa !27
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %87, i32 0, i32 11
  %89 = load i64, ptr %88, align 8, !tbaa !30
  %90 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %83, i64 noundef %86, i64 noundef %89)
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %91, i32 0, i32 8
  store i64 %90, ptr %92, align 8, !tbaa !31
  %93 = load i64, ptr %16, align 8, !tbaa !9
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %94, i32 0, i32 8
  %96 = load i64, ptr %95, align 8, !tbaa !31
  %97 = udiv i64 %93, %96
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %98, i32 0, i32 7
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = udiv i64 %97, %100
  %102 = udiv i64 %101, 2
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %103, i32 0, i32 6
  %105 = load i64, ptr %104, align 8, !tbaa !16
  %106 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %102, i64 noundef 1, i64 noundef %105)
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %107, i32 0, i32 7
  store i64 %106, ptr %108, align 8, !tbaa !32
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %110, i32 0, i32 8
  %112 = load i64, ptr %111, align 8, !tbaa !31
  %113 = udiv i64 %109, %112
  %114 = udiv i64 %113, 2
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %115, i32 0, i32 3
  %117 = load i64, ptr %116, align 8, !tbaa !25
  %118 = call noundef i64 @_ZN4Simd10AlignLoAnyEmm(i64 noundef %114, i64 noundef %117)
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %119, i32 0, i32 3
  %121 = load i64, ptr %120, align 8, !tbaa !25
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %122, i32 0, i32 9
  %124 = load i64, ptr %123, align 8, !tbaa !29
  %125 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %118, i64 noundef %121, i64 noundef %124)
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %126, i32 0, i32 6
  store i64 %125, ptr %127, align 8, !tbaa !33
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %128, i32 0, i32 6
  %130 = load i64, ptr %129, align 8, !tbaa !16
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %131, i32 0, i32 7
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %134, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !24
  %137 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %133, i64 noundef %136)
  %138 = mul i64 %130, %137
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %139, i32 0, i32 10
  store i64 %138, ptr %140, align 8, !tbaa !34
  %141 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 11
  %142 = load i64, ptr %141, align 8, !tbaa !35
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %143, i32 0, i32 12
  store i64 %142, ptr %144, align 8, !tbaa !47
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %145, i32 0, i32 13
  store i32 0, ptr %146, align 8, !tbaa !48
  %147 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 8
  %148 = load i8, ptr %147, align 1, !tbaa !49, !range !50, !noundef !51
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %158

150:                                              ; preds = %8
  %151 = load ptr, ptr %18, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %151, i32 0, i32 8
  %153 = load i64, ptr %152, align 8, !tbaa !31
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %154, i32 0, i32 0
  %156 = load i64, ptr %155, align 8, !tbaa !23
  %157 = icmp ult i64 %153, %156
  br i1 %157, label %163, label %158

158:                                              ; preds = %150, %8
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %159, i32 0, i32 5
  %161 = load i64, ptr %160, align 8, !tbaa !27
  %162 = icmp ugt i64 %161, 2
  br label %163

163:                                              ; preds = %158, %150
  %164 = phi i1 [ true, %150 ], [ %162, %158 ]
  %165 = zext i1 %164 to i64
  %166 = select i1 %164, i32 1, i32 0
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %167, i32 0, i32 14
  store i32 %166, ptr %168, align 4, !tbaa !52
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %169, i32 0, i32 14
  %171 = load i32, ptr %170, align 4, !tbaa !52
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %173, label %187

173:                                              ; preds = %163
  %174 = load ptr, ptr %18, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %174, i32 0, i32 6
  %176 = load i64, ptr %175, align 8, !tbaa !33
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %177, i32 0, i32 5
  %179 = load i64, ptr %178, align 8, !tbaa !28
  %180 = icmp ugt i64 %176, %179
  br i1 %180, label %181, label %187

181:                                              ; preds = %173
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %182, i32 0, i32 5
  %184 = load i64, ptr %183, align 8, !tbaa !28
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNchwGemm::AlgParam", ptr %185, i32 0, i32 6
  store i64 %184, ptr %186, align 8, !tbaa !33
  br label %187

187:                                              ; preds = %181, %173, %163
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %188, i32 0, i32 1
  %190 = load i64, ptr %189, align 8, !tbaa !53
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %191, i32 0, i32 2
  %193 = load i64, ptr %192, align 8, !tbaa !54
  %194 = mul i64 %190, %193
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %195, i32 0, i32 0
  %197 = load i64, ptr %196, align 8, !tbaa !20
  %198 = mul i64 %194, %197
  %199 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 10
  %200 = load i64, ptr %199, align 8, !tbaa !55
  %201 = mul i64 %198, %200
  %202 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 12
  store i64 %201, ptr %202, align 8, !tbaa !56
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %203, i32 0, i32 6
  %205 = load i64, ptr %204, align 8, !tbaa !16
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %206, i32 0, i32 7
  %208 = load i64, ptr %207, align 8, !tbaa !11
  %209 = mul i64 %205, %208
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %210, i32 0, i32 5
  %212 = load i64, ptr %211, align 8, !tbaa !28
  %213 = mul i64 %209, %212
  %214 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 11
  %215 = load i64, ptr %214, align 8, !tbaa !35
  %216 = mul i64 %213, %215
  %217 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %19, i32 0, i32 13
  store i64 %216, ptr %217, align 8, !tbaa !57
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef, i64 noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef, i64 noundef, i64 noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef, i64 noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd10AlignLoAnyEmm(i64 noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { alwaysinline 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 = { 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 #4 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !14, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !14, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !15, i64 152}
!13 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!16 = !{!12, !10, i64 40}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4Simd4Base27SynetConvolution16bNchwGemm8AlgParamE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !19, i64 104, !19, i64 108}
!19 = !{!"int", !7, i64 0}
!20 = !{!12, !10, i64 0}
!21 = !{!12, !10, i64 64}
!22 = !{!12, !10, i64 72}
!23 = !{!18, !10, i64 0}
!24 = !{!18, !10, i64 16}
!25 = !{!18, !10, i64 24}
!26 = !{!18, !10, i64 32}
!27 = !{!18, !10, i64 40}
!28 = !{!12, !10, i64 32}
!29 = !{!18, !10, i64 72}
!30 = !{!18, !10, i64 88}
!31 = !{!18, !10, i64 64}
!32 = !{!18, !10, i64 56}
!33 = !{!18, !10, i64 48}
!34 = !{!18, !10, i64 80}
!35 = !{!36, !10, i64 304}
!36 = !{!"_ZTSN4Simd19SynetConvolution16bE", !37, i64 0, !38, i64 8, !41, i64 192, !42, i64 208, !44, i64 240, !45, i64 256, !45, i64 272, !46, i64 288, !46, i64 289, !46, i64 290, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!37 = !{!"_ZTSN4Simd9DeletableE"}
!38 = !{!"_ZTSN4Simd9ConvParamE", !12, i64 0, !39, i64 160, !10, i64 168, !40, i64 176}
!39 = !{!"_ZTS8SimdBool", !7, i64 0}
!40 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!41 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !43, i64 0, !10, i64 8, !7, i64 16}
!43 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!44 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!45 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!46 = !{!"bool", !7, i64 0}
!47 = !{!18, !10, i64 96}
!48 = !{!18, !19, i64 104}
!49 = !{!36, !46, i64 289}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!18, !19, i64 108}
!53 = !{!12, !10, i64 8}
!54 = !{!12, !10, i64 16}
!55 = !{!36, !10, i64 296}
!56 = !{!36, !10, i64 312}
!57 = !{!36, !10, 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetConvolution16bNchwGemm11SetAlgParamEmmmmmmm(ptr nocapture noundef nonnull align 8 dereferenceable(464) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7) local_unnamed_addr #0 align 2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %0, i64 328
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %15 = mul i64 %14, %12
  %16 = getelementptr inbounds i8, ptr %0, i64 336
  store i64 %15, ptr %16, align 8, !tbaa !14
  %17 = load i64, ptr %9, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = load i64, ptr %18, align 8, !tbaa !18
  %20 = mul i64 %19, %17
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  %22 = load i64, ptr %21, align 8, !tbaa !19
  %23 = mul i64 %20, %22
  store i64 %23, ptr %10, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %0, i64 344
  store i64 %1, ptr %24, align 8, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %2, ptr %25, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %0, i64 360
  store i64 %3, ptr %26, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %0, i64 368
  store i64 %4, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i64, ptr %28, align 8, !tbaa !25
  %30 = tail call noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef %29, i64 noundef %2)
  %31 = getelementptr inbounds i8, ptr %0, i64 400
  store i64 %30, ptr %31, align 8, !tbaa !26
  %32 = load i64, ptr %10, align 8, !tbaa !20
  %33 = load i64, ptr %27, align 8, !tbaa !24
  %34 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %32, i64 noundef %33)
  %35 = getelementptr inbounds i8, ptr %0, i64 416
  store i64 %34, ptr %35, align 8, !tbaa !27
  %36 = load i64, ptr %25, align 8, !tbaa !22
  %37 = udiv i64 %5, %36
  %38 = lshr i64 %37, 1
  %39 = load i64, ptr %27, align 8, !tbaa !24
  %40 = tail call noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef %38, i64 noundef %39)
  %41 = load i64, ptr %27, align 8, !tbaa !24
  %42 = load i64, ptr %35, align 8, !tbaa !27
  %43 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %40, i64 noundef %41, i64 noundef %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 392
  store i64 %43, ptr %44, align 8, !tbaa !28
  %45 = udiv i64 %7, %43
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %47 = udiv i64 %45, %46
  %48 = lshr i64 %47, 1
  %49 = load i64, ptr %13, align 8, !tbaa !13
  %50 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %48, i64 noundef 1, i64 noundef %49)
  %51 = getelementptr inbounds i8, ptr %0, i64 384
  store i64 %50, ptr %51, align 8, !tbaa !29
  %52 = load i64, ptr %44, align 8, !tbaa !28
  %53 = udiv i64 %6, %52
  %54 = lshr i64 %53, 1
  %55 = load i64, ptr %25, align 8, !tbaa !22
  %56 = tail call noundef i64 @_ZN4Simd10AlignLoAnyEmm(i64 noundef %54, i64 noundef %55)
  %57 = load i64, ptr %25, align 8, !tbaa !22
  %58 = load i64, ptr %31, align 8, !tbaa !26
  %59 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %56, i64 noundef %57, i64 noundef %58)
  %60 = getelementptr inbounds i8, ptr %0, i64 376
  store i64 %59, ptr %60, align 8, !tbaa !30
  %61 = load i64, ptr %13, align 8, !tbaa !13
  %62 = load i64, ptr %11, align 8, !tbaa !5
  %63 = load i64, ptr %24, align 8, !tbaa !21
  %64 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %62, i64 noundef %63)
  %65 = mul i64 %64, %61
  %66 = getelementptr inbounds i8, ptr %0, i64 408
  store i64 %65, ptr %66, align 8, !tbaa !31
  %67 = getelementptr inbounds i8, ptr %0, i64 304
  %68 = load i64, ptr %67, align 8, !tbaa !32
  %69 = getelementptr inbounds i8, ptr %0, i64 424
  store i64 %68, ptr %69, align 8, !tbaa !45
  %70 = getelementptr inbounds i8, ptr %0, i64 432
  store i32 0, ptr %70, align 8, !tbaa !46
  %71 = getelementptr inbounds i8, ptr %0, i64 289
  %72 = load i8, ptr %71, align 1, !tbaa !47, !range !48, !noundef !49
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %74, label %79

74:                                               ; preds = %8
  %75 = load i64, ptr %44, align 8, !tbaa !28
  %76 = load i64, ptr %10, align 8, !tbaa !20
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %.thread, label %79

.thread:                                          ; preds = %74
  %78 = getelementptr inbounds i8, ptr %0, i64 436
  store i32 1, ptr %78, align 4, !tbaa !50
  %.pre = load i64, ptr %28, align 8, !tbaa !25
  br label %87

79:                                               ; preds = %8, %74
  %80 = load i64, ptr %27, align 8, !tbaa !24
  %81 = icmp ugt i64 %80, 2
  %82 = zext i1 %81 to i32
  %83 = getelementptr inbounds i8, ptr %0, i64 436
  store i32 %82, ptr %83, align 4, !tbaa !50
  %.pre59 = load i64, ptr %28, align 8, !tbaa !25
  %84 = load i64, ptr %60, align 8
  %85 = icmp ule i64 %84, %.pre59
  %or.cond.not = select i1 %81, i1 true, i1 %85
  br i1 %or.cond.not, label %87, label %86

86:                                               ; preds = %79
  store i64 %.pre59, ptr %60, align 8, !tbaa !30
  br label %87

87:                                               ; preds = %.thread, %86, %79
  %88 = phi i64 [ %.pre, %.thread ], [ %.pre59, %86 ], [ %.pre59, %79 ]
  %89 = getelementptr inbounds i8, ptr %0, i64 16
  %90 = load i64, ptr %89, align 8, !tbaa !51
  %91 = getelementptr inbounds i8, ptr %0, i64 24
  %92 = load i64, ptr %91, align 8, !tbaa !52
  %93 = mul i64 %92, %90
  %94 = load i64, ptr %9, align 8, !tbaa !17
  %95 = mul i64 %93, %94
  %96 = getelementptr inbounds i8, ptr %0, i64 296
  %97 = load i64, ptr %96, align 8, !tbaa !53
  %98 = mul i64 %95, %97
  %99 = getelementptr inbounds i8, ptr %0, i64 312
  store i64 %98, ptr %99, align 8, !tbaa !54
  %100 = load i64, ptr %13, align 8, !tbaa !13
  %101 = load i64, ptr %11, align 8, !tbaa !5
  %102 = mul i64 %100, %68
  %103 = mul i64 %102, %101
  %104 = mul i64 %103, %88
  %105 = getelementptr inbounds i8, ptr %0, i64 320
  store i64 %104, ptr %105, align 8, !tbaa !55
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd10AlignLoAnyEmm(i64 noundef, i64 noundef) local_unnamed_addr #1

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 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 = { 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" }

!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 48}
!6 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !12, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!11 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!12 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!13 = !{!6, !7, i64 40}
!14 = !{!15, !7, i64 8}
!15 = !{!"_ZTSN4Simd4Base27SynetConvolution16bNchwGemm8AlgParamE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !16, i64 104, !16, i64 108}
!16 = !{!"int", !8, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 64}
!19 = !{!6, !7, i64 72}
!20 = !{!15, !7, i64 0}
!21 = !{!15, !7, i64 16}
!22 = !{!15, !7, i64 24}
!23 = !{!15, !7, i64 32}
!24 = !{!15, !7, i64 40}
!25 = !{!6, !7, i64 32}
!26 = !{!15, !7, i64 72}
!27 = !{!15, !7, i64 88}
!28 = !{!15, !7, i64 64}
!29 = !{!15, !7, i64 56}
!30 = !{!15, !7, i64 48}
!31 = !{!15, !7, i64 80}
!32 = !{!33, !7, i64 304}
!33 = !{!"_ZTSN4Simd19SynetConvolution16bE", !34, i64 0, !35, i64 8, !38, i64 192, !40, i64 208, !42, i64 240, !43, i64 256, !43, i64 272, !44, i64 288, !44, i64 289, !44, i64 290, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320}
!34 = !{!"_ZTSN4Simd9DeletableE"}
!35 = !{!"_ZTSN4Simd9ConvParamE", !6, i64 0, !36, i64 160, !7, i64 168, !37, i64 176}
!36 = !{!"_ZTS8SimdBool", !8, i64 0}
!37 = !{!"_ZTS26SimdSynetCompatibilityType", !8, i64 0}
!38 = !{!"_ZTSN4Simd5ArrayIhEE", !39, i64 0, !7, i64 8}
!39 = !{!"any pointer", !8, i64 0}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !41, i64 0, !7, i64 8, !8, i64 16}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !39, i64 0}
!42 = !{!"_ZTSN4Simd5ArrayItEE", !39, i64 0, !7, i64 8}
!43 = !{!"_ZTSN4Simd5ArrayIfEE", !39, i64 0, !7, i64 8}
!44 = !{!"bool", !8, i64 0}
!45 = !{!15, !7, i64 96}
!46 = !{!15, !16, i64 104}
!47 = !{!33, !44, i64 289}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!15, !16, i64 108}
!51 = !{!6, !7, i64 8}
!52 = !{!6, !7, i64 16}
!53 = !{!33, !7, i64 296}
!54 = !{!33, !7, i64 312}
!55 = !{!33, !7, i64 320}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass