; LLVM IR from aferikoglou/GenHLSOptimizer :: dataset/rodinia-hotspot-4-doublebuffer (hotspot)

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

; 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: mustprogress nounwind uwtable
declare dso_local void @buffer_load(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @buffer_compute(i32 noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @buffer_store(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @workload(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [32768 x float], align 16
  %8 = alloca [33792 x float], align 16
  %9 = alloca [32768 x float], align 16
  %10 = alloca [32768 x float], align 16
  %11 = alloca [33792 x float], align 16
  %12 = alloca [32768 x float], align 16
  %13 = alloca [32768 x float], align 16
  %14 = alloca [33792 x float], align 16
  %15 = alloca [32768 x float], align 16
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 131072, ptr %7) #2
  br label %39

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 135168, ptr %8) #2
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 131072, ptr %9) #2
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 131072, ptr %10) #2
  br label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 135168, ptr %11) #2
  br label %43

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 131072, ptr %12) #2
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 131072, ptr %13) #2
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 135168, ptr %14) #2
  br label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 131072, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  store float 0x3F00624DE0000000, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  store float 0x3F00624DE0000000, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #2
  %47 = load float, ptr %17, align 4, !tbaa !9
  %48 = fpext float %47 to double
  %49 = fmul double 4.375000e+02, %48
  %50 = load float, ptr %16, align 4, !tbaa !9
  %51 = fpext float %50 to double
  %52 = fmul double %49, %51
  %53 = fptrunc double %52 to float
  store float %53, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #2
  %54 = load float, ptr %17, align 4, !tbaa !9
  %55 = fpext float %54 to double
  %56 = load float, ptr %16, align 4, !tbaa !9
  %57 = fpext float %56 to double
  %58 = fmul double 1.000000e-01, %57
  %59 = fdiv double %55, %58
  %60 = fptrunc double %59 to float
  store float %60, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #2
  %61 = load float, ptr %16, align 4, !tbaa !9
  %62 = fpext float %61 to double
  %63 = load float, ptr %17, align 4, !tbaa !9
  %64 = fpext float %63 to double
  %65 = fmul double 1.000000e-01, %64
  %66 = fdiv double %62, %65
  %67 = fptrunc double %66 to float
  store float %67, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #2
  %68 = load float, ptr %16, align 4, !tbaa !9
  %69 = fmul float 1.000000e+02, %68
  %70 = load float, ptr %17, align 4, !tbaa !9
  %71 = fmul float %69, %70
  %72 = fpext float %71 to double
  %73 = fdiv double 5.000000e-04, %72
  %74 = fptrunc double %73 to float
  store float %74, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #2
  store float 0x4051249240000000, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #2
  %75 = load float, ptr %22, align 4, !tbaa !9
  %76 = fpext float %75 to double
  %77 = fdiv double 1.000000e-03, %76
  %78 = fdiv double %77, 1.000000e+03
  %79 = fptrunc double %78 to float
  store float %79, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #2
  %80 = load float, ptr %19, align 4, !tbaa !9
  %81 = fdiv float 1.000000e+00, %80
  store float %81, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #2
  %82 = load float, ptr %20, align 4, !tbaa !9
  %83 = fdiv float 1.000000e+00, %82
  store float %83, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #2
  %84 = load float, ptr %21, align 4, !tbaa !9
  %85 = fdiv float 1.000000e+00, %84
  store float %85, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #2
  %86 = load float, ptr %23, align 4, !tbaa !9
  %87 = load float, ptr %18, align 4, !tbaa !9
  %88 = fdiv float %86, %87
  store float %88, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #2
  br label %89

89:                                               ; preds = %46
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %90

90:                                               ; preds = %310, %89
  %91 = load i32, ptr %28, align 4, !tbaa !11
  %92 = icmp slt i32 %91, 32
  br i1 %92, label %93, label %313

93:                                               ; preds = %90
  br label %94

94:                                               ; preds = %93
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %198, %94
  %96 = load i32, ptr %31, align 4, !tbaa !11
  %97 = icmp slt i32 %96, 10
  br i1 %97, label %98, label %201

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #2
  %99 = load i32, ptr %31, align 4, !tbaa !11
  %100 = icmp sge i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load i32, ptr %31, align 4, !tbaa !11
  %103 = icmp slt i32 %102, 8
  br label %104

104:                                              ; preds = %101, %98
  %105 = phi i1 [ false, %98 ], [ %103, %101 ]
  %106 = zext i1 %105 to i32
  store i32 %106, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #2
  %107 = load i32, ptr %31, align 4, !tbaa !11
  %108 = icmp sge i32 %107, 1
  br i1 %108, label %109, label %112

109:                                              ; preds = %104
  %110 = load i32, ptr %31, align 4, !tbaa !11
  %111 = icmp slt i32 %110, 9
  br label %112

112:                                              ; preds = %109, %104
  %113 = phi i1 [ false, %104 ], [ %111, %109 ]
  %114 = zext i1 %113 to i32
  store i32 %114, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #2
  %115 = load i32, ptr %31, align 4, !tbaa !11
  %116 = icmp sge i32 %115, 2
  br i1 %116, label %117, label %120

117:                                              ; preds = %112
  %118 = load i32, ptr %31, align 4, !tbaa !11
  %119 = icmp slt i32 %118, 10
  br label %120

120:                                              ; preds = %117, %112
  %121 = phi i1 [ false, %112 ], [ %119, %117 ]
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %34, align 4, !tbaa !11
  %123 = load i32, ptr %31, align 4, !tbaa !11
  %124 = srem i32 %123, 3
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %148

126:                                              ; preds = %120
  %127 = load i32, ptr %32, align 4, !tbaa !11
  %128 = load i32, ptr %31, align 4, !tbaa !11
  %129 = getelementptr inbounds [33792 x float], ptr %8, i64 0, i64 0
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds [32768 x float], ptr %9, i64 0, i64 0
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %127, i32 noundef %128, ptr noundef %129, ptr noundef %130, ptr noundef %131, ptr noundef %132)
  %133 = load i32, ptr %33, align 4, !tbaa !11
  %134 = getelementptr inbounds [32768 x float], ptr %13, i64 0, i64 0
  %135 = getelementptr inbounds [33792 x float], ptr %14, i64 0, i64 0
  %136 = getelementptr inbounds [32768 x float], ptr %15, i64 0, i64 0
  %137 = load float, ptr %27, align 4, !tbaa !9
  %138 = load float, ptr %24, align 4, !tbaa !9
  %139 = load float, ptr %25, align 4, !tbaa !9
  %140 = load float, ptr %26, align 4, !tbaa !9
  %141 = load i32, ptr %31, align 4, !tbaa !11
  %142 = sub nsw i32 %141, 1
  call void @buffer_compute(i32 noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136, float noundef %137, float noundef %138, float noundef %139, float noundef %140, i32 noundef %142)
  %143 = load i32, ptr %34, align 4, !tbaa !11
  %144 = load i32, ptr %31, align 4, !tbaa !11
  %145 = sub nsw i32 %144, 2
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds [32768 x float], ptr %10, i64 0, i64 0
  call void @buffer_store(i32 noundef %143, i32 noundef %145, ptr noundef %146, ptr noundef %147)
  br label %197

148:                                              ; preds = %120
  %149 = load i32, ptr %31, align 4, !tbaa !11
  %150 = srem i32 %149, 3
  %151 = icmp eq i32 %150, 1
  br i1 %151, label %152, label %174

152:                                              ; preds = %148
  %153 = load i32, ptr %32, align 4, !tbaa !11
  %154 = load i32, ptr %31, align 4, !tbaa !11
  %155 = getelementptr inbounds [33792 x float], ptr %11, i64 0, i64 0
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds [32768 x float], ptr %12, i64 0, i64 0
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %153, i32 noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158)
  %159 = load i32, ptr %33, align 4, !tbaa !11
  %160 = getelementptr inbounds [32768 x float], ptr %7, i64 0, i64 0
  %161 = getelementptr inbounds [33792 x float], ptr %8, i64 0, i64 0
  %162 = getelementptr inbounds [32768 x float], ptr %9, i64 0, i64 0
  %163 = load float, ptr %27, align 4, !tbaa !9
  %164 = load float, ptr %24, align 4, !tbaa !9
  %165 = load float, ptr %25, align 4, !tbaa !9
  %166 = load float, ptr %26, align 4, !tbaa !9
  %167 = load i32, ptr %31, align 4, !tbaa !11
  %168 = sub nsw i32 %167, 1
  call void @buffer_compute(i32 noundef %159, ptr noundef %160, ptr noundef %161, ptr noundef %162, float noundef %163, float noundef %164, float noundef %165, float noundef %166, i32 noundef %168)
  %169 = load i32, ptr %34, align 4, !tbaa !11
  %170 = load i32, ptr %31, align 4, !tbaa !11
  %171 = sub nsw i32 %170, 2
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds [32768 x float], ptr %13, i64 0, i64 0
  call void @buffer_store(i32 noundef %169, i32 noundef %171, ptr noundef %172, ptr noundef %173)
  br label %196

174:                                              ; preds = %148
  %175 = load i32, ptr %32, align 4, !tbaa !11
  %176 = load i32, ptr %31, align 4, !tbaa !11
  %177 = getelementptr inbounds [33792 x float], ptr %14, i64 0, i64 0
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds [32768 x float], ptr %15, i64 0, i64 0
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %175, i32 noundef %176, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %180)
  %181 = load i32, ptr %33, align 4, !tbaa !11
  %182 = getelementptr inbounds [32768 x float], ptr %10, i64 0, i64 0
  %183 = getelementptr inbounds [33792 x float], ptr %11, i64 0, i64 0
  %184 = getelementptr inbounds [32768 x float], ptr %12, i64 0, i64 0
  %185 = load float, ptr %27, align 4, !tbaa !9
  %186 = load float, ptr %24, align 4, !tbaa !9
  %187 = load float, ptr %25, align 4, !tbaa !9
  %188 = load float, ptr %26, align 4, !tbaa !9
  %189 = load i32, ptr %31, align 4, !tbaa !11
  %190 = sub nsw i32 %189, 1
  call void @buffer_compute(i32 noundef %181, ptr noundef %182, ptr noundef %183, ptr noundef %184, float noundef %185, float noundef %186, float noundef %187, float noundef %188, i32 noundef %190)
  %191 = load i32, ptr %34, align 4, !tbaa !11
  %192 = load i32, ptr %31, align 4, !tbaa !11
  %193 = sub nsw i32 %192, 2
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds [32768 x float], ptr %7, i64 0, i64 0
  call void @buffer_store(i32 noundef %191, i32 noundef %193, ptr noundef %194, ptr noundef %195)
  br label %196

196:                                              ; preds = %174, %152
  br label %197

197:                                              ; preds = %196, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #2
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %31, align 4, !tbaa !11
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %31, align 4, !tbaa !11
  br label %95, !llvm.loop !13

201:                                              ; preds = %95
  br label %202

202:                                              ; preds = %201
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %203

203:                                              ; preds = %306, %202
  %204 = load i32, ptr %31, align 4, !tbaa !11
  %205 = icmp slt i32 %204, 10
  br i1 %205, label %206, label %309

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #2
  %207 = load i32, ptr %31, align 4, !tbaa !11
  %208 = icmp sge i32 %207, 0
  br i1 %208, label %209, label %212

209:                                              ; preds = %206
  %210 = load i32, ptr %31, align 4, !tbaa !11
  %211 = icmp slt i32 %210, 8
  br label %212

212:                                              ; preds = %209, %206
  %213 = phi i1 [ false, %206 ], [ %211, %209 ]
  %214 = zext i1 %213 to i32
  store i32 %214, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #2
  %215 = load i32, ptr %31, align 4, !tbaa !11
  %216 = icmp sge i32 %215, 1
  br i1 %216, label %217, label %220

217:                                              ; preds = %212
  %218 = load i32, ptr %31, align 4, !tbaa !11
  %219 = icmp slt i32 %218, 9
  br label %220

220:                                              ; preds = %217, %212
  %221 = phi i1 [ false, %212 ], [ %219, %217 ]
  %222 = zext i1 %221 to i32
  store i32 %222, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #2
  %223 = load i32, ptr %31, align 4, !tbaa !11
  %224 = icmp sge i32 %223, 2
  br i1 %224, label %225, label %228

225:                                              ; preds = %220
  %226 = load i32, ptr %31, align 4, !tbaa !11
  %227 = icmp slt i32 %226, 10
  br label %228

228:                                              ; preds = %225, %220
  %229 = phi i1 [ false, %220 ], [ %227, %225 ]
  %230 = zext i1 %229 to i32
  store i32 %230, ptr %37, align 4, !tbaa !11
  %231 = load i32, ptr %31, align 4, !tbaa !11
  %232 = srem i32 %231, 3
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %256

234:                                              ; preds = %228
  %235 = load i32, ptr %35, align 4, !tbaa !11
  %236 = load i32, ptr %31, align 4, !tbaa !11
  %237 = getelementptr inbounds [33792 x float], ptr %8, i64 0, i64 0
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds [32768 x float], ptr %9, i64 0, i64 0
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %235, i32 noundef %236, ptr noundef %237, ptr noundef %238, ptr noundef %239, ptr noundef %240)
  %241 = load i32, ptr %36, align 4, !tbaa !11
  %242 = getelementptr inbounds [32768 x float], ptr %13, i64 0, i64 0
  %243 = getelementptr inbounds [33792 x float], ptr %14, i64 0, i64 0
  %244 = getelementptr inbounds [32768 x float], ptr %15, i64 0, i64 0
  %245 = load float, ptr %27, align 4, !tbaa !9
  %246 = load float, ptr %24, align 4, !tbaa !9
  %247 = load float, ptr %25, align 4, !tbaa !9
  %248 = load float, ptr %26, align 4, !tbaa !9
  %249 = load i32, ptr %31, align 4, !tbaa !11
  %250 = sub nsw i32 %249, 1
  call void @buffer_compute(i32 noundef %241, ptr noundef %242, ptr noundef %243, ptr noundef %244, float noundef %245, float noundef %246, float noundef %247, float noundef %248, i32 noundef %250)
  %251 = load i32, ptr %37, align 4, !tbaa !11
  %252 = load i32, ptr %31, align 4, !tbaa !11
  %253 = sub nsw i32 %252, 2
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds [32768 x float], ptr %10, i64 0, i64 0
  call void @buffer_store(i32 noundef %251, i32 noundef %253, ptr noundef %254, ptr noundef %255)
  br label %305

256:                                              ; preds = %228
  %257 = load i32, ptr %31, align 4, !tbaa !11
  %258 = srem i32 %257, 3
  %259 = icmp eq i32 %258, 1
  br i1 %259, label %260, label %282

260:                                              ; preds = %256
  %261 = load i32, ptr %35, align 4, !tbaa !11
  %262 = load i32, ptr %31, align 4, !tbaa !11
  %263 = getelementptr inbounds [33792 x float], ptr %11, i64 0, i64 0
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds [32768 x float], ptr %12, i64 0, i64 0
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %261, i32 noundef %262, ptr noundef %263, ptr noundef %264, ptr noundef %265, ptr noundef %266)
  %267 = load i32, ptr %36, align 4, !tbaa !11
  %268 = getelementptr inbounds [32768 x float], ptr %7, i64 0, i64 0
  %269 = getelementptr inbounds [33792 x float], ptr %8, i64 0, i64 0
  %270 = getelementptr inbounds [32768 x float], ptr %9, i64 0, i64 0
  %271 = load float, ptr %27, align 4, !tbaa !9
  %272 = load float, ptr %24, align 4, !tbaa !9
  %273 = load float, ptr %25, align 4, !tbaa !9
  %274 = load float, ptr %26, align 4, !tbaa !9
  %275 = load i32, ptr %31, align 4, !tbaa !11
  %276 = sub nsw i32 %275, 1
  call void @buffer_compute(i32 noundef %267, ptr noundef %268, ptr noundef %269, ptr noundef %270, float noundef %271, float noundef %272, float noundef %273, float noundef %274, i32 noundef %276)
  %277 = load i32, ptr %37, align 4, !tbaa !11
  %278 = load i32, ptr %31, align 4, !tbaa !11
  %279 = sub nsw i32 %278, 2
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds [32768 x float], ptr %13, i64 0, i64 0
  call void @buffer_store(i32 noundef %277, i32 noundef %279, ptr noundef %280, ptr noundef %281)
  br label %304

282:                                              ; preds = %256
  %283 = load i32, ptr %35, align 4, !tbaa !11
  %284 = load i32, ptr %31, align 4, !tbaa !11
  %285 = getelementptr inbounds [33792 x float], ptr %14, i64 0, i64 0
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds [32768 x float], ptr %15, i64 0, i64 0
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load(i32 noundef %283, i32 noundef %284, ptr noundef %285, ptr noundef %286, ptr noundef %287, ptr noundef %288)
  %289 = load i32, ptr %36, align 4, !tbaa !11
  %290 = getelementptr inbounds [32768 x float], ptr %10, i64 0, i64 0
  %291 = getelementptr inbounds [33792 x float], ptr %11, i64 0, i64 0
  %292 = getelementptr inbounds [32768 x float], ptr %12, i64 0, i64 0
  %293 = load float, ptr %27, align 4, !tbaa !9
  %294 = load float, ptr %24, align 4, !tbaa !9
  %295 = load float, ptr %25, align 4, !tbaa !9
  %296 = load float, ptr %26, align 4, !tbaa !9
  %297 = load i32, ptr %31, align 4, !tbaa !11
  %298 = sub nsw i32 %297, 1
  call void @buffer_compute(i32 noundef %289, ptr noundef %290, ptr noundef %291, ptr noundef %292, float noundef %293, float noundef %294, float noundef %295, float noundef %296, i32 noundef %298)
  %299 = load i32, ptr %37, align 4, !tbaa !11
  %300 = load i32, ptr %31, align 4, !tbaa !11
  %301 = sub nsw i32 %300, 2
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds [32768 x float], ptr %7, i64 0, i64 0
  call void @buffer_store(i32 noundef %299, i32 noundef %301, ptr noundef %302, ptr noundef %303)
  br label %304

304:                                              ; preds = %282, %260
  br label %305

305:                                              ; preds = %304, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #2
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %31, align 4, !tbaa !11
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %31, align 4, !tbaa !11
  br label %203, !llvm.loop !15

309:                                              ; preds = %203
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %28, align 4, !tbaa !11
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %28, align 4, !tbaa !11
  br label %90, !llvm.loop !16

313:                                              ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr %7) #2
  ret void
}

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @buffer_load(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @buffer_compute(i32 noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @buffer_store(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @workload(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca [32768 x float], align 16
  %5 = alloca [33792 x float], align 16
  %6 = alloca [32768 x float], align 16
  %7 = alloca [32768 x float], align 16
  %8 = alloca [33792 x float], align 16
  %9 = alloca [32768 x float], align 16
  %10 = alloca [32768 x float], align 16
  %11 = alloca [33792 x float], align 16
  %12 = alloca [32768 x float], align 16
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 135168, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %6) #2
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 135168, ptr nonnull %8) #2
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %9) #2
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %10) #2
  call void @llvm.lifetime.start.p0(i64 135168, ptr nonnull %11) #2
  call void @llvm.lifetime.start.p0(i64 131072, ptr nonnull %12) #2
  br label %.preheader118

.preheader118:                                    ; preds = %3, %46
  %.0121 = phi i32 [ 0, %3 ], [ %47, %46 ]
  br label %13

13:                                               ; preds = %.preheader118, %28
  %.0113119 = phi i32 [ 0, %.preheader118 ], [ %29, %28 ]
  %14 = icmp ult i32 %.0113119, 8
  %15 = zext i1 %14 to i32
  %16 = icmp ne i32 %.0113119, 0
  %17 = icmp ne i32 %.0113119, 9
  %18 = and i1 %16, %17
  %19 = zext i1 %18 to i32
  %20 = icmp ugt i32 %.0113119, 1
  %21 = zext i1 %20 to i32
  %.lhs.trunc = trunc nuw i32 %.0113119 to i8
  %22 = urem i8 %.lhs.trunc, 3
  %23 = add nsw i32 %.0113119, -1
  %24 = add nsw i32 %.0113119, -2
  switch i8 %22, label %27 [
    i8 0, label %25
    i8 1, label %26
  ]

25:                                               ; preds = %13
  call void @buffer_load(i32 noundef %15, i32 noundef %.0113119, ptr noundef nonnull %5, ptr noundef %1, ptr noundef nonnull %6, ptr noundef %2)
  call void @buffer_compute(i32 noundef %19, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %23)
  br label %28

26:                                               ; preds = %13
  call void @buffer_load(i32 noundef %15, i32 noundef %.0113119, ptr noundef nonnull %8, ptr noundef %1, ptr noundef nonnull %9, ptr noundef %2)
  call void @buffer_compute(i32 noundef %19, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %23)
  br label %28

27:                                               ; preds = %13
  call void @buffer_load(i32 noundef %15, i32 noundef %.0113119, ptr noundef nonnull %11, ptr noundef %1, ptr noundef nonnull %12, ptr noundef %2)
  call void @buffer_compute(i32 noundef %19, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %23)
  br label %28

28:                                               ; preds = %26, %27, %25
  %.sink = phi ptr [ %10, %26 ], [ %4, %27 ], [ %7, %25 ]
  call void @buffer_store(i32 noundef %21, i32 noundef %24, ptr noundef %0, ptr noundef nonnull %.sink)
  %29 = add nuw nsw i32 %.0113119, 1
  %exitcond.not = icmp eq i32 %29, 10
  br i1 %exitcond.not, label %.preheader, label %13, !llvm.loop !5

.preheader:                                       ; preds = %28, %44
  %.1120 = phi i32 [ %45, %44 ], [ 0, %28 ]
  %30 = icmp ult i32 %.1120, 8
  %31 = zext i1 %30 to i32
  %32 = icmp ne i32 %.1120, 0
  %33 = icmp ne i32 %.1120, 9
  %34 = and i1 %32, %33
  %35 = zext i1 %34 to i32
  %36 = icmp ugt i32 %.1120, 1
  %37 = zext i1 %36 to i32
  %.lhs.trunc116 = trunc nuw i32 %.1120 to i8
  %38 = urem i8 %.lhs.trunc116, 3
  %39 = add nsw i32 %.1120, -1
  %40 = add nsw i32 %.1120, -2
  switch i8 %38, label %43 [
    i8 0, label %41
    i8 1, label %42
  ]

41:                                               ; preds = %.preheader
  call void @buffer_load(i32 noundef %31, i32 noundef %.1120, ptr noundef nonnull %5, ptr noundef %0, ptr noundef nonnull %6, ptr noundef %2)
  call void @buffer_compute(i32 noundef %35, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %39)
  br label %44

42:                                               ; preds = %.preheader
  call void @buffer_load(i32 noundef %31, i32 noundef %.1120, ptr noundef nonnull %8, ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @buffer_compute(i32 noundef %35, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %39)
  br label %44

43:                                               ; preds = %.preheader
  call void @buffer_load(i32 noundef %31, i32 noundef %.1120, ptr noundef nonnull %11, ptr noundef %0, ptr noundef nonnull %12, ptr noundef %2)
  call void @buffer_compute(i32 noundef %35, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, float noundef 0x3FA179EC80000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3F299999A0000000, i32 noundef %39)
  br label %44

44:                                               ; preds = %42, %43, %41
  %.sink124 = phi ptr [ %10, %42 ], [ %4, %43 ], [ %7, %41 ]
  call void @buffer_store(i32 noundef %37, i32 noundef %40, ptr noundef %1, ptr noundef nonnull %.sink124)
  %45 = add nuw nsw i32 %.1120, 1
  %exitcond122.not = icmp eq i32 %45, 10
  br i1 %exitcond122.not, label %46, label %.preheader, !llvm.loop !7

46:                                               ; preds = %44
  %47 = add nuw nsw i32 %.0121, 1
  %exitcond123.not = icmp eq i32 %47, 32
  br i1 %exitcond123.not, label %48, label %.preheader118, !llvm.loop !8

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %12) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr nonnull %11) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %10) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %9) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr nonnull %8) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 135168, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 131072, ptr nonnull %4) #2
  ret void
}

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


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