; LLVM IR from JessonYue/LeetCodeLearning :: CoreC (ProcessSched)

; 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.Process = type { i32, i32, i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@process = external dso_local global [5 x %struct.Process], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [5 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [5 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 0, ptr @process, align 16, !tbaa !5
  store i32 9, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 1), align 4, !tbaa !11
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 2), align 8, !tbaa !12
  store i32 3, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 3), align 4, !tbaa !13
  store i32 2, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 4), align 16, !tbaa !14
  store i32 3, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 5), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 6), align 8, !tbaa !16
  store i32 1, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), align 4, !tbaa !5
  store i32 38, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 1), align 4, !tbaa !11
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 2), align 4, !tbaa !12
  store i32 3, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 3), align 4, !tbaa !13
  store i32 -1, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 4), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 5), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 6), align 4, !tbaa !16
  store i32 2, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), align 8, !tbaa !5
  store i32 30, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 1), align 4, !tbaa !11
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 2), align 8, !tbaa !12
  store i32 6, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 3), align 4, !tbaa !13
  store i32 -1, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 4), align 8, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 5), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 6), align 8, !tbaa !16
  store i32 3, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), align 4, !tbaa !5
  store i32 29, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 1), align 4, !tbaa !11
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 2), align 4, !tbaa !12
  store i32 3, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 3), align 4, !tbaa !13
  store i32 -1, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 4), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 5), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 6), align 4, !tbaa !16
  store i32 4, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 1), align 4, !tbaa !11
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 2), align 8, !tbaa !12
  store i32 4, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 3), align 4, !tbaa !13
  %9 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 4), align 16, !tbaa !14
  %10 = sub nsw i32 %9, 1
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 5), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 6), align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #5
  br label %11

11:                                               ; preds = %237, %0
  %12 = load i32, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 3), align 4, !tbaa !13
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %26, label %14

14:                                               ; preds = %11
  %15 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 3), align 4, !tbaa !13
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %26, label %17

17:                                               ; preds = %14
  %18 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 3), align 4, !tbaa !13
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %26, label %20

20:                                               ; preds = %17
  %21 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 3), align 4, !tbaa !13
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %26, label %23

23:                                               ; preds = %20
  %24 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 3), align 4, !tbaa !13
  %25 = icmp ne i32 %24, 0
  br label %26

26:                                               ; preds = %23, %20, %17, %14, %11
  %27 = phi i1 [ true, %20 ], [ true, %17 ], [ true, %14 ], [ true, %11 ], [ %25, %23 ]
  br i1 %27, label %28, label %238

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !17
  br label %29

29:                                               ; preds = %234, %28
  %30 = load i32, ptr %4, align 4, !tbaa !17
  %31 = icmp slt i32 %30, 5
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %237

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 20, ptr %6) #5
  %34 = load i32, ptr getelementptr inbounds (%struct.Process, ptr @process, i32 0, i32 1), align 4, !tbaa !11
  store i32 %34, ptr %6, align 4, !tbaa !17
  %35 = getelementptr inbounds i32, ptr %6, i64 1
  %36 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 1), i32 0, i32 1), align 4, !tbaa !11
  store i32 %36, ptr %35, align 4, !tbaa !17
  %37 = getelementptr inbounds i32, ptr %6, i64 2
  %38 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 2), i32 0, i32 1), align 4, !tbaa !11
  store i32 %38, ptr %37, align 4, !tbaa !17
  %39 = getelementptr inbounds i32, ptr %6, i64 3
  %40 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 3), i32 0, i32 1), align 4, !tbaa !11
  store i32 %40, ptr %39, align 4, !tbaa !17
  %41 = getelementptr inbounds i32, ptr %6, i64 4
  %42 = load i32, ptr getelementptr inbounds (%struct.Process, ptr getelementptr inbounds ([5 x %struct.Process], ptr @process, i64 0, i64 4), i32 0, i32 1), align 4, !tbaa !11
  store i32 %42, ptr %41, align 4, !tbaa !17
  %43 = load i32, ptr %4, align 4, !tbaa !17
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %44
  %46 = getelementptr inbounds %struct.Process, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %46, align 4, !tbaa !16
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %233

49:                                               ; preds = %33
  %50 = load i32, ptr %4, align 4, !tbaa !17
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.Process, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
  %56 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
  %57 = getelementptr inbounds i32, ptr %56, i64 5
  %58 = call noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef %55, ptr noundef %57)
  %59 = load i32, ptr %58, align 4, !tbaa !17
  %60 = icmp eq i32 %54, %59
  br i1 %60, label %61, label %233

61:                                               ; preds = %49
  %62 = load i32, ptr %2, align 4, !tbaa !17
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %2, align 4, !tbaa !17
  %64 = load i32, ptr %4, align 4, !tbaa !17
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %65
  %67 = getelementptr inbounds %struct.Process, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = sub nsw i32 %68, 3
  store i32 %69, ptr %67, align 4, !tbaa !11
  %70 = load i32, ptr %4, align 4, !tbaa !17
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %71
  %73 = getelementptr inbounds %struct.Process, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 4, !tbaa !12
  %76 = load i32, ptr %4, align 4, !tbaa !17
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.Process, ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !13
  %81 = sub nsw i32 %80, 1
  store i32 %81, ptr %79, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %82

82:                                               ; preds = %113, %61
  %83 = load i32, ptr %7, align 4, !tbaa !17
  %84 = icmp slt i32 %83, 5
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %116

86:                                               ; preds = %82
  %87 = load i32, ptr %7, align 4, !tbaa !17
  %88 = load i32, ptr %4, align 4, !tbaa !17
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %86
  br label %113

91:                                               ; preds = %86
  %92 = load i32, ptr %7, align 4, !tbaa !17
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %93
  %95 = getelementptr inbounds %struct.Process, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %112

98:                                               ; preds = %91
  %99 = load i32, ptr %7, align 4, !tbaa !17
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.Process, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %102, align 4, !tbaa !16
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %112

105:                                              ; preds = %98
  %106 = load i32, ptr %7, align 4, !tbaa !17
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.Process, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %109, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %105, %98, %91
  br label %113

113:                                              ; preds = %112, %90
  %114 = load i32, ptr %7, align 4, !tbaa !17
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %7, align 4, !tbaa !17
  br label %82, !llvm.loop !18

116:                                              ; preds = %85
  %117 = load i32, ptr %4, align 4, !tbaa !17
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %118
  %120 = getelementptr inbounds %struct.Process, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !13
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %132

123:                                              ; preds = %116
  %124 = load i32, ptr %4, align 4, !tbaa !17
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %125
  %127 = getelementptr inbounds %struct.Process, ptr %126, i32 0, i32 6
  store i32 2, ptr %127, align 4, !tbaa !16
  %128 = load i32, ptr %4, align 4, !tbaa !17
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.Process, ptr %130, i32 0, i32 1
  store i32 -1, ptr %131, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %123, %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !17
  br label %133

133:                                              ; preds = %179, %132
  %134 = load i32, ptr %8, align 4, !tbaa !17
  %135 = icmp slt i32 %134, 5
  br i1 %135, label %137, label %136

136:                                              ; preds = %133
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %182

137:                                              ; preds = %133
  %138 = load i32, ptr %8, align 4, !tbaa !17
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %139
  %141 = getelementptr inbounds %struct.Process, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %141, align 4, !tbaa !16
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %144, label %178

144:                                              ; preds = %137
  %145 = load i32, ptr %8, align 4, !tbaa !17
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.Process, ptr %147, i32 0, i32 5
  %149 = load i32, ptr %148, align 4, !tbaa !15
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %151, label %178

151:                                              ; preds = %144
  %152 = load i32, ptr %8, align 4, !tbaa !17
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %153
  %155 = getelementptr inbounds %struct.Process, ptr %154, i32 0, i32 5
  %156 = load i32, ptr %155, align 4, !tbaa !15
  %157 = sub nsw i32 %156, 1
  store i32 %157, ptr %155, align 4, !tbaa !15
  %158 = load i32, ptr %8, align 4, !tbaa !17
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %159
  %161 = getelementptr inbounds %struct.Process, ptr %160, i32 0, i32 5
  %162 = load i32, ptr %161, align 4, !tbaa !15
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %177

164:                                              ; preds = %151
  %165 = load i32, ptr %8, align 4, !tbaa !17
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %166
  %168 = getelementptr inbounds %struct.Process, ptr %167, i32 0, i32 6
  store i32 0, ptr %168, align 4, !tbaa !16
  %169 = load i32, ptr %8, align 4, !tbaa !17
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !17
  %173 = load i32, ptr %8, align 4, !tbaa !17
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %174
  %176 = getelementptr inbounds %struct.Process, ptr %175, i32 0, i32 1
  store i32 %172, ptr %176, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %164, %151
  br label %178

178:                                              ; preds = %177, %144, %137
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %8, align 4, !tbaa !17
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %8, align 4, !tbaa !17
  br label %133, !llvm.loop !20

182:                                              ; preds = %136
  %183 = load i32, ptr %4, align 4, !tbaa !17
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %184
  %186 = getelementptr inbounds %struct.Process, ptr %185, i32 0, i32 4
  %187 = load i32, ptr %186, align 4, !tbaa !14
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %189, label %220

189:                                              ; preds = %182
  %190 = load i32, ptr %4, align 4, !tbaa !17
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %191
  %193 = getelementptr inbounds %struct.Process, ptr %192, i32 0, i32 4
  %194 = load i32, ptr %193, align 4, !tbaa !14
  %195 = sub nsw i32 %194, 1
  store i32 %195, ptr %193, align 4, !tbaa !14
  %196 = load i32, ptr %4, align 4, !tbaa !17
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %197
  %199 = getelementptr inbounds %struct.Process, ptr %198, i32 0, i32 4
  %200 = load i32, ptr %199, align 4, !tbaa !14
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %219

202:                                              ; preds = %189
  %203 = load i32, ptr %4, align 4, !tbaa !17
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %204
  %206 = getelementptr inbounds %struct.Process, ptr %205, i32 0, i32 6
  store i32 1, ptr %206, align 4, !tbaa !16
  %207 = load i32, ptr %4, align 4, !tbaa !17
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %208
  %210 = getelementptr inbounds %struct.Process, ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !11
  %212 = load i32, ptr %4, align 4, !tbaa !17
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %213
  store i32 %211, ptr %214, align 4, !tbaa !17
  %215 = load i32, ptr %4, align 4, !tbaa !17
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %216
  %218 = getelementptr inbounds %struct.Process, ptr %217, i32 0, i32 1
  store i32 -1, ptr %218, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %202, %189
  br label %220

220:                                              ; preds = %219, %182
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %222 = load i32, ptr %2, align 4, !tbaa !17
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %221, i32 noundef %222)
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %226 = load i32, ptr %4, align 4, !tbaa !17
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %227
  %229 = getelementptr inbounds %struct.Process, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %225, i32 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_Z5printv()
  br label %233

233:                                              ; preds = %220, %49, %33
  call void @llvm.lifetime.end.p0(i64 20, ptr %6) #5
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %4, align 4, !tbaa !17
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %4, align 4, !tbaa !17
  br label %29, !llvm.loop !21

237:                                              ; preds = %32
  br label %11, !llvm.loop !22

238:                                              ; preds = %26
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %239 = load i32, ptr %1, align 4
  ret i32 %239
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printv() #4

attributes #0 = { mustprogress norecurse 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 = { inlinehint 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 = { "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 #4 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTS7Process", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS5State", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 20}
!16 = !{!6, !10, i64 24}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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

%struct.Process = type { i32, i32, i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@process = external dso_local local_unnamed_addr global [5 x %struct.Process], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.critedge.preheader.lr.ph:
  %0 = alloca [5 x i32], align 16
  %1 = alloca [5 x i32], align 16
  store <4 x i32> <i32 0, i32 9, i32 0, i32 3>, ptr @process, align 16, !tbaa !5
  store <4 x i32> <i32 2, i32 3, i32 0, i32 1>, ptr getelementptr inbounds (i8, ptr @process, i64 16), align 16, !tbaa !9
  store <4 x i32> <i32 38, i32 0, i32 3, i32 -1>, ptr getelementptr inbounds (i8, ptr @process, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 0, i32 0, i32 2, i32 30>, ptr getelementptr inbounds (i8, ptr @process, i64 48), align 16, !tbaa !9
  store <4 x i32> <i32 0, i32 6, i32 -1, i32 0>, ptr getelementptr inbounds (i8, ptr @process, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 0, i32 3, i32 29, i32 0>, ptr getelementptr inbounds (i8, ptr @process, i64 80), align 16, !tbaa !9
  store <4 x i32> <i32 3, i32 -1, i32 0, i32 0>, ptr getelementptr inbounds (i8, ptr @process, i64 96), align 16, !tbaa !9
  store <4 x i32> <i32 4, i32 0, i32 0, i32 4>, ptr getelementptr inbounds (i8, ptr @process, i64 112), align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 132), align 4, !tbaa !10
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 136), align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %0) #5
  %2 = getelementptr inbounds i8, ptr %1, i64 4
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = getelementptr inbounds i8, ptr %1, i64 12
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = getelementptr inbounds i8, ptr %1, i64 20
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  br label %.critedge.preheader

.loopexit:                                        ; preds = %.critedge
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 12), align 4, !tbaa !14
  %12 = icmp ne i32 %11, 0
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 40), align 8
  %14 = icmp ne i32 %13, 0
  %or.cond = select i1 %12, i1 true, i1 %14
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 68), align 4
  %16 = icmp ne i32 %15, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %16
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 96), align 16
  %18 = icmp ne i32 %17, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %18
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 124), align 4
  %20 = icmp ne i32 %19, 0
  %or.cond7 = select i1 %or.cond5, i1 true, i1 %20
  br i1 %or.cond7, label %.critedge.preheader.backedge, label %._crit_edge

.critedge.preheader:                              ; preds = %.critedge.preheader.backedge, %.critedge.preheader.lr.ph
  %indvars.iv = phi i64 [ 0, %.critedge.preheader.lr.ph ], [ %indvars.iv.be, %.critedge.preheader.backedge ]
  %.151 = phi i32 [ 0, %.critedge.preheader.lr.ph ], [ %.2, %.critedge.preheader.backedge ]
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %1) #5
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 4), align 4, !tbaa !15
  store i32 %21, ptr %1, align 16, !tbaa !5
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 32), align 16, !tbaa !15
  store i32 %22, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 60), align 4, !tbaa !15
  store i32 %23, ptr %3, align 8, !tbaa !5
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 88), align 8, !tbaa !15
  store i32 %24, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 116), align 4, !tbaa !15
  store i32 %25, ptr %5, align 16, !tbaa !5
  %26 = getelementptr inbounds [5 x %struct.Process], ptr @process, i64 0, i64 %indvars.iv
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %.critedge.preheader
  %31 = getelementptr inbounds i8, ptr %26, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !15
  %33 = call noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef nonnull %1, ptr noundef nonnull %6)
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp eq i32 %32, %34
  br i1 %35, label %36, label %.critedge

36:                                               ; preds = %30
  %37 = load <2 x i32>, ptr %31, align 4, !tbaa !5
  %38 = add nsw <2 x i32> %37, <i32 -3, i32 1>
  store <2 x i32> %38, ptr %31, align 4, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %26, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %39, align 4, !tbaa !14
  %42 = icmp eq i64 %indvars.iv, 0
  br i1 %42, label %.thread, label %43

43:                                               ; preds = %36
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 12), align 4, !tbaa !14
  %45 = icmp sgt i32 %44, 0
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 24), align 8
  %47 = icmp eq i32 %46, 0
  %or.cond65 = select i1 %45, i1 %47, i1 false
  br i1 %or.cond65, label %48, label %51

48:                                               ; preds = %43
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 4), align 4, !tbaa !15
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr getelementptr inbounds (i8, ptr @process, i64 4), align 4, !tbaa !15
  br label %51

51:                                               ; preds = %43, %48
  %52 = icmp eq i64 %indvars.iv, 1
  br i1 %52, label %.thread61, label %.thread

.thread:                                          ; preds = %36, %51
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 40), align 8, !tbaa !14
  %54 = icmp sgt i32 %53, 0
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 52), align 4
  %56 = icmp eq i32 %55, 0
  %or.cond67 = select i1 %54, i1 %56, i1 false
  br i1 %or.cond67, label %57, label %60

57:                                               ; preds = %.thread
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 32), align 16, !tbaa !15
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr getelementptr inbounds (i8, ptr @process, i64 32), align 16, !tbaa !15
  br label %60

60:                                               ; preds = %57, %.thread
  %61 = icmp eq i64 %indvars.iv, 2
  br i1 %61, label %.thread62, label %.thread61

.thread61:                                        ; preds = %51, %60
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 68), align 4, !tbaa !14
  %63 = icmp sgt i32 %62, 0
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 80), align 16
  %65 = icmp eq i32 %64, 0
  %or.cond69 = select i1 %63, i1 %65, i1 false
  br i1 %or.cond69, label %66, label %69

66:                                               ; preds = %.thread61
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 60), align 4, !tbaa !15
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr getelementptr inbounds (i8, ptr @process, i64 60), align 4, !tbaa !15
  br label %69

69:                                               ; preds = %66, %.thread61
  %70 = icmp eq i64 %indvars.iv, 3
  br i1 %70, label %.thread63, label %.thread62

.thread62:                                        ; preds = %60, %69
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 96), align 16, !tbaa !14
  %72 = icmp sgt i32 %71, 0
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 108), align 4
  %74 = icmp eq i32 %73, 0
  %or.cond71 = select i1 %72, i1 %74, i1 false
  br i1 %or.cond71, label %75, label %78

75:                                               ; preds = %.thread62
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 88), align 8, !tbaa !15
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr getelementptr inbounds (i8, ptr @process, i64 88), align 8, !tbaa !15
  br label %78

78:                                               ; preds = %75, %.thread62
  %79 = icmp ne i64 %indvars.iv, 4
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 124), align 4
  %81 = icmp sgt i32 %80, 0
  %or.cond73 = select i1 %79, i1 %81, i1 false
  br i1 %or.cond73, label %82, label %88

.thread63:                                        ; preds = %69
  %.old = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 124), align 4, !tbaa !14
  %.old72 = icmp sgt i32 %.old, 0
  br i1 %.old72, label %82, label %88

82:                                               ; preds = %78, %.thread63
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 136), align 8, !tbaa !13
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %82
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 116), align 4, !tbaa !15
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr getelementptr inbounds (i8, ptr @process, i64 116), align 4, !tbaa !15
  br label %88

88:                                               ; preds = %85, %82, %.thread63, %78
  %89 = add nsw i32 %.151, 1
  %90 = icmp eq i32 %41, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  store i32 2, ptr %27, align 4, !tbaa !13
  store i32 -1, ptr %31, align 4, !tbaa !15
  br label %92

92:                                               ; preds = %91, %88
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 24), align 8, !tbaa !13
  %94 = icmp eq i32 %93, 1
  br i1 %94, label %95, label %103

95:                                               ; preds = %92
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 20), align 4, !tbaa !10
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %95
  %99 = add nsw i32 %96, -1
  store i32 %99, ptr getelementptr inbounds (i8, ptr @process, i64 20), align 4, !tbaa !10
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 24), align 8, !tbaa !13
  %102 = load i32, ptr %0, align 16, !tbaa !5
  store i32 %102, ptr getelementptr inbounds (i8, ptr @process, i64 4), align 4, !tbaa !15
  br label %103

103:                                              ; preds = %92, %95, %101, %98
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 52), align 4, !tbaa !13
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %114

106:                                              ; preds = %103
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 48), align 16, !tbaa !10
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %106
  %110 = add nsw i32 %107, -1
  store i32 %110, ptr getelementptr inbounds (i8, ptr @process, i64 48), align 16, !tbaa !10
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 52), align 4, !tbaa !13
  %113 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %113, ptr getelementptr inbounds (i8, ptr @process, i64 32), align 16, !tbaa !15
  br label %114

114:                                              ; preds = %112, %109, %106, %103
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 80), align 16, !tbaa !13
  %116 = icmp eq i32 %115, 1
  br i1 %116, label %117, label %125

117:                                              ; preds = %114
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 76), align 4, !tbaa !10
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %120, label %125

120:                                              ; preds = %117
  %121 = add nsw i32 %118, -1
  store i32 %121, ptr getelementptr inbounds (i8, ptr @process, i64 76), align 4, !tbaa !10
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 80), align 16, !tbaa !13
  %124 = load i32, ptr %8, align 8, !tbaa !5
  store i32 %124, ptr getelementptr inbounds (i8, ptr @process, i64 60), align 4, !tbaa !15
  br label %125

125:                                              ; preds = %123, %120, %117, %114
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 108), align 4, !tbaa !13
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %136

128:                                              ; preds = %125
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 104), align 8, !tbaa !10
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  %132 = add nsw i32 %129, -1
  store i32 %132, ptr getelementptr inbounds (i8, ptr @process, i64 104), align 8, !tbaa !10
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 108), align 4, !tbaa !13
  %135 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %135, ptr getelementptr inbounds (i8, ptr @process, i64 88), align 8, !tbaa !15
  br label %136

136:                                              ; preds = %134, %131, %128, %125
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 136), align 8, !tbaa !13
  %138 = icmp eq i32 %137, 1
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @process, i64 132), align 4, !tbaa !10
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %142, label %147

142:                                              ; preds = %139
  %143 = add nsw i32 %140, -1
  store i32 %143, ptr getelementptr inbounds (i8, ptr @process, i64 132), align 4, !tbaa !10
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %147

145:                                              ; preds = %142
  store i32 0, ptr getelementptr inbounds (i8, ptr @process, i64 136), align 8, !tbaa !13
  %146 = load i32, ptr %10, align 16, !tbaa !5
  store i32 %146, ptr getelementptr inbounds (i8, ptr @process, i64 116), align 4, !tbaa !15
  br label %147

147:                                              ; preds = %145, %142, %139, %136
  %148 = getelementptr inbounds i8, ptr %26, i64 16
  %149 = load i32, ptr %148, align 4, !tbaa !16
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %151, label %157

151:                                              ; preds = %147
  %152 = add nsw i32 %149, -1
  store i32 %152, ptr %148, align 4, !tbaa !16
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %157

154:                                              ; preds = %151
  store i32 1, ptr %27, align 4, !tbaa !13
  %155 = load i32, ptr %31, align 4, !tbaa !15
  %156 = getelementptr inbounds [5 x i32], ptr %0, i64 0, i64 %indvars.iv
  store i32 %155, ptr %156, align 4, !tbaa !5
  store i32 -1, ptr %31, align 4, !tbaa !15
  br label %157

157:                                              ; preds = %151, %154, %147
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef %89)
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %162 = load i32, ptr %26, align 4, !tbaa !17
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %161, i32 noundef %162)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_Z5printv()
  br label %.critedge

.critedge:                                        ; preds = %157, %30, %.critedge.preheader
  %.2 = phi i32 [ %89, %157 ], [ %.151, %30 ], [ %.151, %.critedge.preheader ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %1) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 5
  br i1 %exitcond.not, label %.loopexit, label %.critedge.preheader.backedge

.critedge.preheader.backedge:                     ; preds = %.critedge, %.loopexit
  %indvars.iv.be = phi i64 [ %indvars.iv.next, %.critedge ], [ 0, %.loopexit ]
  br label %.critedge.preheader, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %0) #5
  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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11max_elementIPiET_S1_S1_(ptr noundef, ptr noundef) 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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5printv() local_unnamed_addr #4

attributes #0 = { mustprogress norecurse 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 = { inlinehint 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 = { "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 #4 = { 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 #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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 20}
!11 = !{!"_ZTS7Process", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !12, i64 24}
!12 = !{!"_ZTS5State", !7, i64 0}
!13 = !{!11, !12, i64 24}
!14 = !{!11, !6, i64 12}
!15 = !{!11, !6, i64 4}
!16 = !{!11, !6, i64 16}
!17 = !{!11, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass