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

%"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] }>
%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.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 }

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) #1

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetMergedConvolution16bDc7SetSizeEmm(ptr noundef nonnull align 8 dereferenceable(1024) %0, i64 noundef %1, i64 noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %22 = call noundef i64 @_ZN4Simd4Base10AlgCacheL1Ev()
  store i64 %22, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = call noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev()
  store i64 %23, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %24 = call noundef i64 @_ZN4Simd4Base10AlgCacheL3Ev()
  store i64 %24, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %25 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 1
  store ptr %25, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %27, i64 0, i64 0
  store ptr %28, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %30, i64 0, i64 1
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %32 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 14
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load i64, ptr %5, align 8, !tbaa !9
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %34, i32 0, i32 0
  store i64 %33, ptr %35, align 8, !tbaa !11
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %37, i32 0, i32 2
  store i64 %36, ptr %38, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %92, %3
  %40 = load i64, ptr %15, align 8, !tbaa !9
  %41 = icmp ult i64 %40, 2
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %95

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %15, align 8, !tbaa !9
  %47 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %45, i64 0, i64 %46
  store ptr %47, ptr %16, align 8, !tbaa !5
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %48, i32 0, i32 20
  %50 = load i64, ptr %49, align 8, !tbaa !14
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %52, label %72

52:                                               ; preds = %43
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !19
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %56, i32 0, i32 2
  %58 = load i64, ptr %57, align 8, !tbaa !13
  %59 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %55, i64 noundef %58)
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %60, i32 0, i32 5
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = mul i64 %65, 2
  %67 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %62, i64 noundef %66)
  %68 = mul i64 %59, %67
  %69 = mul i64 %68, 2
  %70 = load i64, ptr %14, align 8, !tbaa !9
  %71 = add i64 %70, %69
  store i64 %71, ptr %14, align 8, !tbaa !9
  br label %91

72:                                               ; preds = %43
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %73, i32 0, i32 10
  %75 = load i64, ptr %74, align 8, !tbaa !21
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %76, i32 0, i32 11
  %78 = load i64, ptr %77, align 8, !tbaa !22
  %79 = mul i64 %75, %78
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %80, i32 0, i32 0
  %82 = load i64, ptr %81, align 8, !tbaa !19
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %83, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %82, i64 noundef %85)
  %87 = mul i64 %79, %86
  %88 = mul i64 %87, 4
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = add i64 %89, %88
  store i64 %90, ptr %14, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %72, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = add i64 %93, 1
  store i64 %94, ptr %15, align 8, !tbaa !9
  br label %39, !llvm.loop !23

95:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %96 = load i64, ptr %14, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = udiv i64 %97, 2
  %99 = udiv i64 %96, %98
  %100 = add i64 %99, 1
  store i64 %100, ptr %17, align 8, !tbaa !9
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %101, i32 0, i32 5
  %103 = load i64, ptr %102, align 8, !tbaa !20
  %104 = load i64, ptr %17, align 8, !tbaa !9
  %105 = udiv i64 %103, %104
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %106, i32 0, i32 0
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = mul i64 2, %108
  %110 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %105, i64 noundef %109)
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %111, i32 0, i32 2
  %113 = load i64, ptr %112, align 8, !tbaa !13
  %114 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %110, i64 noundef %113)
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %115, i32 0, i32 1
  store i64 %114, ptr %116, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %117, i32 0, i32 6
  %119 = load i64, ptr %118, align 8, !tbaa !26
  store i64 %119, ptr %18, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %204, %95
  %121 = load i64, ptr %18, align 8, !tbaa !9
  %122 = icmp uge i64 %121, 1
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 5, ptr %19, align 4
  br label %207

124:                                              ; preds = %120
  %125 = load i64, ptr %18, align 8, !tbaa !9
  %126 = call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef 1, i64 noundef %125)
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %127, i32 0, i32 3
  %129 = getelementptr inbounds [3 x i64], ptr %128, i64 0, i64 2
  store i64 %126, ptr %129, align 8, !tbaa !9
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %130, i32 0, i32 3
  %132 = getelementptr inbounds [3 x i64], ptr %131, i64 0, i64 2
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %134, i32 0, i32 4
  %136 = getelementptr inbounds [3 x i64], ptr %135, i64 0, i64 2
  store i64 %133, ptr %136, align 8, !tbaa !9
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %137, i32 0, i32 3
  %139 = getelementptr inbounds [3 x i64], ptr %138, i64 0, i64 2
  %140 = load i64, ptr %139, align 8, !tbaa !9
  %141 = call noundef i64 @_ZN4Simd6Pow2HiEm(i64 noundef %140)
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %142, i32 0, i32 5
  %144 = getelementptr inbounds [3 x i64], ptr %143, i64 0, i64 2
  store i64 %141, ptr %144, align 8, !tbaa !9
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %145, i32 0, i32 3
  %147 = getelementptr inbounds [3 x i64], ptr %146, i64 0, i64 2
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %149, i32 0, i32 14
  %151 = load i64, ptr %150, align 8, !tbaa !27
  %152 = mul i64 %148, %151
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %153, i32 0, i32 3
  %155 = getelementptr inbounds [3 x i64], ptr %154, i64 0, i64 1
  store i64 %152, ptr %155, align 8, !tbaa !9
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %156, i32 0, i32 4
  %158 = getelementptr inbounds [3 x i64], ptr %157, i64 0, i64 2
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = sub i64 %159, 1
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %161, i32 0, i32 14
  %163 = load i64, ptr %162, align 8, !tbaa !27
  %164 = mul i64 %160, %163
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %165, i32 0, i32 10
  %167 = load i64, ptr %166, align 8, !tbaa !21
  %168 = add i64 %164, %167
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %169, i32 0, i32 16
  %171 = load i64, ptr %170, align 8, !tbaa !28
  %172 = sub i64 %168, %171
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %173, i32 0, i32 1
  %175 = load i64, ptr %174, align 8, !tbaa !29
  %176 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %172, i64 noundef %175)
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %177, i32 0, i32 4
  %179 = getelementptr inbounds [3 x i64], ptr %178, i64 0, i64 1
  store i64 %176, ptr %179, align 8, !tbaa !9
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %180, i32 0, i32 5
  %182 = getelementptr inbounds [3 x i64], ptr %181, i64 0, i64 2
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %185, i64 0, i64 1
  %187 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %186, i32 0, i32 2
  %188 = load i64, ptr %187, align 8, !tbaa !30
  %189 = mul i64 %183, %188
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %190, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !25
  %193 = mul i64 %189, %192
  %194 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %195 = getelementptr inbounds [4 x i64], ptr %194, i64 0, i64 2
  store i64 %193, ptr %195, align 8, !tbaa !9
  %196 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %197 = getelementptr inbounds [4 x i64], ptr %196, i64 0, i64 2
  %198 = load i64, ptr %197, align 8, !tbaa !9
  %199 = mul i64 %198, 2
  %200 = load i64, ptr %8, align 8, !tbaa !9
  %201 = icmp ule i64 %199, %200
  br i1 %201, label %202, label %203

202:                                              ; preds = %124
  store i32 5, ptr %19, align 4
  br label %207

203:                                              ; preds = %124
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %18, align 8, !tbaa !9
  %206 = add i64 %205, -1
  store i64 %206, ptr %18, align 8, !tbaa !9
  br label %120, !llvm.loop !31

207:                                              ; preds = %202, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %209, i32 0, i32 5
  %211 = getelementptr inbounds [3 x i64], ptr %210, i64 0, i64 0
  store i64 0, ptr %211, align 8, !tbaa !9
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %212, i32 0, i32 5
  %214 = getelementptr inbounds [3 x i64], ptr %213, i64 0, i64 1
  store i64 0, ptr %214, align 8, !tbaa !9
  %215 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %216 = getelementptr inbounds [4 x i64], ptr %215, i64 0, i64 0
  store i64 0, ptr %216, align 8, !tbaa !9
  %217 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %218 = getelementptr inbounds [4 x i64], ptr %217, i64 0, i64 1
  store i64 0, ptr %218, align 8, !tbaa !9
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %219, i32 0, i32 2
  %221 = load i64, ptr %220, align 8, !tbaa !13
  %222 = icmp eq i64 %221, 32
  br i1 %222, label %223, label %298

223:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %224, i32 0, i32 5
  %226 = load i64, ptr %225, align 8, !tbaa !20
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %227, i32 0, i32 0
  %229 = load i64, ptr %228, align 8, !tbaa !11
  %230 = call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %226, i64 noundef %229)
  br i1 %230, label %231, label %260

231:                                              ; preds = %223
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %232, i32 0, i32 6
  %234 = load i64, ptr %233, align 8, !tbaa !26
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %235, i32 0, i32 7
  %237 = load i64, ptr %236, align 8, !tbaa !32
  %238 = mul i64 %234, %237
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %239, i32 0, i32 0
  %241 = load i64, ptr %240, align 8, !tbaa !11
  %242 = call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %238, i64 noundef %241)
  br i1 %242, label %243, label %260

243:                                              ; preds = %231
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %244, i32 0, i32 6
  %246 = load i64, ptr %245, align 8, !tbaa !26
  %247 = load ptr, ptr %13, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %247, i32 0, i32 3
  %249 = getelementptr inbounds [3 x i64], ptr %248, i64 0, i64 2
  %250 = load i64, ptr %249, align 8, !tbaa !9
  %251 = urem i64 %246, %250
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %252, i32 0, i32 7
  %254 = load i64, ptr %253, align 8, !tbaa !32
  %255 = mul i64 %251, %254
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %256, i32 0, i32 0
  %258 = load i64, ptr %257, align 8, !tbaa !11
  %259 = call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %255, i64 noundef %258)
  br label %260

260:                                              ; preds = %243, %231, %223
  %261 = phi i1 [ false, %231 ], [ false, %223 ], [ %259, %243 ]
  %262 = zext i1 %261 to i8
  store i8 %262, ptr %20, align 1, !tbaa !33
  %263 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 5
  %264 = load i8, ptr %263, align 2, !tbaa !35, !range !46, !noundef !47
  %265 = trunc i8 %264 to i1
  br i1 %265, label %269, label %266

266:                                              ; preds = %260
  %267 = load i8, ptr %20, align 1, !tbaa !33, !range !46, !noundef !47
  %268 = trunc i8 %267 to i1
  br i1 %268, label %293, label %269

269:                                              ; preds = %266, %260
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %270, i32 0, i32 5
  %272 = load i64, ptr %271, align 8, !tbaa !20
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %273, i32 0, i32 0
  %275 = load i64, ptr %274, align 8, !tbaa !11
  %276 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %272, i64 noundef %275)
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %277, i32 0, i32 6
  %279 = load i64, ptr %278, align 8, !tbaa !26
  %280 = load ptr, ptr %12, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %280, i32 0, i32 7
  %282 = load i64, ptr %281, align 8, !tbaa !32
  %283 = mul i64 %279, %282
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %284, i32 0, i32 0
  %286 = load i64, ptr %285, align 8, !tbaa !11
  %287 = add i64 %283, %286
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %288, i32 0, i32 0
  %290 = load i64, ptr %289, align 8, !tbaa !11
  %291 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %287, i64 noundef %290)
  %292 = mul i64 %276, %291
  br label %294

293:                                              ; preds = %266
  br label %294

294:                                              ; preds = %293, %269
  %295 = phi i64 [ %292, %269 ], [ 0, %293 ]
  %296 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %297 = getelementptr inbounds [4 x i64], ptr %296, i64 0, i64 3
  store i64 %295, ptr %297, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  br label %313

298:                                              ; preds = %208
  %299 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 5
  %300 = load i8, ptr %299, align 2, !tbaa !35, !range !46, !noundef !47
  %301 = trunc i8 %300 to i1
  br i1 %301, label %302, label %308

302:                                              ; preds = %298
  %303 = load i64, ptr %17, align 8, !tbaa !9
  %304 = icmp ugt i64 %303, 1
  br i1 %304, label %305, label %308

305:                                              ; preds = %302
  %306 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 12
  %307 = load i64, ptr %306, align 8, !tbaa !48
  br label %309

308:                                              ; preds = %302, %298
  br label %309

309:                                              ; preds = %308, %305
  %310 = phi i64 [ %307, %305 ], [ 0, %308 ]
  %311 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %21, i32 0, i32 13
  %312 = getelementptr inbounds [4 x i64], ptr %311, i64 0, i64 3
  store i64 %310, ptr %312, align 8, !tbaa !9
  br label %313

313:                                              ; preds = %309, %294
  %314 = load ptr, ptr %11, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %314, i32 0, i32 21
  %316 = load i32, ptr %315, align 8, !tbaa !49
  %317 = icmp eq i32 %316, 4
  %318 = zext i1 %317 to i64
  %319 = select i1 %317, i32 1, i32 0
  %320 = sext i32 %319 to i64
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %321, i32 0, i32 6
  %323 = getelementptr inbounds [2 x i64], ptr %322, i64 0, i64 0
  store i64 %320, ptr %323, align 8, !tbaa !9
  %324 = load ptr, ptr %12, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %324, i32 0, i32 21
  %326 = load i32, ptr %325, align 8, !tbaa !49
  %327 = icmp eq i32 %326, 4
  %328 = zext i1 %327 to i64
  %329 = select i1 %327, i32 1, i32 0
  %330 = sext i32 %329 to i64
  %331 = load ptr, ptr %13, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %331, i32 0, i32 6
  %333 = getelementptr inbounds [2 x i64], ptr %332, i64 0, i64 1
  store i64 %330, ptr %333, align 8, !tbaa !9
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %334, i32 0, i32 10
  %336 = load i64, ptr %335, align 8, !tbaa !21
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %337, i32 0, i32 11
  %339 = load i64, ptr %338, align 8, !tbaa !22
  %340 = mul i64 %336, %339
  %341 = load ptr, ptr %13, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %341, i32 0, i32 7
  %343 = getelementptr inbounds [3 x i64], ptr %342, i64 0, i64 0
  store i64 %340, ptr %343, align 8, !tbaa !9
  %344 = load ptr, ptr %12, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %344, i32 0, i32 5
  %346 = load i64, ptr %345, align 8, !tbaa !20
  %347 = load ptr, ptr %13, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %347, i32 0, i32 0
  %349 = load i64, ptr %348, align 8, !tbaa !11
  %350 = call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %346, i64 noundef %349)
  %351 = load ptr, ptr %13, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %351, i32 0, i32 7
  %353 = getelementptr inbounds [3 x i64], ptr %352, i64 0, i64 1
  store i64 %350, ptr %353, align 8, !tbaa !9
  %354 = load ptr, ptr %11, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %354, i32 0, i32 8
  store i32 7, ptr %355, align 8, !tbaa !50
  %356 = load ptr, ptr %12, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %356, i32 0, i32 3
  store i32 7, ptr %357, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { 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 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16b8AlgParamE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !7, i64 112, !7, i64 136}
!13 = !{!12, !10, i64 16}
!14 = !{!15, !10, i64 144}
!15 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !16, i64 24, !17, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !16, i64 56, !17, 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, !18, i64 152}
!16 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!17 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!18 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!19 = !{!15, !10, i64 0}
!20 = !{!15, !10, i64 32}
!21 = !{!15, !10, i64 64}
!22 = !{!15, !10, i64 72}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !10, i64 8}
!26 = !{!15, !10, i64 40}
!27 = !{!15, !10, i64 96}
!28 = !{!15, !10, i64 112}
!29 = !{!15, !10, i64 8}
!30 = !{!15, !10, i64 16}
!31 = distinct !{!31, !24}
!32 = !{!15, !10, i64 48}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{!36, !34, i64 610}
!36 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !37, i64 0, !39, i64 8, !41, i64 576, !34, i64 608, !34, i64 609, !34, i64 610, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !7, i64 648, !10, i64 664, !10, i64 672, !7, i64 680, !12, i64 712, !43, i64 864, !44, i64 880, !44, i64 896, !45, i64 912, !7, i64 928, !7, i64 976}
!37 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !38, i64 0}
!38 = !{!"_ZTSN4Simd9DeletableE"}
!39 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !10, i64 552, !40, i64 560}
!40 = !{!"_ZTS8SimdBool", !7, i64 0}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !42, i64 0, !10, i64 8, !7, i64 16}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!43 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!44 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!45 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!36, !10, i64 672}
!49 = !{!15, !18, i64 152}
!50 = !{!15, !16, i64 56}
!51 = !{!15, !16, i64 24}


; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4Base10AlgCacheL1Ev() local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev() local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4Base10AlgCacheL3Ev() local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd6Pow2HiEm(i64 noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetMergedConvolution16bDc7SetSizeEmm(ptr noundef nonnull align 8 dereferenceable(1024) %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = tail call noundef i64 @_ZN4Simd4Base10AlgCacheL1Ev()
  %5 = tail call noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev()
  %6 = tail call noundef i64 @_ZN4Simd4Base10AlgCacheL3Ev()
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 712
  store i64 %1, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 728
  store i64 %2, ptr %9, align 8, !tbaa !10
  %10 = getelementptr inbounds i8, ptr %0, i64 152
  %11 = load i64, ptr %10, align 8, !tbaa !11
  %12 = icmp eq i64 %11, 1
  br i1 %12, label %24, label %34

.lr.ph:                                           ; preds = %71
  %13 = getelementptr inbounds i8, ptr %0, i64 752
  %14 = getelementptr inbounds i8, ptr %0, i64 776
  %15 = getelementptr inbounds i8, ptr %0, i64 800
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  %17 = getelementptr inbounds i8, ptr %0, i64 744
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = getelementptr inbounds i8, ptr %0, i64 768
  %22 = getelementptr inbounds i8, ptr %0, i64 208
  %23 = getelementptr inbounds i8, ptr %0, i64 696
  br label %86

24:                                               ; preds = %3
  %25 = load i64, ptr %7, align 8, !tbaa !16
  %26 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %25, i64 noundef %2)
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load i64, ptr %27, align 8, !tbaa !17
  %29 = load i64, ptr %8, align 8, !tbaa !5
  %30 = shl i64 %29, 1
  %31 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %28, i64 noundef %30)
  %32 = shl i64 %26, 1
  %33 = mul i64 %32, %31
  br label %44

34:                                               ; preds = %3
  %35 = getelementptr inbounds i8, ptr %0, i64 72
  %36 = load i64, ptr %35, align 8, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %0, i64 80
  %38 = load i64, ptr %37, align 8, !tbaa !19
  %39 = load i64, ptr %7, align 8, !tbaa !16
  %40 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %39, i64 noundef %1)
  %41 = shl i64 %36, 2
  %42 = mul i64 %41, %38
  %43 = mul i64 %42, %40
  br label %44

44:                                               ; preds = %34, %24
  %.pn = phi i64 [ %33, %24 ], [ %43, %34 ]
  %45 = getelementptr inbounds i8, ptr %0, i64 192
  %46 = getelementptr inbounds i8, ptr %0, i64 336
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i64 %47, 1
  br i1 %48, label %60, label %49

49:                                               ; preds = %44
  %50 = getelementptr inbounds i8, ptr %0, i64 256
  %51 = load i64, ptr %50, align 8, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %0, i64 264
  %53 = load i64, ptr %52, align 8, !tbaa !19
  %54 = load i64, ptr %45, align 8, !tbaa !16
  %55 = load i64, ptr %8, align 8, !tbaa !5
  %56 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %54, i64 noundef %55)
  %57 = shl i64 %51, 2
  %58 = mul i64 %57, %53
  %59 = mul i64 %58, %56
  br label %71

60:                                               ; preds = %44
  %61 = load i64, ptr %45, align 8, !tbaa !16
  %62 = load i64, ptr %9, align 8, !tbaa !10
  %63 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %61, i64 noundef %62)
  %64 = getelementptr inbounds i8, ptr %0, i64 224
  %65 = load i64, ptr %64, align 8, !tbaa !17
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = shl i64 %66, 1
  %68 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %65, i64 noundef %67)
  %69 = shl i64 %63, 1
  %70 = mul i64 %69, %68
  br label %71

71:                                               ; preds = %60, %49
  %.pn.1 = phi i64 [ %70, %60 ], [ %59, %49 ]
  %.1.1 = add i64 %.pn.1, %.pn
  %72 = lshr i64 %6, 1
  %73 = udiv i64 %.1.1, %72
  %74 = add i64 %73, 1
  %75 = getelementptr inbounds i8, ptr %0, i64 40
  %76 = load i64, ptr %75, align 8, !tbaa !17
  %77 = udiv i64 %76, %74
  %78 = load i64, ptr %8, align 8, !tbaa !5
  %79 = shl i64 %78, 1
  %80 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %77, i64 noundef %79)
  %81 = load i64, ptr %9, align 8, !tbaa !10
  %82 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %80, i64 noundef %81)
  %83 = getelementptr inbounds i8, ptr %0, i64 720
  store i64 %82, ptr %83, align 8, !tbaa !20
  %84 = getelementptr inbounds i8, ptr %0, i64 48
  %85 = load i64, ptr %84, align 8, !tbaa !21
  %.not91 = icmp eq i64 %85, 0
  br i1 %.not91, label %._crit_edge, label %.lr.ph

86:                                               ; preds = %86, %.lr.ph
  %.08392 = phi i64 [ %85, %.lr.ph ], [ %107, %86 ]
  %87 = tail call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef 1, i64 noundef %.08392)
  store i64 %87, ptr %13, align 8, !tbaa !22
  store i64 %87, ptr %14, align 8, !tbaa !22
  %88 = tail call noundef i64 @_ZN4Simd6Pow2HiEm(i64 noundef %87)
  store i64 %88, ptr %15, align 8, !tbaa !22
  %89 = load i64, ptr %13, align 8, !tbaa !22
  %90 = load i64, ptr %16, align 8, !tbaa !23
  %91 = mul i64 %90, %89
  store i64 %91, ptr %17, align 8, !tbaa !22
  %92 = load i64, ptr %14, align 8, !tbaa !22
  %93 = add i64 %92, -1
  %94 = mul i64 %93, %90
  %95 = load i64, ptr %18, align 8, !tbaa !18
  %96 = add i64 %94, %95
  %97 = load i64, ptr %19, align 8, !tbaa !24
  %98 = sub i64 %96, %97
  %99 = load i64, ptr %20, align 8, !tbaa !25
  %100 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %98, i64 noundef %99)
  store i64 %100, ptr %21, align 8, !tbaa !22
  %101 = load i64, ptr %15, align 8, !tbaa !22
  %102 = load i64, ptr %22, align 8, !tbaa !26
  %103 = mul i64 %102, %101
  %104 = load i64, ptr %83, align 8, !tbaa !20
  %105 = mul i64 %103, %104
  store i64 %105, ptr %23, align 8, !tbaa !22
  %106 = shl i64 %105, 1
  %.not85 = icmp ule i64 %106, %5
  %107 = add i64 %.08392, -1
  %.not = icmp eq i64 %107, 0
  %or.cond94 = or i1 %.not85, %.not
  br i1 %or.cond94, label %._crit_edge, label %86, !llvm.loop !27

._crit_edge:                                      ; preds = %86, %71
  %108 = getelementptr inbounds i8, ptr %0, i64 784
  %109 = getelementptr inbounds i8, ptr %0, i64 680
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %109, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %108, i8 0, i64 16, i1 false)
  %110 = load i64, ptr %9, align 8, !tbaa !10
  %111 = icmp eq i64 %110, 32
  br i1 %111, label %112, label %149

112:                                              ; preds = %._crit_edge
  %113 = getelementptr inbounds i8, ptr %0, i64 224
  %114 = load i64, ptr %113, align 8, !tbaa !17
  %115 = load i64, ptr %8, align 8, !tbaa !5
  %116 = tail call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %114, i64 noundef %115)
  br i1 %116, label %117, label %.thread

117:                                              ; preds = %112
  %118 = getelementptr inbounds i8, ptr %0, i64 232
  %119 = load i64, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds i8, ptr %0, i64 240
  %121 = load i64, ptr %120, align 8, !tbaa !29
  %122 = mul i64 %121, %119
  %123 = load i64, ptr %8, align 8, !tbaa !5
  %124 = tail call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %122, i64 noundef %123)
  br i1 %124, label %125, label %.thread

125:                                              ; preds = %117
  %126 = load i64, ptr %118, align 8, !tbaa !21
  %127 = getelementptr inbounds i8, ptr %0, i64 752
  %128 = load i64, ptr %127, align 8, !tbaa !22
  %129 = urem i64 %126, %128
  %130 = load i64, ptr %120, align 8, !tbaa !29
  %131 = mul i64 %130, %129
  %132 = load i64, ptr %8, align 8, !tbaa !5
  %133 = tail call noundef zeroext i1 @_ZN4Simd7AlignedEmm(i64 noundef %131, i64 noundef %132)
  %134 = getelementptr inbounds i8, ptr %0, i64 610
  %135 = load i8, ptr %134, align 2, !tbaa !30, !range !43, !noundef !44
  %136 = trunc nuw i8 %135 to i1
  %.not86 = xor i1 %133, true
  %brmerge = or i1 %.not86, %136
  br i1 %brmerge, label %.thread, label %157

.thread:                                          ; preds = %112, %117, %125
  %137 = load i64, ptr %113, align 8, !tbaa !17
  %138 = load i64, ptr %8, align 8, !tbaa !5
  %139 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %137, i64 noundef %138)
  %140 = getelementptr inbounds i8, ptr %0, i64 232
  %141 = load i64, ptr %140, align 8, !tbaa !21
  %142 = getelementptr inbounds i8, ptr %0, i64 240
  %143 = load i64, ptr %142, align 8, !tbaa !29
  %144 = mul i64 %143, %141
  %145 = load i64, ptr %8, align 8, !tbaa !5
  %146 = add i64 %144, %145
  %147 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %146, i64 noundef %145)
  %148 = mul i64 %147, %139
  br label %157

149:                                              ; preds = %._crit_edge
  %150 = getelementptr inbounds i8, ptr %0, i64 610
  %151 = load i8, ptr %150, align 2, !tbaa !30, !range !43, !noundef !44
  %152 = trunc nuw i8 %151 to i1
  %153 = icmp ugt i64 %74, 1
  %or.cond = and i1 %153, %152
  %154 = getelementptr inbounds i8, ptr %0, i64 672
  %155 = load i64, ptr %154, align 8
  %156 = select i1 %or.cond, i64 %155, i64 0
  br label %157

157:                                              ; preds = %.thread, %125, %149
  %.sink = phi i64 [ %156, %149 ], [ %148, %.thread ], [ 0, %125 ]
  %158 = getelementptr inbounds i8, ptr %0, i64 704
  store i64 %.sink, ptr %158, align 8, !tbaa !22
  %159 = getelementptr inbounds i8, ptr %0, i64 160
  %160 = load <4 x i32>, ptr %159, align 8
  %161 = shufflevector <4 x i32> %160, <4 x i32> poison, <2 x i32> <i32 0, i32 poison>
  %162 = getelementptr inbounds i8, ptr %0, i64 808
  %163 = getelementptr inbounds i8, ptr %0, i64 344
  %164 = load i32, ptr %163, align 8, !tbaa !45
  %165 = insertelement <2 x i32> %161, i32 %164, i64 1
  %166 = icmp eq <2 x i32> %165, <i32 4, i32 4>
  %167 = zext <2 x i1> %166 to <2 x i64>
  store <2 x i64> %167, ptr %162, align 8, !tbaa !22
  %168 = getelementptr inbounds i8, ptr %0, i64 72
  %169 = load i64, ptr %168, align 8, !tbaa !18
  %170 = getelementptr inbounds i8, ptr %0, i64 80
  %171 = load i64, ptr %170, align 8, !tbaa !19
  %172 = mul i64 %171, %169
  %173 = getelementptr inbounds i8, ptr %0, i64 824
  store i64 %172, ptr %173, align 8, !tbaa !22
  %174 = getelementptr inbounds i8, ptr %0, i64 224
  %175 = load i64, ptr %174, align 8, !tbaa !17
  %176 = load i64, ptr %8, align 8, !tbaa !5
  %177 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %175, i64 noundef %176)
  %178 = getelementptr inbounds i8, ptr %0, i64 832
  store i64 %177, ptr %178, align 8, !tbaa !22
  %179 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 7, ptr %179, align 8, !tbaa !46
  %180 = getelementptr inbounds i8, ptr %0, i64 216
  store i32 7, ptr %180, align 8, !tbaa !47
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { 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 #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"_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}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 16}
!11 = !{!12, !7, i64 144}
!12 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !14, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !13, i64 56, !14, 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, !15, i64 152}
!13 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!16 = !{!12, !7, i64 0}
!17 = !{!12, !7, i64 32}
!18 = !{!12, !7, i64 64}
!19 = !{!12, !7, i64 72}
!20 = !{!6, !7, i64 8}
!21 = !{!12, !7, i64 40}
!22 = !{!7, !7, i64 0}
!23 = !{!12, !7, i64 96}
!24 = !{!12, !7, i64 112}
!25 = !{!12, !7, i64 8}
!26 = !{!12, !7, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !7, i64 48}
!30 = !{!31, !39, i64 610}
!31 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !32, i64 0, !34, i64 8, !36, i64 576, !39, i64 608, !39, i64 609, !39, i64 610, !38, i64 616, !38, i64 624, !38, i64 632, !38, i64 640, !8, i64 648, !7, i64 664, !7, i64 672, !8, i64 680, !6, i64 712, !40, i64 864, !41, i64 880, !41, i64 896, !42, i64 912, !8, i64 928, !8, i64 976}
!32 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !33, i64 0}
!33 = !{!"_ZTSN4Simd9DeletableE"}
!34 = !{!"_ZTSN4Simd13MergConvParamE", !8, i64 0, !7, i64 552, !35, i64 560}
!35 = !{!"_ZTS8SimdBool", !8, i64 0}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !37, i64 0, !7, i64 8, !8, i64 16}
!37 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !38, i64 0}
!38 = !{!"any pointer", !8, i64 0}
!39 = !{!"bool", !8, i64 0}
!40 = !{!"_ZTSN4Simd5ArrayIhEE", !38, i64 0, !7, i64 8}
!41 = !{!"_ZTSN4Simd5ArrayItEE", !38, i64 0, !7, i64 8}
!42 = !{!"_ZTSN4Simd5ArrayIfEE", !38, i64 0, !7, i64 8}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!12, !15, i64 152}
!46 = !{!12, !13, i64 56}
!47 = !{!12, !13, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass