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

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

%"struct.Simd::GemmArgs" = type { i64, i64, i64, ptr, ptr, i64, ptr, i64, ptr, ptr, i64 }
%"class.Simd::SynetConvolution32f" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"struct.Simd::Array", float, float, ptr, ptr, ptr, %"struct.Simd::Runtime", %"struct.Simd::Runtime.3", %"struct.Simd::Array", ptr, ptr, ptr, %"class.std::__cxx11::basic_string" }
%"struct.Simd::Deletable" = type { ptr }
%"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::Runtime" = type { ptr, %"class.std::vector", %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Simd::Runtime.3" = type { ptr, %"class.std::vector.4", %"class.std::__cxx11::basic_string" }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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] }
%"class.Simd::Base::SynetConvolution32fGemmNT" = type { %"class.Simd::SynetConvolution32f", i64, i64, i64, i64, i64, i64, i64 }

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetConvolution32fGemmNT7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(496) %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 i64, align 8
  %11 = alloca %"struct.Simd::GemmArgs", align 8
  %12 = alloca %"struct.Simd::GemmArgs", 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
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %14 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 1
  store ptr %14, ptr %9, align 8, !tbaa !5
  %15 = load ptr, ptr %9, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %15, i32 0, i32 1
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %22

19:                                               ; preds = %4
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call noundef ptr @_ZN4Simd19SynetConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(440) %13, ptr noundef %20)
  store ptr %21, ptr %7, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %19, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !18
  br label %23

23:                                               ; preds = %123, %22
  %24 = load i64, ptr %10, align 8, !tbaa !18
  %25 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 4
  %26 = load i64, ptr %25, align 8, !tbaa !19
  %27 = icmp ult i64 %24, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %126

29:                                               ; preds = %23
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %71

34:                                               ; preds = %29
  %35 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #4
  %36 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !37
  %38 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !38
  %40 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %41 = load i64, ptr %40, align 8, !tbaa !39
  %42 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 4
  %43 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 5
  %44 = load ptr, ptr %43, align 8, !tbaa !40
  %45 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !39
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %49 = load i64, ptr %48, align 8, !tbaa !39
  %50 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 3
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !38
  call void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88) %11, i64 noundef %37, i64 noundef %39, i64 noundef %41, ptr noundef %42, ptr noundef %44, i64 noundef %46, ptr noundef %47, i64 noundef %49, ptr noundef %50, ptr noundef %51, i64 noundef %53)
  call void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64) %35, ptr noundef nonnull align 8 dereferenceable(88) %11)
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #4
  %54 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 13
  %55 = load ptr, ptr %54, align 8, !tbaa !41
  %56 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 6
  %57 = load ptr, ptr %56, align 8, !tbaa !42
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %58, i32 0, i32 6
  %60 = load i64, ptr %59, align 8, !tbaa !43
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %61, i32 0, i32 7
  %63 = load i64, ptr %62, align 8, !tbaa !44
  %64 = mul i64 %60, %63
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %65, i32 0, i32 21
  %67 = load i32, ptr %66, align 8, !tbaa !45
  %68 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 7
  %69 = load ptr, ptr %68, align 8, !tbaa !46
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void %55(ptr noundef %57, i64 noundef 1, i64 noundef %64, i32 noundef %67, ptr noundef %69, i32 noundef 0, ptr noundef %70)
  br label %114

71:                                               ; preds = %29
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 1
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4Simd4Base25SynetConvolution32fGemmNT8ImgToRowEPKfRKNS_9ConvParamEPf(ptr noundef %72, ptr noundef nonnull align 8 dereferenceable(180) %73, ptr noundef %74)
  %75 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #4
  %76 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !37
  %78 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 2
  %79 = load i64, ptr %78, align 8, !tbaa !38
  %80 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !39
  %82 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 4
  %83 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 5
  %84 = load ptr, ptr %83, align 8, !tbaa !40
  %85 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %86 = load i64, ptr %85, align 8, !tbaa !39
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 3
  %89 = load i64, ptr %88, align 8, !tbaa !39
  %90 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 3
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 2
  %93 = load i64, ptr %92, align 8, !tbaa !38
  call void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88) %12, i64 noundef %77, i64 noundef %79, i64 noundef %81, ptr noundef %82, ptr noundef %84, i64 noundef %86, ptr noundef %87, i64 noundef %89, ptr noundef %90, ptr noundef %91, i64 noundef %93)
  call void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64) %75, ptr noundef nonnull align 8 dereferenceable(88) %12)
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #4
  %94 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 13
  %95 = load ptr, ptr %94, align 8, !tbaa !41
  %96 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 6
  %97 = load ptr, ptr %96, align 8, !tbaa !42
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %98, i32 0, i32 5
  %100 = load i64, ptr %99, align 8, !tbaa !47
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %101, i32 0, i32 6
  %103 = load i64, ptr %102, align 8, !tbaa !43
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %104, i32 0, i32 7
  %106 = load i64, ptr %105, align 8, !tbaa !44
  %107 = mul i64 %103, %106
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %108, i32 0, i32 21
  %110 = load i32, ptr %109, align 8, !tbaa !45
  %111 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 7
  %112 = load ptr, ptr %111, align 8, !tbaa !46
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void %95(ptr noundef %97, i64 noundef %100, i64 noundef %107, i32 noundef %110, ptr noundef %112, i32 noundef 0, ptr noundef %113)
  br label %114

114:                                              ; preds = %71, %34
  %115 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 5
  %116 = load i64, ptr %115, align 8, !tbaa !48
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds float, ptr %117, i64 %116
  store ptr %118, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fGemmNT", ptr %13, i32 0, i32 7
  %120 = load i64, ptr %119, align 8, !tbaa !49
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds float, ptr %121, i64 %120
  store ptr %122, ptr %8, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %114
  %124 = load i64, ptr %10, align 8, !tbaa !18
  %125 = add i64 %124, 1
  store i64 %125, ptr %10, align 8, !tbaa !18
  br label %23, !llvm.loop !50

126:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !16, i64 160}
!10 = !{!"_ZTSN4Simd9ConvParamE", !11, i64 0, !16, i64 160, !12, i64 168, !17, i64 176}
!11 = !{!"_ZTS25SimdConvolutionParameters", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !14, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !14, i64 60, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !15, i64 152}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!16 = !{!"_ZTS8SimdBool", !7, i64 0}
!17 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !12, i64 464}
!20 = !{!"_ZTSN4Simd4Base25SynetConvolution32fGemmNTE", !21, i64 0, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488}
!21 = !{!"_ZTSN4Simd19SynetConvolution32fE", !22, i64 0, !10, i64 8, !23, i64 192, !24, i64 208, !24, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !25, i64 240, !32, i64 304, !23, i64 368, !6, i64 384, !6, i64 392, !6, i64 400, !30, i64 408}
!22 = !{!"_ZTSN4Simd9DeletableE"}
!23 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !12, i64 8}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTSN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEEE", !6, i64 0, !26, i64 8, !30, i64 32}
!26 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !12, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!"_ZTSN4Simd7RuntimeINS_10GemmCbFuncENS_10GemmCbArgsEEE", !6, i64 0, !33, i64 8, !30, i64 32}
!33 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!20, !12, i64 440}
!38 = !{!20, !12, i64 448}
!39 = !{!20, !12, i64 456}
!40 = !{!21, !6, i64 216}
!41 = !{!21, !6, i64 400}
!42 = !{!21, !6, i64 224}
!43 = !{!11, !12, i64 40}
!44 = !{!11, !12, i64 48}
!45 = !{!11, !15, i64 152}
!46 = !{!21, !6, i64 232}
!47 = !{!11, !12, i64 32}
!48 = !{!20, !12, i64 472}
!49 = !{!20, !12, i64 488}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}


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

%"struct.Simd::GemmArgs" = type { i64, i64, i64, ptr, ptr, i64, ptr, i64, ptr, ptr, i64 }

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

; Function Attrs: mustprogress 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 noundef ptr @_ZN4Simd19SynetConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetConvolution32fGemmNT7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(496) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca %"struct.Simd::GemmArgs", align 8
  %6 = alloca %"struct.Simd::GemmArgs", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 168
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %4
  %12 = tail call noundef ptr @_ZN4Simd19SynetConvolution32f6BufferEPf(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef %2)
  br label %13

13:                                               ; preds = %11, %4
  %.024 = phi ptr [ %12, %11 ], [ %2, %4 ]
  %14 = getelementptr inbounds i8, ptr %0, i64 464
  %15 = load i64, ptr %14, align 8, !tbaa !16
  %.not28 = icmp eq i64 %15, 0
  br i1 %.not28, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 240
  %17 = getelementptr inbounds i8, ptr %0, i64 440
  %18 = getelementptr inbounds i8, ptr %0, i64 448
  %19 = getelementptr inbounds i8, ptr %0, i64 456
  %20 = getelementptr inbounds i8, ptr %0, i64 212
  %21 = getelementptr inbounds i8, ptr %0, i64 216
  %22 = getelementptr inbounds i8, ptr %0, i64 208
  %23 = getelementptr inbounds i8, ptr %0, i64 400
  %24 = getelementptr inbounds i8, ptr %0, i64 224
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  %27 = getelementptr inbounds i8, ptr %0, i64 160
  %28 = getelementptr inbounds i8, ptr %0, i64 232
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = getelementptr inbounds i8, ptr %0, i64 472
  %31 = getelementptr inbounds i8, ptr %0, i64 488
  br label %32

._crit_edge:                                      ; preds = %59, %13
  ret void

32:                                               ; preds = %.lr.ph, %59
  %.027 = phi i64 [ 0, %.lr.ph ], [ %64, %59 ]
  %.02226 = phi ptr [ %1, %.lr.ph ], [ %61, %59 ]
  %.02325 = phi ptr [ %3, %.lr.ph ], [ %63, %59 ]
  %33 = load i32, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %46, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #4
  %35 = load i64, ptr %17, align 8, !tbaa !35
  %36 = load i64, ptr %18, align 8, !tbaa !36
  %37 = load i64, ptr %19, align 8, !tbaa !37
  %38 = load ptr, ptr %21, align 8, !tbaa !38
  call void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88) %5, i64 noundef %35, i64 noundef %36, i64 noundef %37, ptr noundef nonnull %20, ptr noundef %38, i64 noundef %37, ptr noundef %.02226, i64 noundef %37, ptr noundef nonnull %22, ptr noundef %.02325, i64 noundef %36)
  call void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef nonnull align 8 dereferenceable(88) %5)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #4
  %39 = load ptr, ptr %23, align 8, !tbaa !39
  %40 = load ptr, ptr %24, align 8, !tbaa !40
  %41 = load i64, ptr %25, align 8, !tbaa !41
  %42 = load i64, ptr %26, align 8, !tbaa !42
  %43 = mul i64 %42, %41
  %44 = load i32, ptr %27, align 8, !tbaa !43
  %45 = load ptr, ptr %28, align 8, !tbaa !44
  call void %39(ptr noundef %40, i64 noundef 1, i64 noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef 0, ptr noundef %.02325)
  br label %59

46:                                               ; preds = %32
  call void @_ZN4Simd4Base25SynetConvolution32fGemmNT8ImgToRowEPKfRKNS_9ConvParamEPf(ptr noundef %.02226, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef %.024)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #4
  %47 = load i64, ptr %17, align 8, !tbaa !35
  %48 = load i64, ptr %18, align 8, !tbaa !36
  %49 = load i64, ptr %19, align 8, !tbaa !37
  %50 = load ptr, ptr %21, align 8, !tbaa !38
  call void @_ZN4Simd8GemmArgsC2EmmmPKfS2_mS2_mS2_Pfm(ptr noundef nonnull align 8 dereferenceable(88) %6, i64 noundef %47, i64 noundef %48, i64 noundef %49, ptr noundef nonnull %20, ptr noundef %50, i64 noundef %49, ptr noundef %.024, i64 noundef %49, ptr noundef nonnull %22, ptr noundef %.02325, i64 noundef %48)
  call void @_ZN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEE3RunERKS2_(ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef nonnull align 8 dereferenceable(88) %6)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #4
  %51 = load ptr, ptr %23, align 8, !tbaa !39
  %52 = load ptr, ptr %24, align 8, !tbaa !40
  %53 = load i64, ptr %29, align 8, !tbaa !45
  %54 = load i64, ptr %25, align 8, !tbaa !41
  %55 = load i64, ptr %26, align 8, !tbaa !42
  %56 = mul i64 %55, %54
  %57 = load i32, ptr %27, align 8, !tbaa !43
  %58 = load ptr, ptr %28, align 8, !tbaa !44
  call void %51(ptr noundef %52, i64 noundef %53, i64 noundef %56, i32 noundef %57, ptr noundef %58, i32 noundef 0, ptr noundef %.02325)
  br label %59

59:                                               ; preds = %46, %34
  %60 = load i64, ptr %30, align 8, !tbaa !46
  %61 = getelementptr inbounds float, ptr %.02226, i64 %60
  %62 = load i64, ptr %31, align 8, !tbaa !47
  %63 = getelementptr inbounds float, ptr %.02325, i64 %62
  %64 = add nuw i64 %.027, 1
  %65 = load i64, ptr %14, align 8, !tbaa !16
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %32, label %._crit_edge, !llvm.loop !48
}

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

attributes #0 = { mustprogress 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !14, i64 160}
!6 = !{!"_ZTSN4Simd9ConvParamE", !7, i64 0, !14, i64 160, !8, i64 168, !15, i64 176}
!7 = !{!"_ZTS25SimdConvolutionParameters", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !12, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !12, i64 60, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !13, i64 152}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS18SimdTensorDataType", !9, i64 0}
!12 = !{!"_ZTS20SimdTensorFormatType", !9, i64 0}
!13 = !{!"_ZTS29SimdConvolutionActivationType", !9, i64 0}
!14 = !{!"_ZTS8SimdBool", !9, i64 0}
!15 = !{!"_ZTS26SimdSynetCompatibilityType", !9, i64 0}
!16 = !{!17, !8, i64 464}
!17 = !{!"_ZTSN4Simd4Base25SynetConvolution32fGemmNTE", !18, i64 0, !8, i64 440, !8, i64 448, !8, i64 456, !8, i64 464, !8, i64 472, !8, i64 480, !8, i64 488}
!18 = !{!"_ZTSN4Simd19SynetConvolution32fE", !19, i64 0, !6, i64 8, !20, i64 192, !22, i64 208, !22, i64 212, !21, i64 216, !21, i64 224, !21, i64 232, !23, i64 240, !30, i64 304, !20, i64 368, !21, i64 384, !21, i64 392, !21, i64 400, !28, i64 408}
!19 = !{!"_ZTSN4Simd9DeletableE"}
!20 = !{!"_ZTSN4Simd5ArrayIfEE", !21, i64 0, !8, i64 8}
!21 = !{!"any pointer", !9, i64 0}
!22 = !{!"float", !9, i64 0}
!23 = !{!"_ZTSN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEEE", !21, i64 0, !24, i64 8, !28, i64 32}
!24 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !8, i64 8, !9, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!30 = !{!"_ZTSN4Simd7RuntimeINS_10GemmCbFuncENS_10GemmCbArgsEEE", !21, i64 0, !31, i64 8, !28, i64 32}
!31 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!35 = !{!17, !8, i64 440}
!36 = !{!17, !8, i64 448}
!37 = !{!17, !8, i64 456}
!38 = !{!18, !21, i64 216}
!39 = !{!18, !21, i64 400}
!40 = !{!18, !21, i64 224}
!41 = !{!7, !8, i64 40}
!42 = !{!7, !8, i64 48}
!43 = !{!7, !13, i64 152}
!44 = !{!18, !21, i64 232}
!45 = !{!7, !8, i64 32}
!46 = !{!17, !8, i64 472}
!47 = !{!17, !8, i64 488}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}


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