; LLVM IR from XiaoMi/mace :: micro/framework/operator.ll (ZN5micro9framework8Operator20GetInputQuantizeInfoEj)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.micro::QuantizeInfo" = type { float, i32 }
%"class.micro::base::Logger" = type { i32 }
%"class.micro::model::QuantizeActivationInfo" = type { float, i32, float, float }
%"class.micro::framework::Operator" = type { ptr, ptr, ptr, ptr }
%"struct.micro::OpIOInfo" = type { i16, i16 }
%"struct.micro::MaceMicroEngineConfig" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [73 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1

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

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 #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN5micro9framework8Operator20GetInputQuantizeInfoEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.micro::QuantizeInfo", align 4
  %4 = alloca ptr, align 8
  %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 ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.micro::base::Logger", align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.micro::model::QuantizeActivationInfo", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = call noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
  %19 = icmp ult i32 %17, %18
  br i1 %19, label %27, label %20

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef @.str, i32 noundef 223, i32 noundef 4)
  %21 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef @.str.8)
          to label %22 unwind label %23

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

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

27:                                               ; preds = %22, %2
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %28 = getelementptr inbounds %"class.micro::framework::Operator", ptr %16, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = call noundef ptr @_ZNK5micro9framework9OpContext10input_infoEj(ptr noundef nonnull align 4 dereferenceable(20) %29, i32 noundef %30)
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.micro::OpIOInfo", ptr %32, i32 0, i32 0
  %34 = load i16, ptr %33, align 2, !tbaa !13
  %35 = zext i16 %34 to i32
  store i32 %35, ptr %10, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp eq i32 65535, %36
  br i1 %37, label %38, label %54

38:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %39 = getelementptr inbounds %"class.micro::framework::Operator", ptr %16, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.micro::OpIOInfo", ptr %43, i32 0, i32 1
  %45 = load i16, ptr %44, align 2, !tbaa !19
  %46 = zext i16 %45 to i32
  %47 = call noundef ptr @_ZNK5micro5model6NetDef6tensorEj(ptr noundef nonnull align 4 dereferenceable(44) %42, i32 noundef %46)
  store ptr %47, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call noundef float @_ZNK5micro5model11ConstTensor5scaleEv(ptr noundef nonnull align 4 dereferenceable(68) %48)
  %50 = getelementptr inbounds %"struct.micro::QuantizeInfo", ptr %3, i32 0, i32 0
  store float %49, ptr %50, align 4, !tbaa !20
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef i32 @_ZNK5micro5model11ConstTensor10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(68) %51)
  %53 = getelementptr inbounds %"struct.micro::QuantizeInfo", ptr %3, i32 0, i32 1
  store i32 %52, ptr %53, align 4, !tbaa !23
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %89

54:                                               ; preds = %27
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = icmp eq i32 65534, %55
  br i1 %56, label %57, label %66

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef @.str, i32 noundef 235, i32 noundef 4)
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef @.str.5)
          to label %59 unwind label %62

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

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

62:                                               ; preds = %59, %57
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %91

66:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %67 = getelementptr inbounds %"class.micro::framework::Operator", ptr %16, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = call noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %70, i32 noundef %71)
  store ptr %72, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.micro::OpIOInfo", ptr %74, i32 0, i32 1
  %76 = load i16, ptr %75, align 2, !tbaa !19
  %77 = zext i16 %76 to i32
  %78 = call { i64, <2 x float> } @_ZNK5micro5model11OperatorDef13quantize_infoEj(ptr noundef nonnull align 4 dereferenceable(76) %73, i32 noundef %77)
  %79 = getelementptr inbounds { i64, <2 x float> }, ptr %15, i32 0, i32 0
  %80 = extractvalue { i64, <2 x float> } %78, 0
  store i64 %80, ptr %79, align 4
  %81 = getelementptr inbounds { i64, <2 x float> }, ptr %15, i32 0, i32 1
  %82 = extractvalue { i64, <2 x float> } %78, 1
  store <2 x float> %82, ptr %81, align 4
  %83 = call noundef float @_ZNK5micro5model22QuantizeActivationInfo5scaleEv(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %84 = getelementptr inbounds %"struct.micro::QuantizeInfo", ptr %3, i32 0, i32 0
  store float %83, ptr %84, align 4, !tbaa !20
  %85 = call noundef i32 @_ZNK5micro5model22QuantizeActivationInfo10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %86 = getelementptr inbounds %"struct.micro::QuantizeInfo", ptr %3, i32 0, i32 1
  store i32 %85, ptr %86, align 4, !tbaa !23
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %89

87:                                               ; preds = %61
  br label %88

88:                                               ; preds = %87
  store i32 1, ptr %12, align 4
  br label %89

89:                                               ; preds = %88, %66, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %90 = load i64, ptr %3, align 4
  ret i64 %90

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

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

declare noundef float @_ZNK5micro5model11ConstTensor5scaleEv(ptr noundef nonnull align 4 dereferenceable(68)) #1

declare noundef i32 @_ZNK5micro5model11ConstTensor10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(68)) #1

declare { i64, <2 x float> } @_ZNK5micro5model11OperatorDef13quantize_infoEj(ptr noundef nonnull align 4 dereferenceable(76), i32 noundef) #1

declare noundef float @_ZNK5micro5model22QuantizeActivationInfo5scaleEv(ptr noundef nonnull align 4 dereferenceable(16)) #1

