; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint July/Problem E/E.ll (Z8makeSetsii)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>

@g = external dso_local global [50100 x %"class.std::vector"], align 16
@s = external dso_local global [50100 x %"class.std::map"], align 16
@ptr = external dso_local global [50100 x i32], align 16
@c = external dso_local global [50100 x i64], align 16
@up1 = external dso_local global [50100 x i64], align 16
@up2 = external dso_local global [50100 x i64], align 16
@ans = external dso_local global i64, align 8
@sum = external dso_local global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8makeSetsii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 -1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [50100 x %"class.std::vector"], ptr @g, i64 0, i64 %25
  %27 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  br label %29

29:                                               ; preds = %86, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50100 x %"class.std::vector"], ptr @g, i64 0, i64 %31
  %33 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br i1 %35, label %37, label %36

36:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %88

37:                                               ; preds = %29
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  br label %86

43:                                               ; preds = %37
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z8makeSetsii(i32 noundef %45, i32 noundef %46)
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = add nsw i64 %55, %51
  store i64 %56, ptr %54, align 8, !tbaa !9
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %62
  %64 = call noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %63) #4
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp ugt i64 %64, %66
  br i1 %67, label %68, label %85

68:                                               ; preds = %43
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %74
  %76 = call noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %75) #4
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %5, align 4, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  store i32 %82, ptr %6, align 4, !tbaa !5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %84 = load i32, ptr %83, align 4, !tbaa !5
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %68, %43
  br label %86

86:                                               ; preds = %85, %42
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %29, !llvm.loop !11

88:                                               ; preds = %36
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = icmp eq i32 %89, -1
  br i1 %90, label %91, label %105

91:                                               ; preds = %88
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %94
  store i32 %92, ptr %95, align 4, !tbaa !5
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %97
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %100
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %98, ptr noundef nonnull align 8 dereferenceable(8) %101)
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %102, align 4, !tbaa !5
  br label %189

105:                                              ; preds = %88
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %108
  store i32 %106, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %110 = load i32, ptr %3, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [50100 x %"class.std::vector"], ptr @g, i64 0, i64 %111
  %113 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #4
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  br label %115

115:                                              ; preds = %174, %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [50100 x %"class.std::vector"], ptr @g, i64 0, i64 %117
  %119 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #4
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br i1 %121, label %123, label %122

122:                                              ; preds = %115
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %176

123:                                              ; preds = %115
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = icmp eq i32 %125, %126
  br i1 %127, label %133, label %128

128:                                              ; preds = %123
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = icmp eq i32 %130, %131
  br i1 %132, label %133, label %134

133:                                              ; preds = %128, %123
  br label %174

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %140
  %142 = call ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %141) #4
  %143 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  br label %144

144:                                              ; preds = %171, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %150
  %152 = call ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %151) #4
  %153 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  %154 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKxiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br i1 %154, label %156, label %155

155:                                              ; preds = %144
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %173

156:                                              ; preds = %144
  %157 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %158 = getelementptr inbounds %"struct.std::pair", ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 8, !tbaa !13
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %164
  %166 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %167 = getelementptr inbounds %"struct.std::pair", ptr %166, i32 0, i32 0
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %165, ptr noundef nonnull align 8 dereferenceable(8) %167)
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = add nsw i32 %169, %159
  store i32 %170, ptr %168, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %156
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKxiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %144, !llvm.loop !15

173:                                              ; preds = %155
  br label %174

174:                                              ; preds = %173, %133
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br label %115, !llvm.loop !16

176:                                              ; preds = %122
  %177 = load i32, ptr %3, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %181
  %183 = load i32, ptr %3, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %184
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %182, ptr noundef nonnull align 8 dereferenceable(8) %185)
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %186, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %176, %91
  %190 = load i32, ptr %3, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = load i64, ptr @sum, align 8, !tbaa !9
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %196
  %198 = load i64, ptr %197, align 8, !tbaa !9
  %199 = sub nsw i64 %194, %198
  %200 = icmp sge i64 %193, %199
  br i1 %200, label %201, label %256

201:                                              ; preds = %189
  %202 = load i32, ptr %3, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %203
  %205 = load i64, ptr %204, align 8, !tbaa !9
  %206 = load i64, ptr @sum, align 8, !tbaa !9
  %207 = load i32, ptr %3, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = sub nsw i64 %206, %210
  %212 = mul nsw i64 %211, 2
  %213 = icmp sle i64 %205, %212
  br i1 %213, label %214, label %256

214:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %215 = load i64, ptr @sum, align 8, !tbaa !9
  %216 = load i32, ptr %3, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %217
  %219 = load i64, ptr %218, align 8, !tbaa !9
  %220 = sub nsw i64 %215, %219
  store i64 %220, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %221 = load i32, ptr %3, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %222
  %224 = load i64, ptr %223, align 8, !tbaa !9
  %225 = load i64, ptr @sum, align 8, !tbaa !9
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %227
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = sub nsw i64 %225, %229
  %231 = sub nsw i64 %224, %230
  store i64 %231, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %232 = load i32, ptr %3, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  store i32 %235, ptr %17, align 4, !tbaa !5
  %236 = load i32, ptr %17, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %237
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %238, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %249, label %242

242:                                              ; preds = %214
  %243 = load i32, ptr %17, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %244
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %245, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = icmp sgt i32 %247, 0
  br i1 %248, label %249, label %255

249:                                              ; preds = %242, %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %250 = load i64, ptr %15, align 8, !tbaa !9
  %251 = load i64, ptr %16, align 8, !tbaa !9
  %252 = sub nsw i64 %250, %251
  store i64 %252, ptr %18, align 8, !tbaa !9
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %254 = load i64, ptr %253, align 8, !tbaa !9
  store i64 %254, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %255

255:                                              ; preds = %249, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %256

256:                                              ; preds = %255, %201, %189
  %257 = load i32, ptr %3, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %258
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %261 = load i64, ptr @sum, align 8, !tbaa !9
  %262 = load i32, ptr %3, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %263
  %265 = load i64, ptr %264, align 8, !tbaa !9
  %266 = sub nsw i64 %261, %265
  %267 = icmp sge i64 %260, %266
  br i1 %267, label %268, label %322

268:                                              ; preds = %256
  %269 = load i32, ptr %3, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %270
  %272 = load i64, ptr %271, align 8, !tbaa !9
  %273 = load i64, ptr @sum, align 8, !tbaa !9
  %274 = load i32, ptr %3, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %275
  %277 = load i64, ptr %276, align 8, !tbaa !9
  %278 = sub nsw i64 %273, %277
  %279 = mul nsw i64 %278, 2
  %280 = icmp sge i64 %272, %279
  br i1 %280, label %281, label %322

281:                                              ; preds = %268
  %282 = load i32, ptr %3, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %283
  %285 = load i64, ptr %284, align 8, !tbaa !9
  %286 = srem i64 %285, 2
  %287 = icmp eq i64 %286, 0
  br i1 %287, label %288, label %322

288:                                              ; preds = %281
  %289 = load i32, ptr %3, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %290
  %292 = load i64, ptr %291, align 8, !tbaa !9
  %293 = icmp ne i64 %292, 0
  br i1 %293, label %294, label %322

294:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %295 = load i32, ptr %3, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %296
  %298 = load i64, ptr %297, align 8, !tbaa !9
  %299 = sdiv i64 %298, 2
  store i64 %299, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %300 = load i32, ptr %3, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !5
  store i32 %303, ptr %20, align 4, !tbaa !5
  %304 = load i32, ptr %20, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %305
  %307 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %306, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = icmp sgt i32 %308, 0
  br i1 %309, label %310, label %321

310:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %311 = load i64, ptr %19, align 8, !tbaa !9
  %312 = load i64, ptr @sum, align 8, !tbaa !9
  %313 = load i32, ptr %3, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %314
  %316 = load i64, ptr %315, align 8, !tbaa !9
  %317 = sub nsw i64 %312, %316
  %318 = sub nsw i64 %311, %317
  store i64 %318, ptr %21, align 8, !tbaa !9
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %320 = load i64, ptr %319, align 8, !tbaa !9
  store i64 %320, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %321

321:                                              ; preds = %310, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %322

322:                                              ; preds = %321, %288, %281, %268, %256
  %323 = load i32, ptr %3, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %324
  %326 = load i64, ptr %325, align 8, !tbaa !9
  %327 = load i64, ptr @sum, align 8, !tbaa !9
  %328 = load i32, ptr %3, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %329
  %331 = load i64, ptr %330, align 8, !tbaa !9
  %332 = sub nsw i64 %327, %331
  %333 = icmp sle i64 %326, %332
  br i1 %333, label %334, label %384

334:                                              ; preds = %322
  %335 = load i32, ptr %3, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %336
  %338 = load i64, ptr %337, align 8, !tbaa !9
  %339 = mul nsw i64 %338, 2
  %340 = load i64, ptr @sum, align 8, !tbaa !9
  %341 = load i32, ptr %3, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %342
  %344 = load i64, ptr %343, align 8, !tbaa !9
  %345 = sub nsw i64 %340, %344
  %346 = icmp sge i64 %339, %345
  br i1 %346, label %347, label %384

347:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %348 = load i32, ptr %3, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !5
  store i32 %351, ptr %22, align 4, !tbaa !5
  %352 = load i32, ptr %22, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %353
  %355 = load i32, ptr %3, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %356
  %358 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %354, ptr noundef nonnull align 8 dereferenceable(8) %357)
  %359 = load i32, ptr %358, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = load i32, ptr %3, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [50100 x i64], ptr @up1, i64 0, i64 %362
  store i64 %360, ptr %363, align 8, !tbaa !9
  %364 = load i32, ptr %22, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %367 = load i64, ptr @sum, align 8, !tbaa !9
  %368 = load i32, ptr %3, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %369
  %371 = load i64, ptr %370, align 8, !tbaa !9
  %372 = sub nsw i64 %367, %371
  %373 = load i32, ptr %3, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %374
  %376 = load i64, ptr %375, align 8, !tbaa !9
  %377 = sub nsw i64 %372, %376
  store i64 %377, ptr %23, align 8, !tbaa !9
  %378 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) %366, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %379 = load i32, ptr %378, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = load i32, ptr %3, align 4, !tbaa !5
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [50100 x i64], ptr @up2, i64 0, i64 %382
  store i64 %380, ptr %383, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %384

384:                                              ; preds = %347, %334, %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSSt4pairIKxiE", !10, i64 0, !6, i64 8}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@g = external dso_local global [50100 x %"class.std::vector"], align 16
@s = external dso_local global [50100 x %"class.std::map"], align 16
@ptr = external dso_local local_unnamed_addr global [50100 x i32], align 16
@c = external dso_local global [50100 x i64], align 16
@up1 = external dso_local local_unnamed_addr global [50100 x i64], align 16
@up2 = external dso_local local_unnamed_addr global [50100 x i64], align 16
@ans = external dso_local global i64, align 8
@sum = external dso_local local_unnamed_addr global i64, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8makeSetsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %15 = sext i32 %0 to i64
  %16 = getelementptr inbounds [50100 x %"class.std::vector"], ptr @g, i64 0, i64 %15
  %17 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %17, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %18 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %18, ptr %4, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %19, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %67

.lr.ph:                                           ; preds = %2
  %20 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %15
  br label %22

._crit_edge:                                      ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %21 = icmp eq i32 %.153, -1
  br i1 %21, label %67, label %69

22:                                               ; preds = %.lr.ph, %63
  %.081 = phi i32 [ 0, %.lr.ph ], [ %.1, %63 ]
  %.05280 = phi i32 [ -1, %.lr.ph ], [ %.153, %63 ]
  %.05479 = phi i32 [ -1, %.lr.ph ], [ %.155, %63 ]
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = icmp eq i32 %24, %1
  br i1 %25, label %63, label %26

26:                                               ; preds = %22
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %28 = load i32, ptr %27, align 4, !tbaa !5
  call void @_Z8makeSetsii(i32 noundef %28, i32 noundef %0)
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = load i64, ptr %20, align 8, !tbaa !9
  %35 = add nsw i64 %34, %33
  store i64 %35, ptr %20, align 8, !tbaa !9
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %41
  %43 = call noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #4
  %44 = sext i32 %.081 to i64
  %45 = icmp ugt i64 %43, %44
  br i1 %45, label %46, label %63

46:                                               ; preds = %26
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %52
  %54 = call noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %53) #4
  %55 = trunc i64 %54 to i32
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %62 = load i32, ptr %61, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %26, %46, %22
  %.155 = phi i32 [ %.05479, %22 ], [ %62, %46 ], [ %.05479, %26 ]
  %.153 = phi i32 [ %.05280, %22 ], [ %60, %46 ], [ %.05280, %26 ]
  %.1 = phi i32 [ %.081, %22 ], [ %55, %46 ], [ %.081, %26 ]
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %65, ptr %4, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %66, label %22, label %._crit_edge, !llvm.loop !11

67:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %68 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %15
  store i32 %0, ptr %68, align 4, !tbaa !5
  br label %125

69:                                               ; preds = %._crit_edge
  %70 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %15
  store i32 %.153, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %71 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %71, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %72 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %72, ptr %6, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %73, label %.lr.ph87, label %._crit_edge88

._crit_edge88:                                    ; preds = %121, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %74 = load i32, ptr %70, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  br label %125

.lr.ph87:                                         ; preds = %69, %121
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = icmp eq i32 %77, %1
  br i1 %78, label %121, label %79

79:                                               ; preds = %.lr.ph87
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = icmp eq i32 %81, %.155
  br i1 %82, label %121, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %89
  %91 = call ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %90) #4
  store ptr %91, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %97
  %99 = call ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %98) #4
  store ptr %99, ptr %8, align 8
  %100 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKxiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %100, label %.lr.ph84, label %._crit_edge85

._crit_edge85:                                    ; preds = %.lr.ph84, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %121

.lr.ph84:                                         ; preds = %83, %.lr.ph84
  %101 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load i32, ptr %102, align 8, !tbaa !13
  %104 = load i32, ptr %70, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %105
  %107 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %106, ptr noundef nonnull align 8 dereferenceable(8) %107)
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = add nsw i32 %109, %103
  store i32 %110, ptr %108, align 4, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKxiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %117
  %119 = call ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %118) #4
  store ptr %119, ptr %8, align 8
  %120 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKxiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %120, label %.lr.ph84, label %._crit_edge85, !llvm.loop !15

121:                                              ; preds = %.lr.ph87, %79, %._crit_edge85
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %123 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  store ptr %123, ptr %6, align 8
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %124, label %.lr.ph87, label %._crit_edge88, !llvm.loop !16

125:                                              ; preds = %._crit_edge88, %67
  %.sink = phi i64 [ %75, %._crit_edge88 ], [ %15, %67 ]
  %126 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %.sink
  %127 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %15
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %126, ptr noundef nonnull align 8 dereferenceable(8) %127)
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %128, align 4, !tbaa !5
  %131 = getelementptr inbounds [50100 x i64], ptr @c, i64 0, i64 %15
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = load i64, ptr @sum, align 8, !tbaa !9
  %134 = sub nsw i64 %133, %132
  %.not = icmp slt i64 %132, %134
  %135 = shl nsw i64 %134, 1
  %.not62 = icmp sgt i64 %132, %135
  %or.cond = select i1 %.not, i1 true, i1 %.not62
  br i1 %or.cond, label %156, label %136

136:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store i64 %134, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %factor = shl i64 %132, 1
  %137 = sub i64 %factor, %133
  store i64 %137, ptr %10, align 8, !tbaa !9
  %138 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %15
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %140
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %141, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = icmp sgt i32 %143, 0
  br i1 %144, label %149, label %145

145:                                              ; preds = %136
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %141, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp sgt i32 %147, 0
  br i1 %148, label %._crit_edge89, label %155

._crit_edge89:                                    ; preds = %145
  %.pre = load i64, ptr %10, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %._crit_edge89, %136
  %150 = phi i64 [ %.pre, %._crit_edge89 ], [ %137, %136 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %151 = load i64, ptr %9, align 8, !tbaa !9
  %152 = sub nsw i64 %151, %150
  store i64 %152, ptr %11, align 8, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %154 = load i64, ptr %153, align 8, !tbaa !9
  store i64 %154, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %155

155:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %.pre90 = load i64, ptr %131, align 8, !tbaa !9
  %.pre91 = load i64, ptr @sum, align 8, !tbaa !9
  %.pre94 = sub nsw i64 %.pre91, %.pre90
  %.pre95 = shl nsw i64 %.pre94, 1
  br label %156

156:                                              ; preds = %155, %125
  %.pre-phi96 = phi i64 [ %.pre95, %155 ], [ %135, %125 ]
  %.pre-phi = phi i64 [ %.pre94, %155 ], [ %134, %125 ]
  %157 = phi i64 [ %.pre90, %155 ], [ %132, %125 ]
  %.not63 = icmp slt i64 %157, %.pre-phi
  %.not64 = icmp slt i64 %157, %.pre-phi96
  %or.cond69.not74.not77 = select i1 %.not63, i1 true, i1 %.not64
  %158 = and i64 %157, 1
  %159 = icmp ne i64 %158, 0
  %or.cond71.not76 = or i1 %159, %or.cond69.not74.not77
  %.not65 = icmp eq i64 %157, 0
  %or.cond72 = or i1 %.not65, %or.cond71.not76
  br i1 %or.cond72, label %177, label %160

160:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %161 = ashr exact i64 %157, 1
  store i64 %161, ptr %12, align 8, !tbaa !9
  %162 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %15
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %164
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %165, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %169, label %176

169:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %170 = load i64, ptr %12, align 8, !tbaa !9
  %171 = load i64, ptr @sum, align 8, !tbaa !9
  %172 = load i64, ptr %131, align 8, !tbaa !9
  %.neg66 = sub i64 %170, %171
  %173 = add i64 %.neg66, %172
  store i64 %173, ptr %13, align 8, !tbaa !9
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %175 = load i64, ptr %174, align 8, !tbaa !9
  store i64 %175, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %176

176:                                              ; preds = %169, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  %.pre92 = load i64, ptr %131, align 8, !tbaa !9
  %.pre93 = load i64, ptr @sum, align 8, !tbaa !9
  %.pre97 = sub nsw i64 %.pre93, %.pre92
  br label %177

177:                                              ; preds = %176, %156
  %.pre-phi98 = phi i64 [ %.pre97, %176 ], [ %.pre-phi, %156 ]
  %178 = phi i64 [ %.pre92, %176 ], [ %157, %156 ]
  %.not67 = icmp sgt i64 %178, %.pre-phi98
  %179 = shl nsw i64 %178, 1
  %.not68 = icmp slt i64 %179, %.pre-phi98
  %or.cond73 = select i1 %.not67, i1 true, i1 %.not68
  br i1 %or.cond73, label %197, label %180

180:                                              ; preds = %177
  %181 = getelementptr inbounds [50100 x i32], ptr @ptr, i64 0, i64 %15
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [50100 x %"class.std::map"], ptr @s, i64 0, i64 %183
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %184, ptr noundef nonnull align 8 dereferenceable(8) %131)
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [50100 x i64], ptr @up1, i64 0, i64 %15
  store i64 %187, ptr %188, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %189 = load i64, ptr @sum, align 8, !tbaa !9
  %190 = load i64, ptr %131, align 8, !tbaa !9
  %191 = shl i64 %190, 1
  %192 = sub i64 %189, %191
  store i64 %192, ptr %14, align 8, !tbaa !9
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixEOx(ptr noundef nonnull align 8 dereferenceable(48) %184, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [50100 x i64], ptr @up2, i64 0, i64 %15
  store i64 %195, ptr %196, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br label %197

197:                                              ; preds = %180, %177
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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