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

; 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::SynetInnerProduct16b" = type { %"struct.Simd::Deletable", %"struct.Simd::InnerProductParam16b", %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"class.std::__cxx11::basic_string", i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::InnerProductParam16b" = type { i64, i64, i64, i32, i32, i32, i32, i32, i32 }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = 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] }
%"class.Simd::Base::SynetInnerProduct16bGemmNN" = type { %"class.Simd::SynetInnerProduct16b", %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr, ptr, ptr }
%"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

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

149:                                              ; preds = %8
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %150, i32 0, i32 2
  %152 = load i64, ptr %151, align 8, !tbaa !16
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %153, i32 0, i32 9
  %155 = load i64, ptr %154, align 8, !tbaa !20
  %156 = icmp ne i64 %152, %155
  br i1 %156, label %157, label %165

157:                                              ; preds = %149, %8
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %158, i32 0, i32 7
  %160 = load i64, ptr %159, align 8, !tbaa !24
  %161 = load ptr, ptr %18, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %161, i32 0, i32 9
  %163 = load i64, ptr %162, align 8, !tbaa !20
  %164 = mul i64 %160, %163
  br label %166

165:                                              ; preds = %149
  br label %166

166:                                              ; preds = %165, %157
  %167 = phi i64 [ %164, %157 ], [ 0, %165 ]
  %168 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %19, i32 0, i32 6
  store i64 %167, ptr %168, align 8, !tbaa !34
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %169, i32 0, i32 7
  %171 = load i32, ptr %170, align 8, !tbaa !42
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %166
  br label %182

174:                                              ; preds = %166
  %175 = load ptr, ptr %18, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %175, i32 0, i32 6
  %177 = load i64, ptr %176, align 8, !tbaa !25
  %178 = load ptr, ptr %18, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %178, i32 0, i32 5
  %180 = load i64, ptr %179, align 8, !tbaa !26
  %181 = mul i64 %177, %180
  br label %182

182:                                              ; preds = %174, %173
  %183 = phi i64 [ 0, %173 ], [ %181, %174 ]
  %184 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %19, i32 0, i32 7
  store i64 %183, ptr %184, align 8, !tbaa !43
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %185, i32 0, i32 5
  %187 = load i32, ptr %186, align 8, !tbaa !32
  %188 = icmp eq i32 %187, 7
  br i1 %188, label %205, label %189

189:                                              ; preds = %182
  %190 = load ptr, ptr %18, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %190, i32 0, i32 7
  %192 = load i64, ptr %191, align 8, !tbaa !24
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %193, i32 0, i32 0
  %195 = load i64, ptr %194, align 8, !tbaa !23
  %196 = icmp ne i64 %192, %195
  br i1 %196, label %205, label %197

197:                                              ; preds = %189
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %198, i32 0, i32 8
  %200 = load i64, ptr %199, align 8, !tbaa !22
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %201, i32 0, i32 1
  %203 = load i64, ptr %202, align 8, !tbaa !21
  %204 = icmp ne i64 %200, %203
  br i1 %204, label %205, label %213

205:                                              ; preds = %197, %189, %182
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %206, i32 0, i32 5
  %208 = load i64, ptr %207, align 8, !tbaa !26
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %209, i32 0, i32 7
  %211 = load i64, ptr %210, align 8, !tbaa !24
  %212 = mul i64 %208, %211
  br label %214

213:                                              ; preds = %197
  br label %214

214:                                              ; preds = %213, %205
  %215 = phi i64 [ %212, %205 ], [ 0, %213 ]
  %216 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %19, i32 0, i32 8
  store i64 %215, ptr %216, align 8, !tbaa !44
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %217, i32 0, i32 7
  %219 = load i32, ptr %218, align 8, !tbaa !42
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %225

221:                                              ; preds = %214
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %222, i32 0, i32 9
  %224 = load i64, ptr %223, align 8, !tbaa !20
  br label %229

225:                                              ; preds = %214
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %226, i32 0, i32 6
  %228 = load i64, ptr %227, align 8, !tbaa !25
  br label %229

229:                                              ; preds = %225, %221
  %230 = phi i64 [ %224, %221 ], [ %228, %225 ]
  %231 = load ptr, ptr %18, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %231, i32 0, i32 13
  store i64 %230, ptr %232, align 8, !tbaa !45
  %233 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %19, i32 0, i32 8
  %234 = load i64, ptr %233, align 8, !tbaa !44
  %235 = icmp ne i64 %234, 0
  br i1 %235, label %236, label %240

236:                                              ; preds = %229
  %237 = load ptr, ptr %18, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %237, i32 0, i32 5
  %239 = load i64, ptr %238, align 8, !tbaa !26
  br label %244

240:                                              ; preds = %229
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %241, i32 0, i32 1
  %243 = load i64, ptr %242, align 8, !tbaa !21
  br label %244

244:                                              ; preds = %240, %236
  %245 = phi i64 [ %239, %236 ], [ %243, %240 ]
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %246, i32 0, i32 14
  store i64 %245, ptr %247, align 8, !tbaa !46
  %248 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %19, i32 0, i32 4
  %249 = load ptr, ptr %18, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.Simd::Base::SynetInnerProduct16bGemmNN::AlgParam", ptr %249, i32 0, i32 8
  %251 = load i64, ptr %250, align 8, !tbaa !22
  call void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %248, i64 noundef %251, i1 noundef zeroext true, i64 noundef 8)
  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 @_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 uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #3 align 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 0}
!12 = !{!"_ZTSN4Simd4Base26SynetInnerProduct16bGemmNN8AlgParamE", !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, !10, i64 104, !10, i64 112}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTSN4Simd20InnerProductParam16bE", !10, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !19, i64 36, !19, i64 40, !19, i64 44}
!18 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!19 = !{!"_ZTS8SimdBool", !7, i64 0}
!20 = !{!12, !10, i64 72}
!21 = !{!17, !10, i64 8}
!22 = !{!12, !10, i64 64}
!23 = !{!17, !10, i64 0}
!24 = !{!12, !10, i64 56}
!25 = !{!12, !10, i64 48}
!26 = !{!12, !10, i64 40}
!27 = !{!12, !10, i64 32}
!28 = !{!17, !18, i64 24}
!29 = !{!12, !10, i64 80}
!30 = !{!17, !18, i64 28}
!31 = !{!12, !10, i64 88}
!32 = !{!17, !18, i64 32}
!33 = !{!12, !10, i64 96}
!34 = !{!35, !10, i64 136}
!35 = !{!"_ZTSN4Simd20SynetInnerProduct16bE", !36, i64 0, !17, i64 8, !37, i64 56, !38, i64 72, !39, i64 88, !40, i64 104, !10, i64 136, !10, i64 144, !10, i64 152}
!36 = !{!"_ZTSN4Simd9DeletableE"}
!37 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!38 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!39 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !41, i64 0, !10, i64 8, !7, i64 16}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!42 = !{!17, !19, i64 40}
!43 = !{!35, !10, i64 144}
!44 = !{!35, !10, i64 152}
!45 = !{!12, !10, i64 104}
!46 = !{!12, !10, i64 112}


; 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 @_ZN4Simd4Base26SynetInnerProduct16bGemmNN11SetAlgParamEmmmmmmm(ptr noundef nonnull align 8 dereferenceable(304) %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 160
  store i64 %1, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 168
  store i64 %2, ptr %11, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  store i64 %3, ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %0, i64 184
  store i64 %4, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load i64, ptr %14, align 8, !tbaa !13
  %16 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %15, i64 noundef %4)
  %17 = getelementptr inbounds i8, ptr %0, i64 232
  store i64 %16, ptr %17, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load i64, ptr %18, align 8, !tbaa !18
  %20 = load i64, ptr %10, align 8, !tbaa !5
  %21 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %19, i64 noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 224
  store i64 %21, ptr %22, align 8, !tbaa !19
  %23 = load i64, ptr %9, align 8, !tbaa !20
  %24 = load i64, ptr %11, align 8, !tbaa !10
  %25 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %23, i64 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 216
  store i64 %25, ptr %26, align 8, !tbaa !21
  %27 = load i64, ptr %12, align 8, !tbaa !11
  %28 = udiv i64 %5, %27
  %29 = lshr i64 %28, 1
  %30 = load i64, ptr %13, align 8, !tbaa !12
  %31 = tail call noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef %29, i64 noundef %30)
  %32 = load i64, ptr %13, align 8, !tbaa !12
  %33 = load i64, ptr %17, align 8, !tbaa !17
  %34 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %31, i64 noundef %32, i64 noundef %33)
  %35 = getelementptr inbounds i8, ptr %0, i64 208
  store i64 %34, ptr %35, align 8, !tbaa !22
  %36 = udiv i64 %7, %34
  %37 = lshr i64 %36, 1
  %38 = load i64, ptr %12, align 8, !tbaa !11
  %39 = tail call noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef %37, i64 noundef %38)
  %40 = load i64, ptr %12, align 8, !tbaa !11
  %41 = load i64, ptr %22, align 8, !tbaa !19
  %42 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %39, i64 noundef %40, i64 noundef %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %42, ptr %43, align 8, !tbaa !23
  %44 = load i64, ptr %35, align 8, !tbaa !22
  %45 = udiv i64 %6, %44
  %46 = lshr i64 %45, 1
  %47 = load i64, ptr %11, align 8, !tbaa !10
  %48 = tail call noundef i64 @_ZN4Simd7AlignLoEmm(i64 noundef %46, i64 noundef %47)
  %49 = load i64, ptr %11, align 8, !tbaa !10
  %50 = load i64, ptr %26, align 8, !tbaa !21
  %51 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %48, i64 noundef %49, i64 noundef %50)
  %52 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 %51, ptr %52, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %0, i64 32
  %54 = load i32, ptr %53, align 8, !tbaa !25
  %55 = icmp ne i32 %54, 0
  %56 = select i1 %55, i64 2, i64 4
  %57 = getelementptr inbounds i8, ptr %0, i64 240
  store i64 %56, ptr %57, align 8, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %0, i64 36
  %59 = getelementptr inbounds i8, ptr %0, i64 248
  %60 = load <2 x i32>, ptr %58, align 4, !tbaa !27
  %61 = icmp eq <2 x i32> %60, zeroinitializer
  %62 = select <2 x i1> %61, <2 x i64> <i64 4, i64 4>, <2 x i64> <i64 2, i64 2>
  store <2 x i64> %62, ptr %59, align 8, !tbaa !28
  %.pre = load i64, ptr %17, align 8
  %63 = load i64, ptr %14, align 8
  %.not = icmp eq i64 %63, %.pre
  %or.cond = select i1 %55, i1 %.not, i1 false
  %64 = load i64, ptr %26, align 8
  %65 = mul i64 %.pre, %64
  %66 = select i1 %or.cond, i64 0, i64 %65
  %67 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 %66, ptr %67, align 8, !tbaa !29
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  %69 = load i32, ptr %68, align 8, !tbaa !38
  %.not64 = icmp eq i32 %69, 0
  %70 = load i64, ptr %35, align 8
  %71 = load i64, ptr %43, align 8
  %72 = mul i64 %71, %70
  %73 = select i1 %.not64, i64 %72, i64 0
  %74 = getelementptr inbounds i8, ptr %0, i64 144
  store i64 %73, ptr %74, align 8, !tbaa !39
  %75 = extractelement <2 x i32> %60, i64 1
  %76 = icmp ne i32 %75, 7
  %77 = load i64, ptr %9, align 8
  %.not65 = icmp eq i64 %64, %77
  %or.cond82 = select i1 %76, i1 %.not65, i1 false
  br i1 %or.cond82, label %78, label %84

78:                                               ; preds = %8
  %79 = load i64, ptr %22, align 8, !tbaa !19
  %80 = load i64, ptr %18, align 8, !tbaa !28
  %.not66 = icmp eq i64 %79, %80
  br i1 %.not66, label %.thread, label %84

.thread:                                          ; preds = %78
  %81 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 0, ptr %81, align 8, !tbaa !40
  %82 = select i1 %.not64, i64 %70, i64 %.pre
  %83 = getelementptr inbounds i8, ptr %0, i64 264
  store i64 %82, ptr %83, align 8, !tbaa !41
  br label %._crit_edge79

84:                                               ; preds = %8, %78
  %85 = mul i64 %64, %71
  %.fr = freeze i64 %85
  %86 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 %.fr, ptr %86, align 8, !tbaa !40
  %87 = select i1 %.not64, i64 %70, i64 %.pre
  %88 = getelementptr inbounds i8, ptr %0, i64 264
  store i64 %87, ptr %88, align 8, !tbaa !41
  %.not68 = icmp eq i64 %.fr, 0
  %.pre77.pre = load i64, ptr %18, align 8
  %spec.select = select i1 %.not68, i64 %.pre77.pre, i64 %71
  br label %._crit_edge79

._crit_edge79:                                    ; preds = %84, %.thread
  %89 = phi i64 [ %79, %.thread ], [ %spec.select, %84 ]
  %90 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %89, ptr %90, align 8, !tbaa !42
  %91 = getelementptr inbounds i8, ptr %0, i64 88
  %92 = load i64, ptr %22, align 8, !tbaa !19
  tail call void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %91, i64 noundef %92, i1 noundef zeroext true, i64 noundef 8)
  ret void
}

; 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 uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_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 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 0}
!6 = !{!"_ZTSN4Simd4Base26SynetInnerProduct16bGemmNN8AlgParamE", !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, !7, i64 104, !7, i64 112}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!14, !7, i64 16}
!14 = !{!"_ZTSN4Simd20InnerProductParam16bE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !16, i64 36, !16, i64 40, !16, i64 44}
!15 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!16 = !{!"_ZTS8SimdBool", !8, i64 0}
!17 = !{!6, !7, i64 72}
!18 = !{!14, !7, i64 8}
!19 = !{!6, !7, i64 64}
!20 = !{!14, !7, i64 0}
!21 = !{!6, !7, i64 56}
!22 = !{!6, !7, i64 48}
!23 = !{!6, !7, i64 40}
!24 = !{!6, !7, i64 32}
!25 = !{!14, !15, i64 24}
!26 = !{!6, !7, i64 80}
!27 = !{!15, !15, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !7, i64 136}
!30 = !{!"_ZTSN4Simd20SynetInnerProduct16bE", !31, i64 0, !14, i64 8, !32, i64 56, !34, i64 72, !35, i64 88, !36, i64 104, !7, i64 136, !7, i64 144, !7, i64 152}
!31 = !{!"_ZTSN4Simd9DeletableE"}
!32 = !{!"_ZTSN4Simd5ArrayIhEE", !33, i64 0, !7, i64 8}
!33 = !{!"any pointer", !8, i64 0}
!34 = !{!"_ZTSN4Simd5ArrayItEE", !33, i64 0, !7, i64 8}
!35 = !{!"_ZTSN4Simd5ArrayIfEE", !33, i64 0, !7, i64 8}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !37, i64 0, !7, i64 8, !8, i64 16}
!37 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !33, i64 0}
!38 = !{!14, !16, i64 40}
!39 = !{!30, !7, i64 144}
!40 = !{!30, !7, i64 152}
!41 = !{!6, !7, i64 104}
!42 = !{!6, !7, i64 112}


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