; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (background)

; 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.background = type { double, double, double, double, double, double, double, i32, double, double, double, double, i16, double, double, double, double, double, double, double, double, double, i16, double, double, ptr, i32, i32, double, i32, ptr, ptr, double, ptr, double, ptr, double, ptr, double, ptr, ptr, ptr, double, double, double, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, double, 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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i16, i16, i16, i16, i16, [2048 x i8], i16, [2048 x i8] }

@.str.181 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [72 x i8], align 1

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

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @background_output_budget(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.background, ptr %8, i32 0, i32 148
  %10 = load i16, ptr %9, align 4, !tbaa !11
  %11 = sext i16 %10 to i32
  %12 = icmp sgt i32 %11, 1
  br i1 %12, label %13, label %501

13:                                               ; preds = %1
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.181)
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.182)
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.background, ptr %16, i32 0, i32 3
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.background, ptr %19, i32 0, i32 3
  %21 = load double, ptr %20, align 8, !tbaa !15
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.background, ptr %22, i32 0, i32 42
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = fmul double %21, %24
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.background, ptr %26, i32 0, i32 42
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = fmul double %25, %28
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.184, double noundef %18, double noundef %29)
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.background, ptr %31, i32 0, i32 3
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = load double, ptr %3, align 8, !tbaa !9
  %35 = fadd double %34, %33
  store double %35, ptr %3, align 8, !tbaa !9
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.background, ptr %36, i32 0, i32 119
  %38 = load i16, ptr %37, align 4, !tbaa !17
  %39 = icmp ne i16 %38, 0
  br i1 %39, label %40, label %61

40:                                               ; preds = %13
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.background, ptr %41, i32 0, i32 4
  %43 = load double, ptr %42, align 8, !tbaa !18
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.background, ptr %44, i32 0, i32 4
  %46 = load double, ptr %45, align 8, !tbaa !18
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.background, ptr %47, i32 0, i32 42
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = fmul double %46, %49
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.background, ptr %51, i32 0, i32 42
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = fmul double %50, %53
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.185, double noundef %43, double noundef %54)
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.background, ptr %56, i32 0, i32 4
  %58 = load double, ptr %57, align 8, !tbaa !18
  %59 = load double, ptr %3, align 8, !tbaa !9
  %60 = fadd double %59, %58
  store double %60, ptr %3, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %40, %13
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.background, ptr %62, i32 0, i32 128
  %64 = load i16, ptr %63, align 2, !tbaa !19
  %65 = icmp ne i16 %64, 0
  br i1 %65, label %66, label %87

66:                                               ; preds = %61
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.background, ptr %67, i32 0, i32 17
  %69 = load double, ptr %68, align 8, !tbaa !20
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.background, ptr %70, i32 0, i32 17
  %72 = load double, ptr %71, align 8, !tbaa !20
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.background, ptr %73, i32 0, i32 42
  %75 = load double, ptr %74, align 8, !tbaa !16
  %76 = fmul double %72, %75
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.background, ptr %77, i32 0, i32 42
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = fmul double %76, %79
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.186, double noundef %69, double noundef %80)
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.background, ptr %82, i32 0, i32 17
  %84 = load double, ptr %83, align 8, !tbaa !20
  %85 = load double, ptr %3, align 8, !tbaa !9
  %86 = fadd double %85, %84
  store double %86, ptr %3, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %66, %61
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.background, ptr %88, i32 0, i32 120
  %90 = load i16, ptr %89, align 2, !tbaa !21
  %91 = icmp ne i16 %90, 0
  br i1 %91, label %92, label %113

92:                                               ; preds = %87
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.background, ptr %93, i32 0, i32 49
  %95 = load double, ptr %94, align 8, !tbaa !22
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.background, ptr %96, i32 0, i32 49
  %98 = load double, ptr %97, align 8, !tbaa !22
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.background, ptr %99, i32 0, i32 42
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = fmul double %98, %101
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.background, ptr %103, i32 0, i32 42
  %105 = load double, ptr %104, align 8, !tbaa !16
  %106 = fmul double %102, %105
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.187, double noundef %95, double noundef %106)
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.background, ptr %108, i32 0, i32 49
  %110 = load double, ptr %109, align 8, !tbaa !22
  %111 = load double, ptr %3, align 8, !tbaa !9
  %112 = fadd double %111, %110
  store double %112, ptr %3, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %92, %87
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.188)
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.background, ptr %115, i32 0, i32 1
  %117 = load double, ptr %116, align 8, !tbaa !23
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.background, ptr %118, i32 0, i32 1
  %120 = load double, ptr %119, align 8, !tbaa !23
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.background, ptr %121, i32 0, i32 42
  %123 = load double, ptr %122, align 8, !tbaa !16
  %124 = fmul double %120, %123
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.background, ptr %125, i32 0, i32 42
  %127 = load double, ptr %126, align 8, !tbaa !16
  %128 = fmul double %124, %127
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.189, double noundef %117, double noundef %128)
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.background, ptr %130, i32 0, i32 1
  %132 = load double, ptr %131, align 8, !tbaa !23
  %133 = load double, ptr %4, align 8, !tbaa !9
  %134 = fadd double %133, %132
  store double %134, ptr %4, align 8, !tbaa !9
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.background, ptr %135, i32 0, i32 126
  %137 = load i16, ptr %136, align 2, !tbaa !24
  %138 = icmp ne i16 %137, 0
  br i1 %138, label %139, label %160

