; LLVM IR from XiaoMi/mace :: micro/ops/nhwc/batch_norm.ll (ZN5micro3ops11BatchNormOp6OnInitEv)

; 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::BatchNormOp" = type { %"class.micro::framework::Operator", ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, float, %"class.micro::ops::Activation" }
%"class.micro::framework::Operator" = type { ptr, ptr, ptr, ptr }
%"class.micro::ops::Activation" = type { i32, float, float }

@.str = external hidden unnamed_addr constant [74 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops11BatchNormOp6OnInitEv(ptr noundef nonnull align 8 dereferenceable(128) %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 %"class.micro::base::Logger", align 4
  %8 = alloca %"class.micro::base::Logger", align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.micro::base::Logger", align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0)
  %14 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 1
  store ptr %13, ptr %14, align 8, !tbaa !9
  %15 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0)
  %16 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 2
  store ptr %15, ptr %16, align 8, !tbaa !16
  %17 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0)
  %18 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 3
  store i32 %17, ptr %18, align 8, !tbaa !17
  %19 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
  %20 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 4
  store ptr %19, ptr %20, align 8, !tbaa !18
  %21 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
  %22 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 5
  store ptr %21, ptr %22, align 8, !tbaa !19
  %23 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
  %24 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 6
  store i32 %23, ptr %24, align 8, !tbaa !20
  %25 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 2)
  %26 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 7
  store ptr %25, ptr %26, align 8, !tbaa !21
  %27 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 2)
  %28 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 8
  store ptr %27, ptr %28, align 8, !tbaa !22
  %29 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 2)
  %30 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 9
  store i32 %29, ptr %30, align 8, !tbaa !23
  %31 = call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0)
  %32 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 10
  store ptr %31, ptr %32, align 8, !tbaa !24
  %33 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !17
  %35 = icmp uge i32 %34, 1
  br i1 %35, label %43, label %36

36:                                               ; 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, i32 noundef 39, i32 noundef 4)
  %37 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef @.str.1)
          to label %38 unwind label %39

38:                                               ; preds = %36
  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 %43

39:                                               ; preds = %36
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %5, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, 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 %98

43:                                               ; preds = %38, %1
  %44 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 6
  %45 = load i32, ptr %44, align 8, !tbaa !20
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %56, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef @.str, i32 noundef 40, i32 noundef 4)
  %48 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef @.str.2)
          to label %49 unwind label %52

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef @.str.3)
          to label %51 unwind label %52

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

52:                                               ; preds = %49, %47
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %5, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %6, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %98

56:                                               ; preds = %51, %43
  %57 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 9
  %58 = load i32, ptr %57, align 8, !tbaa !23
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %69, label %60

60:                                               ; preds = %56
  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, i32 noundef 41, i32 noundef 4)
  %61 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef @.str.4)
          to label %62 unwind label %65

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef @.str.5)
          to label %64 unwind label %65

64:                                               ; preds = %62
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %69

65:                                               ; preds = %62, %60
  %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
  br label %98

69:                                               ; preds = %64, %56
  %70 = call noundef float @_ZNK5micro9framework8Operator12GetArgByNameIfEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.6, float noundef 0x3F1A36E2E0000000)
  %71 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 11
  store float %70, ptr %71, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %72 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 12
  %73 = call noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef %12)
  store i32 %73, ptr %9, align 4, !tbaa !26
  %74 = load i32, ptr %9, align 4, !tbaa !26
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %92

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef @.str, i32 noundef 45, i32 noundef 1)
  %77 = getelementptr inbounds %"class.micro::ops::BatchNormOp", ptr %12, i32 0, i32 12
  %78 = invoke noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef %12)
          to label %79 unwind label %88

79:                                               ; preds = %76
  %80 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %78)
          to label %81 unwind label %88

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef @.str.7)
          to label %83 unwind label %88

83:                                               ; preds = %81
  %84 = load i32, ptr %9, align 4, !tbaa !26
  %85 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %82, i32 noundef %84)
          to label %86 unwind label %88

86:                                               ; preds = %83
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %87 = load i32, ptr %9, align 4, !tbaa !26
  store i32 %87, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %93

88:                                               ; preds = %83, %81, %79, %76
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %98

92:                                               ; preds = %69
  store i32 0, ptr %11, align 4
  br label %93

93:                                               ; preds = %92, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %94 = load i32, ptr %11, align 4
  switch i32 %94, label %103 [
    i32 0, label %95
    i32 1, label %96
  ]

95:                                               ; preds = %93
  store i32 0, ptr %2, align 4
  br label %96

96:                                               ; preds = %95, %93
  %97 = load i32, ptr %2, align 4
  ret i32 %97

98:                                               ; preds = %88, %65, %52, %39
  %99 = load ptr, ptr %5, align 8
  %100 = load i32, ptr %6, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102

103:                                              ; preds = %93
  unreachable
}

; 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

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

; 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

declare noundef float @_ZNK5micro9framework8Operator12GetArgByNameIfEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, float noundef) #1

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

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 32}
!10 = !{!"_ZTSN5micro3ops11BatchNormOpE", !11, i64 0, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !13, i64 112, !14, i64 116}
!11 = !{!"_ZTSN5micro9framework8OperatorE", !6, i64 8, !6, i64 16, !6, i64 24}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSN5micro3ops10ActivationE", !15, i64 0, !13, i64 4, !13, i64 8}
!15 = !{!"_ZTSN5micro3ops14ActivationTypeE", !7, i64 0}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !12, i64 48}
!18 = !{!10, !6, i64 56}
!19 = !{!10, !6, i64 64}
!20 = !{!10, !12, i64 72}
!21 = !{!10, !6, i64 80}
!22 = !{!10, !6, i64 88}
!23 = !{!10, !12, i64 96}
!24 = !{!10, !6, i64 104}
!25 = !{!10, !13, i64 112}
!26 = !{!27, !27, i64 0}
!27 = !{!"_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 [74 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops11BatchNormOp6OnInitEv(ptr noundef nonnull align 8 dereferenceable(128) %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 = alloca %"class.micro::base::Logger", align 4
  %5 = alloca %"class.micro::base::Logger", align 4
  %6 = tail call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %6, ptr %7, align 8, !tbaa !5
  %8 = tail call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %8, ptr %9, align 8, !tbaa !15
  %10 = tail call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %10, ptr %11, align 8, !tbaa !16
  %12 = tail call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %12, ptr %13, align 8, !tbaa !17
  %14 = tail call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %14, ptr %15, align 8, !tbaa !18
  %16 = tail call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 1)
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %16, ptr %17, align 8, !tbaa !19
  %18 = tail call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %19 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %18, ptr %19, align 8, !tbaa !20
  %20 = tail call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %20, ptr %21, align 8, !tbaa !21
  %22 = tail call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 2)
  %23 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %22, ptr %23, align 8, !tbaa !22
  %24 = tail call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %24, ptr %25, align 8, !tbaa !23
  %26 = load i32, ptr %11, align 8, !tbaa !16
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %27, label %32

27:                                               ; 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, i32 noundef 39, i32 noundef 4)
  %28 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull @.str.1)
          to label %29 unwind label %30

29:                                               ; preds = %27
  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 %32

30:                                               ; preds = %27
  %31 = 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 %69

32:                                               ; preds = %29, %1
  %33 = load i32, ptr %17, align 8, !tbaa !19
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %42, label %35

35:                                               ; preds = %32
  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, i32 noundef 40, i32 noundef 4)
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull @.str.2)
          to label %37 unwind label %40

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull @.str.3)
          to label %39 unwind label %40

39:                                               ; preds = %37
  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 %42

40:                                               ; preds = %37, %35
  %41 = 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 %69

42:                                               ; preds = %39, %32
  %43 = load i32, ptr %23, align 8, !tbaa !22
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %52, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull @.str, i32 noundef 41, i32 noundef 4)
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull @.str.4)
          to label %47 unwind label %50

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

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

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

52:                                               ; preds = %49, %42
  %53 = call noundef float @_ZNK5micro9framework8Operator12GetArgByNameIfEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.6, float noundef 0x3F1A36E2E0000000)
  %54 = getelementptr inbounds i8, ptr %0, i64 112
  store float %53, ptr %54, align 8, !tbaa !24
  %55 = getelementptr inbounds i8, ptr %0, i64 116
  %56 = call noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull %0)
  %.not11.not = icmp eq i32 %56, 0
  br i1 %.not11.not, label %68, label %57

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull @.str, i32 noundef 45, i32 noundef 1)
  %58 = invoke noundef i32 @_ZN5micro3ops10Activation4InitEPKNS_9framework8OperatorE(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull %0)
          to label %59 unwind label %66

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

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull @.str.7)
          to label %63 unwind label %66

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %62, i32 noundef %56)
          to label %65 unwind label %66

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

66:                                               ; preds = %63, %61, %59, %57
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %69

68:                                               ; preds = %52, %65
  ret i32 %56

69:                                               ; preds = %66, %50, %40, %30
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %51, %50 ], [ %41, %40 ], [ %31, %30 ]
  resume { ptr, i32 } %.pn
}

; 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

; 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

; 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

declare noundef float @_ZNK5micro9framework8Operator12GetArgByNameIfEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, float noundef) local_unnamed_addr #1

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

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, !8, i64 32}
!6 = !{!"_ZTSN5micro3ops11BatchNormOpE", !7, i64 0, !8, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !8, i64 64, !11, i64 72, !8, i64 80, !8, i64 88, !11, i64 96, !8, i64 104, !12, i64 112, !13, i64 116}
!7 = !{!"_ZTSN5micro9framework8OperatorE", !8, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"_ZTSN5micro3ops10ActivationE", !14, i64 0, !12, i64 4, !12, i64 8}
!14 = !{!"_ZTSN5micro3ops14ActivationTypeE", !9, i64 0}
!15 = !{!6, !8, i64 40}
!16 = !{!6, !11, i64 48}
!17 = !{!6, !8, i64 56}
!18 = !{!6, !8, i64 64}
!19 = !{!6, !11, i64 72}
!20 = !{!6, !8, i64 80}
!21 = !{!6, !8, i64 88}
!22 = !{!6, !11, i64 96}
!23 = !{!6, !8, i64 104}
!24 = !{!6, !12, i64 112}


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