; LLVM IR from XiaoMi/mace :: micro/ops/squeeze.ll (ZN5micro3ops9SqueezeOp6OnInitEv)

; 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::framework::ScratchBuffer" = type <{ ptr, i32, [4 x i8] }>
%"class.micro::ops::SqueezeOp" = type <{ %"class.micro::framework::Operator", ptr, ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], ptr, i32, [4 x i8] }>
%"class.micro::framework::Operator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops9SqueezeOp6OnInitEv(ptr noundef nonnull align 8 dereferenceable(92) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.micro::base::Logger", align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.micro::framework::ScratchBuffer", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
  %10 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 1
  store ptr %9, ptr %10, align 8, !tbaa !9
  %11 = call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
  %12 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 2
  store ptr %11, ptr %12, align 8, !tbaa !14
  %13 = call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
  %14 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 3
  store i32 %13, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 3
  %16 = load i32, ptr %15, align 8, !tbaa !15
  %17 = icmp uge i32 %16, 2
  br i1 %17, label %27, label %18

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef @.str, i32 noundef 28, i32 noundef 4)
  %19 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef @.str.1)
          to label %20 unwind label %23

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef @.str.2)
          to label %22 unwind label %23

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

23:                                               ; preds = %20, %18
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %4, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %5, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %91

27:                                               ; preds = %22, %1
  %28 = call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
  %29 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 5
  store ptr %28, ptr %29, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %30 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 7
  %31 = call noundef ptr @_ZNK5micro9framework8Operator18GetRepeatArgByNameIiEEPKT_PKcPj(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.3, ptr noundef %30)
  store ptr %31, ptr %6, align 8, !tbaa !5
  %32 = call noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.4, i32 noundef 1)
  %33 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 10
  store i32 %32, ptr %33, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %34 = getelementptr inbounds %"class.micro::framework::Operator", ptr %8, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  call void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef %35)
  %36 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 10
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %39, label %82

39:                                               ; preds = %27
  %40 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp eq i32 %41, 4
  br i1 %42, label %43, label %82

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 7
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %82

47:                                               ; preds = %43
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %48, i64 0
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %82

52:                                               ; preds = %47
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds i32, ptr %53, i64 1
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = icmp eq i32 %55, 2
  br i1 %56, label %57, label %82

57:                                               ; preds = %52
  %58 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 7
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIiEEPT_j(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %59)
          to label %61 unwind label %78

61:                                               ; preds = %57
  %62 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 6
  store ptr %60, ptr %62, align 8, !tbaa !21
  %63 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 7
  %67 = load i32, ptr %66, align 8, !tbaa !19
  %68 = zext i32 %67 to i64
  %69 = mul i64 %68, 4
  %70 = trunc i64 %69 to i32
  invoke void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef %64, ptr noundef %65, i32 noundef %70)
          to label %71 unwind label %78

71:                                               ; preds = %61
  %72 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds i32, ptr %73, i64 0
  store i32 2, ptr %74, align 4, !tbaa !20
  %75 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = getelementptr inbounds i32, ptr %76, i64 1
  store i32 3, ptr %77, align 4, !tbaa !20
  br label %85

78:                                               ; preds = %85, %61, %57
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %4, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %5, align 4
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %91

82:                                               ; preds = %52, %47, %43, %39, %27
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 6
  store ptr %83, ptr %84, align 8, !tbaa !21
  br label %85

85:                                               ; preds = %82, %71
  %86 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 3
  %87 = load i32, ptr %86, align 8, !tbaa !15
  %88 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIiEEPT_j(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %87)
          to label %89 unwind label %78

89:                                               ; preds = %85
  %90 = getelementptr inbounds %"class.micro::ops::SqueezeOp", ptr %8, i32 0, i32 9
  store ptr %88, ptr %90, align 8, !tbaa !22
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  ret i32 0

91:                                               ; preds = %78, %23
  %92 = load ptr, ptr %4, align 8
  %93 = load i32, ptr %5, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

; 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: 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 @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

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

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

declare void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #1

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

declare void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) 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 = { "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 = !{!"_ZTSN5micro3ops9SqueezeOpE", !11, i64 0, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !13, i64 88}
!11 = !{!"_ZTSN5micro9framework8OperatorE", !6, i64 8, !6, i64 16, !6, i64 24}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN5micro10DataFormatE", !7, i64 0}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !12, i64 48}
!16 = !{!10, !6, i64 56}
!17 = !{!10, !13, i64 88}
!18 = !{!11, !6, i64 16}
!19 = !{!10, !12, i64 72}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !6, i64 64}
!22 = !{!10, !6, i64 80}


; 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 }
%"class.micro::framework::ScratchBuffer" = type <{ ptr, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro3ops9SqueezeOp6OnInitEv(ptr noundef nonnull align 8 dereferenceable(92) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.micro::base::Logger", align 4
  %3 = alloca %"class.micro::framework::ScratchBuffer", align 8
  %4 = tail call noundef ptr @_ZN5micro9framework8Operator12GetInputDataIfEEPKT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %4, ptr %5, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZN5micro9framework8Operator17GetInputShapeDimsEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %6, ptr %7, align 8, !tbaa !13
  %8 = tail call noundef i32 @_ZN5micro9framework8Operator20GetInputShapeDimSizeEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %8, ptr %9, align 8, !tbaa !14
  %10 = icmp ugt i32 %8, 1
  br i1 %10, label %18, label %11

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

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

15:                                               ; preds = %13
  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 %18

16:                                               ; preds = %13, %11
  %17 = 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 %58

18:                                               ; preds = %15, %1
  %19 = call noundef ptr @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0)
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %19, ptr %20, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  %22 = call noundef ptr @_ZNK5micro9framework8Operator18GetRepeatArgByNameIiEEPKT_PKcPj(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.3, ptr noundef nonnull %21)
  %23 = call noundef i32 @_ZNK5micro9framework8Operator12GetArgByNameIiEET_PKcS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.4, i32 noundef 1)
  %24 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %23, ptr %24, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  call void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef %26)
  %27 = load i32, ptr %24, align 8, !tbaa !16
  %28 = icmp eq i32 %27, 2
  %29 = load i32, ptr %9, align 8
  %30 = icmp eq i32 %29, 4
  %or.cond = select i1 %28, i1 %30, i1 false
  %31 = load i32, ptr %21, align 8
  %32 = icmp eq i32 %31, 2
  %or.cond11 = select i1 %or.cond, i1 %32, i1 false
  br i1 %or.cond11, label %33, label %51

33:                                               ; preds = %18
  %34 = load i32, ptr %22, align 4, !tbaa !18
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %51

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %22, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = icmp eq i32 %38, 2
  br i1 %39, label %40, label %51

40:                                               ; preds = %36
  %41 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIiEEPT_j(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef 2)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %41, ptr %43, align 8, !tbaa !19
  %44 = load i32, ptr %21, align 8, !tbaa !20
  %45 = shl i32 %44, 2
  invoke void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef %41, ptr noundef nonnull %22, i32 noundef %45)
          to label %46 unwind label %49

46:                                               ; preds = %42
  %47 = load ptr, ptr %43, align 8, !tbaa !19
  store i32 2, ptr %47, align 4, !tbaa !18
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  store i32 3, ptr %48, align 4, !tbaa !18
  %.pre = load i32, ptr %9, align 8, !tbaa !14
  br label %53

49:                                               ; preds = %53, %42, %40
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br label %58

51:                                               ; preds = %36, %33, %18
  %52 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %22, ptr %52, align 8, !tbaa !19
  br label %53

53:                                               ; preds = %51, %46
  %54 = phi i32 [ %29, %51 ], [ %.pre, %46 ]
  %55 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIiEEPT_j(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %54)
          to label %56 unwind label %49

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %55, ptr %57, align 8, !tbaa !21
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  ret i32 0

58:                                               ; preds = %49, %16
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %17, %16 ]
  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 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 @_ZN5micro9framework8Operator13GetOutputDataIfEEPT_j(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0 align 2

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

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

declare void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) unnamed_addr #1

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

declare void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) 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 = { "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 = !{!"_ZTSN5micro3ops9SqueezeOpE", !7, i64 0, !8, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !8, i64 64, !11, i64 72, !8, i64 80, !12, i64 88}
!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 = !{!"_ZTSN5micro10DataFormatE", !9, i64 0}
!13 = !{!6, !8, i64 40}
!14 = !{!6, !11, i64 48}
!15 = !{!6, !8, i64 56}
!16 = !{!6, !12, i64 88}
!17 = !{!7, !8, i64 16}
!18 = !{!11, !11, i64 0}
!19 = !{!6, !8, i64 64}
!20 = !{!6, !11, i64 72}
!21 = !{!6, !8, i64 80}


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