; 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 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd4Base25SynetMergedConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base28SynetMergedConvolution16bCdc7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #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 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 i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, 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
  %31 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %32 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 1
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %34, i64 0, i64 0
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %37, i64 0, i64 1
  store ptr %38, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %40, i64 0, i64 2
  store ptr %41, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %42 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 14
  store ptr %42, ptr %13, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef ptr @_ZN4Simd4Base25SynetMergedConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(1024) %31, ptr noundef %43)
  store ptr %44, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %45 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 13
  %46 = getelementptr inbounds [4 x i64], ptr %45, i64 0, i64 0
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %47, i64 noundef 8)
  store ptr %48, ptr %14, align 8, !tbaa !5
  call void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %49 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 13
  %50 = getelementptr inbounds [4 x i64], ptr %49, i64 0, i64 1
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %51, i64 noundef 8)
  store ptr %52, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %53 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 13
  %54 = getelementptr inbounds [4 x i64], ptr %53, i64 0, i64 2
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %55, i64 noundef 8)
  store ptr %56, ptr %16, align 8, !tbaa !5
  call void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %57 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 13
  %58 = getelementptr inbounds [4 x i64], ptr %57, i64 0, i64 3
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %59, i64 noundef 8)
  store ptr %60, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %374, %4
  %62 = load i64, ptr %18, align 8, !tbaa !9
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %63, i32 0, i32 3
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = icmp ult i64 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %377

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %69, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !19
  store i64 %71, ptr %21, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %349, %68
  %73 = load i64, ptr %20, align 8, !tbaa !9
  %74 = load i64, ptr %21, align 8, !tbaa !9
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %355

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %78 = load i64, ptr %21, align 8, !tbaa !9
  %79 = load i64, ptr %20, align 8, !tbaa !9
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !20
  %83 = add i64 %79, %82
  %84 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %78, i64 noundef %83)
  %85 = load i64, ptr %20, align 8, !tbaa !9
  %86 = sub i64 %84, %85
  store i64 %86, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store i64 0, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %344, %77
  %88 = load i64, ptr %23, align 8, !tbaa !9
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %89, i32 0, i32 6
  %91 = load i64, ptr %90, align 8, !tbaa !22
  %92 = icmp ult i64 %88, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %87
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %348

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %95 = load i64, ptr %23, align 8, !tbaa !9
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %96, i32 0, i32 3
  %98 = getelementptr inbounds [3 x i64], ptr %97, i64 0, i64 2
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = add i64 %95, %99
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %101, i32 0, i32 4
  %103 = getelementptr inbounds [3 x i64], ptr %102, i64 0, i64 2
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %105, i32 0, i32 6
  %107 = load i64, ptr %106, align 8, !tbaa !22
  %108 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %100, i64 noundef %104, i64 noundef %107)
  store i64 %108, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %109 = load i64, ptr %24, align 8, !tbaa !9
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %110, i32 0, i32 3
  %112 = getelementptr inbounds [3 x i64], ptr %111, i64 0, i64 1
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = add i64 %109, %113
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %115, i32 0, i32 4
  %117 = getelementptr inbounds [3 x i64], ptr %116, i64 0, i64 1
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %119, i32 0, i32 1
  %121 = load i64, ptr %120, align 8, !tbaa !23
  %122 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %114, i64 noundef %118, i64 noundef %121)
  store i64 %122, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %123 = load i64, ptr %25, align 8, !tbaa !9
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %124, i32 0, i32 3
  %126 = getelementptr inbounds [3 x i64], ptr %125, i64 0, i64 0
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = add i64 %123, %127
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %129, i32 0, i32 4
  %131 = getelementptr inbounds [3 x i64], ptr %130, i64 0, i64 0
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %133, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !23
  %136 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %128, i64 noundef %132, i64 noundef %135)
  store i64 %136, ptr %28, align 8, !tbaa !9
  %137 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !24
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %149

140:                                              ; preds = %94
  %141 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 6
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i64, ptr %25, align 8, !tbaa !9
  %147 = load i64, ptr %28, align 8, !tbaa !9
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void %142(ptr noundef %143, ptr noundef nonnull align 8 dereferenceable(180) %144, ptr noundef nonnull align 8 dereferenceable(152) %145, i64 noundef %146, i64 noundef %147, ptr noundef %148)
  br label %149

149:                                              ; preds = %140, %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %150 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !24
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %155

153:                                              ; preds = %149
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  br label %157

155:                                              ; preds = %149
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %155, %153
  %158 = phi ptr [ %154, %153 ], [ %156, %155 ]
  store ptr %158, ptr %29, align 8, !tbaa !5
  %159 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 8
  %160 = load ptr, ptr %159, align 8, !tbaa !35
  %161 = load ptr, ptr %29, align 8, !tbaa !5
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i64, ptr %22, align 8, !tbaa !9
  %165 = load i64, ptr %24, align 8, !tbaa !9
  %166 = load i64, ptr %27, align 8, !tbaa !9
  %167 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 16
  %168 = getelementptr inbounds %"struct.Simd::Array.0", ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !36
  %170 = load i64, ptr %20, align 8, !tbaa !9
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %171, i32 0, i32 7
  %173 = getelementptr inbounds [3 x i64], ptr %172, i64 0, i64 0
  %174 = load i64, ptr %173, align 8, !tbaa !9
  %175 = mul i64 %170, %174
  %176 = getelementptr inbounds i16, ptr %169, i64 %175
  %177 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 19
  %178 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %177, i64 0, i64 0
  %179 = getelementptr inbounds %"struct.Simd::Array.1", ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !37
  %181 = load i64, ptr %20, align 8, !tbaa !9
  %182 = getelementptr inbounds float, ptr %180, i64 %181
  %183 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 20
  %184 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %183, i64 0, i64 0
  %185 = getelementptr inbounds %"struct.Simd::Array.1", ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !37
  %187 = load i64, ptr %20, align 8, !tbaa !9
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %188, i32 0, i32 6
  %190 = getelementptr inbounds [2 x i64], ptr %189, i64 0, i64 0
  %191 = load i64, ptr %190, align 8, !tbaa !9
  %192 = mul i64 %187, %191
  %193 = getelementptr inbounds float, ptr %186, i64 %192
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  call void %160(ptr noundef %161, ptr noundef nonnull align 8 dereferenceable(180) %162, ptr noundef nonnull align 8 dereferenceable(152) %163, i64 noundef %164, i64 noundef %165, i64 noundef %166, ptr noundef %176, ptr noundef %182, ptr noundef %193, ptr noundef %194)
  %195 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 9
  %196 = load ptr, ptr %195, align 8, !tbaa !38
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = load i64, ptr %22, align 8, !tbaa !9
  %201 = load i64, ptr %23, align 8, !tbaa !9
  %202 = load i64, ptr %26, align 8, !tbaa !9
  %203 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 18
  %204 = getelementptr inbounds %"struct.Simd::Array.1", ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !39
  %206 = load i64, ptr %20, align 8, !tbaa !9
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %207, i32 0, i32 7
  %209 = getelementptr inbounds [3 x i64], ptr %208, i64 0, i64 1
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = mul i64 %206, %210
  %212 = getelementptr inbounds float, ptr %205, i64 %211
  %213 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 19
  %214 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %213, i64 0, i64 1
  %215 = getelementptr inbounds %"struct.Simd::Array.1", ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !37
  %217 = load i64, ptr %20, align 8, !tbaa !9
  %218 = getelementptr inbounds float, ptr %216, i64 %217
  %219 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 20
  %220 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %219, i64 0, i64 1
  %221 = getelementptr inbounds %"struct.Simd::Array.1", ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !37
  %223 = load i64, ptr %20, align 8, !tbaa !9
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %224, i32 0, i32 6
  %226 = getelementptr inbounds [2 x i64], ptr %225, i64 0, i64 1
  %227 = load i64, ptr %226, align 8, !tbaa !9
  %228 = mul i64 %223, %227
  %229 = getelementptr inbounds float, ptr %222, i64 %228
  %230 = load ptr, ptr %16, align 8, !tbaa !5
  call void %196(ptr noundef %197, ptr noundef nonnull align 8 dereferenceable(180) %198, ptr noundef nonnull align 8 dereferenceable(152) %199, i64 noundef %200, i64 noundef %201, i64 noundef %202, ptr noundef %212, ptr noundef %218, ptr noundef %229, ptr noundef %230)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %231 = load ptr, ptr %17, align 8, !tbaa !5
  %232 = icmp eq ptr %231, null
  br i1 %232, label %233, label %235

233:                                              ; preds = %157
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  br label %237

235:                                              ; preds = %157
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  br label %237

237:                                              ; preds = %235, %233
  %238 = phi ptr [ %234, %233 ], [ %236, %235 ]
  store ptr %238, ptr %30, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %239, i32 0, i32 2
  %241 = load i32, ptr %240, align 8, !tbaa !40
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %255

243:                                              ; preds = %237
  %244 = load i64, ptr %20, align 8, !tbaa !9
  %245 = icmp eq i64 %244, 0
  br i1 %245, label %246, label %255

246:                                              ; preds = %243
  %247 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 7
  %248 = load ptr, ptr %247, align 8, !tbaa !41
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = load i64, ptr %23, align 8, !tbaa !9
  %253 = load i64, ptr %26, align 8, !tbaa !9
  %254 = load ptr, ptr %30, align 8, !tbaa !5
  call void %248(ptr noundef %249, ptr noundef nonnull align 8 dereferenceable(180) %250, ptr noundef nonnull align 8 dereferenceable(152) %251, i64 noundef %252, i64 noundef %253, ptr noundef %254)
  br label %255

255:                                              ; preds = %246, %243, %237
  %256 = load i64, ptr %20, align 8, !tbaa !9
  %257 = load i64, ptr %22, align 8, !tbaa !9
  %258 = add i64 %256, %257
  %259 = load i64, ptr %21, align 8, !tbaa !9
  %260 = icmp eq i64 %258, %259
  br i1 %260, label %261, label %303

261:                                              ; preds = %255
  %262 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 10
  %263 = getelementptr inbounds [2 x ptr], ptr %262, i64 0, i64 0
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = load ptr, ptr %16, align 8, !tbaa !5
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  %268 = load i64, ptr %22, align 8, !tbaa !9
  %269 = load i64, ptr %23, align 8, !tbaa !9
  %270 = load i64, ptr %26, align 8, !tbaa !9
  %271 = load i64, ptr %22, align 8, !tbaa !9
  %272 = load i64, ptr %21, align 8, !tbaa !9
  %273 = icmp ne i64 %271, %272
  br i1 %273, label %279, label %274

274:                                              ; preds = %261
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %275, i32 0, i32 2
  %277 = load i32, ptr %276, align 8, !tbaa !40
  %278 = icmp ne i32 %277, 0
  br label %279

279:                                              ; preds = %274, %261
  %280 = phi i1 [ true, %261 ], [ %278, %274 ]
  %281 = zext i1 %280 to i64
  %282 = select i1 %280, i32 0, i32 1
  %283 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 17
  %284 = getelementptr inbounds %"struct.Simd::Array.0", ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !42
  %286 = load i64, ptr %20, align 8, !tbaa !9
  %287 = load ptr, ptr %13, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %287, i32 0, i32 7
  %289 = getelementptr inbounds [3 x i64], ptr %288, i64 0, i64 2
  %290 = load i64, ptr %289, align 8, !tbaa !9
  %291 = mul i64 %286, %290
  %292 = getelementptr inbounds i16, ptr %285, i64 %291
  %293 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 19
  %294 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %293, i64 0, i64 2
  %295 = getelementptr inbounds %"struct.Simd::Array.1", ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !37
  %297 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 20
  %298 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %297, i64 0, i64 2
  %299 = getelementptr inbounds %"struct.Simd::Array.1", ptr %298, i32 0, i32 0
  %300 = load ptr, ptr %299, align 8, !tbaa !37
  %301 = load ptr, ptr %30, align 8, !tbaa !5
  %302 = load ptr, ptr %8, align 8, !tbaa !5
  call void %264(ptr noundef %265, ptr noundef nonnull align 8 dereferenceable(180) %266, ptr noundef nonnull align 8 dereferenceable(152) %267, i64 noundef %268, i64 noundef %269, i64 noundef %270, i32 noundef %282, ptr noundef %292, ptr noundef %296, ptr noundef %300, ptr noundef %301, ptr noundef %302)
  br label %344

303:                                              ; preds = %255
  %304 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 10
  %305 = getelementptr inbounds [2 x ptr], ptr %304, i64 0, i64 1
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = load ptr, ptr %12, align 8, !tbaa !5
  %309 = load ptr, ptr %13, align 8, !tbaa !5
  %310 = load i64, ptr %22, align 8, !tbaa !9
  %311 = load i64, ptr %23, align 8, !tbaa !9
  %312 = load i64, ptr %26, align 8, !tbaa !9
  %313 = load i64, ptr %20, align 8, !tbaa !9
  %314 = icmp ne i64 %313, 0
  br i1 %314, label %320, label %315

315:                                              ; preds = %303
  %316 = load ptr, ptr %9, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %316, i32 0, i32 2
  %318 = load i32, ptr %317, align 8, !tbaa !40
  %319 = icmp ne i32 %318, 0
  br label %320

320:                                              ; preds = %315, %303
  %321 = phi i1 [ true, %303 ], [ %319, %315 ]
  %322 = zext i1 %321 to i64
  %323 = select i1 %321, i32 0, i32 1
  %324 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 17
  %325 = getelementptr inbounds %"struct.Simd::Array.0", ptr %324, i32 0, i32 0
  %326 = load ptr, ptr %325, align 8, !tbaa !42
  %327 = load i64, ptr %20, align 8, !tbaa !9
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %328, i32 0, i32 7
  %330 = getelementptr inbounds [3 x i64], ptr %329, i64 0, i64 2
  %331 = load i64, ptr %330, align 8, !tbaa !9
  %332 = mul i64 %327, %331
  %333 = getelementptr inbounds i16, ptr %326, i64 %332
  %334 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 19
  %335 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %334, i64 0, i64 2
  %336 = getelementptr inbounds %"struct.Simd::Array.1", ptr %335, i32 0, i32 0
  %337 = load ptr, ptr %336, align 8, !tbaa !37
  %338 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 20
  %339 = getelementptr inbounds [3 x %"struct.Simd::Array.1"], ptr %338, i64 0, i64 2
  %340 = getelementptr inbounds %"struct.Simd::Array.1", ptr %339, i32 0, i32 0
  %341 = load ptr, ptr %340, align 8, !tbaa !37
  %342 = load ptr, ptr %30, align 8, !tbaa !5
  %343 = load ptr, ptr %8, align 8, !tbaa !5
  call void %306(ptr noundef %307, ptr noundef nonnull align 8 dereferenceable(180) %308, ptr noundef nonnull align 8 dereferenceable(152) %309, i64 noundef %310, i64 noundef %311, i64 noundef %312, i32 noundef %323, ptr noundef %333, ptr noundef %337, ptr noundef %341, ptr noundef %342, ptr noundef %343)
  br label %344

344:                                              ; preds = %320, %279
  %345 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %345, ptr %23, align 8, !tbaa !9
  %346 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %346, ptr %24, align 8, !tbaa !9
  %347 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %347, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %87, !llvm.loop !43

348:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %349

349:                                              ; preds = %348
  %350 = load ptr, ptr %13, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %350, i32 0, i32 1
  %352 = load i64, ptr %351, align 8, !tbaa !20
  %353 = load i64, ptr %20, align 8, !tbaa !9
  %354 = add i64 %353, %352
  store i64 %354, ptr %20, align 8, !tbaa !9
  br label %72, !llvm.loop !45

355:                                              ; preds = %76
  %356 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 11
  %357 = load i64, ptr %356, align 8, !tbaa !46
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %358, i32 0, i32 8
  %360 = getelementptr inbounds [2 x i64], ptr %359, i64 0, i64 0
  %361 = load i64, ptr %360, align 8, !tbaa !9
  %362 = mul i64 %357, %361
  %363 = load ptr, ptr %6, align 8, !tbaa !5
  %364 = getelementptr inbounds i8, ptr %363, i64 %362
  store ptr %364, ptr %6, align 8, !tbaa !5
  %365 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution16b", ptr %31, i32 0, i32 12
  %366 = load i64, ptr %365, align 8, !tbaa !47
  %367 = load ptr, ptr %13, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution16b::AlgParam", ptr %367, i32 0, i32 8
  %369 = getelementptr inbounds [2 x i64], ptr %368, i64 0, i64 1
  %370 = load i64, ptr %369, align 8, !tbaa !9
  %371 = mul i64 %366, %370
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = getelementptr inbounds i8, ptr %372, i64 %371
  store ptr %373, ptr %8, align 8, !tbaa !5
  br label %374

374:                                              ; preds = %355
  %375 = load i64, ptr %18, align 8, !tbaa !9
  %376 = add i64 %375, 1
  store i64 %376, ptr %18, align 8, !tbaa !9
  br label %61, !llvm.loop !48

377:                                              ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #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
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1

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

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 = { 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 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 = { 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 168}
!12 = !{!"_ZTSN4Simd9ConvParamE", !13, i64 0, !17, i64 160, !10, i64 168, !18, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !15, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !14, i64 56, !15, 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, !16, i64 152}
!14 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!17 = !{!"_ZTS8SimdBool", !7, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!19 = !{!13, !10, i64 32}
!20 = !{!21, !10, i64 8}
!21 = !{!"_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}
!22 = !{!13, !10, i64 40}
!23 = !{!13, !10, i64 8}
!24 = !{!25, !6, i64 616}
!25 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !26, i64 0, !28, i64 8, !29, i64 576, !31, i64 608, !31, i64 609, !31, 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, !21, i64 712, !32, i64 864, !33, i64 880, !33, i64 896, !34, i64 912, !7, i64 928, !7, i64 976}
!26 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !27, i64 0}
!27 = !{!"_ZTSN4Simd9DeletableE"}
!28 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !10, i64 552, !17, i64 560}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !10, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!33 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!34 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!35 = !{!25, !6, i64 632}
!36 = !{!25, !6, i64 880}
!37 = !{!34, !6, i64 0}
!38 = !{!25, !6, i64 640}
!39 = !{!25, !6, i64 912}
!40 = !{!28, !17, i64 560}
!41 = !{!25, !6, i64 624}
!42 = !{!25, !6, i64 896}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = distinct !{!45, !44}
!46 = !{!25, !10, i64 664}
!47 = !{!25, !10, i64 672}
!48 = distinct !{!48, !44}


; 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 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd4Base25SynetMergedConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(1024), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base28SynetMergedConvolution16bCdc7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = getelementptr inbounds i8, ptr %0, i64 192
  %8 = getelementptr inbounds i8, ptr %0, i64 376
  %9 = getelementptr inbounds i8, ptr %0, i64 712
  %10 = tail call noundef ptr @_ZN4Simd4Base25SynetMergedConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(1024) %0, ptr noundef %2)
  store ptr %10, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 680
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %12, i64 noundef 8)
  call void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 8)
  %14 = getelementptr inbounds i8, ptr %0, i64 688
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %15, i64 noundef 8)
  %17 = getelementptr inbounds i8, ptr %0, i64 696
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %18, i64 noundef 8)
  call void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 8)
  %20 = getelementptr inbounds i8, ptr %0, i64 704
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %21, i64 noundef 8)
  %23 = getelementptr inbounds i8, ptr %0, i64 176
  %24 = load i64, ptr %23, align 8, !tbaa !11
  %.not139 = icmp eq i64 %24, 0
  br i1 %.not139, label %._crit_edge138, label %.lr.ph137

.lr.ph137:                                        ; preds = %4
  %25 = getelementptr inbounds i8, ptr %0, i64 224
  %26 = getelementptr inbounds i8, ptr %0, i64 720
  %27 = getelementptr inbounds i8, ptr %0, i64 232
  %28 = getelementptr inbounds i8, ptr %0, i64 736
  %29 = getelementptr inbounds i8, ptr %0, i64 752
  %30 = getelementptr inbounds i8, ptr %0, i64 760
  %31 = getelementptr inbounds i8, ptr %0, i64 776
  %32 = getelementptr inbounds i8, ptr %0, i64 744
  %33 = getelementptr inbounds i8, ptr %0, i64 768
  %34 = getelementptr inbounds i8, ptr %0, i64 200
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = getelementptr inbounds i8, ptr %0, i64 616
  %37 = getelementptr inbounds i8, ptr %0, i64 632
  %38 = getelementptr inbounds i8, ptr %0, i64 880
  %39 = getelementptr inbounds i8, ptr %0, i64 824
  %40 = getelementptr inbounds i8, ptr %0, i64 928
  %41 = getelementptr inbounds i8, ptr %0, i64 976
  %42 = getelementptr inbounds i8, ptr %0, i64 808
  %43 = getelementptr inbounds i8, ptr %0, i64 640
  %44 = getelementptr inbounds i8, ptr %0, i64 912
  %45 = getelementptr inbounds i8, ptr %0, i64 832
  %46 = getelementptr inbounds i8, ptr %0, i64 944
  %47 = getelementptr inbounds i8, ptr %0, i64 992
  %48 = getelementptr inbounds i8, ptr %0, i64 816
  %49 = icmp eq ptr %22, null
  %50 = getelementptr inbounds i8, ptr %0, i64 568
  %51 = getelementptr inbounds i8, ptr %0, i64 624
  %52 = getelementptr inbounds i8, ptr %0, i64 896
  %53 = getelementptr inbounds i8, ptr %0, i64 840
  %54 = getelementptr inbounds i8, ptr %0, i64 960
  %55 = getelementptr inbounds i8, ptr %0, i64 1008
  %56 = getelementptr inbounds i8, ptr %0, i64 664
  %57 = getelementptr inbounds i8, ptr %0, i64 848
  %58 = getelementptr inbounds i8, ptr %0, i64 672
  %59 = getelementptr inbounds i8, ptr %0, i64 856
  %60 = load i64, ptr %25, align 8, !tbaa !19
  %.not140 = icmp eq i64 %60, 0
  br i1 %.not140, label %._crit_edge138, label %.lr.ph137.split

._crit_edge138:                                   ; preds = %._crit_edge132, %.lr.ph137, %4
  ret void

.lr.ph137.splitthread-pre-split:                  ; preds = %._crit_edge132
  %61 = load i64, ptr %59, align 8, !tbaa !9
  %62 = load i64, ptr %58, align 8, !tbaa !20
  %63 = mul i64 %61, %62
  %64 = getelementptr inbounds i8, ptr %.0108134, i64 %63
  %65 = load i64, ptr %57, align 8, !tbaa !9
  %66 = load i64, ptr %56, align 8, !tbaa !32
  %67 = mul i64 %65, %66
  %68 = getelementptr inbounds i8, ptr %.0135, i64 %67
  %.pr = load i64, ptr %25, align 8, !tbaa !19
  br label %.lr.ph137.split

.lr.ph137.split:                                  ; preds = %.lr.ph137, %.lr.ph137.splitthread-pre-split
  %69 = phi i64 [ %.pr, %.lr.ph137.splitthread-pre-split ], [ %60, %.lr.ph137 ]
  %70 = phi i64 [ %72, %.lr.ph137.splitthread-pre-split ], [ %24, %.lr.ph137 ]
  %.0135 = phi ptr [ %68, %.lr.ph137.splitthread-pre-split ], [ %1, %.lr.ph137 ]
  %.0108134 = phi ptr [ %64, %.lr.ph137.splitthread-pre-split ], [ %3, %.lr.ph137 ]
  %.0109133 = phi i64 [ %73, %.lr.ph137.splitthread-pre-split ], [ 0, %.lr.ph137 ]
  %.not141 = icmp eq i64 %69, 0
  br i1 %.not141, label %._crit_edge132, label %.lr.ph131

.lr.ph131:                                        ; preds = %.lr.ph137.split
  %71 = select i1 %49, ptr %.0108134, ptr %22
  %.pre = load i64, ptr %26, align 8, !tbaa !33
  br label %75

._crit_edge132.loopexit:                          ; preds = %._crit_edge
  %.pre145 = load i64, ptr %23, align 8, !tbaa !11
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %._crit_edge132.loopexit, %.lr.ph137.split
  %72 = phi i64 [ %.pre145, %._crit_edge132.loopexit ], [ %70, %.lr.ph137.split ]
  %73 = add nuw i64 %.0109133, 1
  %74 = icmp ult i64 %73, %72
  br i1 %74, label %.lr.ph137.splitthread-pre-split, label %._crit_edge138, !llvm.loop !34

75:                                               ; preds = %.lr.ph131, %._crit_edge
  %76 = phi i64 [ %.pre, %.lr.ph131 ], [ %83, %._crit_edge ]
  %.0110129 = phi i64 [ 0, %.lr.ph131 ], [ %84, %._crit_edge ]
  %77 = add i64 %76, %.0110129
  %78 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %69, i64 noundef %77)
  %79 = sub i64 %78, %.0110129
  %80 = load i64, ptr %27, align 8, !tbaa !37
  %.not142 = icmp eq i64 %80, 0
  br i1 %.not142, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %75
  %81 = icmp eq i64 %.0110129, 0
  %82 = icmp eq i64 %78, %69
  %.not119 = icmp eq i64 %79, %69
  %..v = select i1 %82, i64 648, i64 656
  %. = getelementptr inbounds i8, ptr %0, i64 %..v
  %.not119. = select i1 %82, i1 %.not119, i1 %81
  br label %86

._crit_edge:                                      ; preds = %133, %75
  %83 = load i64, ptr %26, align 8, !tbaa !33
  %84 = add i64 %83, %.0110129
  %85 = icmp ult i64 %84, %69
  br i1 %85, label %75, label %._crit_edge132.loopexit, !llvm.loop !38

86:                                               ; preds = %.lr.ph, %133
  %87 = phi i64 [ %80, %.lr.ph ], [ %144, %133 ]
  %.0111128 = phi i64 [ 0, %.lr.ph ], [ %101, %133 ]
  %.0112127 = phi i64 [ 0, %.lr.ph ], [ %96, %133 ]
  %.0113126 = phi i64 [ 0, %.lr.ph ], [ %91, %133 ]
  %88 = load i64, ptr %29, align 8, !tbaa !9
  %89 = add i64 %88, %.0113126
  %90 = load i64, ptr %31, align 8, !tbaa !9
  %91 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %89, i64 noundef %90, i64 noundef %87)
  %92 = load i64, ptr %32, align 8, !tbaa !9
  %93 = add i64 %92, %.0112127
  %94 = load i64, ptr %33, align 8, !tbaa !9
  %95 = load i64, ptr %34, align 8, !tbaa !39
  %96 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %93, i64 noundef %94, i64 noundef %95)
  %97 = load i64, ptr %28, align 8, !tbaa !9
  %98 = add i64 %97, %.0111128
  %99 = load i64, ptr %30, align 8, !tbaa !9
  %100 = load i64, ptr %35, align 8, !tbaa !39
  %101 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %98, i64 noundef %99, i64 noundef %100)
  %102 = load ptr, ptr %36, align 8, !tbaa !40
  %.not = icmp eq ptr %102, null
  br i1 %.not, label %104, label %103

103:                                              ; preds = %86
  call void %102(ptr noundef %.0135, ptr noundef nonnull align 8 dereferenceable(180) %6, ptr noundef nonnull align 8 dereferenceable(152) %9, i64 noundef %.0111128, i64 noundef %101, ptr noundef %13)
  %.pre144 = load ptr, ptr %36, align 8, !tbaa !40
  br label %104

104:                                              ; preds = %103, %86
  %105 = phi ptr [ %.pre144, %103 ], [ null, %86 ]
  %.not117 = icmp eq ptr %105, null
  %106 = select i1 %.not117, ptr %.0135, ptr %13
  %107 = load ptr, ptr %37, align 8, !tbaa !41
  %108 = load ptr, ptr %38, align 8, !tbaa !42
  %109 = load i64, ptr %39, align 8, !tbaa !9
  %110 = mul i64 %109, %.0110129
  %111 = getelementptr inbounds i16, ptr %108, i64 %110
  %112 = load ptr, ptr %40, align 8, !tbaa !43
  %113 = getelementptr inbounds float, ptr %112, i64 %.0110129
  %114 = load ptr, ptr %41, align 8, !tbaa !43
  %115 = load i64, ptr %42, align 8, !tbaa !9
  %116 = mul i64 %115, %.0110129
  %117 = getelementptr inbounds float, ptr %114, i64 %116
  call void %107(ptr noundef %106, ptr noundef nonnull align 8 dereferenceable(180) %6, ptr noundef nonnull align 8 dereferenceable(152) %9, i64 noundef %79, i64 noundef %.0112127, i64 noundef %96, ptr noundef %111, ptr noundef %113, ptr noundef %117, ptr noundef %16)
  %118 = load ptr, ptr %43, align 8, !tbaa !44
  %119 = load ptr, ptr %44, align 8, !tbaa !45
  %120 = load i64, ptr %45, align 8, !tbaa !9
  %121 = mul i64 %120, %.0110129
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  %123 = load ptr, ptr %46, align 8, !tbaa !43
  %124 = getelementptr inbounds float, ptr %123, i64 %.0110129
  %125 = load ptr, ptr %47, align 8, !tbaa !43
  %126 = load i64, ptr %48, align 8, !tbaa !9
  %127 = mul i64 %126, %.0110129
  %128 = getelementptr inbounds float, ptr %125, i64 %127
  call void %118(ptr noundef %16, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(152) %9, i64 noundef %79, i64 noundef %.0113126, i64 noundef %91, ptr noundef %122, ptr noundef %124, ptr noundef %128, ptr noundef %19)
  %129 = load i32, ptr %50, align 8, !tbaa !46
  %130 = icmp ne i32 %129, 0
  %or.cond = and i1 %81, %130
  br i1 %or.cond, label %131, label %133

131:                                              ; preds = %104
  %132 = load ptr, ptr %51, align 8, !tbaa !47
  call void %132(ptr noundef %.0135, ptr noundef nonnull align 8 dereferenceable(180) %6, ptr noundef nonnull align 8 dereferenceable(152) %9, i64 noundef %.0113126, i64 noundef %91, ptr noundef %71)
  br label %133

133:                                              ; preds = %131, %104
  %134 = load i32, ptr %50, align 8
  %135 = icmp eq i32 %134, 0
  %136 = load ptr, ptr %52, align 8, !tbaa !48
  %137 = load i64, ptr %53, align 8, !tbaa !9
  %138 = mul i64 %137, %.0110129
  %139 = getelementptr inbounds i16, ptr %136, i64 %138
  %140 = load ptr, ptr %54, align 8, !tbaa !43
  %141 = load ptr, ptr %55, align 8, !tbaa !43
  %142 = load ptr, ptr %., align 8, !tbaa !5
  %.not123 = select i1 %.not119., i1 %135, i1 false
  %143 = zext i1 %.not123 to i32
  call void %142(ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(180) %8, ptr noundef nonnull align 8 dereferenceable(152) %9, i64 noundef %79, i64 noundef %.0113126, i64 noundef %91, i32 noundef %143, ptr noundef %139, ptr noundef %140, ptr noundef %141, ptr noundef %71, ptr noundef %.0108134)
  %144 = load i64, ptr %27, align 8, !tbaa !37
  %145 = icmp ult i64 %91, %144
  br i1 %145, label %86, label %._crit_edge, !llvm.loop !49
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd6SetGapERPhm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0

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

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 = { 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 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, !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 168}
!12 = !{!"_ZTSN4Simd9ConvParamE", !13, i64 0, !17, i64 160, !10, i64 168, !18, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !15, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !14, i64 56, !15, 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, !16, i64 152}
!14 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!17 = !{!"_ZTS8SimdBool", !7, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!19 = !{!13, !10, i64 32}
!20 = !{!21, !10, i64 672}
!21 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution16bE", !22, i64 0, !24, i64 8, !25, i64 576, !27, i64 608, !27, i64 609, !27, 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, !28, i64 712, !29, i64 864, !30, i64 880, !30, i64 896, !31, i64 912, !7, i64 928, !7, i64 976}
!22 = !{!"_ZTSN4Simd25SynetMergedConvolution16bE", !23, i64 0}
!23 = !{!"_ZTSN4Simd9DeletableE"}
!24 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !10, i64 552, !17, i64 560}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_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}
!29 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!30 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!32 = !{!21, !10, i64 664}
!33 = !{!28, !10, i64 8}
!34 = distinct !{!34, !35, !36}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!"llvm.loop.unswitch.partial.disable"}
!37 = !{!13, !10, i64 40}
!38 = distinct !{!38, !35}
!39 = !{!13, !10, i64 8}
!40 = !{!21, !6, i64 616}
!41 = !{!21, !6, i64 632}
!42 = !{!21, !6, i64 880}
!43 = !{!31, !6, i64 0}
!44 = !{!21, !6, i64 640}
!45 = !{!21, !6, i64 912}
!46 = !{!24, !17, i64 560}
!47 = !{!21, !6, i64 624}
!48 = !{!21, !6, i64 896}
!49 = distinct !{!49, !35}


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