declare noundef i32 @_ZNK5micro5model22QuantizeActivationInfo10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(16)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN5micro9framework8OperatorE", !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN5micro8OpIOInfoE", !15, i64 0, !15, i64 2}
!15 = !{!"short", !7, i64 0}
!16 = !{!12, !6, i64 16}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN5micro21MaceMicroEngineConfigE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!19 = !{!14, !15, i64 2}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSN5micro12QuantizeInfoE", !22, i64 0, !10, i64 4}
!22 = !{!"float", !7, i64 0}
!23 = !{!21, !10, i64 4}


; 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::model::QuantizeActivationInfo" = type { float, i32, float, float }

@.str = external hidden unnamed_addr constant [73 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1

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

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 #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN5micro9framework8Operator20GetInputQuantizeInfoEj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.micro::base::Logger", align 4
  %4 = alloca %"class.micro::base::Logger", align 4
  %5 = alloca %"class.micro::model::QuantizeActivationInfo", align 8
  %6 = tail call noundef i32 @_ZN5micro9framework8Operator12GetInputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %7 = icmp ugt i32 %6, %1
  br i1 %7, label %13, label %8

8:                                                ; preds = %2
  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 223, i32 noundef 4)
  %9 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull @.str.8)
          to label %10 unwind label %11

10:                                               ; preds = %8
  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 %13

11:                                               ; preds = %8
  %12 = 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 %52

13:                                               ; preds = %10, %2
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = call noundef ptr @_ZNK5micro9framework9OpContext10input_infoEj(ptr noundef nonnull align 4 dereferenceable(20) %15, i32 noundef %1)
  %17 = load i16, ptr %16, align 2, !tbaa !10
  switch i16 %17, label %35 [
    i16 -1, label %18
    i16 -2, label %28
  ]

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %16, i64 2
  %23 = load i16, ptr %22, align 2, !tbaa !17
  %24 = zext i16 %23 to i32
  %25 = call noundef ptr @_ZNK5micro5model6NetDef6tensorEj(ptr noundef nonnull align 4 dereferenceable(44) %21, i32 noundef %24)
  %26 = call noundef float @_ZNK5micro5model11ConstTensor5scaleEv(ptr noundef nonnull align 4 dereferenceable(68) %25)
  %27 = call noundef i32 @_ZNK5micro5model11ConstTensor10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(68) %25)
  br label %50

28:                                               ; preds = %13
  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 235, i32 noundef 4)
  %29 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull @.str.5)
          to label %30 unwind label %33

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

32:                                               ; preds = %30
  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 %50

33:                                               ; preds = %30, %28
  %34 = 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 %52

35:                                               ; preds = %13
  %36 = zext i16 %17 to i32
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = call noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %39, i32 noundef %36)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %41 = getelementptr inbounds i8, ptr %16, i64 2
  %42 = load i16, ptr %41, align 2, !tbaa !17
  %43 = zext i16 %42 to i32
  %44 = call { i64, <2 x float> } @_ZNK5micro5model11OperatorDef13quantize_infoEj(ptr noundef nonnull align 4 dereferenceable(76) %40, i32 noundef %43)
  %45 = extractvalue { i64, <2 x float> } %44, 0
  store i64 %45, ptr %5, align 8
  %46 = getelementptr inbounds i8, ptr %5, i64 8
  %47 = extractvalue { i64, <2 x float> } %44, 1
  store <2 x float> %47, ptr %46, align 8
  %48 = call noundef float @_ZNK5micro5model22QuantizeActivationInfo5scaleEv(ptr noundef nonnull align 4 dereferenceable(16) %5)
  %49 = call noundef i32 @_ZNK5micro5model22QuantizeActivationInfo10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %50

50:                                               ; preds = %32, %35, %18
  %.sroa.4.0 = phi i32 [ %27, %18 ], [ 0, %32 ], [ %49, %35 ]
  %.sroa.0.0 = phi float [ %26, %18 ], [ 0.000000e+00, %32 ], [ %48, %35 ]
  %51 = bitcast float %.sroa.0.0 to i32
  %.sroa.4.0.insert.ext = zext i32 %.sroa.4.0 to i64
  %.sroa.4.0.insert.shift = shl nuw i64 %.sroa.4.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext i32 %51 to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.4.0.insert.shift, %.sroa.0.0.insert.ext
  ret i64 %.sroa.0.0.insert.insert

52:                                               ; preds = %33, %11
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %12, %11 ]
  resume { ptr, i32 } %.pn
}

declare noundef float @_ZNK5micro5model11ConstTensor5scaleEv(ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #1

declare noundef i32 @_ZNK5micro5model11ConstTensor10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #1

declare { i64, <2 x float> } @_ZNK5micro5model11OperatorDef13quantize_infoEj(ptr noundef nonnull align 4 dereferenceable(76), i32 noundef) local_unnamed_addr #1

declare noundef float @_ZNK5micro5model22QuantizeActivationInfo5scaleEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

declare noundef i32 @_ZNK5micro5model22QuantizeActivationInfo10zero_pointEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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, !7, i64 24}
!6 = !{!"_ZTSN5micro9framework8OperatorE", !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSN5micro8OpIOInfoE", !12, i64 0, !12, i64 2}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN5micro21MaceMicroEngineConfigE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !16, i64 64}
!16 = !{!"int", !8, i64 0}
!17 = !{!11, !12, i64 2}


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