139:                                              ; preds = %113
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.background, ptr %140, i32 0, i32 14
  %142 = load double, ptr %141, align 8, !tbaa !25
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.background, ptr %143, i32 0, i32 14
  %145 = load double, ptr %144, align 8, !tbaa !25
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.background, ptr %146, i32 0, i32 42
  %148 = load double, ptr %147, align 8, !tbaa !16
  %149 = fmul double %145, %148
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.background, ptr %150, i32 0, i32 42
  %152 = load double, ptr %151, align 8, !tbaa !16
  %153 = fmul double %149, %152
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.190, double noundef %142, double noundef %153)
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.background, ptr %155, i32 0, i32 14
  %157 = load double, ptr %156, align 8, !tbaa !25
  %158 = load double, ptr %4, align 8, !tbaa !9
  %159 = fadd double %158, %157
  store double %159, ptr %4, align 8, !tbaa !9
  br label %160

160:                                              ; preds = %139, %113
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.background, ptr %161, i32 0, i32 121
  %163 = load i16, ptr %162, align 8, !tbaa !26
  %164 = icmp ne i16 %163, 0
  br i1 %164, label %165, label %186

165:                                              ; preds = %160
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.background, ptr %166, i32 0, i32 50
  %168 = load double, ptr %167, align 8, !tbaa !27
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.background, ptr %169, i32 0, i32 50
  %171 = load double, ptr %170, align 8, !tbaa !27
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.background, ptr %172, i32 0, i32 42
  %174 = load double, ptr %173, align 8, !tbaa !16
  %175 = fmul double %171, %174
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.background, ptr %176, i32 0, i32 42
  %178 = load double, ptr %177, align 8, !tbaa !16
  %179 = fmul double %175, %178
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.191, double noundef %168, double noundef %179)
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.background, ptr %181, i32 0, i32 50
  %183 = load double, ptr %182, align 8, !tbaa !27
  %184 = load double, ptr %4, align 8, !tbaa !9
  %185 = fadd double %184, %183
  store double %185, ptr %4, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %165, %160
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.background, ptr %187, i32 0, i32 127
  %189 = load i16, ptr %188, align 4, !tbaa !28
  %190 = icmp ne i16 %189, 0
  br i1 %190, label %191, label %212

191:                                              ; preds = %186
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.background, ptr %192, i32 0, i32 15
  %194 = load double, ptr %193, align 8, !tbaa !29
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.background, ptr %195, i32 0, i32 15
  %197 = load double, ptr %196, align 8, !tbaa !29
  %198 = load ptr, ptr %2, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.background, ptr %198, i32 0, i32 42
  %200 = load double, ptr %199, align 8, !tbaa !16
  %201 = fmul double %197, %200
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.background, ptr %202, i32 0, i32 42
  %204 = load double, ptr %203, align 8, !tbaa !16
  %205 = fmul double %201, %204
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.192, double noundef %194, double noundef %205)
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.background, ptr %207, i32 0, i32 15
  %209 = load double, ptr %208, align 8, !tbaa !29
  %210 = load double, ptr %4, align 8, !tbaa !9
  %211 = fadd double %210, %209
  store double %211, ptr %4, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %191, %186
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.background, ptr %213, i32 0, i32 29
  %215 = load i32, ptr %214, align 8, !tbaa !30
  %216 = icmp sgt i32 %215, 0
  br i1 %216, label %217, label %219

217:                                              ; preds = %212
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.193)
  br label %219

219:                                              ; preds = %217, %212
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.background, ptr %220, i32 0, i32 29
  %222 = load i32, ptr %221, align 8, !tbaa !30
  %223 = icmp sgt i32 %222, 0
  br i1 %223, label %224, label %270

224:                                              ; preds = %219
  store i32 0, ptr %7, align 4, !tbaa !31
  br label %225

225:                                              ; preds = %266, %224
  %226 = load i32, ptr %7, align 4, !tbaa !31
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.background, ptr %227, i32 0, i32 29
  %229 = load i32, ptr %228, align 8, !tbaa !30
  %230 = icmp slt i32 %226, %229
  br i1 %230, label %231, label %269

231:                                              ; preds = %225
  %232 = load i32, ptr %7, align 4, !tbaa !31
  %233 = add nsw i32 %232, 1
  %234 = load ptr, ptr %2, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.background, ptr %234, i32 0, i32 31
  %236 = load ptr, ptr %235, align 8, !tbaa !32
  %237 = load i32, ptr %7, align 4, !tbaa !31
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds double, ptr %236, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !9
  %241 = load ptr, ptr %2, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.background, ptr %241, i32 0, i32 31
  %243 = load ptr, ptr %242, align 8, !tbaa !32
  %244 = load i32, ptr %7, align 4, !tbaa !31
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds double, ptr %243, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !9
  %248 = load ptr, ptr %2, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.background, ptr %248, i32 0, i32 42
  %250 = load double, ptr %249, align 8, !tbaa !16
  %251 = fmul double %247, %250
  %252 = load ptr, ptr %2, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.background, ptr %252, i32 0, i32 42
  %254 = load double, ptr %253, align 8, !tbaa !16
  %255 = fmul double %251, %254
  %256 = call i32 (ptr, ...) @printf(ptr noundef @.str.194, ptr noundef @.str.195, i32 noundef %233, double noundef %240, double noundef %255)
  %257 = load ptr, ptr %2, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.background, ptr %257, i32 0, i32 31
  %259 = load ptr, ptr %258, align 8, !tbaa !32
  %260 = load i32, ptr %7, align 4, !tbaa !31
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds double, ptr %259, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  %264 = load double, ptr %6, align 8, !tbaa !9
  %265 = fadd double %264, %263
  store double %265, ptr %6, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %231
  %267 = load i32, ptr %7, align 4, !tbaa !31
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %7, align 4, !tbaa !31
  br label %225, !llvm.loop !33

269:                                              ; preds = %225
  br label %270

270:                                              ; preds = %269, %219
  %271 = load ptr, ptr %2, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.background, ptr %271, i32 0, i32 124
  %273 = load i16, ptr %272, align 2, !tbaa !35
  %274 = sext i16 %273 to i32
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %294, label %276

276:                                              ; preds = %270
  %277 = load ptr, ptr %2, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.background, ptr %277, i32 0, i32 125
  %279 = load i16, ptr %278, align 8, !tbaa !36
  %280 = sext i16 %279 to i32
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %294, label %282

282:                                              ; preds = %276
  %283 = load ptr, ptr %2, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.background, ptr %283, i32 0, i32 122
  %285 = load i16, ptr %284, align 2, !tbaa !37
  %286 = sext i16 %285 to i32
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %294, label %288

288:                                              ; preds = %282
  %289 = load ptr, ptr %2, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.background, ptr %289, i32 0, i32 129
  %291 = load i16, ptr %290, align 8, !tbaa !38
  %292 = sext i16 %291 to i32
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %296

294:                                              ; preds = %288, %282, %276, %270
  %295 = call i32 (ptr, ...) @printf(ptr noundef @.str.196)
  br label %296

296:                                              ; preds = %294, %288
  %297 = load ptr, ptr %2, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.background, ptr %297, i32 0, i32 124
  %299 = load i16, ptr %298, align 2, !tbaa !35
  %300 = icmp ne i16 %299, 0
  br i1 %300, label %301, label %322

301:                                              ; preds = %296
  %302 = load ptr, ptr %2, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.background, ptr %302, i32 0, i32 5
  %304 = load double, ptr %303, align 8, !tbaa !39
  %305 = load ptr, ptr %2, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.background, ptr %305, i32 0, i32 5
  %307 = load double, ptr %306, align 8, !tbaa !39
  %308 = load ptr, ptr %2, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.background, ptr %308, i32 0, i32 42
  %310 = load double, ptr %309, align 8, !tbaa !16
  %311 = fmul double %307, %310
  %312 = load ptr, ptr %2, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.background, ptr %312, i32 0, i32 42
  %314 = load double, ptr %313, align 8, !tbaa !16
  %315 = fmul double %311, %314
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.197, double noundef %304, double noundef %315)
  %317 = load ptr, ptr %2, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.background, ptr %317, i32 0, i32 5
  %319 = load double, ptr %318, align 8, !tbaa !39
  %320 = load double, ptr %5, align 8, !tbaa !9
  %321 = fadd double %320, %319
  store double %321, ptr %5, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %301, %296
  %323 = load ptr, ptr %2, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.background, ptr %323, i32 0, i32 125
  %325 = load i16, ptr %324, align 8, !tbaa !36
  %326 = icmp ne i16 %325, 0
  br i1 %326, label %327, label %348

327:                                              ; preds = %322
  %328 = load ptr, ptr %2, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.background, ptr %328, i32 0, i32 6
  %330 = load double, ptr %329, align 8, !tbaa !40
  %331 = load ptr, ptr %2, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.background, ptr %331, i32 0, i32 6
  %333 = load double, ptr %332, align 8, !tbaa !40
  %334 = load ptr, ptr %2, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.background, ptr %334, i32 0, i32 42
  %336 = load double, ptr %335, align 8, !tbaa !16
  %337 = fmul double %333, %336
  %338 = load ptr, ptr %2, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.background, ptr %338, i32 0, i32 42
  %340 = load double, ptr %339, align 8, !tbaa !16
  %341 = fmul double %337, %340
  %342 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.198, double noundef %330, double noundef %341)
  %343 = load ptr, ptr %2, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.background, ptr %343, i32 0, i32 6
  %345 = load double, ptr %344, align 8, !tbaa !40
  %346 = load double, ptr %5, align 8, !tbaa !9
  %347 = fadd double %346, %345
  store double %347, ptr %5, align 8, !tbaa !9
  br label %348

348:                                              ; preds = %327, %322
  %349 = load ptr, ptr %2, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.background, ptr %349, i32 0, i32 122
  %351 = load i16, ptr %350, align 2, !tbaa !37
  %352 = icmp ne i16 %351, 0
  br i1 %352, label %353, label %374

353:                                              ; preds = %348
  %354 = load ptr, ptr %2, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.background, ptr %354, i32 0, i32 21
  %356 = load double, ptr %355, align 8, !tbaa !41
  %357 = load ptr, ptr %2, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.background, ptr %357, i32 0, i32 21
  %359 = load double, ptr %358, align 8, !tbaa !41
  %360 = load ptr, ptr %2, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.background, ptr %360, i32 0, i32 42
  %362 = load double, ptr %361, align 8, !tbaa !16
  %363 = fmul double %359, %362
  %364 = load ptr, ptr %2, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.background, ptr %364, i32 0, i32 42
  %366 = load double, ptr %365, align 8, !tbaa !16
  %367 = fmul double %363, %366
  %368 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.199, double noundef %356, double noundef %367)
  %369 = load ptr, ptr %2, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.background, ptr %369, i32 0, i32 21
  %371 = load double, ptr %370, align 8, !tbaa !41
  %372 = load double, ptr %5, align 8, !tbaa !9
  %373 = fadd double %372, %371
  store double %373, ptr %5, align 8, !tbaa !9
  br label %374

374:                                              ; preds = %353, %348
  %375 = load ptr, ptr %2, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.background, ptr %375, i32 0, i32 129
  %377 = load i16, ptr %376, align 8, !tbaa !38
  %378 = icmp ne i16 %377, 0
  br i1 %378, label %379, label %400

379:                                              ; preds = %374
  %380 = load ptr, ptr %2, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.background, ptr %380, i32 0, i32 28
  %382 = load double, ptr %381, align 8, !tbaa !42
  %383 = load ptr, ptr %2, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.background, ptr %383, i32 0, i32 28
  %385 = load double, ptr %384, align 8, !tbaa !42
  %386 = load ptr, ptr %2, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.background, ptr %386, i32 0, i32 42
  %388 = load double, ptr %387, align 8, !tbaa !16
  %389 = fmul double %385, %388
  %390 = load ptr, ptr %2, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.background, ptr %390, i32 0, i32 42
  %392 = load double, ptr %391, align 8, !tbaa !16
  %393 = fmul double %389, %392
  %394 = call i32 (ptr, ...) @printf(ptr noundef @.str.183, ptr noundef @.str.200, double noundef %382, double noundef %393)
  %395 = load ptr, ptr %2, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.background, ptr %395, i32 0, i32 28
  %397 = load double, ptr %396, align 8, !tbaa !42
  %398 = load double, ptr %5, align 8, !tbaa !9
  %399 = fadd double %398, %397
  store double %399, ptr %5, align 8, !tbaa !9
  br label %400

400:                                              ; preds = %379, %374
  %401 = call i32 (ptr, ...) @printf(ptr noundef @.str.201)
  %402 = load double, ptr %4, align 8, !tbaa !9
  %403 = load double, ptr %4, align 8, !tbaa !9
  %404 = load ptr, ptr %2, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.background, ptr %404, i32 0, i32 42
  %406 = load double, ptr %405, align 8, !tbaa !16
  %407 = fmul double %403, %406
  %408 = load ptr, ptr %2, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.background, ptr %408, i32 0, i32 42
  %410 = load double, ptr %409, align 8, !tbaa !16
  %411 = fmul double %407, %410
  %412 = call i32 (ptr, ...) @printf(ptr noundef @.str.202, double noundef %402, double noundef %411)
  %413 = load double, ptr %3, align 8, !tbaa !9
  %414 = load double, ptr %3, align 8, !tbaa !9
  %415 = load ptr, ptr %2, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.background, ptr %415, i32 0, i32 42
  %417 = load double, ptr %416, align 8, !tbaa !16
  %418 = fmul double %414, %417
  %419 = load ptr, ptr %2, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.background, ptr %419, i32 0, i32 42
  %421 = load double, ptr %420, align 8, !tbaa !16
  %422 = fmul double %418, %421
  %423 = call i32 (ptr, ...) @printf(ptr noundef @.str.203, double noundef %413, double noundef %422)
  %424 = load ptr, ptr %2, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.background, ptr %424, i32 0, i32 29
  %426 = load i32, ptr %425, align 8, !tbaa !30
  %427 = icmp sgt i32 %426, 0
  br i1 %427, label %428, label %440

428:                                              ; preds = %400
  %429 = load double, ptr %6, align 8, !tbaa !9
  %430 = load double, ptr %6, align 8, !tbaa !9
  %431 = load ptr, ptr %2, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.background, ptr %431, i32 0, i32 42
  %433 = load double, ptr %432, align 8, !tbaa !16
  %434 = fmul double %430, %433
  %435 = load ptr, ptr %2, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.background, ptr %435, i32 0, i32 42
  %437 = load double, ptr %436, align 8, !tbaa !16
  %438 = fmul double %434, %437
  %439 = call i32 (ptr, ...) @printf(ptr noundef @.str.204, double noundef %429, double noundef %438)
  br label %440

440:                                              ; preds = %428, %400
  %441 = load ptr, ptr %2, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.background, ptr %441, i32 0, i32 124
  %443 = load i16, ptr %442, align 2, !tbaa !35
  %444 = sext i16 %443 to i32
  %445 = icmp ne i32 %444, 0
  br i1 %445, label %464, label %446

446:                                              ; preds = %440
  %447 = load ptr, ptr %2, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.background, ptr %447, i32 0, i32 125
  %449 = load i16, ptr %448, align 8, !tbaa !36
  %450 = sext i16 %449 to i32
  %451 = icmp ne i32 %450, 0
  br i1 %451, label %464, label %452

452:                                              ; preds = %446
  %453 = load ptr, ptr %2, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.background, ptr %453, i32 0, i32 122
  %455 = load i16, ptr %454, align 2, !tbaa !37
  %456 = sext i16 %455 to i32
  %457 = icmp ne i32 %456, 0
  br i1 %457, label %464, label %458

458:                                              ; preds = %452
  %459 = load ptr, ptr %2, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.background, ptr %459, i32 0, i32 129
  %461 = load i16, ptr %460, align 8, !tbaa !38
  %462 = sext i16 %461 to i32
  %463 = icmp ne i32 %462, 0
  br i1 %463, label %464, label %476

464:                                              ; preds = %458, %452, %446, %440
  %465 = load double, ptr %5, align 8, !tbaa !9
  %466 = load double, ptr %5, align 8, !tbaa !9
  %467 = load ptr, ptr %2, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.background, ptr %467, i32 0, i32 42
  %469 = load double, ptr %468, align 8, !tbaa !16
  %470 = fmul double %466, %469
  %471 = load ptr, ptr %2, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.background, ptr %471, i32 0, i32 42
  %473 = load double, ptr %472, align 8, !tbaa !16
  %474 = fmul double %470, %473
  %475 = call i32 (ptr, ...) @printf(ptr noundef @.str.205, double noundef %465, double noundef %474)
  br label %476

476:                                              ; preds = %464, %458
  %477 = load double, ptr %4, align 8, !tbaa !9
  %478 = load double, ptr %3, align 8, !tbaa !9
  %479 = fadd double %477, %478
  %480 = load double, ptr %6, align 8, !tbaa !9
  %481 = fadd double %479, %480
  %482 = load double, ptr %5, align 8, !tbaa !9
  %483 = fadd double %481, %482
  %484 = load double, ptr %4, align 8, !tbaa !9
  %485 = load double, ptr %3, align 8, !tbaa !9
  %486 = fadd double %484, %485
  %487 = load double, ptr %6, align 8, !tbaa !9
  %488 = fadd double %486, %487
  %489 = load double, ptr %5, align 8, !tbaa !9
  %490 = fadd double %488, %489
  %491 = load ptr, ptr %2, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.background, ptr %491, i32 0, i32 42
  %493 = load double, ptr %492, align 8, !tbaa !16
  %494 = fmul double %490, %493
  %495 = load ptr, ptr %2, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.background, ptr %495, i32 0, i32 42
  %497 = load double, ptr %496, align 8, !tbaa !16
  %498 = fmul double %494, %497
  %499 = call i32 (ptr, ...) @printf(ptr noundef @.str.206, double noundef %483, double noundef %498)
  %500 = call i32 (ptr, ...) @printf(ptr noundef @.str.207)
  br label %501

501:                                              ; preds = %476, %1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 2900}
!12 = !{!"background", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !14, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !14, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !13, i64 208, !13, i64 212, !10, i64 216, !13, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !6, i64 256, !10, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !13, i64 360, !6, 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, !13, i64 464, !13, i64 468, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !13, i64 544, !13, i64 548, !13, i64 552, !13, i64 556, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !13, i64 584, !13, i64 588, !13, i64 592, !13, i64 596, !13, i64 600, !13, i64 604, !13, i64 608, !13, i64 612, !13, i64 616, !13, i64 620, !13, i64 624, !13, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !13, i64 672, !13, i64 676, !13, i64 680, !13, i64 684, !13, i64 688, !13, i64 692, !13, i64 696, !13, i64 700, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !14, i64 724, !14, i64 726, !14, i64 728, !14, i64 730, !14, i64 732, !14, i64 734, !14, i64 736, !14, i64 738, !14, i64 740, !14, i64 742, !14, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !14, i64 840, !14, i64 842, !14, i64 844, !14, i64 846, !14, i64 848, !14, i64 850, !7, i64 852, !14, i64 2900, !7, i64 2902}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !10, i64 328}
!17 = !{!12, !14, i64 724}
!18 = !{!12, !10, i64 32}
!19 = !{!12, !14, i64 742}
!20 = !{!12, !10, i64 136}
!21 = !{!12, !14, i64 726}
!22 = !{!12, !10, i64 384}
!23 = !{!12, !10, i64 8}
!24 = !{!12, !14, i64 738}
!25 = !{!12, !10, i64 112}
!26 = !{!12, !14, i64 728}
!27 = !{!12, !10, i64 392}
!28 = !{!12, !14, i64 740}
!29 = !{!12, !10, i64 120}
!30 = !{!12, !13, i64 224}
!31 = !{!13, !13, i64 0}
!32 = !{!12, !6, i64 240}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!12, !14, i64 734}
!36 = !{!12, !14, i64 736}
!37 = !{!12, !14, i64 730}
!38 = !{!12, !14, i64 744}
!39 = !{!12, !10, i64 40}
!40 = !{!12, !10, i64 48}
!41 = !{!12, !10, i64 168}
!42 = !{!12, !10, i64 216}


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

@.str.181 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [72 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @background_output_budget(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 2900
  %3 = load i16, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i16 %3, 1
  br i1 %4, label %5, label %218

5:                                                ; preds = %1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.181)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.182)
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load double, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %0, i64 328
  %11 = load double, ptr %10, align 8, !tbaa !14
  %12 = fmul double %9, %11
  %13 = fmul double %11, %12
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.184, double noundef %9, double noundef %13)
  %15 = load double, ptr %8, align 8, !tbaa !13
  %16 = fadd double %15, 0.000000e+00
  %17 = getelementptr inbounds i8, ptr %0, i64 724
  %18 = load i16, ptr %17, align 4, !tbaa !15
  %.not = icmp eq i16 %18, 0
  br i1 %.not, label %28, label %19

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load double, ptr %20, align 8, !tbaa !16
  %22 = load double, ptr %10, align 8, !tbaa !14
  %23 = fmul double %21, %22
  %24 = fmul double %22, %23
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.185, double noundef %21, double noundef %24)
  %26 = load double, ptr %20, align 8, !tbaa !16
  %27 = fadd double %16, %26
  br label %28

28:                                               ; preds = %19, %5
  %.0138 = phi double [ %27, %19 ], [ %16, %5 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 742
  %30 = load i16, ptr %29, align 2, !tbaa !17
  %.not141 = icmp eq i16 %30, 0
  br i1 %.not141, label %40, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %0, i64 136
  %33 = load double, ptr %32, align 8, !tbaa !18
  %34 = load double, ptr %10, align 8, !tbaa !14
  %35 = fmul double %33, %34
  %36 = fmul double %34, %35
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.186, double noundef %33, double noundef %36)
  %38 = load double, ptr %32, align 8, !tbaa !18
  %39 = fadd double %.0138, %38
  br label %40

40:                                               ; preds = %31, %28
  %.1139 = phi double [ %39, %31 ], [ %.0138, %28 ]
  %41 = getelementptr inbounds i8, ptr %0, i64 726
  %42 = load i16, ptr %41, align 2, !tbaa !19
  %.not142 = icmp eq i16 %42, 0
  br i1 %.not142, label %52, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %0, i64 384
  %45 = load double, ptr %44, align 8, !tbaa !20
  %46 = load double, ptr %10, align 8, !tbaa !14
  %47 = fmul double %45, %46
  %48 = fmul double %46, %47
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.187, double noundef %45, double noundef %48)
  %50 = load double, ptr %44, align 8, !tbaa !20
  %51 = fadd double %.1139, %50
  br label %52

52:                                               ; preds = %43, %40
  %.2140 = phi double [ %51, %43 ], [ %.1139, %40 ]
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.188)
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load double, ptr %54, align 8, !tbaa !21
  %56 = load double, ptr %10, align 8, !tbaa !14
  %57 = fmul double %55, %56
  %58 = fmul double %56, %57
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.189, double noundef %55, double noundef %58)
  %60 = load double, ptr %54, align 8, !tbaa !21
  %61 = fadd double %60, 0.000000e+00
  %62 = getelementptr inbounds i8, ptr %0, i64 738
  %63 = load i16, ptr %62, align 2, !tbaa !22
  %.not143 = icmp eq i16 %63, 0
  br i1 %.not143, label %73, label %64

64:                                               ; preds = %52
  %65 = getelementptr inbounds i8, ptr %0, i64 112
  %66 = load double, ptr %65, align 8, !tbaa !23
  %67 = load double, ptr %10, align 8, !tbaa !14
  %68 = fmul double %66, %67
  %69 = fmul double %67, %68
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.190, double noundef %66, double noundef %69)
  %71 = load double, ptr %65, align 8, !tbaa !23
  %72 = fadd double %61, %71
  br label %73

73:                                               ; preds = %64, %52
  %.0135 = phi double [ %72, %64 ], [ %61, %52 ]
  %74 = getelementptr inbounds i8, ptr %0, i64 728
  %75 = load i16, ptr %74, align 8, !tbaa !24
  %.not144 = icmp eq i16 %75, 0
  br i1 %.not144, label %85, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %0, i64 392
  %78 = load double, ptr %77, align 8, !tbaa !25
  %79 = load double, ptr %10, align 8, !tbaa !14
  %80 = fmul double %78, %79
  %81 = fmul double %79, %80
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.191, double noundef %78, double noundef %81)
  %83 = load double, ptr %77, align 8, !tbaa !25
  %84 = fadd double %.0135, %83
  br label %85

85:                                               ; preds = %76, %73
  %.1136 = phi double [ %84, %76 ], [ %.0135, %73 ]
  %86 = getelementptr inbounds i8, ptr %0, i64 740
  %87 = load i16, ptr %86, align 4, !tbaa !26
  %.not145 = icmp eq i16 %87, 0
  br i1 %.not145, label %97, label %88

88:                                               ; preds = %85
  %89 = getelementptr inbounds i8, ptr %0, i64 120
  %90 = load double, ptr %89, align 8, !tbaa !27
  %91 = load double, ptr %10, align 8, !tbaa !14
  %92 = fmul double %90, %91
  %93 = fmul double %91, %92
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.192, double noundef %90, double noundef %93)
  %95 = load double, ptr %89, align 8, !tbaa !27
  %96 = fadd double %.1136, %95
  br label %97

97:                                               ; preds = %88, %85
  %.2137 = phi double [ %96, %88 ], [ %.1136, %85 ]
  %98 = getelementptr inbounds i8, ptr %0, i64 224
  %99 = load i32, ptr %98, align 8, !tbaa !28
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %101, label %.thread

101:                                              ; preds = %97
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.193)
  %.pr = load i32, ptr %98, align 8, !tbaa !28
  %103 = icmp sgt i32 %.pr, 0
  br i1 %103, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %101
  %104 = getelementptr inbounds i8, ptr %0, i64 240
  %.pre = load ptr, ptr %104, align 8, !tbaa !29
  br label %105

105:                                              ; preds = %.lr.ph, %105
  %106 = phi ptr [ %.pre, %.lr.ph ], [ %114, %105 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %105 ]
  %.0132158 = phi double [ 0.000000e+00, %.lr.ph ], [ %117, %105 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = getelementptr inbounds double, ptr %106, i64 %indvars.iv
  %108 = load double, ptr %107, align 8, !tbaa !30
  %109 = load double, ptr %10, align 8, !tbaa !14
  %110 = fmul double %108, %109
  %111 = fmul double %109, %110
  %112 = trunc nuw nsw i64 %indvars.iv.next to i32
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.194, ptr noundef nonnull @.str.195, i32 noundef %112, double noundef %108, double noundef %111)
  %114 = load ptr, ptr %104, align 8, !tbaa !29
  %115 = getelementptr inbounds double, ptr %114, i64 %indvars.iv
  %116 = load double, ptr %115, align 8, !tbaa !30
  %117 = fadd double %.0132158, %116
  %118 = load i32, ptr %98, align 8, !tbaa !28
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %indvars.iv.next, %119
  br i1 %120, label %105, label %.thread, !llvm.loop !31

.thread:                                          ; preds = %105, %97, %101
  %.1 = phi double [ 0.000000e+00, %101 ], [ 0.000000e+00, %97 ], [ %117, %105 ]
  %121 = getelementptr inbounds i8, ptr %0, i64 734
  %122 = load i16, ptr %121, align 2, !tbaa !33
  %.not146 = icmp eq i16 %122, 0
  br i1 %.not146, label %123, label %132

123:                                              ; preds = %.thread
  %124 = getelementptr inbounds i8, ptr %0, i64 736
  %125 = load i16, ptr %124, align 8, !tbaa !34
  %.not147 = icmp eq i16 %125, 0
  br i1 %.not147, label %126, label %132

126:                                              ; preds = %123
  %127 = getelementptr inbounds i8, ptr %0, i64 730
  %128 = load i16, ptr %127, align 2, !tbaa !35
  %.not148 = icmp eq i16 %128, 0
  br i1 %.not148, label %129, label %132

129:                                              ; preds = %126
  %130 = getelementptr inbounds i8, ptr %0, i64 744
  %131 = load i16, ptr %130, align 8, !tbaa !36
  %.not149 = icmp eq i16 %131, 0
  br i1 %.not149, label %.thread162, label %132

132:                                              ; preds = %.thread, %123, %126, %129
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.196)
  %.pre161 = load i16, ptr %121, align 2, !tbaa !33
  %134 = icmp eq i16 %.pre161, 0
  br i1 %134, label %.thread162, label %135

135:                                              ; preds = %132
  %136 = getelementptr inbounds i8, ptr %0, i64 40
  %137 = load double, ptr %136, align 8, !tbaa !37
  %138 = load double, ptr %10, align 8, !tbaa !14
  %139 = fmul double %137, %138
  %140 = fmul double %138, %139
  %141 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.197, double noundef %137, double noundef %140)
  %142 = load double, ptr %136, align 8, !tbaa !37
  %143 = fadd double %142, 0.000000e+00
  br label %.thread162

.thread162:                                       ; preds = %129, %135, %132
  %.0133 = phi double [ %143, %135 ], [ 0.000000e+00, %132 ], [ 0.000000e+00, %129 ]
  %144 = getelementptr inbounds i8, ptr %0, i64 736
  %145 = load i16, ptr %144, align 8, !tbaa !34
  %.not151 = icmp eq i16 %145, 0
  br i1 %.not151, label %155, label %146

146:                                              ; preds = %.thread162
  %147 = getelementptr inbounds i8, ptr %0, i64 48
  %148 = load double, ptr %147, align 8, !tbaa !38
  %149 = load double, ptr %10, align 8, !tbaa !14
  %150 = fmul double %148, %149
  %151 = fmul double %149, %150
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.198, double noundef %148, double noundef %151)
  %153 = load double, ptr %147, align 8, !tbaa !38
  %154 = fadd double %.0133, %153
  br label %155

155:                                              ; preds = %146, %.thread162
  %.1134 = phi double [ %154, %146 ], [ %.0133, %.thread162 ]
  %156 = getelementptr inbounds i8, ptr %0, i64 730
  %157 = load i16, ptr %156, align 2, !tbaa !35
  %.not152 = icmp eq i16 %157, 0
  br i1 %.not152, label %167, label %158

158:                                              ; preds = %155
  %159 = getelementptr inbounds i8, ptr %0, i64 168
  %160 = load double, ptr %159, align 8, !tbaa !39
  %161 = load double, ptr %10, align 8, !tbaa !14
  %162 = fmul double %160, %161
  %163 = fmul double %161, %162
  %164 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.199, double noundef %160, double noundef %163)
  %165 = load double, ptr %159, align 8, !tbaa !39
  %166 = fadd double %.1134, %165
  br label %167

167:                                              ; preds = %158, %155
  %.2 = phi double [ %166, %158 ], [ %.1134, %155 ]
  %168 = getelementptr inbounds i8, ptr %0, i64 744
  %169 = load i16, ptr %168, align 8, !tbaa !36
  %.not153 = icmp eq i16 %169, 0
  br i1 %.not153, label %179, label %170

170:                                              ; preds = %167
  %171 = getelementptr inbounds i8, ptr %0, i64 216
  %172 = load double, ptr %171, align 8, !tbaa !40
  %173 = load double, ptr %10, align 8, !tbaa !14
  %174 = fmul double %172, %173
  %175 = fmul double %173, %174
  %176 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.183, ptr noundef nonnull @.str.200, double noundef %172, double noundef %175)
  %177 = load double, ptr %171, align 8, !tbaa !40
  %178 = fadd double %.2, %177
  br label %179

179:                                              ; preds = %170, %167
  %.3 = phi double [ %178, %170 ], [ %.2, %167 ]
  %180 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.201)
  %181 = load double, ptr %10, align 8, !tbaa !14
  %182 = fmul double %.2137, %181
  %183 = fmul double %181, %182
  %184 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.202, double noundef %.2137, double noundef %183)
  %185 = load double, ptr %10, align 8, !tbaa !14
  %186 = fmul double %.2140, %185
  %187 = fmul double %185, %186
  %188 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.203, double noundef %.2140, double noundef %187)
  %189 = load i32, ptr %98, align 8, !tbaa !28
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %191, label %196

191:                                              ; preds = %179
  %192 = load double, ptr %10, align 8, !tbaa !14
  %193 = fmul double %.1, %192
  %194 = fmul double %192, %193
  %195 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.204, double noundef %.1, double noundef %194)
  br label %196

196:                                              ; preds = %191, %179
  %197 = load i16, ptr %121, align 2, !tbaa !33
  %.not154 = icmp eq i16 %197, 0
  br i1 %.not154, label %198, label %204

198:                                              ; preds = %196
  %199 = load i16, ptr %144, align 8, !tbaa !34
  %.not155 = icmp eq i16 %199, 0
  br i1 %.not155, label %200, label %204

200:                                              ; preds = %198
  %201 = load i16, ptr %156, align 2, !tbaa !35
  %.not156 = icmp eq i16 %201, 0
  br i1 %.not156, label %202, label %204

202:                                              ; preds = %200
  %203 = load i16, ptr %168, align 8, !tbaa !36
  %.not157 = icmp eq i16 %203, 0
  br i1 %.not157, label %209, label %204

204:                                              ; preds = %202, %200, %198, %196
  %205 = load double, ptr %10, align 8, !tbaa !14
  %206 = fmul double %.3, %205
  %207 = fmul double %205, %206
  %208 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.205, double noundef %.3, double noundef %207)
  br label %209

209:                                              ; preds = %204, %202
  %210 = fadd double %.2140, %.2137
  %211 = fadd double %210, %.1
  %212 = fadd double %211, %.3
  %213 = load double, ptr %10, align 8, !tbaa !14
  %214 = fmul double %212, %213
  %215 = fmul double %213, %214
  %216 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.206, double noundef %212, double noundef %215)
  %217 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.207)
  br label %218

218:                                              ; preds = %209, %1
  ret i32 0
}

attributes #0 = { nofree 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 #1 = { nofree 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" }

!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, !11, i64 2900}
!6 = !{!"background", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !7, i64 184, !7, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !7, i64 216, !10, i64 224, !12, i64 232, !12, i64 240, !7, i64 248, !12, i64 256, !7, i64 264, !12, i64 272, !7, i64 280, !12, i64 288, !7, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !10, i64 360, !12, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !11, i64 724, !11, i64 726, !11, i64 728, !11, i64 730, !11, i64 732, !11, i64 734, !11, i64 736, !11, i64 738, !11, i64 740, !11, i64 742, !11, i64 744, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !12, i64 784, !12, i64 792, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !12, i64 832, !11, i64 840, !11, i64 842, !11, i64 844, !11, i64 846, !11, i64 848, !11, i64 850, !8, i64 852, !11, i64 2900, !8, i64 2902}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 328}
!15 = !{!6, !11, i64 724}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !11, i64 742}
!18 = !{!6, !7, i64 136}
!19 = !{!6, !11, i64 726}
!20 = !{!6, !7, i64 384}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !11, i64 738}
!23 = !{!6, !7, i64 112}
!24 = !{!6, !11, i64 728}
!25 = !{!6, !7, i64 392}
!26 = !{!6, !11, i64 740}
!27 = !{!6, !7, i64 120}
!28 = !{!6, !10, i64 224}
!29 = !{!6, !12, i64 240}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!6, !11, i64 734}
!34 = !{!6, !11, i64 736}
!35 = !{!6, !11, i64 730}
!36 = !{!6, !11, i64 744}
!37 = !{!6, !7, i64 40}
!38 = !{!6, !7, i64 48}
!39 = !{!6, !7, i64 168}
!40 = !{!6, !7, i64 216}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass