; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2020.02 (triangles)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [2 x [20001 x %"class.std::vector"]], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"struct.std::pair", align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %29 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %30 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %32
  %34 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %33, ptr noundef null)
  %35 = load ptr, ptr @stdin, align 8, !tbaa !8
  %36 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %35)
  %37 = load ptr, ptr @stdout, align 8, !tbaa !8
  %38 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 960048, ptr %3) #9
  %40 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i32 0, i32 0, i32 0
  %41 = getelementptr inbounds %"class.std::vector", ptr %40, i64 40002
  br label %42

42:                                               ; preds = %42, %0
  %43 = phi ptr [ %40, %0 ], [ %44, %42 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  %44 = getelementptr inbounds %"class.std::vector", ptr %43, i64 1
  %45 = icmp eq ptr %44, %41
  br i1 %45, label %46, label %42

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %77, %46
  %48 = load i32, ptr %4, align 4, !tbaa !11
  %49 = load i32, ptr %2, align 4, !tbaa !11
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %93

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %54 unwind label %80

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %56 unwind label %80

56:                                               ; preds = %54
  %57 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 0
  %58 = load i32, ptr %5, align 4, !tbaa !11
  %59 = add nsw i32 %58, 10000
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %57, i64 0, i64 %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %62 = load i32, ptr %6, align 4, !tbaa !11
  %63 = add nsw i32 %62, 10000
  store i32 %63, ptr %10, align 4, !tbaa !11
  %64 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %65 unwind label %84

65:                                               ; preds = %56
  store i64 %64, ptr %9, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %66 unwind label %84

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  %67 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 1
  %68 = load i32, ptr %6, align 4, !tbaa !11
  %69 = add nsw i32 %68, 10000
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %67, i64 0, i64 %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %72 = load i32, ptr %5, align 4, !tbaa !11
  %73 = add nsw i32 %72, 10000
  store i32 %73, ptr %12, align 4, !tbaa !11
  %74 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %75 unwind label %88

75:                                               ; preds = %66
  store i64 %74, ptr %11, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %76 unwind label %88

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %4, align 4, !tbaa !11
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !11
  br label %47, !llvm.loop !13

80:                                               ; preds = %54, %52
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %92

84:                                               ; preds = %65, %56
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %92

88:                                               ; preds = %75, %66
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %92

92:                                               ; preds = %88, %84, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %317

93:                                               ; preds = %51
  %94 = load i32, ptr %2, align 4, !tbaa !11
  %95 = zext i32 %94 to i64
  %96 = call ptr @llvm.stacksave.p0()
  store ptr %96, ptr %13, align 8
  %97 = mul nuw i64 2, %95
  %98 = alloca i64, i64 %97, align 16
  store i64 %95, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %268, %93
  %100 = load i32, ptr %15, align 4, !tbaa !11
  %101 = icmp slt i32 %100, 2
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %271

103:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %264, %103
  %105 = load i32, ptr %17, align 4, !tbaa !11
  %106 = icmp slt i32 %105, 20001
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %267

108:                                              ; preds = %104
  %109 = load i32, ptr %15, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %110
  %112 = load i32, ptr %17, align 4, !tbaa !11
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %111, i64 0, i64 %113
  %115 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #9
  %116 = trunc i64 %115 to i32
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %108
  br label %264

119:                                              ; preds = %108
  %120 = load i32, ptr %15, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %121
  %123 = load i32, ptr %17, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %122, i64 0, i64 %124
  %126 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #9
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = load i32, ptr %15, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %129
  %131 = load i32, ptr %17, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %130, i64 0, i64 %132
  %134 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #9
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %137, ptr %139)
          to label %140 unwind label %156

140:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  store i64 0, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  store i64 0, ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %141 = load i32, ptr %15, align 4, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %142
  %144 = load i32, ptr %17, align 4, !tbaa !11
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %143, i64 0, i64 %145
  store ptr %146, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %147 = load ptr, ptr %22, align 8, !tbaa !8
  %148 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #9
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %150 = load ptr, ptr %22, align 8, !tbaa !8
  %151 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #9
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %151, ptr %152, align 8
  br label %153

153:                                              ; preds = %179, %140
  %154 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br i1 %154, label %160, label %155

155:                                              ; preds = %153
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %181

156:                                              ; preds = %119
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %317

160:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %161 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %161, i64 8, i1 false)
  %162 = getelementptr inbounds %"struct.std::pair", ptr %25, i32 0, i32 0
  %163 = load i32, ptr %162, align 4, !tbaa !17
  %164 = load i32, ptr %15, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %165
  %167 = load i32, ptr %17, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %166, i64 0, i64 %168
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef 0) #9
  %171 = getelementptr inbounds %"struct.std::pair", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !17
  %173 = sub nsw i32 %163, %172
  %174 = sext i32 %173 to i64
  %175 = load i64, ptr %20, align 8, !tbaa !15
  %176 = add nsw i64 %175, %174
  store i64 %176, ptr %20, align 8, !tbaa !15
  %177 = load i64, ptr %21, align 8, !tbaa !15
  %178 = add nsw i64 %177, -1
  store i64 %178, ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %179

179:                                              ; preds = %160
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br label %153

181:                                              ; preds = %155
  %182 = load i64, ptr %20, align 8, !tbaa !15
  %183 = load i32, ptr %15, align 4, !tbaa !11
  %184 = sext i32 %183 to i64
  %185 = mul nsw i64 %184, %95
  %186 = getelementptr inbounds i64, ptr %98, i64 %185
  %187 = load i32, ptr %15, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %188
  %190 = load i32, ptr %17, align 4, !tbaa !11
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %189, i64 0, i64 %191
  %193 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef 0) #9
  %194 = getelementptr inbounds %"struct.std::pair", ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !19
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i64, ptr %186, i64 %196
  store i64 %182, ptr %197, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 1, ptr %26, align 4, !tbaa !11
  br label %198

198:                                              ; preds = %260, %181
  %199 = load i32, ptr %26, align 4, !tbaa !11
  %200 = load i32, ptr %15, align 4, !tbaa !11
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %201
  %203 = load i32, ptr %17, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %202, i64 0, i64 %204
  %206 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #9
  %207 = trunc i64 %206 to i32
  %208 = icmp slt i32 %199, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %198
  store i32 13, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %263

210:                                              ; preds = %198
  %211 = load i64, ptr %21, align 8, !tbaa !15
  %212 = add nsw i64 %211, 2
  store i64 %212, ptr %21, align 8, !tbaa !15
  %213 = load i64, ptr %21, align 8, !tbaa !15
  %214 = load i32, ptr %15, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %215
  %217 = load i32, ptr %17, align 4, !tbaa !11
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %216, i64 0, i64 %218
  %220 = load i32, ptr %26, align 4, !tbaa !11
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %221) #9
  %223 = getelementptr inbounds %"struct.std::pair", ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 4, !tbaa !17
  %225 = load i32, ptr %15, align 4, !tbaa !11
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %226
  %228 = load i32, ptr %17, align 4, !tbaa !11
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %227, i64 0, i64 %229
  %231 = load i32, ptr %26, align 4, !tbaa !11
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %230, i64 noundef %233) #9
  %235 = getelementptr inbounds %"struct.std::pair", ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 4, !tbaa !17
  %237 = sub nsw i32 %224, %236
  %238 = sext i32 %237 to i64
  %239 = mul nsw i64 %213, %238
  %240 = load i64, ptr %20, align 8, !tbaa !15
  %241 = add nsw i64 %240, %239
  store i64 %241, ptr %20, align 8, !tbaa !15
  %242 = load i64, ptr %20, align 8, !tbaa !15
  %243 = load i32, ptr %15, align 4, !tbaa !11
  %244 = sext i32 %243 to i64
  %245 = mul nsw i64 %244, %95
  %246 = getelementptr inbounds i64, ptr %98, i64 %245
  %247 = load i32, ptr %15, align 4, !tbaa !11
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i64 0, i64 %248
  %250 = load i32, ptr %17, align 4, !tbaa !11
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %249, i64 0, i64 %251
  %253 = load i32, ptr %26, align 4, !tbaa !11
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %254) #9
  %256 = getelementptr inbounds %"struct.std::pair", ptr %255, i32 0, i32 1
  %257 = load i32, ptr %256, align 4, !tbaa !19
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds i64, ptr %246, i64 %258
  store i64 %242, ptr %259, align 8, !tbaa !15
  br label %260

260:                                              ; preds = %210
  %261 = load i32, ptr %26, align 4, !tbaa !11
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %26, align 4, !tbaa !11
  br label %198, !llvm.loop !20

263:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %264

264:                                              ; preds = %263, %118
  %265 = load i32, ptr %17, align 4, !tbaa !11
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %17, align 4, !tbaa !11
  br label %104, !llvm.loop !21

267:                                              ; preds = %107
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %15, align 4, !tbaa !11
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %15, align 4, !tbaa !11
  br label %99, !llvm.loop !22

271:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  store i64 0, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %272

272:                                              ; preds = %295, %271
  %273 = load i32, ptr %28, align 4, !tbaa !11
  %274 = load i32, ptr %2, align 4, !tbaa !11
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  store i32 16, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %298

277:                                              ; preds = %272
  %278 = mul nsw i64 0, %95
  %279 = getelementptr inbounds i64, ptr %98, i64 %278
  %280 = load i32, ptr %28, align 4, !tbaa !11
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds i64, ptr %279, i64 %281
  %283 = load i64, ptr %282, align 8, !tbaa !15
  %284 = mul nsw i64 1, %95
  %285 = getelementptr inbounds i64, ptr %98, i64 %284
  %286 = load i32, ptr %28, align 4, !tbaa !11
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds i64, ptr %285, i64 %287
  %289 = load i64, ptr %288, align 8, !tbaa !15
  %290 = mul nsw i64 %283, %289
  %291 = load i64, ptr %27, align 8, !tbaa !15
  %292 = add nsw i64 %291, %290
  store i64 %292, ptr %27, align 8, !tbaa !15
  %293 = load i64, ptr %27, align 8, !tbaa !15
  %294 = srem i64 %293, 1000000007
  store i64 %294, ptr %27, align 8, !tbaa !15
  br label %295

295:                                              ; preds = %277
  %296 = load i32, ptr %28, align 4, !tbaa !11
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %28, align 4, !tbaa !11
  br label %272, !llvm.loop !23

298:                                              ; preds = %276
  %299 = load i64, ptr %27, align 8, !tbaa !15
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %299)
          to label %301 unwind label %307

301:                                              ; preds = %298
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %303 unwind label %307

303:                                              ; preds = %301
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  %304 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %304)
  %305 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i32 0, i32 0, i32 0
  %306 = getelementptr inbounds %"class.std::vector", ptr %305, i64 40002
  br label %311

307:                                              ; preds = %301, %298
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %7, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %317

311:                                              ; preds = %311, %303
  %312 = phi ptr [ %306, %303 ], [ %313, %311 ]
  %313 = getelementptr inbounds %"class.std::vector", ptr %312, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %313) #9
  %314 = icmp eq ptr %313, %305
  br i1 %314, label %315, label %311

315:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 960048, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %316 = load i32, ptr %1, align 4
  ret i32 %316

317:                                              ; preds = %307, %156, %92
  %318 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %3, i32 0, i32 0, i32 0
  %319 = getelementptr inbounds %"class.std::vector", ptr %318, i64 40002
  br label %320

320:                                              ; preds = %320, %317
  %321 = phi ptr [ %319, %317 ], [ %322, %320 ]
  %322 = getelementptr inbounds %"class.std::vector", ptr %321, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %322) #9
  %323 = icmp eq ptr %322, %318
  br i1 %323, label %324, label %320

324:                                              ; preds = %320
  call void @llvm.lifetime.end.p0(i64 960048, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %325

325:                                              ; preds = %324
  %326 = load ptr, ptr %7, align 8
  %327 = load i32, ptr %8, align 4
  %328 = insertvalue { ptr, i32 } poison, ptr %326, 0
  %329 = insertvalue { ptr, i32 } %328, i32 %327, 1
  resume { ptr, i32 } %329
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [2 x [20001 x %"class.std::vector"]], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = load ptr, ptr @stdin, align 8, !tbaa !8
  %19 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %18)
  %20 = load ptr, ptr @stdout, align 8, !tbaa !8
  %21 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 960048, ptr nonnull %2) #8
  br label %23

23:                                               ; preds = %23, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %23 ]
  %.ptr = getelementptr inbounds i8, ptr %2, i64 %.idx
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %24 = icmp eq i64 %.add, 960048
  br i1 %24, label %25, label %23

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %2, i64 960048
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 0, ptr %3, align 4, !tbaa !11
  %27 = load i32, ptr %1, align 4, !tbaa !11
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %29 = getelementptr inbounds i8, ptr %2, i64 480024
  br label %34

._crit_edge:                                      ; preds = %56, %25
  %.lcssa = phi i32 [ %27, %25 ], [ %59, %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %30 = zext i32 %.lcssa to i64
  %31 = call ptr @llvm.stacksave.p0()
  %32 = shl nuw nsw i64 %30, 1
  %33 = alloca i64, i64 %32, align 16
  br label %119

34:                                               ; preds = %.lr.ph, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %36 unwind label %61

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %38 unwind label %61

38:                                               ; preds = %36
  %39 = load i32, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %40 = load i32, ptr %5, align 4, !tbaa !11
  %41 = add nsw i32 %40, 10000
  store i32 %41, ptr %7, align 4, !tbaa !11
  %42 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %43 unwind label %63

43:                                               ; preds = %38
  %44 = add nsw i32 %39, 10000
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %2, i64 0, i64 %45
  store i64 %42, ptr %6, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %47 unwind label %63

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %48 = load i32, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %49 = load i32, ptr %4, align 4, !tbaa !11
  %50 = add nsw i32 %49, 10000
  store i32 %50, ptr %9, align 4, !tbaa !11
  %51 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %52 unwind label %65

52:                                               ; preds = %47
  %53 = add nsw i32 %48, 10000
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [20001 x %"class.std::vector"], ptr %29, i64 0, i64 %54
  store i64 %51, ptr %8, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %56 unwind label %65

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %57 = load i32, ptr %3, align 4, !tbaa !11
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %3, align 4, !tbaa !11
  %59 = load i32, ptr %1, align 4, !tbaa !11
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %34, label %._crit_edge, !llvm.loop !13

61:                                               ; preds = %36, %34
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %67

63:                                               ; preds = %43, %38
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %67

65:                                               ; preds = %52, %47
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %67

67:                                               ; preds = %65, %63, %61
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %199

.lr.ph89:                                         ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %117 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %68 = icmp eq i32 %117, 1
  br i1 %68, label %._crit_edge90.loopexit.unr-lcssa, label %.lr.ph89.new

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

.preheader69.1:                                   ; preds = %.loopexit
  %69 = getelementptr inbounds i64, ptr %33, i64 %30
  br label %70

70:                                               ; preds = %.loopexit.1, %.preheader69.1
  %indvars.iv97.1 = phi i64 [ 0, %.preheader69.1 ], [ %indvars.iv.next98.1, %.loopexit.1 ]
  %71 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %2, i64 0, i64 1, i64 %indvars.iv97.1
  %72 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  %73 = and i64 %72, 4294967295
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %.loopexit.1, label %75

75:                                               ; preds = %70
  %76 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  %77 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %76, ptr %77)
          to label %78 unwind label %.loopexit.split-lp

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %79 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  store ptr %79, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %80 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  store ptr %80, ptr %11, align 8
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %81, label %.lr.ph76.1, label %._crit_edge77.1

.lr.ph76.1:                                       ; preds = %78, %.lr.ph76.1
  %.05774.1 = phi i64 [ %88, %.lr.ph76.1 ], [ 0, %78 ]
  %.05973.1 = phi i64 [ %87, %.lr.ph76.1 ], [ 0, %78 ]
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %.sroa.0.0.copyload.1 = load i32, ptr %82, align 4
  %83 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 0) #8
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = sub nsw i32 %.sroa.0.0.copyload.1, %84
  %86 = sext i32 %85 to i64
  %87 = add nsw i64 %.05973.1, %86
  %88 = add nsw i64 %.05774.1, -1
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %90, label %.lr.ph76.1, label %._crit_edge77.1

._crit_edge77.1:                                  ; preds = %.lr.ph76.1, %78
  %.059.lcssa.1 = phi i64 [ 0, %78 ], [ %87, %.lr.ph76.1 ]
  %.057.lcssa.1 = phi i64 [ 0, %78 ], [ %88, %.lr.ph76.1 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %91 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 0) #8
  %92 = getelementptr inbounds i8, ptr %91, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !17
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %69, i64 %94
  store i64 %.059.lcssa.1, ptr %95, align 8, !tbaa !18
  %96 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  %97 = trunc i64 %96 to i32
  %98 = icmp sgt i32 %97, 1
  br i1 %98, label %.lr.ph84.1, label %.loopexit.1

.lr.ph84.1:                                       ; preds = %._crit_edge77.1, %.lr.ph84.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph84.1 ], [ 1, %._crit_edge77.1 ]
  %.15881.1 = phi i64 [ %99, %.lr.ph84.1 ], [ %.057.lcssa.1, %._crit_edge77.1 ]
  %.16080.1 = phi i64 [ %108, %.lr.ph84.1 ], [ %.059.lcssa.1, %._crit_edge77.1 ]
  %99 = add nsw i64 %.15881.1, 2
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv.1) #8
  %101 = load i32, ptr %100, align 4, !tbaa !15
  %102 = add nsw i64 %indvars.iv.1, -1
  %103 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %102) #8
  %104 = load i32, ptr %103, align 4, !tbaa !15
  %105 = sub nsw i32 %101, %104
  %106 = sext i32 %105 to i64
  %107 = mul nsw i64 %99, %106
  %108 = add nsw i64 %107, %.16080.1
  %109 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv.1) #8
  %110 = getelementptr inbounds i8, ptr %109, i64 4
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i64, ptr %69, i64 %112
  store i64 %108, ptr %113, align 8, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %114 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #8
  %sext108 = shl i64 %114, 32
  %115 = ashr exact i64 %sext108, 32
  %116 = icmp slt i64 %indvars.iv.next.1, %115
  br i1 %116, label %.lr.ph84.1, label %.loopexit.1, !llvm.loop !20

.loopexit.1:                                      ; preds = %.lr.ph84.1, %._crit_edge77.1, %70
  %indvars.iv.next98.1 = add nuw nsw i64 %indvars.iv97.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next98.1, 20001
  br i1 %exitcond.1.not, label %.preheader, label %70, !llvm.loop !21

.preheader:                                       ; preds = %.loopexit.1
  %117 = load i32, ptr %1, align 4, !tbaa !11
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %.lr.ph89, label %._crit_edge90

119:                                              ; preds = %._crit_edge, %.loopexit
  %indvars.iv97 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next98, %.loopexit ]
  %120 = getelementptr inbounds [2 x [20001 x %"class.std::vector"]], ptr %2, i64 0, i64 0, i64 %indvars.iv97
  %121 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %122 = and i64 %121, 4294967295
  %123 = icmp eq i64 %122, 0
  br i1 %123, label %.loopexit, label %124

124:                                              ; preds = %119
  %125 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %126 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %125, ptr %126)
          to label %127 unwind label %.loopexit103

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %128 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  store ptr %128, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %129 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  store ptr %129, ptr %11, align 8
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %130, label %.lr.ph76, label %._crit_edge77

._crit_edge77:                                    ; preds = %.lr.ph76, %127
  %.059.lcssa = phi i64 [ 0, %127 ], [ %144, %.lr.ph76 ]
  %.057.lcssa = phi i64 [ 0, %127 ], [ %145, %.lr.ph76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef 0) #8
  %132 = getelementptr inbounds i8, ptr %131, i64 4
  %133 = load i32, ptr %132, align 4, !tbaa !17
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i64, ptr %33, i64 %134
  store i64 %.059.lcssa, ptr %135, align 8, !tbaa !18
  %136 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %137 = trunc i64 %136 to i32
  %138 = icmp sgt i32 %137, 1
  br i1 %138, label %.lr.ph84, label %.loopexit

.loopexit103:                                     ; preds = %124
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %199

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

.lr.ph76:                                         ; preds = %127, %.lr.ph76
  %.05774 = phi i64 [ %145, %.lr.ph76 ], [ 0, %127 ]
  %.05973 = phi i64 [ %144, %.lr.ph76 ], [ 0, %127 ]
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %.sroa.0.0.copyload = load i32, ptr %139, align 4
  %140 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef 0) #8
  %141 = load i32, ptr %140, align 4, !tbaa !15
  %142 = sub nsw i32 %.sroa.0.0.copyload, %141
  %143 = sext i32 %142 to i64
  %144 = add nsw i64 %.05973, %143
  %145 = add nsw i64 %.05774, -1
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %147 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %147, label %.lr.ph76, label %._crit_edge77

.lr.ph84:                                         ; preds = %._crit_edge77, %.lr.ph84
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph84 ], [ 1, %._crit_edge77 ]
  %.15881 = phi i64 [ %148, %.lr.ph84 ], [ %.057.lcssa, %._crit_edge77 ]
  %.16080 = phi i64 [ %157, %.lr.ph84 ], [ %.059.lcssa, %._crit_edge77 ]
  %148 = add nsw i64 %.15881, 2
  %149 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %indvars.iv) #8
  %150 = load i32, ptr %149, align 4, !tbaa !15
  %151 = add nsw i64 %indvars.iv, -1
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %151) #8
  %153 = load i32, ptr %152, align 4, !tbaa !15
  %154 = sub nsw i32 %150, %153
  %155 = sext i32 %154 to i64
  %156 = mul nsw i64 %148, %155
  %157 = add nsw i64 %156, %.16080
  %158 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %indvars.iv) #8
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  %160 = load i32, ptr %159, align 4, !tbaa !17
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i64, ptr %33, i64 %161
  store i64 %157, ptr %162, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %163 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %sext = shl i64 %163, 32
  %164 = ashr exact i64 %sext, 32
  %165 = icmp slt i64 %indvars.iv.next, %164
  br i1 %165, label %.lr.ph84, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph84, %._crit_edge77, %119
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next98, 20001
  br i1 %exitcond.not, label %.preheader69.1, label %119, !llvm.loop !21

._crit_edge90.loopexit.unr-lcssa:                 ; preds = %174, %.lr.ph89
  %.lcssa121.ph = phi i64 [ poison, %.lr.ph89 ], [ %188, %174 ]
  %indvars.iv104.unr = phi i64 [ 0, %.lr.ph89 ], [ %indvars.iv.next105.1, %174 ]
  %.05287.unr = phi i64 [ 0, %.lr.ph89 ], [ %188, %174 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge90, label %._crit_edge90.loopexit.epilog-lcssa

._crit_edge90.loopexit.epilog-lcssa:              ; preds = %._crit_edge90.loopexit.unr-lcssa
  %166 = getelementptr inbounds i64, ptr %33, i64 %indvars.iv104.unr
  %167 = load i64, ptr %166, align 8, !tbaa !18
  %168 = getelementptr inbounds i64, ptr %69, i64 %indvars.iv104.unr
  %169 = load i64, ptr %168, align 8, !tbaa !18
  %170 = mul nsw i64 %169, %167
  %171 = add nsw i64 %170, %.05287.unr
  %172 = srem i64 %171, 1000000007
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge90.loopexit.epilog-lcssa, %._crit_edge90.loopexit.unr-lcssa, %.preheader
  %.052.lcssa = phi i64 [ 0, %.preheader ], [ %.lcssa121.ph, %._crit_edge90.loopexit.unr-lcssa ], [ %172, %._crit_edge90.loopexit.epilog-lcssa ]
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.052.lcssa)
          to label %189 unwind label %192

174:                                              ; preds = %174, %.lr.ph89.new
  %indvars.iv104 = phi i64 [ 0, %.lr.ph89.new ], [ %indvars.iv.next105.1, %174 ]
  %.05287 = phi i64 [ 0, %.lr.ph89.new ], [ %188, %174 ]
  %niter = phi i64 [ 0, %.lr.ph89.new ], [ %niter.next.1, %174 ]
  %175 = getelementptr inbounds i64, ptr %33, i64 %indvars.iv104
  %176 = load i64, ptr %175, align 16, !tbaa !18
  %177 = getelementptr inbounds i64, ptr %69, i64 %indvars.iv104
  %178 = load i64, ptr %177, align 8, !tbaa !18
  %179 = mul nsw i64 %178, %176
  %180 = add nsw i64 %179, %.05287
  %181 = srem i64 %180, 1000000007
  %indvars.iv.next105 = or disjoint i64 %indvars.iv104, 1
  %182 = getelementptr inbounds i64, ptr %33, i64 %indvars.iv.next105
  %183 = load i64, ptr %182, align 8, !tbaa !18
  %184 = getelementptr inbounds i64, ptr %69, i64 %indvars.iv.next105
  %185 = load i64, ptr %184, align 8, !tbaa !18
  %186 = mul nsw i64 %185, %183
  %187 = add nsw i64 %186, %181
  %188 = srem i64 %187, 1000000007
  %indvars.iv.next105.1 = add nuw nsw i64 %indvars.iv104, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge90.loopexit.unr-lcssa, label %174, !llvm.loop !22

189:                                              ; preds = %._crit_edge90
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %191 unwind label %192

191:                                              ; preds = %189
  call void @llvm.stackrestore.p0(ptr %31)
  br label %194

192:                                              ; preds = %189, %._crit_edge90
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %199

194:                                              ; preds = %194, %191
  %195 = phi ptr [ %26, %191 ], [ %196, %194 ]
  %196 = getelementptr inbounds i8, ptr %195, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %196) #8
  %197 = icmp eq ptr %196, %2
  br i1 %197, label %198, label %194

198:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 960048, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

199:                                              ; preds = %.loopexit103, %.loopexit.split-lp, %192, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %193, %192 ], [ %lpad.loopexit, %.loopexit103 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  br label %200

200:                                              ; preds = %200, %199
  %201 = phi ptr [ %26, %199 ], [ %202, %200 ]
  %202 = getelementptr inbounds i8, ptr %201, i64 -24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %202) #8
  %203 = icmp eq ptr %202, %2
  br i1 %203, label %204, label %200

204:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 960048, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) 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_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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


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