; LLVM IR from VAR-solutions/Algorithms :: Scheduling (sjf)

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

%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 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 ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = call ptr @llvm.stacksave.p0()
  store ptr %26, ptr %3, align 8
  %27 = alloca i32, i64 %25, align 16
  store i64 %25, ptr %4, align 8
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = alloca i32, i64 %29, align 16
  store i64 %29, ptr %5, align 8
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = alloca i32, i64 %32, align 16
  store i64 %32, ptr %6, align 8
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = alloca i32, i64 %35, align 16
  store i64 %35, ptr %7, align 8
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = alloca i32, i64 %38, align 16
  store i64 %38, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %58, %0
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %61

45:                                               ; preds = %40
  %46 = load i32, ptr %11, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %27, i64 %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %30, i64 %51
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %33, i64 %55
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) %56)
  br label %58

58:                                               ; preds = %45
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %11, align 4, !tbaa !5
  br label %40, !llvm.loop !9

61:                                               ; preds = %44
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = alloca i32, i64 %63, align 16
  store i64 %63, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %78, %61
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %81

70:                                               ; preds = %65
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %33, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %64, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %70
  %79 = load i32, ptr %13, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !5
  br label %65, !llvm.loop !11

81:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 2147483647, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 0, ptr %19, align 1, !tbaa !12
  br label %82

82:                                               ; preds = %178, %127, %81
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = icmp ne i32 %83, %84
  br i1 %85, label %86, label %181

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %119, %86
  %88 = load i32, ptr %20, align 4, !tbaa !5
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %122

92:                                               ; preds = %87
  %93 = load i32, ptr %20, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %30, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %99, label %118

99:                                               ; preds = %92
  %100 = load i32, ptr %20, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %64, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %16, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %106, label %118

106:                                              ; preds = %99
  %107 = load i32, ptr %20, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %64, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %106
  %113 = load i32, ptr %20, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %64, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %16, align 4, !tbaa !5
  %117 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %117, ptr %17, align 4, !tbaa !5
  store i8 1, ptr %19, align 1, !tbaa !12
  br label %118

118:                                              ; preds = %112, %106, %99, %92
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %20, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %20, align 4, !tbaa !5
  br label %87, !llvm.loop !14

122:                                              ; preds = %91
  %123 = load i8, ptr %19, align 1, !tbaa !12, !range !15, !noundef !16
  %124 = trunc i8 %123 to i1
  %125 = zext i1 %124 to i32
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %122
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  br label %82, !llvm.loop !17

130:                                              ; preds = %122
  %131 = load i32, ptr %17, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %64, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = add nsw i32 %134, -1
  store i32 %135, ptr %133, align 4, !tbaa !5
  %136 = load i32, ptr %17, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %64, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  store i32 %139, ptr %16, align 4, !tbaa !5
  %140 = load i32, ptr %16, align 4, !tbaa !5
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %130
  store i32 2147483647, ptr %16, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %142, %130
  %144 = load i32, ptr %17, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %64, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %178

149:                                              ; preds = %143
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %14, align 4, !tbaa !5
  store i8 0, ptr %19, align 1, !tbaa !12
  %152 = load i32, ptr %15, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %18, align 4, !tbaa !5
  %154 = load i32, ptr %18, align 4, !tbaa !5
  %155 = load i32, ptr %17, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %33, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = sub nsw i32 %154, %158
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %30, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sub nsw i32 %159, %163
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %36, i64 %166
  store i32 %164, ptr %167, align 4, !tbaa !5
  %168 = load i32, ptr %17, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %36, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = icmp slt i32 %171, 0
  br i1 %172, label %173, label %177

173:                                              ; preds = %149
  %174 = load i32, ptr %17, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %36, i64 %175
  store i32 0, ptr %176, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %173, %149
  br label %178

178:                                              ; preds = %177, %143
  %179 = load i32, ptr %15, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %15, align 4, !tbaa !5
  br label %82, !llvm.loop !17

181:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %200, %181
  %183 = load i32, ptr %21, align 4, !tbaa !5
  %184 = load i32, ptr %2, align 4, !tbaa !5
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %203

187:                                              ; preds = %182
  %188 = load i32, ptr %21, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %33, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr %21, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %36, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = add nsw i32 %191, %195
  %197 = load i32, ptr %21, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %39, i64 %198
  store i32 %196, ptr %199, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %187
  %201 = load i32, ptr %21, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %21, align 4, !tbaa !5
  br label %182, !llvm.loop !18

203:                                              ; preds = %186
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @.str.1)
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @.str.2)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %251, %203
  %209 = load i32, ptr %22, align 4, !tbaa !5
  %210 = load i32, ptr %2, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %254

213:                                              ; preds = %208
  %214 = load i32, ptr %9, align 4, !tbaa !5
  %215 = load i32, ptr %22, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %36, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = add nsw i32 %214, %218
  store i32 %219, ptr %9, align 4, !tbaa !5
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = load i32, ptr %22, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds i32, ptr %39, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = add nsw i32 %220, %224
  store i32 %225, ptr %10, align 4, !tbaa !5
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %227 = load i32, ptr %22, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds i32, ptr %27, i64 %228
  %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) %226, i32 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.5)
  %233 = load i32, ptr %22, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds i32, ptr %33, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %232, i32 noundef %236)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef @.str.6)
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i32, ptr %36, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %238, i32 noundef %242)
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef @.str.6)
  %245 = load i32, ptr %22, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %39, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %244, i32 noundef %248)
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %251

251:                                              ; preds = %213
  %252 = load i32, ptr %22, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %22, align 4, !tbaa !5
  br label %208, !llvm.loop !19

254:                                              ; preds = %212
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %256 = load i32, ptr %9, align 4, !tbaa !5
  %257 = sitofp i32 %256 to float
  %258 = load i32, ptr %2, align 4, !tbaa !5
  %259 = sitofp i32 %258 to float
  %260 = fdiv float %257, %259
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %255, float noundef %260)
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %263 = load i32, ptr %10, align 4, !tbaa !5
  %264 = sitofp i32 %263 to float
  %265 = load i32, ptr %2, align 4, !tbaa !5
  %266 = sitofp i32 %265 to float
  %267 = fdiv float %264, %266
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %262, float noundef %267)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %269 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %269)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %270 = load i32, ptr %1, align 4
  ret i32 %270
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; 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) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { 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 #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !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"

%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = zext i32 %3 to i64
  %5 = call ptr @llvm.stacksave.p0()
  %6 = alloca i32, i64 %4, align 16
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = alloca i32, i64 %8, align 16
  %10 = alloca i32, i64 %8, align 16
  %11 = alloca i32, i64 %8, align 16
  %12 = alloca i32, i64 %8, align 16
  %13 = icmp sgt i32 %7, 0
  br i1 %13, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  %14 = alloca i32, i64 %8, align 16
  br label %.preheader75

._crit_edge:                                      ; preds = %.lr.ph
  %.pre = zext i32 %24 to i64
  %15 = alloca i32, i64 %.pre, align 16
  %16 = icmp sgt i32 %24, 0
  br i1 %16, label %.preheader75.thread, label %.preheader75

.preheader75.thread:                              ; preds = %._crit_edge
  %17 = shl nuw nsw i64 %.pre, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %15, ptr nonnull align 16 %10, i64 %17, i1 false), !tbaa !5
  br label %.preheader74.lr.ph.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %18 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %20 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader75:                                     ; preds = %._crit_edge.thread, %._crit_edge
  %27 = phi ptr [ %14, %._crit_edge.thread ], [ %15, %._crit_edge ]
  %.lcssa152 = phi i32 [ %7, %._crit_edge.thread ], [ %24, %._crit_edge ]
  %.pre-phi151 = phi i64 [ %8, %._crit_edge.thread ], [ %.pre, %._crit_edge ]
  %.not105 = icmp eq i32 %.lcssa152, 0
  br i1 %.not105, label %._crit_edge114, label %.preheader74.lr.ph.lr.ph

.preheader74.lr.ph.lr.ph:                         ; preds = %.preheader75.thread, %.preheader75
  %.pre-phi151157 = phi i64 [ %.pre, %.preheader75.thread ], [ %.pre-phi151, %.preheader75 ]
  %.lcssa152156 = phi i32 [ %24, %.preheader75.thread ], [ %.lcssa152, %.preheader75 ]
  %28 = phi ptr [ %15, %.preheader75.thread ], [ %27, %.preheader75 ]
  %29 = phi i1 [ true, %.preheader75.thread ], [ false, %.preheader75 ]
  %xtraiter = and i64 %.pre-phi151157, 1
  %30 = icmp eq i64 %.pre-phi151157, 1
  %unroll_iter = and i64 %.pre-phi151157, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader74.lr.ph

.preheader:                                       ; preds = %.outer
  br i1 %29, label %.lr.ph113.preheader, label %._crit_edge114

.lr.ph113.preheader:                              ; preds = %.preheader
  %min.iters.check = icmp ult i64 %.pre-phi151157, 8
  br i1 %min.iters.check, label %.lr.ph113.preheader170, label %vector.ph

.lr.ph113.preheader170:                           ; preds = %middle.block, %.lr.ph113.preheader
  %indvars.iv139.ph = phi i64 [ 0, %.lr.ph113.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph113

vector.ph:                                        ; preds = %.lr.ph113.preheader
  %n.vec = and i64 %.pre-phi151157, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %31 = getelementptr inbounds i32, ptr %10, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load = load <4 x i32>, ptr %31, align 16, !tbaa !5
  %wide.load166 = load <4 x i32>, ptr %32, align 16, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %11, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load167 = load <4 x i32>, ptr %33, align 16, !tbaa !5
  %wide.load168 = load <4 x i32>, ptr %34, align 16, !tbaa !5
  %35 = add nsw <4 x i32> %wide.load167, %wide.load
  %36 = add nsw <4 x i32> %wide.load168, %wide.load166
  %37 = getelementptr inbounds i32, ptr %12, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <4 x i32> %35, ptr %37, align 16, !tbaa !5
  store <4 x i32> %36, ptr %38, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %39 = icmp eq i64 %index.next, %n.vec
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.pre-phi151157, %n.vec
  br i1 %cmp.n, label %._crit_edge114, label %.lr.ph113.preheader170

.split.us:                                        ; preds = %._crit_edge86.us, %.preheader74.lr.ph.split
  %.us-phi = phi i32 [ %.061.ph107, %.preheader74.lr.ph.split ], [ %.06190.us, %._crit_edge86.us ]
  %.us-phi94 = phi i32 [ %.055.ph109, %.preheader74.lr.ph.split ], [ %.257.us.lcssa, %._crit_edge86.us ]
  %.us-phi95 = phi i8 [ %.054.ph110, %.preheader74.lr.ph.split ], [ %.2.us.lcssa, %._crit_edge86.us ]
  %40 = sext i32 %.us-phi94 to i64
  %41 = getelementptr inbounds i32, ptr %28, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr %41, align 4, !tbaa !5
  %44 = icmp eq i32 %43, 0
  %spec.store.select = select i1 %44, i32 2147483647, i32 %43
  br i1 %44, label %45, label %.split.us..outer_crit_edge

.split.us..outer_crit_edge:                       ; preds = %.split.us
  %.pre147 = add nsw i32 %.us-phi, 1
  br label %.outer

45:                                               ; preds = %.split.us
  %46 = add nsw i32 %.062.ph106, 1
  %47 = getelementptr inbounds i32, ptr %10, i64 %40
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %9, i64 %40
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.neg73 = add i32 %.us-phi, 1
  %51 = add i32 %48, %50
  %52 = sub i32 %.neg73, %51
  %53 = getelementptr inbounds i32, ptr %11, i64 %40
  %spec.store.select71 = call i32 @llvm.smax.i32(i32 %52, i32 0)
  store i32 %spec.store.select71, ptr %53, align 4
  br label %.outer

.outer:                                           ; preds = %.split.us..outer_crit_edge, %45
  %.pre-phi148 = phi i32 [ %.pre147, %.split.us..outer_crit_edge ], [ %.neg73, %45 ]
  %.163 = phi i32 [ %.062.ph106, %.split.us..outer_crit_edge ], [ %46, %45 ]
  %.3 = phi i8 [ %.us-phi95, %.split.us..outer_crit_edge ], [ 0, %45 ]
  %.not = icmp eq i32 %.163, %.lcssa152156
  br i1 %.not, label %.preheader, label %.preheader74.lr.ph, !llvm.loop !14

.preheader74.lr.ph:                               ; preds = %.preheader74.lr.ph.lr.ph, %.outer
  %.054.ph110 = phi i8 [ 0, %.preheader74.lr.ph.lr.ph ], [ %.3, %.outer ]
  %.055.ph109 = phi i32 [ 0, %.preheader74.lr.ph.lr.ph ], [ %.us-phi94, %.outer ]
  %.058.ph108 = phi i32 [ 2147483647, %.preheader74.lr.ph.lr.ph ], [ %spec.store.select, %.outer ]
  %.061.ph107 = phi i32 [ 0, %.preheader74.lr.ph.lr.ph ], [ %.pre-phi148, %.outer ]
  %.062.ph106 = phi i32 [ 0, %.preheader74.lr.ph.lr.ph ], [ %.163, %.outer ]
  br i1 %29, label %.preheader74.us, label %.preheader74.lr.ph.split

.preheader74.us:                                  ; preds = %.preheader74.lr.ph, %._crit_edge86.us
  %.05493.us = phi i8 [ %.2.us.lcssa, %._crit_edge86.us ], [ %.054.ph110, %.preheader74.lr.ph ]
  %.05592.us = phi i32 [ %.257.us.lcssa, %._crit_edge86.us ], [ %.055.ph109, %.preheader74.lr.ph ]
  %.05891.us = phi i32 [ %.260.us.lcssa, %._crit_edge86.us ], [ %.058.ph108, %.preheader74.lr.ph ]
  %.06190.us = phi i32 [ %85, %._crit_edge86.us ], [ %.061.ph107, %.preheader74.lr.ph ]
  br i1 %30, label %._crit_edge86.us.unr-lcssa, label %.preheader74.us.new

.preheader74.us.new:                              ; preds = %.preheader74.us, %73
  %indvars.iv133 = phi i64 [ %indvars.iv.next134.1, %73 ], [ 0, %.preheader74.us ]
  %.183.us = phi i8 [ %.2.us.1, %73 ], [ %.05493.us, %.preheader74.us ]
  %.15682.us = phi i32 [ %.257.us.1, %73 ], [ %.05592.us, %.preheader74.us ]
  %.15981.us = phi i32 [ %.260.us.1, %73 ], [ %.05891.us, %.preheader74.us ]
  %niter = phi i64 [ %niter.next.1, %73 ], [ 0, %.preheader74.us ]
  %54 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv133
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %.not70.us = icmp sgt i32 %55, %.06190.us
  br i1 %.not70.us, label %63, label %56

56:                                               ; preds = %.preheader74.us.new
  %57 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv133
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp slt i32 %58, %.15981.us
  %60 = icmp sgt i32 %58, 0
  %or.cond.us = and i1 %59, %60
  br i1 %or.cond.us, label %61, label %63

61:                                               ; preds = %56
  %62 = trunc nuw nsw i64 %indvars.iv133 to i32
  br label %63

63:                                               ; preds = %61, %56, %.preheader74.us.new
  %.260.us = phi i32 [ %58, %61 ], [ %.15981.us, %56 ], [ %.15981.us, %.preheader74.us.new ]
  %.257.us = phi i32 [ %62, %61 ], [ %.15682.us, %56 ], [ %.15682.us, %.preheader74.us.new ]
  %.2.us = phi i8 [ 1, %61 ], [ %.183.us, %56 ], [ %.183.us, %.preheader74.us.new ]
  %indvars.iv.next134 = or disjoint i64 %indvars.iv133, 1
  %64 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next134
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %.not70.us.1 = icmp sgt i32 %65, %.06190.us
  br i1 %.not70.us.1, label %73, label %66

66:                                               ; preds = %63
  %67 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next134
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp slt i32 %68, %.260.us
  %70 = icmp sgt i32 %68, 0
  %or.cond.us.1 = and i1 %69, %70
  br i1 %or.cond.us.1, label %71, label %73

71:                                               ; preds = %66
  %72 = trunc nuw nsw i64 %indvars.iv.next134 to i32
  br label %73

73:                                               ; preds = %71, %66, %63
  %.260.us.1 = phi i32 [ %68, %71 ], [ %.260.us, %66 ], [ %.260.us, %63 ]
  %.257.us.1 = phi i32 [ %72, %71 ], [ %.257.us, %66 ], [ %.257.us, %63 ]
  %.2.us.1 = phi i8 [ 1, %71 ], [ %.2.us, %66 ], [ %.2.us, %63 ]
  %indvars.iv.next134.1 = add nuw nsw i64 %indvars.iv133, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge86.us.unr-lcssa, label %.preheader74.us.new, !llvm.loop !15

._crit_edge86.us.unr-lcssa:                       ; preds = %73, %.preheader74.us
  %.260.us.lcssa.ph = phi i32 [ poison, %.preheader74.us ], [ %.260.us.1, %73 ]
  %.257.us.lcssa.ph = phi i32 [ poison, %.preheader74.us ], [ %.257.us.1, %73 ]
  %.2.us.lcssa.ph = phi i8 [ poison, %.preheader74.us ], [ %.2.us.1, %73 ]
  %indvars.iv133.unr = phi i64 [ 0, %.preheader74.us ], [ %indvars.iv.next134.1, %73 ]
  %.183.us.unr = phi i8 [ %.05493.us, %.preheader74.us ], [ %.2.us.1, %73 ]
  %.15682.us.unr = phi i32 [ %.05592.us, %.preheader74.us ], [ %.257.us.1, %73 ]
  %.15981.us.unr = phi i32 [ %.05891.us, %.preheader74.us ], [ %.260.us.1, %73 ]
  br i1 %lcmp.mod.not, label %._crit_edge86.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge86.us.unr-lcssa
  %74 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv133.unr
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %.not70.us.epil = icmp sgt i32 %75, %.06190.us
  br i1 %.not70.us.epil, label %._crit_edge86.us, label %76

76:                                               ; preds = %.epil.preheader
  %77 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv133.unr
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = icmp slt i32 %78, %.15981.us.unr
  %80 = icmp sgt i32 %78, 0
  %or.cond.us.epil = and i1 %79, %80
  br i1 %or.cond.us.epil, label %81, label %._crit_edge86.us

81:                                               ; preds = %76
  %82 = trunc nuw nsw i64 %indvars.iv133.unr to i32
  br label %._crit_edge86.us

._crit_edge86.us:                                 ; preds = %.epil.preheader, %76, %81, %._crit_edge86.us.unr-lcssa
  %.260.us.lcssa = phi i32 [ %.260.us.lcssa.ph, %._crit_edge86.us.unr-lcssa ], [ %78, %81 ], [ %.15981.us.unr, %76 ], [ %.15981.us.unr, %.epil.preheader ]
  %.257.us.lcssa = phi i32 [ %.257.us.lcssa.ph, %._crit_edge86.us.unr-lcssa ], [ %82, %81 ], [ %.15682.us.unr, %76 ], [ %.15682.us.unr, %.epil.preheader ]
  %.2.us.lcssa = phi i8 [ %.2.us.lcssa.ph, %._crit_edge86.us.unr-lcssa ], [ 1, %81 ], [ %.183.us.unr, %76 ], [ %.183.us.unr, %.epil.preheader ]
  %83 = and i8 %.2.us.lcssa, 1
  %84 = icmp eq i8 %83, 0
  %85 = add nsw i32 %.06190.us, 1
  br i1 %84, label %.preheader74.us, label %.split.us

.preheader74.lr.ph.split:                         ; preds = %.preheader74.lr.ph
  %86 = and i8 %.054.ph110, 1
  %87 = icmp eq i8 %86, 0
  br i1 %87, label %._crit_edge114, label %.split.us

._crit_edge114:                                   ; preds = %.preheader74.lr.ph.split, %.lr.ph113, %middle.block, %.preheader75, %.preheader
  %88 = 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)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @.str.1)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @.str.2)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @.str.3)
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph119, label %._crit_edge120

.lr.ph113:                                        ; preds = %.lr.ph113.preheader170, %.lr.ph113
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %.lr.ph113 ], [ %indvars.iv139.ph, %.lr.ph113.preheader170 ]
  %94 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv139
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv139
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = add nsw i32 %97, %95
  %99 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv139
  store i32 %98, ptr %99, align 4, !tbaa !5
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next140, %.pre-phi151157
  br i1 %exitcond143.not, label %._crit_edge114, label %.lr.ph113, !llvm.loop !16

._crit_edge120.loopexit:                          ; preds = %.lr.ph119
  %100 = sitofp i32 %114 to float
  %101 = sitofp i32 %117 to float
  br label %._crit_edge120

._crit_edge120:                                   ; preds = %._crit_edge120.loopexit, %._crit_edge114
  %.067.lcssa = phi float [ 0.000000e+00, %._crit_edge114 ], [ %101, %._crit_edge120.loopexit ]
  %.065.lcssa = phi float [ 0.000000e+00, %._crit_edge114 ], [ %100, %._crit_edge120.loopexit ]
  %102 = 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.7)
  %103 = load i32, ptr %1, align 4, !tbaa !5
  %104 = sitofp i32 %103 to float
  %105 = fdiv float %.065.lcssa, %104
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %102, float noundef %105)
  %107 = 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.8)
  %108 = load i32, ptr %1, align 4, !tbaa !5
  %109 = sitofp i32 %108 to float
  %110 = fdiv float %.067.lcssa, %109
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %107, float noundef %110)
  call void @llvm.stackrestore.p0(ptr %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.lr.ph119:                                        ; preds = %._crit_edge114, %.lr.ph119
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.lr.ph119 ], [ 0, %._crit_edge114 ]
  %.065116 = phi i32 [ %114, %.lr.ph119 ], [ 0, %._crit_edge114 ]
  %.067115 = phi i32 [ %117, %.lr.ph119 ], [ 0, %._crit_edge114 ]
  %112 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv144
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = add nsw i32 %113, %.065116
  %115 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv144
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = add nsw i32 %116, %.067115
  %118 = 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.4)
  %119 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv144
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.5)
  %123 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv144
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %122, i32 noundef %124)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.6)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %126, i32 noundef %113)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.6)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %116)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %131 = load i32, ptr %1, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next145, %132
  br i1 %133, label %.lr.ph119, label %._crit_edge120.loopexit, !llvm.loop !17
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; 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 #4

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

; 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 #5 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)) #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

; 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) #7

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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !13, !12}
!17 = distinct !{!17, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass