; 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 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef, i64 noundef) #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 @_ZN4Simd4Base27SynetMergedConvolution32fCd7ForwardEPKfPfS4_(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
  %18 = alloca i64, align 8
  %19 = 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
  %20 = load ptr, ptr %5, align 8
  %21 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 5
  %22 = getelementptr inbounds [3 x %"struct.Simd::Array"], ptr %21, i64 0, i64 0
  %23 = getelementptr inbounds %"struct.Simd::Array", ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %30

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

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %31 = getelementptr inbounds %"class.Simd::SynetMergedConvolution32f", ptr %20, i32 0, i32 1
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef ptr @_ZN4Simd25SynetMergedConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(624) %20, ptr noundef %32)
  store ptr %33, 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 %34

34:                                               ; preds = %209, %30
  %35 = load i64, ptr %11, align 8, !tbaa !12
  %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 0
  %39 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %38, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !13
  %41 = icmp ult i64 %35, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %34
  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
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %45, i64 0, i64 1
  %47 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %46, i32 0, i32 5
  %48 = load i64, ptr %47, align 8, !tbaa !21
  store i64 %48, ptr %14, align 8, !tbaa !12
  br label %49

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

53:                                               ; preds = %49
  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

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %55 = load i64, ptr %14, align 8, !tbaa !12
  %56 = load i64, ptr %13, align 8, !tbaa !12
  %57 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 12
  %58 = load i64, ptr %57, align 8, !tbaa !22
  %59 = add i64 %56, %58
  %60 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %55, i64 noundef %59)
  %61 = load i64, ptr %13, align 8, !tbaa !12
  %62 = sub i64 %60, %61
  store i64 %62, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store i64 0, ptr %17, align 8, !tbaa !12
  br label %63

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

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

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %73 = load i64, ptr %16, align 8, !tbaa !12
  %74 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 13
  %75 = getelementptr inbounds [2 x i64], ptr %74, i64 0, i64 1
  %76 = load i64, ptr %75, align 8, !tbaa !12
  %77 = add i64 %73, %76
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %79, i64 0, i64 1
  %81 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %80, i32 0, i32 6
  %82 = load i64, ptr %81, align 8, !tbaa !29
  %83 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %77, i64 noundef %82)
  store i64 %83, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %84 = load i64, ptr %17, align 8, !tbaa !12
  %85 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 13
  %86 = getelementptr inbounds [2 x i64], ptr %85, i64 0, i64 0
  %87 = load i64, ptr %86, align 8, !tbaa !12
  %88 = add i64 %84, %87
  %89 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 13
  %90 = getelementptr inbounds [2 x i64], ptr %89, i64 0, i64 1
  %91 = load i64, ptr %90, align 8, !tbaa !12
  %92 = sub i64 %91, 1
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %94, i64 0, i64 1
  %96 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %95, i32 0, i32 14
  %97 = load i64, ptr %96, align 8, !tbaa !30
  %98 = mul i64 %92, %97
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %100, i64 0, i64 1
  %102 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %101, i32 0, i32 10
  %103 = load i64, ptr %102, align 8, !tbaa !31
  %104 = add i64 %98, %103
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %106, i64 0, i64 1
  %108 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %107, i32 0, i32 16
  %109 = load i64, ptr %108, align 8, !tbaa !32
  %110 = sub i64 %104, %109
  %111 = call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef %88, i64 noundef %110)
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %113, i64 0, i64 0
  %115 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %114, i32 0, i32 6
  %116 = load i64, ptr %115, align 8, !tbaa !29
  %117 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %111, i64 noundef %116)
  store i64 %117, ptr %19, align 8, !tbaa !12
  %118 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 1
  %119 = getelementptr inbounds [4 x ptr], ptr %118, i64 0, i64 0
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %123, i64 0, i64 0
  %125 = load i64, ptr %15, align 8, !tbaa !12
  %126 = load i64, ptr %17, align 8, !tbaa !12
  %127 = load i64, ptr %19, align 8, !tbaa !12
  %128 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 14
  %129 = getelementptr inbounds [2 x i64], ptr %128, i64 0, i64 0
  %130 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 8
  %131 = getelementptr inbounds [3 x ptr], ptr %130, i64 0, i64 0
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i64, ptr %13, align 8, !tbaa !12
  %134 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 16
  %135 = getelementptr inbounds [3 x i64], ptr %134, i64 0, i64 0
  %136 = load i64, ptr %135, align 8, !tbaa !12
  %137 = mul i64 %133, %136
  %138 = getelementptr inbounds float, ptr %132, i64 %137
  %139 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 9
  %140 = getelementptr inbounds [3 x ptr], ptr %139, i64 0, i64 0
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = load i64, ptr %13, align 8, !tbaa !12
  %143 = getelementptr inbounds float, ptr %141, i64 %142
  %144 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 10
  %145 = getelementptr inbounds [3 x ptr], ptr %144, i64 0, i64 0
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %13, align 8, !tbaa !12
  %148 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 15
  %149 = getelementptr inbounds [2 x i64], ptr %148, i64 0, i64 0
  %150 = load i64, ptr %149, align 8, !tbaa !12
  %151 = mul i64 %147, %150
  %152 = getelementptr inbounds float, ptr %146, i64 %151
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  call void %120(ptr noundef %121, ptr noundef nonnull align 8 dereferenceable(160) %124, i64 noundef %125, i64 noundef %126, i64 noundef %127, ptr noundef %129, ptr noundef %138, ptr noundef %143, ptr noundef %152, ptr noundef %153, i32 noundef 1)
  %154 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 1
  %155 = getelementptr inbounds [4 x ptr], ptr %154, i64 0, i64 1
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %159, i64 0, i64 1
  %161 = load i64, ptr %15, align 8, !tbaa !12
  %162 = load i64, ptr %16, align 8, !tbaa !12
  %163 = load i64, ptr %18, align 8, !tbaa !12
  %164 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 14
  %165 = getelementptr inbounds [2 x i64], ptr %164, i64 0, i64 0
  %166 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 8
  %167 = getelementptr inbounds [3 x ptr], ptr %166, i64 0, i64 1
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = load i64, ptr %13, align 8, !tbaa !12
  %170 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 16
  %171 = getelementptr inbounds [3 x i64], ptr %170, i64 0, i64 1
  %172 = load i64, ptr %171, align 8, !tbaa !12
  %173 = mul i64 %169, %172
  %174 = getelementptr inbounds float, ptr %168, i64 %173
  %175 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 9
  %176 = getelementptr inbounds [3 x ptr], ptr %175, i64 0, i64 1
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = load i64, ptr %13, align 8, !tbaa !12
  %179 = getelementptr inbounds float, ptr %177, i64 %178
  %180 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 10
  %181 = getelementptr inbounds [3 x ptr], ptr %180, i64 0, i64 1
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load i64, ptr %13, align 8, !tbaa !12
  %184 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 15
  %185 = getelementptr inbounds [2 x i64], ptr %184, i64 0, i64 1
  %186 = load i64, ptr %185, align 8, !tbaa !12
  %187 = mul i64 %183, %186
  %188 = getelementptr inbounds float, ptr %182, i64 %187
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = load i64, ptr %13, align 8, !tbaa !12
  %191 = getelementptr inbounds float, ptr %189, i64 %190
  call void %156(ptr noundef %157, ptr noundef nonnull align 8 dereferenceable(160) %160, i64 noundef %161, i64 noundef %162, i64 noundef %163, ptr noundef %165, ptr noundef %174, ptr noundef %179, ptr noundef %188, ptr noundef %191, i32 noundef 1)
  %192 = load i64, ptr %18, align 8, !tbaa !12
  store i64 %192, ptr %16, align 8, !tbaa !12
  %193 = load i64, ptr %19, align 8, !tbaa !12
  store i64 %193, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %63, !llvm.loop !33

194:                                              ; preds = %71
  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 %20, 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 %49, !llvm.loop !35

200:                                              ; preds = %53
  %201 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %20, i32 0, i32 2
  %202 = load i64, ptr %201, align 8, !tbaa !36
  %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 %20, i32 0, i32 3
  %206 = load i64, ptr %205, align 8, !tbaa !37
  %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 %34, !llvm.loop !38

212:                                              ; preds = %42
  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, %26
  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 = !{!15, !11, i64 96}
!31 = !{!15, !11, i64 64}
!32 = !{!15, !11, i64 112}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{!23, !11, i64 656}
!37 = !{!23, !11, i64 664}
!38 = distinct !{!38, !34}


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

; 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 @_ZN4Simd4Base27SynetMergedConvolution32fCd7ForwardEPKfPfS4_(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.ph63

.lr.ph63:                                         ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 192
  %15 = getelementptr inbounds i8, ptr %0, i64 224
  %16 = getelementptr inbounds i8, ptr %0, i64 912
  %17 = getelementptr inbounds i8, ptr %0, i64 232
  %18 = getelementptr inbounds i8, ptr %0, i64 920
  %19 = getelementptr inbounds i8, ptr %0, i64 928
  %20 = getelementptr inbounds i8, ptr %0, i64 288
  %21 = getelementptr inbounds i8, ptr %0, i64 256
  %22 = getelementptr inbounds i8, ptr %0, i64 304
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = getelementptr inbounds i8, ptr %0, i64 624
  %25 = getelementptr inbounds i8, ptr %0, i64 936
  %26 = getelementptr inbounds i8, ptr %0, i64 832
  %27 = getelementptr inbounds i8, ptr %0, i64 968
  %28 = getelementptr inbounds i8, ptr %0, i64 856
  %29 = getelementptr inbounds i8, ptr %0, i64 880
  %30 = getelementptr inbounds i8, ptr %0, i64 952
  %31 = getelementptr inbounds i8, ptr %0, i64 632
  %32 = getelementptr inbounds i8, ptr %0, i64 840
  %33 = getelementptr inbounds i8, ptr %0, i64 976
  %34 = getelementptr inbounds i8, ptr %0, i64 864
  %35 = getelementptr inbounds i8, ptr %0, i64 888
  %36 = getelementptr inbounds i8, ptr %0, i64 960
  %37 = getelementptr inbounds i8, ptr %0, i64 656
  %38 = getelementptr inbounds i8, ptr %0, i64 664
  %39 = load i64, ptr %15, align 8, !tbaa !19
  %.not64 = icmp eq i64 %39, 0
  br i1 %.not64, label %.loopexit, label %.lr.ph63.split

.lr.ph63.splitthread-pre-split:                   ; preds = %._crit_edge58
  %40 = load i64, ptr %38, align 8, !tbaa !20
  %41 = getelementptr inbounds float, ptr %.04660, i64 %40
  %42 = load i64, ptr %37, align 8, !tbaa !27
  %43 = getelementptr inbounds float, ptr %.061, i64 %42
  %.pr = load i64, ptr %15, align 8, !tbaa !19
  br label %.lr.ph63.split

.lr.ph63.split:                                   ; preds = %.lr.ph63, %.lr.ph63.splitthread-pre-split
  %44 = phi i64 [ %.pr, %.lr.ph63.splitthread-pre-split ], [ %39, %.lr.ph63 ]
  %45 = phi i64 [ %46, %.lr.ph63.splitthread-pre-split ], [ %13, %.lr.ph63 ]
  %.061 = phi ptr [ %43, %.lr.ph63.splitthread-pre-split ], [ %1, %.lr.ph63 ]
  %.04660 = phi ptr [ %41, %.lr.ph63.splitthread-pre-split ], [ %3, %.lr.ph63 ]
  %.04959 = phi i64 [ %47, %.lr.ph63.splitthread-pre-split ], [ 0, %.lr.ph63 ]
  %.not65 = icmp eq i64 %44, 0
  br i1 %.not65, label %._crit_edge58, label %.lr.ph57.preheader

.lr.ph57.preheader:                               ; preds = %.lr.ph63.split
  %.pre = load i64, ptr %16, align 8, !tbaa !28
  br label %.lr.ph57

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

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit, %.lr.ph63.split
  %46 = phi i64 [ %.pre68, %._crit_edge58.loopexit ], [ %45, %.lr.ph63.split ]
  %47 = add nuw i64 %.04959, 1
  %48 = icmp ult i64 %47, %46
  br i1 %48, label %.lr.ph63.splitthread-pre-split, label %.loopexit, !llvm.loop !29

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %._crit_edge
  %49 = phi i64 [ %55, %._crit_edge ], [ %.pre, %.lr.ph57.preheader ]
  %.05055 = phi i64 [ %56, %._crit_edge ], [ 0, %.lr.ph57.preheader ]
  %50 = add i64 %49, %.05055
  %51 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %44, i64 noundef %50)
  %52 = sub i64 %51, %.05055
  %53 = load i64, ptr %17, align 8, !tbaa !32
  %.not66 = icmp eq i64 %53, 0
  br i1 %.not66, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph57
  %54 = getelementptr inbounds float, ptr %.04660, i64 %.05055
  br label %58

._crit_edge:                                      ; preds = %58, %.lr.ph57
  %55 = load i64, ptr %16, align 8, !tbaa !28
  %56 = add i64 %55, %.05055
  %57 = icmp ult i64 %56, %44
  br i1 %57, label %.lr.ph57, label %._crit_edge58.loopexit, !llvm.loop !33

58:                                               ; preds = %.lr.ph, %58
  %59 = phi i64 [ %53, %.lr.ph ], [ %98, %58 ]
  %.04754 = phi i64 [ 0, %.lr.ph ], [ %75, %58 ]
  %.04853 = phi i64 [ 0, %.lr.ph ], [ %62, %58 ]
  %60 = load i64, ptr %19, align 8, !tbaa !34
  %61 = add i64 %60, %.04853
  %62 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %61, i64 noundef %59)
  %63 = load i64, ptr %18, align 8, !tbaa !34
  %64 = add i64 %63, %.04754
  %65 = load i64, ptr %19, align 8, !tbaa !34
  %66 = add i64 %65, -1
  %67 = load i64, ptr %20, align 8, !tbaa !35
  %68 = mul i64 %66, %67
  %69 = load i64, ptr %21, align 8, !tbaa !36
  %70 = add i64 %68, %69
  %71 = load i64, ptr %22, align 8, !tbaa !37
  %72 = sub i64 %70, %71
  %73 = tail call noundef i64 @_ZN4Simd3MaxImEET_S1_S1_(i64 noundef %64, i64 noundef %72)
  %74 = load i64, ptr %23, align 8, !tbaa !32
  %75 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %73, i64 noundef %74)
  %76 = load ptr, ptr %24, align 8, !tbaa !38
  %77 = load ptr, ptr %26, align 8, !tbaa !38
  %78 = load i64, ptr %27, align 8, !tbaa !34
  %79 = mul i64 %78, %.05055
  %80 = getelementptr inbounds float, ptr %77, i64 %79
  %81 = load ptr, ptr %28, align 8, !tbaa !38
  %82 = getelementptr inbounds float, ptr %81, i64 %.05055
  %83 = load ptr, ptr %29, align 8, !tbaa !38
  %84 = load i64, ptr %30, align 8, !tbaa !34
  %85 = mul i64 %84, %.05055
  %86 = getelementptr inbounds float, ptr %83, i64 %85
  tail call void %76(ptr noundef %.061, ptr noundef nonnull align 8 dereferenceable(160) %10, i64 noundef %52, i64 noundef %.04754, i64 noundef %75, ptr noundef nonnull %25, ptr noundef %80, ptr noundef %82, ptr noundef %86, ptr noundef %11, i32 noundef 1)
  %87 = load ptr, ptr %31, align 8, !tbaa !38
  %88 = load ptr, ptr %32, align 8, !tbaa !38
  %89 = load i64, ptr %33, align 8, !tbaa !34
  %90 = mul i64 %89, %.05055
  %91 = getelementptr inbounds float, ptr %88, i64 %90
  %92 = load ptr, ptr %34, align 8, !tbaa !38
  %93 = getelementptr inbounds float, ptr %92, i64 %.05055
  %94 = load ptr, ptr %35, align 8, !tbaa !38
  %95 = load i64, ptr %36, align 8, !tbaa !34
  %96 = mul i64 %95, %.05055
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  tail call void %87(ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(160) %14, i64 noundef %52, i64 noundef %.04853, i64 noundef %62, ptr noundef nonnull %25, ptr noundef %91, ptr noundef %93, ptr noundef %97, ptr noundef %54, i32 noundef 1)
  %98 = load i64, ptr %17, align 8, !tbaa !32
  %99 = icmp ult i64 %62, %98
  br i1 %99, label %58, label %._crit_edge, !llvm.loop !39

.loopexit:                                        ; preds = %._crit_edge58, %.lr.ph63, %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 664}
!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 912}
!29 = distinct !{!29, !30, !31}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!"llvm.loop.unswitch.partial.disable"}
!32 = !{!13, !10, i64 40}
!33 = distinct !{!33, !30}
!34 = !{!10, !10, i64 0}
!35 = !{!13, !10, i64 96}
!36 = !{!13, !10, i64 64}
!37 = !{!13, !10, i64 112}
!38 = !{!7, !7, i64 0}
!39 = distinct !{!39, !30}


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