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

; 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::SynetDeconvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::DeconvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"struct.Simd::Array.1", i8, i8, i8, i64, i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::DeconvParam" = type <{ %struct.SimdConvolutionParameters, i32, [4 x i8], i64, i32, [4 x i8] }>
%struct.SimdConvolutionParameters = type { i64, i64, i64, i32, i32, i64, i64, i64, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32 }
%"struct.Simd::Array" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }
%"class.Simd::Base::SynetDeconvolution16bNhwcGemm" = type { %"class.Simd::SynetDeconvolution16b", %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr, ptr, ptr, ptr }
%"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm14ForwardSmallNKEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %25 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 1
  store ptr %25, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %26 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %24, i32 0, i32 1
  store ptr %26, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %27 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 7
  %28 = load i8, ptr %27, align 8, !tbaa !9, !range !26, !noundef !27
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %40

30:                                               ; preds = %6
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %31, i32 0, i32 13
  %33 = load i64, ptr %32, align 8, !tbaa !28
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %34, i32 0, i32 2
  %36 = load i64, ptr %35, align 8, !tbaa !30
  %37 = icmp eq i64 %33, %36
  br i1 %37, label %38, label %40

38:                                               ; preds = %30
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  br label %42

40:                                               ; preds = %30, %6
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %40, %38
  %43 = phi ptr [ %39, %38 ], [ %41, %40 ]
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %44 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 8
  %45 = load i8, ptr %44, align 1, !tbaa !31, !range !26, !noundef !27
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %49

47:                                               ; preds = %42
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  br label %51

49:                                               ; preds = %42
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %49, %47
  %52 = phi ptr [ %48, %47 ], [ %50, %49 ]
  store ptr %52, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %53 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 9
  %54 = load i8, ptr %53, align 2, !tbaa !32, !range !26, !noundef !27
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %58

56:                                               ; preds = %51
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  br label %60

58:                                               ; preds = %51
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %58, %56
  %61 = phi ptr [ %57, %56 ], [ %59, %58 ]
  store ptr %61, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store i64 0, ptr %18, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store i64 0, ptr %19, align 8, !tbaa !33
  br label %62

62:                                               ; preds = %209, %60
  %63 = load i64, ptr %18, align 8, !tbaa !33
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !34
  %67 = icmp ult i64 %63, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %211

69:                                               ; preds = %62
  %70 = load i64, ptr %18, align 8, !tbaa !33
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %71, i32 0, i32 7
  %73 = load i64, ptr %72, align 8, !tbaa !35
  %74 = add i64 %70, %73
  %75 = trunc i64 %74 to i32
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !34
  %79 = trunc i64 %78 to i32
  %80 = call noundef i32 @_ZN4Simd4Base3MinEii(i32 noundef %75, i32 noundef %79)
  %81 = sext i32 %80 to i64
  store i64 %81, ptr %19, align 8, !tbaa !33
  %82 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 7
  %83 = load i8, ptr %82, align 8, !tbaa !9, !range !26, !noundef !27
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %93

85:                                               ; preds = %69
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %86, i32 0, i32 13
  %88 = load i64, ptr %87, align 8, !tbaa !28
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %89, i32 0, i32 2
  %91 = load i64, ptr %90, align 8, !tbaa !30
  %92 = icmp ne i64 %88, %91
  br i1 %92, label %93, label %102

93:                                               ; preds = %85, %69
  %94 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %24, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !36
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i64, ptr %18, align 8, !tbaa !33
  %100 = load i64, ptr %19, align 8, !tbaa !33
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  call void %95(ptr noundef %96, ptr noundef nonnull align 8 dereferenceable(180) %97, ptr noundef nonnull align 8 dereferenceable(128) %98, i64 noundef %99, i64 noundef %100, ptr noundef %101)
  br label %114

102:                                              ; preds = %85
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i64, ptr %18, align 8, !tbaa !33
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %105, i32 0, i32 2
  %107 = load i64, ptr %106, align 8, !tbaa !38
  %108 = mul i64 %104, %107
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !39
  %112 = mul i64 %108, %111
  %113 = getelementptr inbounds i16, ptr %103, i64 %112
  store ptr %113, ptr %15, align 8, !tbaa !5
  br label %114

114:                                              ; preds = %102, %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %115 = load i64, ptr %18, align 8, !tbaa !33
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %116, i32 0, i32 2
  %118 = load i64, ptr %117, align 8, !tbaa !38
  %119 = mul i64 %115, %118
  store i64 %119, ptr %20, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %120 = load i64, ptr %19, align 8, !tbaa !33
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %121, i32 0, i32 2
  %123 = load i64, ptr %122, align 8, !tbaa !38
  %124 = mul i64 %120, %123
  store i64 %124, ptr %21, align 8, !tbaa !33
  %125 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %24, i32 0, i32 3
  %126 = load ptr, ptr %125, align 8, !tbaa !40
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 1
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load i64, ptr %21, align 8, !tbaa !33
  %131 = load i64, ptr %20, align 8, !tbaa !33
  %132 = sub i64 %130, %131
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %133, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !41
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %136, i32 0, i32 13
  %138 = load i64, ptr %137, align 8, !tbaa !28
  %139 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 4
  %140 = getelementptr inbounds %"struct.Simd::Array.0", ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !42
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  call void %126(ptr noundef %127, ptr noundef nonnull align 8 dereferenceable(180) %128, ptr noundef nonnull align 8 dereferenceable(128) %129, i64 noundef %132, i64 noundef %135, i64 noundef %138, i32 noundef 1, ptr noundef %141, ptr noundef %142)
  %143 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 9
  %144 = load i8, ptr %143, align 2, !tbaa !32, !range !26, !noundef !27
  %145 = trunc i8 %144 to i1
  br i1 %145, label %158, label %146

146:                                              ; preds = %114
  %147 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %24, i32 0, i32 4
  %148 = load ptr, ptr %147, align 8, !tbaa !43
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %152, i32 0, i32 5
  %154 = load i64, ptr %153, align 8, !tbaa !44
  %155 = load i64, ptr %18, align 8, !tbaa !33
  %156 = load i64, ptr %19, align 8, !tbaa !33
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  call void %148(ptr noundef %149, ptr noundef nonnull align 8 dereferenceable(180) %150, ptr noundef nonnull align 8 dereferenceable(128) %151, i64 noundef %154, i64 noundef %155, i64 noundef %156, ptr noundef %157)
  br label %158

158:                                              ; preds = %146, %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %159 = load i64, ptr %18, align 8, !tbaa !33
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %160, i32 0, i32 14
  %162 = load i64, ptr %161, align 8, !tbaa !45
  %163 = mul i64 %159, %162
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %164, i32 0, i32 16
  %166 = load i64, ptr %165, align 8, !tbaa !46
  %167 = sub i64 %163, %166
  %168 = trunc i64 %167 to i32
  %169 = call noundef i32 @_ZN4Simd4Base3MaxEii(i32 noundef %168, i32 noundef 0)
  %170 = sext i32 %169 to i64
  store i64 %170, ptr %22, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %171 = load i64, ptr %19, align 8, !tbaa !33
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %172, i32 0, i32 1
  %174 = load i64, ptr %173, align 8, !tbaa !34
  %175 = icmp eq i64 %171, %174
  br i1 %175, label %176, label %180

176:                                              ; preds = %158
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %177, i32 0, i32 6
  %179 = load i64, ptr %178, align 8, !tbaa !47
  br label %190

180:                                              ; preds = %158
  %181 = load i64, ptr %19, align 8, !tbaa !33
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %182, i32 0, i32 14
  %184 = load i64, ptr %183, align 8, !tbaa !45
  %185 = mul i64 %181, %184
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %186, i32 0, i32 16
  %188 = load i64, ptr %187, align 8, !tbaa !46
  %189 = sub i64 %185, %188
  br label %190

190:                                              ; preds = %180, %176
  %191 = phi i64 [ %179, %176 ], [ %189, %180 ]
  store i64 %191, ptr %23, align 8, !tbaa !33
  %192 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %24, i32 0, i32 5
  %193 = load ptr, ptr %192, align 8, !tbaa !48
  %194 = load ptr, ptr %16, align 8, !tbaa !5
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %197, i32 0, i32 5
  %199 = load i64, ptr %198, align 8, !tbaa !44
  %200 = load i64, ptr %22, align 8, !tbaa !33
  %201 = load i64, ptr %23, align 8, !tbaa !33
  %202 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 5
  %203 = getelementptr inbounds %"struct.Simd::Array.1", ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !49
  %205 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %24, i32 0, i32 6
  %206 = getelementptr inbounds %"struct.Simd::Array.1", ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !50
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  call void %193(ptr noundef %194, ptr noundef nonnull align 8 dereferenceable(180) %195, ptr noundef nonnull align 8 dereferenceable(128) %196, i64 noundef %199, i64 noundef %200, i64 noundef %201, ptr noundef %204, ptr noundef %207, ptr noundef %208)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %209

209:                                              ; preds = %190
  %210 = load i64, ptr %19, align 8, !tbaa !33
  store i64 %210, ptr %18, align 8, !tbaa !33
  br label %62, !llvm.loop !51

211:                                              ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !25, i64 288}
!10 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !11, i64 0, !12, i64 8, !20, i64 192, !21, i64 208, !23, i64 240, !24, i64 256, !24, i64 272, !25, i64 288, !25, i64 289, !25, i64 290, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320}
!11 = !{!"_ZTSN4Simd9DeletableE"}
!12 = !{!"_ZTSN4Simd11DeconvParamE", !13, i64 0, !18, i64 160, !14, i64 168, !19, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !14, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !16, i64 28, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !16, i64 60, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !17, i64 152}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!16 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!17 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!18 = !{!"_ZTS8SimdBool", !7, i64 0}
!19 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!20 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !14, i64 8}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !14, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !14, i64 8}
!24 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !14, i64 8}
!25 = !{!"bool", !7, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !14, i64 104}
!29 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemm8AlgParamE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!30 = !{!29, !14, i64 16}
!31 = !{!10, !25, i64 289}
!32 = !{!10, !25, i64 290}
!33 = !{!14, !14, i64 0}
!34 = !{!13, !14, i64 8}
!35 = !{!29, !14, i64 56}
!36 = !{!37, !6, i64 456}
!37 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemmE", !10, i64 0, !29, i64 328, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480}
!38 = !{!13, !14, i64 16}
!39 = !{!13, !14, i64 0}
!40 = !{!37, !6, i64 464}
!41 = !{!29, !14, i64 8}
!42 = !{!10, !6, i64 240}
!43 = !{!37, !6, i64 472}
!44 = !{!13, !14, i64 32}
!45 = !{!13, !14, i64 96}
!46 = !{!13, !14, i64 112}
!47 = !{!13, !14, i64 40}
!48 = !{!37, !6, i64 480}
!49 = !{!10, !6, i64 256}
!50 = !{!10, !6, i64 272}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm14ForwardSmallNKEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 328
  %9 = getelementptr inbounds i8, ptr %0, i64 288
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !25, !noundef !26
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %18

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 432
  %14 = load i64, ptr %13, align 8, !tbaa !27
  %15 = getelementptr inbounds i8, ptr %0, i64 344
  %16 = load i64, ptr %15, align 8, !tbaa !29
  %17 = icmp eq i64 %14, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %12, %6
  br label %19

19:                                               ; preds = %12, %18
  %20 = phi ptr [ %2, %18 ], [ %1, %12 ]
  %21 = getelementptr inbounds i8, ptr %0, i64 289
  %22 = load i8, ptr %21, align 1, !tbaa !30, !range !25, !noundef !26
  %23 = trunc nuw i8 %22 to i1
  %24 = select i1 %23, ptr %4, ptr %5
  %25 = getelementptr inbounds i8, ptr %0, i64 290
  %26 = load i8, ptr %25, align 2, !tbaa !31, !range !25, !noundef !26
  %27 = trunc nuw i8 %26 to i1
  %28 = select i1 %27, ptr %24, ptr %3
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i64, ptr %29, align 8, !tbaa !32
  %.not65 = icmp eq i64 %30, 0
  br i1 %.not65, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %31 = getelementptr inbounds i8, ptr %0, i64 384
  %32 = getelementptr inbounds i8, ptr %0, i64 432
  %33 = getelementptr inbounds i8, ptr %0, i64 344
  %34 = getelementptr inbounds i8, ptr %0, i64 456
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = getelementptr inbounds i8, ptr %0, i64 464
  %37 = getelementptr inbounds i8, ptr %0, i64 336
  %38 = getelementptr inbounds i8, ptr %0, i64 240
  %39 = getelementptr inbounds i8, ptr %0, i64 472
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = getelementptr inbounds i8, ptr %0, i64 104
  %42 = getelementptr inbounds i8, ptr %0, i64 120
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  %44 = getelementptr inbounds i8, ptr %0, i64 480
  %45 = getelementptr inbounds i8, ptr %0, i64 256
  %46 = getelementptr inbounds i8, ptr %0, i64 272
  br label %47

._crit_edge:                                      ; preds = %98, %19
  ret void

47:                                               ; preds = %.lr.ph, %98
  %48 = phi i64 [ %30, %.lr.ph ], [ %104, %98 ]
  %.064 = phi ptr [ %20, %.lr.ph ], [ %.1, %98 ]
  %.06063 = phi i64 [ 0, %.lr.ph ], [ %54, %98 ]
  %49 = load i64, ptr %31, align 8, !tbaa !33
  %50 = add i64 %49, %.06063
  %51 = trunc i64 %50 to i32
  %52 = trunc i64 %48 to i32
  %53 = tail call noundef i32 @_ZN4Simd4Base3MinEii(i32 noundef %51, i32 noundef %52)
  %54 = sext i32 %53 to i64
  %55 = load i8, ptr %9, align 8, !tbaa !5, !range !25, !noundef !26
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %60

57:                                               ; preds = %47
  %58 = load i64, ptr %32, align 8, !tbaa !27
  %59 = load i64, ptr %33, align 8, !tbaa !29
  %.not = icmp eq i64 %58, %59
  br i1 %.not, label %62, label %60

60:                                               ; preds = %57, %47
  %61 = load ptr, ptr %34, align 8, !tbaa !34
  tail call void %61(ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(128) %8, i64 noundef %.06063, i64 noundef %54, ptr noundef %2)
  %.pre = load i64, ptr %35, align 8, !tbaa !36
  %.pre66 = load i64, ptr %32, align 8, !tbaa !27
  br label %68

62:                                               ; preds = %57
  %63 = load i64, ptr %35, align 8, !tbaa !36
  %64 = mul i64 %63, %.06063
  %65 = load i64, ptr %7, align 8, !tbaa !37
  %66 = mul i64 %64, %65
  %67 = getelementptr inbounds i16, ptr %1, i64 %66
  br label %68

68:                                               ; preds = %62, %60
  %69 = phi i64 [ %.pre66, %60 ], [ %58, %62 ]
  %70 = phi i64 [ %.pre, %60 ], [ %63, %62 ]
  %.1 = phi ptr [ %.064, %60 ], [ %67, %62 ]
  %71 = load ptr, ptr %36, align 8, !tbaa !38
  %72 = sub nsw i64 %54, %.06063
  %73 = mul i64 %70, %72
  %74 = load i64, ptr %37, align 8, !tbaa !39
  %75 = load ptr, ptr %38, align 8, !tbaa !40
  tail call void %71(ptr noundef %.1, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(128) %8, i64 noundef %73, i64 noundef %74, i64 noundef %69, i32 noundef 1, ptr noundef %75, ptr noundef %28)
  %76 = load i8, ptr %25, align 2, !tbaa !31, !range !25, !noundef !26
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %81, label %78

78:                                               ; preds = %68
  %79 = load ptr, ptr %39, align 8, !tbaa !41
  %80 = load i64, ptr %40, align 8, !tbaa !42
  tail call void %79(ptr noundef %28, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(128) %8, i64 noundef %80, i64 noundef %.06063, i64 noundef %54, ptr noundef %24)
  br label %81

81:                                               ; preds = %78, %68
  %82 = load i64, ptr %41, align 8, !tbaa !43
  %83 = mul i64 %82, %.06063
  %84 = load i64, ptr %42, align 8, !tbaa !44
  %85 = sub i64 %83, %84
  %86 = trunc i64 %85 to i32
  %87 = tail call noundef i32 @_ZN4Simd4Base3MaxEii(i32 noundef %86, i32 noundef 0)
  %88 = sext i32 %87 to i64
  %89 = load i64, ptr %29, align 8, !tbaa !32
  %90 = icmp eq i64 %89, %54
  br i1 %90, label %91, label %93

91:                                               ; preds = %81
  %92 = load i64, ptr %43, align 8, !tbaa !45
  br label %98

93:                                               ; preds = %81
  %94 = load i64, ptr %41, align 8, !tbaa !43
  %95 = mul i64 %94, %54
  %96 = load i64, ptr %42, align 8, !tbaa !44
  %97 = sub i64 %95, %96
  br label %98

98:                                               ; preds = %93, %91
  %99 = phi i64 [ %92, %91 ], [ %97, %93 ]
  %100 = load ptr, ptr %44, align 8, !tbaa !46
  %101 = load i64, ptr %40, align 8, !tbaa !42
  %102 = load ptr, ptr %45, align 8, !tbaa !47
  %103 = load ptr, ptr %46, align 8, !tbaa !48
  tail call void %100(ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(128) %8, i64 noundef %101, i64 noundef %88, i64 noundef %99, ptr noundef %102, ptr noundef %103, ptr noundef %5)
  %104 = load i64, ptr %29, align 8, !tbaa !32
  %105 = icmp ugt i64 %104, %54
  br i1 %105, label %47, label %._crit_edge, !llvm.loop !49
}

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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


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