; LLVM IR from hans-ob1/neural_cam_ros :: src/detector (region_layer)

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

%struct.layer = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, i32, float, float, float, float, float, float, float, i32, i32, float, i32, i32, i32, i32, float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.box = type { float, float, float, float }

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

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

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @get_region_box(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
define dso_local void @get_region_boxes(ptr noundef byval(%struct.layer) align 8 %0, i32 noundef %1, i32 noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, float noundef %8) #3 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.box, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  %32 = alloca float, align 4
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store float %3, ptr %12, align 4, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !11
  store i32 %6, ptr %15, align 4, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !11
  store float %8, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %33 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 101
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  store ptr %34, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %282, %9
  %36 = load i32, ptr %18, align 4, !tbaa !5
  %37 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 18
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 17
  %40 = load i32, ptr %39, align 8, !tbaa !17
  %41 = mul nsw i32 %38, %40
  %42 = icmp slt i32 %36, %41
  br i1 %42, label %43, label %285

43:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %44 = load i32, ptr %18, align 4, !tbaa !5
  %45 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 18
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = sdiv i32 %44, %46
  store i32 %47, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %48 = load i32, ptr %18, align 4, !tbaa !5
  %49 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 18
  %50 = load i32, ptr %49, align 4, !tbaa !16
  %51 = srem i32 %48, %50
  store i32 %51, ptr %23, align 4, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %278, %43
  %53 = load i32, ptr %20, align 4, !tbaa !5
  %54 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 23
  %55 = load i32, ptr %54, align 8, !tbaa !18
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %57, label %281

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %58 = load i32, ptr %18, align 4, !tbaa !5
  %59 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 23
  %60 = load i32, ptr %59, align 8, !tbaa !18
  %61 = mul nsw i32 %58, %60
  %62 = load i32, ptr %20, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  store i32 %63, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %64 = load i32, ptr %24, align 4, !tbaa !5
  %65 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = add nsw i32 %66, 5
  %68 = mul nsw i32 %64, %67
  %69 = add nsw i32 %68, 4
  store i32 %69, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %70 = load ptr, ptr %21, align 8, !tbaa !11
  %71 = load i32, ptr %25, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %70, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !9
  store float %74, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %75 = load i32, ptr %24, align 4, !tbaa !5
  %76 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = add nsw i32 %77, 5
  %79 = mul nsw i32 %75, %78
  store i32 %79, ptr %27, align 4, !tbaa !5
  %80 = load ptr, ptr %14, align 8, !tbaa !11
  %81 = load i32, ptr %24, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.box, ptr %80, i64 %82
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %84 = load ptr, ptr %21, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 93
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = load i32, ptr %20, align 4, !tbaa !5
  %88 = load i32, ptr %27, align 4, !tbaa !5
  %89 = load i32, ptr %23, align 4, !tbaa !5
  %90 = load i32, ptr %22, align 4, !tbaa !5
  %91 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 18
  %92 = load i32, ptr %91, align 4, !tbaa !16
  %93 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 17
  %94 = load i32, ptr %93, align 8, !tbaa !17
  %95 = call { <2 x float>, <2 x float> } @get_region_box(ptr noundef %84, ptr noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %92, i32 noundef %94)
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %97 = extractvalue { <2 x float>, <2 x float> } %95, 0
  store <2 x float> %97, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %99 = extractvalue { <2 x float>, <2 x float> } %95, 1
  store <2 x float> %99, ptr %98, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %28, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = sitofp i32 %100 to float
  %102 = load ptr, ptr %14, align 8, !tbaa !11
  %103 = load i32, ptr %24, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.box, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct.box, ptr %105, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !22
  %108 = fmul float %107, %101
  store float %108, ptr %106, align 4, !tbaa !22
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sitofp i32 %109 to float
  %111 = load ptr, ptr %14, align 8, !tbaa !11
  %112 = load i32, ptr %24, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.box, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.box, ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !24
  %117 = fmul float %116, %110
  store float %117, ptr %115, align 4, !tbaa !24
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = sitofp i32 %118 to float
  %120 = load ptr, ptr %14, align 8, !tbaa !11
  %121 = load i32, ptr %24, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.box, ptr %120, i64 %122
  %124 = getelementptr inbounds %struct.box, ptr %123, i32 0, i32 2
  %125 = load float, ptr %124, align 4, !tbaa !25
  %126 = fmul float %125, %119
  store float %126, ptr %124, align 4, !tbaa !25
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = sitofp i32 %127 to float
  %129 = load ptr, ptr %14, align 8, !tbaa !11
  %130 = load i32, ptr %24, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %struct.box, ptr %129, i64 %131
  %133 = getelementptr inbounds %struct.box, ptr %132, i32 0, i32 3
  %134 = load float, ptr %133, align 4, !tbaa !26
  %135 = fmul float %134, %128
  store float %135, ptr %133, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %136 = load i32, ptr %24, align 4, !tbaa !5
  %137 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %138 = load i32, ptr %137, align 4, !tbaa !19
  %139 = add nsw i32 %138, 5
  %140 = mul nsw i32 %136, %139
  %141 = add nsw i32 %140, 5
  store i32 %141, ptr %29, align 4, !tbaa !5
  %142 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 134
  %143 = load ptr, ptr %142, align 8, !tbaa !27
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %230

145:                                              ; preds = %57
  %146 = load ptr, ptr %21, align 8, !tbaa !11
  %147 = load i32, ptr %29, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %151 = load i32, ptr %150, align 4, !tbaa !19
  %152 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 134
  %153 = load ptr, ptr %152, align 8, !tbaa !27
  call void @hierarchy_predictions(ptr noundef %149, i32 noundef %151, ptr noundef %153, i32 noundef 0)
  %154 = load ptr, ptr %16, align 8, !tbaa !11
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %194

156:                                              ; preds = %145
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %190, %156
  %158 = load i32, ptr %19, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 200
  br i1 %159, label %160, label %193

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %161 = load float, ptr %26, align 4, !tbaa !9
  %162 = load ptr, ptr %21, align 8, !tbaa !11
  %163 = load i32, ptr %29, align 4, !tbaa !5
  %164 = load ptr, ptr %16, align 8, !tbaa !11
  %165 = load i32, ptr %19, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = add nsw i32 %163, %168
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds float, ptr %162, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !9
  %173 = fmul float %161, %172
  store float %173, ptr %30, align 4, !tbaa !9
  %174 = load float, ptr %30, align 4, !tbaa !9
  %175 = load float, ptr %12, align 4, !tbaa !9
  %176 = fcmp ogt float %174, %175
  br i1 %176, label %177, label %179

177:                                              ; preds = %160
  %178 = load float, ptr %30, align 4, !tbaa !9
  br label %180

179:                                              ; preds = %160
  br label %180

180:                                              ; preds = %179, %177
  %181 = phi float [ %178, %177 ], [ 0.000000e+00, %179 ]
  %182 = load ptr, ptr %13, align 8, !tbaa !11
  %183 = load i32, ptr %24, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = load i32, ptr %19, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %186, i64 %188
  store float %181, ptr %189, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %190

190:                                              ; preds = %180
  %191 = load i32, ptr %19, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %19, align 4, !tbaa !5
  br label %157, !llvm.loop !28

193:                                              ; preds = %157
  br label %229

194:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %195 = load ptr, ptr %21, align 8, !tbaa !11
  %196 = load i32, ptr %29, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds float, ptr %195, i64 %197
  %199 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 134
  %200 = load ptr, ptr %199, align 8, !tbaa !27
  %201 = load float, ptr %17, align 4, !tbaa !9
  %202 = call i32 @hierarchy_top_prediction(ptr noundef %198, ptr noundef %200, float noundef %201)
  store i32 %202, ptr %31, align 4, !tbaa !5
  %203 = load float, ptr %26, align 4, !tbaa !9
  %204 = load float, ptr %12, align 4, !tbaa !9
  %205 = fcmp ogt float %203, %204
  br i1 %205, label %206, label %208

206:                                              ; preds = %194
  %207 = load float, ptr %26, align 4, !tbaa !9
  br label %209

208:                                              ; preds = %194
  br label %209

209:                                              ; preds = %208, %206
  %210 = phi float [ %207, %206 ], [ 0.000000e+00, %208 ]
  %211 = load ptr, ptr %13, align 8, !tbaa !11
  %212 = load i32, ptr %24, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  %216 = load i32, ptr %31, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds float, ptr %215, i64 %217
  store float %210, ptr %218, align 4, !tbaa !9
  %219 = load float, ptr %26, align 4, !tbaa !9
  %220 = load ptr, ptr %13, align 8, !tbaa !11
  %221 = load i32, ptr %24, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds ptr, ptr %220, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %226 = load i32, ptr %225, align 4, !tbaa !19
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds float, ptr %224, i64 %227
  store float %219, ptr %228, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %229

229:                                              ; preds = %209, %193
  br label %266

230:                                              ; preds = %57
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %262, %230
  %232 = load i32, ptr %19, align 4, !tbaa !5
  %233 = getelementptr inbounds %struct.layer, ptr %0, i32 0, i32 46
  %234 = load i32, ptr %233, align 4, !tbaa !19
  %235 = icmp slt i32 %232, %234
  br i1 %235, label %236, label %265

236:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %237 = load float, ptr %26, align 4, !tbaa !9
  %238 = load ptr, ptr %21, align 8, !tbaa !11
  %239 = load i32, ptr %29, align 4, !tbaa !5
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = add nsw i32 %239, %240
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds float, ptr %238, i64 %242
  %244 = load float, ptr %243, align 4, !tbaa !9
  %245 = fmul float %237, %244
  store float %245, ptr %32, align 4, !tbaa !9
  %246 = load float, ptr %32, align 4, !tbaa !9
  %247 = load float, ptr %12, align 4, !tbaa !9
  %248 = fcmp ogt float %246, %247
  br i1 %248, label %249, label %251

249:                                              ; preds = %236
  %250 = load float, ptr %32, align 4, !tbaa !9
  br label %252

251:                                              ; preds = %236
  br label %252

252:                                              ; preds = %251, %249
  %253 = phi float [ %250, %249 ], [ 0.000000e+00, %251 ]
  %254 = load ptr, ptr %13, align 8, !tbaa !11
  %255 = load i32, ptr %24, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds ptr, ptr %254, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !11
  %259 = load i32, ptr %19, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds float, ptr %258, i64 %260
  store float %253, ptr %261, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %262

262:                                              ; preds = %252
  %263 = load i32, ptr %19, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %19, align 4, !tbaa !5
  br label %231, !llvm.loop !30

265:                                              ; preds = %231
  br label %266

266:                                              ; preds = %265, %229
  %267 = load i32, ptr %15, align 4, !tbaa !5
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %277

269:                                              ; preds = %266
  %270 = load float, ptr %26, align 4, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !11
  %272 = load i32, ptr %24, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds ptr, ptr %271, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !11
  %276 = getelementptr inbounds float, ptr %275, i64 0
  store float %270, ptr %276, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %269, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %20, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %20, align 4, !tbaa !5
  br label %52, !llvm.loop !31

281:                                              ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %18, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %18, align 4, !tbaa !5
  br label %35, !llvm.loop !32

285:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  ret void
}

