; LLVM IR from Discngine/fpocket :: src (energy)

; 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.s_grid = type { ptr, ptr, i32, i32, i32, float }

@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @write_grid(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str.7) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.s_grid, ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.s_grid, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.s_grid, ptr %19, i32 0, i32 4
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.8, i32 noundef %15, i32 noundef %18, i32 noundef %21) #3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.s_grid, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds float, ptr %26, i64 0
  %28 = load float, ptr %27, align 4, !tbaa !16
  %29 = fpext float %28 to double
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.s_grid, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds float, ptr %32, i64 1
  %34 = load float, ptr %33, align 4, !tbaa !16
  %35 = fpext float %34 to double
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s_grid, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds float, ptr %38, i64 2
  %40 = load float, ptr %39, align 4, !tbaa !16
  %41 = fpext float %40 to double
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.9, double noundef %29, double noundef %35, double noundef %41) #3
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.s_grid, ptr %44, i32 0, i32 5
  %46 = load float, ptr %45, align 4, !tbaa !17
  %47 = fpext float %46 to double
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.10, double noundef %47) #3
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.s_grid, ptr %50, i32 0, i32 5
  %52 = load float, ptr %51, align 4, !tbaa !17
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.11, double noundef %53) #3
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.s_grid, ptr %56, i32 0, i32 5
  %58 = load float, ptr %57, align 4, !tbaa !17
  %59 = fpext float %58 to double
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.12, double noundef %59) #3
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.s_grid, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !9
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.s_grid, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.s_grid, ptr %68, i32 0, i32 4
  %70 = load i32, ptr %69, align 8, !tbaa !14
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.13, i32 noundef %64, i32 noundef %67, i32 noundef %70) #3
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.s_grid, ptr %73, i32 0, i32 2
  %75 = load i32, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.s_grid, ptr %76, i32 0, i32 3
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = mul nsw i32 %75, %78
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.s_grid, ptr %80, i32 0, i32 4
  %82 = load i32, ptr %81, align 8, !tbaa !14
  %83 = mul nsw i32 %79, %82
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.14, i32 noundef %83) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !18
  store i32 0, ptr %5, align 4, !tbaa !18
  br label %85

85:                                               ; preds = %141, %2
  %86 = load i32, ptr %5, align 4, !tbaa !18
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.s_grid, ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !9
  %90 = icmp slt i32 %86, %89
  br i1 %90, label %91, label %144

91:                                               ; preds = %85
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %92

92:                                               ; preds = %137, %91
  %93 = load i32, ptr %6, align 4, !tbaa !18
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.s_grid, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = icmp slt i32 %93, %96
  br i1 %97, label %98, label %140

98:                                               ; preds = %92
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %99

99:                                               ; preds = %133, %98
  %100 = load i32, ptr %7, align 4, !tbaa !18
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.s_grid, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 8, !tbaa !14
  %104 = icmp slt i32 %100, %103
  br i1 %104, label %105, label %136

105:                                              ; preds = %99
  %106 = load i32, ptr %9, align 4, !tbaa !18
  %107 = icmp eq i32 %106, 3
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  store i32 0, ptr %9, align 4, !tbaa !18
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.15) #3
  br label %111

111:                                              ; preds = %108, %105
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.s_grid, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = load i32, ptr %5, align 4, !tbaa !18
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !18
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !18
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %122, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !16
  store float %126, ptr %8, align 4, !tbaa !16
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load float, ptr %8, align 4, !tbaa !16
  %129 = fpext float %128 to double
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.16, double noundef %129) #3
  %131 = load i32, ptr %9, align 4, !tbaa !18
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !18
  br label %133

133:                                              ; preds = %111
  %134 = load i32, ptr %7, align 4, !tbaa !18
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %7, align 4, !tbaa !18
  br label %99, !llvm.loop !20

136:                                              ; preds = %99
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %6, align 4, !tbaa !18
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %6, align 4, !tbaa !18
  br label %92, !llvm.loop !22

140:                                              ; preds = %92
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %5, align 4, !tbaa !18
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %5, align 4, !tbaa !18
  br label %85, !llvm.loop !23

144:                                              ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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, !11, i64 16}
!10 = !{!"s_grid", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 20}
!14 = !{!10, !11, i64 24}
!15 = !{!10, !6, i64 8}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !12, i64 28}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; 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.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @write_grid(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %3 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.7) #2
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 20
  %7 = load i32, ptr %6, align 4, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !13
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.8, i32 noundef %5, i32 noundef %7, i32 noundef %9) #2
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = load float, ptr %12, align 4, !tbaa !15
  %14 = fpext float %13 to double
  %15 = getelementptr inbounds i8, ptr %12, i64 4
  %16 = load float, ptr %15, align 4, !tbaa !15
  %17 = fpext float %16 to double
  %18 = getelementptr inbounds i8, ptr %12, i64 8
  %19 = load float, ptr %18, align 4, !tbaa !15
  %20 = fpext float %19 to double
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.9, double noundef %14, double noundef %17, double noundef %20) #2
  %22 = getelementptr inbounds i8, ptr %0, i64 28
  %23 = load float, ptr %22, align 4, !tbaa !16
  %24 = fpext float %23 to double
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.10, double noundef %24) #2
  %26 = load float, ptr %22, align 4, !tbaa !16
  %27 = fpext float %26 to double
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.11, double noundef %27) #2
  %29 = load float, ptr %22, align 4, !tbaa !16
  %30 = fpext float %29 to double
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.12, double noundef %30) #2
  %32 = load i32, ptr %4, align 8, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !12
  %34 = load i32, ptr %8, align 8, !tbaa !13
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.13, i32 noundef %32, i32 noundef %33, i32 noundef %34) #2
  %36 = load i32, ptr %4, align 8, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !12
  %38 = mul nsw i32 %37, %36
  %39 = load i32, ptr %8, align 8, !tbaa !13
  %40 = mul nsw i32 %38, %39
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.14, i32 noundef %40) #2
  %42 = load i32, ptr %4, align 8, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.preheader43.lr.ph, label %._crit_edge52

.preheader43.lr.ph:                               ; preds = %2
  %44 = load i32, ptr %6, align 4, !tbaa !12
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.preheader43, label %._crit_edge52

.preheader43:                                     ; preds = %.preheader43.lr.ph, %._crit_edge48
  %46 = phi i32 [ %76, %._crit_edge48 ], [ %42, %.preheader43.lr.ph ]
  %47 = phi i32 [ %77, %._crit_edge48 ], [ %44, %.preheader43.lr.ph ]
  %48 = phi i32 [ %78, %._crit_edge48 ], [ %44, %.preheader43.lr.ph ]
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %._crit_edge48 ], [ 0, %.preheader43.lr.ph ]
  %.051 = phi i32 [ %.1.lcssa, %._crit_edge48 ], [ 0, %.preheader43.lr.ph ]
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.preheader.lr.ph, label %._crit_edge48

.preheader.lr.ph:                                 ; preds = %.preheader43
  %50 = load i32, ptr %8, align 8, !tbaa !13
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.preheader, label %._crit_edge48

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %52 = phi i32 [ %72, %._crit_edge ], [ %47, %.preheader.lr.ph ]
  %53 = phi i32 [ %73, %._crit_edge ], [ %50, %.preheader.lr.ph ]
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %.147 = phi i32 [ %.2.lcssa, %._crit_edge ], [ %.051, %.preheader.lr.ph ]
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %58
  %indvars.iv = phi i64 [ %indvars.iv.next, %58 ], [ 0, %.preheader ]
  %.245 = phi i32 [ %68, %58 ], [ %.147, %.preheader ]
  %55 = icmp eq i32 %.245, 3
  br i1 %55, label %56, label %58

56:                                               ; preds = %.lr.ph
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.15) #2
  br label %58

58:                                               ; preds = %56, %.lr.ph
  %.3 = phi i32 [ 0, %56 ], [ %.245, %.lr.ph ]
  %59 = load ptr, ptr %0, align 8, !tbaa !17
  %60 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv59
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv56
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds float, ptr %63, i64 %indvars.iv
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = fpext float %65 to double
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.16, double noundef %66) #2
  %68 = add nsw i32 %.3, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = load i32, ptr %8, align 8, !tbaa !13
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next, %70
  br i1 %71, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %58
  %.pre = load i32, ptr %6, align 4, !tbaa !12
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %72 = phi i32 [ %52, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %73 = phi i32 [ %53, %.preheader ], [ %69, %._crit_edge.loopexit ]
  %.2.lcssa = phi i32 [ %.147, %.preheader ], [ %68, %._crit_edge.loopexit ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %74 = sext i32 %72 to i64
  %75 = icmp slt i64 %indvars.iv.next57, %74
  br i1 %75, label %.preheader, label %._crit_edge48.loopexit, !llvm.loop !21

._crit_edge48.loopexit:                           ; preds = %._crit_edge
  %.pre62 = load i32, ptr %4, align 8, !tbaa !5
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %.preheader.lr.ph, %._crit_edge48.loopexit, %.preheader43
  %76 = phi i32 [ %46, %.preheader43 ], [ %.pre62, %._crit_edge48.loopexit ], [ %46, %.preheader.lr.ph ]
  %77 = phi i32 [ %47, %.preheader43 ], [ %72, %._crit_edge48.loopexit ], [ %47, %.preheader.lr.ph ]
  %78 = phi i32 [ %48, %.preheader43 ], [ %72, %._crit_edge48.loopexit ], [ %48, %.preheader.lr.ph ]
  %.1.lcssa = phi i32 [ %.051, %.preheader43 ], [ %.2.lcssa, %._crit_edge48.loopexit ], [ %.051, %.preheader.lr.ph ]
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %79 = sext i32 %76 to i64
  %80 = icmp slt i64 %indvars.iv.next60, %79
  br i1 %80, label %.preheader43, label %._crit_edge52, !llvm.loop !23

._crit_edge52:                                    ; preds = %._crit_edge48, %.preheader43.lr.ph, %2
  ret void
}

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" }
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, !10, i64 16}
!6 = !{!"s_grid", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 20}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !7, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !11, i64 28}
!17 = !{!6, !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !20, !22}


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