; LLVM IR from tangjz/acm-icpc :: spoj (PCOPTRIP)

; 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<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 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mu = external dso_local global [100001 x i32], align 16
@deg = external dso_local global [100001 x i32], align 16
@ord = external dso_local global [100001 x i32], align 16
@dis = external dso_local global [100001 x i32], align 16
@e = external dso_local global [100001 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 1, ptr getelementptr inbounds ([100001 x i32], ptr @mu, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %74, %0
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 100001
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %77

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = add nsw i32 %52, %53
  store i32 %54, ptr %4, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %69, %51
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 100001
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %73

59:                                               ; preds = %55
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sub nsw i32 %67, %63
  store i32 %68, ptr %66, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %59
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = add nsw i32 %71, %70
  store i32 %72, ptr %4, align 4, !tbaa !5
  br label %55, !llvm.loop !9

73:                                               ; preds = %58
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !5
  br label %47, !llvm.loop !11

77:                                               ; preds = %50
  %78 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %79

79:                                               ; preds = %486, %77
  %80 = load i32, ptr @t, align 4, !tbaa !5
  %81 = add nsw i32 %80, -1
  store i32 %81, ptr @t, align 4, !tbaa !5
  %82 = icmp ne i32 %80, 0
  br i1 %82, label %83, label %489

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !12
  %84 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = mul i64 %86, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @deg, i64 1), i8 0, i64 %87, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %101, %83
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = load i32, ptr @n, align 4, !tbaa !5
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %104

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %95
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %96) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %6, align 4, !tbaa !5
  br label %88, !llvm.loop !14

104:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %224, %104
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr @n, align 4, !tbaa !5
  %108 = icmp sle i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %227

110:                                              ; preds = %105
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %223

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

118:                                              ; preds = %216, %116
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %222

123:                                              ; preds = %118
  %124 = load i32, ptr %11, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %215

129:                                              ; preds = %123
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %215

135:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %136 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %136, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %137 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %137, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = sdiv i32 %138, %139
  store i32 %140, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = mul nsw i32 %141, %142
  store i32 %143, ptr %15, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %205, %135
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = load i32, ptr %14, align 4, !tbaa !5
  %147 = icmp sle i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %214

149:                                              ; preds = %144
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %167

155:                                              ; preds = %149
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %167

161:                                              ; preds = %155
  %162 = load i32, ptr %15, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %168, label %167

167:                                              ; preds = %161, %155, %149
  br label %205

168:                                              ; preds = %161
  %169 = load i32, ptr %10, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = sdiv i32 %172, %173
  store i32 %174, ptr %17, align 4, !tbaa !5
  %175 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %17)
  store i64 %175, ptr %16, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = icmp ne i32 %176, %177
  br i1 %178, label %179, label %187

179:                                              ; preds = %168
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = sdiv i32 %183, %184
  store i32 %185, ptr %19, align 4, !tbaa !5
  %186 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %19)
  store i64 %186, ptr %18, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %182, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %187

187:                                              ; preds = %179, %168
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %8, align 4, !tbaa !5
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 4, !tbaa !5
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = icmp ne i32 %195, %196
  br i1 %197, label %198, label %204

198:                                              ; preds = %187
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %201, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %198, %187
  br label %205

205:                                              ; preds = %204, %167
  %206 = load i32, ptr %11, align 4, !tbaa !5
  %207 = load i32, ptr %12, align 4, !tbaa !5
  %208 = add nsw i32 %207, %206
  store i32 %208, ptr %12, align 4, !tbaa !5
  %209 = load i32, ptr %13, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %13, align 4, !tbaa !5
  %211 = load i32, ptr %9, align 4, !tbaa !5
  %212 = load i32, ptr %15, align 4, !tbaa !5
  %213 = add nsw i32 %212, %211
  store i32 %213, ptr %15, align 4, !tbaa !5
  br label %144, !llvm.loop !15

214:                                              ; preds = %148
  br label %215

215:                                              ; preds = %214, %129, %123
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %9, align 4, !tbaa !5
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = add nsw i32 %218, %217
  store i32 %219, ptr %10, align 4, !tbaa !5
  %220 = load i32, ptr %11, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %11, align 4, !tbaa !5
  br label %118, !llvm.loop !16

222:                                              ; preds = %122
  br label %223

223:                                              ; preds = %222, %110
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %9, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %9, align 4, !tbaa !5
  br label %105, !llvm.loop !17

227:                                              ; preds = %109
  %228 = load i32, ptr @n, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr @ord, i64 %229
  %231 = getelementptr inbounds i32, ptr %230, i64 1
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef getelementptr inbounds (i32, ptr @ord, i64 1), ptr noundef %231, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %277, %227
  %233 = load i32, ptr %20, align 4, !tbaa !5
  %234 = load i32, ptr @n, align 4, !tbaa !5
  %235 = icmp sle i32 %233, %234
  br i1 %235, label %237, label %236

236:                                              ; preds = %232
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %280

237:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %238 = load i32, ptr %20, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %239
  %241 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %240) #8
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  br label %243

243:                                              ; preds = %271, %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %244 = load i32, ptr %20, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %245
  %247 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %246) #8
  %248 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %247, ptr %248, align 8
  %249 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br i1 %249, label %251, label %250

250:                                              ; preds = %243
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %273

251:                                              ; preds = %243
  %252 = load i32, ptr %20, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %257 = getelementptr inbounds %"struct.std::pair", ptr %256, i32 0, i32 0
  %258 = load i32, ptr %257, align 4, !tbaa !18
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = icmp sge i32 %255, %261
  br i1 %262, label %263, label %270

263:                                              ; preds = %251
  %264 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(8) %264)
          to label %265 unwind label %266

265:                                              ; preds = %263
  br label %270

266:                                              ; preds = %263
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %24, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %490

270:                                              ; preds = %265, %251
  br label %271

271:                                              ; preds = %270
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br label %243, !llvm.loop !20

273:                                              ; preds = %250
  %274 = load i32, ptr %20, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %275
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %276, ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  br label %277

277:                                              ; preds = %273
  %278 = load i32, ptr %20, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %20, align 4, !tbaa !5
  br label %232, !llvm.loop !21

280:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %483, %280
  %282 = load i32, ptr %26, align 4, !tbaa !5
  %283 = load i32, ptr @n, align 4, !tbaa !5
  %284 = icmp sle i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %486

286:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %287 = load i32, ptr %26, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  store i32 %290, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %291 = load i32, ptr %27, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %292
  %294 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %293) #8
  %295 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %294, ptr %295, align 8
  br label %296

296:                                              ; preds = %315, %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %297 = load i32, ptr %27, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %298
  %300 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %299) #8
  %301 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %300, ptr %301, align 8
  %302 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br i1 %302, label %304, label %303

303:                                              ; preds = %296
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %317

304:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %305 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %306 = getelementptr inbounds %"struct.std::pair", ptr %305, i32 0, i32 0
  %307 = load i32, ptr %306, align 4, !tbaa !18
  store i32 %307, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %308 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %309 = getelementptr inbounds %"struct.std::pair", ptr %308, i32 0, i32 1
  %310 = load i32, ptr %309, align 4, !tbaa !22
  store i32 %310, ptr %31, align 4, !tbaa !5
  %311 = load i32, ptr %31, align 4, !tbaa !5
  %312 = load i32, ptr %30, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %313
  store i32 %311, ptr %314, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %315

315:                                              ; preds = %304
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  br label %296, !llvm.loop !23

317:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %318 = load i32, ptr %27, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !5
  store i32 %321, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 3, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %322 = load i32, ptr %27, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %323
  %325 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %324) #8
  %326 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %325, ptr %326, align 8
  br label %327

327:                                              ; preds = %457, %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %328 = load i32, ptr %27, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %329
  %331 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #8
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  %333 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br i1 %333, label %335, label %334

334:                                              ; preds = %327
  store i32 34, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %459

335:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %336 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %337 = getelementptr inbounds %"struct.std::pair", ptr %336, i32 0, i32 0
  %338 = load i32, ptr %337, align 4, !tbaa !18
  store i32 %338, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %339 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %340 = getelementptr inbounds %"struct.std::pair", ptr %339, i32 0, i32 1
  %341 = load i32, ptr %340, align 4, !tbaa !22
  store i32 %341, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %342 = load i32, ptr %27, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %343
  %345 = load i32, ptr %344, align 4, !tbaa !5
  %346 = load i32, ptr %36, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %350 = icmp sgt i32 %345, %349
  br i1 %350, label %351, label %354

351:                                              ; preds = %335
  %352 = load i32, ptr %33, align 4, !tbaa !5
  %353 = add nsw i32 %352, -1
  store i32 %353, ptr %33, align 4, !tbaa !5
  br label %355

354:                                              ; preds = %335
  br label %355

355:                                              ; preds = %354, %351
  %356 = phi i32 [ %352, %351 ], [ 1, %354 ]
  store i32 %356, ptr %38, align 4, !tbaa !5
  %357 = load i32, ptr %36, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %358
  %360 = load i32, ptr %359, align 4, !tbaa !5
  %361 = icmp slt i32 %360, 0
  br i1 %361, label %362, label %365

362:                                              ; preds = %355
  %363 = load i32, ptr %32, align 4, !tbaa !5
  %364 = sub nsw i32 0, %363
  store i32 %364, ptr %32, align 4, !tbaa !5
  br label %365

365:                                              ; preds = %362, %355
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %366 = load i32, ptr %36, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %367
  %369 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %368) #8
  %370 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %369, ptr %370, align 8
  br label %371

371:                                              ; preds = %432, %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %372 = load i32, ptr %36, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %373
  %375 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %374) #8
  %376 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %375, ptr %376, align 8
  %377 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br i1 %377, label %379, label %378

378:                                              ; preds = %371
  store i32 37, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %434

379:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %380 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %381 = getelementptr inbounds %"struct.std::pair", ptr %380, i32 0, i32 0
  %382 = load i32, ptr %381, align 4, !tbaa !18
  store i32 %382, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %383 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %384 = getelementptr inbounds %"struct.std::pair", ptr %383, i32 0, i32 1
  %385 = load i32, ptr %384, align 4, !tbaa !22
  store i32 %385, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %386 = load i32, ptr %32, align 4, !tbaa !5
  %387 = icmp slt i32 %386, 0
  %388 = zext i1 %387 to i32
  %389 = load i32, ptr %41, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %390
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = icmp slt i32 %392, 0
  %394 = zext i1 %393 to i32
  %395 = icmp eq i32 %388, %394
  br i1 %395, label %396, label %398

396:                                              ; preds = %379
  %397 = load i32, ptr %38, align 4, !tbaa !5
  br label %401

398:                                              ; preds = %379
  %399 = load i32, ptr %38, align 4, !tbaa !5
  %400 = sub nsw i32 0, %399
  br label %401

401:                                              ; preds = %398, %396
  %402 = phi i32 [ %397, %396 ], [ %400, %398 ]
  store i32 %402, ptr %43, align 4, !tbaa !5
  %403 = load i32, ptr %36, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %404
  %406 = load i32, ptr %405, align 4, !tbaa !5
  %407 = load i32, ptr %41, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !5
  %411 = icmp sgt i32 %406, %410
  br i1 %411, label %412, label %416

412:                                              ; preds = %401
  %413 = load i32, ptr %33, align 4, !tbaa !5
  %414 = load i32, ptr %43, align 4, !tbaa !5
  %415 = mul nsw i32 %414, %413
  store i32 %415, ptr %43, align 4, !tbaa !5
  br label %416

416:                                              ; preds = %412, %401
  %417 = load i32, ptr %43, align 4, !tbaa !5
  %418 = load i32, ptr %41, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %419
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = mul nsw i32 %417, %421
  %423 = sext i32 %422 to i64
  %424 = load i32, ptr %37, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = mul nsw i64 %423, %425
  %427 = load i32, ptr %42, align 4, !tbaa !5
  %428 = sext i32 %427 to i64
  %429 = mul nsw i64 %426, %428
  %430 = load i64, ptr %5, align 8, !tbaa !12
  %431 = add nsw i64 %430, %429
  store i64 %431, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %432

432:                                              ; preds = %416
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  br label %371, !llvm.loop !24

434:                                              ; preds = %378
  %435 = load i32, ptr %36, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %436
  %438 = load i32, ptr %437, align 4, !tbaa !5
  %439 = icmp slt i32 %438, 0
  br i1 %439, label %440, label %443

440:                                              ; preds = %434
  %441 = load i32, ptr %32, align 4, !tbaa !5
  %442 = sub nsw i32 0, %441
  store i32 %442, ptr %32, align 4, !tbaa !5
  br label %443

443:                                              ; preds = %440, %434
  %444 = load i32, ptr %27, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %445
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = load i32, ptr %36, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %449
  %451 = load i32, ptr %450, align 4, !tbaa !5
  %452 = icmp sgt i32 %447, %451
  br i1 %452, label %453, label %456

453:                                              ; preds = %443
  %454 = load i32, ptr %33, align 4, !tbaa !5
  %455 = add nsw i32 %454, 1
  store i32 %455, ptr %33, align 4, !tbaa !5
  br label %456

456:                                              ; preds = %453, %443
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %457

457:                                              ; preds = %456
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  br label %327, !llvm.loop !25

459:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %460 = load i32, ptr %27, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %461
  %463 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %462) #8
  %464 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %463, ptr %464, align 8
  br label %465

465:                                              ; preds = %480, %459
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %466 = load i32, ptr %27, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %467
  %469 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %468) #8
  %470 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %469, ptr %470, align 8
  %471 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br i1 %471, label %473, label %472

472:                                              ; preds = %465
  store i32 40, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %482

473:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %474 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %475 = getelementptr inbounds %"struct.std::pair", ptr %474, i32 0, i32 0
  %476 = load i32, ptr %475, align 4, !tbaa !18
  store i32 %476, ptr %46, align 4, !tbaa !5
  %477 = load i32, ptr %46, align 4, !tbaa !5
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %478
  store i32 0, ptr %479, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %480

480:                                              ; preds = %473
  %481 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br label %465, !llvm.loop !26

482:                                              ; preds = %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %483

483:                                              ; preds = %482
  %484 = load i32, ptr %26, align 4, !tbaa !5
  %485 = add nsw i32 %484, 1
  store i32 %485, ptr %26, align 4, !tbaa !5
  br label %281, !llvm.loop !27

486:                                              ; preds = %285
  %487 = load i64, ptr %5, align 8, !tbaa !12
  %488 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %487)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %79, !llvm.loop !28

489:                                              ; preds = %79
  ret i32 0

490:                                              ; preds = %266
  %491 = load ptr, ptr %24, align 8
  %492 = load i32, ptr %25, align 4
  %493 = insertvalue { ptr, i32 } poison, ptr %491, 0
  %494 = insertvalue { ptr, i32 } %493, i32 %492, 1
  resume { ptr, i32 } %494
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

; 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)) #5 align 2

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

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

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

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

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

; 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)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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)) #0 align 2

declare i32 @printf(ptr noundef, ...) #3

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


; 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<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 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@mu = external dso_local local_unnamed_addr global [100001 x i32], align 16
@deg = external dso_local local_unnamed_addr global [100001 x i32], align 16
@ord = external dso_local global [100001 x i32], align 16
@dis = external dso_local local_unnamed_addr global [100001 x i32], align 16
@e = external dso_local global [100001 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", 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 %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 1, ptr getelementptr inbounds (i8, ptr @mu, i64 4), align 4, !tbaa !5
  br label %23

19:                                               ; preds = %._crit_edge
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %21 = load i32, ptr @t, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr @t, align 4, !tbaa !5
  %.not183 = icmp eq i32 %21, 0
  br i1 %.not183, label %._crit_edge186, label %.lr.ph185

23:                                               ; preds = %0, %._crit_edge
  %indvars.iv189 = phi i64 [ 1, %0 ], [ %indvars.iv.next190, %._crit_edge ]
  %indvars.iv = phi i64 [ 2, %0 ], [ %indvars.iv.next, %._crit_edge ]
  %24 = icmp ult i64 %indvars.iv189, 50001
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %23
  %25 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv189
  br label %26

._crit_edge:                                      ; preds = %26, %23
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not = icmp eq i64 %indvars.iv.next190, 100001
  br i1 %exitcond.not, label %19, label %23, !llvm.loop !9

26:                                               ; preds = %.lr.ph, %26
  %indvars.iv191 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next192, %26 ]
  %27 = load i32, ptr %25, align 4, !tbaa !5
  %28 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv191
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sub nsw i32 %29, %27
  store i32 %30, ptr %28, align 4, !tbaa !5
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, %indvars.iv189
  %31 = icmp ult i64 %indvars.iv.next192, 100001
  br i1 %31, label %26, label %._crit_edge, !llvm.loop !11

.lr.ph185:                                        ; preds = %19, %._crit_edge181
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = shl nsw i64 %34, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @deg, i64 4), i8 0, i64 %35, i1 false)
  %.not106127 = icmp slt i32 %33, 1
  br i1 %.not106127, label %.preheader124.._crit_edge150_crit_edge, label %.lr.ph130

.preheader124:                                    ; preds = %.lr.ph130
  %.not107145 = icmp slt i32 %40, 1
  br i1 %.not107145, label %.preheader124.._crit_edge150_crit_edge, label %.lr.ph149

.preheader124.._crit_edge150_crit_edge:           ; preds = %.lr.ph185, %.preheader124
  %36 = phi i32 [ %40, %.preheader124 ], [ %33, %.lr.ph185 ]
  %.pre233 = sext i32 %36 to i64
  br label %._crit_edge150

.lr.ph130:                                        ; preds = %.lr.ph185, %.lr.ph130
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %.lr.ph130 ], [ 1, %.lr.ph185 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %37 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv195
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  %38 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv195
  %39 = trunc nuw nsw i64 %indvars.iv195 to i32
  store i32 %39, ptr %38, align 4, !tbaa !5
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %.not106.not = icmp slt i64 %indvars.iv195, %41
  br i1 %.not106.not, label %.lr.ph130, label %.preheader124, !llvm.loop !12

._crit_edge150:                                   ; preds = %104, %.preheader124.._crit_edge150_crit_edge
  %.pre-phi = phi i64 [ %.pre233, %.preheader124.._crit_edge150_crit_edge ], [ %106, %104 ]
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @ord, i64 4), i64 %.pre-phi
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 4), ptr noundef nonnull %gep, ptr noundef nonnull @_Z3cmpRKiS0_)
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %.not108155 = icmp slt i32 %42, 1
  br i1 %.not108155, label %._crit_edge181, label %.lr.ph158

.lr.ph149:                                        ; preds = %.preheader124, %104
  %.pre226228 = phi i32 [ %.pre226229, %104 ], [ %40, %.preheader124 ]
  %43 = phi i32 [ %105, %104 ], [ %40, %.preheader124 ]
  %indvars.iv214 = phi i64 [ %indvars.iv.next215, %104 ], [ 3, %.preheader124 ]
  %indvars.iv204 = phi i32 [ %indvars.iv.next205, %104 ], [ 1, %.preheader124 ]
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %104 ], [ 1, %.preheader124 ]
  %44 = zext i32 %indvars.iv204 to i64
  %45 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv198
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %.not111 = icmp eq i32 %46, 0
  br i1 %.not111, label %104, label %47

47:                                               ; preds = %.lr.ph149
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %48 = trunc nuw nsw i64 %indvars.iv198 to i32
  store i32 %48, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %43 to i64
  %.not112138 = icmp sgt i64 %indvars.iv198, %49
  br i1 %.not112138, label %._crit_edge143, label %.lr.ph142

._crit_edge143:                                   ; preds = %99, %47
  %.pre226230 = phi i32 [ %.pre226228, %47 ], [ %.pre226231, %99 ]
  %50 = phi i32 [ %43, %47 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  br label %104

.lr.ph142:                                        ; preds = %47, %99
  %.pre226227 = phi i32 [ %.pre226231, %99 ], [ %.pre226228, %47 ]
  %51 = phi i32 [ %100, %99 ], [ %43, %47 ]
  %52 = phi i32 [ %101, %99 ], [ %43, %47 ]
  %indvars.iv211 = phi i64 [ %indvars.iv.next212, %99 ], [ 1, %47 ]
  %53 = phi i32 [ %103, %99 ], [ %48, %47 ]
  %54 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv211
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not113 = icmp eq i32 %55, 0
  br i1 %.not113, label %99, label %56

56:                                               ; preds = %.lr.ph142
  %57 = sext i32 %53 to i64
  %58 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %.not114 = icmp eq i32 %59, 0
  br i1 %.not114, label %99, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 %53, ptr %3, align 4, !tbaa !5
  %61 = sdiv i32 %52, %48
  %.not115131 = icmp sgt i32 %53, %61
  br i1 %.not115131, label %._crit_edge137, label %.lr.ph136.preheader

.lr.ph136.preheader:                              ; preds = %60
  %62 = trunc nuw nsw i64 %indvars.iv211 to i32
  br label %.lr.ph136

._crit_edge137.loopexit:                          ; preds = %95
  %.pre226.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %._crit_edge137.loopexit, %60
  %.pre226 = phi i32 [ %.pre226227, %60 ], [ %.pre226.pre, %._crit_edge137.loopexit ]
  %63 = phi i32 [ %53, %60 ], [ %97, %._crit_edge137.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %99

.lr.ph136:                                        ; preds = %.lr.ph136.preheader, %95
  %64 = phi i32 [ %53, %.lr.ph136.preheader ], [ %97, %95 ]
  %indvars.iv206 = phi i64 [ %44, %.lr.ph136.preheader ], [ %indvars.iv.next207, %95 ]
  %indvars.iv200 = phi i64 [ %indvars.iv198, %.lr.ph136.preheader ], [ %indvars.iv.next201, %95 ]
  %65 = phi i32 [ %53, %.lr.ph136.preheader ], [ %98, %95 ]
  %66 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv200
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %.not116 = icmp eq i32 %67, 0
  br i1 %.not116, label %95, label %68

68:                                               ; preds = %.lr.ph136
  %69 = sext i32 %65 to i64
  %70 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %.not117 = icmp eq i32 %71, 0
  br i1 %.not117, label %95, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv206
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %.not118 = icmp eq i32 %74, 0
  br i1 %.not118, label %95, label %75

75:                                               ; preds = %72
  %76 = sext i32 %64 to i64
  %77 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %78 = sdiv i32 %61, %65
  store i32 %78, ptr %5, align 4, !tbaa !5
  %79 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %79, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %.not119 = icmp eq i32 %80, %81
  br i1 %.not119, label %.sink.split, label %82

82:                                               ; preds = %75
  %83 = sext i32 %81 to i64
  %84 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %85 = sdiv i32 %61, %81
  store i32 %85, ptr %7, align 4, !tbaa !5
  %86 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i64 %86, ptr %6, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  %.pre225 = load i32, ptr %3, align 4, !tbaa !5
  %87 = sext i32 %.pre to i64
  %88 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 4, !tbaa !5
  %.not120 = icmp eq i32 %.pre, %.pre225
  br i1 %.not120, label %95, label %.sink.split

.sink.split:                                      ; preds = %82, %75
  %.sink = phi i32 [ %80, %75 ], [ %.pre225, %82 ]
  %.ph242 = phi i32 [ %80, %75 ], [ %.pre, %82 ]
  %91 = sext i32 %.sink to i64
  %92 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %92, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %.sink.split, %82, %.lr.ph136, %68, %72
  %96 = phi i32 [ %.pre225, %82 ], [ %65, %72 ], [ %65, %68 ], [ %65, %.lr.ph136 ], [ %.sink, %.sink.split ]
  %97 = phi i32 [ %.pre225, %82 ], [ %64, %72 ], [ %64, %68 ], [ %64, %.lr.ph136 ], [ %.ph242, %.sink.split ]
  %98 = add nsw i32 %96, %62
  store i32 %98, ptr %3, align 4, !tbaa !5
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, %indvars.iv198
  %.not115 = icmp sgt i32 %98, %61
  br i1 %.not115, label %._crit_edge137.loopexit, label %.lr.ph136, !llvm.loop !13

99:                                               ; preds = %.lr.ph142, %56, %._crit_edge137
  %.pre226231 = phi i32 [ %.pre226, %._crit_edge137 ], [ %.pre226227, %56 ], [ %.pre226227, %.lr.ph142 ]
  %100 = phi i32 [ %.pre226, %._crit_edge137 ], [ %51, %56 ], [ %51, %.lr.ph142 ]
  %101 = phi i32 [ %.pre226, %._crit_edge137 ], [ %52, %56 ], [ %52, %.lr.ph142 ]
  %102 = phi i32 [ %63, %._crit_edge137 ], [ %53, %56 ], [ %53, %.lr.ph142 ]
  %103 = add nsw i32 %102, %48
  store i32 %103, ptr %2, align 4, !tbaa !5
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %.not112 = icmp sgt i32 %103, %101
  br i1 %.not112, label %._crit_edge143, label %.lr.ph142, !llvm.loop !14

104:                                              ; preds = %.lr.ph149, %._crit_edge143
  %.pre226229 = phi i32 [ %.pre226230, %._crit_edge143 ], [ %.pre226228, %.lr.ph149 ]
  %105 = phi i32 [ %50, %._crit_edge143 ], [ %43, %.lr.ph149 ]
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %106 = sext i32 %105 to i64
  %.not107.not = icmp slt i64 %indvars.iv198, %106
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 2
  %107 = trunc nuw i64 %indvars.iv214 to i32
  %indvars.iv.next205 = add i32 %indvars.iv204, %107
  br i1 %.not107.not, label %.lr.ph149, label %._crit_edge150, !llvm.loop !15

.preheader:                                       ; preds = %._crit_edge154
  %.not109177 = icmp slt i32 %113, 1
  br i1 %.not109177, label %._crit_edge181, label %.lr.ph180

.lr.ph158:                                        ; preds = %._crit_edge150, %._crit_edge154
  %indvars.iv219 = phi i64 [ %indvars.iv.next220, %._crit_edge154 ], [ 1, %._crit_edge150 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %108 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv219
  %109 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  store ptr %109, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %110 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  store ptr %110, ptr %10, align 8
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %111, label %.lr.ph153, label %._crit_edge154

.lr.ph153:                                        ; preds = %.lr.ph158
  %112 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %indvars.iv219
  br label %115

._crit_edge154:                                   ; preds = %126, %.lr.ph158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %113 = load i32, ptr @n, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %.not108.not = icmp slt i64 %indvars.iv219, %114
  br i1 %.not108.not, label %.lr.ph158, label %.preheader, !llvm.loop !16

115:                                              ; preds = %.lr.ph153, %126
  %116 = load i32, ptr %112, align 4, !tbaa !5
  %117 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %118 = load i32, ptr %117, align 4, !tbaa !17
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %.not110 = icmp slt i32 %116, %121
  br i1 %.not110, label %126, label %122

122:                                              ; preds = %115
  %123 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(8) %123)
          to label %126 unwind label %124

124:                                              ; preds = %122
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  resume { ptr, i32 } %125

126:                                              ; preds = %115, %122
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %128 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  store ptr %128, ptr %10, align 8
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %129, label %115, label %._crit_edge154, !llvm.loop !19

._crit_edge181:                                   ; preds = %._crit_edge176, %._crit_edge150, %.preheader
  %.083.lcssa = phi i64 [ 0, %.preheader ], [ 0, %._crit_edge150 ], [ %.1.lcssa, %._crit_edge176 ]
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.083.lcssa)
  %131 = load i32, ptr @t, align 4, !tbaa !5
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %131, 0
  br i1 %.not, label %._crit_edge186, label %.lr.ph185, !llvm.loop !20

.lr.ph180:                                        ; preds = %.preheader, %._crit_edge176
  %indvars.iv222 = phi i64 [ %indvars.iv.next223, %._crit_edge176 ], [ 1, %.preheader ]
  %.083179 = phi i64 [ %.1.lcssa, %._crit_edge176 ], [ 0, %.preheader ]
  %133 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv222
  %134 = load i32, ptr %133, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %135
  %137 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %137, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %138 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %138, ptr %12, align 8
  %139 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %139, label %.lr.ph160, label %._crit_edge161

._crit_edge161:                                   ; preds = %.lr.ph160, %.lr.ph180
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %140 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %135
  %141 = load i32, ptr %140, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %142 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %142, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %143 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %143, ptr %14, align 8
  %144 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %144, label %.lr.ph171, label %._crit_edge172

.lr.ph171:                                        ; preds = %._crit_edge161
  %145 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %135
  br label %159

.lr.ph160:                                        ; preds = %.lr.ph180, %.lr.ph160
  %146 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %147 = load i32, ptr %146, align 4, !tbaa !17
  %148 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %149 = getelementptr inbounds i8, ptr %148, i64 4
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = sext i32 %147 to i64
  %152 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %151
  store i32 %150, ptr %152, align 4, !tbaa !5
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %154 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %154, ptr %12, align 8
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %155, label %.lr.ph160, label %._crit_edge161, !llvm.loop !22

._crit_edge172:                                   ; preds = %._crit_edge165, %._crit_edge161
  %.1.lcssa = phi i64 [ %.083179, %._crit_edge161 ], [ %.2.lcssa, %._crit_edge165 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %156 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %156, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %157 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %157, ptr %18, align 8
  %158 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %158, label %.lr.ph175, label %._crit_edge176

159:                                              ; preds = %.lr.ph171, %._crit_edge165
  %.1169 = phi i64 [ %.083179, %.lr.ph171 ], [ %.2.lcssa, %._crit_edge165 ]
  %.088168 = phi i32 [ 3, %.lr.ph171 ], [ %.290, %._crit_edge165 ]
  %.091167 = phi i32 [ %141, %.lr.ph171 ], [ %spec.select122, %._crit_edge165 ]
  %160 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %163 = getelementptr inbounds i8, ptr %162, i64 4
  %164 = load i32, ptr %163, align 4, !tbaa !21
  %165 = load i32, ptr %145, align 4, !tbaa !5
  %166 = sext i32 %161 to i64
  %167 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp sgt i32 %165, %168
  %170 = sext i1 %169 to i32
  %spec.select = add nsw i32 %.088168, %170
  %spec.select121 = select i1 %169, i32 %.088168, i32 1
  %171 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %166
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = icmp slt i32 %172, 0
  %174 = sub nsw i32 0, %.091167
  %.192 = select i1 %173, i32 %174, i32 %.091167
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %175 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %166
  %176 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  store ptr %176, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %177 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  store ptr %177, ptr %16, align 8
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br i1 %178, label %.lr.ph164, label %._crit_edge165

.lr.ph164:                                        ; preds = %159
  %179 = sub nsw i32 0, %spec.select121
  %180 = sext i32 %164 to i64
  br label %191

._crit_edge165:                                   ; preds = %191, %159
  %.2.lcssa = phi i64 [ %.1169, %159 ], [ %214, %191 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %181 = load i32, ptr %171, align 4, !tbaa !5
  %182 = icmp slt i32 %181, 0
  %183 = sub nsw i32 0, %.192
  %spec.select122 = select i1 %182, i32 %183, i32 %.192
  %184 = load i32, ptr %145, align 4, !tbaa !5
  %185 = load i32, ptr %167, align 4, !tbaa !5
  %186 = icmp sgt i32 %184, %185
  %187 = zext i1 %186 to i32
  %.290 = add nsw i32 %spec.select, %187
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %189 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %189, ptr %14, align 8
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %190, label %159, label %._crit_edge172, !llvm.loop !23

191:                                              ; preds = %.lr.ph164, %191
  %.2162 = phi i64 [ %.1169, %.lr.ph164 ], [ %214, %191 ]
  %192 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %193 = load i32, ptr %192, align 4, !tbaa !17
  %194 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %195 = getelementptr inbounds i8, ptr %194, i64 4
  %196 = load i32, ptr %195, align 4, !tbaa !21
  %197 = sext i32 %193 to i64
  %198 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %.unshifted = xor i32 %199, %.192
  %200 = icmp slt i32 %.unshifted, 0
  %201 = select i1 %200, i32 %179, i32 %spec.select121
  %202 = load i32, ptr %167, align 4, !tbaa !5
  %203 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %197
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = icmp sgt i32 %202, %204
  %206 = select i1 %205, i32 %spec.select, i32 1
  %207 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %197
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %spec.select123 = mul i32 %208, %201
  %209 = mul i32 %spec.select123, %206
  %210 = sext i32 %209 to i64
  %211 = sext i32 %196 to i64
  %212 = mul nsw i64 %211, %180
  %213 = mul i64 %212, %210
  %214 = add nsw i64 %213, %.2162
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %216 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  store ptr %216, ptr %16, align 8
  %217 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br i1 %217, label %191, label %._crit_edge165, !llvm.loop !24

._crit_edge176:                                   ; preds = %.lr.ph175, %._crit_edge172
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  %indvars.iv.next223 = add nuw nsw i64 %indvars.iv222, 1
  %218 = load i32, ptr @n, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %.not109.not = icmp slt i64 %indvars.iv222, %219
  br i1 %.not109.not, label %.lr.ph180, label %._crit_edge181, !llvm.loop !25

.lr.ph175:                                        ; preds = %._crit_edge172, %.lr.ph175
  %220 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %221 = load i32, ptr %220, align 4, !tbaa !17
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [100001 x i32], ptr @dis, i64 0, i64 %222
  store i32 0, ptr %223, align 4, !tbaa !5
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %225 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  store ptr %225, ptr %18, align 8
  %226 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %226, label %.lr.ph175, label %._crit_edge176, !llvm.loop !26

._crit_edge186:                                   ; preds = %._crit_edge181, %19
  ret i32 0
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

; 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 #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__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 #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef, ptr noundef, ptr noundef) 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 #0 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 ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; 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 #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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 #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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


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