; LLVM IR from pentilm/StellarSolver :: debug.ll (Z15DEBUG_RUN_TESTSPfS_S_PiS0_S0_S0_S_S_S_S_ii)

; 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_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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15DEBUG_RUN_TESTSPfS_S_PiS0_S0_S0_S_S_S_S_ii(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12) #0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store i32 %11, ptr %25, align 4, !tbaa !9
  store i32 %12, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store i64 1, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %43 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %43, ptr %28, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %93, %13
  %45 = load i32, ptr %28, align 4, !tbaa !9
  %46 = load i32, ptr %26, align 4, !tbaa !9
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 2, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %96

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = load i32, ptr %28, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !9
  store i32 %54, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %85, %49
  %56 = load i32, ptr %31, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 4
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %88

59:                                               ; preds = %55
  %60 = load ptr, ptr %20, align 8, !tbaa !5
  %61 = load i32, ptr %28, align 4, !tbaa !9
  %62 = mul nsw i32 4, %61
  %63 = load i32, ptr %31, align 4, !tbaa !9
  %64 = add nsw i32 %62, %63
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %60, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = icmp ne i32 %67, -1
  br i1 %68, label %69, label %84

69:                                               ; preds = %59
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %20, align 8, !tbaa !5
  %72 = load i32, ptr %28, align 4, !tbaa !9
  %73 = mul nsw i32 4, %72
  %74 = load i32, ptr %31, align 4, !tbaa !9
  %75 = add nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %71, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %70, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = load i32, ptr %30, align 4, !tbaa !9
  %83 = sub nsw i32 %82, %81
  store i32 %83, ptr %30, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %69, %59
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %31, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %31, align 4, !tbaa !9
  br label %55, !llvm.loop !13

88:                                               ; preds = %58
  %89 = load i32, ptr %30, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %91, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %28, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %28, align 4, !tbaa !9
  br label %44, !llvm.loop !15

96:                                               ; preds = %48
  %97 = load i64, ptr %27, align 8, !tbaa !11
  %98 = icmp eq i64 %97, 1
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %105

102:                                              ; preds = %96
  %103 = 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)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %105

105:                                              ; preds = %102, %99
  store i64 0, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %137, %105
  %107 = load i32, ptr %32, align 4, !tbaa !9
  %108 = load i32, ptr %26, align 4, !tbaa !9
  %109 = mul nsw i32 4, %108
  %110 = icmp slt i32 %107, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %106
  store i32 8, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %140

112:                                              ; preds = %106
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = load i32, ptr %32, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i32, ptr %113, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = icmp sge i32 %117, 0
  br i1 %118, label %119, label %136

119:                                              ; preds = %112
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %32, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = load i32, ptr %25, align 4, !tbaa !9
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %127, label %136

127:                                              ; preds = %119
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  %129 = load i32, ptr %32, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = load i64, ptr %27, align 8, !tbaa !11
  %135 = add nsw i64 %134, %133
  store i64 %135, ptr %27, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %127, %119, %112
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %32, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %32, align 4, !tbaa !9
  br label %106, !llvm.loop !16

140:                                              ; preds = %111
  %141 = load i64, ptr %27, align 8, !tbaa !11
  %142 = load i32, ptr %25, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr %25, align 4, !tbaa !9
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = mul nsw i64 %143, %146
  %148 = sdiv i64 %147, 2
  %149 = icmp eq i64 %141, %148
  br i1 %149, label %150, label %153

150:                                              ; preds = %140
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %156

153:                                              ; preds = %140
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %156

156:                                              ; preds = %153, %150
  store i64 1, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %173, %156
  %158 = load i32, ptr %33, align 4, !tbaa !9
  %159 = load i32, ptr %26, align 4, !tbaa !9
  %160 = mul nsw i32 4, %159
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %157
  store i32 11, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %176

163:                                              ; preds = %157
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  %165 = load i32, ptr %33, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = load i32, ptr %26, align 4, !tbaa !9
  %170 = icmp sge i32 %168, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %163
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %172

172:                                              ; preds = %171, %163
  br label %173

173:                                              ; preds = %172
  %174 = load i32, ptr %33, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %33, align 4, !tbaa !9
  br label %157, !llvm.loop !17

176:                                              ; preds = %162
  %177 = load i64, ptr %27, align 8, !tbaa !11
  %178 = icmp eq i64 %177, 1
  br i1 %178, label %179, label %182

179:                                              ; preds = %176
  %180 = 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)
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %185

182:                                              ; preds = %176
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %185

185:                                              ; preds = %182, %179
  store i64 1, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %201, %185
  %187 = load i32, ptr %34, align 4, !tbaa !9
  %188 = load i32, ptr %26, align 4, !tbaa !9
  %189 = mul nsw i32 4, %188
  %190 = icmp slt i32 %187, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %186
  store i32 14, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %204

192:                                              ; preds = %186
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load i32, ptr %34, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %193, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = icmp slt i32 %197, -1
  br i1 %198, label %199, label %200

199:                                              ; preds = %192
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %199, %192
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %34, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %34, align 4, !tbaa !9
  br label %186, !llvm.loop !18

204:                                              ; preds = %191
  %205 = load i64, ptr %27, align 8, !tbaa !11
  %206 = icmp eq i64 %205, 1
  br i1 %206, label %207, label %210

207:                                              ; preds = %204
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %213

210:                                              ; preds = %204
  %211 = 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)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %213

213:                                              ; preds = %210, %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %214 = load i32, ptr %25, align 4, !tbaa !9
  %215 = mul nsw i32 2, %214
  store i32 %215, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %235, %213
  %217 = load i32, ptr %36, align 4, !tbaa !9
  %218 = icmp slt i32 %217, 4
  br i1 %218, label %220, label %219

219:                                              ; preds = %216
  store i32 17, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %238

220:                                              ; preds = %216
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  %222 = load i32, ptr %36, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %221, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = load i32, ptr %35, align 4, !tbaa !9
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %228, label %234

228:                                              ; preds = %220
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = load i32, ptr %36, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %229, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !9
  store i32 %233, ptr %35, align 4, !tbaa !9
  br label %234

234:                                              ; preds = %228, %220
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %36, align 4, !tbaa !9
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %36, align 4, !tbaa !9
  br label %216, !llvm.loop !19

238:                                              ; preds = %219
  store i64 1, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 4, ptr %37, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %255, %238
  %240 = load i32, ptr %37, align 4, !tbaa !9
  %241 = load i32, ptr %35, align 4, !tbaa !9
  %242 = sub nsw i32 %241, 1
  %243 = mul nsw i32 4, %242
  %244 = icmp slt i32 %240, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %239
  store i32 20, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %258

246:                                              ; preds = %239
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = load i32, ptr %37, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %247, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !9
  %252 = icmp ne i32 %251, -1
  br i1 %252, label %253, label %254

253:                                              ; preds = %246
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %254

254:                                              ; preds = %253, %246
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %37, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %37, align 4, !tbaa !9
  br label %239, !llvm.loop !20

258:                                              ; preds = %245
  %259 = load i64, ptr %27, align 8, !tbaa !11
  %260 = icmp eq i64 %259, 1
  br i1 %260, label %261, label %264

261:                                              ; preds = %258
  %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 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %262, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %267

264:                                              ; preds = %258
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %265, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %267

267:                                              ; preds = %264, %261
  store i64 0, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %282, %267
  %269 = load i32, ptr %38, align 4, !tbaa !9
  %270 = load i32, ptr %26, align 4, !tbaa !9
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %268
  store i32 23, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %285

273:                                              ; preds = %268
  %274 = load ptr, ptr %19, align 8, !tbaa !5
  %275 = load i32, ptr %38, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds i32, ptr %274, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = load i64, ptr %27, align 8, !tbaa !11
  %281 = add nsw i64 %280, %279
  store i64 %281, ptr %27, align 8, !tbaa !11
  br label %282

282:                                              ; preds = %273
  %283 = load i32, ptr %38, align 4, !tbaa !9
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %38, align 4, !tbaa !9
  br label %268, !llvm.loop !21

285:                                              ; preds = %272
  %286 = load i64, ptr %27, align 8, !tbaa !11
  %287 = load i32, ptr %25, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = load i32, ptr %25, align 4, !tbaa !9
  %290 = sub nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  %292 = mul nsw i64 %288, %291
  %293 = sdiv i64 %292, 2
  %294 = icmp eq i64 %286, %293
  br i1 %294, label %295, label %298

295:                                              ; preds = %285
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %301

298:                                              ; preds = %285
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %301

301:                                              ; preds = %298, %295
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %302 = load i32, ptr %25, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %303, i64 4)
  %305 = extractvalue { i64, i1 } %304, 1
  %306 = extractvalue { i64, i1 } %304, 0
  %307 = select i1 %305, i64 -1, i64 %306
  %308 = call noalias noundef nonnull ptr @_Znam(i64 noundef %307) #7
  store ptr %308, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %319, %301
  %310 = load i32, ptr %40, align 4, !tbaa !9
  %311 = load i32, ptr %25, align 4, !tbaa !9
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 26, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %322

314:                                              ; preds = %309
  %315 = load ptr, ptr %39, align 8, !tbaa !5
  %316 = load i32, ptr %40, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds i32, ptr %315, i64 %317
  store i32 -1, ptr %318, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %314
  %320 = load i32, ptr %40, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %40, align 4, !tbaa !9
  br label %309, !llvm.loop !22

322:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %323

323:                                              ; preds = %337, %322
  %324 = load i32, ptr %41, align 4, !tbaa !9
  %325 = load i32, ptr %25, align 4, !tbaa !9
  %326 = icmp slt i32 %324, %325
  br i1 %326, label %328, label %327

327:                                              ; preds = %323
  store i32 29, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %340

328:                                              ; preds = %323
  %329 = load ptr, ptr %39, align 8, !tbaa !5
  %330 = load ptr, ptr %19, align 8, !tbaa !5
  %331 = load i32, ptr %41, align 4, !tbaa !9
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds i32, ptr %330, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds i32, ptr %329, i64 %335
  store i32 1, ptr %336, align 4, !tbaa !9
  br label %337

337:                                              ; preds = %328
  %338 = load i32, ptr %41, align 4, !tbaa !9
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %41, align 4, !tbaa !9
  br label %323, !llvm.loop !23

340:                                              ; preds = %327
  store i64 1, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 0, ptr %42, align 4, !tbaa !9
  br label %341

341:                                              ; preds = %355, %340
  %342 = load i32, ptr %42, align 4, !tbaa !9
  %343 = load i32, ptr %25, align 4, !tbaa !9
  %344 = icmp slt i32 %342, %343
  br i1 %344, label %346, label %345

345:                                              ; preds = %341
  store i32 32, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %358

346:                                              ; preds = %341
  %347 = load ptr, ptr %39, align 8, !tbaa !5
  %348 = load i32, ptr %42, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds i32, ptr %347, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !9
  %352 = icmp ne i32 %351, 1
  br i1 %352, label %353, label %354

353:                                              ; preds = %346
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %354

354:                                              ; preds = %353, %346
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %42, align 4, !tbaa !9
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %42, align 4, !tbaa !9
  br label %341, !llvm.loop !24

358:                                              ; preds = %345
  %359 = load ptr, ptr %39, align 8, !tbaa !5
  %360 = icmp eq ptr %359, null
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  call void @_ZdaPv(ptr noundef %359) #8
  br label %362

362:                                              ; preds = %361, %358
  %363 = load i64, ptr %27, align 8, !tbaa !11
  %364 = icmp eq i64 %363, 1
  br i1 %364, label %365, label %368

365:                                              ; preds = %362
  %366 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %366, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %371

368:                                              ; preds = %362
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %371

371:                                              ; preds = %368, %365
  store i64 1, ptr %27, align 8, !tbaa !11
  %372 = load ptr, ptr %21, align 8, !tbaa !5
  %373 = load float, ptr %372, align 4, !tbaa !25
  %374 = load ptr, ptr %22, align 8, !tbaa !5
  %375 = load float, ptr %374, align 4, !tbaa !25
  %376 = fcmp ogt float %373, %375
  br i1 %376, label %377, label %378

377:                                              ; preds = %371
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %378

378:                                              ; preds = %377, %371
  %379 = load ptr, ptr %23, align 8, !tbaa !5
  %380 = load float, ptr %379, align 4, !tbaa !25
  %381 = load ptr, ptr %24, align 8, !tbaa !5
  %382 = load float, ptr %381, align 4, !tbaa !25
  %383 = fcmp ogt float %380, %382
  br i1 %383, label %384, label %385

384:                                              ; preds = %378
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %385

385:                                              ; preds = %384, %378
  %386 = load i64, ptr %27, align 8, !tbaa !11
  %387 = icmp eq i64 %386, 1
  br i1 %387, label %388, label %391

388:                                              ; preds = %385
  %389 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %390 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %389, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %394

391:                                              ; preds = %385
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %394

394:                                              ; preds = %391, %388
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  ret void
}

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

; Function Attrs: nocallback nofree 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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

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


; 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_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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15DEBUG_RUN_TESTSPfS_S_PiS0_S0_S0_S_S_S_S_ii(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readnone %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8, ptr nocapture noundef readonly %9, ptr nocapture noundef readonly %10, i32 noundef %11, i32 noundef %12) local_unnamed_addr #0 {
  %14 = icmp slt i32 %11, %12
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %13
  %15 = sext i32 %11 to i64
  %wide.trip.count = sext i32 %12 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %54
  %16 = icmp eq i64 %spec.select, 1
  %spec.select220 = select i1 %16, ptr @.str, ptr @.str.1
  br label %._crit_edge.thread

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv = phi i64 [ %15, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %.093126 = phi i64 [ 1, %.lr.ph.preheader ], [ %spec.select, %54 ]
  %17 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = shl nsw i64 %indvars.iv, 2
  %20 = getelementptr inbounds i32, ptr %6, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not115 = icmp eq i32 %21, -1
  br i1 %.not115, label %27, label %22

22:                                               ; preds = %.lr.ph
  %23 = sext i32 %21 to i64
  %24 = getelementptr inbounds i32, ptr %3, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = sub nsw i32 %18, %25
  br label %27

27:                                               ; preds = %.lr.ph, %22
  %.1104 = phi i32 [ %26, %22 ], [ %18, %.lr.ph ]
  %28 = or disjoint i64 %19, 1
  %29 = getelementptr inbounds i32, ptr %6, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %.not115.1 = icmp eq i32 %30, -1
  br i1 %.not115.1, label %36, label %31

31:                                               ; preds = %27
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds i32, ptr %3, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sub nsw i32 %.1104, %34
  br label %36

36:                                               ; preds = %31, %27
  %.1104.1 = phi i32 [ %35, %31 ], [ %.1104, %27 ]
  %37 = or disjoint i64 %19, 2
  %38 = getelementptr inbounds i32, ptr %6, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %.not115.2 = icmp eq i32 %39, -1
  br i1 %.not115.2, label %45, label %40

40:                                               ; preds = %36
  %41 = sext i32 %39 to i64
  %42 = getelementptr inbounds i32, ptr %3, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = sub nsw i32 %.1104.1, %43
  br label %45

45:                                               ; preds = %40, %36
  %.1104.2 = phi i32 [ %44, %40 ], [ %.1104.1, %36 ]
  %46 = or disjoint i64 %19, 3
  %47 = getelementptr inbounds i32, ptr %6, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %.not115.3 = icmp eq i32 %48, -1
  br i1 %.not115.3, label %54, label %49

49:                                               ; preds = %45
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds i32, ptr %3, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sub nsw i32 %.1104.2, %52
  br label %54

54:                                               ; preds = %49, %45
  %.1104.3 = phi i32 [ %53, %49 ], [ %.1104.2, %45 ]
  %.not114 = icmp eq i32 %.1104.3, 0
  %spec.select = select i1 %.not114, i64 %.093126, i64 0
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge.thread:                               ; preds = %._crit_edge, %13
  %.str.1.sink = phi ptr [ @.str, %13 ], [ %spec.select220, %._crit_edge ]
  %55 = tail 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.sink)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %57 = shl i32 %12, 2
  %58 = icmp sgt i32 %12, 0
  br i1 %58, label %.lr.ph130.preheader, label %._crit_edge131

.lr.ph130.preheader:                              ; preds = %._crit_edge.thread
  %smax = tail call i32 @llvm.smax.i32(i32 %57, i32 1)
  %wide.trip.count174 = zext nneg i32 %smax to i64
  %min.iters.check = icmp slt i32 %57, 4
  br i1 %min.iters.check, label %.lr.ph130.preheader339, label %vector.ph

.lr.ph130.preheader339:                           ; preds = %middle.block, %.lr.ph130.preheader
  %indvars.iv171.ph = phi i64 [ 0, %.lr.ph130.preheader ], [ %n.vec, %middle.block ]
  %.2128.ph = phi i64 [ 0, %.lr.ph130.preheader ], [ %74, %middle.block ]
  br label %.lr.ph130

vector.ph:                                        ; preds = %.lr.ph130.preheader
  %n.vec = and i64 %wide.trip.count174, 2147483644
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %11, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %71, %vector.body ]
  %vec.phi224 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %72, %vector.body ]
  %59 = getelementptr inbounds i32, ptr %6, i64 %index
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %wide.load = load <2 x i32>, ptr %59, align 4, !tbaa !5
  %wide.load225 = load <2 x i32>, ptr %60, align 4, !tbaa !5
  %61 = icmp sgt <2 x i32> %wide.load, <i32 -1, i32 -1>
  %62 = icmp sgt <2 x i32> %wide.load225, <i32 -1, i32 -1>
  %63 = icmp slt <2 x i32> %wide.load, %broadcast.splat
  %64 = icmp slt <2 x i32> %wide.load225, %broadcast.splat
  %65 = and <2 x i1> %61, %63
  %66 = and <2 x i1> %62, %64
  %67 = zext <2 x i32> %wide.load to <2 x i64>
  %68 = zext <2 x i32> %wide.load225 to <2 x i64>
  %69 = select <2 x i1> %65, <2 x i64> %67, <2 x i64> zeroinitializer
  %70 = select <2 x i1> %66, <2 x i64> %68, <2 x i64> zeroinitializer
  %71 = add <2 x i64> %69, %vec.phi
  %72 = add <2 x i64> %70, %vec.phi224
  %index.next = add nuw i64 %index, 4
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %72, %71
  %74 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count174
  br i1 %cmp.n, label %._crit_edge131, label %.lr.ph130.preheader339

._crit_edge131:                                   ; preds = %.lr.ph130, %middle.block, %._crit_edge.thread
  %.2.lcssa = phi i64 [ 0, %._crit_edge.thread ], [ %74, %middle.block ], [ %.3, %.lr.ph130 ]
  %75 = sext i32 %11 to i64
  %76 = add nsw i32 %11, -1
  %77 = sext i32 %76 to i64
  %78 = mul nsw i64 %77, %75
  %79 = sdiv i64 %78, 2
  %80 = icmp eq i64 %.2.lcssa, %79
  %.str.2..str.3 = select i1 %80, ptr @.str.2, ptr @.str.3
  %81 = tail 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.2..str.3)
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br i1 %58, label %.lr.ph137.preheader, label %._crit_edge144.thread.critedge

.lr.ph130:                                        ; preds = %.lr.ph130.preheader339, %.lr.ph130
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %.lr.ph130 ], [ %indvars.iv171.ph, %.lr.ph130.preheader339 ]
  %.2128 = phi i64 [ %.3, %.lr.ph130 ], [ %.2128.ph, %.lr.ph130.preheader339 ]
  %83 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv171
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, -1
  %86 = icmp slt i32 %84, %11
  %or.cond = and i1 %85, %86
  %87 = zext nneg i32 %84 to i64
  %88 = select i1 %or.cond, i64 %87, i64 0
  %.3 = add nuw nsw i64 %88, %.2128
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge131, label %.lr.ph130, !llvm.loop !14

.lr.ph137.preheader:                              ; preds = %._crit_edge131
  %smax179 = tail call i32 @llvm.smax.i32(i32 %57, i32 1)
  %wide.trip.count180 = zext nneg i32 %smax179 to i64
  %min.iters.check228 = icmp slt i32 %57, 4
  br i1 %min.iters.check228, label %.lr.ph137.preheader335, label %vector.ph229

.lr.ph137.preheader335:                           ; preds = %middle.block226, %.lr.ph137.preheader
  %indvars.iv176.ph = phi i64 [ 0, %.lr.ph137.preheader ], [ %n.vec231, %middle.block226 ]
  %.4135.ph = phi i64 [ 1, %.lr.ph137.preheader ], [ %rdx.select, %middle.block226 ]
  br label %.lr.ph137

vector.ph229:                                     ; preds = %.lr.ph137.preheader
  %n.vec231 = and i64 %wide.trip.count180, 2147483644
  %broadcast.splatinsert239 = insertelement <2 x i32> poison, i32 %12, i64 0
  %broadcast.splat240 = shufflevector <2 x i32> %broadcast.splatinsert239, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body233

vector.body233:                                   ; preds = %vector.body233, %vector.ph229
  %index234 = phi i64 [ 0, %vector.ph229 ], [ %index.next241, %vector.body233 ]
  %vec.phi235 = phi <2 x i1> [ zeroinitializer, %vector.ph229 ], [ %93, %vector.body233 ]
  %vec.phi236 = phi <2 x i1> [ zeroinitializer, %vector.ph229 ], [ %94, %vector.body233 ]
  %89 = getelementptr inbounds i32, ptr %6, i64 %index234
  %90 = getelementptr inbounds i8, ptr %89, i64 8
  %wide.load237 = load <2 x i32>, ptr %89, align 4, !tbaa !5
  %wide.load238 = load <2 x i32>, ptr %90, align 4, !tbaa !5
  %91 = icmp sge <2 x i32> %wide.load237, %broadcast.splat240
  %92 = icmp sge <2 x i32> %wide.load238, %broadcast.splat240
  %93 = or <2 x i1> %vec.phi235, %91
  %94 = or <2 x i1> %vec.phi236, %92
  %index.next241 = add nuw i64 %index234, 4
  %95 = icmp eq i64 %index.next241, %n.vec231
  br i1 %95, label %middle.block226, label %vector.body233, !llvm.loop !15

middle.block226:                                  ; preds = %vector.body233
  %bin.rdx242 = or <2 x i1> %94, %93
  %bin.rdx242.fr = freeze <2 x i1> %bin.rdx242
  %96 = bitcast <2 x i1> %bin.rdx242.fr to i2
  %.not316 = icmp eq i2 %96, 0
  %rdx.select = zext i1 %.not316 to i64
  %cmp.n243 = icmp eq i64 %n.vec231, %wide.trip.count180
  br i1 %cmp.n243, label %._crit_edge138, label %.lr.ph137.preheader335

._crit_edge138:                                   ; preds = %.lr.ph137, %middle.block226
  %spec.select116.lcssa = phi i64 [ %rdx.select, %middle.block226 ], [ %spec.select116, %.lr.ph137 ]
  %97 = icmp eq i64 %spec.select116.lcssa, 1
  %.str.5.sink = select i1 %97, ptr @.str.4, ptr @.str.5
  %98 = tail 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.5.sink)
  %99 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br i1 %58, label %.lr.ph143.preheader, label %.preheader122

.lr.ph137:                                        ; preds = %.lr.ph137.preheader335, %.lr.ph137
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph137 ], [ %indvars.iv176.ph, %.lr.ph137.preheader335 ]
  %.4135 = phi i64 [ %spec.select116, %.lr.ph137 ], [ %.4135.ph, %.lr.ph137.preheader335 ]
  %100 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv176
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %.not113 = icmp slt i32 %101, %12
  %spec.select116 = select i1 %.not113, i64 %.4135, i64 0
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next177, %wide.trip.count180
  br i1 %exitcond181.not, label %._crit_edge138, label %.lr.ph137, !llvm.loop !16

.lr.ph143.preheader:                              ; preds = %._crit_edge138
  %smax185 = tail call i32 @llvm.smax.i32(i32 %57, i32 1)
  %wide.trip.count186 = zext nneg i32 %smax185 to i64
  %min.iters.check247 = icmp slt i32 %57, 4
  br i1 %min.iters.check247, label %.lr.ph143.preheader331, label %vector.ph248

.lr.ph143.preheader331:                           ; preds = %middle.block245, %.lr.ph143.preheader
  %indvars.iv182.ph = phi i64 [ 0, %.lr.ph143.preheader ], [ %n.vec250, %middle.block245 ]
  %.6141.ph = phi i64 [ 1, %.lr.ph143.preheader ], [ %rdx.select260, %middle.block245 ]
  br label %.lr.ph143

vector.ph248:                                     ; preds = %.lr.ph143.preheader
  %n.vec250 = and i64 %wide.trip.count180, 2147483644
  br label %vector.body252

vector.body252:                                   ; preds = %vector.body252, %vector.ph248
  %index253 = phi i64 [ 0, %vector.ph248 ], [ %index.next258, %vector.body252 ]
  %vec.phi254 = phi <2 x i1> [ zeroinitializer, %vector.ph248 ], [ %106, %vector.body252 ]
  %vec.phi255 = phi <2 x i1> [ zeroinitializer, %vector.ph248 ], [ %107, %vector.body252 ]
  %102 = getelementptr inbounds i32, ptr %6, i64 %index253
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %wide.load256 = load <2 x i32>, ptr %102, align 4, !tbaa !5
  %wide.load257 = load <2 x i32>, ptr %103, align 4, !tbaa !5
  %104 = icmp slt <2 x i32> %wide.load256, <i32 -1, i32 -1>
  %105 = icmp slt <2 x i32> %wide.load257, <i32 -1, i32 -1>
  %106 = or <2 x i1> %vec.phi254, %104
  %107 = or <2 x i1> %vec.phi255, %105
  %index.next258 = add nuw i64 %index253, 4
  %108 = icmp eq i64 %index.next258, %n.vec250
  br i1 %108, label %middle.block245, label %vector.body252, !llvm.loop !17

middle.block245:                                  ; preds = %vector.body252
  %bin.rdx259 = or <2 x i1> %107, %106
  %bin.rdx259.fr = freeze <2 x i1> %bin.rdx259
  %109 = bitcast <2 x i1> %bin.rdx259.fr to i2
  %.not317 = icmp eq i2 %109, 0
  %rdx.select260 = zext i1 %.not317 to i64
  %cmp.n261 = icmp eq i64 %n.vec250, %wide.trip.count180
  br i1 %cmp.n261, label %._crit_edge144, label %.lr.ph143.preheader331

._crit_edge144:                                   ; preds = %.lr.ph143, %middle.block245
  %spec.select117.lcssa = phi i64 [ %rdx.select260, %middle.block245 ], [ %spec.select117, %.lr.ph143 ]
  %110 = icmp eq i64 %spec.select117.lcssa, 1
  %spec.select221 = select i1 %110, ptr @.str.6, ptr @.str.7
  br label %.preheader122

.lr.ph143:                                        ; preds = %.lr.ph143.preheader331, %.lr.ph143
  %indvars.iv182 = phi i64 [ %indvars.iv.next183, %.lr.ph143 ], [ %indvars.iv182.ph, %.lr.ph143.preheader331 ]
  %.6141 = phi i64 [ %spec.select117, %.lr.ph143 ], [ %.6141.ph, %.lr.ph143.preheader331 ]
  %111 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv182
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp slt i32 %112, -1
  %spec.select117 = select i1 %113, i64 0, i64 %.6141
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next183, %wide.trip.count186
  br i1 %exitcond187.not, label %._crit_edge144, label %.lr.ph143, !llvm.loop !18

._crit_edge144.thread.critedge:                   ; preds = %._crit_edge131
  %114 = tail 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)
  %115 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.preheader122

.preheader122:                                    ; preds = %._crit_edge144, %._crit_edge138, %._crit_edge144.thread.critedge
  %.str.7.sink = phi ptr [ @.str.6, %._crit_edge144.thread.critedge ], [ @.str.6, %._crit_edge138 ], [ %spec.select221, %._crit_edge144 ]
  %116 = tail 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.sink)
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %118 = shl nsw i32 %11, 1
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %spec.select118 = tail call i32 @llvm.smin.i32(i32 %119, i32 %118)
  %120 = getelementptr inbounds i8, ptr %6, i64 4
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %spec.select118.1 = tail call i32 @llvm.smin.i32(i32 %121, i32 %spec.select118)
  %122 = getelementptr inbounds i8, ptr %6, i64 8
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %spec.select118.2 = tail call i32 @llvm.smin.i32(i32 %123, i32 %spec.select118.1)
  %124 = getelementptr inbounds i8, ptr %6, i64 12
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %spec.select118.3 = tail call i32 @llvm.smin.i32(i32 %125, i32 %spec.select118.2)
  %126 = shl i32 %spec.select118.3, 2
  %127 = add i32 %126, -4
  %128 = icmp sgt i32 %127, 4
  br i1 %128, label %.lr.ph150.preheader, label %._crit_edge151.thread

.lr.ph150.preheader:                              ; preds = %.preheader122
  %wide.trip.count195 = zext nneg i32 %127 to i64
  %129 = add nsw i64 %wide.trip.count195, -4
  %min.iters.check265 = icmp eq i64 %129, 0
  br i1 %min.iters.check265, label %.lr.ph150, label %vector.body270

vector.body270:                                   ; preds = %.lr.ph150.preheader, %vector.body270
  %index271 = phi i64 [ %index.next276, %vector.body270 ], [ 0, %.lr.ph150.preheader ]
  %vec.phi272 = phi <2 x i1> [ %135, %vector.body270 ], [ zeroinitializer, %.lr.ph150.preheader ]
  %vec.phi273 = phi <2 x i1> [ %136, %vector.body270 ], [ zeroinitializer, %.lr.ph150.preheader ]
  %130 = getelementptr i32, ptr %6, i64 %index271
  %131 = getelementptr i8, ptr %130, i64 16
  %132 = getelementptr i8, ptr %130, i64 24
  %wide.load274 = load <2 x i32>, ptr %131, align 4, !tbaa !5
  %wide.load275 = load <2 x i32>, ptr %132, align 4, !tbaa !5
  %133 = icmp ne <2 x i32> %wide.load274, <i32 -1, i32 -1>
  %134 = icmp ne <2 x i32> %wide.load275, <i32 -1, i32 -1>
  %135 = or <2 x i1> %vec.phi272, %133
  %136 = or <2 x i1> %vec.phi273, %134
  %index.next276 = add nuw i64 %index271, 4
  %137 = icmp eq i64 %index.next276, %129
  br i1 %137, label %middle.block263, label %vector.body270, !llvm.loop !19

middle.block263:                                  ; preds = %vector.body270
  %bin.rdx277 = or <2 x i1> %136, %135
  %bin.rdx277.fr = freeze <2 x i1> %bin.rdx277
  %138 = bitcast <2 x i1> %bin.rdx277.fr to i2
  %.not318 = icmp eq i2 %138, 0
  br label %._crit_edge151

._crit_edge151.loopexit:                          ; preds = %.lr.ph150
  %139 = icmp eq i64 %spec.select119, 1
  br label %._crit_edge151

._crit_edge151:                                   ; preds = %middle.block263, %._crit_edge151.loopexit
  %spec.select119.lcssa = phi i1 [ %.not318, %middle.block263 ], [ %139, %._crit_edge151.loopexit ]
  %spec.select222 = select i1 %spec.select119.lcssa, ptr @.str.8, ptr @.str.9
  br label %._crit_edge151.thread

.lr.ph150:                                        ; preds = %.lr.ph150.preheader, %.lr.ph150
  %indvars.iv192 = phi i64 [ %indvars.iv.next193, %.lr.ph150 ], [ 4, %.lr.ph150.preheader ]
  %.8149 = phi i64 [ %spec.select119, %.lr.ph150 ], [ 1, %.lr.ph150.preheader ]
  %140 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv192
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %.not112 = icmp eq i32 %141, -1
  %spec.select119 = select i1 %.not112, i64 %.8149, i64 0
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %exitcond196.not = icmp eq i64 %indvars.iv.next193, %wide.trip.count195
  br i1 %exitcond196.not, label %._crit_edge151.loopexit, label %.lr.ph150, !llvm.loop !20

._crit_edge151.thread:                            ; preds = %._crit_edge151, %.preheader122
  %.str.9.sink = phi ptr [ @.str.8, %.preheader122 ], [ %spec.select222, %._crit_edge151 ]
  %142 = tail 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.9.sink)
  %143 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br i1 %58, label %.lr.ph156.preheader, label %._crit_edge157

.lr.ph156.preheader:                              ; preds = %._crit_edge151.thread
  %wide.trip.count200 = zext nneg i32 %12 to i64
  %min.iters.check283 = icmp ult i32 %12, 4
  br i1 %min.iters.check283, label %.lr.ph156.preheader323, label %vector.ph284

.lr.ph156.preheader323:                           ; preds = %middle.block281, %.lr.ph156.preheader
  %indvars.iv197.ph = phi i64 [ 0, %.lr.ph156.preheader ], [ %n.vec286, %middle.block281 ]
  %.10154.ph = phi i64 [ 0, %.lr.ph156.preheader ], [ %151, %middle.block281 ]
  br label %.lr.ph156

vector.ph284:                                     ; preds = %.lr.ph156.preheader
  %n.vec286 = and i64 %wide.trip.count200, 2147483644
  br label %vector.body288

vector.body288:                                   ; preds = %vector.body288, %vector.ph284
  %index289 = phi i64 [ 0, %vector.ph284 ], [ %index.next294, %vector.body288 ]
  %vec.phi290 = phi <2 x i64> [ zeroinitializer, %vector.ph284 ], [ %148, %vector.body288 ]
  %vec.phi291 = phi <2 x i64> [ zeroinitializer, %vector.ph284 ], [ %149, %vector.body288 ]
  %144 = getelementptr inbounds i32, ptr %5, i64 %index289
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %wide.load292 = load <2 x i32>, ptr %144, align 4, !tbaa !5
  %wide.load293 = load <2 x i32>, ptr %145, align 4, !tbaa !5
  %146 = sext <2 x i32> %wide.load292 to <2 x i64>
  %147 = sext <2 x i32> %wide.load293 to <2 x i64>
  %148 = add <2 x i64> %vec.phi290, %146
  %149 = add <2 x i64> %vec.phi291, %147
  %index.next294 = add nuw i64 %index289, 4
  %150 = icmp eq i64 %index.next294, %n.vec286
  br i1 %150, label %middle.block281, label %vector.body288, !llvm.loop !21

middle.block281:                                  ; preds = %vector.body288
  %bin.rdx295 = add <2 x i64> %149, %148
  %151 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx295)
  %cmp.n296 = icmp eq i64 %n.vec286, %wide.trip.count200
  br i1 %cmp.n296, label %._crit_edge157, label %.lr.ph156.preheader323

._crit_edge157:                                   ; preds = %.lr.ph156, %middle.block281, %._crit_edge151.thread
  %.10.lcssa = phi i64 [ 0, %._crit_edge151.thread ], [ %151, %middle.block281 ], [ %163, %.lr.ph156 ]
  %152 = icmp eq i64 %.10.lcssa, %79
  %.str.10..str.11 = select i1 %152, ptr @.str.10, ptr @.str.11
  %153 = tail 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.10..str.11)
  %154 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %155 = icmp slt i32 %11, 0
  %156 = shl nsw i64 %75, 2
  %157 = select i1 %155, i64 -1, i64 %156
  %158 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %157) #6
  %159 = icmp sgt i32 %11, 0
  br i1 %159, label %.lr.ph163.preheader, label %._crit_edge167.thread

.lr.ph156:                                        ; preds = %.lr.ph156.preheader323, %.lr.ph156
  %indvars.iv197 = phi i64 [ %indvars.iv.next198, %.lr.ph156 ], [ %indvars.iv197.ph, %.lr.ph156.preheader323 ]
  %.10154 = phi i64 [ %163, %.lr.ph156 ], [ %.10154.ph, %.lr.ph156.preheader323 ]
  %160 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv197
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = add nsw i64 %.10154, %162
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next198, %wide.trip.count200
  br i1 %exitcond201.not, label %._crit_edge157, label %.lr.ph156, !llvm.loop !22

.lr.ph163.preheader:                              ; preds = %._crit_edge157
  %164 = zext nneg i32 %11 to i64
  %165 = shl nuw nsw i64 %164, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %158, i8 -1, i64 %165, i1 false), !tbaa !5
  %wide.trip.count208 = zext nneg i32 %11 to i64
  %xtraiter = and i64 %wide.trip.count208, 3
  %166 = icmp ult i32 %11, 4
  br i1 %166, label %.preheader.unr-lcssa, label %.lr.ph163.preheader.new

.lr.ph163.preheader.new:                          ; preds = %.lr.ph163.preheader
  %unroll_iter = and i64 %wide.trip.count208, 2147483644
  br label %.lr.ph163

.preheader.unr-lcssa:                             ; preds = %.lr.ph163, %.lr.ph163.preheader
  %indvars.iv205.unr = phi i64 [ 0, %.lr.ph163.preheader ], [ %indvars.iv.next206.3, %.lr.ph163 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph163.epil

.lr.ph163.epil:                                   ; preds = %.preheader.unr-lcssa, %.lr.ph163.epil
  %indvars.iv205.epil = phi i64 [ %indvars.iv.next206.epil, %.lr.ph163.epil ], [ %indvars.iv205.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph163.epil ], [ 0, %.preheader.unr-lcssa ]
  %167 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv205.epil
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %158, i64 %169
  store i32 1, ptr %170, align 4, !tbaa !5
  %indvars.iv.next206.epil = add nuw nsw i64 %indvars.iv205.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.lr.ph163.epil, !llvm.loop !23

.preheader:                                       ; preds = %.lr.ph163.epil, %.preheader.unr-lcssa
  br i1 %159, label %.lr.ph166.preheader, label %._crit_edge167.thread

.lr.ph166.preheader:                              ; preds = %.preheader
  %wide.trip.count213 = zext nneg i32 %11 to i64
  %min.iters.check300 = icmp ult i32 %11, 4
  br i1 %min.iters.check300, label %.lr.ph166.preheader320, label %vector.ph301

.lr.ph166.preheader320:                           ; preds = %middle.block298, %.lr.ph166.preheader
  %indvars.iv210.ph = phi i64 [ 0, %.lr.ph166.preheader ], [ %n.vec303, %middle.block298 ]
  %.11164.ph = phi i64 [ 1, %.lr.ph166.preheader ], [ %rdx.select313, %middle.block298 ]
  br label %.lr.ph166

vector.ph301:                                     ; preds = %.lr.ph166.preheader
  %n.vec303 = and i64 %wide.trip.count208, 2147483644
  br label %vector.body305

vector.body305:                                   ; preds = %vector.body305, %vector.ph301
  %index306 = phi i64 [ 0, %vector.ph301 ], [ %index.next311, %vector.body305 ]
  %vec.phi307 = phi <2 x i1> [ zeroinitializer, %vector.ph301 ], [ %175, %vector.body305 ]
  %vec.phi308 = phi <2 x i1> [ zeroinitializer, %vector.ph301 ], [ %176, %vector.body305 ]
  %171 = getelementptr inbounds i32, ptr %158, i64 %index306
  %172 = getelementptr inbounds i8, ptr %171, i64 8
  %wide.load309 = load <2 x i32>, ptr %171, align 4, !tbaa !5
  %wide.load310 = load <2 x i32>, ptr %172, align 4, !tbaa !5
  %173 = icmp ne <2 x i32> %wide.load309, <i32 1, i32 1>
  %174 = icmp ne <2 x i32> %wide.load310, <i32 1, i32 1>
  %175 = or <2 x i1> %vec.phi307, %173
  %176 = or <2 x i1> %vec.phi308, %174
  %index.next311 = add nuw i64 %index306, 4
  %177 = icmp eq i64 %index.next311, %n.vec303
  br i1 %177, label %middle.block298, label %vector.body305, !llvm.loop !25

middle.block298:                                  ; preds = %vector.body305
  %bin.rdx312 = or <2 x i1> %176, %175
  %bin.rdx312.fr = freeze <2 x i1> %bin.rdx312
  %178 = bitcast <2 x i1> %bin.rdx312.fr to i2
  %.not319 = icmp eq i2 %178, 0
  %rdx.select313 = zext i1 %.not319 to i64
  %cmp.n314 = icmp eq i64 %n.vec303, %wide.trip.count208
  br i1 %cmp.n314, label %._crit_edge167, label %.lr.ph166.preheader320

.lr.ph163:                                        ; preds = %.lr.ph163, %.lr.ph163.preheader.new
  %indvars.iv205 = phi i64 [ 0, %.lr.ph163.preheader.new ], [ %indvars.iv.next206.3, %.lr.ph163 ]
  %niter = phi i64 [ 0, %.lr.ph163.preheader.new ], [ %niter.next.3, %.lr.ph163 ]
  %179 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv205
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %158, i64 %181
  store i32 1, ptr %182, align 4, !tbaa !5
  %indvars.iv.next206 = or disjoint i64 %indvars.iv205, 1
  %183 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next206
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %158, i64 %185
  store i32 1, ptr %186, align 4, !tbaa !5
  %indvars.iv.next206.1 = or disjoint i64 %indvars.iv205, 2
  %187 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next206.1
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %158, i64 %189
  store i32 1, ptr %190, align 4, !tbaa !5
  %indvars.iv.next206.2 = or disjoint i64 %indvars.iv205, 3
  %191 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next206.2
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %158, i64 %193
  store i32 1, ptr %194, align 4, !tbaa !5
  %indvars.iv.next206.3 = add nuw nsw i64 %indvars.iv205, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph163, !llvm.loop !26

.lr.ph166:                                        ; preds = %.lr.ph166.preheader320, %.lr.ph166
  %indvars.iv210 = phi i64 [ %indvars.iv.next211, %.lr.ph166 ], [ %indvars.iv210.ph, %.lr.ph166.preheader320 ]
  %.11164 = phi i64 [ %spec.select120, %.lr.ph166 ], [ %.11164.ph, %.lr.ph166.preheader320 ]
  %195 = getelementptr inbounds i32, ptr %158, i64 %indvars.iv210
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %.not = icmp eq i32 %196, 1
  %spec.select120 = select i1 %.not, i64 %.11164, i64 0
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count213
  br i1 %exitcond214.not, label %._crit_edge167.loopexit, label %.lr.ph166, !llvm.loop !27

._crit_edge167.thread:                            ; preds = %.preheader, %._crit_edge157
  tail call void @_ZdaPv(ptr noundef nonnull %158) #7
  br label %198

._crit_edge167.loopexit:                          ; preds = %.lr.ph166
  %197 = icmp eq i64 %spec.select120, 1
  br label %._crit_edge167

._crit_edge167:                                   ; preds = %._crit_edge167.loopexit, %middle.block298
  %spec.select120.lcssa = phi i1 [ %.not319, %middle.block298 ], [ %197, %._crit_edge167.loopexit ]
  tail call void @_ZdaPv(ptr noundef nonnull %158) #7
  %spec.select223 = select i1 %spec.select120.lcssa, ptr @.str.12, ptr @.str.13
  br label %198

198:                                              ; preds = %._crit_edge167, %._crit_edge167.thread
  %.str.13.sink = phi ptr [ @.str.12, %._crit_edge167.thread ], [ %spec.select223, %._crit_edge167 ]
  %199 = tail 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.13.sink)
  %200 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %201 = load float, ptr %7, align 4, !tbaa !28
  %202 = load float, ptr %8, align 4, !tbaa !28
  %203 = fcmp ule float %201, %202
  %204 = load float, ptr %9, align 4, !tbaa !28
  %205 = load float, ptr %10, align 4, !tbaa !28
  %206 = fcmp ule float %204, %205
  %narrow = select i1 %206, i1 %203, i1 false
  %.str.14..str.15 = select i1 %narrow, ptr @.str.14, ptr @.str.15
  %207 = tail 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.14..str.15)
  %208 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret void
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #4

attributes #0 = { 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 #1 = { 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 #2 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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, !13, !12}
!15 = distinct !{!15, !10, !12, !13}
!16 = distinct !{!16, !10, !13, !12}
!17 = distinct !{!17, !10, !12, !13}
!18 = distinct !{!18, !10, !13, !12}
!19 = distinct !{!19, !10, !12, !13}
!20 = distinct !{!20, !10, !13, !12}
!21 = distinct !{!21, !10, !12, !13}
!22 = distinct !{!22, !10, !13, !12}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !10, !12, !13}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10, !13, !12}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}


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