; LLVM IR from ShahjalalShohag/code-library :: Dynamic Programming Optimizations (Dynamic Submask Count)

; 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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@c = external dso_local global [65545 x i32], align 16
@small = external dso_local global [65545 x i32], align 16
@big = external dso_local global [65545 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %23 unwind label %63

23:                                               ; preds = %0
  br label %24

24:                                               ; preds = %361, %23
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr %8, align 4, !tbaa !5
  %27 = icmp ne i32 %25, 0
  br i1 %27, label %28, label %362

28:                                               ; preds = %24
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %30 unwind label %63

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %32 unwind label %63

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
          to label %34 unwind label %63

34:                                               ; preds = %32
  %35 = load i8, ptr %33, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = icmp eq i32 %36, 97
  br i1 %37, label %38, label %133

38:                                               ; preds = %34
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = call i32 @llvm.ctpop.i32(i32 %39)
  %41 = icmp sle i32 %40, 8
  br i1 %41, label %42, label %70

42:                                               ; preds = %38
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %58, %42
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %67

52:                                               ; preds = %49
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %55, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %52
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sub nsw i32 %59, 1
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = and i32 %60, %61
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %49, !llvm.loop !10

63:                                               ; preds = %133, %32, %30, %28, %0
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %364

67:                                               ; preds = %49
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !5
  br label %132

70:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %87, %70
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = icmp slt i32 %72, 16
  br i1 %73, label %74, label %90

74:                                               ; preds = %71
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = ashr i32 %75, %76
  %78 = and i32 %77, 1
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %74
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %81 unwind label %82

81:                                               ; preds = %80
  br label %86

82:                                               ; preds = %80
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %10, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %11, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %364

86:                                               ; preds = %81, %74
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %3, align 4, !tbaa !5
  br label %71, !llvm.loop !12

90:                                               ; preds = %71
  %91 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %92 = trunc i64 %91 to i32
  store i32 %92, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %128, %90
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = shl i32 1, %95
  %97 = icmp slt i32 %94, %96
  br i1 %97, label %98, label %131

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %99 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %99, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %119, %98
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %104, label %122

104:                                              ; preds = %100
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = load i32, ptr %4, align 4, !tbaa !5
  %107 = ashr i32 %105, %106
  %108 = and i32 %107, 1
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %118

110:                                              ; preds = %104
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %112) #7
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = shl i32 1, %114
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = or i32 %116, %115
  store i32 %117, ptr %13, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %110, %104
  br label %119

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

122:                                              ; preds = %100
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %125, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %128

128:                                              ; preds = %122
  %129 = load i32, ptr %3, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %3, align 4, !tbaa !5
  br label %93, !llvm.loop !14

131:                                              ; preds = %93
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %132

132:                                              ; preds = %131, %67
  br label %361

133:                                              ; preds = %34
  %134 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
          to label %135 unwind label %63

135:                                              ; preds = %133
  %136 = load i8, ptr %134, align 1, !tbaa !9
  %137 = sext i8 %136 to i32
  %138 = icmp eq i32 %137, 100
  br i1 %138, label %139, label %230

139:                                              ; preds = %135
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = call i32 @llvm.ctpop.i32(i32 %140)
  %142 = icmp sle i32 %141, 8
  br i1 %142, label %143, label %167

143:                                              ; preds = %139
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr %146, align 4, !tbaa !5
  %149 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %149, ptr %3, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %159, %143
  %151 = load i32, ptr %3, align 4, !tbaa !5
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %153, label %164

153:                                              ; preds = %150
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %156, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %153
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 1
  %162 = load i32, ptr %6, align 4, !tbaa !5
  %163 = and i32 %161, %162
  store i32 %163, ptr %3, align 4, !tbaa !5
  br label %150, !llvm.loop !15

164:                                              ; preds = %150
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %9, align 4, !tbaa !5
  br label %229

167:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %184, %167
  %169 = load i32, ptr %3, align 4, !tbaa !5
  %170 = icmp slt i32 %169, 16
  br i1 %170, label %171, label %187

171:                                              ; preds = %168
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = load i32, ptr %3, align 4, !tbaa !5
  %174 = ashr i32 %172, %173
  %175 = and i32 %174, 1
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %183, label %177

177:                                              ; preds = %171
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %178 unwind label %179

178:                                              ; preds = %177
  br label %183

179:                                              ; preds = %177
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %10, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %11, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %364

183:                                              ; preds = %178, %171
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %3, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %3, align 4, !tbaa !5
  br label %168, !llvm.loop !16

187:                                              ; preds = %168
  %188 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %225, %187
  %191 = load i32, ptr %3, align 4, !tbaa !5
  %192 = load i32, ptr %5, align 4, !tbaa !5
  %193 = shl i32 1, %192
  %194 = icmp slt i32 %191, %193
  br i1 %194, label %195, label %228

195:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %196 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %196, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %216, %195
  %198 = load i32, ptr %4, align 4, !tbaa !5
  %199 = load i32, ptr %5, align 4, !tbaa !5
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %201, label %219

201:                                              ; preds = %197
  %202 = load i32, ptr %3, align 4, !tbaa !5
  %203 = load i32, ptr %4, align 4, !tbaa !5
  %204 = ashr i32 %202, %203
  %205 = and i32 %204, 1
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %215

207:                                              ; preds = %201
  %208 = load i32, ptr %4, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %209) #7
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = shl i32 1, %211
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = or i32 %213, %212
  store i32 %214, ptr %15, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %207, %201
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %4, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %4, align 4, !tbaa !5
  br label %197, !llvm.loop !17

219:                                              ; preds = %197
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = add nsw i32 %223, -1
  store i32 %224, ptr %222, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %225

225:                                              ; preds = %219
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %3, align 4, !tbaa !5
  br label %190, !llvm.loop !18

228:                                              ; preds = %190
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %229

229:                                              ; preds = %228, %164
  br label %360

230:                                              ; preds = %135
  %231 = load i32, ptr %6, align 4, !tbaa !5
  %232 = call i32 @llvm.ctpop.i32(i32 %231)
  %233 = icmp sle i32 %232, 8
  br i1 %233, label %234, label %264

234:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  %235 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %235, ptr %3, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %246, %234
  %237 = load i32, ptr %3, align 4, !tbaa !5
  %238 = icmp sgt i32 %237, 0
  br i1 %238, label %239, label %251

239:                                              ; preds = %236
  %240 = load i32, ptr %3, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = add nsw i32 %244, %243
  store i32 %245, ptr %16, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %239
  %247 = load i32, ptr %3, align 4, !tbaa !5
  %248 = sub nsw i32 %247, 1
  %249 = load i32, ptr %6, align 4, !tbaa !5
  %250 = and i32 %248, %249
  store i32 %250, ptr %3, align 4, !tbaa !5
  br label %236, !llvm.loop !19

251:                                              ; preds = %236
  %252 = load i32, ptr @small, align 16, !tbaa !5
  %253 = load i32, ptr %16, align 4, !tbaa !5
  %254 = add nsw i32 %253, %252
  store i32 %254, ptr %16, align 4, !tbaa !5
  %255 = load i32, ptr %16, align 4, !tbaa !5
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %255)
          to label %257 unwind label %260

257:                                              ; preds = %251
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %259 unwind label %260

259:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %359

260:                                              ; preds = %257, %251
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %10, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %364

264:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %265 = load i32, ptr %6, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  store i32 %268, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %285, %264
  %270 = load i32, ptr %3, align 4, !tbaa !5
  %271 = icmp slt i32 %270, 16
  br i1 %271, label %272, label %288

272:                                              ; preds = %269
  %273 = load i32, ptr %6, align 4, !tbaa !5
  %274 = load i32, ptr %3, align 4, !tbaa !5
  %275 = ashr i32 %273, %274
  %276 = and i32 %275, 1
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %284, label %278

278:                                              ; preds = %272
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %279 unwind label %280

279:                                              ; preds = %278
  br label %284

280:                                              ; preds = %278
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %10, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %11, align 4
  br label %358

284:                                              ; preds = %279, %272
  br label %285

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

288:                                              ; preds = %269
  %289 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %290 = trunc i64 %289 to i32
  store i32 %290, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %340, %288
  %292 = load i32, ptr %3, align 4, !tbaa !5
  %293 = load i32, ptr %5, align 4, !tbaa !5
  %294 = shl i32 1, %293
  %295 = icmp slt i32 %292, %294
  br i1 %295, label %296, label %343

296:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %297

297:                                              ; preds = %318, %296
  %298 = load i32, ptr %4, align 4, !tbaa !5
  %299 = load i32, ptr %5, align 4, !tbaa !5
  %300 = icmp slt i32 %298, %299
  br i1 %300, label %301, label %321

301:                                              ; preds = %297
  %302 = load i32, ptr %3, align 4, !tbaa !5
  %303 = load i32, ptr %4, align 4, !tbaa !5
  %304 = ashr i32 %302, %303
  %305 = and i32 %304, 1
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %317

307:                                              ; preds = %301
  %308 = load i32, ptr %4, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %309) #7
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = shl i32 1, %311
  %313 = load i32, ptr %20, align 4, !tbaa !5
  %314 = or i32 %313, %312
  store i32 %314, ptr %20, align 4, !tbaa !5
  %315 = load i32, ptr %21, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %21, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %307, %301
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %4, align 4, !tbaa !5
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %4, align 4, !tbaa !5
  br label %297, !llvm.loop !21

321:                                              ; preds = %297
  %322 = load i32, ptr %21, align 4, !tbaa !5
  %323 = and i32 %322, 1
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %325, label %332

325:                                              ; preds = %321
  %326 = load i32, ptr %20, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = load i32, ptr %19, align 4, !tbaa !5
  %331 = add nsw i32 %330, %329
  store i32 %331, ptr %19, align 4, !tbaa !5
  br label %339

332:                                              ; preds = %321
  %333 = load i32, ptr %20, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !5
  %337 = load i32, ptr %19, align 4, !tbaa !5
  %338 = sub nsw i32 %337, %336
  store i32 %338, ptr %19, align 4, !tbaa !5
  br label %339

339:                                              ; preds = %332, %325
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %340

340:                                              ; preds = %339
  %341 = load i32, ptr %3, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %3, align 4, !tbaa !5
  br label %291, !llvm.loop !22

343:                                              ; preds = %291
  %344 = load i32, ptr %9, align 4, !tbaa !5
  %345 = load i32, ptr %19, align 4, !tbaa !5
  %346 = sub nsw i32 %344, %345
  %347 = load i32, ptr %17, align 4, !tbaa !5
  %348 = add nsw i32 %347, %346
  store i32 %348, ptr %17, align 4, !tbaa !5
  %349 = load i32, ptr %17, align 4, !tbaa !5
  %350 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %349)
          to label %351 unwind label %354

351:                                              ; preds = %343
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %353 unwind label %354

353:                                              ; preds = %351
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %359

354:                                              ; preds = %351, %343
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %10, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %358

358:                                              ; preds = %354, %280
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %364

359:                                              ; preds = %353, %259
  br label %360

360:                                              ; preds = %359, %229
  br label %361

361:                                              ; preds = %360, %132
  br label %24, !llvm.loop !23

362:                                              ; preds = %24
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %363 = load i32, ptr %1, align 4
  ret i32 %363

364:                                              ; preds = %358, %260, %179, %82, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %365

365:                                              ; preds = %364
  %366 = load ptr, ptr %10, align 8
  %367 = load i32, ptr %11, align 4
  %368 = insertvalue { ptr, i32 } poison, ptr %366, 0
  %369 = insertvalue { ptr, i32 } %368, i32 %367, 1
  resume { ptr, i32 } %369
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #7 = { nounwind }

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

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


; 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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@c = external dso_local local_unnamed_addr global [65545 x i32], align 16
@small = external dso_local local_unnamed_addr global [65545 x i32], align 16
@big = external dso_local local_unnamed_addr global [65545 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader82 unwind label %.loopexit.split-lp

.preheader82:                                     ; preds = %0
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr %4, align 4, !tbaa !5
  %.not127 = icmp eq i32 %9, 0
  br i1 %.not127, label %._crit_edge130, label %.lr.ph129

.lr.ph129:                                        ; preds = %.preheader82, %203
  %.053128 = phi i32 [ %.154, %203 ], [ 0, %.preheader82 ]
  %11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %12 unwind label %.loopexit

12:                                               ; preds = %.lr.ph129
  %13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %14 unwind label %.loopexit

14:                                               ; preds = %12
  %15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %16 = load i8, ptr %15, align 1, !tbaa !9
  %17 = icmp eq i8 %16, 97
  br i1 %17, label %18, label %73

18:                                               ; preds = %14
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %19)
  %21 = icmp ult i32 %20, 9
  br i1 %21, label %22, label %36

22:                                               ; preds = %18
  %23 = sext i32 %19 to i64
  %24 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 4, !tbaa !5
  %27 = icmp sgt i32 %19, 0
  br i1 %27, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %22, %.lr.ph124
  %storemerge80122 = phi i32 [ %33, %.lr.ph124 ], [ %19, %22 ]
  %28 = zext nneg i32 %storemerge80122 to i64
  %29 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !5
  %32 = add nuw i32 %storemerge80122, 2147483647
  %33 = and i32 %32, %19
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph124, label %._crit_edge125, !llvm.loop !10

.loopexit:                                        ; preds = %.lr.ph129, %12
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %206

.loopexit.split-lp:                               ; preds = %0
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %206

._crit_edge125:                                   ; preds = %.lr.ph124, %22
  %storemerge80.lcssa = phi i32 [ %19, %22 ], [ %33, %.lr.ph124 ]
  store i32 %storemerge80.lcssa, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %.053128, 1
  br label %203

36:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %36, %44
  %storemerge74112 = phi i32 [ 0, %36 ], [ %46, %44 ]
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = shl nuw nsw i32 1, %storemerge74112
  %40 = and i32 %38, %39
  %.not77 = icmp eq i32 %40, 0
  br i1 %.not77, label %41, label %44

41:                                               ; preds = %37
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %._crit_edge151 unwind label %42

._crit_edge151:                                   ; preds = %41
  %.pre152 = load i32, ptr %2, align 4, !tbaa !5
  br label %44

42:                                               ; preds = %41
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %206

44:                                               ; preds = %._crit_edge151, %37
  %45 = phi i32 [ %.pre152, %._crit_edge151 ], [ %storemerge74112, %37 ]
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %2, align 4, !tbaa !5
  %47 = icmp slt i32 %45, 15
  br i1 %47, label %37, label %48, !llvm.loop !12

48:                                               ; preds = %44
  %49 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %50 = trunc i64 %49 to i32
  %51 = shl nuw i32 1, %50
  store i32 0, ptr %2, align 4, !tbaa !5
  %.not132 = icmp eq i32 %50, 31
  br i1 %.not132, label %._crit_edge121, label %.lr.ph120

.lr.ph120:                                        ; preds = %48
  %52 = icmp sgt i32 %50, 0
  %wide.trip.count145 = and i64 %49, 2147483647
  br label %53

53:                                               ; preds = %.lr.ph120, %._crit_edge117
  %54 = phi i32 [ 0, %.lr.ph120 ], [ %71, %._crit_edge117 ]
  %55 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %52, label %.lr.ph116, label %._crit_edge117

.lr.ph116:                                        ; preds = %53, %65
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %65 ], [ 0, %53 ]
  %.047114 = phi i32 [ %.148, %65 ], [ %55, %53 ]
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = trunc nuw nsw i64 %indvars.iv142 to i32
  %58 = shl nuw i32 1, %57
  %59 = and i32 %56, %58
  %.not76 = icmp eq i32 %59, 0
  br i1 %.not76, label %65, label %60

60:                                               ; preds = %.lr.ph116
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv142) #7
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = shl nuw i32 1, %62
  %64 = or i32 %63, %.047114
  br label %65

65:                                               ; preds = %.lr.ph116, %60
  %.148 = phi i32 [ %64, %60 ], [ %.047114, %.lr.ph116 ]
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count145
  br i1 %exitcond146.not, label %._crit_edge117.loopexit, label %.lr.ph116, !llvm.loop !13

._crit_edge117.loopexit:                          ; preds = %65
  %.pre153 = load i32, ptr %2, align 4, !tbaa !5
  br label %._crit_edge117

._crit_edge117:                                   ; preds = %._crit_edge117.loopexit, %53
  %66 = phi i32 [ %54, %53 ], [ %.pre153, %._crit_edge117.loopexit ]
  %.047.lcssa = phi i32 [ %55, %53 ], [ %.148, %._crit_edge117.loopexit ]
  %67 = sext i32 %.047.lcssa to i64
  %68 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !5
  %71 = add nsw i32 %66, 1
  store i32 %71, ptr %2, align 4, !tbaa !5
  %72 = icmp slt i32 %71, %51
  br i1 %72, label %53, label %._crit_edge121, !llvm.loop !14

._crit_edge121:                                   ; preds = %._crit_edge117, %48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %203

73:                                               ; preds = %14
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %75 = load i8, ptr %74, align 1, !tbaa !9
  %76 = icmp eq i8 %75, 100
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %77)
  %79 = icmp ult i32 %78, 9
  br i1 %76, label %80, label %132

80:                                               ; preds = %73
  br i1 %79, label %81, label %95

81:                                               ; preds = %80
  %82 = sext i32 %77 to i64
  %83 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = add nsw i32 %84, -1
  store i32 %85, ptr %83, align 4, !tbaa !5
  %86 = icmp sgt i32 %77, 0
  br i1 %86, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %81, %.lr.ph109
  %storemerge73107 = phi i32 [ %92, %.lr.ph109 ], [ %77, %81 ]
  %87 = zext nneg i32 %storemerge73107 to i64
  %88 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr %88, align 4, !tbaa !5
  %91 = add nuw i32 %storemerge73107, 2147483647
  %92 = and i32 %91, %77
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph109, label %._crit_edge110, !llvm.loop !15

._crit_edge110:                                   ; preds = %.lr.ph109, %81
  %storemerge73.lcssa = phi i32 [ %77, %81 ], [ %92, %.lr.ph109 ]
  store i32 %storemerge73.lcssa, ptr %2, align 4, !tbaa !5
  %94 = add nsw i32 %.053128, -1
  br label %203

95:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %95, %103
  %storemerge6997 = phi i32 [ 0, %95 ], [ %105, %103 ]
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = shl nuw nsw i32 1, %storemerge6997
  %99 = and i32 %97, %98
  %.not72 = icmp eq i32 %99, 0
  br i1 %.not72, label %100, label %103

100:                                              ; preds = %96
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %._crit_edge148 unwind label %101

._crit_edge148:                                   ; preds = %100
  %.pre149 = load i32, ptr %2, align 4, !tbaa !5
  br label %103

101:                                              ; preds = %100
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %206

103:                                              ; preds = %._crit_edge148, %96
  %104 = phi i32 [ %.pre149, %._crit_edge148 ], [ %storemerge6997, %96 ]
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %2, align 4, !tbaa !5
  %106 = icmp slt i32 %104, 15
  br i1 %106, label %96, label %107, !llvm.loop !16

107:                                              ; preds = %103
  %108 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %109 = trunc i64 %108 to i32
  %110 = shl nuw i32 1, %109
  store i32 0, ptr %2, align 4, !tbaa !5
  %.not131 = icmp eq i32 %109, 31
  br i1 %.not131, label %._crit_edge106, label %.lr.ph105

.lr.ph105:                                        ; preds = %107
  %111 = icmp sgt i32 %109, 0
  %wide.trip.count140 = and i64 %108, 2147483647
  br label %112

112:                                              ; preds = %.lr.ph105, %._crit_edge102
  %113 = phi i32 [ 0, %.lr.ph105 ], [ %130, %._crit_edge102 ]
  %114 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %111, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %112, %124
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %124 ], [ 0, %112 ]
  %.04599 = phi i32 [ %.146, %124 ], [ %114, %112 ]
  %115 = load i32, ptr %2, align 4, !tbaa !5
  %116 = trunc nuw nsw i64 %indvars.iv137 to i32
  %117 = shl nuw i32 1, %116
  %118 = and i32 %115, %117
  %.not71 = icmp eq i32 %118, 0
  br i1 %.not71, label %124, label %119

119:                                              ; preds = %.lr.ph101
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv137) #7
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = shl nuw i32 1, %121
  %123 = or i32 %122, %.04599
  br label %124

124:                                              ; preds = %.lr.ph101, %119
  %.146 = phi i32 [ %123, %119 ], [ %.04599, %.lr.ph101 ]
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count140
  br i1 %exitcond141.not, label %._crit_edge102.loopexit, label %.lr.ph101, !llvm.loop !17

._crit_edge102.loopexit:                          ; preds = %124
  %.pre150 = load i32, ptr %2, align 4, !tbaa !5
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %._crit_edge102.loopexit, %112
  %125 = phi i32 [ %113, %112 ], [ %.pre150, %._crit_edge102.loopexit ]
  %.045.lcssa = phi i32 [ %114, %112 ], [ %.146, %._crit_edge102.loopexit ]
  %126 = sext i32 %.045.lcssa to i64
  %127 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = add nsw i32 %128, -1
  store i32 %129, ptr %127, align 4, !tbaa !5
  %130 = add nsw i32 %125, 1
  store i32 %130, ptr %2, align 4, !tbaa !5
  %131 = icmp slt i32 %130, %110
  br i1 %131, label %112, label %._crit_edge106, !llvm.loop !18

._crit_edge106:                                   ; preds = %._crit_edge102, %107
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %203

132:                                              ; preds = %73
  br i1 %79, label %.preheader81, label %148

.preheader81:                                     ; preds = %132
  %133 = icmp sgt i32 %77, 0
  br i1 %133, label %.lr.ph93, label %._crit_edge94

.lr.ph93:                                         ; preds = %.preheader81, %.lr.ph93
  %.04492 = phi i32 [ %137, %.lr.ph93 ], [ 0, %.preheader81 ]
  %storemerge6891 = phi i32 [ %139, %.lr.ph93 ], [ %77, %.preheader81 ]
  %134 = zext nneg i32 %storemerge6891 to i64
  %135 = getelementptr inbounds [65545 x i32], ptr @small, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = add nsw i32 %136, %.04492
  %138 = add nuw i32 %storemerge6891, 2147483647
  %139 = and i32 %138, %77
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %.lr.ph93, label %._crit_edge94, !llvm.loop !19

._crit_edge94:                                    ; preds = %.lr.ph93, %.preheader81
  %storemerge68.lcssa = phi i32 [ %77, %.preheader81 ], [ %139, %.lr.ph93 ]
  %.044.lcssa = phi i32 [ 0, %.preheader81 ], [ %137, %.lr.ph93 ]
  store i32 %storemerge68.lcssa, ptr %2, align 4, !tbaa !5
  %141 = load i32, ptr @small, align 16, !tbaa !5
  %142 = add nsw i32 %141, %.044.lcssa
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %142)
          to label %144 unwind label %146

144:                                              ; preds = %._crit_edge94
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %203 unwind label %146

146:                                              ; preds = %144, %._crit_edge94
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %206

148:                                              ; preds = %132
  %149 = sext i32 %77 to i64
  %150 = getelementptr inbounds [65545 x i32], ptr @big, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %148, %159
  %storemerge83 = phi i32 [ 0, %148 ], [ %161, %159 ]
  %153 = load i32, ptr %3, align 4, !tbaa !5
  %154 = shl nuw nsw i32 1, %storemerge83
  %155 = and i32 %153, %154
  %.not66 = icmp eq i32 %155, 0
  br i1 %.not66, label %156, label %159

156:                                              ; preds = %152
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %._crit_edge147 unwind label %157

._crit_edge147:                                   ; preds = %156
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %159

157:                                              ; preds = %156
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %202

159:                                              ; preds = %._crit_edge147, %152
  %160 = phi i32 [ %.pre, %._crit_edge147 ], [ %storemerge83, %152 ]
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %2, align 4, !tbaa !5
  %162 = icmp slt i32 %160, 15
  br i1 %162, label %152, label %163, !llvm.loop !20

163:                                              ; preds = %159
  %164 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %165 = trunc i64 %164 to i32
  %166 = shl nuw i32 1, %165
  store i32 1, ptr %2, align 4, !tbaa !5
  %167 = icmp sgt i32 %166, 1
  br i1 %167, label %.preheader.lr.ph, label %._crit_edge89

.preheader.lr.ph:                                 ; preds = %163
  %168 = icmp sgt i32 %165, 0
  %wide.trip.count = and i64 %164, 2147483647
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %190
  %.04288 = phi i32 [ 0, %.preheader.lr.ph ], [ %.143, %190 ]
  br i1 %168, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %.preheader, %179
  %indvars.iv = phi i64 [ %indvars.iv.next, %179 ], [ 0, %.preheader ]
  %.086 = phi i32 [ %.1, %179 ], [ 0, %.preheader ]
  %.04085 = phi i32 [ %.141, %179 ], [ 0, %.preheader ]
  %169 = load i32, ptr %2, align 4, !tbaa !5
  %170 = trunc nuw nsw i64 %indvars.iv to i32
  %171 = shl nuw i32 1, %170
  %172 = and i32 %169, %171
  %.not65 = icmp eq i32 %172, 0
  br i1 %.not65, label %179, label %173

173:                                              ; preds = %.lr.ph
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #7
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = shl nuw i32 1, %175
  %177 = or i32 %176, %.04085
  %178 = add nsw i32 %.086, 1
  br label %179

179:                                              ; preds = %.lr.ph, %173
  %.141 = phi i32 [ %177, %173 ], [ %.04085, %.lr.ph ]
  %.1 = phi i32 [ %178, %173 ], [ %.086, %.lr.ph ]
  %indvars.iv.next = add nuw 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 !21

._crit_edge:                                      ; preds = %179
  %180 = and i32 %.1, 1
  %.not64 = icmp eq i32 %180, 0
  br i1 %.not64, label %._crit_edge.thread, label %181

181:                                              ; preds = %._crit_edge
  %182 = sext i32 %.141 to i64
  %183 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = add nsw i32 %184, %.04288
  br label %190

._crit_edge.thread:                               ; preds = %.preheader, %._crit_edge
  %.040.lcssa157 = phi i32 [ %.141, %._crit_edge ], [ 0, %.preheader ]
  %186 = sext i32 %.040.lcssa157 to i64
  %187 = getelementptr inbounds [65545 x i32], ptr @c, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sub nsw i32 %.04288, %188
  br label %190

190:                                              ; preds = %._crit_edge.thread, %181
  %.143 = phi i32 [ %185, %181 ], [ %189, %._crit_edge.thread ]
  %191 = load i32, ptr %2, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %2, align 4, !tbaa !5
  %193 = icmp slt i32 %192, %166
  br i1 %193, label %.preheader, label %._crit_edge89, !llvm.loop !22

._crit_edge89:                                    ; preds = %190, %163
  %.042.lcssa = phi i32 [ 0, %163 ], [ %.143, %190 ]
  %194 = add i32 %151, %.053128
  %195 = sub i32 %194, %.042.lcssa
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %195)
          to label %197 unwind label %200

197:                                              ; preds = %._crit_edge89
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %199 unwind label %200

199:                                              ; preds = %197
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %203

200:                                              ; preds = %197, %._crit_edge89
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %202

202:                                              ; preds = %200, %157
  %.pn = phi { ptr, i32 } [ %158, %157 ], [ %201, %200 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %206

203:                                              ; preds = %144, %._crit_edge106, %._crit_edge110, %199, %._crit_edge125, %._crit_edge121
  %.154 = phi i32 [ %35, %._crit_edge125 ], [ %.053128, %._crit_edge121 ], [ %94, %._crit_edge110 ], [ %.053128, %._crit_edge106 ], [ %.053128, %199 ], [ %.053128, %144 ]
  %204 = load i32, ptr %4, align 4, !tbaa !5
  %205 = add nsw i32 %204, -1
  store i32 %205, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i32 %204, 0
  br i1 %.not, label %._crit_edge130, label %.lr.ph129, !llvm.loop !23

._crit_edge130:                                   ; preds = %203, %.preheader82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

206:                                              ; preds = %.loopexit, %.loopexit.split-lp, %202, %146, %101, %42
  %.pn78 = phi { ptr, i32 } [ %43, %42 ], [ %102, %101 ], [ %147, %146 ], [ %.pn, %202 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn78
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass