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

; 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::Operator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 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

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

declare noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #1

declare noundef ptr @_ZNK5micro5model11OutputShape3dimEv(ptr noundef nonnull align 4 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.micro::base::Logger", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.micro::base::Logger", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.micro::base::Logger", align 4
  %17 = alloca %"class.micro::base::Logger", align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.micro::base::Logger", align 4
  %20 = alloca %"class.micro::base::Logger", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.micro::base::Logger", align 4
  %23 = alloca %"class.micro::base::Logger", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = call noundef i32 @_ZN5micro9framework8Operator13GetOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %35, label %28

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef @.str, i32 noundef 186, i32 noundef 4)
  %29 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef @.str.9)
          to label %30 unwind label %31

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

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %10, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %196

35:                                               ; preds = %30, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %36 = getelementptr inbounds %"class.micro::framework::Operator", ptr %24, i32 0, i32 3
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = call noundef ptr @_ZNK5micro9framework9OpContext19output_resize_shapeEj(ptr noundef nonnull align 4 dereferenceable(20) %37, i32 noundef %38)
  store ptr %39, ptr %12, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.micro::framework::Operator", ptr %24, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = call noundef ptr @_ZNK5micro5model11OperatorDef12output_shapeEj(ptr noundef nonnull align 4 dereferenceable(76) %41, i32 noundef %42)
  %44 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %43)
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %35
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %48)
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = icmp ult i32 %49, %50
  br i1 %51, label %52, label %80

52:                                               ; preds = %47, %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef @.str, i32 noundef 193, i32 noundef 4)
  %53 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef @.str.10)
          to label %54 unwind label %76

54:                                               ; preds = %52
  %55 = getelementptr inbounds %"class.micro::framework::Operator", ptr %24, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = invoke noundef ptr @_ZNK5micro5model11OperatorDef12output_shapeEj(ptr noundef nonnull align 4 dereferenceable(76) %56, i32 noundef %57)
          to label %59 unwind label %76

59:                                               ; preds = %54
  %60 = invoke noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %58)
          to label %61 unwind label %76

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %53, i32 noundef %60)
          to label %63 unwind label %76

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

65:                                               ; preds = %63
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = invoke noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %66)
          to label %68 unwind label %76

68:                                               ; preds = %65
  %69 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %64, i32 noundef %67)
          to label %70 unwind label %76

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %69, ptr noundef @.str.12)
          to label %72 unwind label %76

72:                                               ; preds = %70
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %71, i32 noundef %73)
          to label %75 unwind label %76

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

76:                                               ; preds = %72, %70, %68, %65, %63, %61, %59, %54, %52
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %195

80:                                               ; preds = %75, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %81)
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = call noundef ptr @_ZNK5micro5model11OutputShape3dimEv(ptr noundef nonnull align 4 dereferenceable(8) %83)
  %85 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %82, ptr noundef %84)
  store i32 %85, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %86, ptr noundef %87)
  store i32 %88, ptr %15, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %92, label %182

92:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef @.str, i32 noundef 202, i32 noundef 1)
  %93 = getelementptr inbounds %"class.micro::framework::Operator", ptr %24, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = invoke noundef ptr @_ZNK5micro5model11OperatorDef4nameEv(ptr noundef nonnull align 4 dereferenceable(76) %94)
          to label %96 unwind label %116

96:                                               ; preds = %92
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef %95)
          to label %98 unwind label %116

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef @.str.13)
          to label %100 unwind label %116

100:                                              ; preds = %98
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %99, i32 noundef %101)
          to label %103 unwind label %116

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef @.str.14)
          to label %105 unwind label %116

105:                                              ; preds = %103
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %104, i32 noundef %106)
          to label %108 unwind label %116

108:                                              ; preds = %105
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef @.str, i32 noundef 204, i32 noundef 1)
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef @.str.15)
          to label %110 unwind label %120

110:                                              ; preds = %108
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %134, %110
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = icmp ult i32 %112, %113
  br i1 %114, label %124, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %141

116:                                              ; preds = %105, %103, %100, %98, %96, %92
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %10, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %194

120:                                              ; preds = %108
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %10, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %194

124:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef @.str, i32 noundef 206, i32 noundef 1)
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %129)
          to label %131 unwind label %137

131:                                              ; preds = %124
  %132 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %130, ptr noundef @.str.16)
          to label %133 unwind label %137

133:                                              ; preds = %131
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = add i32 %135, 1
  store i32 %136, ptr %18, align 4, !tbaa !9
  br label %111, !llvm.loop !14

137:                                              ; preds = %131, %124
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %194

141:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef @.str, i32 noundef 208, i32 noundef 1)
  %142 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef @.str.17)
          to label %143 unwind label %150

143:                                              ; preds = %141
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %163, %143
  %145 = load i32, ptr %21, align 4, !tbaa !9
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %146)
  %148 = icmp ult i32 %145, %147
  br i1 %148, label %154, label %149

149:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %170

150:                                              ; preds = %141
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %194

154:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef @.str, i32 noundef 210, i32 noundef 1)
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load i32, ptr %21, align 4, !tbaa !9
  %157 = invoke noundef i32 @_ZNK5micro5model11OutputShape3dimEj(ptr noundef nonnull align 4 dereferenceable(8) %155, i32 noundef %156)
          to label %158 unwind label %166

158:                                              ; preds = %154
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef %157)
          to label %160 unwind label %166

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef @.str.16)
          to label %162 unwind label %166

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

163:                                              ; preds = %162
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = add i32 %164, 1
  store i32 %165, ptr %21, align 4, !tbaa !9
  br label %144, !llvm.loop !16

166:                                              ; preds = %160, %158, %154
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %10, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %194

170:                                              ; preds = %149
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = icmp sge i32 %171, %172
  br i1 %173, label %181, label %174

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef @.str, i32 noundef 212, i32 noundef 4)
  %175 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef @.str.18)
          to label %176 unwind label %177

176:                                              ; preds = %174
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %181

177:                                              ; preds = %174
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %10, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %11, align 4
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %194

181:                                              ; preds = %176, %170
  br label %182

182:                                              ; preds = %181, %80
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = icmp ugt i32 %183, 0
  br i1 %184, label %185, label %193

185:                                              ; preds = %182
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = call noundef ptr @_ZN5micro5model11OutputShape11mutable_dimEv(ptr noundef nonnull align 4 dereferenceable(8) %186)
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = load i32, ptr %7, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = mul i64 %190, 4
  %192 = trunc i64 %191 to i32
  call void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef %187, ptr noundef %188, i32 noundef %192)
  br label %193

193:                                              ; preds = %185, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  ret i32 0

194:                                              ; preds = %177, %166, %150, %137, %120, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %195

195:                                              ; preds = %194, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %196

196:                                              ; preds = %195, %31
  %197 = load ptr, ptr %10, align 8
  %198 = load i32, ptr %11, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

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

declare noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef, ptr noundef) #1

declare noundef ptr @_ZNK5micro5model11OperatorDef4nameEv(ptr noundef nonnull align 4 dereferenceable(76)) #1

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

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

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

declare noundef ptr @_ZN5micro5model11OutputShape11mutable_dimEv(ptr noundef nonnull align 4 dereferenceable(8)) #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 = { 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 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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 [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [57 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

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

declare noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

declare noundef ptr @_ZNK5micro5model11OutputShape3dimEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5micro9framework8Operator17ResizeOutputShapeEjjPKi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.micro::base::Logger", align 4
  %6 = alloca %"class.micro::base::Logger", align 4
  %7 = alloca %"class.micro::base::Logger", align 4
  %8 = alloca %"class.micro::base::Logger", align 4
  %9 = alloca %"class.micro::base::Logger", align 4
  %10 = alloca %"class.micro::base::Logger", align 4
  %11 = alloca %"class.micro::base::Logger", align 4
  %12 = alloca %"class.micro::base::Logger", align 4
  %13 = tail call noundef i32 @_ZN5micro9framework8Operator13GetOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %14 = icmp ugt i32 %13, %1
  br i1 %14, label %20, label %15

15:                                               ; preds = %4
  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 186, i32 noundef 4)
  %16 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull @.str.9)
          to label %17 unwind label %18

17:                                               ; preds = %15
  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 %20

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

20:                                               ; preds = %17, %4
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = call noundef ptr @_ZNK5micro9framework9OpContext19output_resize_shapeEj(ptr noundef nonnull align 4 dereferenceable(20) %22, i32 noundef %1)
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !10
  %26 = call noundef ptr @_ZNK5micro5model11OperatorDef12output_shapeEj(ptr noundef nonnull align 4 dereferenceable(76) %25, i32 noundef %1)
  %27 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %26)
  %28 = icmp ult i32 %27, %2
  br i1 %28, label %32, label %29

29:                                               ; preds = %20
  %30 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %31 = icmp ult i32 %30, %2
  br i1 %31, label %32, label %54

32:                                               ; preds = %29, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull @.str, i32 noundef 193, i32 noundef 4)
  %33 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull @.str.10)
          to label %34 unwind label %52

34:                                               ; preds = %32
  %35 = load ptr, ptr %24, align 8, !tbaa !10
  %36 = invoke noundef ptr @_ZNK5micro5model11OperatorDef12output_shapeEj(ptr noundef nonnull align 4 dereferenceable(76) %35, i32 noundef %1)
          to label %37 unwind label %52

37:                                               ; preds = %34
  %38 = invoke noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %39 unwind label %52

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %33, i32 noundef %38)
          to label %41 unwind label %52

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull @.str.11)
          to label %43 unwind label %52

43:                                               ; preds = %41
  %44 = invoke noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %45 unwind label %52

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 noundef %44)
          to label %47 unwind label %52

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.12)
          to label %49 unwind label %52

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEj(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 noundef %2)
          to label %51 unwind label %52

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

52:                                               ; preds = %49, %47, %45, %43, %41, %39, %37, %34, %32
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %113

54:                                               ; preds = %51, %29
  %55 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %56 = call noundef ptr @_ZNK5micro5model11OutputShape3dimEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %57 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %55, ptr noundef %56)
  %58 = call noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef %2, ptr noundef %3)
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %108

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull @.str, i32 noundef 202, i32 noundef 1)
  %61 = load ptr, ptr %24, align 8, !tbaa !10
  %62 = invoke noundef ptr @_ZNK5micro5model11OperatorDef4nameEv(ptr noundef nonnull align 4 dereferenceable(76) %61)
          to label %63 unwind label %77

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

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull @.str.13)
          to label %67 unwind label %77

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %66, i32 noundef %57)
          to label %69 unwind label %77

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull @.str.14)
          to label %71 unwind label %77

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %70, i32 noundef %58)
          to label %73 unwind label %77

73:                                               ; preds = %71
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull @.str, i32 noundef 204, i32 noundef 1)
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull @.str.15)
          to label %75 unwind label %79

75:                                               ; preds = %73
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %75
  %wide.trip.count = zext i32 %2 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %86, %75
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull @.str, i32 noundef 208, i32 noundef 1)
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull @.str.17)
          to label %89 unwind label %91

77:                                               ; preds = %71, %69, %67, %65, %63, %60
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %113

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %113

.lr.ph:                                           ; preds = %.lr.ph.preheader, %86
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %86 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull @.str, i32 noundef 206, i32 noundef 1)
  %81 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %82 = load i32, ptr %81, align 4, !tbaa !11
  %83 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %82)
          to label %84 unwind label %87

84:                                               ; preds = %.lr.ph
  %85 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull @.str.16)
          to label %86 unwind label %87

86:                                               ; preds = %84
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

87:                                               ; preds = %84, %.lr.ph
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %113

89:                                               ; preds = %._crit_edge
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  %90 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %.not53 = icmp eq i32 %90, 0
  br i1 %.not53, label %._crit_edge52, label %.lr.ph51

91:                                               ; preds = %._crit_edge
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %113

.lr.ph51:                                         ; preds = %89, %98
  %.049 = phi i32 [ %99, %98 ], [ 0, %89 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull @.str, i32 noundef 210, i32 noundef 1)
  %93 = invoke noundef i32 @_ZNK5micro5model11OutputShape3dimEj(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %.049)
          to label %94 unwind label %102

94:                                               ; preds = %.lr.ph51
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEi(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %93)
          to label %96 unwind label %102

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull @.str.16)
          to label %98 unwind label %102

98:                                               ; preds = %96
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  %99 = add nuw i32 %.049, 1
  %100 = call noundef i32 @_ZNK5micro5model11OutputShape8dim_sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %.lr.ph51, label %._crit_edge52, !llvm.loop !15

102:                                              ; preds = %96, %94, %.lr.ph51
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %113

._crit_edge52:                                    ; preds = %98, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @_ZN5micro4base6LoggerC1EPKcjNS_8LogLevelE(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull @.str, i32 noundef 212, i32 noundef 4)
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5micro4base6LoggerlsEPKc(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull @.str.18)
          to label %105 unwind label %106

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

106:                                              ; preds = %._crit_edge52
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro4base6LoggerD1Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %113

108:                                              ; preds = %105, %54
  %.not44 = icmp eq i32 %2, 0
  br i1 %.not44, label %112, label %109

109:                                              ; preds = %108
  %110 = call noundef ptr @_ZN5micro5model11OutputShape11mutable_dimEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
  %111 = shl i32 %2, 2
  call void @_ZN5micro4base6memcpyEPvPKvj(ptr noundef %110, ptr noundef %3, i32 noundef %111)
  br label %112

112:                                              ; preds = %109, %108
  ret i32 0

113:                                              ; preds = %52, %106, %102, %91, %87, %79, %77, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %19, %18 ], [ %53, %52 ], [ %88, %87 ], [ %103, %102 ], [ %107, %106 ], [ %92, %91 ], [ %80, %79 ], [ %78, %77 ]
  resume { ptr, i32 } %.pn.pn.pn
}

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

declare noundef i32 @_ZN5micro4base12GetShapeSizeEjPKi(i32 noundef, ptr noundef) local_unnamed_addr #1

declare noundef ptr @_ZNK5micro5model11OperatorDef4nameEv(ptr noundef nonnull align 4 dereferenceable(76)) local_unnamed_addr #1

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

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

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

declare noundef ptr @_ZN5micro5model11OutputShape11mutable_dimEv(ptr noundef nonnull align 4 dereferenceable(8)) 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 = { 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 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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