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

; 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.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::SynetMergedConvolution16b" = type { %"class.Simd::SynetMergedConvolution16b", %"struct.Simd::MergConvParam", %"class.std::__cxx11::basic_string", i8, i8, i8, ptr, ptr, ptr, ptr, [2 x ptr], i64, i64, [4 x i64], %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.1", [3 x %"struct.Simd::Array.1"], [3 x %"struct.Simd::Array.1"] }
%"class.Simd::SynetMergedConvolution16b" = type { %"struct.Simd::Deletable" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::MergConvParam" = type <{ [3 x %"struct.Simd::ConvParam"], i64, i32, [4 x i8] }>
%"struct.Simd::ConvParam" = type <{ %struct.SimdConvolutionParameters, i32, [4 x i8], i64, i32, [4 x i8] }>
%"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::Base::SynetMergedConvolution16b::AlgParam" = type { i64, i64, i64, [3 x i64], [3 x i64], [3 x i64], [2 x i64], [3 x i64], [2 x i64] }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }

@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE = external hidden unnamed_addr constant [94 x i8], align 1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(180) %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %21, i32 0, i32 20
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i64 %23, 1
  br i1 %24, label %25, label %28

25:                                               ; preds = %3
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZN4Simd5Is1x1ERK25SimdConvolutionParameters(ptr noundef nonnull align 8 dereferenceable(160) %26)
  br label %28

28:                                               ; preds = %25, %3
  %29 = phi i1 [ false, %3 ], [ %27, %25 ]
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  br label %33

31:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 482, ptr noundef @__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE) #6
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 14
  %35 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !15
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %38, label %181

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %39 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 14
  %40 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !15
  store i64 %41, ptr %7, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !29
  %45 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 14
  %46 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %45, i32 0, i32 2
  %47 = load i64, ptr %46, align 8, !tbaa !30
  %48 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %44, i64 noundef %47)
  %49 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %48, i64 noundef 2)
  store i64 %49, ptr %8, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %50, i32 0, i32 5
  %52 = load i64, ptr %51, align 8, !tbaa !31
  %53 = load i64, ptr %7, align 8, !tbaa !28
  %54 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %52, i64 noundef %53)
  store i64 %54, ptr %9, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %55 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 14
  %56 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !32
  %58 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %57, i64 noundef 2)
  store i64 %58, ptr %10, align 8, !tbaa !28
  %59 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 17
  %60 = load i64, ptr %8, align 8, !tbaa !28
  %61 = load i64, ptr %9, align 8, !tbaa !28
  %62 = mul i64 %60, %61
  %63 = load i64, ptr %7, align 8, !tbaa !28
  %64 = mul i64 %62, %63
  %65 = mul i64 %64, 2
  call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %65, i1 noundef zeroext true, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %66 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 17
  %67 = getelementptr inbounds %"struct.Simd::Array.0", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !33
  store ptr %68, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !28
  br label %69

69:                                               ; preds = %176, %38
  %70 = load i64, ptr %12, align 8, !tbaa !28
  %71 = load i64, ptr %8, align 8, !tbaa !28
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %180

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %75 = load i64, ptr %8, align 8, !tbaa !28
  %76 = load i64, ptr %12, align 8, !tbaa !28
  %77 = load i64, ptr %10, align 8, !tbaa !28
  %78 = add i64 %76, %77
  %79 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %75, i64 noundef %78)
  store i64 %79, ptr %14, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !28
  br label %80

80:                                               ; preds = %172, %74
  %81 = load i64, ptr %15, align 8, !tbaa !28
  %82 = load i64, ptr %9, align 8, !tbaa !28
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %175

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %86 = load i64, ptr %12, align 8, !tbaa !28
  store i64 %86, ptr %16, align 8, !tbaa !28
  br label %87

87:                                               ; preds = %168, %85
  %88 = load i64, ptr %16, align 8, !tbaa !28
  %89 = load i64, ptr %14, align 8, !tbaa !28
  %90 = icmp ult i64 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %171

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load i64, ptr %16, align 8, !tbaa !28
  %95 = mul i64 %94, 2
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %96, i32 0, i32 5
  %98 = load i64, ptr %97, align 8, !tbaa !31
  %99 = mul i64 %95, %98
  %100 = getelementptr inbounds float, ptr %93, i64 %99
  %101 = load i64, ptr %15, align 8, !tbaa !28
  %102 = load i64, ptr %7, align 8, !tbaa !28
  %103 = mul i64 %101, %102
  %104 = getelementptr inbounds float, ptr %100, i64 %103
  store ptr %104, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !28
  br label %105

105:                                              ; preds = %164, %92
  %106 = load i64, ptr %18, align 8, !tbaa !28
  %107 = load i64, ptr %7, align 8, !tbaa !28
  %108 = icmp ult i64 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %167

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !28
  br label %111

111:                                              ; preds = %150, %110
  %112 = load i64, ptr %19, align 8, !tbaa !28
  %113 = icmp ult i64 %112, 2
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %153

115:                                              ; preds = %111
  %116 = load i64, ptr %15, align 8, !tbaa !28
  %117 = load i64, ptr %7, align 8, !tbaa !28
  %118 = mul i64 %116, %117
  %119 = load i64, ptr %18, align 8, !tbaa !28
  %120 = add i64 %118, %119
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %121, i32 0, i32 5
  %123 = load i64, ptr %122, align 8, !tbaa !31
  %124 = icmp ult i64 %120, %123
  br i1 %124, label %125, label %146

125:                                              ; preds = %115
  %126 = load i64, ptr %16, align 8, !tbaa !28
  %127 = mul i64 %126, 2
  %128 = load i64, ptr %19, align 8, !tbaa !28
  %129 = add i64 %127, %128
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !29
  %133 = icmp ult i64 %129, %132
  br i1 %133, label %134, label %146

134:                                              ; preds = %125
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = load i64, ptr %19, align 8, !tbaa !28
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %137, i32 0, i32 5
  %139 = load i64, ptr %138, align 8, !tbaa !31
  %140 = mul i64 %136, %139
  %141 = getelementptr inbounds float, ptr %135, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !34
  %143 = call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %142)
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds i16, ptr %144, i32 1
  store ptr %145, ptr %11, align 8, !tbaa !5
  store i16 %143, ptr %144, align 2, !tbaa !36
  br label %149

146:                                              ; preds = %125, %115
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = getelementptr inbounds i16, ptr %147, i32 1
  store ptr %148, ptr %11, align 8, !tbaa !5
  store i16 0, ptr %147, align 2, !tbaa !36
  br label %149

149:                                              ; preds = %146, %134
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %19, align 8, !tbaa !28
  %152 = add i64 %151, 1
  store i64 %152, ptr %19, align 8, !tbaa !28
  br label %111, !llvm.loop !38

153:                                              ; preds = %114
  %154 = load i64, ptr %16, align 8, !tbaa !28
  %155 = mul i64 %154, 2
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %156, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !29
  %159 = icmp ult i64 %155, %158
  br i1 %159, label %160, label %163

160:                                              ; preds = %153
  %161 = load ptr, ptr %17, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i32 1
  store ptr %162, ptr %17, align 8, !tbaa !5
  br label %163

163:                                              ; preds = %160, %153
  br label %164

164:                                              ; preds = %163
  %165 = load i64, ptr %18, align 8, !tbaa !28
  %166 = add i64 %165, 1
  store i64 %166, ptr %18, align 8, !tbaa !28
  br label %105, !llvm.loop !40

167:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %168

168:                                              ; preds = %167
  %169 = load i64, ptr %16, align 8, !tbaa !28
  %170 = add i64 %169, 1
  store i64 %170, ptr %16, align 8, !tbaa !28
  br label %87, !llvm.loop !41

171:                                              ; preds = %91
  br label %172

172:                                              ; preds = %171
  %173 = load i64, ptr %15, align 8, !tbaa !28
  %174 = add i64 %173, 1
  store i64 %174, ptr %15, align 8, !tbaa !28
  br label %80, !llvm.loop !42

175:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %176

176:                                              ; preds = %175
  %177 = load i64, ptr %10, align 8, !tbaa !28
  %178 = load i64, ptr %12, align 8, !tbaa !28
  %179 = add i64 %178, %177
  store i64 %179, ptr %12, align 8, !tbaa !28
  br label %69, !llvm.loop !43

180:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %205

181:                                              ; preds = %33
  %182 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 17
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %183, i32 0, i32 10
  %185 = load i64, ptr %184, align 8, !tbaa !44
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %186, i32 0, i32 11
  %188 = load i64, ptr %187, align 8, !tbaa !45
  %189 = mul i64 %185, %188
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %190, i32 0, i32 0
  %192 = load i64, ptr %191, align 8, !tbaa !29
  %193 = mul i64 %189, %192
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %194, i32 0, i32 5
  %196 = load i64, ptr %195, align 8, !tbaa !31
  %197 = mul i64 %193, %196
  call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %182, i64 noundef %197, i1 noundef zeroext true, i64 noundef 8)
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 17
  %200 = getelementptr inbounds %"struct.Simd::Array.0", ptr %199, i32 0, i32 1
  %201 = load i64, ptr %200, align 8, !tbaa !46
  %202 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %20, i32 0, i32 17
  %203 = getelementptr inbounds %"struct.Simd::Array.0", ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !33
  call void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef %198, i64 noundef %201, ptr noundef %204)
  br label %205

205:                                              ; preds = %181, %180
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd5Is1x1ERK25SimdConvolutionParameters(ptr noundef nonnull align 8 dereferenceable(160)) #1

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

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

; 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

declare void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef, i64 noundef, ptr noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 144}
!10 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !13, 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, !14, i64 152}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!13 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!14 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!15 = !{!16, !11, i64 712}
!16 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !17, i64 0, !19, i64 8, !21, i64 576, !23, i64 608, !23, i64 609, !23, i64 610, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !7, i64 648, !11, i64 664, !11, i64 672, !7, i64 680, !24, i64 712, !25, i64 864, !26, i64 880, !26, i64 896, !27, i64 912, !7, i64 928, !7, i64 976}
!17 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !18, i64 0}
!18 = !{!"_ZTSN4Simd9DeletableE"}
!19 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !11, i64 552, !20, i64 560}
!20 = !{!"_ZTS8SimdBool", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !11, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16b8AlgParamE", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !7, i64 112, !7, i64 136}
!25 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !11, i64 8}
!26 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !11, i64 8}
!27 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!28 = !{!11, !11, i64 0}
!29 = !{!10, !11, i64 0}
!30 = !{!16, !11, i64 728}
!31 = !{!10, !11, i64 32}
!32 = !{!16, !11, i64 720}
!33 = !{!16, !6, i64 896}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !7, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"short", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !39}
!43 = distinct !{!43, !39}
!44 = !{!10, !11, i64 64}
!45 = !{!10, !11, i64 72}
!46 = !{!16, !11, i64 904}


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

@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE = external hidden unnamed_addr constant [94 x i8], align 1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(180) %2) local_unnamed_addr #2 align 2 {
  %4 = getelementptr inbounds i8, ptr %2, i64 144
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = icmp eq i64 %5, 1
  br i1 %6, label %7, label %.critedge

7:                                                ; preds = %3
  %8 = tail call noundef zeroext i1 @_ZN4Simd5Is1x1ERK25SimdConvolutionParameters(ptr noundef nonnull align 8 dereferenceable(160) %2)
  br i1 %8, label %9, label %.critedge

.critedge:                                        ; preds = %3, %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 482, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b15SetOutputWeightEPKfRKNS_9ConvParamE) #5
  unreachable

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 712
  %11 = load i64, ptr %10, align 8, !tbaa !13
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %66, label %12

12:                                               ; preds = %9
  %13 = load i64, ptr %2, align 8, !tbaa !27
  %14 = getelementptr inbounds i8, ptr %0, i64 728
  %15 = load i64, ptr %14, align 8, !tbaa !28
  %16 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %13, i64 noundef %15)
  %17 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %16, i64 noundef 2)
  %18 = getelementptr inbounds i8, ptr %2, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !29
  %20 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %19, i64 noundef %11)
  %21 = getelementptr inbounds i8, ptr %0, i64 720
  %22 = load i64, ptr %21, align 8, !tbaa !30
  %23 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %22, i64 noundef 2)
  %24 = getelementptr inbounds i8, ptr %0, i64 896
  %25 = shl i64 %11, 1
  %26 = mul i64 %25, %17
  %27 = mul i64 %26, %20
  tail call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %27, i1 noundef zeroext true, i64 noundef 8)
  %.not87 = icmp eq i64 %17, 0
  br i1 %.not87, label %.loopexit63, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %.not88 = icmp eq i64 %20, 0
  br i1 %.not88, label %.loopexit, label %.preheader62.lr.ph.us.preheader

.preheader62.lr.ph.us.preheader:                  ; preds = %.lr.ph
  %28 = load ptr, ptr %24, align 8, !tbaa !31
  br label %.preheader62.lr.ph.us

.preheader62.lr.ph.us:                            ; preds = %.preheader62.lr.ph.us.preheader, %..loopexit_crit_edge.us
  %.05682.us = phi ptr [ %.us-phi80.us, %..loopexit_crit_edge.us ], [ %28, %.preheader62.lr.ph.us.preheader ]
  %.05881.us = phi i64 [ %29, %..loopexit_crit_edge.us ], [ 0, %.preheader62.lr.ph.us.preheader ]
  %29 = add i64 %.05881.us, %23
  %30 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %17, i64 noundef %29)
  %31 = icmp ult i64 %.05881.us, %30
  br i1 %31, label %.preheader62.us.us, label %..loopexit_crit_edge.us

..loopexit_crit_edge.us:                          ; preds = %._crit_edge.us.us, %.preheader62.lr.ph.us
  %.us-phi80.us = phi ptr [ %.05682.us, %.preheader62.lr.ph.us ], [ %.us-phi.us.us, %._crit_edge.us.us ]
  %32 = icmp ult i64 %29, %17
  br i1 %32, label %.preheader62.lr.ph.us, label %.loopexit63, !llvm.loop !32

.preheader62.us.us:                               ; preds = %.preheader62.lr.ph.us, %._crit_edge.us.us
  %.05572.us.us = phi i64 [ %62, %._crit_edge.us.us ], [ 0, %.preheader62.lr.ph.us ]
  %.15771.us.us = phi ptr [ %.us-phi.us.us, %._crit_edge.us.us ], [ %.05682.us, %.preheader62.lr.ph.us ]
  %33 = mul i64 %.05572.us.us, %11
  %invariant.gep.us.us = getelementptr float, ptr %1, i64 %33
  br label %34

34:                                               ; preds = %39, %.preheader62.us.us
  %.05470.us.us = phi i64 [ %.05881.us, %.preheader62.us.us ], [ %40, %39 ]
  %.269.us.us = phi ptr [ %.15771.us.us, %.preheader62.us.us ], [ %.us-phi.us.us, %39 ]
  %35 = shl i64 %.05470.us.us, 1
  %36 = load i64, ptr %18, align 8, !tbaa !29
  %37 = mul i64 %36, %35
  %gep.us.us = getelementptr float, ptr %invariant.gep.us.us, i64 %37
  %38 = or disjoint i64 %35, 1
  br label %.preheader.us.us

39:                                               ; preds = %.split.us74.us
  %40 = add nuw i64 %.05470.us.us, 1
  %41 = icmp ult i64 %40, %30
  br i1 %41, label %34, label %._crit_edge.us.us, !llvm.loop !34

42:                                               ; preds = %.preheader.us.us
  %43 = load i64, ptr %2, align 8, !tbaa !27
  %44 = icmp ult i64 %35, %43
  br i1 %44, label %45, label %.preheader.split.us79.us.1

45:                                               ; preds = %42
  %46 = load float, ptr %.05367.us.us, align 4, !tbaa !35
  %47 = tail call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %46)
  %.pre = load i64, ptr %18, align 8, !tbaa !29
  br label %.preheader.split.us79.us.1

.preheader.split.us79.us.1:                       ; preds = %45, %42
  %48 = phi i64 [ %.pre, %45 ], [ %57, %42 ]
  %storemerge.us.us = phi i16 [ %47, %45 ], [ 0, %42 ]
  %.5.us78.us = getelementptr inbounds i8, ptr %.366.us.us, i64 2
  store i16 %storemerge.us.us, ptr %.366.us.us, align 2, !tbaa !37
  %49 = icmp ult i64 %56, %48
  %50 = load i64, ptr %2, align 8
  %51 = icmp ult i64 %38, %50
  %or.cond = select i1 %49, i1 %51, i1 false
  br i1 %or.cond, label %52, label %.split.us74.us.loopexit

52:                                               ; preds = %.preheader.split.us79.us.1
  %53 = getelementptr inbounds float, ptr %.05367.us.us, i64 %48
  %54 = load float, ptr %53, align 4, !tbaa !35
  %55 = tail call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %54)
  br label %.split.us74.us.loopexit

.split.us74.us.loopexit:                          ; preds = %52, %.preheader.split.us79.us.1
  %storemerge.us.us.1 = phi i16 [ %55, %52 ], [ 0, %.preheader.split.us79.us.1 ]
  store i16 %storemerge.us.us.1, ptr %.5.us78.us, align 2, !tbaa !37
  br label %.split.us74.us

.preheader.us.us:                                 ; preds = %.split.us74.us, %34
  %.05268.us.us = phi i64 [ 0, %34 ], [ %61, %.split.us74.us ]
  %.05367.us.us = phi ptr [ %gep.us.us, %34 ], [ %spec.select.us.us, %.split.us74.us ]
  %.366.us.us = phi ptr [ %.269.us.us, %34 ], [ %.us-phi.us.us, %.split.us74.us ]
  %56 = add i64 %.05268.us.us, %33
  %57 = load i64, ptr %18, align 8, !tbaa !29
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %42, label %.preheader.split.us.us.us.preheader

.preheader.split.us.us.us.preheader:              ; preds = %.preheader.us.us
  store i32 0, ptr %.366.us.us, align 2
  br label %.split.us74.us

.split.us74.us:                                   ; preds = %.preheader.split.us.us.us.preheader, %.split.us74.us.loopexit
  %.us-phi.us.us = getelementptr i8, ptr %.366.us.us, i64 4
  %59 = load i64, ptr %2, align 8, !tbaa !27
  %60 = icmp ult i64 %35, %59
  %spec.select.idx.us.us = select i1 %60, i64 4, i64 0
  %spec.select.us.us = getelementptr inbounds i8, ptr %.05367.us.us, i64 %spec.select.idx.us.us
  %61 = add nuw i64 %.05268.us.us, 1
  %exitcond.not = icmp eq i64 %61, %11
  br i1 %exitcond.not, label %39, label %.preheader.us.us, !llvm.loop !39

._crit_edge.us.us:                                ; preds = %39
  %62 = add nuw i64 %.05572.us.us, 1
  %exitcond92.not = icmp eq i64 %62, %20
  br i1 %exitcond92.not, label %..loopexit_crit_edge.us, label %.preheader62.us.us, !llvm.loop !40

.loopexit:                                        ; preds = %.lr.ph, %.loopexit
  %.05881 = phi i64 [ %63, %.loopexit ], [ 0, %.lr.ph ]
  %63 = add i64 %.05881, %23
  %64 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %17, i64 noundef %63)
  %65 = icmp ult i64 %63, %17
  br i1 %65, label %.loopexit, label %.loopexit63, !llvm.loop !32

66:                                               ; preds = %9
  %67 = getelementptr inbounds i8, ptr %0, i64 896
  %68 = getelementptr inbounds i8, ptr %2, i64 64
  %69 = load i64, ptr %68, align 8, !tbaa !41
  %70 = getelementptr inbounds i8, ptr %2, i64 72
  %71 = load i64, ptr %70, align 8, !tbaa !42
  %72 = mul i64 %71, %69
  %73 = load i64, ptr %2, align 8, !tbaa !27
  %74 = mul i64 %72, %73
  %75 = getelementptr inbounds i8, ptr %2, i64 32
  %76 = load i64, ptr %75, align 8, !tbaa !29
  %77 = mul i64 %74, %76
  tail call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %77, i1 noundef zeroext true, i64 noundef 8)
  %78 = getelementptr inbounds i8, ptr %0, i64 904
  %79 = load i64, ptr %78, align 8, !tbaa !43
  %80 = load ptr, ptr %67, align 8, !tbaa !31
  tail call void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef %1, i64 noundef %79, ptr noundef %80)
  br label %.loopexit63

.loopexit63:                                      ; preds = %..loopexit_crit_edge.us, %.loopexit, %12, %66
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd5Is1x1ERK25SimdConvolutionParameters(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #0

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

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

; 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 #0 align 2

declare void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 144}
!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 = !{!14, !7, i64 712}
!14 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !15, i64 0, !17, i64 8, !19, i64 576, !22, i64 608, !22, i64 609, !22, i64 610, !21, i64 616, !21, i64 624, !21, i64 632, !21, i64 640, !8, i64 648, !7, i64 664, !7, i64 672, !8, i64 680, !23, i64 712, !24, i64 864, !25, i64 880, !25, i64 896, !26, i64 912, !8, i64 928, !8, i64 976}
!15 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !16, i64 0}
!16 = !{!"_ZTSN4Simd9DeletableE"}
!17 = !{!"_ZTSN4Simd13MergConvParamE", !8, i64 0, !7, i64 552, !18, i64 560}
!18 = !{!"_ZTS8SimdBool", !8, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !7, i64 8, !8, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"bool", !8, i64 0}
!23 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16b8AlgParamE", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !8, i64 48, !8, i64 72, !8, i64 96, !8, i64 112, !8, i64 136}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !21, i64 0, !7, i64 8}
!25 = !{!"_ZTSN4Simd5ArrayItEE", !21, i64 0, !7, i64 8}
!26 = !{!"_ZTSN4Simd5ArrayIfEE", !21, i64 0, !7, i64 8}
!27 = !{!6, !7, i64 0}
!28 = !{!14, !7, i64 728}
!29 = !{!6, !7, i64 32}
!30 = !{!14, !7, i64 720}
!31 = !{!14, !21, i64 896}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = !{!36, !36, i64 0}
!36 = !{!"float", !8, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"short", !8, i64 0}
!39 = distinct !{!39, !33}
!40 = distinct !{!40, !33}
!41 = !{!6, !7, i64 64}
!42 = !{!6, !7, i64 72}
!43 = !{!14, !7, i64 904}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass