; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/297 Division 2/Problem E (E)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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" }

@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@a = external dso_local global [30 x i32], align 16
@nn = external dso_local global i32, align 4
@mm = external dso_local global i32, align 4
@s = external dso_local global i64, align 8
@f = external dso_local global [20 x i64], align 16
@ans = external dso_local global i64, align 8
@cnt = external dso_local global [30 x %"class.std::map"], 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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %22 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(4) @k)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(8) @s)
  store i64 1, ptr @f, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %52, %0
  %37 = load i32, ptr %2, align 4, !tbaa !11
  %38 = icmp slt i32 %37, 19
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %36
  %41 = load i32, ptr %2, align 4, !tbaa !11
  %42 = sub nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !8
  %46 = load i32, ptr %2, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = mul nsw i64 %45, %47
  %49 = load i32, ptr %2, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %50
  store i64 %48, ptr %51, align 8, !tbaa !8
  br label %52

52:                                               ; preds = %40
  %53 = load i32, ptr %2, align 4, !tbaa !11
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %2, align 4, !tbaa !11
  br label %36, !llvm.loop !13

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

56:                                               ; preds = %66, %55
  %57 = load i32, ptr %3, align 4, !tbaa !11
  %58 = load i32, ptr @n, align 4, !tbaa !11
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %56
  %62 = load i32, ptr %3, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %63
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %64)
  br label %66

66:                                               ; preds = %61
  %67 = load i32, ptr %3, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %3, align 4, !tbaa !11
  br label %56, !llvm.loop !15

69:                                               ; preds = %60
  %70 = load i32, ptr @n, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr @a, i64 %71
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @a, ptr noundef %72)
  %73 = load i32, ptr @n, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  %75 = sdiv i32 %74, 2
  store i32 %75, ptr @nn, align 4, !tbaa !11
  %76 = load i32, ptr @n, align 4, !tbaa !11
  %77 = load i32, ptr @nn, align 4, !tbaa !11
  %78 = sub nsw i32 %76, %77
  store i32 %78, ptr @mm, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i64 1, ptr %79, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %210, %69
  %81 = load i32, ptr %5, align 4, !tbaa !11
  %82 = load i32, ptr @nn, align 4, !tbaa !11
  %83 = shl i32 1, %82
  %84 = icmp slt i32 %81, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %80
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %213

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

87:                                               ; preds = %107, %86
  %88 = load i32, ptr %8, align 4, !tbaa !11
  %89 = load i32, ptr @nn, align 4, !tbaa !11
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %110

92:                                               ; preds = %87
  %93 = load i32, ptr %5, align 4, !tbaa !11
  %94 = load i32, ptr %8, align 4, !tbaa !11
  %95 = shl i32 1, %94
  %96 = and i32 %93, %95
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %106

98:                                               ; preds = %92
  %99 = load i32, ptr %8, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = load i64, ptr %7, align 8, !tbaa !8
  %105 = add nsw i64 %104, %103
  store i64 %105, ptr %7, align 8, !tbaa !8
  br label %106

106:                                              ; preds = %98, %92
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %8, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %8, align 4, !tbaa !11
  br label %87, !llvm.loop !16

110:                                              ; preds = %91
  %111 = load i64, ptr %7, align 8, !tbaa !8
  %112 = load i64, ptr @s, align 8, !tbaa !8
  %113 = icmp sgt i64 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  store i32 10, ptr %6, align 4
  br label %207

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %116 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %116, ptr %9, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %200, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %118 = load i64, ptr %7, align 8, !tbaa !8
  store i64 %118, ptr %11, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %119

119:                                              ; preds = %167, %117
  %120 = load i32, ptr %12, align 4, !tbaa !11
  %121 = load i32, ptr @nn, align 4, !tbaa !11
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %123, label %131

123:                                              ; preds = %119
  %124 = load i32, ptr %10, align 4, !tbaa !11
  %125 = load i32, ptr @k, align 4, !tbaa !11
  %126 = icmp sle i32 %124, %125
  br i1 %126, label %127, label %131

127:                                              ; preds = %123
  %128 = load i64, ptr %11, align 8, !tbaa !8
  %129 = load i64, ptr @s, align 8, !tbaa !8
  %130 = icmp sle i64 %128, %129
  br label %131

131:                                              ; preds = %127, %123, %119
  %132 = phi i1 [ false, %123 ], [ false, %119 ], [ %130, %127 ]
  br i1 %132, label %134, label %133

133:                                              ; preds = %131
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %170

134:                                              ; preds = %131
  %135 = load i32, ptr %9, align 4, !tbaa !11
  %136 = load i32, ptr %12, align 4, !tbaa !11
  %137 = shl i32 1, %136
  %138 = and i32 %135, %137
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %140, label %166

140:                                              ; preds = %134
  %141 = load i32, ptr %10, align 4, !tbaa !11
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %10, align 4, !tbaa !11
  %143 = load i32, ptr %12, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !11
  %147 = icmp slt i32 %146, 19
  br i1 %147, label %148, label %164

148:                                              ; preds = %140
  %149 = load i32, ptr %12, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !11
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !8
  %156 = load i32, ptr %12, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = sub nsw i64 %155, %160
  %162 = load i64, ptr %11, align 8, !tbaa !8
  %163 = add nsw i64 %162, %161
  store i64 %163, ptr %11, align 8, !tbaa !8
  br label %165

164:                                              ; preds = %140
  store i32 100, ptr %10, align 4, !tbaa !11
  br label %165

165:                                              ; preds = %164, %148
  br label %166

166:                                              ; preds = %165, %134
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %12, align 4, !tbaa !11
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %12, align 4, !tbaa !11
  br label %119, !llvm.loop !17

170:                                              ; preds = %133
  %171 = load i32, ptr %10, align 4, !tbaa !11
  %172 = load i32, ptr @k, align 4, !tbaa !11
  %173 = icmp sgt i32 %171, %172
  br i1 %173, label %181, label %174

174:                                              ; preds = %170
  %175 = load i64, ptr %11, align 8, !tbaa !8
  %176 = load i64, ptr @s, align 8, !tbaa !8
  %177 = icmp sgt i64 %175, %176
  br i1 %177, label %181, label %178

178:                                              ; preds = %174
  %179 = load i64, ptr %11, align 8, !tbaa !8
  %180 = icmp eq i64 %179, 0
  br i1 %180, label %181, label %186

181:                                              ; preds = %178, %174, %170
  %182 = load i32, ptr %9, align 4, !tbaa !11
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %185

184:                                              ; preds = %181
  store i32 14, ptr %6, align 4
  br label %197

185:                                              ; preds = %181
  store i32 16, ptr %6, align 4
  br label %197

186:                                              ; preds = %178
  %187 = load i32, ptr %10, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [30 x %"class.std::map"], ptr @cnt, i64 0, i64 %188
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %189, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %191 = load i64, ptr %190, align 8, !tbaa !8
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %190, align 8, !tbaa !8
  %193 = load i32, ptr %9, align 4, !tbaa !11
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %196

195:                                              ; preds = %186
  store i32 14, ptr %6, align 4
  br label %197

196:                                              ; preds = %186
  store i32 0, ptr %6, align 4
  br label %197

197:                                              ; preds = %196, %195, %185, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %198 = load i32, ptr %6, align 4
  switch i32 %198, label %205 [
    i32 0, label %199
    i32 16, label %200
  ]

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199, %197
  %201 = load i32, ptr %9, align 4, !tbaa !11
  %202 = sub nsw i32 %201, 1
  %203 = load i32, ptr %5, align 4, !tbaa !11
  %204 = and i32 %202, %203
  store i32 %204, ptr %9, align 4, !tbaa !11
  br label %117, !llvm.loop !18

205:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %206

206:                                              ; preds = %205
  store i32 0, ptr %6, align 4
  br label %207

207:                                              ; preds = %206, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %208 = load i32, ptr %6, align 4
  switch i32 %208, label %372 [
    i32 0, label %209
    i32 10, label %210
  ]

209:                                              ; preds = %207
  br label %210

210:                                              ; preds = %209, %207
  %211 = load i32, ptr %5, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %5, align 4, !tbaa !11
  br label %80, !llvm.loop !19

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

214:                                              ; preds = %365, %213
  %215 = load i32, ptr %13, align 4, !tbaa !11
  %216 = load i32, ptr @mm, align 4, !tbaa !11
  %217 = shl i32 1, %216
  %218 = icmp slt i32 %215, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %214
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %368

220:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %221

221:                                              ; preds = %243, %220
  %222 = load i32, ptr %15, align 4, !tbaa !11
  %223 = load i32, ptr @mm, align 4, !tbaa !11
  %224 = icmp slt i32 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %246

226:                                              ; preds = %221
  %227 = load i32, ptr %13, align 4, !tbaa !11
  %228 = load i32, ptr %15, align 4, !tbaa !11
  %229 = shl i32 1, %228
  %230 = and i32 %227, %229
  %231 = icmp sgt i32 %230, 0
  br i1 %231, label %232, label %242

232:                                              ; preds = %226
  %233 = load i32, ptr @nn, align 4, !tbaa !11
  %234 = load i32, ptr %15, align 4, !tbaa !11
  %235 = add nsw i32 %233, %234
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !11
  %239 = sext i32 %238 to i64
  %240 = load i64, ptr %14, align 8, !tbaa !8
  %241 = add nsw i64 %240, %239
  store i64 %241, ptr %14, align 8, !tbaa !8
  br label %242

242:                                              ; preds = %232, %226
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %15, align 4, !tbaa !11
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %15, align 4, !tbaa !11
  br label %221, !llvm.loop !20

246:                                              ; preds = %225
  %247 = load i64, ptr %14, align 8, !tbaa !8
  %248 = load i64, ptr @s, align 8, !tbaa !8
  %249 = icmp sgt i64 %247, %248
  br i1 %249, label %250, label %251

250:                                              ; preds = %246
  store i32 22, ptr %6, align 4
  br label %362

251:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %252 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %252, ptr %16, align 4, !tbaa !11
  br label %253

253:                                              ; preds = %355, %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %254 = load i64, ptr %14, align 8, !tbaa !8
  store i64 %254, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %255

255:                                              ; preds = %309, %253
  %256 = load i32, ptr %19, align 4, !tbaa !11
  %257 = load i32, ptr @mm, align 4, !tbaa !11
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %259, label %267

259:                                              ; preds = %255
  %260 = load i32, ptr %17, align 4, !tbaa !11
  %261 = load i32, ptr @k, align 4, !tbaa !11
  %262 = icmp sle i32 %260, %261
  br i1 %262, label %263, label %267

263:                                              ; preds = %259
  %264 = load i64, ptr %18, align 8, !tbaa !8
  %265 = load i64, ptr @s, align 8, !tbaa !8
  %266 = icmp sle i64 %264, %265
  br label %267

267:                                              ; preds = %263, %259, %255
  %268 = phi i1 [ false, %259 ], [ false, %255 ], [ %266, %263 ]
  br i1 %268, label %270, label %269

269:                                              ; preds = %267
  store i32 29, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %312

270:                                              ; preds = %267
  %271 = load i32, ptr %16, align 4, !tbaa !11
  %272 = load i32, ptr %19, align 4, !tbaa !11
  %273 = shl i32 1, %272
  %274 = and i32 %271, %273
  %275 = icmp sgt i32 %274, 0
  br i1 %275, label %276, label %308

276:                                              ; preds = %270
  %277 = load i32, ptr %17, align 4, !tbaa !11
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %17, align 4, !tbaa !11
  %279 = load i32, ptr @nn, align 4, !tbaa !11
  %280 = load i32, ptr %19, align 4, !tbaa !11
  %281 = add nsw i32 %279, %280
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !11
  %285 = icmp slt i32 %284, 19
  br i1 %285, label %286, label %306

286:                                              ; preds = %276
  %287 = load i32, ptr @nn, align 4, !tbaa !11
  %288 = load i32, ptr %19, align 4, !tbaa !11
  %289 = add nsw i32 %287, %288
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %290
  %292 = load i32, ptr %291, align 4, !tbaa !11
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %293
  %295 = load i64, ptr %294, align 8, !tbaa !8
  %296 = load i32, ptr @nn, align 4, !tbaa !11
  %297 = load i32, ptr %19, align 4, !tbaa !11
  %298 = add nsw i32 %296, %297
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !11
  %302 = sext i32 %301 to i64
  %303 = sub nsw i64 %295, %302
  %304 = load i64, ptr %18, align 8, !tbaa !8
  %305 = add nsw i64 %304, %303
  store i64 %305, ptr %18, align 8, !tbaa !8
  br label %307

306:                                              ; preds = %276
  store i32 100, ptr %17, align 4, !tbaa !11
  br label %307

307:                                              ; preds = %306, %286
  br label %308

308:                                              ; preds = %307, %270
  br label %309

309:                                              ; preds = %308
  %310 = load i32, ptr %19, align 4, !tbaa !11
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %19, align 4, !tbaa !11
  br label %255, !llvm.loop !21

312:                                              ; preds = %269
  %313 = load i32, ptr %17, align 4, !tbaa !11
  %314 = load i32, ptr @k, align 4, !tbaa !11
  %315 = icmp sgt i32 %313, %314
  br i1 %315, label %320, label %316

316:                                              ; preds = %312
  %317 = load i64, ptr %18, align 8, !tbaa !8
  %318 = load i64, ptr @s, align 8, !tbaa !8
  %319 = icmp sgt i64 %317, %318
  br i1 %319, label %320, label %325

320:                                              ; preds = %316, %312
  %321 = load i32, ptr %16, align 4, !tbaa !11
  %322 = icmp eq i32 %321, 0
  br i1 %322, label %323, label %324

323:                                              ; preds = %320
  store i32 26, ptr %6, align 4
  br label %352

324:                                              ; preds = %320
  store i32 28, ptr %6, align 4
  br label %352

325:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %326

326:                                              ; preds = %344, %325
  %327 = load i32, ptr %20, align 4, !tbaa !11
  %328 = load i32, ptr @k, align 4, !tbaa !11
  %329 = load i32, ptr %17, align 4, !tbaa !11
  %330 = sub nsw i32 %328, %329
  %331 = icmp sle i32 %327, %330
  br i1 %331, label %333, label %332

332:                                              ; preds = %326
  store i32 32, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %347

333:                                              ; preds = %326
  %334 = load i32, ptr %20, align 4, !tbaa !11
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [30 x %"class.std::map"], ptr @cnt, i64 0, i64 %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %337 = load i64, ptr @s, align 8, !tbaa !8
  %338 = load i64, ptr %18, align 8, !tbaa !8
  %339 = sub nsw i64 %337, %338
  store i64 %339, ptr %21, align 8, !tbaa !8
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) %336, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %341 = load i64, ptr %340, align 8, !tbaa !8
  %342 = load i64, ptr @ans, align 8, !tbaa !8
  %343 = add nsw i64 %342, %341
  store i64 %343, ptr @ans, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %344

344:                                              ; preds = %333
  %345 = load i32, ptr %20, align 4, !tbaa !11
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %20, align 4, !tbaa !11
  br label %326, !llvm.loop !22

347:                                              ; preds = %332
  %348 = load i32, ptr %16, align 4, !tbaa !11
  %349 = icmp eq i32 %348, 0
  br i1 %349, label %350, label %351

350:                                              ; preds = %347
  store i32 26, ptr %6, align 4
  br label %352

351:                                              ; preds = %347
  store i32 0, ptr %6, align 4
  br label %352

352:                                              ; preds = %351, %350, %324, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %353 = load i32, ptr %6, align 4
  switch i32 %353, label %360 [
    i32 0, label %354
    i32 28, label %355
  ]

354:                                              ; preds = %352
  br label %355

355:                                              ; preds = %354, %352
  %356 = load i32, ptr %16, align 4, !tbaa !11
  %357 = sub nsw i32 %356, 1
  %358 = load i32, ptr %13, align 4, !tbaa !11
  %359 = and i32 %357, %358
  store i32 %359, ptr %16, align 4, !tbaa !11
  br label %253, !llvm.loop !23

360:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %361

361:                                              ; preds = %360
  store i32 0, ptr %6, align 4
  br label %362

362:                                              ; preds = %361, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %363 = load i32, ptr %6, align 4
  switch i32 %363, label %372 [
    i32 0, label %364
    i32 22, label %365
  ]

364:                                              ; preds = %362
  br label %365

365:                                              ; preds = %364, %362
  %366 = load i32, ptr %13, align 4, !tbaa !11
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %13, align 4, !tbaa !11
  br label %214, !llvm.loop !24

368:                                              ; preds = %219
  %369 = load i64, ptr @ans, align 8, !tbaa !8
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %369)
  %371 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

372:                                              ; preds = %362, %207
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

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 = { "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 = { 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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" }

@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@a = external dso_local global [30 x i32], align 16
@nn = external dso_local local_unnamed_addr global i32, align 4
@mm = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local global i64, align 8
@f = external dso_local local_unnamed_addr global [20 x i64], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@cnt = external dso_local global [30 x %"class.std::map"], 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 {
.preheader124:
  %0 = alloca i64, align 8
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = 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) @n)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) @k)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) @s)
  store i64 1, ptr @f, align 16, !tbaa !8
  store i64 1, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !8
  store i64 2, ptr getelementptr inbounds (i8, ptr @f, i64 16), align 16, !tbaa !8
  store i64 6, ptr getelementptr inbounds (i8, ptr @f, i64 24), align 8, !tbaa !8
  store i64 24, ptr getelementptr inbounds (i8, ptr @f, i64 32), align 16, !tbaa !8
  store i64 120, ptr getelementptr inbounds (i8, ptr @f, i64 40), align 8, !tbaa !8
  store i64 720, ptr getelementptr inbounds (i8, ptr @f, i64 48), align 16, !tbaa !8
  store i64 5040, ptr getelementptr inbounds (i8, ptr @f, i64 56), align 8, !tbaa !8
  store i64 40320, ptr getelementptr inbounds (i8, ptr @f, i64 64), align 16, !tbaa !8
  store i64 362880, ptr getelementptr inbounds (i8, ptr @f, i64 72), align 8, !tbaa !8
  store i64 3628800, ptr getelementptr inbounds (i8, ptr @f, i64 80), align 16, !tbaa !8
  store i64 39916800, ptr getelementptr inbounds (i8, ptr @f, i64 88), align 8, !tbaa !8
  store i64 479001600, ptr getelementptr inbounds (i8, ptr @f, i64 96), align 16, !tbaa !8
  store i64 6227020800, ptr getelementptr inbounds (i8, ptr @f, i64 104), align 8, !tbaa !8
  store i64 87178291200, ptr getelementptr inbounds (i8, ptr @f, i64 112), align 16, !tbaa !8
  store i64 1307674368000, ptr getelementptr inbounds (i8, ptr @f, i64 120), align 8, !tbaa !8
  store i64 20922789888000, ptr getelementptr inbounds (i8, ptr @f, i64 128), align 16, !tbaa !8
  store i64 355687428096000, ptr getelementptr inbounds (i8, ptr @f, i64 136), align 8, !tbaa !8
  store i64 6402373705728000, ptr getelementptr inbounds (i8, ptr @f, i64 144), align 16, !tbaa !8
  %17 = load i32, ptr @n, align 4, !tbaa !11
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %.preheader124.._crit_edge_crit_edge

.preheader124.._crit_edge_crit_edge:              ; preds = %.preheader124
  %.pre219 = sext i32 %17 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader124.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre219, %.preheader124.._crit_edge_crit_edge ], [ %29, %.lr.ph ]
  %19 = getelementptr inbounds i32, ptr @a, i64 %.pre-phi
  tail call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @a, ptr noundef nonnull %19)
  %20 = load i32, ptr @n, align 4, !tbaa !11
  %21 = add nsw i32 %20, 1
  %22 = sdiv i32 %21, 2
  store i32 %22, ptr @nn, align 4, !tbaa !11
  %23 = sub nsw i32 %20, %22
  store i32 %23, ptr @mm, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %0) #6
  store i64 0, ptr %0, align 8, !tbaa !8
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) @cnt, ptr noundef nonnull align 8 dereferenceable(8) %0)
  store i64 1, ptr %24, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %0) #6
  %25 = load i32, ptr @nn, align 4, !tbaa !11
  %.not169 = icmp eq i32 %25, 31
  br i1 %.not169, label %.preheader121, label %.preheader123

.lr.ph:                                           ; preds = %.preheader124, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader124 ]
  %26 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %indvars.iv
  %27 = 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) %26)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @n, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.preheader123:                                    ; preds = %._crit_edge, %108
  %.pre192 = phi i32 [ %.pre192206, %108 ], [ %25, %._crit_edge ]
  %31 = phi i32 [ %109, %108 ], [ %25, %._crit_edge ]
  %.090144 = phi i32 [ %110, %108 ], [ 0, %._crit_edge ]
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph129.preheader, label %._crit_edge130

.lr.ph129.preheader:                              ; preds = %.preheader123
  %wide.trip.count = zext nneg i32 %31 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %33 = icmp eq i32 %31, 1
  br i1 %33, label %._crit_edge130.loopexit.unr-lcssa, label %.lr.ph129.preheader.new

.lr.ph129.preheader.new:                          ; preds = %.lr.ph129.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph129

.preheader121:                                    ; preds = %108, %._crit_edge
  %34 = load i32, ptr @mm, align 4, !tbaa !11
  %.not170 = icmp eq i32 %34, 31
  br i1 %.not170, label %._crit_edge168, label %.preheader120

._crit_edge130.loopexit.unr-lcssa:                ; preds = %61, %.lr.ph129.preheader
  %.187.lcssa.ph = phi i64 [ poison, %.lr.ph129.preheader ], [ %.187.1, %61 ]
  %indvars.iv176.unr = phi i64 [ 0, %.lr.ph129.preheader ], [ %indvars.iv.next177.1, %61 ]
  %.086127.unr = phi i64 [ 0, %.lr.ph129.preheader ], [ %.187.1, %61 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge130, label %.lr.ph129.epil

.lr.ph129.epil:                                   ; preds = %._crit_edge130.loopexit.unr-lcssa
  %35 = trunc nuw nsw i64 %indvars.iv176.unr to i32
  %36 = shl nuw i32 1, %35
  %37 = and i32 %36, %.090144
  %.not102.epil = icmp eq i32 %37, 0
  br i1 %.not102.epil, label %._crit_edge130, label %38

38:                                               ; preds = %.lr.ph129.epil
  %39 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %indvars.iv176.unr
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = add nsw i64 %.086127.unr, %41
  br label %._crit_edge130

._crit_edge130:                                   ; preds = %._crit_edge130.loopexit.unr-lcssa, %38, %.lr.ph129.epil, %.preheader123
  %.promoted = phi i64 [ 0, %.preheader123 ], [ %.187.lcssa.ph, %._crit_edge130.loopexit.unr-lcssa ], [ %42, %38 ], [ %.086127.unr, %.lr.ph129.epil ]
  %43 = load i64, ptr @s, align 8, !tbaa !8
  %44 = icmp sgt i64 %.promoted, %43
  br i1 %44, label %108, label %.preheader122.preheader

.preheader122.preheader:                          ; preds = %._crit_edge130
  %.pre194 = load i32, ptr @k, align 4
  br label %.preheader122

.lr.ph129:                                        ; preds = %61, %.lr.ph129.preheader.new
  %indvars.iv176 = phi i64 [ 0, %.lr.ph129.preheader.new ], [ %indvars.iv.next177.1, %61 ]
  %.086127 = phi i64 [ 0, %.lr.ph129.preheader.new ], [ %.187.1, %61 ]
  %niter = phi i64 [ 0, %.lr.ph129.preheader.new ], [ %niter.next.1, %61 ]
  %45 = trunc nuw nsw i64 %indvars.iv176 to i32
  %46 = shl nuw i32 1, %45
  %47 = and i32 %46, %.090144
  %.not102 = icmp eq i32 %47, 0
  br i1 %.not102, label %.lr.ph129.1, label %48

48:                                               ; preds = %.lr.ph129
  %49 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %indvars.iv176
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = add nsw i64 %.086127, %51
  br label %.lr.ph129.1

.lr.ph129.1:                                      ; preds = %.lr.ph129, %48
  %.187 = phi i64 [ %52, %48 ], [ %.086127, %.lr.ph129 ]
  %indvars.iv.next177 = or disjoint i64 %indvars.iv176, 1
  %53 = trunc nuw nsw i64 %indvars.iv.next177 to i32
  %54 = shl nuw i32 1, %53
  %55 = and i32 %54, %.090144
  %.not102.1 = icmp eq i32 %55, 0
  br i1 %.not102.1, label %61, label %56

56:                                               ; preds = %.lr.ph129.1
  %57 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %indvars.iv.next177
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = add nsw i64 %.187, %59
  br label %61

61:                                               ; preds = %56, %.lr.ph129.1
  %.187.1 = phi i64 [ %60, %56 ], [ %.187, %.lr.ph129.1 ]
  %indvars.iv.next177.1 = add nuw nsw i64 %indvars.iv176, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge130.loopexit.unr-lcssa, label %.lr.ph129, !llvm.loop !15

.preheader122:                                    ; preds = %.preheader122.preheader, %103
  %.pre192205 = phi i32 [ %.pre192203, %103 ], [ %.pre192, %.preheader122.preheader ]
  %62 = phi i32 [ %104, %103 ], [ %.pre194, %.preheader122.preheader ]
  %63 = phi i32 [ %105, %103 ], [ %.pre192, %.preheader122.preheader ]
  %.084 = phi i32 [ %107, %103 ], [ %.090144, %.preheader122.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store i64 %.promoted, ptr %1, align 8, !tbaa !8
  %64 = icmp slt i32 %63, 1
  %.not100132 = icmp slt i32 %62, 0
  %or.cond103133 = select i1 %64, i1 true, i1 %.not100132
  br i1 %or.cond103133, label %.critedge, label %.lr.ph138

.lr.ph138:                                        ; preds = %.preheader122
  %65 = load i64, ptr @s, align 8, !tbaa !8
  %66 = zext nneg i32 %63 to i64
  br label %67

67:                                               ; preds = %.lr.ph138, %86
  %indvars.iv179 = phi i64 [ 0, %.lr.ph138 ], [ %indvars.iv.next180, %86 ]
  %.082134 = phi i32 [ 0, %.lr.ph138 ], [ %.183, %86 ]
  %68 = phi i64 [ %.promoted, %.lr.ph138 ], [ %87, %86 ]
  %.not101 = icmp sgt i64 %68, %65
  br i1 %.not101, label %.critedge.thread, label %70

.critedge:                                        ; preds = %86, %.preheader122
  %69 = phi i64 [ %.promoted, %.preheader122 ], [ %87, %86 ]
  %.082.lcssa = phi i32 [ 0, %.preheader122 ], [ %.183, %86 ]
  %.not100.lcssa = phi i1 [ %.not100132, %.preheader122 ], [ %.not100, %86 ]
  br i1 %.not100.lcssa, label %93, label %.critedge.thread

70:                                               ; preds = %67
  %71 = trunc nuw nsw i64 %indvars.iv179 to i32
  %72 = shl nuw i32 1, %71
  %73 = and i32 %72, %.084
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %75, label %86

75:                                               ; preds = %70
  %76 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %indvars.iv179
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = icmp slt i32 %77, 19
  br i1 %78, label %79, label %86

79:                                               ; preds = %75
  %80 = add nsw i32 %.082134, 1
  %81 = sext i32 %77 to i64
  %82 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = sub i64 %68, %81
  %85 = add i64 %84, %83
  store i64 %85, ptr %1, align 8, !tbaa !8
  br label %86

86:                                               ; preds = %75, %70, %79
  %87 = phi i64 [ %85, %79 ], [ %68, %70 ], [ %68, %75 ]
  %.183 = phi i32 [ %80, %79 ], [ %.082134, %70 ], [ 100, %75 ]
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %88 = icmp uge i64 %indvars.iv.next180, %66
  %.not100 = icmp sgt i32 %.183, %62
  %or.cond103 = select i1 %88, i1 true, i1 %.not100
  br i1 %or.cond103, label %.critedge, label %67, !llvm.loop !16

.critedge.thread:                                 ; preds = %67, %.critedge
  %.082.lcssa222 = phi i32 [ %.082.lcssa, %.critedge ], [ %.082134, %67 ]
  %89 = phi i64 [ %69, %.critedge ], [ %68, %67 ]
  %90 = load i64, ptr @s, align 8, !tbaa !8
  %91 = icmp sgt i64 %89, %90
  %92 = icmp eq i64 %89, 0
  %or.cond = or i1 %92, %91
  br i1 %or.cond, label %93, label %95

93:                                               ; preds = %.critedge.thread, %.critedge
  %94 = icmp eq i32 %.084, 0
  br i1 %94, label %.thread, label %103

95:                                               ; preds = %.critedge.thread
  %96 = sext i32 %.082.lcssa222 to i64
  %97 = getelementptr inbounds [30 x %"class.std::map"], ptr @cnt, i64 0, i64 %96
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %97, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %99 = load i64, ptr %98, align 8, !tbaa !8
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %98, align 8, !tbaa !8
  %101 = icmp eq i32 %.084, 0
  %.pre = load i32, ptr @nn, align 4, !tbaa !11
  %.pre193 = load i32, ptr @k, align 4
  br i1 %101, label %.thread, label %103

.thread:                                          ; preds = %93, %95
  %.pre192204 = phi i32 [ %.pre192205, %93 ], [ %.pre, %95 ]
  %102 = phi i32 [ %63, %93 ], [ %.pre, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  br label %108

103:                                              ; preds = %93, %95
  %.pre192203 = phi i32 [ %.pre192205, %93 ], [ %.pre, %95 ]
  %104 = phi i32 [ %62, %93 ], [ %.pre193, %95 ]
  %105 = phi i32 [ %63, %93 ], [ %.pre, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %106 = add nuw i32 %.084, 2147483647
  %107 = and i32 %106, %.090144
  br label %.preheader122, !llvm.loop !17

108:                                              ; preds = %.thread, %._crit_edge130
  %.pre192206 = phi i32 [ %.pre192204, %.thread ], [ %.pre192, %._crit_edge130 ]
  %109 = phi i32 [ %102, %.thread ], [ %31, %._crit_edge130 ]
  %110 = add nuw nsw i32 %.090144, 1
  %111 = shl nuw i32 1, %109
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %.preheader123, label %.preheader121, !llvm.loop !18

.preheader120:                                    ; preds = %.preheader121, %.thread116
  %.pre202.pre215 = phi i32 [ %.pre202.pre216, %.thread116 ], [ %34, %.preheader121 ]
  %.pre202210 = phi i32 [ %.pre202211, %.thread116 ], [ %34, %.preheader121 ]
  %113 = phi i32 [ %197, %.thread116 ], [ %34, %.preheader121 ]
  %.080167 = phi i32 [ %198, %.thread116 ], [ 0, %.preheader121 ]
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph147, label %._crit_edge148

.lr.ph147:                                        ; preds = %.preheader120
  %115 = load i32, ptr @nn, align 4
  %116 = sext i32 %115 to i64
  %wide.trip.count184 = zext nneg i32 %113 to i64
  %xtraiter248 = and i64 %wide.trip.count184, 1
  %117 = icmp eq i32 %113, 1
  br i1 %117, label %._crit_edge148.loopexit.unr-lcssa, label %.lr.ph147.new

.lr.ph147.new:                                    ; preds = %.lr.ph147
  %unroll_iter251 = and i64 %wide.trip.count184, 2147483646
  br label %132

._crit_edge168:                                   ; preds = %.thread116, %.preheader121
  %118 = load i64, ptr @ans, align 8, !tbaa !8
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %118)
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

._crit_edge148.loopexit.unr-lcssa:                ; preds = %152, %.lr.ph147
  %.179.lcssa.ph = phi i64 [ poison, %.lr.ph147 ], [ %.179.1, %152 ]
  %indvars.iv181.unr = phi i64 [ 0, %.lr.ph147 ], [ %indvars.iv.next182.1, %152 ]
  %.078145.unr = phi i64 [ 0, %.lr.ph147 ], [ %.179.1, %152 ]
  %lcmp.mod249.not = icmp eq i64 %xtraiter248, 0
  br i1 %lcmp.mod249.not, label %._crit_edge148, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge148.loopexit.unr-lcssa
  %121 = trunc nuw nsw i64 %indvars.iv181.unr to i32
  %122 = shl nuw i32 1, %121
  %123 = and i32 %122, %.080167
  %.not99.epil = icmp eq i32 %123, 0
  br i1 %.not99.epil, label %._crit_edge148, label %124

124:                                              ; preds = %.epil.preheader
  %125 = add nsw i64 %indvars.iv181.unr, %116
  %126 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = add nsw i64 %.078145.unr, %128
  br label %._crit_edge148

._crit_edge148:                                   ; preds = %._crit_edge148.loopexit.unr-lcssa, %124, %.epil.preheader, %.preheader120
  %.078.lcssa = phi i64 [ 0, %.preheader120 ], [ %.179.lcssa.ph, %._crit_edge148.loopexit.unr-lcssa ], [ %129, %124 ], [ %.078145.unr, %.epil.preheader ]
  %130 = load i64, ptr @s, align 8
  %131 = icmp sgt i64 %.078.lcssa, %130
  br i1 %131, label %.thread116, label %.preheader119.preheader

.preheader119.preheader:                          ; preds = %._crit_edge148
  %.pre196 = load i32, ptr @k, align 4
  br label %.preheader119

132:                                              ; preds = %152, %.lr.ph147.new
  %indvars.iv181 = phi i64 [ 0, %.lr.ph147.new ], [ %indvars.iv.next182.1, %152 ]
  %.078145 = phi i64 [ 0, %.lr.ph147.new ], [ %.179.1, %152 ]
  %niter252 = phi i64 [ 0, %.lr.ph147.new ], [ %niter252.next.1, %152 ]
  %133 = trunc nuw nsw i64 %indvars.iv181 to i32
  %134 = shl nuw i32 1, %133
  %135 = and i32 %134, %.080167
  %.not99 = icmp eq i32 %135, 0
  br i1 %.not99, label %142, label %136

136:                                              ; preds = %132
  %137 = add nsw i64 %indvars.iv181, %116
  %138 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !11
  %140 = sext i32 %139 to i64
  %141 = add nsw i64 %.078145, %140
  br label %142

142:                                              ; preds = %132, %136
  %.179 = phi i64 [ %141, %136 ], [ %.078145, %132 ]
  %indvars.iv.next182 = or disjoint i64 %indvars.iv181, 1
  %143 = trunc nuw nsw i64 %indvars.iv.next182 to i32
  %144 = shl nuw i32 1, %143
  %145 = and i32 %144, %.080167
  %.not99.1 = icmp eq i32 %145, 0
  br i1 %.not99.1, label %152, label %146

146:                                              ; preds = %142
  %147 = add nsw i64 %indvars.iv.next182, %116
  %148 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = add nsw i64 %.179, %150
  br label %152

152:                                              ; preds = %146, %142
  %.179.1 = phi i64 [ %151, %146 ], [ %.179, %142 ]
  %indvars.iv.next182.1 = add nuw nsw i64 %indvars.iv181, 2
  %niter252.next.1 = add i64 %niter252, 2
  %niter252.ncmp.1 = icmp eq i64 %niter252.next.1, %unroll_iter251
  br i1 %niter252.ncmp.1, label %._crit_edge148.loopexit.unr-lcssa, label %132, !llvm.loop !19

.preheader119:                                    ; preds = %.preheader119.preheader, %192
  %.pre202.pre213 = phi i32 [ %.pre202.pre214, %192 ], [ %.pre202.pre215, %.preheader119.preheader ]
  %.pre202209 = phi i32 [ %.pre202208, %192 ], [ %.pre202210, %.preheader119.preheader ]
  %.pre197200 = phi i64 [ %.pre197, %192 ], [ %130, %.preheader119.preheader ]
  %.pre195198 = phi i32 [ %.pre195, %192 ], [ %113, %.preheader119.preheader ]
  %153 = phi i32 [ %193, %192 ], [ %.pre196, %.preheader119.preheader ]
  %154 = phi i32 [ %194, %192 ], [ %.pre196, %.preheader119.preheader ]
  %.076 = phi i32 [ %196, %192 ], [ %.080167, %.preheader119.preheader ]
  %155 = icmp slt i32 %.pre195198, 1
  %.not150 = icmp slt i32 %154, 0
  %or.cond105151 = select i1 %155, i1 true, i1 %.not150
  %.not97152 = icmp sgt i64 %.078.lcssa, %.pre197200
  %or.cond106153 = select i1 %or.cond105151, i1 true, i1 %.not97152
  br i1 %or.cond106153, label %.critedge3, label %.lr.ph158

.lr.ph158:                                        ; preds = %.preheader119
  %156 = load i32, ptr @nn, align 4
  %157 = sext i32 %156 to i64
  %158 = zext nneg i32 %.pre195198 to i64
  br label %159

.critedge3:                                       ; preds = %176, %.preheader119
  %.074.lcssa = phi i32 [ 0, %.preheader119 ], [ %.175, %176 ]
  %.073.lcssa = phi i64 [ %.078.lcssa, %.preheader119 ], [ %.1, %176 ]
  %.not.lcssa = phi i1 [ %.not150, %.preheader119 ], [ %.not, %176 ]
  %.not97.lcssa = phi i1 [ %.not97152, %.preheader119 ], [ %.not97, %176 ]
  %or.cond108 = select i1 %.not.lcssa, i1 true, i1 %.not97.lcssa
  br i1 %or.cond108, label %178, label %.preheader

.preheader:                                       ; preds = %.critedge3
  %.not98163 = icmp slt i32 %153, %.074.lcssa
  br i1 %.not98163, label %._crit_edge166, label %.lr.ph165

159:                                              ; preds = %.lr.ph158, %176
  %indvars.iv186 = phi i64 [ 0, %.lr.ph158 ], [ %indvars.iv.next187, %176 ]
  %.073155 = phi i64 [ %.078.lcssa, %.lr.ph158 ], [ %.1, %176 ]
  %.074154 = phi i32 [ 0, %.lr.ph158 ], [ %.175, %176 ]
  %160 = trunc nuw nsw i64 %indvars.iv186 to i32
  %161 = shl nuw i32 1, %160
  %162 = and i32 %161, %.076
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %164, label %176

164:                                              ; preds = %159
  %165 = add nsw i64 %indvars.iv186, %157
  %166 = getelementptr inbounds [30 x i32], ptr @a, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !11
  %168 = icmp slt i32 %167, 19
  br i1 %168, label %169, label %176

169:                                              ; preds = %164
  %170 = add nsw i32 %.074154, 1
  %171 = sext i32 %167 to i64
  %172 = getelementptr inbounds [20 x i64], ptr @f, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !8
  %174 = sub i64 %.073155, %171
  %175 = add i64 %174, %173
  br label %176

176:                                              ; preds = %164, %159, %169
  %.175 = phi i32 [ %170, %169 ], [ %.074154, %159 ], [ 100, %164 ]
  %.1 = phi i64 [ %175, %169 ], [ %.073155, %159 ], [ %.073155, %164 ]
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %177 = icmp uge i64 %indvars.iv.next187, %158
  %.not = icmp sgt i32 %.175, %154
  %or.cond105 = select i1 %177, i1 true, i1 %.not
  %.not97 = icmp sgt i64 %.1, %.pre197200
  %or.cond106 = select i1 %or.cond105, i1 true, i1 %.not97
  br i1 %or.cond106, label %.critedge3, label %159, !llvm.loop !20

178:                                              ; preds = %.critedge3
  %179 = icmp eq i32 %.076, 0
  br i1 %179, label %.thread116, label %192

._crit_edge166.loopexit:                          ; preds = %.lr.ph165
  %.pre202.pre.pre = load i32, ptr @mm, align 4, !tbaa !11
  br label %._crit_edge166

._crit_edge166:                                   ; preds = %._crit_edge166.loopexit, %.preheader
  %.pre202.pre = phi i32 [ %.pre202.pre.pre, %._crit_edge166.loopexit ], [ %.pre202.pre213, %.preheader ]
  %180 = phi i32 [ %189, %._crit_edge166.loopexit ], [ %153, %.preheader ]
  %181 = icmp eq i32 %.076, 0
  br i1 %181, label %.thread116, label %._crit_edge166._crit_edge

._crit_edge166._crit_edge:                        ; preds = %._crit_edge166
  %.pre197.pre = load i64, ptr @s, align 8
  br label %192

.lr.ph165:                                        ; preds = %.preheader, %.lr.ph165
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %.lr.ph165 ], [ 0, %.preheader ]
  %182 = getelementptr inbounds [30 x %"class.std::map"], ptr @cnt, i64 0, i64 %indvars.iv189
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %183 = load i64, ptr @s, align 8, !tbaa !8
  %184 = sub nsw i64 %183, %.073.lcssa
  store i64 %184, ptr %2, align 8, !tbaa !8
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) %182, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %186 = load i64, ptr %185, align 8, !tbaa !8
  %187 = load i64, ptr @ans, align 8, !tbaa !8
  %188 = add nsw i64 %187, %186
  store i64 %188, ptr @ans, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %189 = load i32, ptr @k, align 4
  %190 = sub nsw i32 %189, %.074.lcssa
  %191 = sext i32 %190 to i64
  %.not98.not = icmp slt i64 %indvars.iv189, %191
  br i1 %.not98.not, label %.lr.ph165, label %._crit_edge166.loopexit, !llvm.loop !21

192:                                              ; preds = %._crit_edge166._crit_edge, %178
  %.pre202.pre214 = phi i32 [ %.pre202.pre213, %178 ], [ %.pre202.pre, %._crit_edge166._crit_edge ]
  %.pre202208 = phi i32 [ %.pre202209, %178 ], [ %.pre202.pre, %._crit_edge166._crit_edge ]
  %.pre197 = phi i64 [ %.pre197200, %178 ], [ %.pre197.pre, %._crit_edge166._crit_edge ]
  %.pre195 = phi i32 [ %.pre195198, %178 ], [ %.pre202.pre, %._crit_edge166._crit_edge ]
  %193 = phi i32 [ %153, %178 ], [ %180, %._crit_edge166._crit_edge ]
  %194 = phi i32 [ %154, %178 ], [ %180, %._crit_edge166._crit_edge ]
  %195 = add nuw i32 %.076, 2147483647
  %196 = and i32 %195, %.080167
  br label %.preheader119, !llvm.loop !22

.thread116:                                       ; preds = %._crit_edge166, %178, %._crit_edge148
  %.pre202.pre216 = phi i32 [ %.pre202.pre215, %._crit_edge148 ], [ %.pre202.pre, %._crit_edge166 ], [ %.pre202.pre213, %178 ]
  %.pre202211 = phi i32 [ %.pre202210, %._crit_edge148 ], [ %.pre202.pre, %._crit_edge166 ], [ %.pre202209, %178 ]
  %197 = phi i32 [ %113, %._crit_edge148 ], [ %.pre202.pre, %._crit_edge166 ], [ %.pre202209, %178 ]
  %198 = add nuw nsw i32 %.080167, 1
  %199 = shl nuw i32 1, %197
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %.preheader120, label %._crit_edge168, !llvm.loop !23
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_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 #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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 = { "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 = { 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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


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