declare void @hierarchy_predictions(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare i32 @hierarchy_top_prediction(ptr noundef, ptr noundef, float noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 528}
!14 = !{!"layer", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !6, i64 156, !6, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !6, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !6, i64 300, !6, i64 304, !10, i64 308, !6, i64 312, !6, i64 316, !6, i64 320, !6, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !12, i64 544, !12, i64 552, !12, i64 560, !12, i64 568, !12, i64 576, !12, i64 584, !12, i64 592, !12, i64 600, !12, i64 608, !12, i64 616, !12, i64 624, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !12, i64 672, !12, i64 680, !12, i64 688, !12, i64 696, !12, i64 704, !12, i64 712, !12, i64 720, !12, i64 728, !12, i64 736, !12, i64 744, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !12, i64 784, !12, i64 792, !15, i64 800}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !6, i64 100}
!17 = !{!14, !6, i64 96}
!18 = !{!14, !6, i64 120}
!19 = !{!14, !6, i64 212}
!20 = !{!14, !12, i64 464}
!21 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!22 = !{!23, !10, i64 0}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!24 = !{!23, !10, i64 4}
!25 = !{!23, !10, i64 8}
!26 = !{!23, !10, i64 12}
!27 = !{!14, !12, i64 792}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}


; 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"

%struct.layer = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, i32, float, float, float, float, float, float, float, i32, i32, float, i32, i32, i32, i32, float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.box = type { float, float, float, float }

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @get_region_box(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @get_region_boxes(ptr nocapture noundef readonly byval(%struct.layer) align 8 %0, i32 noundef %1, i32 noundef %2, float noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5, i32 noundef %6, ptr noundef readonly %7, float noundef %8) local_unnamed_addr #1 {
  %10 = getelementptr inbounds i8, ptr %0, i64 528
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = ptrtoint ptr %11 to i64
  %13 = getelementptr inbounds i8, ptr %0, i64 100
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = mul nsw i32 %16, %14
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge90

.lr.ph:                                           ; preds = %9
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = load i32, ptr %19, align 8, !tbaa !15
  %invariant.gep = getelementptr i8, ptr %11, i64 16
  %21 = icmp sgt i32 %20, 0
  %22 = getelementptr inbounds i8, ptr %0, i64 212
  %23 = load i32, ptr %22, align 4
  %.fr97 = freeze i32 %23
  %24 = add nsw i32 %.fr97, 5
  %25 = getelementptr inbounds i8, ptr %0, i64 464
  %26 = load ptr, ptr %25, align 8
  %27 = insertelement <2 x i32> poison, i32 %1, i64 0
  %28 = insertelement <2 x i32> %27, i32 %2, i64 1
  %29 = sitofp <2 x i32> %28 to <2 x float>
  %30 = shufflevector <2 x float> %29, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %31 = getelementptr inbounds i8, ptr %0, i64 792
  %32 = load ptr, ptr %31, align 8
  %.fr96 = freeze ptr %32
  %.not80 = icmp eq ptr %7, null
  %33 = sext i32 %.fr97 to i64
  %34 = icmp sgt i32 %.fr97, 0
  %.not81 = icmp eq i32 %6, 0
  br i1 %21, label %.lr.ph.split.us, label %._crit_edge90

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %.not = icmp eq ptr %.fr96, null
  br i1 %.not, label %.lr.ph.split.us.split.us, label %.lr.ph87.us.preheader

.lr.ph87.us.preheader:                            ; preds = %.lr.ph.split.us
  %35 = sext i32 %24 to i64
  %36 = zext nneg i32 %20 to i64
  %wide.trip.count109 = zext nneg i32 %17 to i64
  %wide.trip.count = zext nneg i32 %20 to i64
  br label %.lr.ph87.us

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us
  %37 = zext nneg i32 %20 to i64
  %wide.trip.count134 = zext nneg i32 %17 to i64
  br i1 %34, label %.lr.ph87.us.us.us.preheader, label %.lr.ph87.us.us.preheader

.lr.ph87.us.us.preheader:                         ; preds = %.lr.ph.split.us.split.us
  %38 = sext i32 %24 to i64
  %wide.trip.count114 = zext nneg i32 %20 to i64
  br label %.lr.ph87.us.us

.lr.ph87.us.us.us.preheader:                      ; preds = %.lr.ph.split.us.split.us
  %39 = zext nneg i32 %24 to i64
  %wide.trip.count124 = zext nneg i32 %.fr97 to i64
  %invariant.gep159 = getelementptr inbounds i8, ptr %11, i64 20
  %40 = mul nuw nsw i64 %37, %39
  %41 = mul i64 %40, -4
  %42 = mul nsw i64 %39, -4
  %min.iters.check = icmp ult i32 %.fr97, 8
  %n.vec = and i64 %wide.trip.count124, 2147483640
  %broadcast.splatinsert163 = insertelement <4 x float> poison, float %3, i64 0
  %broadcast.splat164 = shufflevector <4 x float> %broadcast.splatinsert163, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count124
  %xtraiter = and i64 %wide.trip.count124, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %43 = add nsw i64 %wide.trip.count124, -1
  br label %.lr.ph87.us.us.us

.lr.ph87.us.us.us:                                ; preds = %.lr.ph87.us.us.us.preheader, %._crit_edge.split.us.us.us.split.us.us
  %indvars.iv131 = phi i64 [ 0, %.lr.ph87.us.us.us.preheader ], [ %indvars.iv.next132, %._crit_edge.split.us.us.us.split.us.us ]
  %44 = mul i64 %41, %indvars.iv131
  %reass.sub = sub i64 %44, %12
  %45 = add i64 %reass.sub, -20
  %46 = trunc nuw nsw i64 %indvars.iv131 to i32
  %47 = sdiv i32 %46, %14
  %48 = srem i32 %46, %14
  %49 = mul nuw nsw i64 %indvars.iv131, %37
  %50 = trunc nuw i64 %49 to i32
  br label %.preheader.us.us.us.us.us

.preheader.us.us.us.us.us:                        ; preds = %86, %.lr.ph87.us.us.us
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %86 ], [ 0, %.lr.ph87.us.us.us ]
  %indvars128 = trunc i64 %indvars.iv126 to i32
  %51 = add nuw nsw i64 %49, %indvars.iv126
  %52 = add nuw nsw i32 %50, %indvars128
  %53 = mul nuw nsw i64 %51, %39
  %54 = mul nuw nsw i32 %24, %52
  %gep.us.us.us.us.us = getelementptr float, ptr %invariant.gep, i64 %53
  %55 = load float, ptr %gep.us.us.us.us.us, align 4, !tbaa !16
  %56 = getelementptr inbounds %struct.box, ptr %5, i64 %51
  %57 = tail call { <2 x float>, <2 x float> } @get_region_box(ptr noundef %11, ptr noundef %26, i32 noundef %indvars128, i32 noundef %54, i32 noundef %48, i32 noundef %47, i32 noundef %14, i32 noundef %16)
  %58 = extractvalue { <2 x float>, <2 x float> } %57, 0
  %59 = extractvalue { <2 x float>, <2 x float> } %57, 1
  %60 = shufflevector <2 x float> %58, <2 x float> %59, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %61 = fmul <4 x float> %60, %30
  store <4 x float> %61, ptr %56, align 4, !tbaa !16
  %62 = getelementptr inbounds ptr, ptr %4, i64 %51
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %gep = getelementptr inbounds float, ptr %invariant.gep159, i64 %53
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader.us.us.us.us.us
  %indvars.iv121.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.us.us.us.us.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %gep158.prol = getelementptr inbounds float, ptr %gep, i64 %indvars.iv121.ph
  %64 = load float, ptr %gep158.prol, align 4, !tbaa !16
  %65 = fmul float %55, %64
  %66 = fcmp ogt float %65, %3
  %67 = select i1 %66, float %65, float 0.000000e+00
  %68 = getelementptr inbounds float, ptr %63, i64 %indvars.iv121.ph
  store float %67, ptr %68, align 4, !tbaa !16
  %indvars.iv.next122.prol = or disjoint i64 %indvars.iv121.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv121.unr = phi i64 [ %indvars.iv121.ph, %scalar.ph.preheader ], [ %indvars.iv.next122.prol, %scalar.ph.prol ]
  %69 = icmp eq i64 %indvars.iv121.ph, %43
  br i1 %69, label %..loopexit_crit_edge.us.us.us.us.us, label %scalar.ph

vector.memcheck:                                  ; preds = %.preheader.us.us.us.us.us
  %70 = ptrtoint ptr %63 to i64
  %71 = mul i64 %42, %indvars.iv126
  %72 = add i64 %45, %71
  %73 = add i64 %72, %70
  %diff.check = icmp ult i64 %73, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <4 x float> poison, float %55, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %74 = getelementptr inbounds float, ptr %gep, i64 %index
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load = load <4 x float>, ptr %74, align 4, !tbaa !16
  %wide.load162 = load <4 x float>, ptr %75, align 4, !tbaa !16
  %76 = fmul <4 x float> %broadcast.splat, %wide.load
  %77 = fmul <4 x float> %broadcast.splat, %wide.load162
  %78 = fcmp ogt <4 x float> %76, %broadcast.splat164
  %79 = fcmp ogt <4 x float> %77, %broadcast.splat164
  %80 = select <4 x i1> %78, <4 x float> %76, <4 x float> zeroinitializer
  %81 = select <4 x i1> %79, <4 x float> %77, <4 x float> zeroinitializer
  %82 = getelementptr inbounds float, ptr %63, i64 %index
  %83 = getelementptr inbounds i8, ptr %82, i64 16
  store <4 x float> %80, ptr %82, align 4, !tbaa !16
  store <4 x float> %81, ptr %83, align 4, !tbaa !16
  %index.next = add nuw i64 %index, 8
  %84 = icmp eq i64 %index.next, %n.vec
  br i1 %84, label %middle.block, label %vector.body, !llvm.loop !18

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

85:                                               ; preds = %..loopexit_crit_edge.us.us.us.us.us
  store float %55, ptr %63, align 4, !tbaa !16
  br label %86

86:                                               ; preds = %..loopexit_crit_edge.us.us.us.us.us, %85
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %37
  br i1 %exitcond130.not, label %._crit_edge.split.us.us.us.split.us.us, label %.preheader.us.us.us.us.us, !llvm.loop !22

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv121 = phi i64 [ %indvars.iv.next122.1, %scalar.ph ], [ %indvars.iv121.unr, %scalar.ph.prol.loopexit ]
  %gep158 = getelementptr inbounds float, ptr %gep, i64 %indvars.iv121
  %87 = load float, ptr %gep158, align 4, !tbaa !16
  %88 = fmul float %55, %87
  %89 = fcmp ogt float %88, %3
  %90 = select i1 %89, float %88, float 0.000000e+00
  %91 = getelementptr inbounds float, ptr %63, i64 %indvars.iv121
  store float %90, ptr %91, align 4, !tbaa !16
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %gep158.1 = getelementptr inbounds float, ptr %gep, i64 %indvars.iv.next122
  %92 = load float, ptr %gep158.1, align 4, !tbaa !16
  %93 = fmul float %55, %92
  %94 = fcmp ogt float %93, %3
  %95 = select i1 %94, float %93, float 0.000000e+00
  %96 = getelementptr inbounds float, ptr %63, i64 %indvars.iv.next122
  store float %95, ptr %96, align 4, !tbaa !16
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121, 2
  %exitcond125.not.1 = icmp eq i64 %indvars.iv.next122.1, %wide.trip.count124
  br i1 %exitcond125.not.1, label %..loopexit_crit_edge.us.us.us.us.us, label %scalar.ph, !llvm.loop !23

..loopexit_crit_edge.us.us.us.us.us:              ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  br i1 %.not81, label %86, label %85

._crit_edge.split.us.us.us.split.us.us:           ; preds = %86
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next132, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge90, label %.lr.ph87.us.us.us, !llvm.loop !24

.lr.ph87.us.us:                                   ; preds = %.lr.ph87.us.us.preheader, %._crit_edge.split.us.us.us.split
  %indvars.iv116 = phi i64 [ 0, %.lr.ph87.us.us.preheader ], [ %indvars.iv.next117, %._crit_edge.split.us.us.us.split ]
  %97 = trunc nuw nsw i64 %indvars.iv116 to i32
  %98 = sdiv i32 %97, %14
  %99 = srem i32 %97, %14
  %100 = mul nuw nsw i64 %indvars.iv116, %37
  %101 = trunc nsw i64 %100 to i32
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %116, %.lr.ph87.us.us
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %116 ], [ 0, %.lr.ph87.us.us ]
  %indvars113 = trunc i64 %indvars.iv111 to i32
  %102 = add nuw nsw i64 %100, %indvars.iv111
  %103 = add nuw nsw i32 %101, %indvars113
  %104 = mul nsw i64 %102, %38
  %105 = mul nsw i32 %24, %103
  %gep.us.us.us = getelementptr float, ptr %invariant.gep, i64 %104
  %106 = load float, ptr %gep.us.us.us, align 4, !tbaa !16
  %107 = getelementptr inbounds %struct.box, ptr %5, i64 %102
  %108 = tail call { <2 x float>, <2 x float> } @get_region_box(ptr noundef %11, ptr noundef %26, i32 noundef %indvars113, i32 noundef %105, i32 noundef %99, i32 noundef %98, i32 noundef %14, i32 noundef %16)
  %109 = extractvalue { <2 x float>, <2 x float> } %108, 0
  %110 = extractvalue { <2 x float>, <2 x float> } %108, 1
  %111 = shufflevector <2 x float> %109, <2 x float> %110, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %112 = fmul <4 x float> %111, %30
  store <4 x float> %112, ptr %107, align 4, !tbaa !16
  br i1 %.not81, label %116, label %113

113:                                              ; preds = %.preheader.us.us.us
  %114 = getelementptr inbounds ptr, ptr %4, i64 %102
  %115 = load ptr, ptr %114, align 8, !tbaa !17
  store float %106, ptr %115, align 4, !tbaa !16
  br label %116

116:                                              ; preds = %.preheader.us.us.us, %113
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge.split.us.us.us.split, label %.preheader.us.us.us, !llvm.loop !22

._crit_edge.split.us.us.us.split:                 ; preds = %116
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count134
  br i1 %exitcond120.not, label %._crit_edge90, label %.lr.ph87.us.us, !llvm.loop !24

.lr.ph87.us:                                      ; preds = %.lr.ph87.us.preheader, %._crit_edge.split.us94
  %indvars.iv106 = phi i64 [ 0, %.lr.ph87.us.preheader ], [ %indvars.iv.next107, %._crit_edge.split.us94 ]
  %117 = trunc nuw nsw i64 %indvars.iv106 to i32
  %118 = sdiv i32 %117, %14
  %119 = srem i32 %117, %14
  %120 = mul nuw nsw i64 %indvars.iv106, %36
  %121 = trunc nsw i64 %120 to i32
  br label %122

122:                                              ; preds = %.lr.ph87.us, %166
  %indvars.iv102 = phi i64 [ 0, %.lr.ph87.us ], [ %indvars.iv.next103, %166 ]
  %indvars104 = trunc i64 %indvars.iv102 to i32
  %123 = add nuw nsw i64 %120, %indvars.iv102
  %124 = add nuw nsw i32 %121, %indvars104
  %125 = mul nsw i64 %123, %35
  %126 = mul nsw i32 %24, %124
  %gep.us92 = getelementptr float, ptr %invariant.gep, i64 %125
  %127 = load float, ptr %gep.us92, align 4, !tbaa !16
  %128 = getelementptr inbounds %struct.box, ptr %5, i64 %123
  %129 = tail call { <2 x float>, <2 x float> } @get_region_box(ptr noundef %11, ptr noundef %26, i32 noundef %indvars104, i32 noundef %126, i32 noundef %119, i32 noundef %118, i32 noundef %14, i32 noundef %16)
  %130 = extractvalue { <2 x float>, <2 x float> } %129, 0
  %131 = extractvalue { <2 x float>, <2 x float> } %129, 1
  %132 = shufflevector <2 x float> %130, <2 x float> %131, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %133 = fmul <4 x float> %132, %30
  store <4 x float> %133, ptr %128, align 4, !tbaa !16
  %134 = add nsw i64 %125, 5
  %135 = getelementptr inbounds float, ptr %11, i64 %134
  tail call void @hierarchy_predictions(ptr noundef %135, i32 noundef %.fr97, ptr noundef nonnull %.fr96, i32 noundef 0) #3
  br i1 %.not80, label %155, label %.preheader82.us

136:                                              ; preds = %136, %.preheader82.us
  %indvars.iv = phi i64 [ 0, %.preheader82.us ], [ %indvars.iv.next.1, %136 ]
  %137 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  %138 = load i32, ptr %137, align 4, !tbaa !25
  %139 = sext i32 %138 to i64
  %140 = getelementptr float, ptr %169, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !16
  %142 = fmul float %127, %141
  %143 = fcmp ogt float %142, %3
  %144 = select i1 %143, float %142, float 0.000000e+00
  %145 = getelementptr inbounds float, ptr %168, i64 %indvars.iv
  store float %144, ptr %145, align 4, !tbaa !16
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %146 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next
  %147 = load i32, ptr %146, align 4, !tbaa !25
  %148 = sext i32 %147 to i64
  %149 = getelementptr float, ptr %169, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !16
  %151 = fmul float %127, %150
  %152 = fcmp ogt float %151, %3
  %153 = select i1 %152, float %151, float 0.000000e+00
  %154 = getelementptr inbounds float, ptr %168, i64 %indvars.iv.next
  store float %153, ptr %154, align 4, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 200
  br i1 %exitcond.not.1, label %.loopexit83.us, label %136, !llvm.loop !26

155:                                              ; preds = %122
  %156 = tail call i32 @hierarchy_top_prediction(ptr noundef nonnull %135, ptr noundef nonnull %.fr96, float noundef %8) #3
  %157 = fcmp ogt float %127, %3
  %158 = select i1 %157, float %127, float 0.000000e+00
  %159 = getelementptr inbounds ptr, ptr %4, i64 %123
  %160 = load ptr, ptr %159, align 8, !tbaa !17
  %161 = sext i32 %156 to i64
  %162 = getelementptr inbounds float, ptr %160, i64 %161
  store float %158, ptr %162, align 4, !tbaa !16
  %163 = getelementptr inbounds float, ptr %160, i64 %33
  store float %127, ptr %163, align 4, !tbaa !16
  br label %.loopexit83.us

.loopexit83.us:                                   ; preds = %136, %155
  %164 = phi ptr [ %160, %155 ], [ %168, %136 ]
  br i1 %.not81, label %166, label %165

165:                                              ; preds = %.loopexit83.us
  store float %127, ptr %164, align 4, !tbaa !16
  br label %166

166:                                              ; preds = %165, %.loopexit83.us
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count
  br i1 %exitcond105.not, label %._crit_edge.split.us94, label %122, !llvm.loop !22

.preheader82.us:                                  ; preds = %122
  %167 = getelementptr inbounds ptr, ptr %4, i64 %123
  %168 = load ptr, ptr %167, align 8, !tbaa !17
  %169 = getelementptr float, ptr %11, i64 %134
  br label %136

._crit_edge.split.us94:                           ; preds = %166
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count109
  br i1 %exitcond110.not, label %._crit_edge90, label %.lr.ph87.us, !llvm.loop !24

._crit_edge90:                                    ; preds = %._crit_edge.split.us94, %._crit_edge.split.us.us.us.split, %._crit_edge.split.us.us.us.split.us.us, %.lr.ph, %9
  ret void
}

declare void @hierarchy_predictions(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @hierarchy_top_prediction(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 }

!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, !10, i64 528}
!6 = !{!"layer", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !7, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !7, i64 300, !7, i64 304, !11, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !10, i64 672, !10, i64 680, !10, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !12, i64 800}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 100}
!14 = !{!6, !7, i64 96}
!15 = !{!6, !7, i64 120}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19, !20}
!24 = distinct !{!24, !19}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !19}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass