; LLVM IR from XiaoMi/mace :: micro/ops/nhwc/pooling_ref.ll (ZN5micro3ops12PoolingRefOp10MaxPoolingEPKfPKiS5_S5_S5_)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5micro3ops12PoolingRefOp10MaxPoolingEPKfPKiS5_S5_S5_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.micro::framework::ScratchBuffer", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca float, align 4
  %44 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %46 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds i32, ptr %47, i64 0
  %49 = load i32, ptr %48, align 4, !tbaa !17
  store i32 %49, ptr %13, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %50 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds i32, ptr %51, i64 3
  %53 = load i32, ptr %52, align 4, !tbaa !17
  store i32 %53, ptr %14, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %54 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds i32, ptr %55, i64 1
  %57 = load i32, ptr %56, align 4, !tbaa !17
  store i32 %57, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %58 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 5
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds i32, ptr %59, i64 2
  %61 = load i32, ptr %60, align 4, !tbaa !17
  store i32 %61, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %62 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds i32, ptr %63, i64 3
  %65 = load i32, ptr %64, align 4, !tbaa !17
  store i32 %65, ptr %17, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %66 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds i32, ptr %67, i64 1
  %69 = load i32, ptr %68, align 4, !tbaa !17
  store i32 %69, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %70 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = getelementptr inbounds i32, ptr %71, i64 2
  %73 = load i32, ptr %72, align 4, !tbaa !17
  store i32 %73, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %74 = getelementptr inbounds %"class.micro::framework::Operator", ptr %45, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  call void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef %75)
  %76 = load i32, ptr %17, align 4, !tbaa !17
  %77 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIfEEPT_i(ptr noundef nonnull align 8 dereferenceable(12) %21, i32 noundef %76)
          to label %78 unwind label %84

78:                                               ; preds = %6
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  store ptr %77, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !17
  br label %79

79:                                               ; preds = %279, %78
  %80 = load i32, ptr %24, align 4, !tbaa !17
  %81 = load i32, ptr %13, align 4, !tbaa !17
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %88, label %83

83:                                               ; preds = %79
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %282

84:                                               ; preds = %6
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %22, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %23, align 4
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  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 4, ptr %13) #4
  br label %283

88:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %89 = load i32, ptr %24, align 4, !tbaa !17
  %90 = load i32, ptr %15, align 4, !tbaa !17
  %91 = mul nsw i32 %89, %90
  store i32 %91, ptr %26, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %92 = load i32, ptr %24, align 4, !tbaa !17
  %93 = load i32, ptr %18, align 4, !tbaa !17
  %94 = mul nsw i32 %92, %93
  store i32 %94, ptr %27, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !17
  br label %95

95:                                               ; preds = %275, %88
  %96 = load i32, ptr %28, align 4, !tbaa !17
  %97 = load i32, ptr %15, align 4, !tbaa !17
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %278

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %101 = load i32, ptr %26, align 4, !tbaa !17
  %102 = load i32, ptr %28, align 4, !tbaa !17
  %103 = add nsw i32 %101, %102
  %104 = load i32, ptr %16, align 4, !tbaa !17
  %105 = mul nsw i32 %103, %104
  store i32 %105, ptr %29, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %106 = load i32, ptr %28, align 4, !tbaa !17
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds i32, ptr %107, i64 0
  %109 = load i32, ptr %108, align 4, !tbaa !17
  %110 = mul nsw i32 %106, %109
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds i32, ptr %111, i64 0
  %113 = load i32, ptr %112, align 4, !tbaa !17
  %114 = sub nsw i32 %110, %113
  store i32 %114, ptr %30, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !17
  br label %115

115:                                              ; preds = %271, %100
  %116 = load i32, ptr %31, align 4, !tbaa !17
  %117 = load i32, ptr %16, align 4, !tbaa !17
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %274

120:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %121 = load i32, ptr %29, align 4, !tbaa !17
  %122 = load i32, ptr %31, align 4, !tbaa !17
  %123 = add nsw i32 %121, %122
  %124 = load i32, ptr %14, align 4, !tbaa !17
  %125 = mul nsw i32 %123, %124
  store i32 %125, ptr %32, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %126 = load i32, ptr %31, align 4, !tbaa !17
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds i32, ptr %127, i64 1
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = mul nsw i32 %126, %129
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds i32, ptr %131, i64 1
  %133 = load i32, ptr %132, align 4, !tbaa !17
  %134 = sub nsw i32 %130, %133
  store i32 %134, ptr %33, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  store i32 0, ptr %34, align 4, !tbaa !17
  br label %135

135:                                              ; preds = %146, %120
  %136 = load i32, ptr %34, align 4, !tbaa !17
  %137 = load i32, ptr %17, align 4, !tbaa !17
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %149

140:                                              ; preds = %135
  %141 = call noundef float @_ZN5micro4base6lowestEv()
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = load i32, ptr %34, align 4, !tbaa !17
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %142, i64 %144
  store float %141, ptr %145, align 4, !tbaa !20
  br label %146

146:                                              ; preds = %140
  %147 = load i32, ptr %34, align 4, !tbaa !17
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %34, align 4, !tbaa !17
  br label %135, !llvm.loop !22

149:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 0, ptr %35, align 4, !tbaa !17
  br label %150

150:                                              ; preds = %245, %149
  %151 = load i32, ptr %35, align 4, !tbaa !17
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %152, i64 0
  %154 = load i32, ptr %153, align 4, !tbaa !17
  %155 = icmp slt i32 %151, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %150
  store i32 14, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %248

157:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %158 = load i32, ptr %30, align 4, !tbaa !17
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = getelementptr inbounds i32, ptr %159, i64 0
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = load i32, ptr %35, align 4, !tbaa !17
  %163 = mul nsw i32 %161, %162
  %164 = add nsw i32 %158, %163
  store i32 %164, ptr %36, align 4, !tbaa !17
  %165 = load i32, ptr %36, align 4, !tbaa !17
  %166 = icmp slt i32 %165, 0
  br i1 %166, label %171, label %167

167:                                              ; preds = %157
  %168 = load i32, ptr %36, align 4, !tbaa !17
  %169 = load i32, ptr %18, align 4, !tbaa !17
  %170 = icmp sge i32 %168, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %167, %157
  store i32 16, ptr %25, align 4
  br label %242

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %173 = load i32, ptr %27, align 4, !tbaa !17
  %174 = load i32, ptr %36, align 4, !tbaa !17
  %175 = add nsw i32 %173, %174
  %176 = load i32, ptr %19, align 4, !tbaa !17
  %177 = mul nsw i32 %175, %176
  store i32 %177, ptr %37, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  store i32 0, ptr %38, align 4, !tbaa !17
  br label %178

178:                                              ; preds = %238, %172
  %179 = load i32, ptr %38, align 4, !tbaa !17
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds i32, ptr %180, i64 1
  %182 = load i32, ptr %181, align 4, !tbaa !17
  %183 = icmp slt i32 %179, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %178
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  br label %241

185:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %186 = load i32, ptr %33, align 4, !tbaa !17
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = getelementptr inbounds i32, ptr %187, i64 1
  %189 = load i32, ptr %188, align 4, !tbaa !17
  %190 = load i32, ptr %38, align 4, !tbaa !17
  %191 = mul nsw i32 %189, %190
  %192 = add nsw i32 %186, %191
  store i32 %192, ptr %39, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  %193 = load i32, ptr %37, align 4, !tbaa !17
  %194 = load i32, ptr %39, align 4, !tbaa !17
  %195 = add nsw i32 %193, %194
  %196 = load i32, ptr %17, align 4, !tbaa !17
  %197 = mul nsw i32 %195, %196
  store i32 %197, ptr %40, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  store i32 0, ptr %41, align 4, !tbaa !17
  br label %198

198:                                              ; preds = %234, %185
  %199 = load i32, ptr %41, align 4, !tbaa !17
  %200 = load i32, ptr %14, align 4, !tbaa !17
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 20, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  br label %237

203:                                              ; preds = %198
  %204 = load i32, ptr %39, align 4, !tbaa !17
  %205 = icmp sge i32 %204, 0
  br i1 %205, label %206, label %233

206:                                              ; preds = %203
  %207 = load i32, ptr %39, align 4, !tbaa !17
  %208 = load i32, ptr %19, align 4, !tbaa !17
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %233

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  %211 = load i32, ptr %40, align 4, !tbaa !17
  %212 = load i32, ptr %41, align 4, !tbaa !17
  %213 = add nsw i32 %211, %212
  store i32 %213, ptr %42, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i32, ptr %42, align 4, !tbaa !17
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds float, ptr %214, i64 %216
  %218 = load float, ptr %217, align 4, !tbaa !20
  store float %218, ptr %43, align 4, !tbaa !20
  %219 = load float, ptr %43, align 4, !tbaa !20
  %220 = load ptr, ptr %20, align 8, !tbaa !5
  %221 = load i32, ptr %41, align 4, !tbaa !17
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds float, ptr %220, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !20
  %225 = fcmp ogt float %219, %224
  br i1 %225, label %226, label %232

226:                                              ; preds = %210
  %227 = load float, ptr %43, align 4, !tbaa !20
  %228 = load ptr, ptr %20, align 8, !tbaa !5
  %229 = load i32, ptr %41, align 4, !tbaa !17
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %228, i64 %230
  store float %227, ptr %231, align 4, !tbaa !20
  br label %232

232:                                              ; preds = %226, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  br label %233

233:                                              ; preds = %232, %206, %203
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %41, align 4, !tbaa !17
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %41, align 4, !tbaa !17
  br label %198, !llvm.loop !24

237:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %38, align 4, !tbaa !17
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %38, align 4, !tbaa !17
  br label %178, !llvm.loop !25

241:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  store i32 0, ptr %25, align 4
  br label %242

242:                                              ; preds = %241, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  %243 = load i32, ptr %25, align 4
  switch i32 %243, label %288 [
    i32 0, label %244
    i32 16, label %245
  ]

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244, %242
  %246 = load i32, ptr %35, align 4, !tbaa !17
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %35, align 4, !tbaa !17
  br label %150, !llvm.loop !26

248:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  store i32 0, ptr %44, align 4, !tbaa !17
  br label %249

249:                                              ; preds = %267, %248
  %250 = load i32, ptr %44, align 4, !tbaa !17
  %251 = load i32, ptr %17, align 4, !tbaa !17
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 23, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  br label %270

254:                                              ; preds = %249
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  %256 = load i32, ptr %44, align 4, !tbaa !17
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds float, ptr %255, i64 %257
  %259 = load float, ptr %258, align 4, !tbaa !20
  %260 = getelementptr inbounds %"class.micro::ops::PoolingBase", ptr %45, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !27
  %262 = load i32, ptr %32, align 4, !tbaa !17
  %263 = load i32, ptr %44, align 4, !tbaa !17
  %264 = add nsw i32 %262, %263
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds float, ptr %261, i64 %265
  store float %259, ptr %266, align 4, !tbaa !20
  br label %267

267:                                              ; preds = %254
  %268 = load i32, ptr %44, align 4, !tbaa !17
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %44, align 4, !tbaa !17
  br label %249, !llvm.loop !28

270:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %31, align 4, !tbaa !17
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %31, align 4, !tbaa !17
  br label %115, !llvm.loop !29

274:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %28, align 4, !tbaa !17
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %28, align 4, !tbaa !17
  br label %95, !llvm.loop !30

278:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %24, align 4, !tbaa !17
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %24, align 4, !tbaa !17
  br label %79, !llvm.loop !31

282:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  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 4, ptr %13) #4
  ret void

283:                                              ; preds = %84
  %284 = load ptr, ptr %22, align 8
  %285 = load i32, ptr %23, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287

288:                                              ; preds = %242
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

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

declare noundef float @_ZN5micro4base6lowestEv() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 96}
!10 = !{!"_ZTSN5micro3ops11PoolingBaseE", !11, i64 0, !6, i64 64, !6, i64 72, !14, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112, !7, i64 120, !15, i64 136, !16, i64 140}
!11 = !{!"_ZTSN5micro3ops12FilterOpBaseE", !12, i64 0, !13, i64 32, !6, i64 40, !7, i64 48, !7, i64 56}
!12 = !{!"_ZTSN5micro9framework8OperatorE", !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"_ZTSN5micro3ops7PaddingE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN5micro3ops9RoundTypeE", !7, i64 0}
!16 = !{!"_ZTSN5micro3ops11PoolingTypeE", !7, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!10, !6, i64 72}
!19 = !{!12, !6, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = !{!10, !6, i64 88}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5micro3ops12PoolingRefOp10MaxPoolingEPKfPKiS5_S5_S5_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(144) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.micro::framework::ScratchBuffer", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = load i32, ptr %9, align 4, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %9, i64 12
  %12 = load i32, ptr %11, align 4, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %9, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %9, i64 8
  %16 = load i32, ptr %15, align 4, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %18, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %18, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %18, i64 8
  %24 = load i32, ptr %23, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  call void @_ZN5micro9framework13ScratchBufferC1EPNS_21MaceMicroEngineConfigE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef %26)
  %27 = invoke noundef ptr @_ZN5micro9framework13ScratchBuffer9GetBufferIfEEPT_i(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %20)
          to label %28 unwind label %193

28:                                               ; preds = %6
  %29 = ptrtoint ptr %27 to i64
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %30 = icmp sgt i32 %10, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %28
  %31 = icmp sgt i32 %14, 0
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  %33 = getelementptr inbounds i8, ptr %5, i64 4
  %34 = icmp sgt i32 %20, 0
  %35 = getelementptr inbounds i8, ptr %2, i64 4
  %36 = getelementptr inbounds i8, ptr %4, i64 4
  %37 = icmp slt i32 %12, 1
  %38 = getelementptr inbounds i8, ptr %0, i64 88
  %39 = icmp sgt i32 %16, 0
  %or.cond = select i1 %31, i1 %39, i1 false
  br i1 %or.cond, label %.lr.ph109.us.us.preheader, label %._crit_edge

.lr.ph109.us.us.preheader:                        ; preds = %.lr.ph
  %40 = sext i32 %12 to i64
  %41 = zext nneg i32 %16 to i64
  %42 = zext nneg i32 %14 to i64
  %wide.trip.count153 = zext nneg i32 %10 to i64
  %wide.trip.count148 = zext nneg i32 %14 to i64
  %wide.trip.count143 = zext nneg i32 %16 to i64
  %wide.trip.count = zext i32 %20 to i64
  %wide.trip.count127 = zext i32 %12 to i64
  %wide.trip.count138 = zext nneg i32 %20 to i64
  %43 = mul nsw i64 %40, %wide.trip.count148
  %44 = mul i64 %43, %wide.trip.count143
  %45 = shl i64 %44, 2
  %46 = mul nsw i64 %40, %wide.trip.count143
  %47 = shl i64 %46, 2
  %48 = shl nsw i64 %40, 2
  %49 = shl nuw nsw i64 %wide.trip.count127, 2
  %scevgep = getelementptr i8, ptr %27, i64 %49
  %50 = mul i32 %24, %20
  %scevgep161 = getelementptr i8, ptr %1, i64 %49
  %min.iters.check165 = icmp ult i32 %12, 8
  %n.vec168 = and i64 %wide.trip.count127, 2147483640
  %cmp.n191 = icmp eq i64 %n.vec168, %wide.trip.count127
  %xtraiter = and i64 %wide.trip.count127, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %51 = add nsw i64 %wide.trip.count127, -1
  %min.iters.check = icmp ult i32 %20, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter195 = and i64 %wide.trip.count, 3
  %lcmp.mod196.not = icmp eq i64 %xtraiter195, 0
  br label %.lr.ph109.us.us

.lr.ph109.us.us:                                  ; preds = %.lr.ph109.us.us.preheader, %._crit_edge110.split.us.us.us
  %indvars.iv150 = phi i64 [ 0, %.lr.ph109.us.us.preheader ], [ %indvars.iv.next151, %._crit_edge110.split.us.us.us ]
  %52 = trunc i64 %indvars.iv150 to i32
  %53 = mul i32 %22, %52
  %54 = mul i64 %45, %indvars.iv150
  %55 = sub i64 %54, %29
  %56 = mul nuw nsw i64 %indvars.iv150, %42
  %57 = trunc i64 %indvars.iv150 to i32
  %58 = mul i32 %22, %57
  br label %.lr.ph105.us.us.us

.lr.ph105.us.us.us:                               ; preds = %._crit_edge106.us.us.us, %.lr.ph109.us.us
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %._crit_edge106.us.us.us ], [ 0, %.lr.ph109.us.us ]
  %59 = mul i64 %47, %indvars.iv145
  %60 = add i64 %55, %59
  %61 = add nuw nsw i64 %indvars.iv145, %56
  %62 = mul nuw nsw i64 %61, %41
  %63 = load i32, ptr %3, align 4, !tbaa !16
  %64 = trunc i64 %indvars.iv145 to i32
  %65 = mul i32 %63, %64
  %66 = load i32, ptr %5, align 4, !tbaa !16
  %67 = sub nsw i32 %65, %66
  %68 = add i32 %53, %65
  %69 = sub i32 %68, %66
  %70 = mul i32 %24, %69
  br label %71

71:                                               ; preds = %._crit_edge.us114.us.us, %.lr.ph105.us.us.us
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %._crit_edge.us114.us.us ], [ 0, %.lr.ph105.us.us.us ]
  %72 = mul i64 %48, %indvars.iv140
  %73 = add i64 %60, %72
  %74 = add nuw nsw i64 %indvars.iv140, %62
  %75 = mul nsw i64 %74, %40
  %76 = load i32, ptr %32, align 4, !tbaa !16
  %77 = trunc i64 %indvars.iv140 to i32
  %78 = mul i32 %76, %77
  %79 = load i32, ptr %33, align 4, !tbaa !16
  %80 = sub nsw i32 %78, %79
  br i1 %34, label %.lr.ph.us.us.us, label %.preheader89.us.us.us

._crit_edge.us114.us.us:                          ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader.us.us.us
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count143
  br i1 %exitcond144.not, label %._crit_edge106.us.us.us, label %71, !llvm.loop !19

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv135 = phi i64 [ %indvars.iv.next136.3, %scalar.ph ], [ %indvars.iv135.unr, %scalar.ph.prol.loopexit ]
  %81 = getelementptr inbounds float, ptr %27, i64 %indvars.iv135
  %82 = load float, ptr %81, align 4, !tbaa !21
  %gep156 = getelementptr float, ptr %invariant.gep155, i64 %indvars.iv135
  store float %82, ptr %gep156, align 4, !tbaa !21
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %83 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.next136
  %84 = load float, ptr %83, align 4, !tbaa !21
  %gep156.1 = getelementptr float, ptr %invariant.gep155, i64 %indvars.iv.next136
  store float %84, ptr %gep156.1, align 4, !tbaa !21
  %indvars.iv.next136.1 = add nuw nsw i64 %indvars.iv135, 2
  %85 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.next136.1
  %86 = load float, ptr %85, align 4, !tbaa !21
  %gep156.2 = getelementptr float, ptr %invariant.gep155, i64 %indvars.iv.next136.1
  store float %86, ptr %gep156.2, align 4, !tbaa !21
  %indvars.iv.next136.2 = add nuw nsw i64 %indvars.iv135, 3
  %87 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.next136.2
  %88 = load float, ptr %87, align 4, !tbaa !21
  %gep156.3 = getelementptr float, ptr %invariant.gep155, i64 %indvars.iv.next136.2
  store float %88, ptr %gep156.3, align 4, !tbaa !21
  %indvars.iv.next136.3 = add nuw nsw i64 %indvars.iv135, 4
  %exitcond139.not.3 = icmp eq i64 %indvars.iv.next136.3, %wide.trip.count138
  br i1 %exitcond139.not.3, label %._crit_edge.us114.us.us, label %scalar.ph, !llvm.loop !23

89:                                               ; preds = %.lr.ph100.us.us.us, %.loopexit.us.us.us
  %indvar = phi i64 [ 0, %.lr.ph100.us.us.us ], [ %indvar.next, %.loopexit.us.us.us ]
  %.08399.us.us.us = phi i32 [ 0, %.lr.ph100.us.us.us ], [ %100, %.loopexit.us.us.us ]
  %90 = mul i64 %indvar, %180
  %91 = add i64 %90, %178
  %92 = mul nsw i32 %174, %.08399.us.us.us
  %93 = add nsw i32 %92, %67
  %94 = icmp sgt i32 %93, -1
  %.not.us.us.us = icmp slt i32 %93, %22
  %or.cond.us.us.us = select i1 %94, i1 %.not.us.us.us, i1 false
  br i1 %or.cond.us.us.us, label %95, label %.loopexit.us.us.us

95:                                               ; preds = %89
  %96 = add nsw i32 %93, %58
  %97 = mul nsw i32 %96, %24
  %98 = load i32, ptr %35, align 4, !tbaa !16
  %99 = icmp slt i32 %98, 1
  %brmerge = select i1 %99, i1 true, i1 %37
  br i1 %brmerge, label %.loopexit.us.us.us, label %.lr.ph92.us.us.us.us.preheader

.loopexit.us.us.us:                               ; preds = %._crit_edge.us.us.us.us, %95, %89
  %100 = add nuw nsw i32 %.08399.us.us.us, 1
  %exitcond134.not = icmp eq i32 %100, %103
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond134.not, label %.preheader.us.us.us, label %89, !llvm.loop !25

.lr.ph.us.us.us:                                  ; preds = %71, %.lr.ph.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.us.us.us ], [ 0, %71 ]
  %101 = call noundef float @_ZN5micro4base6lowestEv()
  %102 = getelementptr inbounds float, ptr %27, i64 %indvars.iv
  store float %101, ptr %102, align 4, !tbaa !21
  %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 %.preheader89.us.us.us, label %.lr.ph.us.us.us, !llvm.loop !26

.preheader.us.us.us:                              ; preds = %.loopexit.us.us.us, %.preheader89.us.us.us
  br i1 %34, label %.lr.ph102.us.us.us, label %._crit_edge.us114.us.us

.preheader89.us.us.us:                            ; preds = %.lr.ph.us.us.us, %71
  %103 = load i32, ptr %2, align 4, !tbaa !16
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph100.us.us.us, label %.preheader.us.us.us

.lr.ph92.us.us.us.us.preheader:                   ; preds = %95
  %105 = load i32, ptr %36, align 4, !tbaa !16
  %wide.trip.count132 = zext nneg i32 %98 to i64
  %106 = mul i32 %20, %105
  %107 = zext i32 %106 to i64
  br label %.lr.ph92.us.us.us.us

.lr.ph92.us.us.us.us:                             ; preds = %.lr.ph92.us.us.us.us.preheader, %._crit_edge.us.us.us.us
  %indvars.iv129 = phi i64 [ 0, %.lr.ph92.us.us.us.us.preheader ], [ %indvars.iv.next130, %._crit_edge.us.us.us.us ]
  %108 = mul i64 %indvars.iv129, %107
  %109 = add i64 %91, %108
  %sext = shl i64 %109, 32
  %110 = ashr exact i64 %sext, 30
  %scevgep160 = getelementptr i8, ptr %1, i64 %110
  %scevgep162 = getelementptr i8, ptr %scevgep161, i64 %110
  %111 = trunc i64 %indvars.iv129 to i32
  %112 = mul i32 %105, %111
  %113 = add nsw i32 %112, %80
  %114 = icmp sgt i32 %113, -1
  %115 = icmp slt i32 %113, %24
  %or.cond88.us.us.us.us = select i1 %114, i1 %115, i1 false
  br i1 %or.cond88.us.us.us.us, label %.lr.ph92.split.us.us.us.us.us.preheader, label %._crit_edge.us.us.us.us

.lr.ph92.split.us.us.us.us.us.preheader:          ; preds = %.lr.ph92.us.us.us.us
  %116 = add nsw i32 %113, %97
  %117 = mul nsw i32 %116, %20
  %118 = sext i32 %117 to i64
  %invariant.gep = getelementptr float, ptr %1, i64 %118
  br i1 %min.iters.check165, label %.lr.ph92.split.us.us.us.us.us.preheader194, label %vector.memcheck159

.lr.ph92.split.us.us.us.us.us.preheader194:       ; preds = %middle.block163, %vector.memcheck159, %.lr.ph92.split.us.us.us.us.us.preheader
  %indvars.iv124.ph = phi i64 [ 0, %vector.memcheck159 ], [ 0, %.lr.ph92.split.us.us.us.us.us.preheader ], [ %n.vec168, %middle.block163 ]
  br i1 %lcmp.mod.not, label %.lr.ph92.split.us.us.us.us.us.prol.loopexit, label %.lr.ph92.split.us.us.us.us.us.prol

.lr.ph92.split.us.us.us.us.us.prol:               ; preds = %.lr.ph92.split.us.us.us.us.us.preheader194
  %gep.prol = getelementptr float, ptr %invariant.gep, i64 %indvars.iv124.ph
  %119 = load float, ptr %gep.prol, align 4, !tbaa !21
  %120 = getelementptr inbounds float, ptr %27, i64 %indvars.iv124.ph
  %121 = load float, ptr %120, align 4, !tbaa !21
  %122 = fcmp ogt float %119, %121
  br i1 %122, label %123, label %.lr.ph92.split.us.us.us.us.us.prol.loopexit.unr-lcssa

123:                                              ; preds = %.lr.ph92.split.us.us.us.us.us.prol
  store float %119, ptr %120, align 4, !tbaa !21
  br label %.lr.ph92.split.us.us.us.us.us.prol.loopexit.unr-lcssa

.lr.ph92.split.us.us.us.us.us.prol.loopexit.unr-lcssa: ; preds = %123, %.lr.ph92.split.us.us.us.us.us.prol
  %indvars.iv.next125.prol = or disjoint i64 %indvars.iv124.ph, 1
  br label %.lr.ph92.split.us.us.us.us.us.prol.loopexit

.lr.ph92.split.us.us.us.us.us.prol.loopexit:      ; preds = %.lr.ph92.split.us.us.us.us.us.prol.loopexit.unr-lcssa, %.lr.ph92.split.us.us.us.us.us.preheader194
  %indvars.iv124.unr = phi i64 [ %indvars.iv124.ph, %.lr.ph92.split.us.us.us.us.us.preheader194 ], [ %indvars.iv.next125.prol, %.lr.ph92.split.us.us.us.us.us.prol.loopexit.unr-lcssa ]
  %124 = icmp eq i64 %indvars.iv124.ph, %51
  br i1 %124, label %._crit_edge.us.us.us.us, label %.lr.ph92.split.us.us.us.us.us

vector.memcheck159:                               ; preds = %.lr.ph92.split.us.us.us.us.us.preheader
  %bound0 = icmp ult ptr %27, %scevgep162
  %bound1 = icmp ult ptr %scevgep160, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph92.split.us.us.us.us.us.preheader194, label %vector.body170

vector.body170:                                   ; preds = %vector.memcheck159, %pred.store.continue189
  %index171 = phi i64 [ %index.next190, %pred.store.continue189 ], [ 0, %vector.memcheck159 ]
  %125 = or disjoint i64 %index171, 4
  %126 = getelementptr float, ptr %invariant.gep, i64 %index171
  %127 = getelementptr i8, ptr %126, i64 16
  %wide.load172 = load <4 x float>, ptr %126, align 4, !tbaa !21, !alias.scope !27
  %wide.load173 = load <4 x float>, ptr %127, align 4, !tbaa !21, !alias.scope !27
  %128 = getelementptr inbounds float, ptr %27, i64 %index171
  %129 = getelementptr inbounds i8, ptr %128, i64 16
  %wide.load174 = load <4 x float>, ptr %128, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  %wide.load175 = load <4 x float>, ptr %129, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  %130 = fcmp ogt <4 x float> %wide.load172, %wide.load174
  %131 = fcmp ogt <4 x float> %wide.load173, %wide.load175
  %132 = extractelement <4 x i1> %130, i64 0
  br i1 %132, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body170
  %133 = getelementptr inbounds float, ptr %27, i64 %index171
  %134 = extractelement <4 x float> %wide.load172, i64 0
  store float %134, ptr %133, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body170
  %135 = extractelement <4 x i1> %130, i64 1
  br i1 %135, label %pred.store.if176, label %pred.store.continue177

pred.store.if176:                                 ; preds = %pred.store.continue
  %136 = or disjoint i64 %index171, 1
  %137 = getelementptr inbounds float, ptr %27, i64 %136
  %138 = extractelement <4 x float> %wide.load172, i64 1
  store float %138, ptr %137, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue177

pred.store.continue177:                           ; preds = %pred.store.if176, %pred.store.continue
  %139 = extractelement <4 x i1> %130, i64 2
  br i1 %139, label %pred.store.if178, label %pred.store.continue179

pred.store.if178:                                 ; preds = %pred.store.continue177
  %140 = or disjoint i64 %index171, 2
  %141 = getelementptr inbounds float, ptr %27, i64 %140
  %142 = extractelement <4 x float> %wide.load172, i64 2
  store float %142, ptr %141, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue179

pred.store.continue179:                           ; preds = %pred.store.if178, %pred.store.continue177
  %143 = extractelement <4 x i1> %130, i64 3
  br i1 %143, label %pred.store.if180, label %pred.store.continue181

pred.store.if180:                                 ; preds = %pred.store.continue179
  %144 = or disjoint i64 %index171, 3
  %145 = getelementptr inbounds float, ptr %27, i64 %144
  %146 = extractelement <4 x float> %wide.load172, i64 3
  store float %146, ptr %145, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue181

pred.store.continue181:                           ; preds = %pred.store.if180, %pred.store.continue179
  %147 = extractelement <4 x i1> %131, i64 0
  br i1 %147, label %pred.store.if182, label %pred.store.continue183

pred.store.if182:                                 ; preds = %pred.store.continue181
  %148 = getelementptr inbounds float, ptr %27, i64 %125
  %149 = extractelement <4 x float> %wide.load173, i64 0
  store float %149, ptr %148, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue183

pred.store.continue183:                           ; preds = %pred.store.if182, %pred.store.continue181
  %150 = extractelement <4 x i1> %131, i64 1
  br i1 %150, label %pred.store.if184, label %pred.store.continue185

pred.store.if184:                                 ; preds = %pred.store.continue183
  %151 = or disjoint i64 %index171, 5
  %152 = getelementptr inbounds float, ptr %27, i64 %151
  %153 = extractelement <4 x float> %wide.load173, i64 1
  store float %153, ptr %152, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue185

pred.store.continue185:                           ; preds = %pred.store.if184, %pred.store.continue183
  %154 = extractelement <4 x i1> %131, i64 2
  br i1 %154, label %pred.store.if186, label %pred.store.continue187

pred.store.if186:                                 ; preds = %pred.store.continue185
  %155 = or disjoint i64 %index171, 6
  %156 = getelementptr inbounds float, ptr %27, i64 %155
  %157 = extractelement <4 x float> %wide.load173, i64 2
  store float %157, ptr %156, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue187

pred.store.continue187:                           ; preds = %pred.store.if186, %pred.store.continue185
  %158 = extractelement <4 x i1> %131, i64 3
  br i1 %158, label %pred.store.if188, label %pred.store.continue189

pred.store.if188:                                 ; preds = %pred.store.continue187
  %159 = or disjoint i64 %index171, 7
  %160 = getelementptr inbounds float, ptr %27, i64 %159
  %161 = extractelement <4 x float> %wide.load173, i64 3
  store float %161, ptr %160, align 4, !tbaa !21, !alias.scope !30, !noalias !27
  br label %pred.store.continue189

pred.store.continue189:                           ; preds = %pred.store.if188, %pred.store.continue187
  %index.next190 = add nuw i64 %index171, 8
  %162 = icmp eq i64 %index.next190, %n.vec168
  br i1 %162, label %middle.block163, label %vector.body170, !llvm.loop !32

middle.block163:                                  ; preds = %pred.store.continue189
  br i1 %cmp.n191, label %._crit_edge.us.us.us.us, label %.lr.ph92.split.us.us.us.us.us.preheader194

._crit_edge.us.us.us.us:                          ; preds = %.lr.ph92.split.us.us.us.us.us.prol.loopexit, %173, %middle.block163, %.lr.ph92.us.us.us.us
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count132
  br i1 %exitcond133.not, label %.loopexit.us.us.us, label %.lr.ph92.us.us.us.us, !llvm.loop !34

.lr.ph92.split.us.us.us.us.us:                    ; preds = %.lr.ph92.split.us.us.us.us.us.prol.loopexit, %173
  %indvars.iv124 = phi i64 [ %indvars.iv.next125.1, %173 ], [ %indvars.iv124.unr, %.lr.ph92.split.us.us.us.us.us.prol.loopexit ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv124
  %163 = load float, ptr %gep, align 4, !tbaa !21
  %164 = getelementptr inbounds float, ptr %27, i64 %indvars.iv124
  %165 = load float, ptr %164, align 4, !tbaa !21
  %166 = fcmp ogt float %163, %165
  br i1 %166, label %167, label %.lr.ph92.split.us.us.us.us.us.1

167:                                              ; preds = %.lr.ph92.split.us.us.us.us.us
  store float %163, ptr %164, align 4, !tbaa !21
  br label %.lr.ph92.split.us.us.us.us.us.1

.lr.ph92.split.us.us.us.us.us.1:                  ; preds = %167, %.lr.ph92.split.us.us.us.us.us
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %gep.1 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next125
  %168 = load float, ptr %gep.1, align 4, !tbaa !21
  %169 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.next125
  %170 = load float, ptr %169, align 4, !tbaa !21
  %171 = fcmp ogt float %168, %170
  br i1 %171, label %172, label %173

172:                                              ; preds = %.lr.ph92.split.us.us.us.us.us.1
  store float %168, ptr %169, align 4, !tbaa !21
  br label %173

173:                                              ; preds = %172, %.lr.ph92.split.us.us.us.us.us.1
  %indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124, 2
  %exitcond128.not.1 = icmp eq i64 %indvars.iv.next125.1, %wide.trip.count127
  br i1 %exitcond128.not.1, label %._crit_edge.us.us.us.us, label %.lr.ph92.split.us.us.us.us.us, !llvm.loop !35

.lr.ph100.us.us.us:                               ; preds = %.preheader89.us.us.us
  %174 = load i32, ptr %4, align 4, !tbaa !16
  %175 = add i32 %70, %78
  %176 = sub i32 %175, %79
  %177 = mul i32 %20, %176
  %178 = zext i32 %177 to i64
  %179 = mul i32 %50, %174
  %180 = zext i32 %179 to i64
  br label %89

.lr.ph102.us.us.us:                               ; preds = %.preheader.us.us.us
  %181 = load ptr, ptr %38, align 8, !tbaa !36
  %invariant.gep155 = getelementptr float, ptr %181, i64 %75
  %182 = ptrtoint ptr %181 to i64
  %183 = add i64 %73, %182
  %diff.check = icmp ult i64 %183, 32
  %or.cond193 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond193, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph102.us.us.us
  %indvars.iv135.ph = phi i64 [ 0, %.lr.ph102.us.us.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod196.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv135.prol = phi i64 [ %indvars.iv.next136.prol, %scalar.ph.prol ], [ %indvars.iv135.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %184 = getelementptr inbounds float, ptr %27, i64 %indvars.iv135.prol
  %185 = load float, ptr %184, align 4, !tbaa !21
  %gep156.prol = getelementptr float, ptr %invariant.gep155, i64 %indvars.iv135.prol
  store float %185, ptr %gep156.prol, align 4, !tbaa !21
  %indvars.iv.next136.prol = add nuw nsw i64 %indvars.iv135.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter195
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !37

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv135.unr = phi i64 [ %indvars.iv135.ph, %scalar.ph.preheader ], [ %indvars.iv.next136.prol, %scalar.ph.prol ]
  %186 = sub nsw i64 %indvars.iv135.ph, %wide.trip.count
  %187 = icmp ugt i64 %186, -4
  br i1 %187, label %._crit_edge.us114.us.us, label %scalar.ph

vector.body:                                      ; preds = %.lr.ph102.us.us.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph102.us.us.us ]
  %188 = getelementptr inbounds float, ptr %27, i64 %index
  %189 = getelementptr inbounds i8, ptr %188, i64 16
  %wide.load = load <4 x float>, ptr %188, align 4, !tbaa !21
  %wide.load158 = load <4 x float>, ptr %189, align 4, !tbaa !21
  %190 = getelementptr float, ptr %invariant.gep155, i64 %index
  %191 = getelementptr i8, ptr %190, i64 16
  store <4 x float> %wide.load, ptr %190, align 4, !tbaa !21
  store <4 x float> %wide.load158, ptr %191, align 4, !tbaa !21
  %index.next = add nuw i64 %index, 8
  %192 = icmp eq i64 %index.next, %n.vec
  br i1 %192, label %middle.block, label %vector.body, !llvm.loop !39

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us114.us.us, label %scalar.ph.preheader

._crit_edge106.us.us.us:                          ; preds = %._crit_edge.us114.us.us
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %exitcond149.not = icmp eq i64 %indvars.iv.next146, %wide.trip.count148
  br i1 %exitcond149.not, label %._crit_edge110.split.us.us.us, label %.lr.ph105.us.us.us, !llvm.loop !40

._crit_edge110.split.us.us.us:                    ; preds = %._crit_edge106.us.us.us
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %wide.trip.count153
  br i1 %exitcond154.not, label %._crit_edge, label %.lr.ph109.us.us, !llvm.loop !41

._crit_edge:                                      ; preds = %._crit_edge110.split.us.us.us, %.lr.ph, %28
  ret void

193:                                              ; preds = %6
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  resume { ptr, i32 } %194
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN5micro9framework13ScratchBufferD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

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

declare noundef float @_ZN5micro4base6lowestEv() local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 96}
!6 = !{!"_ZTSN5micro3ops11PoolingBaseE", !7, i64 0, !9, i64 64, !9, i64 72, !13, i64 80, !9, i64 88, !9, i64 96, !13, i64 104, !9, i64 112, !10, i64 120, !14, i64 136, !15, i64 140}
!7 = !{!"_ZTSN5micro3ops12FilterOpBaseE", !8, i64 0, !12, i64 32, !9, i64 40, !10, i64 48, !10, i64 56}
!8 = !{!"_ZTSN5micro9framework8OperatorE", !9, i64 8, !9, i64 16, !9, i64 24}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN5micro3ops7PaddingE", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSN5micro3ops9RoundTypeE", !10, i64 0}
!15 = !{!"_ZTSN5micro3ops11PoolingTypeE", !10, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!6, !9, i64 72}
!18 = !{!8, !9, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !10, i64 0}
!23 = distinct !{!23, !20, !24}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!28}
!28 = distinct !{!28, !29}
!29 = distinct !{!29, !"LVerDomain"}
!30 = !{!31}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !20, !24, !33}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20, !24}
!36 = !{!6, !9, i64 88}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}
!39 = distinct !{!39, !20, !24, !33}
!40 = distinct !{!40, !20}
!41 = distinct !{!41, !20}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass