; LLVM IR from XiaoMi/mace :: micro/framework/graph.ll (ZN5micro9framework5Graph4InitEPNS_21MaceMicroEngineConfigE)

; 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 }
%"struct.micro::MaceMicroEngineConfig" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5micro9framework5Graph10op_contextEj(ptr noundef nonnull align 4 dereferenceable(24), 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5micro9framework5Graph15op_context_sizeEv(ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5micro9framework5Graph11output_infoEj(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5micro9framework5Graph16output_info_sizeEv(ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro9framework5Graph4InitEPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.micro::base::Logger", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.micro::base::Logger", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = call noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44) %20)
  %22 = call noundef i32 @_ZNK5micro9framework5Graph15op_context_sizeEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %31, label %24

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

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

27:                                               ; preds = %24
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %105

31:                                               ; preds = %26, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %32 = call noundef i32 @_ZNK5micro9framework5Graph16output_info_sizeEv(ptr noundef nonnull align 4 dereferenceable(24) %17)
  store i32 %32, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %33

33:                                               ; preds = %41, %31
  %34 = load i32, ptr %10, align 4, !tbaa !12
  %35 = load i32, ptr %9, align 4, !tbaa !12
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %44

38:                                               ; preds = %33
  %39 = load i32, ptr %10, align 4, !tbaa !12
  %40 = call noundef ptr @_ZNK5micro9framework5Graph11output_infoEj(ptr noundef nonnull align 4 dereferenceable(24) %17, i32 noundef %39)
  call void @_ZNK5micro9Serialize13Uint2OpIOInfoEPKNS_8OpIOInfoE(ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef %40)
  br label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %10, align 4, !tbaa !12
  %43 = add i32 %42, 1
  store i32 %43, ptr %10, align 4, !tbaa !12
  br label %33, !llvm.loop !13

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44) %47)
  store i32 %48, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %49

49:                                               ; preds = %97, %44
  %50 = load i32, ptr %12, align 4, !tbaa !12
  %51 = load i32, ptr %11, align 4, !tbaa !12
  %52 = icmp ult i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 5, ptr %13, align 4
  br label %100

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %55 = load i32, ptr %12, align 4, !tbaa !12
  %56 = call noundef ptr @_ZNK5micro9framework5Graph10op_contextEj(ptr noundef nonnull align 4 dereferenceable(24) %17, i32 noundef %55)
  store ptr %56, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !12
  %63 = call noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %61, i32 noundef %62)
  %64 = call noundef i32 @_ZN5micro9framework9OpContext4InitEPNS_21MaceMicroEngineConfigEPKNS_5model11OperatorDefE(ptr noundef nonnull align 4 dereferenceable(20) %57, ptr noundef %58, ptr noundef %63)
  store i32 %64, ptr %15, align 4, !tbaa !15
  %65 = load i32, ptr %15, align 4, !tbaa !15
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %90

67:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef @.str, i32 noundef 43, i32 noundef 1)
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.micro::MaceMicroEngineConfig", ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !12
  %74 = invoke noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %72, i32 noundef %73)
          to label %75 unwind label %86

75:                                               ; preds = %67
  %76 = invoke noundef i32 @_ZN5micro9framework9OpContext4InitEPNS_21MaceMicroEngineConfigEPKNS_5model11OperatorDefE(ptr noundef nonnull align 4 dereferenceable(20) %68, ptr noundef %69, ptr noundef %74)
          to label %77 unwind label %86

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

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

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

84:                                               ; preds = %81
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %85 = load i32, ptr %15, align 4, !tbaa !15
  store i32 %85, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %91

86:                                               ; preds = %81, %79, %77, %75, %67
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %105

90:                                               ; preds = %54
  store i32 0, ptr %13, align 4
  br label %91

91:                                               ; preds = %90, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %92 = load i32, ptr %13, align 4
  switch i32 %92, label %94 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  store i32 0, ptr %13, align 4
  br label %94

94:                                               ; preds = %93, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %95 = load i32, ptr %13, align 4
  switch i32 %95, label %100 [
    i32 0, label %96
  ]

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %12, align 4, !tbaa !12
  %99 = add i32 %98, 1
  store i32 %99, ptr %12, align 4, !tbaa !12
  br label %49, !llvm.loop !17

100:                                              ; preds = %94, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %101 = load i32, ptr %13, align 4
  switch i32 %101, label %103 [
    i32 5, label %102
  ]

102:                                              ; preds = %100
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %103

103:                                              ; preds = %102, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %104 = load i32, ptr %3, align 4
  ret i32 %104

105:                                              ; preds = %86, %27
  %106 = load ptr, ptr %7, align 8
  %107 = load i32, ptr %8, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

declare noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44)) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK5micro9Serialize13Uint2OpIOInfoEPKNS_8OpIOInfoE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #3

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_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, !11, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN5micro10MaceStatusE", !7, i64 0}
!17 = distinct !{!17, !14}


; 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 [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5micro9framework5Graph10op_contextEj(ptr noundef nonnull align 4 dereferenceable(24), 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5micro9framework5Graph15op_context_sizeEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5micro9framework5Graph11output_infoEj(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5micro9framework5Graph16output_info_sizeEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro9framework5Graph4InitEPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.micro::base::Logger", align 4
  %4 = alloca %"class.micro::base::Logger", align 4
  %5 = load ptr, ptr %1, align 8, !tbaa !5
  %6 = tail call noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44) %5)
  %7 = tail call noundef i32 @_ZNK5micro9framework5Graph15op_context_sizeEv(ptr noundef nonnull align 4 dereferenceable(24) %0)
  %8 = icmp eq i32 %6, %7
  br i1 %8, label %14, label %9

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

11:                                               ; preds = %9
  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 %14

12:                                               ; preds = %9
  %13 = 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 %40

14:                                               ; preds = %11, %2
  %15 = call noundef i32 @_ZNK5micro9framework5Graph16output_info_sizeEv(ptr noundef nonnull align 4 dereferenceable(24) %0)
  %.not47 = icmp eq i32 %15, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %14
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44) %16)
  %.not3743.not = icmp eq i32 %17, 0
  br i1 %.not3743.not, label %.loopexit, label %.lr.ph46

.lr.ph:                                           ; preds = %14, %.lr.ph
  %.03442 = phi i32 [ %19, %.lr.ph ], [ 0, %14 ]
  %18 = call noundef ptr @_ZNK5micro9framework5Graph11output_infoEj(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef %.03442)
  call void @_ZNK5micro9Serialize13Uint2OpIOInfoEPKNS_8OpIOInfoE(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %18)
  %19 = add nuw i32 %.03442, 1
  %exitcond.not = icmp eq i32 %19, %15
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph46:                                         ; preds = %._crit_edge, %38
  %.03244 = phi i32 [ %39, %38 ], [ 0, %._crit_edge ]
  %20 = call noundef ptr @_ZNK5micro9framework5Graph10op_contextEj(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef %.03244)
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = call noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %21, i32 noundef %.03244)
  %23 = call noundef i32 @_ZN5micro9framework9OpContext4InitEPNS_21MaceMicroEngineConfigEPKNS_5model11OperatorDefE(ptr noundef nonnull align 4 dereferenceable(20) %20, ptr noundef nonnull %1, ptr noundef %22)
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %38, label %24

24:                                               ; preds = %.lr.ph46
  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 43, i32 noundef 1)
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = invoke noundef ptr @_ZNK5micro5model6NetDef2opEj(ptr noundef nonnull align 4 dereferenceable(44) %25, i32 noundef %.03244)
          to label %27 unwind label %35

27:                                               ; preds = %24
  %28 = invoke noundef i32 @_ZN5micro9framework9OpContext4InitEPNS_21MaceMicroEngineConfigEPKNS_5model11OperatorDefE(ptr noundef nonnull align 4 dereferenceable(20) %20, ptr noundef nonnull %1, ptr noundef %26)
          to label %29 unwind label %35

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

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

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %32, i32 noundef %23)
          to label %37 unwind label %35

35:                                               ; preds = %33, %31, %29, %27, %24
  %36 = 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 %40

37:                                               ; preds = %33
  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 %.loopexit

38:                                               ; preds = %.lr.ph46
  %39 = add nuw i32 %.03244, 1
  %exitcond52.not = icmp eq i32 %39, %17
  br i1 %exitcond52.not, label %.loopexit, label %.lr.ph46, !llvm.loop !13

.loopexit:                                        ; preds = %38, %._crit_edge, %37
  %spec.select = phi i32 [ %23, %37 ], [ 0, %._crit_edge ], [ 0, %38 ]
  ret i32 %spec.select

40:                                               ; preds = %35, %12
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %13, %12 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK5micro5model6NetDef7op_sizeEv(ptr noundef nonnull align 4 dereferenceable(44)) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK5micro9Serialize13Uint2OpIOInfoEPKNS_8OpIOInfoE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_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, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass