; LLVM IR from Ayon-SSP/The-SDE-Prep :: 8]_CPU Scheduling Algorithms C++ (banker)

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

@__const.main.avail = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.max = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@__const.main.allocate = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [5 x [3 x i32]], align 16
  %12 = alloca [3 x i32], align 4
  %13 = alloca [5 x i32], align 16
  %14 = alloca [5 x i32], align 16
  %15 = alloca [5 x [3 x i32]], align 16
  %16 = alloca [5 x [3 x i32]], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 5, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 60, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 @__const.main.avail, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 60, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.main.max, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr %16) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.main.allocate, i64 60, i1 false)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %52, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %55

21:                                               ; preds = %17
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %48, %21
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %9, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %26, label %51

26:                                               ; preds = %22
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [5 x [3 x i32]], ptr %15, i64 0, i64 %28
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [5 x [3 x i32]], ptr %16, i64 0, i64 %35
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [3 x i32], ptr %36, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sub nsw i32 %33, %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5 x [3 x i32]], ptr %11, i64 0, i64 %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3 x i32], ptr %44, i64 0, i64 %46
  store i32 %41, ptr %47, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %26
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !9

51:                                               ; preds = %22
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !11

55:                                               ; preds = %17
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %136, %55
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %139

60:                                               ; preds = %56
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %132, %60
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %65, label %135

65:                                               ; preds = %61
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [5 x i32], ptr %13, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %131

71:                                               ; preds = %65
  store i32 0, ptr %10, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %91, %71
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %94

76:                                               ; preds = %72
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [5 x [3 x i32]], ptr %11, i64 0, i64 %78
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [3 x i32], ptr %79, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [3 x i32], ptr %12, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp sgt i32 %83, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %76
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %94

90:                                               ; preds = %76
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %3, align 4, !tbaa !5
  br label %72, !llvm.loop !12

94:                                               ; preds = %89, %72
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %130

97:                                               ; preds = %94
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %118, %97
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %102, label %121

102:                                              ; preds = %98
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [3 x i32], ptr %12, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [5 x [3 x i32]], ptr %16, i64 0, i64 %108
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [3 x i32], ptr %109, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = add nsw i32 %106, %113
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [3 x i32], ptr %12, i64 0, i64 %116
  store i32 %114, ptr %117, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %102
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %4, align 4, !tbaa !5
  br label %98, !llvm.loop !13

121:                                              ; preds = %98
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [5 x i32], ptr %13, i64 0, i64 %123
  store i32 1, ptr %124, align 4, !tbaa !5
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %7, align 4, !tbaa !5
  %128 = sext i32 %126 to i64
  %129 = getelementptr inbounds [5 x i32], ptr %14, i64 0, i64 %128
  store i32 %125, ptr %129, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %121, %94
  br label %131

131:                                              ; preds = %130, %65
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %2, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %2, align 4, !tbaa !5
  br label %61, !llvm.loop !14

135:                                              ; preds = %61
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %5, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %5, align 4, !tbaa !5
  br label %56, !llvm.loop !15

139:                                              ; preds = %56
  store i32 0, ptr %10, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %151, %139
  %141 = load i32, ptr %2, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 5
  br i1 %142, label %143, label %154

143:                                              ; preds = %140
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [5 x i32], ptr %13, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %143
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %149, %143
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %2, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %2, align 4, !tbaa !5
  br label %140, !llvm.loop !16

154:                                              ; preds = %140
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %159

157:                                              ; preds = %154
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %161

159:                                              ; preds = %154
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %161

161:                                              ; preds = %159, %157
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %173, %161
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = icmp slt i32 %164, %165
  br i1 %166, label %167, label %176

167:                                              ; preds = %163
  %168 = load i32, ptr %6, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [5 x i32], ptr %14, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %171)
  br label %173

173:                                              ; preds = %167
  %174 = load i32, ptr %6, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %6, align 4, !tbaa !5
  br label %163, !llvm.loop !17

176:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 60, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %177 = load i32, ptr %1, align 4
  ret i32 %177
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

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


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

@__const.main.avail = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.max = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@__const.main.allocate = external hidden unnamed_addr constant [5 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader59:
  %0 = alloca [5 x i32], align 16
  %.sroa.091.0.copyload = load i32, ptr @__const.main.avail, align 4
  %.sroa.18.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.avail, i64 4), align 4
  %.sroa.33.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.avail, i64 8), align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %0) #3
  %1 = load i32, ptr @__const.main.max, align 16, !tbaa !5
  %2 = load i32, ptr @__const.main.allocate, align 16, !tbaa !5
  %3 = sub nsw i32 %1, %2
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 4), align 4, !tbaa !5
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 4), align 4, !tbaa !5
  %6 = sub nsw i32 %4, %5
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 8), align 8, !tbaa !5
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 8), align 8, !tbaa !5
  %9 = sub nsw i32 %7, %8
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 12), align 4, !tbaa !5
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 12), align 4, !tbaa !5
  %12 = sub nsw i32 %10, %11
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 16), align 16, !tbaa !5
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 16), align 16, !tbaa !5
  %15 = sub nsw i32 %13, %14
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 20), align 4, !tbaa !5
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 20), align 4, !tbaa !5
  %18 = sub nsw i32 %16, %17
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 24), align 8, !tbaa !5
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 24), align 8, !tbaa !5
  %21 = sub nsw i32 %19, %20
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 28), align 4, !tbaa !5
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 28), align 4, !tbaa !5
  %24 = sub nsw i32 %22, %23
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 32), align 16, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 32), align 16, !tbaa !5
  %27 = sub nsw i32 %25, %26
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 36), align 4, !tbaa !5
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 36), align 4, !tbaa !5
  %30 = sub nsw i32 %28, %29
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 40), align 8, !tbaa !5
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 40), align 8, !tbaa !5
  %33 = sub nsw i32 %31, %32
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 44), align 4, !tbaa !5
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 44), align 4, !tbaa !5
  %36 = sub nsw i32 %34, %35
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 48), align 16, !tbaa !5
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 48), align 16, !tbaa !5
  %39 = sub nsw i32 %37, %38
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 52), align 4, !tbaa !5
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 52), align 4, !tbaa !5
  %42 = sub nsw i32 %40, %41
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.max, i64 56), align 8, !tbaa !5
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.allocate, i64 56), align 8, !tbaa !5
  %45 = sub nsw i32 %43, %44
  br label %.preheader57

.preheader57:                                     ; preds = %.preheader59, %.loopexit.4
  %.sroa.33.0 = phi i32 [ %.sroa.33.0.copyload, %.preheader59 ], [ %.sroa.33.5, %.loopexit.4 ]
  %.sroa.18.0 = phi i32 [ %.sroa.18.0.copyload, %.preheader59 ], [ %.sroa.18.5, %.loopexit.4 ]
  %.sroa.091.0 = phi i32 [ %.sroa.091.0.copyload, %.preheader59 ], [ %.sroa.091.5, %.loopexit.4 ]
  %.sroa.0.0 = phi i32 [ 0, %.preheader59 ], [ %.sroa.0.1, %.loopexit.4 ]
  %.sroa.6.0 = phi i32 [ 0, %.preheader59 ], [ %.sroa.6.1, %.loopexit.4 ]
  %.sroa.9.0 = phi i32 [ 0, %.preheader59 ], [ %.sroa.9.1, %.loopexit.4 ]
  %.sroa.12.0 = phi i32 [ 0, %.preheader59 ], [ %.sroa.12.1, %.loopexit.4 ]
  %.sroa.15.0 = phi i32 [ 0, %.preheader59 ], [ %.sroa.15.1, %.loopexit.4 ]
  %.05067 = phi i32 [ 0, %.preheader59 ], [ %.252.4, %.loopexit.4 ]
  %.05466 = phi i32 [ 0, %.preheader59 ], [ %96, %.loopexit.4 ]
  %46 = icmp eq i32 %.sroa.0.0, 0
  br i1 %46, label %.preheader56.preheader, label %.loopexit

.preheader56.preheader:                           ; preds = %.preheader57
  %47 = icmp sgt i32 %3, %.sroa.091.0
  %48 = icmp sgt i32 %6, %.sroa.18.0
  %or.cond = select i1 %47, i1 true, i1 %48
  %49 = icmp sgt i32 %9, %.sroa.33.0
  %or.cond133 = select i1 %or.cond, i1 true, i1 %49
  br i1 %or.cond133, label %.loopexit, label %.critedge.preheader

.critedge.preheader:                              ; preds = %.preheader56.preheader
  %50 = add nsw i32 %2, %.sroa.091.0
  %51 = add nsw i32 %5, %.sroa.18.0
  %52 = add nsw i32 %8, %.sroa.33.0
  %53 = add nsw i32 %.05067, 1
  %54 = sext i32 %.05067 to i64
  %55 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %54
  store i32 0, ptr %55, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader56.preheader, %.preheader57, %.critedge.preheader
  %.sroa.33.1 = phi i32 [ %52, %.critedge.preheader ], [ %.sroa.33.0, %.preheader57 ], [ %.sroa.33.0, %.preheader56.preheader ]
  %.sroa.18.1 = phi i32 [ %51, %.critedge.preheader ], [ %.sroa.18.0, %.preheader57 ], [ %.sroa.18.0, %.preheader56.preheader ]
  %.sroa.091.1 = phi i32 [ %50, %.critedge.preheader ], [ %.sroa.091.0, %.preheader57 ], [ %.sroa.091.0, %.preheader56.preheader ]
  %.sroa.0.1 = phi i32 [ 1, %.critedge.preheader ], [ %.sroa.0.0, %.preheader57 ], [ 0, %.preheader56.preheader ]
  %.252 = phi i32 [ %53, %.critedge.preheader ], [ %.05067, %.preheader57 ], [ %.05067, %.preheader56.preheader ]
  %56 = icmp eq i32 %.sroa.6.0, 0
  br i1 %56, label %.preheader56.preheader.1, label %.loopexit.1

.preheader56.preheader.1:                         ; preds = %.loopexit
  %57 = icmp sgt i32 %12, %.sroa.091.1
  %58 = icmp sgt i32 %15, %.sroa.18.1
  %or.cond134 = select i1 %57, i1 true, i1 %58
  %59 = icmp sgt i32 %18, %.sroa.33.1
  %or.cond135 = select i1 %or.cond134, i1 true, i1 %59
  br i1 %or.cond135, label %.loopexit.1, label %.critedge.preheader.1

.critedge.preheader.1:                            ; preds = %.preheader56.preheader.1
  %60 = add nsw i32 %11, %.sroa.091.1
  %61 = add nsw i32 %14, %.sroa.18.1
  %62 = add nsw i32 %17, %.sroa.33.1
  %63 = add nsw i32 %.252, 1
  %64 = sext i32 %.252 to i64
  %65 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %64
  store i32 1, ptr %65, align 4, !tbaa !5
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %.preheader56.preheader.1, %.critedge.preheader.1, %.loopexit
  %.sroa.33.2 = phi i32 [ %62, %.critedge.preheader.1 ], [ %.sroa.33.1, %.loopexit ], [ %.sroa.33.1, %.preheader56.preheader.1 ]
  %.sroa.18.2 = phi i32 [ %61, %.critedge.preheader.1 ], [ %.sroa.18.1, %.loopexit ], [ %.sroa.18.1, %.preheader56.preheader.1 ]
  %.sroa.091.2 = phi i32 [ %60, %.critedge.preheader.1 ], [ %.sroa.091.1, %.loopexit ], [ %.sroa.091.1, %.preheader56.preheader.1 ]
  %.sroa.6.1 = phi i32 [ 1, %.critedge.preheader.1 ], [ %.sroa.6.0, %.loopexit ], [ 0, %.preheader56.preheader.1 ]
  %.252.1 = phi i32 [ %63, %.critedge.preheader.1 ], [ %.252, %.loopexit ], [ %.252, %.preheader56.preheader.1 ]
  %66 = icmp eq i32 %.sroa.9.0, 0
  br i1 %66, label %.preheader56.preheader.2, label %.loopexit.2

.preheader56.preheader.2:                         ; preds = %.loopexit.1
  %67 = icmp sgt i32 %21, %.sroa.091.2
  %68 = icmp sgt i32 %24, %.sroa.18.2
  %or.cond136 = select i1 %67, i1 true, i1 %68
  %69 = icmp sgt i32 %27, %.sroa.33.2
  %or.cond137 = select i1 %or.cond136, i1 true, i1 %69
  br i1 %or.cond137, label %.loopexit.2, label %.critedge.preheader.2

.critedge.preheader.2:                            ; preds = %.preheader56.preheader.2
  %70 = add nsw i32 %20, %.sroa.091.2
  %71 = add nsw i32 %23, %.sroa.18.2
  %72 = add nsw i32 %26, %.sroa.33.2
  %73 = add nsw i32 %.252.1, 1
  %74 = sext i32 %.252.1 to i64
  %75 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %74
  store i32 2, ptr %75, align 4, !tbaa !5
  br label %.loopexit.2

.loopexit.2:                                      ; preds = %.preheader56.preheader.2, %.critedge.preheader.2, %.loopexit.1
  %.sroa.33.3 = phi i32 [ %72, %.critedge.preheader.2 ], [ %.sroa.33.2, %.loopexit.1 ], [ %.sroa.33.2, %.preheader56.preheader.2 ]
  %.sroa.18.3 = phi i32 [ %71, %.critedge.preheader.2 ], [ %.sroa.18.2, %.loopexit.1 ], [ %.sroa.18.2, %.preheader56.preheader.2 ]
  %.sroa.091.3 = phi i32 [ %70, %.critedge.preheader.2 ], [ %.sroa.091.2, %.loopexit.1 ], [ %.sroa.091.2, %.preheader56.preheader.2 ]
  %.sroa.9.1 = phi i32 [ 1, %.critedge.preheader.2 ], [ %.sroa.9.0, %.loopexit.1 ], [ 0, %.preheader56.preheader.2 ]
  %.252.2 = phi i32 [ %73, %.critedge.preheader.2 ], [ %.252.1, %.loopexit.1 ], [ %.252.1, %.preheader56.preheader.2 ]
  %76 = icmp eq i32 %.sroa.12.0, 0
  br i1 %76, label %.preheader56.preheader.3, label %.loopexit.3

.preheader56.preheader.3:                         ; preds = %.loopexit.2
  %77 = icmp sgt i32 %30, %.sroa.091.3
  %78 = icmp sgt i32 %33, %.sroa.18.3
  %or.cond138 = select i1 %77, i1 true, i1 %78
  %79 = icmp sgt i32 %36, %.sroa.33.3
  %or.cond139 = select i1 %or.cond138, i1 true, i1 %79
  br i1 %or.cond139, label %.loopexit.3, label %.critedge.preheader.3

.critedge.preheader.3:                            ; preds = %.preheader56.preheader.3
  %80 = add nsw i32 %29, %.sroa.091.3
  %81 = add nsw i32 %32, %.sroa.18.3
  %82 = add nsw i32 %35, %.sroa.33.3
  %83 = add nsw i32 %.252.2, 1
  %84 = sext i32 %.252.2 to i64
  %85 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %84
  store i32 3, ptr %85, align 4, !tbaa !5
  br label %.loopexit.3

.loopexit.3:                                      ; preds = %.preheader56.preheader.3, %.critedge.preheader.3, %.loopexit.2
  %.sroa.33.4 = phi i32 [ %82, %.critedge.preheader.3 ], [ %.sroa.33.3, %.loopexit.2 ], [ %.sroa.33.3, %.preheader56.preheader.3 ]
  %.sroa.18.4 = phi i32 [ %81, %.critedge.preheader.3 ], [ %.sroa.18.3, %.loopexit.2 ], [ %.sroa.18.3, %.preheader56.preheader.3 ]
  %.sroa.091.4 = phi i32 [ %80, %.critedge.preheader.3 ], [ %.sroa.091.3, %.loopexit.2 ], [ %.sroa.091.3, %.preheader56.preheader.3 ]
  %.sroa.12.1 = phi i32 [ 1, %.critedge.preheader.3 ], [ %.sroa.12.0, %.loopexit.2 ], [ 0, %.preheader56.preheader.3 ]
  %.252.3 = phi i32 [ %83, %.critedge.preheader.3 ], [ %.252.2, %.loopexit.2 ], [ %.252.2, %.preheader56.preheader.3 ]
  %86 = icmp eq i32 %.sroa.15.0, 0
  br i1 %86, label %.preheader56.preheader.4, label %.loopexit.4

.preheader56.preheader.4:                         ; preds = %.loopexit.3
  %87 = icmp sgt i32 %39, %.sroa.091.4
  %88 = icmp sgt i32 %42, %.sroa.18.4
  %or.cond140 = select i1 %87, i1 true, i1 %88
  %89 = icmp sgt i32 %45, %.sroa.33.4
  %or.cond141 = select i1 %or.cond140, i1 true, i1 %89
  br i1 %or.cond141, label %.loopexit.4, label %.critedge.preheader.4

.critedge.preheader.4:                            ; preds = %.preheader56.preheader.4
  %90 = add nsw i32 %38, %.sroa.091.4
  %91 = add nsw i32 %41, %.sroa.18.4
  %92 = add nsw i32 %44, %.sroa.33.4
  %93 = add nsw i32 %.252.3, 1
  %94 = sext i32 %.252.3 to i64
  %95 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %94
  store i32 4, ptr %95, align 4, !tbaa !5
  br label %.loopexit.4

.loopexit.4:                                      ; preds = %.preheader56.preheader.4, %.critedge.preheader.4, %.loopexit.3
  %.sroa.33.5 = phi i32 [ %92, %.critedge.preheader.4 ], [ %.sroa.33.4, %.loopexit.3 ], [ %.sroa.33.4, %.preheader56.preheader.4 ]
  %.sroa.18.5 = phi i32 [ %91, %.critedge.preheader.4 ], [ %.sroa.18.4, %.loopexit.3 ], [ %.sroa.18.4, %.preheader56.preheader.4 ]
  %.sroa.091.5 = phi i32 [ %90, %.critedge.preheader.4 ], [ %.sroa.091.4, %.loopexit.3 ], [ %.sroa.091.4, %.preheader56.preheader.4 ]
  %.sroa.15.1 = phi i32 [ 1, %.critedge.preheader.4 ], [ %.sroa.15.0, %.loopexit.3 ], [ 0, %.preheader56.preheader.4 ]
  %.252.4 = phi i32 [ %93, %.critedge.preheader.4 ], [ %.252.3, %.loopexit.3 ], [ %.252.3, %.preheader56.preheader.4 ]
  %96 = add nuw nsw i32 %.05466, 1
  %exitcond.not = icmp eq i32 %96, 5
  br i1 %exitcond.not, label %.preheader.preheader, label %.preheader57, !llvm.loop !9

.preheader.preheader:                             ; preds = %.loopexit.4
  %97 = icmp ne i32 %.sroa.0.1, 0
  %98 = icmp ne i32 %.sroa.6.1, 0
  %narrow.not132 = and i1 %98, %97
  %99 = icmp ne i32 %.sroa.9.1, 0
  %100 = icmp ne i32 %.sroa.12.1, 0
  %101 = icmp ne i32 %.sroa.15.1, 0
  %.not130 = select i1 %101, i1 %100, i1 false
  %.not128 = select i1 %.not130, i1 %99, i1 false
  %narrow125.not = select i1 %.not128, i1 %narrow.not132, i1 false
  %.str..str.1 = select i1 %narrow125.not, ptr @.str, ptr @.str.1
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str..str.1)
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %104 = load i32, ptr %0, align 16, !tbaa !5
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %104)
  %106 = getelementptr inbounds i8, ptr %0, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %107)
  %109 = getelementptr inbounds i8, ptr %0, i64 8
  %110 = load i32, ptr %109, align 8, !tbaa !5
  %111 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %110)
  %112 = getelementptr inbounds i8, ptr %0, i64 12
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %113)
  %115 = getelementptr inbounds i8, ptr %0, i64 16
  %116 = load i32, ptr %115, align 16, !tbaa !5
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %116)
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %0) #3
  ret i32 0
}

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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