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

; 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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops10Conv2dBase6OnInitEv(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 %"class.micro::base::Logger", align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.micro::base::Logger", align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = call noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str, i32 noundef 1)
  %12 = icmp ne i32 %11, 2
  br i1 %12, label %22, label %13

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef @.str.1, i32 noundef 30, i32 noundef 4)
  %14 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef @.str.2)
          to label %15 unwind label %18

15:                                               ; preds = %13
  %16 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef @.str.3)
          to label %17 unwind label %18

17:                                               ; preds = %15
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %22

18:                                               ; preds = %15, %13
  %19 = landingpad { ptr, i32 }
          cleanup
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %5, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %6, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %76

22:                                               ; preds = %17, %1
  %23 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
  %24 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 1
  store ptr %23, ptr %24, align 8, !tbaa !9
  %25 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
  %26 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 2
  store ptr %25, ptr %26, align 8, !tbaa !18
  %27 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
  %28 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 3
  store i32 %27, ptr %28, align 8, !tbaa !19
  %29 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
  %30 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 5
  store ptr %29, ptr %30, align 8, !tbaa !20
  %31 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
  %32 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 6
  store ptr %31, ptr %32, align 8, !tbaa !21
  %33 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
  %34 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 7
  store i32 %33, ptr %34, align 8, !tbaa !22
  %35 = call noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %36 = icmp uge i32 %35, 3
  br i1 %36, label %37, label %44

37:                                               ; preds = %22
  %38 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 2)
  %39 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 9
  store ptr %38, ptr %39, align 8, !tbaa !23
  %40 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 2)
  %41 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 10
  store ptr %40, ptr %41, align 8, !tbaa !24
  %42 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 2)
  %43 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 11
  store i32 %42, ptr %43, align 8, !tbaa !25
  br label %46

44:                                               ; preds = %22
  %45 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 9
  store ptr null, ptr %45, align 8, !tbaa !23
  br label %46

46:                                               ; preds = %44, %37
  %47 = call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
  %48 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 13
  store ptr %47, ptr %48, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %49 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 14
  %50 = call noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef %10)
  store i32 %50, ptr %7, align 4, !tbaa !27
  %51 = load i32, ptr %7, align 4, !tbaa !27
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %69

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef @.str.1, i32 noundef 49, i32 noundef 1)
  %54 = getelementptr inbounds %"class.micro::ops::Conv2dBase", ptr %10, i32 0, i32 14
  %55 = invoke noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef %10)
          to label %56 unwind label %65

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

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef @.str.4)
          to label %60 unwind label %65

60:                                               ; preds = %58
  %61 = load i32, ptr %7, align 4, !tbaa !27
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %59, i32 noundef %61)
          to label %63 unwind label %65

63:                                               ; preds = %60
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %64 = load i32, ptr %7, align 4, !tbaa !27
  store i32 %64, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %70

65:                                               ; preds = %60, %58, %56, %53
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %76

69:                                               ; preds = %46
  store i32 0, ptr %9, align 4
  br label %70

70:                                               ; preds = %69, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %71 = load i32, ptr %9, align 4
  switch i32 %71, label %81 [
    i32 0, label %72
    i32 1, label %74
  ]

72:                                               ; preds = %70
  %73 = call noundef i32 @_ZN5micro3ops12FilterOpBase10OnInitBaseEv(ptr noundef nonnull align 8 dereferenceable(64) %10)
  store i32 %73, ptr %2, align 4
  br label %74

74:                                               ; preds = %72, %70
  %75 = load i32, ptr %2, align 4
  ret i32 %75

76:                                               ; preds = %65, %18
  %77 = load ptr, ptr %5, align 8
  %78 = load i32, ptr %6, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80

81:                                               ; preds = %70
  unreachable
}

declare noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

declare noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1

declare noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1

declare noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

declare noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #1

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

declare noundef i32 @_ZN5micro3ops12FilterOpBase10OnInitBaseEv(ptr noundef nonnull align 8 dereferenceable(64)) #1

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !6, i64 64}
!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 72}
!19 = !{!10, !14, i64 80}
!20 = !{!10, !6, i64 88}
!21 = !{!10, !6, i64 96}
!22 = !{!10, !14, i64 104}
!23 = !{!10, !6, i64 112}
!24 = !{!10, !6, i64 120}
!25 = !{!10, !14, i64 128}
!26 = !{!10, !6, i64 136}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN5micro10MaceStatusE", !7, i64 0}


; 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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops10Conv2dBase6OnInitEv(ptr noundef nonnull align 8 dereferenceable(156) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.micro::base::Logger", align 4
  %3 = alloca %"class.micro::base::Logger", align 4
  %4 = tail call noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str, i32 noundef 1)
  %.not = icmp eq i32 %4, 2
  br i1 %.not, label %5, label %12

5:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull @.str.1, i32 noundef 30, i32 noundef 4)
  %6 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull @.str.2)
          to label %7 unwind label %10

7:                                                ; preds = %5
  %8 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull @.str.3)
          to label %9 unwind label %10

9:                                                ; preds = %7
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %12

10:                                               ; preds = %7, %5
  %11 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %55

12:                                               ; preds = %9, %1
  %13 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %13, ptr %14, align 8, !tbaa !5
  %15 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %15, ptr %16, align 8, !tbaa !17
  %17 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %17, ptr %18, align 8, !tbaa !18
  %19 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %19, ptr %20, align 8, !tbaa !19
  %21 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %22 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %21, ptr %22, align 8, !tbaa !20
  %23 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %23, ptr %24, align 8, !tbaa !21
  %25 = call noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %26 = icmp ugt i32 %25, 2
  br i1 %26, label %27, label %34

27:                                               ; preds = %12
  %28 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %28, ptr %29, align 8, !tbaa !22
  %30 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %31 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %30, ptr %31, align 8, !tbaa !23
  %32 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %32, ptr %33, align 8, !tbaa !24
  br label %36

34:                                               ; preds = %12
  %35 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr null, ptr %35, align 8, !tbaa !22
  br label %36

36:                                               ; preds = %34, %27
  %37 = call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %38 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %37, ptr %38, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %0, i64 144
  %40 = call noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull %0)
  %.not11.not = icmp eq i32 %40, 0
  br i1 %.not11.not, label %52, label %41

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull @.str.1, i32 noundef 49, i32 noundef 1)
  %42 = invoke noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull %0)
          to label %43 unwind label %49

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %42)
          to label %45 unwind label %49

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull @.str.4)
          to label %47 unwind label %49

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %46, i32 noundef %40)
          to label %51 unwind label %49

49:                                               ; preds = %47, %45, %43, %41
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %55

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

52:                                               ; preds = %36
  %53 = call noundef i32 @_ZN5micro3ops12FilterOpBase10OnInitBaseEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  br label %54

54:                                               ; preds = %51, %52
  %.1 = phi i32 [ %40, %51 ], [ %53, %52 ]
  ret i32 %.1

55:                                               ; preds = %49, %10
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %11, %10 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1

declare noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1

declare noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

declare noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #1

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

declare noundef i32 @_ZN5micro3ops12FilterOpBase10OnInitBaseEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #1

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !9, i64 64}
!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 72}
!18 = !{!6, !13, i64 80}
!19 = !{!6, !9, i64 88}
!20 = !{!6, !9, i64 96}
!21 = !{!6, !13, i64 104}
!22 = !{!6, !9, i64 112}
!23 = !{!6, !9, i64 120}
!24 = !{!6, !13, i64 128}
!25 = !{!6, !9, i64 136}


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