; LLVM IR from tangjz/acm-icpc :: hdu (6123)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@deg = external dso_local global [60001 x i32], align 16
@ord = external dso_local global [60001 x i32], align 16
@coeff = external dso_local global [60001 x i32], align 16
@e = external dso_local global [60001 x %"class.std::vector"], align 16
@vis = external dso_local global [60001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %27

27:                                               ; preds = %313, %0
  %28 = load i32, ptr @t, align 4, !tbaa !5
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr @t, align 4, !tbaa !5
  %30 = icmp ne i32 %28, 0
  br i1 %30, label %31, label %316

31:                                               ; preds = %27
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  %35 = ashr i32 %34, 1
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @deg, i64 1), i8 0, i64 %37, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %56, %31
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  %42 = ashr i32 %41, 1
  %43 = icmp sle i32 %39, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %59

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %47
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [60001 x i32], ptr @ord, i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %54
  store i32 2, ptr %55, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %45
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %2, align 4, !tbaa !5
  br label %38, !llvm.loop !9

59:                                               ; preds = %44
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = and i32 %60, 1
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = ashr i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sub nsw i32 %67, %61
  store i32 %68, ptr %66, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %95, %59
  %70 = load i32, ptr @m, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr @m, align 4, !tbaa !5
  %72 = icmp ne i32 %70, 0
  br i1 %72, label %73, label %96

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %74 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 4, !tbaa !5
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %81
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = icmp ne i32 %83, %84
  br i1 %85, label %86, label %95

86:                                               ; preds = %73
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 4, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %93
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %95

95:                                               ; preds = %86, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %69, !llvm.loop !11

96:                                               ; preds = %69
  %97 = load i32, ptr @n, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  %99 = ashr i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr @ord, i64 %100
  %102 = getelementptr inbounds i32, ptr %101, i64 1
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef getelementptr inbounds (i32, ptr @ord, i64 1), ptr noundef %102, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %103 = load i32, ptr @n, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = mul nsw i64 %104, %106
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = mul nsw i64 %107, %109
  store i64 %110, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = ashr i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %309, %96
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = icmp sge i32 %115, 1
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  store i32 9, ptr %8, align 4
  br label %312

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [60001 x i32], ptr @ord, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  store i32 %122, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  store i32 %126, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %133, label %132

132:                                              ; preds = %118
  store i32 9, ptr %8, align 4
  br label %306

133:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %135
  %137 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  br label %139

139:                                              ; preds = %165, %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %141
  %143 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #8
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br i1 %145, label %147, label %146

146:                                              ; preds = %139
  store i32 12, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %167

147:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %149 = load i32, ptr %148, align 4, !tbaa !5
  store i32 %149, ptr %14, align 4, !tbaa !5
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = add nsw i32 %154, %153
  store i32 %155, ptr %11, align 4, !tbaa !5
  %156 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %156, label %157, label %158

157:                                              ; preds = %147
  store i32 14, ptr %8, align 4
  br label %162

158:                                              ; preds = %147
  %159 = load i32, ptr %14, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %160
  store i8 1, ptr %161, align 1, !tbaa !14
  store i32 0, ptr %8, align 4
  br label %162

162:                                              ; preds = %158, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %163 = load i32, ptr %8, align 4
  switch i32 %163, label %317 [
    i32 0, label %164
    i32 14, label %165
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164, %162
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %139, !llvm.loop !16

167:                                              ; preds = %146
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = load i32, ptr @n, align 4, !tbaa !5
  %171 = load i32, ptr %11, align 4, !tbaa !5
  %172 = sub nsw i32 %170, %171
  %173 = sext i32 %172 to i64
  %174 = mul nsw i64 %169, %173
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = mul nsw i64 %174, %176
  %178 = mul nsw i64 %177, 3
  %179 = load i64, ptr %6, align 8, !tbaa !12
  %180 = sub nsw i64 %179, %178
  store i64 %180, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %182
  %184 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #8
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %184, ptr %185, align 8
  br label %186

186:                                              ; preds = %275, %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %187 = load i32, ptr %9, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %188
  %190 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #8
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(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 %16) #8
  br i1 %192, label %194, label %193

193:                                              ; preds = %186
  store i32 15, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %277

194:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %196 = load i32, ptr %195, align 4, !tbaa !5
  store i32 %196, ptr %17, align 4, !tbaa !5
  %197 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %17)
  br i1 %197, label %198, label %199

198:                                              ; preds = %194
  store i32 17, ptr %8, align 4
  br label %272

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = load i32, ptr %17, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = mul nsw i32 %200, %204
  store i32 %205, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 3, ptr %19, align 4, !tbaa !5
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = load i32, ptr %17, align 4, !tbaa !5
  %208 = icmp ne i32 %206, %207
  br i1 %208, label %209, label %215

209:                                              ; preds = %199
  %210 = load i32, ptr %19, align 4, !tbaa !5
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %19, align 4, !tbaa !5
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = mul nsw i32 %212, %210
  store i32 %213, ptr %18, align 4, !tbaa !5
  %214 = icmp ne i32 %213, 0
  br label %215

215:                                              ; preds = %209, %199
  %216 = phi i1 [ false, %199 ], [ %214, %209 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %217 = load i32, ptr %17, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %218
  %220 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %219) #8
  %221 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %220, ptr %221, align 8
  br label %222

222:                                              ; preds = %269, %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %223 = load i32, ptr %17, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %224
  %226 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %225) #8
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  %228 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br i1 %228, label %230, label %229

229:                                              ; preds = %222
  store i32 18, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %271

230:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %232 = load i32, ptr %231, align 4, !tbaa !5
  store i32 %232, ptr %22, align 4, !tbaa !5
  %233 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %22)
  br i1 %233, label %240, label %234

234:                                              ; preds = %230
  %235 = load i32, ptr %22, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %236
  %238 = load i8, ptr %237, align 1, !tbaa !14, !range !17, !noundef !18
  %239 = trunc i8 %238 to i1
  br i1 %239, label %241, label %240

240:                                              ; preds = %234, %230
  store i32 20, ptr %8, align 4
  br label %266

241:                                              ; preds = %234
  %242 = load i32, ptr %17, align 4, !tbaa !5
  %243 = load i32, ptr %22, align 4, !tbaa !5
  %244 = icmp ne i32 %242, %243
  br i1 %244, label %245, label %254

245:                                              ; preds = %241
  %246 = load i32, ptr %18, align 4, !tbaa !5
  %247 = load i32, ptr %22, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = mul nsw i32 %246, %250
  %252 = load i32, ptr %19, align 4, !tbaa !5
  %253 = mul nsw i32 %251, %252
  br label %261

254:                                              ; preds = %241
  %255 = load i32, ptr %18, align 4, !tbaa !5
  %256 = load i32, ptr %22, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = mul nsw i32 %255, %259
  br label %261

261:                                              ; preds = %254, %245
  %262 = phi i32 [ %253, %245 ], [ %260, %254 ]
  %263 = sext i32 %262 to i64
  %264 = load i64, ptr %6, align 8, !tbaa !12
  %265 = sub nsw i64 %264, %263
  store i64 %265, ptr %6, align 8, !tbaa !12
  store i32 0, ptr %8, align 4
  br label %266

266:                                              ; preds = %261, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %267 = load i32, ptr %8, align 4
  switch i32 %267, label %317 [
    i32 0, label %268
    i32 20, label %269
  ]

268:                                              ; preds = %266
  br label %269

269:                                              ; preds = %268, %266
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %222, !llvm.loop !19

271:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  store i32 0, ptr %8, align 4
  br label %272

272:                                              ; preds = %271, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %273 = load i32, ptr %8, align 4
  switch i32 %273, label %317 [
    i32 0, label %274
    i32 17, label %275
  ]

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %272
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %186, !llvm.loop !20

277:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %279
  %281 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %280) #8
  %282 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %281, ptr %282, align 8
  br label %283

283:                                              ; preds = %303, %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %284 = load i32, ptr %9, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %285
  %287 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %286) #8
  %288 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %287, ptr %288, align 8
  %289 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br i1 %289, label %291, label %290

290:                                              ; preds = %283
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %305

291:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %293 = load i32, ptr %292, align 4, !tbaa !5
  store i32 %293, ptr %25, align 4, !tbaa !5
  %294 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %25)
  br i1 %294, label %295, label %296

295:                                              ; preds = %291
  store i32 23, ptr %8, align 4
  br label %300

296:                                              ; preds = %291
  %297 = load i32, ptr %25, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %298
  store i8 0, ptr %299, align 1, !tbaa !14
  store i32 0, ptr %8, align 4
  br label %300

300:                                              ; preds = %296, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %301 = load i32, ptr %8, align 4
  switch i32 %301, label %317 [
    i32 0, label %302
    i32 23, label %303
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %300
  %304 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %283, !llvm.loop !21

305:                                              ; preds = %290
  store i32 0, ptr %8, align 4
  br label %306

306:                                              ; preds = %305, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  %307 = load i32, ptr %8, align 4
  switch i32 %307, label %312 [
    i32 0, label %308
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308
  %310 = load i32, ptr %7, align 4, !tbaa !5
  %311 = add nsw i32 %310, -1
  store i32 %311, ptr %7, align 4, !tbaa !5
  br label %114, !llvm.loop !22

312:                                              ; preds = %306, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %313

313:                                              ; preds = %312
  %314 = load i64, ptr %6, align 8, !tbaa !12
  %315 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %314)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %27, !llvm.loop !23

316:                                              ; preds = %27
  ret i32 0

317:                                              ; preds = %300, %272, %266, %162
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@deg = external dso_local local_unnamed_addr global [60001 x i32], align 16
@ord = external dso_local global [60001 x i32], align 16
@coeff = external dso_local local_unnamed_addr global [60001 x i32], align 16
@e = external dso_local global [60001 x %"class.std::vector"], align 16
@vis = external dso_local local_unnamed_addr global [60001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %.not71 = icmp eq i32 %18, 0
  br i1 %.not71, label %._crit_edge74, label %.lr.ph73

.lr.ph73:                                         ; preds = %0, %.loopexit
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  %23 = ashr i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = shl nsw i64 %24, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @deg, i64 4), i8 0, i64 %25, i1 false)
  %.not3141 = icmp slt i32 %23, 1
  br i1 %.not3141, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph73
  %.pre-phi = phi i64 [ %24, %.lr.ph73 ], [ %39, %.lr.ph ]
  %.lcssa39 = phi i32 [ %21, %.lr.ph73 ], [ %36, %.lr.ph ]
  %26 = and i32 %.lcssa39, 1
  %27 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %.pre-phi
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = sub nsw i32 %28, %26
  store i32 %29, ptr %27, align 4, !tbaa !5
  %30 = load i32, ptr @m, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr @m, align 4, !tbaa !5
  %.not3244 = icmp eq i32 %30, 0
  br i1 %.not3244, label %._crit_edge47, label %.lr.ph46

.lr.ph:                                           ; preds = %.lr.ph73, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph73 ]
  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 @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %32 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  %33 = getelementptr inbounds [60001 x i32], ptr @ord, i64 0, i64 %indvars.iv
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %34, ptr %33, align 4, !tbaa !5
  %35 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %indvars.iv
  store i32 2, ptr %35, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  %38 = ashr i32 %37, 1
  %39 = sext i32 %38 to i64
  %.not31.not = icmp slt i64 %indvars.iv, %39
  br i1 %.not31.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph46:                                         ; preds = %._crit_edge, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %43, align 4, !tbaa !5
  %46 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %42
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %.not36 = icmp eq i32 %47, %48
  br i1 %.not36, label %55, label %49

49:                                               ; preds = %.lr.ph46
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !5
  %54 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %50
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %55

55:                                               ; preds = %49, %.lr.ph46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %56 = load i32, ptr @m, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr @m, align 4, !tbaa !5
  %.not32 = icmp eq i32 %56, 0
  br i1 %.not32, label %._crit_edge47.loopexit, label %.lr.ph46, !llvm.loop !11

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

._crit_edge47:                                    ; preds = %._crit_edge47.loopexit, %._crit_edge
  %58 = phi i32 [ %.pre, %._crit_edge47.loopexit ], [ %.lcssa39, %._crit_edge ]
  %59 = add nsw i32 %58, 1
  %60 = ashr i32 %59, 1
  %61 = sext i32 %60 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @ord, i64 4), i64 %61
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @ord, i64 4), ptr noundef nonnull %gep, ptr noundef nonnull @_Z3cmpRKiS0_)
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = mul nsw i64 %63, %63
  %65 = mul nsw i64 %64, %63
  %66 = add nsw i32 %62, 1
  %67 = ashr i32 %66, 1
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %._crit_edge47, %._crit_edge65
  %.02767 = phi i32 [ %193, %._crit_edge65 ], [ %67, %._crit_edge47 ]
  %.02866 = phi i64 [ %.1.lcssa, %._crit_edge65 ], [ %65, %._crit_edge47 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %69 = zext nneg i32 %.02767 to i64
  %70 = getelementptr inbounds [60001 x i32], ptr @ord, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds [60001 x i32], ptr @deg, i64 0, i64 %72
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not33.not = icmp eq i32 %76, 0
  br i1 %.not33.not, label %.thread, label %77

.thread:                                          ; preds = %.lr.ph69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %.loopexit

77:                                               ; preds = %.lr.ph69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %78 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %72
  %79 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #8
  store ptr %79, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %81
  %83 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #8
  store ptr %83, ptr %6, align 8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %84, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %113, %77
  %.024.lcssa = phi i32 [ 0, %77 ], [ %107, %113 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %85 = sext i32 %.024.lcssa to i64
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = sub nsw i32 %86, %.024.lcssa
  %88 = sext i32 %87 to i64
  %89 = sext i32 %74 to i64
  %90 = mul nsw i64 %89, -3
  %91 = mul i64 %90, %85
  %.neg = mul i64 %91, %88
  %92 = add i64 %.neg, %.02866
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %94
  %96 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #8
  store ptr %96, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %98
  %100 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #8
  store ptr %100, ptr %9, align 8
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %101, label %.lr.ph60, label %._crit_edge61

.lr.ph50:                                         ; preds = %77, %113
  %.02448 = phi i32 [ %107, %113 ], [ 0, %77 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %7, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = add nsw i32 %106, %.02448
  %108 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br i1 %108, label %113, label %109

109:                                              ; preds = %.lr.ph50
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %111
  store i8 1, ptr %112, align 1, !tbaa !12
  br label %113

113:                                              ; preds = %.lr.ph50, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %116
  %118 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #8
  store ptr %118, ptr %6, align 8
  %119 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %119, label %.lr.ph50, label %._crit_edge51, !llvm.loop !14

._crit_edge61:                                    ; preds = %172, %._crit_edge51
  %.1.lcssa = phi i64 [ %92, %._crit_edge51 ], [ %.4, %172 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %121
  %123 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  store ptr %123, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %125
  %127 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #8
  store ptr %127, ptr %15, align 8
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %128, label %.lr.ph64, label %._crit_edge65

.lr.ph60:                                         ; preds = %._crit_edge51, %172
  %.158 = phi i64 [ %.4, %172 ], [ %92, %._crit_edge51 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %130 = load i32, ptr %129, align 4, !tbaa !5
  store i32 %130, ptr %10, align 4, !tbaa !5
  %131 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
  br i1 %131, label %172, label %132

132:                                              ; preds = %.lr.ph60
  %133 = load i32, ptr %10, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = mul nsw i32 %136, %74
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %.not34 = icmp eq i32 %138, %133
  %139 = mul nsw i32 %137, 3
  %spec.select = select i1 %.not34, i32 %137, i32 %139
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %140 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %134
  %141 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #8
  store ptr %141, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %143
  %145 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  store ptr %145, ptr %12, align 8
  %146 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(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 %146, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %132
  %spec.select37 = select i1 %.not34, i32 3, i32 2
  br label %147

._crit_edge56:                                    ; preds = %165, %132
  %.2.lcssa = phi i64 [ %.158, %132 ], [ %.3, %165 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %172

147:                                              ; preds = %.lr.ph55, %165
  %.253 = phi i64 [ %.158, %.lr.ph55 ], [ %.3, %165 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %149 = load i32, ptr %148, align 4, !tbaa !5
  store i32 %149, ptr %13, align 4, !tbaa !5
  %150 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %13)
  br i1 %150, label %165, label %151

151:                                              ; preds = %147
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !12, !range !15, !noundef !16
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %157, label %165

157:                                              ; preds = %151
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %.not35 = icmp eq i32 %158, %152
  %159 = getelementptr inbounds [60001 x i32], ptr @coeff, i64 0, i64 %153
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = select i1 %.not35, i32 1, i32 %spec.select37
  %.v = mul i32 %spec.select, %161
  %162 = mul i32 %160, %.v
  %163 = sext i32 %162 to i64
  %164 = sub nsw i64 %.253, %163
  br label %165

165:                                              ; preds = %147, %151, %157
  %.3 = phi i64 [ %164, %157 ], [ %.253, %151 ], [ %.253, %147 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %168
  %170 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #8
  store ptr %170, ptr %12, align 8
  %171 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(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 %171, label %147, label %._crit_edge56, !llvm.loop !17

172:                                              ; preds = %.lr.ph60, %._crit_edge56
  %.4 = phi i64 [ %.2.lcssa, %._crit_edge56 ], [ %.158, %.lr.ph60 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %174 = load i32, ptr %4, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %175
  %177 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #8
  store ptr %177, ptr %9, align 8
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %178, label %.lr.ph60, label %._crit_edge61, !llvm.loop !18

.lr.ph64:                                         ; preds = %._crit_edge61, %186
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %180 = load i32, ptr %179, align 4, !tbaa !5
  store i32 %180, ptr %16, align 4, !tbaa !5
  %181 = call noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br i1 %181, label %186, label %182

182:                                              ; preds = %.lr.ph64
  %183 = load i32, ptr %16, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [60001 x i8], ptr @vis, i64 0, i64 %184
  store i8 0, ptr %185, align 1, !tbaa !12
  br label %186

186:                                              ; preds = %.lr.ph64, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %188 = load i32, ptr %4, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [60001 x %"class.std::vector"], ptr @e, i64 0, i64 %189
  %191 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %190) #8
  store ptr %191, ptr %15, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %192, label %.lr.ph64, label %._crit_edge65, !llvm.loop !19

._crit_edge65:                                    ; preds = %186, %._crit_edge61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %193 = add nsw i32 %.02767, -1
  %194 = icmp sgt i32 %.02767, 1
  br i1 %194, label %.lr.ph69, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge65, %._crit_edge47, %.thread
  %.6 = phi i64 [ %.02866, %.thread ], [ %65, %._crit_edge47 ], [ %.1.lcssa, %._crit_edge65 ]
  %195 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.6)
  %196 = load i32, ptr @t, align 4, !tbaa !5
  %197 = add nsw i32 %196, -1
  store i32 %197, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %196, 0
  br i1 %.not, label %._crit_edge74, label %.lr.ph73, !llvm.loop !21

._crit_edge74:                                    ; preds = %.loopexit, %0
  ret i32 0
}

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

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #7

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

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

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

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

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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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