; LLVM IR from XiaoMi/mace :: micro/ops/nhwc/base/depthwise_conv_2d_base.ll (ZN5micro3ops19DepthwiseConv2dBase3RunEv)

; 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.micro::base::Logger" = type { i32 }
%"class.micro::ops::Conv2dBase" = type <{ %"class.micro::ops::FilterOpBase", ptr, ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], ptr, %"class.micro::ops::Activation", [4 x i8] }>
%"class.micro::ops::FilterOpBase" = type { %"class.micro::framework::Operator", i32, ptr, [2 x i32], [2 x i32] }
%"class.micro::framework::Operator" = type { ptr, ptr, ptr, ptr }
%"class.micro::ops::Activation" = type { i32, float, float }

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops19DepthwiseConv2dBase3RunEv(ptr noundef nonnull align 8 dereferenceable(156) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca [4 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca %"class.micro::base::Logger", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.micro::base::Logger", align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.micro::base::Logger", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 16, i1 false)
  %15 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 6
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  call void @_ZN5micro3ops12FilterOpBase24InitPaddingAndOutputSizeEPKiS3_NS0_9RoundTypeEPi(ptr noundef nonnull align 8 dereferenceable(64) %14, ptr noundef %16, ptr noundef %18, i32 noundef 0, ptr noundef %19)
  %20 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds i32, ptr %21, i64 3
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 3
  %25 = load i32, ptr %24, align 4, !tbaa !19
  %26 = mul nsw i32 %25, %23
  store i32 %26, ptr %24, align 4, !tbaa !19
  %27 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  %28 = call noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 0, i32 noundef 4, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %29 = load ptr, ptr %14, align 8, !tbaa !20
  %30 = getelementptr inbounds ptr, ptr %29, i64 2
  %31 = load ptr, ptr %30, align 8
  %32 = call noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(156) %14, ptr noundef nonnull align 4 dereferenceable(16) %4)
  store i32 %32, ptr %5, align 4, !tbaa !22
  %33 = load i32, ptr %5, align 4, !tbaa !22
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %53

35:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef @.str, i32 noundef 31, i32 noundef 1)
  %36 = load ptr, ptr %14, align 8, !tbaa !20
  %37 = getelementptr inbounds ptr, ptr %36, i64 2
  %38 = load ptr, ptr %37, align 8
  %39 = invoke noundef i32 %38(ptr noundef nonnull align 8 dereferenceable(156) %14, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %40 unwind label %49

40:                                               ; preds = %35
  %41 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %39)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef @.str.1)
          to label %44 unwind label %49

44:                                               ; preds = %42
  %45 = load i32, ptr %5, align 4, !tbaa !22
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %43, i32 noundef %45)
          to label %47 unwind label %49

47:                                               ; preds = %44
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %48 = load i32, ptr %5, align 4, !tbaa !22
  store i32 %48, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %54

49:                                               ; preds = %44, %42, %40, %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %153

53:                                               ; preds = %1
  store i32 0, ptr %9, align 4
  br label %54

54:                                               ; preds = %53, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %55 = load i32, ptr %9, align 4
  switch i32 %55, label %151 [
    i32 0, label %56
  ]

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 9
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %109

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %61 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  %64 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 3
  %65 = load i32, ptr %64, align 8, !tbaa !26
  %66 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 9
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 10
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = getelementptr inbounds i32, ptr %69, i64 0
  %71 = load i32, ptr %70, align 4, !tbaa !19
  %72 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = call noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef %62, ptr noundef %63, i32 noundef %65, ptr noundef %67, i32 noundef %71, ptr noundef %73)
  store i32 %74, ptr %10, align 4, !tbaa !22
  %75 = load i32, ptr %10, align 4, !tbaa !22
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %105

77:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef @.str, i32 noundef 35, i32 noundef 1)
  %78 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %79 = load ptr, ptr %78, align 8, !tbaa !25
  %80 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  %81 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 3
  %82 = load i32, ptr %81, align 8, !tbaa !26
  %83 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 9
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 10
  %86 = load ptr, ptr %85, align 8, !tbaa !27
  %87 = getelementptr inbounds i32, ptr %86, i64 0
  %88 = load i32, ptr %87, align 4, !tbaa !19
  %89 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = invoke noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef %79, ptr noundef %80, i32 noundef %82, ptr noundef %84, i32 noundef %88, ptr noundef %90)
          to label %92 unwind label %101

92:                                               ; preds = %77
  %93 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %91)
          to label %94 unwind label %101

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %93, ptr noundef @.str.1)
          to label %96 unwind label %101

96:                                               ; preds = %94
  %97 = load i32, ptr %10, align 4, !tbaa !22
  %98 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %95, i32 noundef %97)
          to label %99 unwind label %101

99:                                               ; preds = %96
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %100 = load i32, ptr %10, align 4, !tbaa !22
  store i32 %100, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %106

101:                                              ; preds = %96, %94, %92, %77
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %153

105:                                              ; preds = %60
  store i32 0, ptr %9, align 4
  br label %106

106:                                              ; preds = %105, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %107 = load i32, ptr %9, align 4
  switch i32 %107, label %151 [
    i32 0, label %108
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %110 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 14
  %111 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 3
  %114 = load i32, ptr %113, align 8, !tbaa !26
  %115 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  %116 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %114, ptr noundef %115)
  %117 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = call noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12) %110, ptr noundef %112, i32 noundef %116, ptr noundef %118)
  store i32 %119, ptr %12, align 4, !tbaa !22
  %120 = load i32, ptr %12, align 4, !tbaa !22
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %147

122:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef @.str, i32 noundef 38, i32 noundef 1)
  %123 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 14
  %124 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %125 = load ptr, ptr %124, align 8, !tbaa !25
  %126 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 3
  %127 = load i32, ptr %126, align 8, !tbaa !26
  %128 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
  %129 = invoke noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %127, ptr noundef %128)
          to label %130 unwind label %143

130:                                              ; preds = %122
  %131 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %14, i32 0, i32 13
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = invoke noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12) %123, ptr noundef %125, i32 noundef %129, ptr noundef %132)
          to label %134 unwind label %143

134:                                              ; preds = %130
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %133)
          to label %136 unwind label %143

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %135, ptr noundef @.str.1)
          to label %138 unwind label %143

138:                                              ; preds = %136
  %139 = load i32, ptr %12, align 4, !tbaa !22
  %140 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %137, i32 noundef %139)
          to label %141 unwind label %143

141:                                              ; preds = %138
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %142 = load i32, ptr %12, align 4, !tbaa !22
  store i32 %142, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %148

143:                                              ; preds = %138, %136, %134, %130, %122
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %153

147:                                              ; preds = %109
  store i32 0, ptr %9, align 4
  br label %148

148:                                              ; preds = %147, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %149 = load i32, ptr %9, align 4
  switch i32 %149, label %151 [
    i32 0, label %150
  ]

150:                                              ; preds = %148
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %151

151:                                              ; preds = %150, %148, %106, %54
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  %152 = load i32, ptr %2, align 4
  ret i32 %152

153:                                              ; preds = %143, %101, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %7, align 8
  %156 = load i32, ptr %8, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @_ZN5micro3ops12FilterOpBase24InitPaddingAndOutputSizeEPKiS3_NS0_9RoundTypeEPi(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef) #3

declare void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #3

; Function Attrs: nounwind
declare void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4

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

declare noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef, ptr noundef) #3

declare noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef, ptr noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 "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 #5 = { 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 72}
!10 = !{!"_ZTSN5micro3ops10Conv2dBaseE", !11, i64 0, !6, i64 64, !6, i64 72, !14, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112, !6, i64 120, !14, i64 128, !6, i64 136, !15, i64 144}
!11 = !{!"_ZTSN5micro3ops12FilterOpBaseE", !12, i64 0, !13, i64 32, !6, i64 40, !7, i64 48, !7, i64 56}
!12 = !{!"_ZTSN5micro9framework8OperatorE", !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"_ZTSN5micro3ops7PaddingE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN5micro3ops10ActivationE", !16, i64 0, !17, i64 4, !17, i64 8}
!16 = !{!"_ZTSN5micro3ops14ActivationTypeE", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!10, !6, i64 96}
!19 = !{!14, !14, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTSN5micro10MaceStatusE", !7, i64 0}
!24 = !{!10, !6, i64 112}
!25 = !{!10, !6, i64 136}
!26 = !{!10, !14, i64 80}
!27 = !{!10, !6, i64 120}


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

%"class.micro::base::Logger" = type { i32 }

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops19DepthwiseConv2dBase3RunEv(ptr noundef nonnull align 8 dereferenceable(156) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [4 x i32], align 16
  %3 = alloca %"class.micro::base::Logger", align 4
  %4 = alloca %"class.micro::base::Logger", align 4
  %5 = alloca %"class.micro::base::Logger", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = load ptr, ptr %8, align 8, !tbaa !17
  call void @_ZN5micro3ops12FilterOpBase24InitPaddingAndOutputSizeEPKiS3_NS0_9RoundTypeEPi(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %7, ptr noundef %9, i32 noundef 0, ptr noundef nonnull %2)
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 12
  %12 = load i32, ptr %11, align 4, !tbaa !18
  %13 = getelementptr inbounds i8, ptr %2, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %15 = mul nsw i32 %14, %12
  store i32 %15, ptr %13, align 4, !tbaa !18
  %16 = call noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0, i32 noundef 4, ptr noundef nonnull %2)
  %17 = load ptr, ptr %0, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef i32 %19(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef nonnull align 4 dereferenceable(16) %2)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %.critedge, label %21

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull @.str, i32 noundef 31, i32 noundef 1)
  %22 = load ptr, ptr %0, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8
  %25 = invoke noundef i32 %24(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %26 unwind label %33

26:                                               ; preds = %21
  %27 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %25)
          to label %28 unwind label %33

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull @.str.1)
          to label %30 unwind label %33

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %29, i32 noundef %20)
          to label %32 unwind label %33

32:                                               ; preds = %30
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %86

33:                                               ; preds = %30, %28, %26, %21
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %87

.critedge:                                        ; preds = %1
  %35 = getelementptr inbounds i8, ptr %0, i64 112
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %.not25 = icmp eq ptr %36, null
  br i1 %.not25, label %.thread, label %37

37:                                               ; preds = %.critedge
  %38 = getelementptr inbounds i8, ptr %0, i64 136
  %39 = load ptr, ptr %38, align 8, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %0, i64 80
  %41 = load i32, ptr %40, align 8, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 120
  %43 = load ptr, ptr %42, align 8, !tbaa !24
  %44 = load i32, ptr %43, align 4, !tbaa !18
  %45 = call noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef %39, ptr noundef nonnull %2, i32 noundef %41, ptr noundef nonnull %36, i32 noundef %44, ptr noundef %39)
  %.not26 = icmp eq i32 %45, 0
  br i1 %.not26, label %.thread, label %46

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull @.str, i32 noundef 35, i32 noundef 1)
  %47 = load ptr, ptr %38, align 8, !tbaa !22
  %48 = load i32, ptr %40, align 8, !tbaa !23
  %49 = load ptr, ptr %35, align 8, !tbaa !21
  %50 = load ptr, ptr %42, align 8, !tbaa !24
  %51 = load i32, ptr %50, align 4, !tbaa !18
  %52 = invoke noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef %47, ptr noundef nonnull %2, i32 noundef %48, ptr noundef %49, i32 noundef %51, ptr noundef %47)
          to label %53 unwind label %59

53:                                               ; preds = %46
  %54 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %52)
          to label %55 unwind label %59

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull @.str.1)
          to label %57 unwind label %59

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %56, i32 noundef %45)
          to label %61 unwind label %59

59:                                               ; preds = %57, %55, %53, %46
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %87

61:                                               ; preds = %57
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %86

.thread:                                          ; preds = %37, %.critedge
  %62 = getelementptr inbounds i8, ptr %0, i64 144
  %63 = getelementptr inbounds i8, ptr %0, i64 136
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %0, i64 80
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %66, ptr noundef nonnull %2)
  %68 = load ptr, ptr %63, align 8, !tbaa !22
  %69 = call noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef %64, i32 noundef %67, ptr noundef %68)
  %.not27 = icmp eq i32 %69, 0
  br i1 %.not27, label %86, label %70

70:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull @.str, i32 noundef 38, i32 noundef 1)
  %71 = load ptr, ptr %63, align 8, !tbaa !22
  %72 = load i32, ptr %65, align 8, !tbaa !23
  %73 = invoke noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %72, ptr noundef nonnull %2)
          to label %74 unwind label %84

74:                                               ; preds = %70
  %75 = load ptr, ptr %63, align 8, !tbaa !22
  %76 = invoke noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef %71, i32 noundef %73, ptr noundef %75)
          to label %77 unwind label %84

77:                                               ; preds = %74
  %78 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %76)
          to label %79 unwind label %84

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %78, ptr noundef nonnull @.str.1)
          to label %81 unwind label %84

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %80, i32 noundef %69)
          to label %83 unwind label %84

83:                                               ; preds = %81
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %86

84:                                               ; preds = %81, %79, %77, %74, %70
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %87

86:                                               ; preds = %83, %.thread, %61, %32
  %.4 = phi i32 [ %45, %61 ], [ %20, %32 ], [ %69, %83 ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret i32 %.4

87:                                               ; preds = %84, %59, %33
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %60, %59 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare void @_ZN5micro3ops12FilterOpBase24InitPaddingAndOutputSizeEPKiS3_NS0_9RoundTypeEPi(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4

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

declare noundef i32 @_ZN5micro3ops5crumb11ComputeBiasEPKfPKijS3_iPf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN5micro3ops10Activation7ComputeEPKfiPf(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef, ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 "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 #5 = { 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, !9, i64 72}
!6 = !{!"_ZTSN5micro3ops10Conv2dBaseE", !7, i64 0, !9, i64 64, !9, i64 72, !13, i64 80, !9, i64 88, !9, i64 96, !13, i64 104, !9, i64 112, !9, i64 120, !13, i64 128, !9, i64 136, !14, i64 144}
!7 = !{!"_ZTSN5micro3ops12FilterOpBaseE", !8, i64 0, !12, i64 32, !9, i64 40, !10, i64 48, !10, i64 56}
!8 = !{!"_ZTSN5micro9framework8OperatorE", !9, i64 8, !9, i64 16, !9, i64 24}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN5micro3ops7PaddingE", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSN5micro3ops10ActivationE", !15, i64 0, !16, i64 4, !16, i64 8}
!15 = !{!"_ZTSN5micro3ops14ActivationTypeE", !10, i64 0}
!16 = !{!"float", !10, i64 0}
!17 = !{!6, !9, i64 96}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !11, i64 0}
!21 = !{!6, !9, i64 112}
!22 = !{!6, !9, i64 136}
!23 = !{!6, !13, i64 80}
!24 = !{!6, !9, i64 120}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass