; LLVM IR from eyangch/competitive-programming :: Codeforces/1767 (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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { 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" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@C = external dso_local global [300005 x i64], align 16
@X = external dso_local global [40 x i64], align 16
@G = external dso_local global [40 x %"class.std::vector"], align 16
@dp1 = external dso_local global [1048576 x i64], 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i8, align 1
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca i64, align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %48 = alloca i64, align 8
  %49 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %50 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %51 = getelementptr i8, ptr %50, i64 -24
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %52
  %54 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %53, ptr noundef null)
  %55 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 1, ptr %2, align 8, !tbaa !8
  br label %58

58:                                               ; preds = %71, %0
  %59 = load i64, ptr %2, align 8, !tbaa !8
  %60 = load i64, ptr @N, align 8, !tbaa !8
  %61 = icmp sle i64 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %74

63:                                               ; preds = %58
  %64 = load i64, ptr %2, align 8, !tbaa !8
  %65 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %65)
  %67 = load i64, ptr %2, align 8, !tbaa !8
  %68 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = add nsw i64 %69, -1
  store i64 %70, ptr %68, align 8, !tbaa !8
  br label %71

71:                                               ; preds = %63
  %72 = load i64, ptr %2, align 8, !tbaa !8
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %2, align 8, !tbaa !8
  br label %58, !llvm.loop !11

74:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %75

75:                                               ; preds = %84, %74
  %76 = load i64, ptr %3, align 8, !tbaa !8
  %77 = load i64, ptr @M, align 8, !tbaa !8
  %78 = icmp slt i64 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %87

80:                                               ; preds = %75
  %81 = load i64, ptr %3, align 8, !tbaa !8
  %82 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %81
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %82)
  br label %84

84:                                               ; preds = %80
  %85 = load i64, ptr %3, align 8, !tbaa !8
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %3, align 8, !tbaa !8
  br label %75, !llvm.loop !13

87:                                               ; preds = %79
  %88 = load i64, ptr getelementptr inbounds ([300005 x i64], ptr @C, i64 0, i64 1), align 8, !tbaa !8
  store i64 %88, ptr @C, align 16, !tbaa !8
  %89 = load i64, ptr @N, align 8, !tbaa !8
  %90 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !8
  %92 = load i64, ptr @N, align 8, !tbaa !8
  %93 = add nsw i64 %92, 1
  %94 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %93
  store i64 %91, ptr %94, align 8, !tbaa !8
  %95 = load i64, ptr @N, align 8, !tbaa !8
  %96 = add nsw i64 %95, 2
  store i64 %96, ptr @N, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !8
  br label %97

97:                                               ; preds = %115, %87
  %98 = load i64, ptr %4, align 8, !tbaa !8
  %99 = load i64, ptr @N, align 8, !tbaa !8
  %100 = sub nsw i64 %99, 1
  %101 = icmp slt i64 %98, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %118

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %104 = load i64, ptr %4, align 8, !tbaa !8
  %105 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !8
  store i64 %106, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %107 = load i64, ptr %4, align 8, !tbaa !8
  %108 = add nsw i64 %107, 1
  %109 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !8
  store i64 %110, ptr %6, align 8, !tbaa !8
  %111 = load i64, ptr %5, align 8, !tbaa !8
  %112 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %111
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %113 = load i64, ptr %6, align 8, !tbaa !8
  %114 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %113
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %114, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %115

115:                                              ; preds = %103
  %116 = load i64, ptr %4, align 8, !tbaa !8
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %4, align 8, !tbaa !8
  br label %97, !llvm.loop !14

118:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %119

119:                                              ; preds = %163, %118
  %120 = load i64, ptr %7, align 8, !tbaa !8
  %121 = load i64, ptr @M, align 8, !tbaa !8
  %122 = icmp slt i64 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %166

124:                                              ; preds = %119
  %125 = load i64, ptr %7, align 8, !tbaa !8
  %126 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %125
  %127 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  %129 = load i64, ptr %7, align 8, !tbaa !8
  %130 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %129
  %131 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #7
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %134, ptr %136)
  %137 = load i64, ptr %7, align 8, !tbaa !8
  %138 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %139 = load i64, ptr %7, align 8, !tbaa !8
  %140 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %139
  %141 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  %143 = load i64, ptr %7, align 8, !tbaa !8
  %144 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %143
  %145 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #7
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8
  %151 = call ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEET_S7_S7_(ptr %148, ptr %150)
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %151, ptr %152, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKxSt6vectorIxSaIxEEEC2IPxvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %153 = load i64, ptr %7, align 8, !tbaa !8
  %154 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %153
  %155 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #7
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKxSt6vectorIxSaIxEEEC2IPxvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %10, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %14, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  %161 = call ptr @_ZNSt6vectorIxSaIxEE5eraseEN9__gnu_cxx17__normal_iteratorIPKxS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr %158, ptr %160)
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %163

163:                                              ; preds = %124
  %164 = load i64, ptr %7, align 8, !tbaa !8
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %7, align 8, !tbaa !8
  br label %119, !llvm.loop !15

166:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %167 = load i64, ptr @M, align 8, !tbaa !8
  %168 = sdiv i64 %167, 2
  store i64 %168, ptr %17, align 8, !tbaa !8
  %169 = load i64, ptr %17, align 8, !tbaa !8
  %170 = trunc i64 %169 to i32
  %171 = shl i32 1, %170
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i64, ptr @dp1, i64 %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store double -1.000000e+15, ptr %18, align 8, !tbaa !16
  call void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef @dp1, ptr noundef %173, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !8
  br label %174

174:                                              ; preds = %245, %166
  %175 = load i64, ptr %19, align 8, !tbaa !8
  %176 = load i64, ptr %17, align 8, !tbaa !8
  %177 = trunc i64 %176 to i32
  %178 = shl i32 1, %177
  %179 = sext i32 %178 to i64
  %180 = icmp slt i64 %175, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %174
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %248

182:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 1, ptr %21, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 0, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !8
  br label %183

183:                                              ; preds = %234, %182
  %184 = load i64, ptr %23, align 8, !tbaa !8
  %185 = load i64, ptr %17, align 8, !tbaa !8
  %186 = icmp slt i64 %184, %185
  br i1 %186, label %187, label %190

187:                                              ; preds = %183
  %188 = load i8, ptr %21, align 1, !tbaa !18, !range !20, !noundef !21
  %189 = trunc i8 %188 to i1
  br label %190

190:                                              ; preds = %187, %183
  %191 = phi i1 [ false, %183 ], [ %189, %187 ]
  br i1 %191, label %193, label %192

192:                                              ; preds = %190
  store i32 17, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %237

193:                                              ; preds = %190
  %194 = load i64, ptr %19, align 8, !tbaa !8
  %195 = load i64, ptr %23, align 8, !tbaa !8
  %196 = ashr i64 %194, %195
  %197 = and i64 %196, 1
  %198 = icmp ne i64 %197, 0
  br i1 %198, label %199, label %233

199:                                              ; preds = %193
  %200 = load i64, ptr %23, align 8, !tbaa !8
  %201 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !8
  %203 = load i64, ptr %22, align 8, !tbaa !8
  %204 = add nsw i64 %203, %202
  store i64 %204, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %205 = load i64, ptr %23, align 8, !tbaa !8
  %206 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %205
  store ptr %206, ptr %24, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %207 = load ptr, ptr %24, align 8, !tbaa !22
  %208 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #7
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %210 = load ptr, ptr %24, align 8, !tbaa !22
  %211 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %210) #7
  %212 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %211, ptr %212, align 8
  br label %213

213:                                              ; preds = %229, %199
  %214 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br i1 %214, label %216, label %215

215:                                              ; preds = %213
  store i32 20, ptr %20, align 4
  br label %231

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %218 = load i64, ptr %217, align 8, !tbaa !8
  store i64 %218, ptr %27, align 8, !tbaa !8
  %219 = load i64, ptr %19, align 8, !tbaa !8
  %220 = load i64, ptr %27, align 8, !tbaa !8
  %221 = ashr i64 %219, %220
  %222 = and i64 %221, 1
  %223 = icmp ne i64 %222, 0
  br i1 %223, label %224, label %225

224:                                              ; preds = %216
  store i8 0, ptr %21, align 1, !tbaa !18
  store i32 20, ptr %20, align 4
  br label %226

225:                                              ; preds = %216
  store i32 0, ptr %20, align 4
  br label %226

226:                                              ; preds = %225, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %227 = load i32, ptr %20, align 4
  switch i32 %227, label %231 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %213

231:                                              ; preds = %226, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232, %193
  br label %234

234:                                              ; preds = %233
  %235 = load i64, ptr %23, align 8, !tbaa !8
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %23, align 8, !tbaa !8
  br label %183, !llvm.loop !24

237:                                              ; preds = %192
  %238 = load i8, ptr %21, align 1, !tbaa !18, !range !20, !noundef !21
  %239 = trunc i8 %238 to i1
  br i1 %239, label %240, label %244

240:                                              ; preds = %237
  %241 = load i64, ptr %22, align 8, !tbaa !8
  %242 = load i64, ptr %19, align 8, !tbaa !8
  %243 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %242
  store i64 %241, ptr %243, align 8, !tbaa !8
  br label %244

244:                                              ; preds = %240, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %245

245:                                              ; preds = %244
  %246 = load i64, ptr %19, align 8, !tbaa !8
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %19, align 8, !tbaa !8
  br label %174, !llvm.loop !25

248:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store i64 0, ptr %28, align 8, !tbaa !8
  br label %249

249:                                              ; preds = %288, %248
  %250 = load i64, ptr %28, align 8, !tbaa !8
  %251 = load i64, ptr %17, align 8, !tbaa !8
  %252 = trunc i64 %251 to i32
  %253 = shl i32 1, %252
  %254 = sext i32 %253 to i64
  %255 = icmp slt i64 %250, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %249
  store i32 22, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %291

257:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store i64 0, ptr %29, align 8, !tbaa !8
  br label %258

258:                                              ; preds = %284, %257
  %259 = load i64, ptr %29, align 8, !tbaa !8
  %260 = load i64, ptr %17, align 8, !tbaa !8
  %261 = icmp slt i64 %259, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %258
  store i32 25, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %287

263:                                              ; preds = %258
  %264 = load i64, ptr %28, align 8, !tbaa !8
  %265 = load i64, ptr %29, align 8, !tbaa !8
  %266 = ashr i64 %264, %265
  %267 = and i64 %266, 1
  %268 = icmp ne i64 %267, 0
  br i1 %268, label %269, label %283

269:                                              ; preds = %263
  %270 = load i64, ptr %28, align 8, !tbaa !8
  %271 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %270
  %272 = load i64, ptr %28, align 8, !tbaa !8
  %273 = load i64, ptr %29, align 8, !tbaa !8
  %274 = trunc i64 %273 to i32
  %275 = shl i32 1, %274
  %276 = sext i32 %275 to i64
  %277 = xor i64 %272, %276
  %278 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %277
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef nonnull align 8 dereferenceable(8) %278)
  %280 = load i64, ptr %279, align 8, !tbaa !8
  %281 = load i64, ptr %28, align 8, !tbaa !8
  %282 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %281
  store i64 %280, ptr %282, align 8, !tbaa !8
  br label %283

283:                                              ; preds = %269, %263
  br label %284

284:                                              ; preds = %283
  %285 = load i64, ptr %29, align 8, !tbaa !8
  %286 = add nsw i64 %285, 1
  store i64 %286, ptr %29, align 8, !tbaa !8
  br label %258, !llvm.loop !26

287:                                              ; preds = %262
  br label %288

288:                                              ; preds = %287
  %289 = load i64, ptr %28, align 8, !tbaa !8
  %290 = add nsw i64 %289, 1
  store i64 %290, ptr %28, align 8, !tbaa !8
  br label %249, !llvm.loop !27

291:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %292 = load i64, ptr @M, align 8, !tbaa !8
  %293 = load i64, ptr %17, align 8, !tbaa !8
  %294 = sub nsw i64 %292, %293
  store i64 %294, ptr %30, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store i64 0, ptr %32, align 8, !tbaa !8
  br label %295

295:                                              ; preds = %449, %291
  %296 = load i64, ptr %32, align 8, !tbaa !8
  %297 = load i64, ptr %30, align 8, !tbaa !8
  %298 = trunc i64 %297 to i32
  %299 = shl i32 1, %298
  %300 = sext i32 %299 to i64
  %301 = icmp slt i64 %296, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %295
  store i32 28, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %452

303:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #7
  store i8 1, ptr %33, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 0, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  store i64 0, ptr %35, align 8, !tbaa !8
  br label %304

304:                                              ; preds = %368, %303
  %305 = load i64, ptr %35, align 8, !tbaa !8
  %306 = load i64, ptr %30, align 8, !tbaa !8
  %307 = icmp slt i64 %305, %306
  br i1 %307, label %308, label %311

308:                                              ; preds = %304
  %309 = load i8, ptr %33, align 1, !tbaa !18, !range !20, !noundef !21
  %310 = trunc i8 %309 to i1
  br label %311

311:                                              ; preds = %308, %304
  %312 = phi i1 [ false, %304 ], [ %310, %308 ]
  br i1 %312, label %314, label %313

313:                                              ; preds = %311
  store i32 31, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %371

314:                                              ; preds = %311
  %315 = load i64, ptr %32, align 8, !tbaa !8
  %316 = load i64, ptr %35, align 8, !tbaa !8
  %317 = ashr i64 %315, %316
  %318 = and i64 %317, 1
  %319 = icmp ne i64 %318, 0
  br i1 %319, label %320, label %367

320:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %321 = load i64, ptr %35, align 8, !tbaa !8
  %322 = load i64, ptr %17, align 8, !tbaa !8
  %323 = add nsw i64 %321, %322
  store i64 %323, ptr %36, align 8, !tbaa !8
  %324 = load i64, ptr %36, align 8, !tbaa !8
  %325 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %324
  %326 = load i64, ptr %325, align 8, !tbaa !8
  %327 = load i64, ptr %34, align 8, !tbaa !8
  %328 = add nsw i64 %327, %326
  store i64 %328, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %329 = load i64, ptr %36, align 8, !tbaa !8
  %330 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %329
  store ptr %330, ptr %37, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %331 = load ptr, ptr %37, align 8, !tbaa !22
  %332 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #7
  %333 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %332, ptr %333, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %334 = load ptr, ptr %37, align 8, !tbaa !22
  %335 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #7
  %336 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %335, ptr %336, align 8
  br label %337

337:                                              ; preds = %363, %320
  %338 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  br i1 %338, label %340, label %339

339:                                              ; preds = %337
  store i32 34, ptr %20, align 4
  br label %365

340:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  %342 = load i64, ptr %341, align 8, !tbaa !8
  store i64 %342, ptr %40, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %343 = load i64, ptr %40, align 8, !tbaa !8
  %344 = load i64, ptr %17, align 8, !tbaa !8
  %345 = sub nsw i64 %343, %344
  store i64 %345, ptr %41, align 8, !tbaa !8
  %346 = load i64, ptr %41, align 8, !tbaa !8
  %347 = icmp slt i64 %346, 0
  br i1 %347, label %348, label %349

348:                                              ; preds = %340
  store i32 35, ptr %20, align 4
  br label %357

349:                                              ; preds = %340
  %350 = load i64, ptr %32, align 8, !tbaa !8
  %351 = load i64, ptr %41, align 8, !tbaa !8
  %352 = ashr i64 %350, %351
  %353 = and i64 %352, 1
  %354 = icmp ne i64 %353, 0
  br i1 %354, label %355, label %356

355:                                              ; preds = %349
  store i8 0, ptr %33, align 1, !tbaa !18
  store i32 34, ptr %20, align 4
  br label %357

356:                                              ; preds = %349
  store i32 0, ptr %20, align 4
  br label %357

357:                                              ; preds = %356, %355, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  %358 = load i32, ptr %20, align 4
  switch i32 %358, label %360 [
    i32 0, label %359
  ]

359:                                              ; preds = %357
  store i32 0, ptr %20, align 4
  br label %360

360:                                              ; preds = %359, %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  %361 = load i32, ptr %20, align 4
  switch i32 %361, label %365 [
    i32 0, label %362
    i32 35, label %363
  ]

362:                                              ; preds = %360
  br label %363

363:                                              ; preds = %362, %360
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br label %337

365:                                              ; preds = %360, %339
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %366

366:                                              ; preds = %365
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %367

367:                                              ; preds = %366, %314
  br label %368

368:                                              ; preds = %367
  %369 = load i64, ptr %35, align 8, !tbaa !8
  %370 = add nsw i64 %369, 1
  store i64 %370, ptr %35, align 8, !tbaa !8
  br label %304, !llvm.loop !28

371:                                              ; preds = %313
  %372 = load i8, ptr %33, align 1, !tbaa !18, !range !20, !noundef !21
  %373 = trunc i8 %372 to i1
  br i1 %373, label %375, label %374

374:                                              ; preds = %371
  store i32 30, ptr %20, align 4
  br label %446

375:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %376 = load i64, ptr %17, align 8, !tbaa !8
  %377 = trunc i64 %376 to i32
  %378 = shl i32 1, %377
  %379 = sub nsw i32 %378, 1
  %380 = sext i32 %379 to i64
  store i64 %380, ptr %42, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  store i64 0, ptr %43, align 8, !tbaa !8
  br label %381

381:                                              ; preds = %435, %375
  %382 = load i64, ptr %43, align 8, !tbaa !8
  %383 = load i64, ptr %30, align 8, !tbaa !8
  %384 = icmp slt i64 %382, %383
  br i1 %384, label %386, label %385

385:                                              ; preds = %381
  store i32 36, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %438

386:                                              ; preds = %381
  %387 = load i64, ptr %32, align 8, !tbaa !8
  %388 = load i64, ptr %43, align 8, !tbaa !8
  %389 = ashr i64 %387, %388
  %390 = and i64 %389, 1
  %391 = icmp ne i64 %390, 0
  br i1 %391, label %392, label %434

392:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %393 = load i64, ptr %43, align 8, !tbaa !8
  %394 = load i64, ptr %17, align 8, !tbaa !8
  %395 = add nsw i64 %393, %394
  store i64 %395, ptr %44, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %396 = load i64, ptr %44, align 8, !tbaa !8
  %397 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %396
  store ptr %397, ptr %45, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %398 = load ptr, ptr %45, align 8, !tbaa !22
  %399 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #7
  %400 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %399, ptr %400, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %401 = load ptr, ptr %45, align 8, !tbaa !22
  %402 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %401) #7
  %403 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  store ptr %402, ptr %403, align 8
  br label %404

404:                                              ; preds = %431, %392
  %405 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  br i1 %405, label %407, label %406

406:                                              ; preds = %404
  store i32 39, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %433

407:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %408 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  %409 = load i64, ptr %408, align 8, !tbaa !8
  store i64 %409, ptr %48, align 8, !tbaa !8
  %410 = load i64, ptr %48, align 8, !tbaa !8
  %411 = load i64, ptr %17, align 8, !tbaa !8
  %412 = icmp sge i64 %410, %411
  br i1 %412, label %413, label %414

413:                                              ; preds = %407
  store i32 40, ptr %20, align 4
  br label %428

414:                                              ; preds = %407
  %415 = load i64, ptr %42, align 8, !tbaa !8
  %416 = load i64, ptr %48, align 8, !tbaa !8
  %417 = ashr i64 %415, %416
  %418 = and i64 %417, 1
  %419 = icmp ne i64 %418, 0
  br i1 %419, label %420, label %427

420:                                              ; preds = %414
  %421 = load i64, ptr %48, align 8, !tbaa !8
  %422 = trunc i64 %421 to i32
  %423 = shl i32 1, %422
  %424 = sext i32 %423 to i64
  %425 = load i64, ptr %42, align 8, !tbaa !8
  %426 = xor i64 %425, %424
  store i64 %426, ptr %42, align 8, !tbaa !8
  br label %427

427:                                              ; preds = %420, %414
  store i32 0, ptr %20, align 4
  br label %428

428:                                              ; preds = %427, %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  %429 = load i32, ptr %20, align 4
  switch i32 %429, label %463 [
    i32 0, label %430
    i32 40, label %431
  ]

430:                                              ; preds = %428
  br label %431

431:                                              ; preds = %430, %428
  %432 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br label %404

433:                                              ; preds = %406
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br label %434

434:                                              ; preds = %433, %386
  br label %435

435:                                              ; preds = %434
  %436 = load i64, ptr %43, align 8, !tbaa !8
  %437 = add nsw i64 %436, 1
  store i64 %437, ptr %43, align 8, !tbaa !8
  br label %381, !llvm.loop !29

438:                                              ; preds = %385
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %439 = load i64, ptr %34, align 8, !tbaa !8
  %440 = load i64, ptr %42, align 8, !tbaa !8
  %441 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %440
  %442 = load i64, ptr %441, align 8, !tbaa !8
  %443 = add nsw i64 %439, %442
  store i64 %443, ptr %49, align 8, !tbaa !8
  %444 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %49)
  %445 = load i64, ptr %444, align 8, !tbaa !8
  store i64 %445, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  store i32 0, ptr %20, align 4
  br label %446

446:                                              ; preds = %438, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #7
  %447 = load i32, ptr %20, align 4
  switch i32 %447, label %463 [
    i32 0, label %448
    i32 30, label %449
  ]

448:                                              ; preds = %446
  br label %449

449:                                              ; preds = %448, %446
  %450 = load i64, ptr %32, align 8, !tbaa !8
  %451 = add nsw i64 %450, 1
  store i64 %451, ptr %32, align 8, !tbaa !8
  br label %295, !llvm.loop !30

452:                                              ; preds = %302
  %453 = load i64, ptr @M, align 8, !tbaa !8
  %454 = getelementptr inbounds i64, ptr @X, i64 %453
  %455 = call noundef i32 @_ZSt10accumulateIPxiET0_T_S2_S1_(ptr noundef @X, ptr noundef %454, i32 noundef 0)
  %456 = sext i32 %455 to i64
  %457 = load i64, ptr %31, align 8, !tbaa !8
  %458 = sub nsw i64 %456, %457
  store i64 %458, ptr %31, align 8, !tbaa !8
  %459 = load i64, ptr %31, align 8, !tbaa !8
  %460 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %459)
  %461 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %460, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %462 = load i32, ptr %1, align 4
  ret i32 %462

463:                                              ; preds = %446, %428
  unreachable
}

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt10accumulateIPxiET0_T_S2_S1_(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

; 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

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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { inlinehint 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 #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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !10, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"any pointer", !10, i64 0}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { 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" }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@C = external dso_local global [300005 x i64], align 16
@X = external dso_local global [40 x i64], align 16
@G = external dso_local global [40 x %"class.std::vector"], align 16
@dp1 = external dso_local global [1048576 x i64], 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 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i64, align 8
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %24 = load i64, ptr @N, align 8, !tbaa !8
  %.not148 = icmp slt i64 %24, 1
  br i1 %.not148, label %.preheader147, label %.lr.ph

.preheader147:                                    ; preds = %.lr.ph, %0
  %25 = phi i64 [ %24, %0 ], [ %33, %.lr.ph ]
  %26 = load i64, ptr @M, align 8, !tbaa !8
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.lr.ph151, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.0149 = phi i64 [ %32, %.lr.ph ], [ 1, %0 ]
  %28 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %.0149
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %30 = load i64, ptr %28, align 8, !tbaa !8
  %31 = add nsw i64 %30, -1
  store i64 %31, ptr %28, align 8, !tbaa !8
  %32 = add nuw nsw i64 %.0149, 1
  %33 = load i64, ptr @N, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.0149, %33
  br i1 %.not.not, label %.lr.ph, label %.preheader147, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph151
  %.pre = load i64, ptr @N, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader147
  %34 = phi i64 [ %46, %._crit_edge.loopexit ], [ %26, %.preheader147 ]
  %35 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %25, %.preheader147 ]
  %36 = load i64, ptr getelementptr inbounds (i8, ptr @C, i64 8), align 8, !tbaa !8
  store i64 %36, ptr @C, align 16, !tbaa !8
  %37 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %35
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = add nsw i64 %35, 1
  %40 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %39
  store i64 %38, ptr %40, align 8, !tbaa !8
  %41 = add nsw i64 %35, 2
  store i64 %41, ptr @N, align 8, !tbaa !8
  %42 = icmp sgt i64 %35, -1
  br i1 %42, label %.lr.ph154, label %.preheader146

.lr.ph151:                                        ; preds = %.preheader147, %.lr.ph151
  %.0101150 = phi i64 [ %45, %.lr.ph151 ], [ 0, %.preheader147 ]
  %43 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %.0101150
  %44 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %45 = add nuw nsw i64 %.0101150, 1
  %46 = load i64, ptr @M, align 8, !tbaa !8
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %.lr.ph151, label %._crit_edge.loopexit, !llvm.loop !13

.preheader146.loopexit:                           ; preds = %.lr.ph154
  %.pre216 = load i64, ptr @M, align 8, !tbaa !8
  br label %.preheader146

.preheader146:                                    ; preds = %.preheader146.loopexit, %._crit_edge
  %48 = phi i64 [ %.pre216, %.preheader146.loopexit ], [ %34, %._crit_edge ]
  %49 = icmp sgt i64 %48, 0
  br i1 %49, label %.lr.ph156, label %._crit_edge157

.lr.ph154:                                        ; preds = %._crit_edge, %.lr.ph154
  %.0102152 = phi i64 [ %52, %.lr.ph154 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %50 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %.0102152
  %51 = load i64, ptr %50, align 8, !tbaa !8
  store i64 %51, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %52 = add nuw nsw i64 %.0102152, 1
  %53 = getelementptr inbounds [300005 x i64], ptr @C, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !8
  store i64 %54, ptr %2, align 8, !tbaa !8
  %55 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %51
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %56 = load i64, ptr %2, align 8, !tbaa !8
  %57 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %56
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %58 = load i64, ptr @N, align 8, !tbaa !8
  %59 = add nsw i64 %58, -1
  %60 = icmp slt i64 %52, %59
  br i1 %60, label %.lr.ph154, label %.preheader146.loopexit, !llvm.loop !14

._crit_edge157:                                   ; preds = %.lr.ph156, %.preheader146
  %.lcssa = phi i64 [ %48, %.preheader146 ], [ %104, %.lr.ph156 ]
  %61 = sdiv i64 %.lcssa, 2
  %62 = trunc i64 %61 to i32
  %63 = shl nuw i32 1, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i64, ptr @dp1, i64 %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store double -1.000000e+15, ptr %7, align 8, !tbaa !15
  call void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef nonnull @dp1, ptr noundef nonnull %65, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %.not.not247 = icmp eq i32 %62, 31
  br i1 %.not.not247, label %._crit_edge176, label %.preheader145.lr.ph

.preheader145.lr.ph:                              ; preds = %._crit_edge157
  %66 = icmp sgt i64 %.lcssa, 1
  %smax209 = call i64 @llvm.smax.i64(i64 %64, i64 1)
  br i1 %66, label %.preheader145.us, label %.preheader143.lr.ph.thread

.preheader143.lr.ph.thread:                       ; preds = %.preheader145.lr.ph
  %67 = shl nuw nsw i64 %smax209, 3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @dp1, i8 0, i64 %67, i1 false), !tbaa !8
  br label %._crit_edge176

.preheader145.us:                                 ; preds = %.preheader145.lr.ph, %69
  %.0106171.us = phi i64 [ %70, %69 ], [ 0, %.preheader145.lr.ph ]
  br label %.outer

._crit_edge168.us.thread:                         ; preds = %.loopexit, %.thread
  %.1124.us220224 = phi i64 [ %.0123165.us.ph, %.thread ], [ %77, %.loopexit ]
  %68 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %.0106171.us
  store i64 %.1124.us220224, ptr %68, align 8, !tbaa !8
  br label %69

69:                                               ; preds = %._crit_edge168.us, %._crit_edge168.us.thread
  %70 = add nuw nsw i64 %.0106171.us, 1
  %exitcond.not = icmp eq i64 %70, %smax209
  br i1 %exitcond.not, label %.preheader144, label %.preheader145.us, !llvm.loop !17

71:                                               ; preds = %.outer, %.thread
  %.0127164.us = phi i64 [ %91, %.thread ], [ %.0127164.us.ph, %.outer ]
  %72 = shl nuw i64 1, %.0127164.us
  %73 = and i64 %72, %.0106171.us
  %.not138.us = icmp eq i64 %73, 0
  br i1 %.not138.us, label %.thread, label %74

74:                                               ; preds = %71
  %75 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %.0127164.us
  %76 = load i64, ptr %75, align 8, !tbaa !8
  %77 = add nsw i64 %76, %.0123165.us.ph
  %78 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %.0127164.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %79 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #9
  store ptr %79, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %80 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #9
  store ptr %80, ptr %9, align 8
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br i1 %81, label %.lr.ph159.us, label %.loopexit

.lr.ph159.us:                                     ; preds = %74, %86
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = shl nuw i64 1, %83
  %85 = and i64 %84, %.0106171.us
  %.not139.us = icmp eq i64 %85, 0
  br i1 %.not139.us, label %86, label %._crit_edge168.us

86:                                               ; preds = %.lr.ph159.us
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br i1 %88, label %.lr.ph159.us, label %.loopexit

.loopexit:                                        ; preds = %86, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  %89 = add nuw nsw i64 %.0127164.us, 1
  %90 = icmp slt i64 %89, %61
  br i1 %90, label %.outer, label %._crit_edge168.us.thread, !llvm.loop !18

.outer:                                           ; preds = %.loopexit, %.preheader145.us
  %.0123165.us.ph = phi i64 [ %77, %.loopexit ], [ 0, %.preheader145.us ]
  %.0127164.us.ph = phi i64 [ %89, %.loopexit ], [ 0, %.preheader145.us ]
  br label %71

.thread:                                          ; preds = %71
  %91 = add nuw nsw i64 %.0127164.us, 1
  %92 = icmp slt i64 %91, %61
  br i1 %92, label %71, label %._crit_edge168.us.thread, !llvm.loop !18

._crit_edge168.us:                                ; preds = %.lr.ph159.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  br label %69

.lr.ph156:                                        ; preds = %.preheader146, %.lr.ph156
  %.0105155 = phi i64 [ %103, %.lr.ph156 ], [ 0, %.preheader146 ]
  %93 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %.0105155
  %94 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #9
  %95 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %94, ptr %95)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %96 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #9
  %97 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #9
  %98 = call ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEET_S7_S7_(ptr %96, ptr %97)
  store ptr %98, ptr %4, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKxSt6vectorIxSaIxEEEC2IPxvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %99 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #9
  store ptr %99, ptr %6, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKxSt6vectorIxSaIxEEEC2IPxvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %100 = load ptr, ptr %3, align 8
  %101 = load ptr, ptr %5, align 8
  %102 = call ptr @_ZNSt6vectorIxSaIxEE5eraseEN9__gnu_cxx17__normal_iteratorIPKxS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr %100, ptr %101)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %103 = add nuw nsw i64 %.0105155, 1
  %104 = load i64, ptr @M, align 8, !tbaa !8
  %105 = icmp slt i64 %103, %104
  br i1 %105, label %.lr.ph156, label %._crit_edge157, !llvm.loop !19

.preheader144:                                    ; preds = %69
  br i1 %.not.not247, label %._crit_edge176, label %.preheader143.us.preheader

.preheader143.us.preheader:                       ; preds = %.preheader144
  %smax211 = call i64 @llvm.smax.i64(i64 %64, i64 1)
  br label %.preheader143.us

.preheader143.us:                                 ; preds = %.preheader143.us.preheader, %._crit_edge174.us
  %.0126175.us = phi i64 [ %120, %._crit_edge174.us ], [ 0, %.preheader143.us.preheader ]
  %106 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %.0126175.us
  br label %107

107:                                              ; preds = %.preheader143.us, %118
  %.0125172.us = phi i64 [ 0, %.preheader143.us ], [ %119, %118 ]
  %108 = shl nuw i64 1, %.0125172.us
  %109 = and i64 %108, %.0126175.us
  %.not137.us = icmp eq i64 %109, 0
  br i1 %.not137.us, label %118, label %110

110:                                              ; preds = %107
  %111 = trunc i64 %.0125172.us to i32
  %112 = shl nuw i32 1, %111
  %113 = sext i32 %112 to i64
  %114 = xor i64 %.0126175.us, %113
  %115 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %114
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 8 dereferenceable(8) %115)
  %117 = load i64, ptr %116, align 8, !tbaa !8
  store i64 %117, ptr %106, align 8, !tbaa !8
  br label %118

118:                                              ; preds = %110, %107
  %119 = add nuw nsw i64 %.0125172.us, 1
  %exitcond210.not = icmp eq i64 %119, %61
  br i1 %exitcond210.not, label %._crit_edge174.us, label %107, !llvm.loop !20

._crit_edge174.us:                                ; preds = %118
  %120 = add nuw nsw i64 %.0126175.us, 1
  %exitcond212.not = icmp eq i64 %120, %smax211
  br i1 %exitcond212.not, label %._crit_edge176, label %.preheader143.us, !llvm.loop !21

._crit_edge176:                                   ; preds = %._crit_edge174.us, %._crit_edge157, %.preheader143.lr.ph.thread, %.preheader144
  %121 = load i64, ptr @M, align 8, !tbaa !8
  %122 = sub nsw i64 %121, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store i64 0, ptr %10, align 8, !tbaa !8
  %123 = trunc i64 %122 to i32
  %.not205 = icmp eq i32 %123, 31
  br i1 %.not205, label %._crit_edge203, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge176
  %124 = shl nuw nsw i32 1, %123
  %125 = icmp sgt i64 %122, 0
  %126 = add nsw i32 %63, -1
  %127 = sext i32 %126 to i64
  %smax214 = zext nneg i32 %124 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %188
  %.0122201 = phi i64 [ 0, %.preheader.lr.ph ], [ %189, %188 ]
  br i1 %125, label %.lr.ph186, label %._crit_edge199

._crit_edge203.loopexit:                          ; preds = %188
  %.pre217 = load i64, ptr @M, align 8, !tbaa !8
  br label %._crit_edge203

._crit_edge203:                                   ; preds = %._crit_edge203.loopexit, %._crit_edge176
  %128 = phi i64 [ %.pre217, %._crit_edge203.loopexit ], [ %121, %._crit_edge176 ]
  %129 = getelementptr inbounds i64, ptr @X, i64 %128
  %130 = call noundef i32 @_ZSt10accumulateIPxiET0_T_S2_S1_(ptr noundef nonnull @X, ptr noundef nonnull %129, i32 noundef 0)
  %131 = sext i32 %130 to i64
  %132 = load i64, ptr %10, align 8, !tbaa !8
  %133 = sub nsw i64 %131, %132
  store i64 %133, ptr %10, align 8, !tbaa !8
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %133)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %134, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  ret i32 0

._crit_edge187:                                   ; preds = %156
  br i1 %.4121, label %160, label %188

.lr.ph186:                                        ; preds = %.preheader, %156
  %.0114185 = phi i64 [ %157, %156 ], [ 0, %.preheader ]
  %.0115184 = phi i64 [ %.1116, %156 ], [ 0, %.preheader ]
  %136 = shl nuw i64 1, %.0114185
  %137 = and i64 %136, %.0122201
  %.not135 = icmp eq i64 %137, 0
  br i1 %.not135, label %156, label %138

138:                                              ; preds = %.lr.ph186
  %139 = add nsw i64 %.0114185, %61
  %140 = getelementptr inbounds [40 x i64], ptr @X, i64 0, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !8
  %142 = add nsw i64 %141, %.0115184
  %143 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %139
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %144 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #9
  store ptr %144, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %145 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #9
  store ptr %145, ptr %12, align 8
  %146 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %146, label %.lr.ph178, label %._crit_edge179

.lr.ph178:                                        ; preds = %138, %select.unfold
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %148 = load i64, ptr %147, align 8, !tbaa !8
  %149 = sub nsw i64 %148, %61
  %150 = icmp slt i64 %149, 0
  br i1 %150, label %select.unfold, label %151

151:                                              ; preds = %.lr.ph178
  %152 = shl nuw i64 1, %149
  %153 = and i64 %152, %.0122201
  %.not136 = icmp eq i64 %153, 0
  br i1 %.not136, label %select.unfold, label %._crit_edge179

select.unfold:                                    ; preds = %151, %.lr.ph178
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %155, label %.lr.ph178, label %._crit_edge179

._crit_edge179:                                   ; preds = %select.unfold, %151, %138
  %.3120 = phi i1 [ true, %138 ], [ false, %151 ], [ true, %select.unfold ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %156

156:                                              ; preds = %.lr.ph186, %._crit_edge179
  %.4121 = phi i1 [ %.3120, %._crit_edge179 ], [ true, %.lr.ph186 ]
  %.1116 = phi i64 [ %142, %._crit_edge179 ], [ %.0115184, %.lr.ph186 ]
  %157 = add nuw nsw i64 %.0114185, 1
  %158 = icmp slt i64 %157, %122
  %159 = and i1 %158, %.4121
  br i1 %159, label %.lr.ph186, label %._crit_edge187, !llvm.loop !22

160:                                              ; preds = %._crit_edge187
  br i1 %125, label %.lr.ph198, label %._crit_edge199

._crit_edge199:                                   ; preds = %186, %.preheader, %160
  %.0115.lcssa228231 = phi i64 [ %.1116, %160 ], [ 0, %.preheader ], [ %.1116, %186 ]
  %.0104.lcssa = phi i64 [ %127, %160 ], [ %127, %.preheader ], [ %.4, %186 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %161 = getelementptr inbounds [1048576 x i64], ptr @dp1, i64 0, i64 %.0104.lcssa
  %162 = load i64, ptr %161, align 8, !tbaa !8
  %163 = add nsw i64 %162, %.0115.lcssa228231
  store i64 %163, ptr %15, align 8, !tbaa !8
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %165 = load i64, ptr %164, align 8, !tbaa !8
  store i64 %165, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %188

.lr.ph198:                                        ; preds = %160, %186
  %.0103196 = phi i64 [ %187, %186 ], [ 0, %160 ]
  %.0104195 = phi i64 [ %.4, %186 ], [ %127, %160 ]
  %166 = shl nuw i64 1, %.0103196
  %167 = and i64 %166, %.0122201
  %.not132 = icmp eq i64 %167, 0
  br i1 %.not132, label %186, label %168

168:                                              ; preds = %.lr.ph198
  %169 = add nsw i64 %.0103196, %61
  %170 = getelementptr inbounds [40 x %"class.std::vector"], ptr @G, i64 0, i64 %169
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %171 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %170) #9
  store ptr %171, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %172 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %170) #9
  store ptr %172, ptr %14, align 8
  %173 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %173, label %.lr.ph192, label %._crit_edge193

._crit_edge193:                                   ; preds = %183, %168
  %.1.lcssa = phi i64 [ %.0104195, %168 ], [ %.3, %183 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %186

.lr.ph192:                                        ; preds = %168, %183
  %.1190 = phi i64 [ %.3, %183 ], [ %.0104195, %168 ]
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %175 = load i64, ptr %174, align 8, !tbaa !8
  %.not133 = icmp slt i64 %175, %61
  br i1 %.not133, label %176, label %183

176:                                              ; preds = %.lr.ph192
  %177 = shl nuw i64 1, %175
  %178 = and i64 %177, %.1190
  %.not134 = icmp eq i64 %178, 0
  %179 = trunc i64 %175 to i32
  %180 = shl nuw i32 1, %179
  %181 = sext i32 %180 to i64
  %182 = select i1 %.not134, i64 0, i64 %181
  %.2 = xor i64 %182, %.1190
  br label %183

183:                                              ; preds = %.lr.ph192, %176
  %.3 = phi i64 [ %.2, %176 ], [ %.1190, %.lr.ph192 ]
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %185 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %185, label %.lr.ph192, label %._crit_edge193

186:                                              ; preds = %.lr.ph198, %._crit_edge193
  %.4 = phi i64 [ %.1.lcssa, %._crit_edge193 ], [ %.0104195, %.lr.ph198 ]
  %187 = add nuw nsw i64 %.0103196, 1
  %exitcond213.not = icmp eq i64 %187, %122
  br i1 %exitcond213.not, label %._crit_edge199, label %.lr.ph198, !llvm.loop !23

188:                                              ; preds = %._crit_edge187, %._crit_edge199
  %189 = add nuw nsw i64 %.0122201, 1
  %exitcond215.not = icmp eq i64 %189, %smax214
  br i1 %exitcond215.not, label %._crit_edge203.loopexit, label %.preheader, !llvm.loop !24
}

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxdEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt10accumulateIPxiET0_T_S2_S1_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

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

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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { inlinehint 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !10, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


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