; LLVM IR from ShahjalalShohag/code-library :: Data Structures/Permutation Tree.ll (Z5buildi)

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

%struct.ST = type { [400036 x i32], [400036 x i32] }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@t = external dso_local global %struct.ST, align 4
@p = external dso_local global [100009 x i32], align 16
@range = external dso_local global [200018 x %"struct.std::pair"], align 16
@span = external dso_local global [200018 x %"struct.std::pair"], align 16
@pt = external dso_local global [200018 x %"class.std::vector"], align 16
@par = external dso_local global [200018 x i32], align 16
@ty = external dso_local global [200018 x i32], align 16
@id = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._Z5buildi = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 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 uwtable
declare dso_local i64 @_Z9get_rangeSt4pairIiiES0_(i64, i64) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8adjacentii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6lengthi(i32 noundef) #0

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

46:                                               ; preds = %62, %1
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = mul nsw i32 2, %48
  %50 = icmp sle i32 %47, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %65

52:                                               ; preds = %46
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %54
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %57
  store i32 0, ptr %58, align 4, !tbaa !5
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %60
  store i32 -1, ptr %61, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %52
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %46, !llvm.loop !9

65:                                               ; preds = %51
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr @id, align 4, !tbaa !5
  %68 = load i32, ptr %2, align 4, !tbaa !5
  call void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %69 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 0
  store ptr %6, ptr %69, align 8, !tbaa !11
  %70 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1
  store i64 1, ptr %70, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  %71 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %74 = load i64, ptr %73, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %72, i64 %74, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %75 unwind label %88

75:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  %76 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 0
  store ptr %12, ptr %76, align 8, !tbaa !11
  %77 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1
  store i64 1, ptr %77, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  %78 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %81 = load i64, ptr %80, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr %79, i64 %81, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %82 unwind label %92

82:                                               ; preds = %75
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %468, %82
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %96, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %473

88:                                               ; preds = %65
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %510

92:                                               ; preds = %75
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %8, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %509

96:                                               ; preds = %83
  br label %97

97:                                               ; preds = %131, %96
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %112

101:                                              ; preds = %97
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr %15, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = icmp slt i32 %106, %110
  br label %112

112:                                              ; preds = %101, %97
  %113 = phi i1 [ false, %97 ], [ %111, %101 ]
  br i1 %113, label %114, label %136

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %16, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = load i32, ptr %15, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sub nsw i32 %125, %129
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %117, i32 noundef %120, i32 noundef %121, i32 noundef %130)
          to label %131 unwind label %132

131:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %97, !llvm.loop !16

132:                                              ; preds = %114
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %8, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %472

136:                                              ; preds = %112
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %137 unwind label %173

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %172, %137
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %153

142:                                              ; preds = %138
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp sgt i32 %147, %151
  br label %153

153:                                              ; preds = %142, %138
  %154 = phi i1 [ false, %138 ], [ %152, %142 ]
  br i1 %154, label %155, label %181

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %157 = load i32, ptr %156, align 4, !tbaa !5
  store i32 %157, ptr %17, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %158 = load i32, ptr %2, align 4, !tbaa !5
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = load i32, ptr %17, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = sub nsw i32 %166, %170
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %158, i32 noundef %161, i32 noundef %162, i32 noundef %171)
          to label %172 unwind label %177

172:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %138, !llvm.loop !17

173:                                              ; preds = %181, %136
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %8, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %9, align 4
  br label %472

177:                                              ; preds = %155
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %8, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %472

181:                                              ; preds = %153
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %182 unwind label %173

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %184
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %187
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %185, ptr noundef nonnull align 4 dereferenceable(4) %188)
          to label %189 unwind label %276

189:                                              ; preds = %182
  %190 = load i32, ptr %15, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %191
  %193 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %192, ptr noundef nonnull align 4 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %194 unwind label %280

194:                                              ; preds = %189
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %196
  %198 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %197, ptr noundef nonnull align 4 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %199 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %199, ptr %20, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %462, %194
  br label %201

201:                                              ; preds = %200
  %202 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br i1 %202, label %354, label %203

203:                                              ; preds = %201
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = load i32, ptr %20, align 4, !tbaa !5
  %207 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %205, i32 noundef %206)
  br i1 %207, label %213, label %208

208:                                              ; preds = %203
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %209, i32 noundef %211)
  br i1 %212, label %213, label %354

213:                                              ; preds = %208, %203
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = load i32, ptr %20, align 4, !tbaa !5
  %217 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %215, i32 noundef %216)
  br i1 %217, label %218, label %225

218:                                              ; preds = %213
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %237, label %225

225:                                              ; preds = %218, %213
  %226 = load i32, ptr %20, align 4, !tbaa !5
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %226, i32 noundef %228)
  br i1 %229, label %230, label %296

230:                                              ; preds = %225
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = icmp eq i32 %235, 2
  br i1 %236, label %237, label %296

237:                                              ; preds = %230, %218
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = load i32, ptr %20, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %239, i32 noundef %240)
          to label %241 unwind label %284

241:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %244
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %245, i64 8, i1 false)
  %246 = load i32, ptr %20, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %248, i64 8, i1 false)
  %249 = load i64, ptr %22, align 4
  %250 = load i64, ptr %23, align 4
  %251 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %249, i64 %250)
          to label %252 unwind label %288

252:                                              ; preds = %241
  store i64 %251, ptr %21, align 4
  %253 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %255
  %257 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %256, ptr noundef nonnull align 4 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %260
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %261, i64 8, i1 false)
  %262 = load i32, ptr %20, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %263
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %264, i64 8, i1 false)
  %265 = load i64, ptr %25, align 4
  %266 = load i64, ptr %26, align 4
  %267 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %265, i64 %266)
          to label %268 unwind label %292

268:                                              ; preds = %252
  store i64 %267, ptr %24, align 4
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %271
  %273 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %272, ptr noundef nonnull align 4 dereferenceable(8) %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %275 = load i32, ptr %274, align 4, !tbaa !5
  store i32 %275, ptr %20, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %353

276:                                              ; preds = %182
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %8, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %472

280:                                              ; preds = %189
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %8, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %472

284:                                              ; preds = %464, %463, %361, %309, %296, %237
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %8, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %9, align 4
  br label %471

288:                                              ; preds = %241
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %8, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %471

292:                                              ; preds = %252
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %8, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %471

296:                                              ; preds = %230, %225
  %297 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %299 = load i32, ptr %20, align 4, !tbaa !5
  %300 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %298, i32 noundef %299)
  %301 = zext i1 %300 to i64
  %302 = select i1 %300, i32 1, i32 2
  %303 = load i32, ptr @id, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %304
  store i32 %302, ptr %305, align 4, !tbaa !5
  %306 = load i32, ptr @id, align 4, !tbaa !5
  %307 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %308 = load i32, ptr %307, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %306, i32 noundef %308)
          to label %309 unwind label %284

309:                                              ; preds = %296
  %310 = load i32, ptr @id, align 4, !tbaa !5
  %311 = load i32, ptr %20, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %310, i32 noundef %311)
          to label %312 unwind label %284

312:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %313 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %315
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %316, i64 8, i1 false)
  %317 = load i32, ptr %20, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %319, i64 8, i1 false)
  %320 = load i64, ptr %28, align 4
  %321 = load i64, ptr %29, align 4
  %322 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %320, i64 %321)
          to label %323 unwind label %345

323:                                              ; preds = %312
  store i64 %322, ptr %27, align 4
  %324 = load i32, ptr @id, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %325
  %327 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %326, ptr noundef nonnull align 4 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %328 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %330
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %331, i64 8, i1 false)
  %332 = load i32, ptr %20, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %333
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %334, i64 8, i1 false)
  %335 = load i64, ptr %31, align 4
  %336 = load i64, ptr %32, align 4
  %337 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %335, i64 %336)
          to label %338 unwind label %349

338:                                              ; preds = %323
  store i64 %337, ptr %30, align 4
  %339 = load i32, ptr @id, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %340
  %342 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %341, ptr noundef nonnull align 4 dereferenceable(8) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %343 = load i32, ptr @id, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr @id, align 4, !tbaa !5
  store i32 %343, ptr %20, align 4, !tbaa !5
  br label %353

345:                                              ; preds = %312
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %8, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %471

349:                                              ; preds = %323
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %8, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %471

353:                                              ; preds = %338, %268
  br label %462

354:                                              ; preds = %208, %201
  %355 = load i32, ptr %15, align 4, !tbaa !5
  %356 = load i32, ptr %20, align 4, !tbaa !5
  %357 = call noundef i32 @_Z6lengthi(i32 noundef %356)
  %358 = sub nsw i32 %357, 1
  %359 = sub nsw i32 %355, %358
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %460

361:                                              ; preds = %354
  %362 = load i32, ptr %2, align 4, !tbaa !5
  %363 = load i32, ptr %15, align 4, !tbaa !5
  %364 = load i32, ptr %20, align 4, !tbaa !5
  %365 = call noundef i32 @_Z6lengthi(i32 noundef %364)
  %366 = sub nsw i32 %363, %365
  %367 = invoke noundef i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %362, i32 noundef 1, i32 noundef %366)
          to label %368 unwind label %284

368:                                              ; preds = %361
  %369 = icmp eq i32 %367, 0
  br i1 %369, label %370, label %460

370:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %371 = load i32, ptr %20, align 4, !tbaa !5
  %372 = call noundef i32 @_Z6lengthi(i32 noundef %371)
  store i32 %372, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %373 = load i32, ptr %20, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %374
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %375, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %376 = load i32, ptr %20, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %377
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %378, i64 8, i1 false)
  %379 = load i32, ptr @id, align 4, !tbaa !5
  %380 = load i32, ptr %20, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %379, i32 noundef %380)
          to label %381 unwind label %447

381:                                              ; preds = %370
  br label %382

382:                                              ; preds = %410, %381
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %384 = load i32, ptr %383, align 4, !tbaa !5
  %385 = call noundef i32 @_Z6lengthi(i32 noundef %384)
  %386 = load i32, ptr %33, align 4, !tbaa !5
  %387 = add nsw i32 %386, %385
  store i32 %387, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %34, i64 8, i1 false)
  %388 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %389 = load i32, ptr %388, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %390
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %391, i64 8, i1 false)
  %392 = load i64, ptr %37, align 4
  %393 = load i64, ptr %38, align 4
  %394 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %392, i64 %393)
          to label %395 unwind label %451

395:                                              ; preds = %382
  store i64 %394, ptr %36, align 4
  %396 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %35, i64 8, i1 false)
  %397 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %399
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %400, i64 8, i1 false)
  %401 = load i64, ptr %40, align 4
  %402 = load i64, ptr %41, align 4
  %403 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %401, i64 %402)
          to label %404 unwind label %455

404:                                              ; preds = %395
  store i64 %403, ptr %39, align 4
  %405 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  %406 = load i32, ptr @id, align 4, !tbaa !5
  %407 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %408 = load i32, ptr %407, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %406, i32 noundef %408)
          to label %409 unwind label %447

409:                                              ; preds = %404
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %410

410:                                              ; preds = %409
  %411 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 1
  %412 = load i32, ptr %411, align 4, !tbaa !18
  %413 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %414 = load i32, ptr %413, align 4, !tbaa !20
  %415 = sub nsw i32 %412, %414
  %416 = add nsw i32 %415, 1
  %417 = load i32, ptr %33, align 4, !tbaa !5
  %418 = icmp ne i32 %416, %417
  br i1 %418, label %382, label %419, !llvm.loop !21

419:                                              ; preds = %410
  %420 = load i32, ptr @id, align 4, !tbaa !5
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %421
  %423 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %422) #6
  %424 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %423, ptr %424, align 8
  %425 = load i32, ptr @id, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %426
  %428 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %427) #6
  %429 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %428, ptr %429, align 8
  %430 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %431 = load ptr, ptr %430, align 8
  %432 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  %433 = load ptr, ptr %432, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %431, ptr %433)
          to label %434 unwind label %447

434:                                              ; preds = %419
  %435 = load i32, ptr @id, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %436
  %438 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %437, ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %439 unwind label %447

439:                                              ; preds = %434
  %440 = load i32, ptr @id, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %441
  %443 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %442, ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %444 unwind label %447

444:                                              ; preds = %439
  %445 = load i32, ptr @id, align 4, !tbaa !5
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr @id, align 4, !tbaa !5
  store i32 %445, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %461

447:                                              ; preds = %439, %434, %419, %404, %370
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %8, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %9, align 4
  br label %459

451:                                              ; preds = %382
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %8, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %459

455:                                              ; preds = %395
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %8, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %459

459:                                              ; preds = %455, %451, %447
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %471

460:                                              ; preds = %368, %354
  br label %463

461:                                              ; preds = %444
  br label %462

462:                                              ; preds = %461, %353
  br label %200, !llvm.loop !22

463:                                              ; preds = %460
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %464 unwind label %284

464:                                              ; preds = %463
  %465 = load i32, ptr %2, align 4, !tbaa !5
  %466 = load i32, ptr %15, align 4, !tbaa !5
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %465, i32 noundef 1, i32 noundef %466, i32 noundef -1)
          to label %467 unwind label %284

467:                                              ; preds = %464
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %468

468:                                              ; preds = %467
  %469 = load i32, ptr %15, align 4, !tbaa !5
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %15, align 4, !tbaa !5
  br label %83, !llvm.loop !23

471:                                              ; preds = %459, %349, %345, %292, %288, %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %472

472:                                              ; preds = %471, %280, %276, %177, %173, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %509

473:                                              ; preds = %87
  %474 = load i32, ptr @id, align 4, !tbaa !5
  %475 = add nsw i32 %474, -1
  store i32 %475, ptr @id, align 4, !tbaa !5
  %476 = load i32, ptr @id, align 4, !tbaa !5
  %477 = load i32, ptr %2, align 4, !tbaa !5
  %478 = mul nsw i32 2, %477
  %479 = icmp sle i32 %476, %478
  br i1 %479, label %480, label %481

480:                                              ; preds = %473
  br label %483

481:                                              ; preds = %473
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 154, ptr noundef @__PRETTY_FUNCTION__._Z5buildi) #7
  unreachable

482:                                              ; No predecessors!
  br label %483

483:                                              ; preds = %482, %480
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store i32 0, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  store i32 1, ptr %45, align 4, !tbaa !5
  br label %484

484:                                              ; preds = %498, %483
  %485 = load i32, ptr %45, align 4, !tbaa !5
  %486 = load i32, ptr @id, align 4, !tbaa !5
  %487 = icmp sle i32 %485, %486
  br i1 %487, label %489, label %488

488:                                              ; preds = %484
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %501

489:                                              ; preds = %484
  %490 = load i32, ptr %45, align 4, !tbaa !5
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %491
  %493 = load i32, ptr %492, align 4, !tbaa !5
  %494 = icmp eq i32 %493, -1
  br i1 %494, label %495, label %497

495:                                              ; preds = %489
  %496 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %496, ptr %44, align 4, !tbaa !5
  br label %497

497:                                              ; preds = %495, %489
  br label %498

498:                                              ; preds = %497
  %499 = load i32, ptr %45, align 4, !tbaa !5
  %500 = add nsw i32 %499, 1
  store i32 %500, ptr %45, align 4, !tbaa !5
  br label %484, !llvm.loop !24

501:                                              ; preds = %488
  %502 = load i32, ptr %44, align 4, !tbaa !5
  %503 = icmp ne i32 %502, 0
  br i1 %503, label %504, label %505

504:                                              ; preds = %501
  br label %507

505:                                              ; preds = %501
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 159, ptr noundef @__PRETTY_FUNCTION__._Z5buildi) #7
  unreachable

506:                                              ; No predecessors!
  br label %507

507:                                              ; preds = %506, %504
  %508 = load i32, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  ret i32 %508

509:                                              ; preds = %472, %92
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %510

510:                                              ; preds = %509, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  br label %511

511:                                              ; preds = %510
  %512 = load ptr, ptr %8, align 8
  %513 = load i32, ptr %9, align 4
  %514 = insertvalue { ptr, i32 } poison, ptr %512, 0
  %515 = insertvalue { ptr, i32 } %514, i32 %513, 1
  resume { ptr, i32 } %515
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(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) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef) #1 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

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

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

; 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(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIiE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !6, i64 4}
!19 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!20 = !{!19, !6, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !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"

%struct.ST = type { [400036 x i32], [400036 x i32] }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@t = external dso_local global %struct.ST, align 4
@p = external dso_local global [100009 x i32], align 16
@range = external dso_local global [200018 x %"struct.std::pair"], align 16
@span = external dso_local global [200018 x %"struct.std::pair"], align 16
@pt = external dso_local global [200018 x %"class.std::vector"], align 16
@par = external dso_local local_unnamed_addr global [200018 x i32], align 16
@ty = external dso_local local_unnamed_addr global [200018 x i32], align 16
@id = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._Z5buildi = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 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 uwtable
declare dso_local i64 @_Z9get_rangeSt4pairIiiES0_(i64, i64) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8adjacentii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6lengthi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 1, 0) i32 @_Z5buildi(i32 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca [1 x i32], align 4
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca [1 x i32], align 4
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = shl i32 %0, 1
  %.not79 = icmp slt i32 %0, 1
  br i1 %.not79, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %1
  %smax = tail call i32 @llvm.smax.i32(i32 %21, i32 1)
  %22 = add nuw nsw i32 %smax, 1
  %wide.trip.count = zext nneg i32 %22 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %23 = add nsw i32 %0, 1
  store i32 %23, ptr @id, align 4, !tbaa !5
  tail call void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr nonnull %3, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %27 unwind label %35

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %24 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %indvars.iv
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %25 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %indvars.iv
  store i32 0, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv
  store i32 -1, ptr %26, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

27:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr nonnull %6, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %28 unwind label %37

28:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br i1 %.not79, label %._crit_edge82, label %.preheader78.lr.ph

.preheader78.lr.ph:                               ; preds = %28
  %29 = getelementptr inbounds i8, ptr %17, i64 4
  br label %.preheader78

._crit_edge82:                                    ; preds = %311, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %30 = load i32, ptr @id, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr @id, align 4, !tbaa !5
  %.not58 = icmp sgt i32 %31, %21
  br i1 %.not58, label %316, label %.preheader

.preheader:                                       ; preds = %._crit_edge82
  %.not59.not83 = icmp sgt i32 %30, 1
  br i1 %.not59.not83, label %.lr.ph86.preheader, label %._crit_edge87.thread

.lr.ph86.preheader:                               ; preds = %.preheader
  %wide.trip.count93 = zext nneg i32 %30 to i64
  %32 = add nsw i64 %wide.trip.count93, -1
  %33 = add nsw i64 %wide.trip.count93, -2
  %xtraiter = and i64 %32, 3
  %34 = icmp ult i64 %33, 3
  br i1 %34, label %._crit_edge87.unr-lcssa, label %.lr.ph86.preheader.new

.lr.ph86.preheader.new:                           ; preds = %.lr.ph86.preheader
  %unroll_iter = and i64 %32, -4
  br label %.lr.ph86

35:                                               ; preds = %._crit_edge
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %339

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %338

.preheader78:                                     ; preds = %.preheader78.backedge, %.preheader78.lr.ph
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %.not61 = icmp eq i32 %40, 0
  br i1 %.not61, label %.critedge, label %41

41:                                               ; preds = %.preheader78
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = icmp slt i32 %46, %50
  br i1 %51, label %52, label %.critedge

52:                                               ; preds = %41
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %54 = load i32, ptr %53, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %54 to i64
  %63 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sub nsw i32 %61, %64
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %0, i32 noundef %57, i32 noundef %54, i32 noundef %65)
          to label %.preheader78.backedge unwind label %66

.preheader78.backedge:                            ; preds = %52, %311
  br label %.preheader78, !llvm.loop !11

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %315

.critedge:                                        ; preds = %.preheader78, %41
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %.preheader77 unwind label %95

.preheader77:                                     ; preds = %.critedge, %81
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %.not62 = icmp eq i32 %69, 0
  br i1 %.not62, label %.critedge2, label %70

70:                                               ; preds = %.preheader77
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp sgt i32 %75, %79
  br i1 %80, label %81, label %.critedge2

81:                                               ; preds = %70
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %83 = load i32, ptr %82, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %83 to i64
  %88 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sub nsw i32 %89, %93
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %0, i32 noundef %86, i32 noundef %83, i32 noundef %94)
          to label %.preheader77 unwind label %97, !llvm.loop !12

95:                                               ; preds = %.critedge2, %.critedge
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %315

97:                                               ; preds = %81
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %315

.critedge2:                                       ; preds = %.preheader77, %70
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %99 unwind label %95

99:                                               ; preds = %.critedge2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100009 x i32], ptr @p, i64 0, i64 %101
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %102)
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %104
  %106 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %108
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %109, ptr noundef nonnull align 4 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %111 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %111, ptr %12, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %.backedge, %99
  %113 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br i1 %113, label %234, label %114

114:                                              ; preds = %112
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %116, i32 noundef %117)
  br i1 %118, label %124, label %119

119:                                              ; preds = %114
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %120, i32 noundef %122)
  br i1 %123, label %124, label %234

124:                                              ; preds = %119, %114
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !5
  %128 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %126, i32 noundef %127)
  br i1 %128, label %129, label %136

129:                                              ; preds = %124
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %148, label %136

136:                                              ; preds = %129, %124
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %137, i32 noundef %139)
  br i1 %140, label %141, label %187

141:                                              ; preds = %136
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = icmp eq i32 %146, 2
  br i1 %147, label %148, label %187

148:                                              ; preds = %141, %129
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = load i32, ptr %12, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %150, i32 noundef %151)
          to label %152 unwind label %.loopexit72

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %155
  %.sroa.022.0.copyload = load i64, ptr %156, align 8
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %158
  %.sroa.021.0.copyload = load i64, ptr %159, align 8
  %160 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.022.0.copyload, i64 %.sroa.021.0.copyload)
          to label %161 unwind label %183

161:                                              ; preds = %152
  store i64 %160, ptr %13, align 8
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %164
  %166 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %165, ptr noundef nonnull align 4 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %169
  %.sroa.020.0.copyload = load i64, ptr %170, align 8
  %171 = load i32, ptr %12, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %172
  %.sroa.019.0.copyload = load i64, ptr %173, align 8
  %174 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.020.0.copyload, i64 %.sroa.019.0.copyload)
          to label %175 unwind label %185

175:                                              ; preds = %161
  store i64 %174, ptr %14, align 8
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %178
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %179, ptr noundef nonnull align 4 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %182 = load i32, ptr %181, align 4, !tbaa !5
  store i32 %182, ptr %12, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %.backedge

.backedge:                                        ; preds = %175, %223, %292
  br label %112, !llvm.loop !13

.loopexit72:                                      ; preds = %148, %187, %198, %239
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %314

.loopexit.split-lp73:                             ; preds = %308, %309
  %lpad.loopexit.split-lp75 = landingpad { ptr, i32 }
          cleanup
  br label %314

183:                                              ; preds = %152
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %314

185:                                              ; preds = %161
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %314

187:                                              ; preds = %141, %136
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = load i32, ptr %12, align 4, !tbaa !5
  %191 = call noundef zeroext i1 @_Z8adjacentii(i32 noundef %189, i32 noundef %190)
  %192 = select i1 %191, i32 1, i32 2
  %193 = load i32, ptr @id, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [200018 x i32], ptr @ty, i64 0, i64 %194
  store i32 %192, ptr %195, align 4, !tbaa !5
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %197 = load i32, ptr %196, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %193, i32 noundef %197)
          to label %198 unwind label %.loopexit72

198:                                              ; preds = %187
  %199 = load i32, ptr @id, align 4, !tbaa !5
  %200 = load i32, ptr %12, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %199, i32 noundef %200)
          to label %201 unwind label %.loopexit72

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %204
  %.sroa.018.0.copyload = load i64, ptr %205, align 8
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %207
  %.sroa.017.0.copyload = load i64, ptr %208, align 8
  %209 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.018.0.copyload, i64 %.sroa.017.0.copyload)
          to label %210 unwind label %230

210:                                              ; preds = %201
  store i64 %209, ptr %15, align 8
  %211 = load i32, ptr @id, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %212
  %214 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %213, ptr noundef nonnull align 4 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %217
  %.sroa.016.0.copyload = load i64, ptr %218, align 8
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %220
  %.sroa.015.0.copyload = load i64, ptr %221, align 8
  %222 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.016.0.copyload, i64 %.sroa.015.0.copyload)
          to label %223 unwind label %232

223:                                              ; preds = %210
  store i64 %222, ptr %16, align 8
  %224 = load i32, ptr @id, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %225
  %227 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %226, ptr noundef nonnull align 4 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %228 = load i32, ptr @id, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr @id, align 4, !tbaa !5
  store i32 %228, ptr %12, align 4, !tbaa !5
  br label %.backedge

230:                                              ; preds = %201
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %314

232:                                              ; preds = %210
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %314

234:                                              ; preds = %119, %112
  %235 = load i32, ptr %9, align 4, !tbaa !5
  %236 = load i32, ptr %12, align 4, !tbaa !5
  %237 = call noundef i32 @_Z6lengthi(i32 noundef %236)
  %238 = add nsw i32 %237, -1
  %.not63 = icmp eq i32 %235, %238
  br i1 %.not63, label %308, label %239

239:                                              ; preds = %234
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = load i32, ptr %12, align 4, !tbaa !5
  %242 = call noundef i32 @_Z6lengthi(i32 noundef %241)
  %243 = sub nsw i32 %240, %242
  %244 = invoke noundef i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %0, i32 noundef 1, i32 noundef %243)
          to label %245 unwind label %.loopexit72

245:                                              ; preds = %239
  %246 = icmp eq i32 %244, 0
  br i1 %246, label %247, label %308

247:                                              ; preds = %245
  %248 = load i32, ptr %12, align 4, !tbaa !5
  %249 = call noundef i32 @_Z6lengthi(i32 noundef %248)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %250 = load i32, ptr %12, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %251
  %253 = load i64, ptr %252, align 8
  store i64 %253, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %254 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %251
  %255 = load i64, ptr %254, align 8
  store i64 %255, ptr %18, align 8
  %256 = load i32, ptr @id, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %256, i32 noundef %250)
          to label %.preheader71 unwind label %.loopexit.split-lp

.preheader71:                                     ; preds = %247, %278
  %.054 = phi i32 [ %260, %278 ], [ %249, %247 ]
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %258 = load i32, ptr %257, align 4, !tbaa !5
  %259 = call noundef i32 @_Z6lengthi(i32 noundef %258)
  %260 = add nsw i32 %259, %.054
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %.sroa.012.0.copyload = load i64, ptr %17, align 8
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %263
  %.sroa.011.0.copyload = load i64, ptr %264, align 8
  %265 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.012.0.copyload, i64 %.sroa.011.0.copyload)
          to label %266 unwind label %303

266:                                              ; preds = %.preheader71
  store i64 %265, ptr %19, align 8
  %267 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %.sroa.010.0.copyload = load i64, ptr %18, align 8
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %270
  %.sroa.09.0.copyload = load i64, ptr %271, align 8
  %272 = invoke i64 @_Z9get_rangeSt4pairIiiES0_(i64 %.sroa.010.0.copyload, i64 %.sroa.09.0.copyload)
          to label %273 unwind label %305

273:                                              ; preds = %266
  store i64 %272, ptr %20, align 8
  %274 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  %275 = load i32, ptr @id, align 4, !tbaa !5
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %277 = load i32, ptr %276, align 4, !tbaa !5
  invoke void @_Z8add_edgeii(i32 noundef %275, i32 noundef %277)
          to label %278 unwind label %.loopexit

278:                                              ; preds = %273
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %279 = load i32, ptr %29, align 4, !tbaa !14
  %280 = load i32, ptr %17, align 8, !tbaa !16
  %281 = add i32 %279, 1
  %282 = sub i32 %281, %280
  %.not64 = icmp eq i32 %282, %260
  br i1 %.not64, label %283, label %.preheader71, !llvm.loop !17

283:                                              ; preds = %278
  %284 = load i32, ptr @id, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %285
  %287 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %286) #6
  %288 = load i32, ptr @id, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [200018 x %"class.std::vector"], ptr @pt, i64 0, i64 %289
  %291 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %290) #6
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %287, ptr %291)
          to label %292 unwind label %.loopexit.split-lp

292:                                              ; preds = %283
  %293 = load i32, ptr @id, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @range, i64 0, i64 %294
  %296 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %295, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %297 = load i32, ptr @id, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [200018 x %"struct.std::pair"], ptr @span, i64 0, i64 %298
  %300 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %299, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %301 = load i32, ptr @id, align 4, !tbaa !5
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr @id, align 4, !tbaa !5
  store i32 %301, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %.backedge

.loopexit:                                        ; preds = %273
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %307

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

303:                                              ; preds = %.preheader71
  %304 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br label %307

305:                                              ; preds = %266
  %306 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %307

307:                                              ; preds = %.loopexit, %.loopexit.split-lp, %305, %303
  %.pn = phi { ptr, i32 } [ %306, %305 ], [ %304, %303 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %314

308:                                              ; preds = %234, %245
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %309 unwind label %.loopexit.split-lp73

309:                                              ; preds = %308
  %310 = load i32, ptr %9, align 4, !tbaa !5
  invoke void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288) @t, i32 noundef 1, i32 noundef 1, i32 noundef %0, i32 noundef 1, i32 noundef %310, i32 noundef -1)
          to label %311 unwind label %.loopexit.split-lp73

311:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  %312 = load i32, ptr %9, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %9, align 4, !tbaa !5
  %.not57.not = icmp slt i32 %312, %0
  br i1 %.not57.not, label %.preheader78.backedge, label %._crit_edge82

314:                                              ; preds = %.loopexit72, %.loopexit.split-lp73, %307, %232, %230, %185, %183
  %.pn.pn = phi { ptr, i32 } [ %.pn, %307 ], [ %186, %185 ], [ %184, %183 ], [ %233, %232 ], [ %231, %230 ], [ %lpad.loopexit74, %.loopexit72 ], [ %lpad.loopexit.split-lp75, %.loopexit.split-lp73 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  br label %315

315:                                              ; preds = %314, %97, %95, %66
  %.pn67 = phi { ptr, i32 } [ %67, %66 ], [ %98, %97 ], [ %.pn.pn, %314 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %338

316:                                              ; preds = %._crit_edge82
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 154, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5buildi) #7
  unreachable

._crit_edge87.unr-lcssa:                          ; preds = %.lr.ph86, %.lr.ph86.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph86.preheader ], [ %spec.select.3, %.lr.ph86 ]
  %indvars.iv90.unr = phi i64 [ 1, %.lr.ph86.preheader ], [ %indvars.iv.next91.3, %.lr.ph86 ]
  %.04584.unr = phi i32 [ 0, %.lr.ph86.preheader ], [ %spec.select.3, %.lr.ph86 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge87, label %.lr.ph86.epil

.lr.ph86.epil:                                    ; preds = %._crit_edge87.unr-lcssa, %.lr.ph86.epil
  %indvars.iv90.epil = phi i64 [ %indvars.iv.next91.epil, %.lr.ph86.epil ], [ %indvars.iv90.unr, %._crit_edge87.unr-lcssa ]
  %.04584.epil = phi i32 [ %spec.select.epil, %.lr.ph86.epil ], [ %.04584.unr, %._crit_edge87.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph86.epil ], [ 0, %._crit_edge87.unr-lcssa ]
  %317 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv90.epil
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = icmp eq i32 %318, -1
  %320 = trunc nuw nsw i64 %indvars.iv90.epil to i32
  %spec.select.epil = select i1 %319, i32 %320, i32 %.04584.epil
  %indvars.iv.next91.epil = add nuw nsw i64 %indvars.iv90.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge87, label %.lr.ph86.epil, !llvm.loop !18

._crit_edge87:                                    ; preds = %.lr.ph86.epil, %._crit_edge87.unr-lcssa
  %spec.select.lcssa = phi i32 [ %spec.select.lcssa.ph, %._crit_edge87.unr-lcssa ], [ %spec.select.epil, %.lr.ph86.epil ]
  %.not60 = icmp eq i32 %spec.select.lcssa, 0
  br i1 %.not60, label %._crit_edge87.thread, label %337

.lr.ph86:                                         ; preds = %.lr.ph86, %.lr.ph86.preheader.new
  %indvars.iv90 = phi i64 [ 1, %.lr.ph86.preheader.new ], [ %indvars.iv.next91.3, %.lr.ph86 ]
  %.04584 = phi i32 [ 0, %.lr.ph86.preheader.new ], [ %spec.select.3, %.lr.ph86 ]
  %niter = phi i64 [ 0, %.lr.ph86.preheader.new ], [ %niter.next.3, %.lr.ph86 ]
  %321 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv90
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = icmp eq i32 %322, -1
  %324 = trunc nuw nsw i64 %indvars.iv90 to i32
  %spec.select = select i1 %323, i32 %324, i32 %.04584
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %325 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv.next91
  %326 = load i32, ptr %325, align 4, !tbaa !5
  %327 = icmp eq i32 %326, -1
  %328 = trunc nuw nsw i64 %indvars.iv.next91 to i32
  %spec.select.1 = select i1 %327, i32 %328, i32 %spec.select
  %indvars.iv.next91.1 = add nuw nsw i64 %indvars.iv90, 2
  %329 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv.next91.1
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = icmp eq i32 %330, -1
  %332 = trunc nuw nsw i64 %indvars.iv.next91.1 to i32
  %spec.select.2 = select i1 %331, i32 %332, i32 %spec.select.1
  %indvars.iv.next91.2 = add nuw nsw i64 %indvars.iv90, 3
  %333 = getelementptr inbounds [200018 x i32], ptr @par, i64 0, i64 %indvars.iv.next91.2
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = icmp eq i32 %334, -1
  %336 = trunc nuw nsw i64 %indvars.iv.next91.2 to i32
  %spec.select.3 = select i1 %335, i32 %336, i32 %spec.select.2
  %indvars.iv.next91.3 = add nuw nsw i64 %indvars.iv90, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge87.unr-lcssa, label %.lr.ph86, !llvm.loop !20

._crit_edge87.thread:                             ; preds = %.preheader, %._crit_edge87
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 159, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5buildi) #7
  unreachable

337:                                              ; preds = %._crit_edge87
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret i32 %spec.select.lcssa

338:                                              ; preds = %315, %37
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %315 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %339

339:                                              ; preds = %338, %35
  %.pn67.pn.pn = phi { ptr, i32 } [ %.pn67.pn, %338 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn67.pn.pn
}

; 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(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) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST5buildEiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ST3updEiiiiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ST5queryEiiiii(ptr noundef nonnull align 4 dereferenceable(3200288), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; 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: 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(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

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 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 = { 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 #4 = { noreturn 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!15, !6, i64 4}
!15 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!16 = !{!15, !6, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !10}


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