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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE = external hidden unnamed_addr constant [100 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: 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(180) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %13 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %12, i32 0, i32 14
  store ptr %13, ptr %9, align 8, !tbaa !5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %14, i32 0, i32 21
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %23, label %18

18:                                               ; preds = %4
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %19, i32 0, i32 21
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = icmp eq i32 %21, 4
  br i1 %22, label %23, label %34

23:                                               ; preds = %18, %4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %25, i32 0, i32 5
  %27 = load i64, ptr %26, align 8, !tbaa !15
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = mul i64 %30, 2
  %32 = call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef 1, i64 noundef %31)
  %33 = call noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef %27, i64 noundef %32)
  call void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %33, i1 noundef zeroext true, i64 noundef 8)
  br label %36

34:                                               ; preds = %18
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %35, i64 noundef 2, i1 noundef zeroext true, i64 noundef 8)
  br label %36

36:                                               ; preds = %34, %23
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %37, i32 0, i32 21
  %39 = load i32, ptr %38, align 8, !tbaa !9
  switch i32 %39, label %170 [
    i32 0, label %40
    i32 1, label %49
    i32 2, label %58
    i32 3, label %79
    i32 4, label %94
    i32 5, label %116
    i32 6, label %124
    i32 7, label %139
    i32 8, label %147
    i32 9, label %162
    i32 10, label %171
  ]

40:                                               ; preds = %36
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Simd::Array.1", ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = getelementptr inbounds float, ptr %43, i64 0
  store float 0xC7EFFFFFE0000000, ptr %44, align 4, !tbaa !20
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Simd::Array.1", ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = getelementptr inbounds float, ptr %47, i64 1
  store float 0x47EFFFFFE0000000, ptr %48, align 4, !tbaa !20
  br label %171

49:                                               ; preds = %36
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.Simd::Array.1", ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = getelementptr inbounds float, ptr %52, i64 0
  store float 0.000000e+00, ptr %53, align 4, !tbaa !20
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Simd::Array.1", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  %57 = getelementptr inbounds float, ptr %56, i64 1
  store float 0x47EFFFFFE0000000, ptr %57, align 4, !tbaa !20
  br label %171

58:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !22
  br label %59

59:                                               ; preds = %75, %58
  %60 = load i64, ptr %10, align 8, !tbaa !22
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %61, i32 0, i32 5
  %63 = load i64, ptr %62, align 8, !tbaa !15
  %64 = icmp ult i64 %60, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %78

66:                                               ; preds = %59
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds float, ptr %67, i64 0
  %69 = load float, ptr %68, align 4, !tbaa !20
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.Simd::Array.1", ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %73 = load i64, ptr %10, align 8, !tbaa !22
  %74 = getelementptr inbounds float, ptr %72, i64 %73
  store float %69, ptr %74, align 4, !tbaa !20
  br label %75

75:                                               ; preds = %66
  %76 = load i64, ptr %10, align 8, !tbaa !22
  %77 = add i64 %76, 1
  store i64 %77, ptr %10, align 8, !tbaa !22
  br label %59, !llvm.loop !23

78:                                               ; preds = %65
  br label %171

79:                                               ; preds = %36
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds float, ptr %80, i64 0
  %82 = load float, ptr %81, align 4, !tbaa !20
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.Simd::Array.1", ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = getelementptr inbounds float, ptr %85, i64 0
  store float %82, ptr %86, align 4, !tbaa !20
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds float, ptr %87, i64 1
  %89 = load float, ptr %88, align 4, !tbaa !20
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.Simd::Array.1", ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = getelementptr inbounds float, ptr %92, i64 1
  store float %89, ptr %93, align 4, !tbaa !20
  br label %171

94:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !22
  br label %95

95:                                               ; preds = %112, %94
  %96 = load i64, ptr %11, align 8, !tbaa !22
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %97, i32 0, i32 5
  %99 = load i64, ptr %98, align 8, !tbaa !15
  %100 = icmp ult i64 %96, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %115

102:                                              ; preds = %95
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load i64, ptr %11, align 8, !tbaa !22
  %105 = getelementptr inbounds float, ptr %103, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !20
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.Simd::Array.1", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !18
  %110 = load i64, ptr %11, align 8, !tbaa !22
  %111 = getelementptr inbounds float, ptr %109, i64 %110
  store float %106, ptr %111, align 4, !tbaa !20
  br label %112

112:                                              ; preds = %102
  %113 = load i64, ptr %11, align 8, !tbaa !22
  %114 = add i64 %113, 1
  store i64 %114, ptr %11, align 8, !tbaa !22
  br label %95, !llvm.loop !25

115:                                              ; preds = %101
  br label %171

116:                                              ; preds = %36
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds float, ptr %117, i64 0
  %119 = load float, ptr %118, align 4, !tbaa !20
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.Simd::Array.1", ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !18
  %123 = getelementptr inbounds float, ptr %122, i64 0
  store float %119, ptr %123, align 4, !tbaa !20
  br label %171

124:                                              ; preds = %36
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds float, ptr %125, i64 0
  %127 = load float, ptr %126, align 4, !tbaa !20
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.Simd::Array.1", ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  %131 = getelementptr inbounds float, ptr %130, i64 0
  store float %127, ptr %131, align 4, !tbaa !20
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 1
  %134 = load float, ptr %133, align 4, !tbaa !20
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.Simd::Array.1", ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  %138 = getelementptr inbounds float, ptr %137, i64 1
  store float %134, ptr %138, align 4, !tbaa !20
  br label %171

139:                                              ; preds = %36
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds float, ptr %140, i64 0
  %142 = load float, ptr %141, align 4, !tbaa !20
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.Simd::Array.1", ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !18
  %146 = getelementptr inbounds float, ptr %145, i64 0
  store float %142, ptr %146, align 4, !tbaa !20
  br label %171

147:                                              ; preds = %36
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds float, ptr %148, i64 0
  %150 = load float, ptr %149, align 4, !tbaa !20
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.Simd::Array.1", ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !18
  %154 = getelementptr inbounds float, ptr %153, i64 0
  store float %150, ptr %154, align 4, !tbaa !20
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds float, ptr %155, i64 1
  %157 = load float, ptr %156, align 4, !tbaa !20
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.Simd::Array.1", ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %161 = getelementptr inbounds float, ptr %160, i64 1
  store float %157, ptr %161, align 4, !tbaa !20
  br label %171

162:                                              ; preds = %36
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds float, ptr %163, i64 0
  %165 = load float, ptr %164, align 4, !tbaa !20
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.Simd::Array.1", ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !18
  %169 = getelementptr inbounds float, ptr %168, i64 0
  store float %165, ptr %169, align 4, !tbaa !20
  br label %171

170:                                              ; preds = %36
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 576, ptr noundef @__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE) #6
  unreachable

171:                                              ; preds = %162, %147, %139, %124, %116, %115, %79, %78, %49, %40, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void
}

; 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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { nounwind }
attributes #6 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 152}
!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 = !{!10, !11, i64 32}
!16 = !{!17, !11, i64 0}
!17 = !{!"_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}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !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"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE = external hidden unnamed_addr constant [100 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(1024) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(180) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) local_unnamed_addr #1 align 2 {
  %5 = ptrtoint ptr %1 to i64
  %6 = getelementptr inbounds i8, ptr %2, i64 152
  %7 = load i32, ptr %6, align 8, !tbaa !5
  switch i32 %7, label %16 [
    i32 2, label %8
    i32 4, label %8
  ]

8:                                                ; preds = %4, %4
  %9 = getelementptr inbounds i8, ptr %0, i64 712
  %10 = getelementptr inbounds i8, ptr %2, i64 32
  %11 = load i64, ptr %10, align 8, !tbaa !13
  %12 = load i64, ptr %9, align 8, !tbaa !14
  %13 = shl i64 %12, 1
  %14 = tail call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef 1, i64 noundef %13)
  %15 = tail call noundef i64 @_ZN4Simd10AlignHiAnyEmm(i64 noundef %11, i64 noundef %14)
  br label %16

16:                                               ; preds = %4, %8
  %.sink = phi i64 [ %15, %8 ], [ 2, %4 ]
  tail call void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.sink, i1 noundef zeroext true, i64 noundef 8)
  %17 = load i32, ptr %6, align 8, !tbaa !5
  switch i32 %17, label %89 [
    i32 0, label %40
    i32 1, label %42
    i32 2, label %.preheader
    i32 3, label %46
    i32 4, label %.preheader44
    i32 5, label %68
    i32 6, label %71
    i32 7, label %77
    i32 8, label %80
    i32 9, label %86
    i32 10, label %.loopexit
  ]

.preheader44:                                     ; preds = %16
  %18 = getelementptr inbounds i8, ptr %2, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !13
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader44
  %20 = load ptr, ptr %3, align 8, !tbaa !16
  %min.iters.check = icmp ult i64 %19, 8
  %21 = ptrtoint ptr %20 to i64
  %22 = sub i64 %21, %5
  %diff.check = icmp ult i64 %22, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.046.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %19, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.046.prol = phi i64 [ %26, %scalar.ph.prol ], [ %.046.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %23 = getelementptr inbounds float, ptr %1, i64 %.046.prol
  %24 = load float, ptr %23, align 4, !tbaa !19
  %25 = getelementptr inbounds float, ptr %20, i64 %.046.prol
  store float %24, ptr %25, align 4, !tbaa !19
  %26 = add nuw i64 %.046.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !21

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.046.unr = phi i64 [ %.046.ph, %scalar.ph.preheader ], [ %26, %scalar.ph.prol ]
  %27 = sub i64 %.046.ph, %19
  %28 = icmp ugt i64 %27, -4
  br i1 %28, label %.loopexit, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %19, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %29 = getelementptr inbounds float, ptr %1, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load = load <4 x float>, ptr %29, align 4, !tbaa !19
  %wide.load54 = load <4 x float>, ptr %30, align 4, !tbaa !19
  %31 = getelementptr inbounds float, ptr %20, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <4 x float> %wide.load, ptr %31, align 4, !tbaa !19
  store <4 x float> %wide.load54, ptr %32, align 4, !tbaa !19
  %index.next = add nuw i64 %index, 8
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %19, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

.preheader:                                       ; preds = %16
  %34 = getelementptr inbounds i8, ptr %2, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !13
  %.not49 = icmp eq i64 %35, 0
  br i1 %.not49, label %.loopexit, label %.lr.ph48

.lr.ph48:                                         ; preds = %.preheader
  %36 = load ptr, ptr %3, align 8, !tbaa !16
  %.pre = load float, ptr %1, align 4, !tbaa !19
  %min.iters.check57 = icmp ult i64 %35, 8
  br i1 %min.iters.check57, label %scalar.ph56.preheader, label %vector.ph58

scalar.ph56.preheader:                            ; preds = %middle.block55, %.lr.ph48
  %.04247.ph = phi i64 [ 0, %.lr.ph48 ], [ %n.vec60, %middle.block55 ]
  br label %scalar.ph56

vector.ph58:                                      ; preds = %.lr.ph48
  %n.vec60 = and i64 %35, -8
  %broadcast.splatinsert = insertelement <4 x float> poison, float %.pre, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body62

vector.body62:                                    ; preds = %vector.body62, %vector.ph58
  %index63 = phi i64 [ 0, %vector.ph58 ], [ %index.next64, %vector.body62 ]
  %37 = getelementptr inbounds float, ptr %36, i64 %index63
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <4 x float> %broadcast.splat, ptr %37, align 4, !tbaa !19
  store <4 x float> %broadcast.splat, ptr %38, align 4, !tbaa !19
  %index.next64 = add nuw i64 %index63, 8
  %39 = icmp eq i64 %index.next64, %n.vec60
  br i1 %39, label %middle.block55, label %vector.body62, !llvm.loop !27

middle.block55:                                   ; preds = %vector.body62
  %cmp.n65 = icmp eq i64 %35, %n.vec60
  br i1 %cmp.n65, label %.loopexit, label %scalar.ph56.preheader

40:                                               ; preds = %16
  %41 = load ptr, ptr %3, align 8, !tbaa !16
  store <2 x float> <float 0xC7EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %41, align 4, !tbaa !19
  br label %.loopexit

42:                                               ; preds = %16
  %43 = load ptr, ptr %3, align 8, !tbaa !16
  store <2 x float> <float 0.000000e+00, float 0x47EFFFFFE0000000>, ptr %43, align 4, !tbaa !19
  br label %.loopexit

scalar.ph56:                                      ; preds = %scalar.ph56.preheader, %scalar.ph56
  %.04247 = phi i64 [ %45, %scalar.ph56 ], [ %.04247.ph, %scalar.ph56.preheader ]
  %44 = getelementptr inbounds float, ptr %36, i64 %.04247
  store float %.pre, ptr %44, align 4, !tbaa !19
  %45 = add nuw i64 %.04247, 1
  %exitcond51.not = icmp eq i64 %45, %35
  br i1 %exitcond51.not, label %.loopexit, label %scalar.ph56, !llvm.loop !28

46:                                               ; preds = %16
  %47 = load float, ptr %1, align 4, !tbaa !19
  %48 = load ptr, ptr %3, align 8, !tbaa !16
  store float %47, ptr %48, align 4, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %1, i64 4
  %50 = load float, ptr %49, align 4, !tbaa !19
  %51 = getelementptr inbounds i8, ptr %48, i64 4
  store float %50, ptr %51, align 4, !tbaa !19
  br label %.loopexit

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.046 = phi i64 [ %67, %scalar.ph ], [ %.046.unr, %scalar.ph.prol.loopexit ]
  %52 = getelementptr inbounds float, ptr %1, i64 %.046
  %53 = load float, ptr %52, align 4, !tbaa !19
  %54 = getelementptr inbounds float, ptr %20, i64 %.046
  store float %53, ptr %54, align 4, !tbaa !19
  %55 = add nuw i64 %.046, 1
  %56 = getelementptr inbounds float, ptr %1, i64 %55
  %57 = load float, ptr %56, align 4, !tbaa !19
  %58 = getelementptr inbounds float, ptr %20, i64 %55
  store float %57, ptr %58, align 4, !tbaa !19
  %59 = add nuw i64 %.046, 2
  %60 = getelementptr inbounds float, ptr %1, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !19
  %62 = getelementptr inbounds float, ptr %20, i64 %59
  store float %61, ptr %62, align 4, !tbaa !19
  %63 = add nuw i64 %.046, 3
  %64 = getelementptr inbounds float, ptr %1, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !19
  %66 = getelementptr inbounds float, ptr %20, i64 %63
  store float %65, ptr %66, align 4, !tbaa !19
  %67 = add nuw i64 %.046, 4
  %exitcond.not.3 = icmp eq i64 %67, %19
  br i1 %exitcond.not.3, label %.loopexit, label %scalar.ph, !llvm.loop !29

68:                                               ; preds = %16
  %69 = load float, ptr %1, align 4, !tbaa !19
  %70 = load ptr, ptr %3, align 8, !tbaa !16
  store float %69, ptr %70, align 4, !tbaa !19
  br label %.loopexit

71:                                               ; preds = %16
  %72 = load float, ptr %1, align 4, !tbaa !19
  %73 = load ptr, ptr %3, align 8, !tbaa !16
  store float %72, ptr %73, align 4, !tbaa !19
  %74 = getelementptr inbounds i8, ptr %1, i64 4
  %75 = load float, ptr %74, align 4, !tbaa !19
  %76 = getelementptr inbounds i8, ptr %73, i64 4
  store float %75, ptr %76, align 4, !tbaa !19
  br label %.loopexit

77:                                               ; preds = %16
  %78 = load float, ptr %1, align 4, !tbaa !19
  %79 = load ptr, ptr %3, align 8, !tbaa !16
  store float %78, ptr %79, align 4, !tbaa !19
  br label %.loopexit

80:                                               ; preds = %16
  %81 = load float, ptr %1, align 4, !tbaa !19
  %82 = load ptr, ptr %3, align 8, !tbaa !16
  store float %81, ptr %82, align 4, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %1, i64 4
  %84 = load float, ptr %83, align 4, !tbaa !19
  %85 = getelementptr inbounds i8, ptr %82, i64 4
  store float %84, ptr %85, align 4, !tbaa !19
  br label %.loopexit

86:                                               ; preds = %16
  %87 = load float, ptr %1, align 4, !tbaa !19
  %88 = load ptr, ptr %3, align 8, !tbaa !16
  store float %87, ptr %88, align 4, !tbaa !19
  br label %.loopexit

89:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 576, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Simd4Base25SynetMergedConvolution16b9SetParamsEPKfRKNS_9ConvParamERNS_5ArrayIfEE) #4
  unreachable

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %scalar.ph56, %middle.block, %middle.block55, %.preheader44, %.preheader, %86, %80, %77, %71, %68, %46, %42, %40, %16
  ret void
}

; 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

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

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

attributes #0 = { 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 #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 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 = { 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, !12, i64 152}
!6 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !12, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!11 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!12 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!15, !7, i64 0}
!15 = !{!"_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}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN4Simd5ArrayIfEE", !18, i64 0, !7, i64 8}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !25, !26}
!28 = distinct !{!28, !24, !26, !25}
!29 = distinct !{!29, !24, !25}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass