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

; 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::SynetMergedConvolution32f" = type { %"class.Simd::SynetMergedConvolution32f", [4 x ptr], i64, i64, [2 x i64], [3 x %"struct.Simd::Array"], [3 x %"struct.Simd::Array"], [3 x %"struct.Simd::Array"], [3 x ptr], [3 x ptr], [3 x ptr], i64, i64, [2 x i64], [2 x i64], [2 x i64], [3 x i64] }
%"class.Simd::SynetMergedConvolution32f" = type { %"struct.Simd::Deletable", %"struct.Simd::MergConvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string" }
%"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 }
%"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] }

; 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
declare dso_local void @_ZN4Simd4Base25SynetMergedConvolution32f7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetMergedConvolution32fDc7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 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 i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = 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
  %18 = load ptr, ptr %5, align 8
  %19 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 5
  %20 = getelementptr inbounds [3 x %"struct.Simd::Array"], ptr %19, i64 0, i64 0
  %21 = getelementptr inbounds %"struct.Simd::Array", ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %28

24:                                               ; preds = %4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base25SynetMergedConvolution32f7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992) %18, ptr noundef %25, ptr noundef %26, ptr noundef %27)
  br label %213

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %29 = getelementptr inbounds %"class.Simd::SynetMergedConvolution32f", ptr %18, i32 0, i32 1
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef ptr @_ZN4Simd25SynetMergedConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(624) %18, ptr noundef %30)
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !12
  br label %32

32:                                               ; preds = %209, %28
  %33 = load i64, ptr %11, align 8, !tbaa !12
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %35, i64 0, i64 0
  %37 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %36, i32 0, i32 3
  %38 = load i64, ptr %37, align 8, !tbaa !13
  %39 = icmp ult i64 %33, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %32
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %212

41:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %43, i64 0, i64 0
  %45 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %44, i32 0, i32 5
  %46 = load i64, ptr %45, align 8, !tbaa !21
  store i64 %46, ptr %14, align 8, !tbaa !12
  br label %47

47:                                               ; preds = %195, %41
  %48 = load i64, ptr %13, align 8, !tbaa !12
  %49 = load i64, ptr %14, align 8, !tbaa !12
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %200

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %53 = load i64, ptr %14, align 8, !tbaa !12
  %54 = load i64, ptr %13, align 8, !tbaa !12
  %55 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 12
  %56 = load i64, ptr %55, align 8, !tbaa !22
  %57 = add i64 %54, %56
  %58 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %53, i64 noundef %57)
  %59 = load i64, ptr %13, align 8, !tbaa !12
  %60 = sub i64 %58, %59
  store i64 %60, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 0, ptr %16, align 8, !tbaa !12
  br label %61

61:                                               ; preds = %192, %52
  %62 = load i64, ptr %16, align 8, !tbaa !12
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %65, i32 0, i32 6
  %67 = load i64, ptr %66, align 8, !tbaa !29
  %68 = icmp ult i64 %62, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %61
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %194

70:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %71 = load i64, ptr %16, align 8, !tbaa !12
  %72 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 13
  %73 = getelementptr inbounds [2 x i64], ptr %72, i64 0, i64 0
  %74 = load i64, ptr %73, align 8, !tbaa !12
  %75 = add i64 %71, %74
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %77, i64 0, i64 0
  %79 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %78, i32 0, i32 6
  %80 = load i64, ptr %79, align 8, !tbaa !29
  %81 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %75, i64 noundef %80)
  store i64 %81, ptr %17, align 8, !tbaa !12
  %82 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 1
  %83 = getelementptr inbounds [4 x ptr], ptr %82, i64 0, i64 0
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load i64, ptr %13, align 8, !tbaa !12
  %87 = getelementptr inbounds float, ptr %85, i64 %86
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %89, i64 0, i64 0
  %91 = load i64, ptr %15, align 8, !tbaa !12
  %92 = load i64, ptr %16, align 8, !tbaa !12
  %93 = load i64, ptr %17, align 8, !tbaa !12
  %94 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 14
  %95 = getelementptr inbounds [2 x i64], ptr %94, i64 0, i64 0
  %96 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 8
  %97 = getelementptr inbounds [3 x ptr], ptr %96, i64 0, i64 0
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %13, align 8, !tbaa !12
  %100 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 16
  %101 = getelementptr inbounds [3 x i64], ptr %100, i64 0, i64 0
  %102 = load i64, ptr %101, align 8, !tbaa !12
  %103 = mul i64 %99, %102
  %104 = getelementptr inbounds float, ptr %98, i64 %103
  %105 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 9
  %106 = getelementptr inbounds [3 x ptr], ptr %105, i64 0, i64 0
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = load i64, ptr %13, align 8, !tbaa !12
  %109 = getelementptr inbounds float, ptr %107, i64 %108
  %110 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 10
  %111 = getelementptr inbounds [3 x ptr], ptr %110, i64 0, i64 0
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %13, align 8, !tbaa !12
  %114 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 15
  %115 = getelementptr inbounds [2 x i64], ptr %114, i64 0, i64 0
  %116 = load i64, ptr %115, align 8, !tbaa !12
  %117 = mul i64 %113, %116
  %118 = getelementptr inbounds float, ptr %112, i64 %117
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  call void %84(ptr noundef %87, ptr noundef nonnull align 8 dereferenceable(160) %90, i64 noundef %91, i64 noundef %92, i64 noundef %93, ptr noundef %95, ptr noundef %104, ptr noundef %109, ptr noundef %118, ptr noundef %119, i32 noundef 1)
  %120 = load i64, ptr %13, align 8, !tbaa !12
  %121 = load i64, ptr %15, align 8, !tbaa !12
  %122 = add i64 %120, %121
  %123 = load i64, ptr %14, align 8, !tbaa !12
  %124 = icmp eq i64 %122, %123
  br i1 %124, label %125, label %159

125:                                              ; preds = %70
  %126 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 1
  %127 = getelementptr inbounds [4 x ptr], ptr %126, i64 0, i64 1
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %131, i64 0, i64 1
  %133 = load i64, ptr %15, align 8, !tbaa !12
  %134 = load i64, ptr %16, align 8, !tbaa !12
  %135 = load i64, ptr %17, align 8, !tbaa !12
  %136 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 14
  %137 = getelementptr inbounds [2 x i64], ptr %136, i64 0, i64 0
  %138 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 8
  %139 = getelementptr inbounds [3 x ptr], ptr %138, i64 0, i64 1
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load i64, ptr %13, align 8, !tbaa !12
  %142 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 16
  %143 = getelementptr inbounds [3 x i64], ptr %142, i64 0, i64 1
  %144 = load i64, ptr %143, align 8, !tbaa !12
  %145 = mul i64 %141, %144
  %146 = getelementptr inbounds float, ptr %140, i64 %145
  %147 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 9
  %148 = getelementptr inbounds [3 x ptr], ptr %147, i64 0, i64 1
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 10
  %151 = getelementptr inbounds [3 x ptr], ptr %150, i64 0, i64 1
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i64, ptr %15, align 8, !tbaa !12
  %155 = load i64, ptr %14, align 8, !tbaa !12
  %156 = icmp eq i64 %154, %155
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, i32 1, i32 0
  call void %128(ptr noundef %129, ptr noundef nonnull align 8 dereferenceable(160) %132, i64 noundef %133, i64 noundef %134, i64 noundef %135, ptr noundef %137, ptr noundef %146, ptr noundef %149, ptr noundef %152, ptr noundef %153, i32 noundef %158)
  br label %192

159:                                              ; preds = %70
  %160 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 1
  %161 = getelementptr inbounds [4 x ptr], ptr %160, i64 0, i64 2
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %165, i64 0, i64 1
  %167 = load i64, ptr %15, align 8, !tbaa !12
  %168 = load i64, ptr %16, align 8, !tbaa !12
  %169 = load i64, ptr %17, align 8, !tbaa !12
  %170 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 14
  %171 = getelementptr inbounds [2 x i64], ptr %170, i64 0, i64 0
  %172 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 8
  %173 = getelementptr inbounds [3 x ptr], ptr %172, i64 0, i64 1
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %13, align 8, !tbaa !12
  %176 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 16
  %177 = getelementptr inbounds [3 x i64], ptr %176, i64 0, i64 1
  %178 = load i64, ptr %177, align 8, !tbaa !12
  %179 = mul i64 %175, %178
  %180 = getelementptr inbounds float, ptr %174, i64 %179
  %181 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 9
  %182 = getelementptr inbounds [3 x ptr], ptr %181, i64 0, i64 1
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 10
  %185 = getelementptr inbounds [3 x ptr], ptr %184, i64 0, i64 1
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load i64, ptr %13, align 8, !tbaa !12
  %189 = icmp eq i64 %188, 0
  %190 = zext i1 %189 to i64
  %191 = select i1 %189, i32 1, i32 0
  call void %162(ptr noundef %163, ptr noundef nonnull align 8 dereferenceable(160) %166, i64 noundef %167, i64 noundef %168, i64 noundef %169, ptr noundef %171, ptr noundef %180, ptr noundef %183, ptr noundef %186, ptr noundef %187, i32 noundef %191)
  br label %192

192:                                              ; preds = %159, %125
  %193 = load i64, ptr %17, align 8, !tbaa !12
  store i64 %193, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %61, !llvm.loop !30

194:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %195

195:                                              ; preds = %194
  %196 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 12
  %197 = load i64, ptr %196, align 8, !tbaa !22
  %198 = load i64, ptr %13, align 8, !tbaa !12
  %199 = add i64 %198, %197
  store i64 %199, ptr %13, align 8, !tbaa !12
  br label %47, !llvm.loop !32

200:                                              ; preds = %51
  %201 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 2
  %202 = load i64, ptr %201, align 8, !tbaa !33
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 %202
  store ptr %204, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 3
  %206 = load i64, ptr %205, align 8, !tbaa !34
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds float, ptr %207, i64 %206
  store ptr %208, ptr %8, align 8, !tbaa !5
  br label %209

209:                                              ; preds = %200
  %210 = load i64, ptr %11, align 8, !tbaa !12
  %211 = add i64 %210, 1
  store i64 %211, ptr %11, align 8, !tbaa !12
  br label %32, !llvm.loop !35

212:                                              ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %213

213:                                              ; preds = %212, %24
  ret void
}

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, !6, i64 0}
!10 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 168}
!14 = !{!"_ZTSN4Simd9ConvParamE", !15, i64 0, !19, i64 160, !11, i64 168, !20, i64 176}
!15 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !17, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !16, i64 56, !17, 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, !18, i64 152}
!16 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!17 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!18 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!19 = !{!"_ZTS8SimdBool", !7, i64 0}
!20 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!21 = !{!15, !11, i64 32}
!22 = !{!23, !11, i64 912}
!23 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution32fE", !24, i64 0, !7, i64 624, !11, i64 656, !11, i64 664, !7, i64 672, !7, i64 688, !7, i64 736, !7, i64 784, !7, i64 832, !7, i64 856, !7, i64 880, !11, i64 904, !11, i64 912, !7, i64 920, !7, i64 936, !7, i64 952, !7, i64 968}
!24 = !{!"_ZTSN4Simd25SynetMergedConvolution32fE", !25, i64 0, !26, i64 8, !10, i64 576, !27, i64 592}
!25 = !{!"_ZTSN4Simd9DeletableE"}
!26 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !11, i64 552, !19, i64 560}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !11, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!15, !11, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!23, !11, i64 656}
!34 = !{!23, !11, i64 664}
!35 = distinct !{!35, !31}


; 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
declare dso_local void @_ZN4Simd4Base25SynetMergedConvolution32f7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd25SynetMergedConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(624), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetMergedConvolution32fDc7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 688
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  tail call void @_ZN4Simd4Base25SynetMergedConvolution32f7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(992) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  br label %.loopexit

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = tail call noundef ptr @_ZN4Simd25SynetMergedConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(624) %0, ptr noundef %2)
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %.loopexit, label %.lr.ph67

.lr.ph67:                                         ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = getelementptr inbounds i8, ptr %0, i64 912
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = getelementptr inbounds i8, ptr %0, i64 920
  %18 = getelementptr inbounds i8, ptr %0, i64 624
  %19 = getelementptr inbounds i8, ptr %0, i64 936
  %20 = getelementptr inbounds i8, ptr %0, i64 832
  %21 = getelementptr inbounds i8, ptr %0, i64 968
  %22 = getelementptr inbounds i8, ptr %0, i64 856
  %23 = getelementptr inbounds i8, ptr %0, i64 880
  %24 = getelementptr inbounds i8, ptr %0, i64 952
  %25 = getelementptr inbounds i8, ptr %0, i64 640
  %26 = getelementptr inbounds i8, ptr %0, i64 192
  %27 = getelementptr inbounds i8, ptr %0, i64 840
  %28 = getelementptr inbounds i8, ptr %0, i64 976
  %29 = getelementptr inbounds i8, ptr %0, i64 864
  %30 = getelementptr inbounds i8, ptr %0, i64 888
  %31 = getelementptr inbounds i8, ptr %0, i64 632
  %32 = getelementptr inbounds i8, ptr %0, i64 656
  %33 = getelementptr inbounds i8, ptr %0, i64 664
  %34 = load i64, ptr %14, align 8, !tbaa !19
  %.not68 = icmp eq i64 %34, 0
  br i1 %.not68, label %.loopexit, label %.lr.ph67.split

.lr.ph67.split:                                   ; preds = %.lr.ph67, %._crit_edge62
  %35 = phi i64 [ %37, %._crit_edge62 ], [ %13, %.lr.ph67 ]
  %.065 = phi ptr [ %39, %._crit_edge62 ], [ %1, %.lr.ph67 ]
  %.05264 = phi ptr [ %41, %._crit_edge62 ], [ %3, %.lr.ph67 ]
  %.05363 = phi i64 [ %42, %._crit_edge62 ], [ 0, %.lr.ph67 ]
  %36 = load i64, ptr %14, align 8, !tbaa !19
  %.fr71 = freeze i64 %36
  %.not69 = icmp eq i64 %.fr71, 0
  br i1 %.not69, label %._crit_edge62, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %.lr.ph67.split
  %.pre = load i64, ptr %15, align 8, !tbaa !20
  br label %.lr.ph61

._crit_edge62.loopexit:                           ; preds = %._crit_edge
  %.pre74 = load i64, ptr %12, align 8, !tbaa !11
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %._crit_edge62.loopexit, %.lr.ph67.split
  %37 = phi i64 [ %.pre74, %._crit_edge62.loopexit ], [ %35, %.lr.ph67.split ]
  %38 = load i64, ptr %32, align 8, !tbaa !27
  %39 = getelementptr inbounds float, ptr %.065, i64 %38
  %40 = load i64, ptr %33, align 8, !tbaa !28
  %41 = getelementptr inbounds float, ptr %.05264, i64 %40
  %42 = add nuw i64 %.05363, 1
  %43 = icmp ult i64 %42, %37
  br i1 %43, label %.lr.ph67.split, label %.loopexit, !llvm.loop !29

.lr.ph61:                                         ; preds = %.lr.ph61.preheader, %._crit_edge
  %44 = phi i64 [ %79, %._crit_edge ], [ %.pre, %.lr.ph61.preheader ]
  %.05458 = phi i64 [ %80, %._crit_edge ], [ 0, %.lr.ph61.preheader ]
  %45 = add i64 %44, %.05458
  %46 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %.fr71, i64 noundef %45)
  %47 = sub i64 %46, %.05458
  %48 = load i64, ptr %16, align 8, !tbaa !32
  %.not70 = icmp eq i64 %48, 0
  br i1 %.not70, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph61
  %49 = getelementptr inbounds float, ptr %.065, i64 %.05458
  %50 = icmp eq i64 %46, %.fr71
  %51 = icmp eq i64 %.05458, 0
  %52 = zext i1 %51 to i32
  %53 = icmp eq i64 %47, %.fr71
  %54 = zext i1 %53 to i32
  br i1 %50, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %55 = phi i64 [ %77, %.lr.ph.split.us ], [ %48, %.lr.ph ]
  %.05157.us = phi i64 [ %58, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  %56 = load i64, ptr %17, align 8, !tbaa !33
  %57 = add i64 %56, %.05157.us
  %58 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %57, i64 noundef %55)
  %59 = load ptr, ptr %18, align 8, !tbaa !34
  %60 = load ptr, ptr %20, align 8, !tbaa !34
  %61 = load i64, ptr %21, align 8, !tbaa !33
  %62 = mul i64 %61, %.05458
  %63 = getelementptr inbounds float, ptr %60, i64 %62
  %64 = load ptr, ptr %22, align 8, !tbaa !34
  %65 = getelementptr inbounds float, ptr %64, i64 %.05458
  %66 = load ptr, ptr %23, align 8, !tbaa !34
  %67 = load i64, ptr %24, align 8, !tbaa !33
  %68 = mul i64 %67, %.05458
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  tail call void %59(ptr noundef %49, ptr noundef nonnull align 8 dereferenceable(160) %10, i64 noundef %47, i64 noundef %.05157.us, i64 noundef %58, ptr noundef nonnull %19, ptr noundef %63, ptr noundef %65, ptr noundef %69, ptr noundef %11, i32 noundef 1)
  %70 = load ptr, ptr %31, align 8, !tbaa !34
  %71 = load ptr, ptr %27, align 8, !tbaa !34
  %72 = load i64, ptr %28, align 8, !tbaa !33
  %73 = mul i64 %72, %.05458
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  %75 = load ptr, ptr %29, align 8, !tbaa !34
  %76 = load ptr, ptr %30, align 8, !tbaa !34
  tail call void %70(ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(160) %26, i64 noundef %47, i64 noundef %.05157.us, i64 noundef %58, ptr noundef nonnull %19, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %.05264, i32 noundef %54)
  %77 = load i64, ptr %16, align 8, !tbaa !32
  %78 = icmp ult i64 %58, %77
  br i1 %78, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %.lr.ph61
  %79 = load i64, ptr %15, align 8, !tbaa !20
  %80 = add i64 %79, %.05458
  %81 = icmp ult i64 %80, %.fr71
  br i1 %81, label %.lr.ph61, label %._crit_edge62.loopexit, !llvm.loop !36

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %82 = phi i64 [ %104, %.lr.ph.split ], [ %48, %.lr.ph ]
  %.05157 = phi i64 [ %85, %.lr.ph.split ], [ 0, %.lr.ph ]
  %83 = load i64, ptr %17, align 8, !tbaa !33
  %84 = add i64 %83, %.05157
  %85 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %84, i64 noundef %82)
  %86 = load ptr, ptr %18, align 8, !tbaa !34
  %87 = load ptr, ptr %20, align 8, !tbaa !34
  %88 = load i64, ptr %21, align 8, !tbaa !33
  %89 = mul i64 %88, %.05458
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load ptr, ptr %22, align 8, !tbaa !34
  %92 = getelementptr inbounds float, ptr %91, i64 %.05458
  %93 = load ptr, ptr %23, align 8, !tbaa !34
  %94 = load i64, ptr %24, align 8, !tbaa !33
  %95 = mul i64 %94, %.05458
  %96 = getelementptr inbounds float, ptr %93, i64 %95
  tail call void %86(ptr noundef %49, ptr noundef nonnull align 8 dereferenceable(160) %10, i64 noundef %47, i64 noundef %.05157, i64 noundef %85, ptr noundef nonnull %19, ptr noundef %90, ptr noundef %92, ptr noundef %96, ptr noundef %11, i32 noundef 1)
  %97 = load ptr, ptr %25, align 8, !tbaa !34
  %98 = load ptr, ptr %27, align 8, !tbaa !34
  %99 = load i64, ptr %28, align 8, !tbaa !33
  %100 = mul i64 %99, %.05458
  %101 = getelementptr inbounds float, ptr %98, i64 %100
  %102 = load ptr, ptr %29, align 8, !tbaa !34
  %103 = load ptr, ptr %30, align 8, !tbaa !34
  tail call void %97(ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(160) %26, i64 noundef %47, i64 noundef %.05157, i64 noundef %85, ptr noundef nonnull %19, ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %.05264, i32 noundef %52)
  %104 = load i64, ptr %16, align 8, !tbaa !32
  %105 = icmp ult i64 %85, %104
  br i1 %105, label %.lr.ph.split, label %._crit_edge, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge62, %.lr.ph67, %9, %8
  ret void
}

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, !7, i64 0}
!6 = !{!"_ZTSN4Simd5ArrayIfEE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, 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", !8, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!17 = !{!"_ZTS8SimdBool", !8, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !8, i64 0}
!19 = !{!13, !10, i64 32}
!20 = !{!21, !10, i64 912}
!21 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution32fE", !22, i64 0, !8, i64 624, !10, i64 656, !10, i64 664, !8, i64 672, !8, i64 688, !8, i64 736, !8, i64 784, !8, i64 832, !8, i64 856, !8, i64 880, !10, i64 904, !10, i64 912, !8, i64 920, !8, i64 936, !8, i64 952, !8, i64 968}
!22 = !{!"_ZTSN4Simd25SynetMergedConvolution32fE", !23, i64 0, !24, i64 8, !6, i64 576, !25, i64 592}
!23 = !{!"_ZTSN4Simd9DeletableE"}
!24 = !{!"_ZTSN4Simd13MergConvParamE", !8, i64 0, !10, i64 552, !17, i64 560}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !8, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!27 = !{!21, !10, i64 656}
!28 = !{!21, !10, i64 664}
!29 = distinct !{!29, !30, !31}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!"llvm.loop.unswitch.partial.disable"}
!32 = !{!13, !10, i64 40}
!33 = !{!10, !10, i64 0}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !30}
!36 = distinct !{!36, !30}


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