; LLVM IR from aferikoglou/GenHLSOptimizer :: dataset/rodinia_cfd_step_factor_4_doublebuffer_0 (cfd_step_factor)

; 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_variables(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @workload(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [1024 x float], align 16
  %8 = alloca [5120 x float], align 16
  %9 = alloca [1024 x float], align 16
  %10 = alloca [1024 x float], align 16
  %11 = alloca [5120 x float], align 16
  %12 = alloca [1024 x float], align 16
  %13 = alloca [1024 x float], align 16
  %14 = alloca [5120 x float], align 16
  %15 = alloca [1024 x float], align 16
  %16 = alloca [1024 x float], align 16
  %17 = alloca [5120 x float], align 16
  %18 = alloca [1024 x float], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = 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 %24

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4096, ptr %7) #3
  br label %25

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 20480, ptr %8) #3
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4096, ptr %9) #3
  br label %27

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4096, ptr %10) #3
  br label %28

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 20480, ptr %11) #3
  br label %29

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4096, ptr %12) #3
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4096, ptr %13) #3
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 20480, ptr %14) #3
  br label %32

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4096, ptr %15) #3
  br label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4096, ptr %16) #3
  br label %34

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 20480, ptr %17) #3
  br label %35

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4096, ptr %18) #3
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %164, %36
  %38 = load i32, ptr %19, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 4
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %167

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %42 = load i32, ptr %19, align 4, !tbaa !9
  %43 = icmp sge i32 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = load i32, ptr %19, align 4, !tbaa !9
  %46 = icmp slt i32 %45, 1
  br label %47

47:                                               ; preds = %44, %41
  %48 = phi i1 [ false, %41 ], [ %46, %44 ]
  %49 = zext i1 %48 to i32
  store i32 %49, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = icmp sge i32 %50, 1
  br i1 %51, label %52, label %55

52:                                               ; preds = %47
  %53 = load i32, ptr %19, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 2
  br label %55

55:                                               ; preds = %52, %47
  %56 = phi i1 [ false, %47 ], [ %54, %52 ]
  %57 = zext i1 %56 to i32
  store i32 %57, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %58 = load i32, ptr %19, align 4, !tbaa !9
  %59 = icmp sge i32 %58, 2
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = load i32, ptr %19, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 3
  br label %63

63:                                               ; preds = %60, %55
  %64 = phi i1 [ false, %55 ], [ %62, %60 ]
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %66 = load i32, ptr %19, align 4, !tbaa !9
  %67 = icmp sge i32 %66, 3
  br i1 %67, label %68, label %71

68:                                               ; preds = %63
  %69 = load i32, ptr %19, align 4, !tbaa !9
  %70 = icmp slt i32 %69, 4
  br label %71

71:                                               ; preds = %68, %63
  %72 = phi i1 [ false, %63 ], [ %70, %68 ]
  %73 = zext i1 %72 to i32
  store i32 %73, ptr %23, align 4, !tbaa !9
  %74 = load i32, ptr %19, align 4, !tbaa !9
  %75 = srem i32 %74, 4
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %96

77:                                               ; preds = %71
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = getelementptr inbounds [5120 x float], ptr %8, i64 0, i64 0
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  call void @buffer_load_variables(i32 noundef %78, i32 noundef %79, ptr noundef %80, ptr noundef %81)
  %82 = load i32, ptr %21, align 4, !tbaa !9
  %83 = load i32, ptr %19, align 4, !tbaa !9
  %84 = sub nsw i32 %83, 1
  %85 = getelementptr inbounds [1024 x float], ptr %18, i64 0, i64 0
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load_areas(i32 noundef %82, i32 noundef %84, ptr noundef %85, ptr noundef %86)
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = getelementptr inbounds [1024 x float], ptr %13, i64 0, i64 0
  %89 = getelementptr inbounds [5120 x float], ptr %14, i64 0, i64 0
  %90 = getelementptr inbounds [1024 x float], ptr %15, i64 0, i64 0
  call void @buffer_compute(i32 noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90)
  %91 = load i32, ptr %23, align 4, !tbaa !9
  %92 = load i32, ptr %19, align 4, !tbaa !9
  %93 = sub nsw i32 %92, 3
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds [1024 x float], ptr %10, i64 0, i64 0
  call void @buffer_store(i32 noundef %91, i32 noundef %93, ptr noundef %94, ptr noundef %95)
  br label %163

96:                                               ; preds = %71
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = srem i32 %97, 4
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %100, label %119

100:                                              ; preds = %96
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = getelementptr inbounds [5120 x float], ptr %11, i64 0, i64 0
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  call void @buffer_load_variables(i32 noundef %101, i32 noundef %102, ptr noundef %103, ptr noundef %104)
  %105 = load i32, ptr %21, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = sub nsw i32 %106, 1
  %108 = getelementptr inbounds [1024 x float], ptr %9, i64 0, i64 0
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load_areas(i32 noundef %105, i32 noundef %107, ptr noundef %108, ptr noundef %109)
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = getelementptr inbounds [1024 x float], ptr %16, i64 0, i64 0
  %112 = getelementptr inbounds [5120 x float], ptr %17, i64 0, i64 0
  %113 = getelementptr inbounds [1024 x float], ptr %18, i64 0, i64 0
  call void @buffer_compute(i32 noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113)
  %114 = load i32, ptr %23, align 4, !tbaa !9
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 3
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds [1024 x float], ptr %13, i64 0, i64 0
  call void @buffer_store(i32 noundef %114, i32 noundef %116, ptr noundef %117, ptr noundef %118)
  br label %162

119:                                              ; preds = %96
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = srem i32 %120, 4
  %122 = icmp eq i32 %121, 2
  br i1 %122, label %123, label %142

123:                                              ; preds = %119
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = getelementptr inbounds [5120 x float], ptr %14, i64 0, i64 0
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  call void @buffer_load_variables(i32 noundef %124, i32 noundef %125, ptr noundef %126, ptr noundef %127)
  %128 = load i32, ptr %21, align 4, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = sub nsw i32 %129, 1
  %131 = getelementptr inbounds [1024 x float], ptr %12, i64 0, i64 0
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load_areas(i32 noundef %128, i32 noundef %130, ptr noundef %131, ptr noundef %132)
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = getelementptr inbounds [1024 x float], ptr %7, i64 0, i64 0
  %135 = getelementptr inbounds [5120 x float], ptr %8, i64 0, i64 0
  %136 = getelementptr inbounds [1024 x float], ptr %9, i64 0, i64 0
  call void @buffer_compute(i32 noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136)
  %137 = load i32, ptr %23, align 4, !tbaa !9
  %138 = load i32, ptr %19, align 4, !tbaa !9
  %139 = sub nsw i32 %138, 3
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds [1024 x float], ptr %16, i64 0, i64 0
  call void @buffer_store(i32 noundef %137, i32 noundef %139, ptr noundef %140, ptr noundef %141)
  br label %161

142:                                              ; preds = %119
  %143 = load i32, ptr %20, align 4, !tbaa !9
  %144 = load i32, ptr %19, align 4, !tbaa !9
  %145 = getelementptr inbounds [5120 x float], ptr %17, i64 0, i64 0
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  call void @buffer_load_variables(i32 noundef %143, i32 noundef %144, ptr noundef %145, ptr noundef %146)
  %147 = load i32, ptr %21, align 4, !tbaa !9
  %148 = load i32, ptr %19, align 4, !tbaa !9
  %149 = sub nsw i32 %148, 1
  %150 = getelementptr inbounds [1024 x float], ptr %15, i64 0, i64 0
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffer_load_areas(i32 noundef %147, i32 noundef %149, ptr noundef %150, ptr noundef %151)
  %152 = load i32, ptr %22, align 4, !tbaa !9
  %153 = getelementptr inbounds [1024 x float], ptr %10, i64 0, i64 0
  %154 = getelementptr inbounds [5120 x float], ptr %11, i64 0, i64 0
  %155 = getelementptr inbounds [1024 x float], ptr %12, i64 0, i64 0
  call void @buffer_compute(i32 noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155)
  %156 = load i32, ptr %23, align 4, !tbaa !9
  %157 = load i32, ptr %19, align 4, !tbaa !9
  %158 = sub nsw i32 %157, 3
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds [1024 x float], ptr %7, i64 0, i64 0
  call void @buffer_store(i32 noundef %156, i32 noundef %158, ptr noundef %159, ptr noundef %160)
  br label %161

161:                                              ; preds = %142, %123
  br label %162

162:                                              ; preds = %161, %100
  br label %163

163:                                              ; preds = %162, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %19, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %19, align 4, !tbaa !9
  br label %37, !llvm.loop !11

167:                                              ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4096, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %7) #3
  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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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_variables(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; 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 uwtable
define dso_local void @workload(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [1024 x float], align 16
  %5 = alloca [5120 x float], align 16
  %6 = alloca [1024 x float], align 16
  %7 = alloca [1024 x float], align 16
  %8 = alloca [5120 x float], align 16
  %9 = alloca [1024 x float], align 16
  %10 = alloca [1024 x float], align 16
  %11 = alloca [5120 x float], align 16
  %12 = alloca [1024 x float], align 16
  %13 = alloca [1024 x float], align 16
  %14 = alloca [5120 x float], align 16
  %15 = alloca [1024 x float], align 16
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 20480, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 20480, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 20480, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 20480, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %15) #3
  br label %17

16:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 20480, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #3
  ret void

17:                                               ; preds = %3, %34
  %.053 = phi i32 [ 0, %3 ], [ %35, %34 ]
  %18 = icmp eq i32 %.053, 0
  %19 = zext i1 %18 to i32
  %20 = icmp eq i32 %.053, 1
  %21 = zext i1 %20 to i32
  %22 = icmp ugt i32 %.053, 1
  %23 = icmp ne i32 %.053, 3
  %24 = and i1 %22, %23
  %25 = zext i1 %24 to i32
  %26 = icmp eq i32 %.053, 3
  %27 = zext i1 %26 to i32
  switch i32 %.053, label %31 [
    i32 0, label %28
    i32 1, label %29
    i32 2, label %30
  ]

28:                                               ; preds = %17
  call void @buffer_load_variables(i32 noundef %19, i32 noundef 0, ptr noundef nonnull %5, ptr noundef %1)
  call void @buffer_load_areas(i32 noundef %21, i32 noundef -1, ptr noundef nonnull %15, ptr noundef %2)
  call void @buffer_compute(i32 noundef %25, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @buffer_store(i32 noundef %27, i32 noundef -3, ptr noundef %0, ptr noundef nonnull %7)
  br label %34

29:                                               ; preds = %17
  call void @buffer_load_variables(i32 noundef %19, i32 noundef 1, ptr noundef nonnull %8, ptr noundef %1)
  call void @buffer_load_areas(i32 noundef %21, i32 noundef 0, ptr noundef nonnull %6, ptr noundef %2)
  call void @buffer_compute(i32 noundef %25, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15)
  call void @buffer_store(i32 noundef %27, i32 noundef -2, ptr noundef %0, ptr noundef nonnull %10)
  br label %34

30:                                               ; preds = %17
  call void @buffer_load_variables(i32 noundef %19, i32 noundef 2, ptr noundef nonnull %11, ptr noundef %1)
  call void @buffer_load_areas(i32 noundef %21, i32 noundef 1, ptr noundef nonnull %9, ptr noundef %2)
  call void @buffer_compute(i32 noundef %25, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @buffer_store(i32 noundef %27, i32 noundef -1, ptr noundef %0, ptr noundef nonnull %13)
  br label %34

31:                                               ; preds = %17
  call void @buffer_load_variables(i32 noundef %19, i32 noundef %.053, ptr noundef nonnull %14, ptr noundef %1)
  %32 = add nsw i32 %.053, -1
  call void @buffer_load_areas(i32 noundef %21, i32 noundef %32, ptr noundef nonnull %12, ptr noundef %2)
  call void @buffer_compute(i32 noundef %25, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %33 = add nsw i32 %.053, -3
  call void @buffer_store(i32 noundef %27, i32 noundef %33, ptr noundef %0, ptr noundef nonnull %4)
  br label %34

34:                                               ; preds = %29, %31, %30, %28
  %35 = add nuw nsw i32 %.053, 1
  %exitcond.not = icmp eq i32 %35, 4
  br i1 %exitcond.not, label %16, label %17, !llvm.loop !5
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass