; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 9/1809. Chapaev and Potatoes (main)

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

@xs = external dso_local global [4 x i32], align 16
@ys = external dso_local global [4 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6isGoodv() #0

; 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: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %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 i32, align 4
  %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
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %36, %0
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 4
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %39

27:                                               ; preds = %23
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %29
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %36

36:                                               ; preds = %27
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %23, !llvm.loop !9

39:                                               ; preds = %26
  %40 = call noundef zeroext i1 @_Z6isGoodv()
  br i1 %40, label %41, label %63

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %59, %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 4
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %62

46:                                               ; preds = %42
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %50)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @.str)
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %59

59:                                               ; preds = %46
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !11

62:                                               ; preds = %45
  store i32 0, ptr %1, align 4
  br label %317

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

64:                                               ; preds = %142, %63
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp slt i32 %65, 4
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  store i32 8, ptr %5, align 4
  br label %145

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  store i32 %76, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %125, %68
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = icmp sle i32 %78, 20
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  store i32 11, ptr %5, align 4
  br label %128

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %119, %81
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = icmp sle i32 %83, 20
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  store i32 14, ptr %5, align 4
  br label %122

86:                                               ; preds = %82
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %89
  store i32 %87, ptr %90, align 4, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %93
  store i32 %91, ptr %94, align 4, !tbaa !5
  %95 = call noundef zeroext i1 @_Z6isGoodv()
  br i1 %95, label %96, label %118

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

97:                                               ; preds = %114, %96
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = icmp slt i32 %98, 4
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %117

101:                                              ; preds = %97
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %105)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef @.str)
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %107, i32 noundef %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %114

114:                                              ; preds = %101
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !5
  br label %97, !llvm.loop !12

117:                                              ; preds = %100
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %122

118:                                              ; preds = %86
  br label %119

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

122:                                              ; preds = %117, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %123 = load i32, ptr %5, align 4
  switch i32 %123, label %128 [
    i32 14, label %124
  ]

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %8, align 4, !tbaa !5
  br label %77, !llvm.loop !14

128:                                              ; preds = %122, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %129 = load i32, ptr %5, align 4
  switch i32 %129, label %139 [
    i32 11, label %130
  ]

130:                                              ; preds = %128
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %133
  store i32 %131, ptr %134, align 4, !tbaa !5
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = load i32, ptr %4, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %137
  store i32 %135, ptr %138, align 4, !tbaa !5
  store i32 0, ptr %5, align 4
  br label %139

139:                                              ; preds = %130, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %140 = load i32, ptr %5, align 4
  switch i32 %140, label %145 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %4, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %4, align 4, !tbaa !5
  br label %64, !llvm.loop !15

145:                                              ; preds = %139, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %146 = load i32, ptr %5, align 4
  switch i32 %146, label %319 [
    i32 8, label %147
    i32 1, label %317
  ]

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %312, %147
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = icmp slt i32 %149, 4
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 20, ptr %5, align 4
  br label %315

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  store i32 %156, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  store i32 %160, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %295, %152
  %162 = load i32, ptr %14, align 4, !tbaa !5
  %163 = icmp sle i32 %162, 20
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  store i32 23, ptr %5, align 4
  br label %298

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %289, %165
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = icmp sle i32 %167, 20
  br i1 %168, label %170, label %169

169:                                              ; preds = %166
  store i32 26, ptr %5, align 4
  br label %292

170:                                              ; preds = %166
  %171 = load i32, ptr %14, align 4, !tbaa !5
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %173
  store i32 %171, ptr %174, align 4, !tbaa !5
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %177
  store i32 %175, ptr %178, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %16, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %259, %170
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = icmp slt i32 %182, 4
  br i1 %183, label %185, label %184

184:                                              ; preds = %181
  store i32 29, ptr %5, align 4
  br label %262

185:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  store i32 %189, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  store i32 %193, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %242, %185
  %195 = load i32, ptr %19, align 4, !tbaa !5
  %196 = icmp sle i32 %195, 20
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  store i32 32, ptr %5, align 4
  br label %245

198:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %236, %198
  %200 = load i32, ptr %20, align 4, !tbaa !5
  %201 = icmp sle i32 %200, 20
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 35, ptr %5, align 4
  br label %239

203:                                              ; preds = %199
  %204 = load i32, ptr %19, align 4, !tbaa !5
  %205 = load i32, ptr %16, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %206
  store i32 %204, ptr %207, align 4, !tbaa !5
  %208 = load i32, ptr %20, align 4, !tbaa !5
  %209 = load i32, ptr %16, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %210
  store i32 %208, ptr %211, align 4, !tbaa !5
  %212 = call noundef zeroext i1 @_Z6isGoodv()
  br i1 %212, label %213, label %235

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

214:                                              ; preds = %231, %213
  %215 = load i32, ptr %21, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 4
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  store i32 38, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %234

218:                                              ; preds = %214
  %219 = load i32, ptr %21, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %220
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %222)
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @.str)
  %225 = load i32, ptr %21, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %224, i32 noundef %228)
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %231

231:                                              ; preds = %218
  %232 = load i32, ptr %21, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %21, align 4, !tbaa !5
  br label %214, !llvm.loop !16

234:                                              ; preds = %217
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %239

235:                                              ; preds = %203
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %20, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %20, align 4, !tbaa !5
  br label %199, !llvm.loop !17

239:                                              ; preds = %234, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %240 = load i32, ptr %5, align 4
  switch i32 %240, label %245 [
    i32 35, label %241
  ]

241:                                              ; preds = %239
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %19, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %19, align 4, !tbaa !5
  br label %194, !llvm.loop !18

245:                                              ; preds = %239, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %246 = load i32, ptr %5, align 4
  switch i32 %246, label %256 [
    i32 32, label %247
  ]

247:                                              ; preds = %245
  %248 = load i32, ptr %17, align 4, !tbaa !5
  %249 = load i32, ptr %16, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %250
  store i32 %248, ptr %251, align 4, !tbaa !5
  %252 = load i32, ptr %18, align 4, !tbaa !5
  %253 = load i32, ptr %16, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %254
  store i32 %252, ptr %255, align 4, !tbaa !5
  store i32 0, ptr %5, align 4
  br label %256

256:                                              ; preds = %247, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %257 = load i32, ptr %5, align 4
  switch i32 %257, label %262 [
    i32 0, label %258
  ]

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %16, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %16, align 4, !tbaa !5
  br label %181, !llvm.loop !19

262:                                              ; preds = %256, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %263 = load i32, ptr %5, align 4
  switch i32 %263, label %292 [
    i32 29, label %264
  ]

264:                                              ; preds = %262
  %265 = call noundef zeroext i1 @_Z6isGoodv()
  br i1 %265, label %266, label %288

266:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %284, %266
  %268 = load i32, ptr %22, align 4, !tbaa !5
  %269 = icmp slt i32 %268, 4
  br i1 %269, label %271, label %270

270:                                              ; preds = %267
  store i32 41, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %287

271:                                              ; preds = %267
  %272 = load i32, ptr %22, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %275)
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @.str)
  %278 = load i32, ptr %22, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %277, i32 noundef %281)
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %284

284:                                              ; preds = %271
  %285 = load i32, ptr %22, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %22, align 4, !tbaa !5
  br label %267, !llvm.loop !20

287:                                              ; preds = %270
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %292

288:                                              ; preds = %264
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %15, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %15, align 4, !tbaa !5
  br label %166, !llvm.loop !21

292:                                              ; preds = %287, %262, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %293 = load i32, ptr %5, align 4
  switch i32 %293, label %298 [
    i32 26, label %294
  ]

294:                                              ; preds = %292
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %14, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %14, align 4, !tbaa !5
  br label %161, !llvm.loop !22

298:                                              ; preds = %292, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %299 = load i32, ptr %5, align 4
  switch i32 %299, label %309 [
    i32 23, label %300
  ]

300:                                              ; preds = %298
  %301 = load i32, ptr %12, align 4, !tbaa !5
  %302 = load i32, ptr %11, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %303
  store i32 %301, ptr %304, align 4, !tbaa !5
  %305 = load i32, ptr %13, align 4, !tbaa !5
  %306 = load i32, ptr %11, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %307
  store i32 %305, ptr %308, align 4, !tbaa !5
  store i32 0, ptr %5, align 4
  br label %309

309:                                              ; preds = %300, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %310 = load i32, ptr %5, align 4
  switch i32 %310, label %315 [
    i32 0, label %311
  ]

311:                                              ; preds = %309
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %11, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %11, align 4, !tbaa !5
  br label %148, !llvm.loop !23

315:                                              ; preds = %309, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %316 = load i32, ptr %5, align 4
  switch i32 %316, label %319 [
    i32 20, label %317
    i32 1, label %317
  ]

317:                                              ; preds = %315, %315, %145, %62
  %318 = load i32, ptr %1, align 4
  ret i32 %318

319:                                              ; preds = %315, %145
  unreachable
}

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

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

; 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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !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" }

@xs = external dso_local global [4 x i32], align 16
@ys = external dso_local global [4 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6isGoodv() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @xs)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) @ys)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @xs, i64 4))
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ys, i64 4))
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @xs, i64 8))
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ys, i64 8))
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @xs, i64 12))
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ys, i64 12))
  %9 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %9, label %.critedge.sink.split, label %.preheader154

.preheader154:                                    ; preds = %0, %54
  %indvars.iv = phi i64 [ %indvars.iv.next, %54 ], [ 0, %0 ]
  %10 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %indvars.iv
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %indvars.iv
  %13 = load i32, ptr %12, align 4, !tbaa !5
  br label %.preheader152

.preheader152:                                    ; preds = %.preheader154, %.thread
  %.0103158 = phi i32 [ 1, %.preheader154 ], [ %53, %.thread ]
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 1, ptr %12, align 4, !tbaa !5
  %14 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %14, label %.critedge.sink.split, label %15

15:                                               ; preds = %.preheader152
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 2, ptr %12, align 4, !tbaa !5
  %16 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %16, label %.critedge.sink.split, label %17

17:                                               ; preds = %15
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 3, ptr %12, align 4, !tbaa !5
  %18 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %18, label %.critedge.sink.split, label %19

19:                                               ; preds = %17
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 4, ptr %12, align 4, !tbaa !5
  %20 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %20, label %.critedge.sink.split, label %21

21:                                               ; preds = %19
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 5, ptr %12, align 4, !tbaa !5
  %22 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %22, label %.critedge.sink.split, label %23

23:                                               ; preds = %21
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 6, ptr %12, align 4, !tbaa !5
  %24 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %24, label %.critedge.sink.split, label %25

25:                                               ; preds = %23
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 7, ptr %12, align 4, !tbaa !5
  %26 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %26, label %.critedge.sink.split, label %27

27:                                               ; preds = %25
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 8, ptr %12, align 4, !tbaa !5
  %28 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %28, label %.critedge.sink.split, label %29

29:                                               ; preds = %27
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 9, ptr %12, align 4, !tbaa !5
  %30 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %30, label %.critedge.sink.split, label %31

31:                                               ; preds = %29
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 10, ptr %12, align 4, !tbaa !5
  %32 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %32, label %.critedge.sink.split, label %33

33:                                               ; preds = %31
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 11, ptr %12, align 4, !tbaa !5
  %34 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %34, label %.critedge.sink.split, label %35

35:                                               ; preds = %33
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 12, ptr %12, align 4, !tbaa !5
  %36 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %36, label %.critedge.sink.split, label %37

37:                                               ; preds = %35
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 13, ptr %12, align 4, !tbaa !5
  %38 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %38, label %.critedge.sink.split, label %39

39:                                               ; preds = %37
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 14, ptr %12, align 4, !tbaa !5
  %40 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %40, label %.critedge.sink.split, label %41

41:                                               ; preds = %39
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 15, ptr %12, align 4, !tbaa !5
  %42 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %42, label %.critedge.sink.split, label %43

43:                                               ; preds = %41
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 16, ptr %12, align 4, !tbaa !5
  %44 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %44, label %.critedge.sink.split, label %45

45:                                               ; preds = %43
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 17, ptr %12, align 4, !tbaa !5
  %46 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %46, label %.critedge.sink.split, label %47

47:                                               ; preds = %45
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 18, ptr %12, align 4, !tbaa !5
  %48 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %48, label %.critedge.sink.split, label %49

49:                                               ; preds = %47
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 19, ptr %12, align 4, !tbaa !5
  %50 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %50, label %.critedge.sink.split, label %51

51:                                               ; preds = %49
  store i32 %.0103158, ptr %10, align 4, !tbaa !5
  store i32 20, ptr %12, align 4, !tbaa !5
  %52 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %52, label %.critedge.sink.split, label %.thread

.thread:                                          ; preds = %51
  %53 = add nuw nsw i32 %.0103158, 1
  %exitcond.not = icmp eq i32 %53, 21
  br i1 %exitcond.not, label %54, label %.preheader152, !llvm.loop !9

54:                                               ; preds = %.thread
  store i32 %11, ptr %10, align 4, !tbaa !5
  store i32 %13, ptr %12, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond181.not, label %.preheader149, label %.preheader154, !llvm.loop !11

.preheader149:                                    ; preds = %54, %.split169.us
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %.split169.us ], [ 0, %54 ]
  %55 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %indvars.iv186
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %indvars.iv186
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp ult i64 %indvars.iv186, 3
  br i1 %59, label %.preheader148.us, label %.preheader148

.preheader148.us:                                 ; preds = %.preheader149, %.split.us.us
  %.097166.us = phi i32 [ %109, %.split.us.us ], [ 1, %.preheader149 ]
  br label %.lr.ph.us.us

.lr.ph.us.us:                                     ; preds = %60, %.preheader148.us
  %.096165.us.us = phi i32 [ 1, %.preheader148.us ], [ %61, %60 ]
  store i32 %.097166.us, ptr %55, align 4, !tbaa !5
  store i32 %.096165.us.us, ptr %57, align 4, !tbaa !5
  br label %62

60:                                               ; preds = %._crit_edge.us.us
  %61 = add nuw nsw i32 %.096165.us.us, 1
  %exitcond192.not = icmp eq i32 %61, 21
  br i1 %exitcond192.not, label %.split.us.us, label %.lr.ph.us.us, !llvm.loop !12

62:                                               ; preds = %67, %.lr.ph.us.us
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %67 ], [ %indvars.iv186, %.lr.ph.us.us ]
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %63 = getelementptr inbounds [4 x i32], ptr @xs, i64 0, i64 %indvars.iv.next189
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds [4 x i32], ptr @ys, i64 0, i64 %indvars.iv.next189
  %66 = load i32, ptr %65, align 4, !tbaa !5
  br label %.preheader146.us.us

67:                                               ; preds = %.thread126.loopexit.us.us
  store i32 %64, ptr %63, align 4, !tbaa !5
  store i32 %66, ptr %65, align 4, !tbaa !5
  %exitcond191.not = icmp eq i64 %indvars.iv.next189, 3
  br i1 %exitcond191.not, label %._crit_edge.us.us, label %62, !llvm.loop !13

68:                                               ; preds = %.preheader146.us.us
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 2, ptr %65, align 4, !tbaa !5
  %69 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %69, label %.critedge.sink.split, label %70

70:                                               ; preds = %68
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 3, ptr %65, align 4, !tbaa !5
  %71 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %71, label %.critedge.sink.split, label %72

72:                                               ; preds = %70
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 4, ptr %65, align 4, !tbaa !5
  %73 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %73, label %.critedge.sink.split, label %74

74:                                               ; preds = %72
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 5, ptr %65, align 4, !tbaa !5
  %75 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %75, label %.critedge.sink.split, label %76

76:                                               ; preds = %74
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 6, ptr %65, align 4, !tbaa !5
  %77 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %77, label %.critedge.sink.split, label %78

78:                                               ; preds = %76
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 7, ptr %65, align 4, !tbaa !5
  %79 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %79, label %.critedge.sink.split, label %80

80:                                               ; preds = %78
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 8, ptr %65, align 4, !tbaa !5
  %81 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %81, label %.critedge.sink.split, label %82

82:                                               ; preds = %80
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 9, ptr %65, align 4, !tbaa !5
  %83 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %83, label %.critedge.sink.split, label %84

84:                                               ; preds = %82
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 10, ptr %65, align 4, !tbaa !5
  %85 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %85, label %.critedge.sink.split, label %86

86:                                               ; preds = %84
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 11, ptr %65, align 4, !tbaa !5
  %87 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %87, label %.critedge.sink.split, label %88

88:                                               ; preds = %86
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 12, ptr %65, align 4, !tbaa !5
  %89 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %89, label %.critedge.sink.split, label %90

90:                                               ; preds = %88
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 13, ptr %65, align 4, !tbaa !5
  %91 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %91, label %.critedge.sink.split, label %92

92:                                               ; preds = %90
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 14, ptr %65, align 4, !tbaa !5
  %93 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %93, label %.critedge.sink.split, label %94

94:                                               ; preds = %92
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 15, ptr %65, align 4, !tbaa !5
  %95 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %95, label %.critedge.sink.split, label %96

96:                                               ; preds = %94
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 16, ptr %65, align 4, !tbaa !5
  %97 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %97, label %.critedge.sink.split, label %98

98:                                               ; preds = %96
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 17, ptr %65, align 4, !tbaa !5
  %99 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %99, label %.critedge.sink.split, label %100

100:                                              ; preds = %98
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 18, ptr %65, align 4, !tbaa !5
  %101 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %101, label %.critedge.sink.split, label %102

102:                                              ; preds = %100
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 19, ptr %65, align 4, !tbaa !5
  %103 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %103, label %.critedge.sink.split, label %104

104:                                              ; preds = %102
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 20, ptr %65, align 4, !tbaa !5
  %105 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %105, label %.critedge.sink.split, label %.thread126.loopexit.us.us

.thread126.loopexit.us.us:                        ; preds = %104
  %106 = add nuw nsw i32 %.092162.us.us, 1
  %exitcond185.not = icmp eq i32 %106, 21
  br i1 %exitcond185.not, label %67, label %.preheader146.us.us, !llvm.loop !14

.preheader146.us.us:                              ; preds = %.thread126.loopexit.us.us, %62
  %.092162.us.us = phi i32 [ 1, %62 ], [ %106, %.thread126.loopexit.us.us ]
  store i32 %.092162.us.us, ptr %63, align 4, !tbaa !5
  store i32 1, ptr %65, align 4, !tbaa !5
  %107 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %107, label %.critedge.sink.split, label %68

._crit_edge.us.us:                                ; preds = %67
  %108 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %108, label %.critedge.sink.split, label %60

.split.us.us:                                     ; preds = %60
  %109 = add nuw nsw i32 %.097166.us, 1
  %exitcond193.not = icmp eq i32 %109, 21
  br i1 %exitcond193.not, label %.split169.us, label %.preheader148.us, !llvm.loop !15

.preheader148:                                    ; preds = %.preheader149, %.split
  %.097166 = phi i32 [ %149, %.split ], [ 1, %.preheader149 ]
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 1, ptr %57, align 4, !tbaa !5
  %110 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %110, label %.critedge.sink.split, label %111

111:                                              ; preds = %.preheader148
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 2, ptr %57, align 4, !tbaa !5
  %112 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %112, label %.critedge.sink.split, label %113

113:                                              ; preds = %111
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 3, ptr %57, align 4, !tbaa !5
  %114 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %114, label %.critedge.sink.split, label %115

115:                                              ; preds = %113
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 4, ptr %57, align 4, !tbaa !5
  %116 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %116, label %.critedge.sink.split, label %117

117:                                              ; preds = %115
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 5, ptr %57, align 4, !tbaa !5
  %118 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %118, label %.critedge.sink.split, label %119

119:                                              ; preds = %117
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 6, ptr %57, align 4, !tbaa !5
  %120 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %120, label %.critedge.sink.split, label %121

121:                                              ; preds = %119
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 7, ptr %57, align 4, !tbaa !5
  %122 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %122, label %.critedge.sink.split, label %123

123:                                              ; preds = %121
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 8, ptr %57, align 4, !tbaa !5
  %124 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %124, label %.critedge.sink.split, label %125

125:                                              ; preds = %123
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 9, ptr %57, align 4, !tbaa !5
  %126 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %126, label %.critedge.sink.split, label %127

127:                                              ; preds = %125
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 10, ptr %57, align 4, !tbaa !5
  %128 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %128, label %.critedge.sink.split, label %129

129:                                              ; preds = %127
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 11, ptr %57, align 4, !tbaa !5
  %130 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %130, label %.critedge.sink.split, label %131

131:                                              ; preds = %129
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 12, ptr %57, align 4, !tbaa !5
  %132 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %132, label %.critedge.sink.split, label %133

133:                                              ; preds = %131
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 13, ptr %57, align 4, !tbaa !5
  %134 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %134, label %.critedge.sink.split, label %135

135:                                              ; preds = %133
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 14, ptr %57, align 4, !tbaa !5
  %136 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %136, label %.critedge.sink.split, label %137

137:                                              ; preds = %135
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 15, ptr %57, align 4, !tbaa !5
  %138 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %138, label %.critedge.sink.split, label %139

139:                                              ; preds = %137
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 16, ptr %57, align 4, !tbaa !5
  %140 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %140, label %.critedge.sink.split, label %141

141:                                              ; preds = %139
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 17, ptr %57, align 4, !tbaa !5
  %142 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %142, label %.critedge.sink.split, label %143

143:                                              ; preds = %141
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 18, ptr %57, align 4, !tbaa !5
  %144 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %144, label %.critedge.sink.split, label %145

145:                                              ; preds = %143
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 19, ptr %57, align 4, !tbaa !5
  %146 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %146, label %.critedge.sink.split, label %147

147:                                              ; preds = %145
  store i32 %.097166, ptr %55, align 4, !tbaa !5
  store i32 20, ptr %57, align 4, !tbaa !5
  %148 = tail call noundef zeroext i1 @_Z6isGoodv()
  br i1 %148, label %.critedge.sink.split, label %.split

.split:                                           ; preds = %147
  %149 = add nuw nsw i32 %.097166, 1
  %exitcond183.not = icmp eq i32 %149, 21
  br i1 %exitcond183.not, label %.split169.us, label %.preheader148, !llvm.loop !15

.split169.us:                                     ; preds = %.split, %.split.us.us
  store i32 %56, ptr %55, align 4, !tbaa !5
  store i32 %58, ptr %57, align 4, !tbaa !5
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next187, 4
  br i1 %exitcond195.not, label %.critedge, label %.preheader149, !llvm.loop !16

.critedge.sink.split:                             ; preds = %.preheader152, %15, %17, %19, %21, %23, %25, %27, %29, %31, %33, %35, %37, %39, %41, %43, %45, %47, %49, %51, %147, %145, %143, %141, %139, %137, %135, %133, %131, %129, %127, %125, %123, %121, %119, %117, %115, %113, %111, %.preheader148, %._crit_edge.us.us, %.preheader146.us.us, %68, %70, %72, %74, %76, %78, %80, %82, %84, %86, %88, %90, %92, %94, %96, %98, %100, %102, %104, %0
  %150 = load i32, ptr @xs, align 16, !tbaa !5
  %151 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %150)
  %152 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @.str)
  %153 = load i32, ptr @ys, align 16, !tbaa !5
  %154 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef %153)
  %155 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @xs, i64 4), align 4, !tbaa !5
  %157 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %156)
  %158 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull @.str)
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @ys, i64 4), align 4, !tbaa !5
  %160 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef %159)
  %161 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @xs, i64 8), align 8, !tbaa !5
  %163 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %162)
  %164 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @.str)
  %165 = load i32, ptr getelementptr inbounds (i8, ptr @ys, i64 8), align 8, !tbaa !5
  %166 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %164, i32 noundef %165)
  %167 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @xs, i64 12), align 4, !tbaa !5
  %169 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %168)
  %170 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef nonnull @.str)
  %171 = load i32, ptr getelementptr inbounds (i8, ptr @ys, i64 12), align 4, !tbaa !5
  %172 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %170, i32 noundef %171)
  %173 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.critedge

.critedge:                                        ; preds = %.split169.us, %.critedge.sink.split
  ret i32 0
}

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: 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 #3

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 #4 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass