; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2018-19/Open 2019/Plat/escape (TLE).ll (Z6adjustii)

; 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.DSU = type { [180000 x i32], [180000 x i32] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.16" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.13" = type { ptr }
%"class.std::allocator.10" = type { i8 }
%"struct.std::pair" = type { i32, %struct.modInt }
%struct.modInt = type { i32 }
%"struct.std::pair.14" = type { %"class.std::vector.8", %"struct.std::pair" }

@K = external dso_local global i32, align 4
@D = external dso_local global %struct.DSU, align 4
@cur = external dso_local global %"class.std::vector.3", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; 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) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2adSt6vectorIiSaIiEESt4pairIi6modIntIiEE(ptr noundef, i64) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3swav() #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6adjustii(i32 noundef %0, i32 noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::vector.8", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.8", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.13", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.13", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.13", align 8
  %23 = alloca %"class.std::allocator.10", align 1
  %24 = alloca %"struct.std::pair", align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %2
  br label %205

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr @cur, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %30 = call ptr @_ZNSt6vectorISt4pairIS_IiSaIiEES0_Ii6modIntIiEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #5
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %6, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %32 = call ptr @_ZNSt6vectorISt4pairIS_IiSaIiEES0_Ii6modIntIiEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #5
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.16", ptr %7, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  br label %34

34:                                               ; preds = %192, %29
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %204

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  store ptr %38, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %39 = load ptr, ptr %9, align 8, !tbaa !9
  %40 = getelementptr inbounds %"struct.std::pair.14", ptr %39, i32 0, i32 0
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %80, %37
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = load i32, ptr @K, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %83

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

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

51:                                               ; preds = %47
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %79

52:                                               ; preds = %47
  %53 = load i32, ptr @K, align 4, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = mul nsw i32 %53, %54
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = add nsw i32 %55, %56
  %58 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %57)
          to label %59 unwind label %71

59:                                               ; preds = %52
  %60 = load i32, ptr @K, align 4, !tbaa !5
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = mul nsw i32 %60, %61
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = add nsw i32 %62, %63
  %65 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %64)
          to label %66 unwind label %71

66:                                               ; preds = %59
  %67 = icmp eq i32 %58, %65
  br i1 %67, label %68, label %75

68:                                               ; preds = %66
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %69, i32 noundef %70)
  br label %75

71:                                               ; preds = %59, %52
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %203

75:                                               ; preds = %68, %66
  br label %76

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

79:                                               ; preds = %51
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %11, align 4, !tbaa !5
  br label %41, !llvm.loop !13

83:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %170, %83
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = load i32, ptr @K, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 10, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %174

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %90 = load i32, ptr @K, align 4, !tbaa !5
  %91 = load i32, ptr %15, align 4, !tbaa !5
  %92 = add nsw i32 %90, %91
  store i32 %92, ptr %16, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %93 unwind label %99

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %129, %93
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = load i32, ptr @K, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %103, label %98

98:                                               ; preds = %94
  store i32 13, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %132

99:                                               ; preds = %89
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %13, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %173

103:                                              ; preds = %94
  %104 = load i32, ptr @K, align 4, !tbaa !5
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = mul nsw i32 %104, %105
  %107 = load i32, ptr %17, align 4, !tbaa !5
  %108 = add nsw i32 %106, %107
  %109 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %108)
          to label %110 unwind label %124

110:                                              ; preds = %103
  %111 = load i32, ptr @K, align 4, !tbaa !5
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = mul nsw i32 %111, %112
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = add nsw i32 %113, %114
  %116 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %115)
          to label %117 unwind label %124

117:                                              ; preds = %110
  %118 = icmp eq i32 %109, %116
  br i1 %118, label %119, label %128

119:                                              ; preds = %117
  %120 = load i32, ptr %17, align 4, !tbaa !5
  %121 = load i32, ptr @K, align 4, !tbaa !5
  %122 = load i32, ptr %15, align 4, !tbaa !5
  %123 = add nsw i32 %121, %122
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %120, i32 noundef %123)
  br label %128

124:                                              ; preds = %110, %103
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %173

128:                                              ; preds = %119, %117
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %17, align 4, !tbaa !5
  br label %94, !llvm.loop !14

132:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %166, %132
  %134 = load i32, ptr %18, align 4, !tbaa !5
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 16, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %169

138:                                              ; preds = %133
  %139 = load i32, ptr @K, align 4, !tbaa !5
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = mul nsw i32 %139, %140
  %142 = load i32, ptr %18, align 4, !tbaa !5
  %143 = add nsw i32 %141, %142
  %144 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %143)
          to label %145 unwind label %161

145:                                              ; preds = %138
  %146 = load i32, ptr @K, align 4, !tbaa !5
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = mul nsw i32 %146, %147
  %149 = load i32, ptr %15, align 4, !tbaa !5
  %150 = add nsw i32 %148, %149
  %151 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %150)
          to label %152 unwind label %161

152:                                              ; preds = %145
  %153 = icmp eq i32 %144, %151
  br i1 %153, label %154, label %165

154:                                              ; preds = %152
  %155 = load i32, ptr @K, align 4, !tbaa !5
  %156 = load i32, ptr %18, align 4, !tbaa !5
  %157 = add nsw i32 %155, %156
  %158 = load i32, ptr @K, align 4, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !5
  %160 = add nsw i32 %158, %159
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %157, i32 noundef %160)
  br label %165

161:                                              ; preds = %145, %138
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %13, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %173

165:                                              ; preds = %154, %152
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %18, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %18, align 4, !tbaa !5
  br label %133, !llvm.loop !15

169:                                              ; preds = %137
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %15, align 4, !tbaa !5
  br label %84, !llvm.loop !16

173:                                              ; preds = %161, %124, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %203

174:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %175 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.13", ptr %21, i32 0, i32 0
  store ptr %175, ptr %176, align 8
  %177 = load i32, ptr @K, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %178) #5
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.13", ptr %20, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  %181 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %182 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.13", ptr %22, i32 0, i32 0
  store ptr %181, ptr %182, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.13", ptr %20, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.13", ptr %22, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPiS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr %184, ptr %186, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %187 unwind label %194

187:                                              ; preds = %174
  %188 = load ptr, ptr %9, align 8, !tbaa !9
  %189 = getelementptr inbounds %"struct.std::pair.14", ptr %188, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %189, i64 8, i1 false)
  %190 = load i64, ptr %24, align 4
  invoke void @_Z2adSt6vectorIiSaIiEESt4pairIi6modIntIiEE(ptr noundef %19, i64 %190)
          to label %191 unwind label %198

191:                                              ; preds = %187
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %192

192:                                              ; preds = %191
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %34

194:                                              ; preds = %174
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %13, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %14, align 4
  br label %202

198:                                              ; preds = %187
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %13, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %14, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %202

202:                                              ; preds = %198, %194
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %203

203:                                              ; preds = %202, %173, %71
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %206

204:                                              ; preds = %36
  call void @_Z3swav()
  br label %205

205:                                              ; preds = %204, %28
  ret void

206:                                              ; preds = %203
  %207 = load ptr, ptr %13, align 8
  %208 = load i32, ptr %14, align 4
  %209 = insertvalue { ptr, i32 } poison, ptr %207, 0
  %210 = insertvalue { ptr, i32 } %209, i32 %208, 1
  resume { ptr, i32 } %210
}

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

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

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

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

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

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

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

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


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

%struct.DSU = type { [180000 x i32], [180000 x i32] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::vector<int>, std::pair<int, modInt<int>>>, std::allocator<std::pair<std::vector<int>, std::pair<int, modInt<int>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.16" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.13" = type { ptr }
%"class.std::allocator.10" = type { i8 }

@K = external dso_local local_unnamed_addr global i32, align 4
@D = external dso_local global %struct.DSU, align 4
@cur = external dso_local global %"class.std::vector.3", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2adSt6vectorIiSaIiEESt4pairIi6modIntIiEE(ptr noundef, i64) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3swav() local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6adjustii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.16", align 8
  %5 = alloca %"class.std::vector.8", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.8", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.13", align 8
  %9 = alloca %"class.std::allocator.10", align 1
  %10 = icmp eq i32 %0, %1
  br i1 %10, label %105, label %11

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %12 = tail call ptr @_ZNSt6vectorISt4pairIS_IiSaIiEES0_Ii6modIntIiEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #4
  store ptr %12, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %13 = tail call ptr @_ZNSt6vectorISt4pairIS_IiSaIiEES0_Ii6modIntIiEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @cur) #4
  store ptr %13, ptr %4, align 8
  %14 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %14, label %.lr.ph68, label %._crit_edge69

._crit_edge69:                                    ; preds = %96, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_Z3swav()
  br label %105

.lr.ph68:                                         ; preds = %11, %96
  %15 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %16 = load i32, ptr @K, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.preheader54, label %._crit_edge66

.preheader55:                                     ; preds = %._crit_edge
  %18 = icmp sgt i32 %20, 0
  br i1 %18, label %.lr.ph65, label %._crit_edge66

.preheader54:                                     ; preds = %.lr.ph68, %._crit_edge
  %19 = phi i32 [ %20, %._crit_edge ], [ %16, %.lr.ph68 ]
  %.057 = phi i32 [ %21, %._crit_edge ], [ 0, %.lr.ph68 ]
  %.not = icmp eq i32 %.057, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %37
  %.pre = load i32, ptr @K, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader54
  %20 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %19, %.preheader54 ]
  %21 = add nuw nsw i32 %.057, 1
  %22 = icmp slt i32 %21, %20
  br i1 %22, label %.preheader54, label %.preheader55, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader54, %37
  %.03856 = phi i32 [ %38, %37 ], [ 0, %.preheader54 ]
  %23 = load i32, ptr @K, align 4, !tbaa !5
  %24 = mul nsw i32 %23, %0
  %25 = add nsw i32 %24, %.057
  %26 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %25)
          to label %27 unwind label %35

27:                                               ; preds = %.lr.ph
  %28 = load i32, ptr @K, align 4, !tbaa !5
  %29 = mul nsw i32 %28, %0
  %30 = add nsw i32 %29, %.03856
  %31 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %30)
          to label %32 unwind label %35

32:                                               ; preds = %27
  %33 = icmp eq i32 %26, %31
  br i1 %33, label %34, label %37

34:                                               ; preds = %32
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %.03856, i32 noundef %.057)
  br label %37

35:                                               ; preds = %27, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %104

37:                                               ; preds = %32, %34
  %38 = add nuw nsw i32 %.03856, 1
  %exitcond.not = icmp eq i32 %38, %.057
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !11

._crit_edge66:                                    ; preds = %._crit_edge63, %.lr.ph68, %.preheader55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %39 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  store ptr %39, ptr %8, align 8
  %40 = load i32, ptr @K, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %41) #4
  %43 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPiS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %42, ptr %43, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %94 unwind label %99

.lr.ph65:                                         ; preds = %.preheader55, %._crit_edge63
  %44 = phi i32 [ %72, %._crit_edge63 ], [ %20, %.preheader55 ]
  %.04164 = phi i32 [ %73, %._crit_edge63 ], [ 0, %.preheader55 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %45 = add nsw i32 %44, %.04164
  store i32 %45, ptr %6, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %46 unwind label %50

46:                                               ; preds = %.lr.ph65
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  %47 = load i32, ptr @K, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph60, label %.preheader

.preheader:                                       ; preds = %68, %46
  %49 = phi i32 [ %47, %46 ], [ %70, %68 ]
  %.not70 = icmp eq i32 %.04164, 0
  br i1 %.not70, label %._crit_edge63, label %.lr.ph62

50:                                               ; preds = %.lr.ph65
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %104

.lr.ph60:                                         ; preds = %46, %68
  %52 = phi i32 [ %70, %68 ], [ %47, %46 ]
  %.04058 = phi i32 [ %69, %68 ], [ 0, %46 ]
  %53 = mul nsw i32 %52, %0
  %54 = add nsw i32 %53, %.04058
  %55 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %54)
          to label %56 unwind label %66

56:                                               ; preds = %.lr.ph60
  %57 = load i32, ptr @K, align 4, !tbaa !5
  %58 = mul nsw i32 %57, %1
  %59 = add nsw i32 %58, %.04164
  %60 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %59)
          to label %61 unwind label %66

61:                                               ; preds = %56
  %62 = icmp eq i32 %55, %60
  br i1 %62, label %63, label %68

63:                                               ; preds = %61
  %64 = load i32, ptr @K, align 4, !tbaa !5
  %65 = add nsw i32 %64, %.04164
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %.04058, i32 noundef %65)
  br label %68

66:                                               ; preds = %56, %.lr.ph60
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %104

68:                                               ; preds = %61, %63
  %69 = add nuw nsw i32 %.04058, 1
  %70 = load i32, ptr @K, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %.lr.ph60, label %.preheader, !llvm.loop !12

._crit_edge63.loopexit:                           ; preds = %92
  %.pre72 = load i32, ptr @K, align 4, !tbaa !5
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %._crit_edge63.loopexit, %.preheader
  %72 = phi i32 [ %.pre72, %._crit_edge63.loopexit ], [ %49, %.preheader ]
  %73 = add nuw nsw i32 %.04164, 1
  %74 = icmp slt i32 %73, %72
  br i1 %74, label %.lr.ph65, label %._crit_edge66, !llvm.loop !13

.lr.ph62:                                         ; preds = %.preheader, %92
  %.03961 = phi i32 [ %93, %92 ], [ 0, %.preheader ]
  %75 = load i32, ptr @K, align 4, !tbaa !5
  %76 = mul nsw i32 %75, %1
  %77 = add nsw i32 %76, %.03961
  %78 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %77)
          to label %79 unwind label %90

79:                                               ; preds = %.lr.ph62
  %80 = load i32, ptr @K, align 4, !tbaa !5
  %81 = mul nsw i32 %80, %1
  %82 = add nsw i32 %81, %.04164
  %83 = invoke noundef i32 @_ZN3DSUILi180000EE3getEi(ptr noundef nonnull align 4 dereferenceable(1440000) @D, i32 noundef %82)
          to label %84 unwind label %90

84:                                               ; preds = %79
  %85 = icmp eq i32 %78, %83
  br i1 %85, label %86, label %92

86:                                               ; preds = %84
  %87 = load i32, ptr @K, align 4, !tbaa !5
  %88 = add nsw i32 %87, %.03961
  %89 = add nsw i32 %87, %.04164
  call void @_Z5uniteRSt6vectorIiSaIiEEii(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %88, i32 noundef %89)
  br label %92

90:                                               ; preds = %79, %.lr.ph62
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %104

92:                                               ; preds = %84, %86
  %93 = add nuw nsw i32 %.03961, 1
  %exitcond71.not = icmp eq i32 %93, %.04164
  br i1 %exitcond71.not, label %._crit_edge63.loopexit, label %.lr.ph62, !llvm.loop !14

94:                                               ; preds = %._crit_edge66
  %95 = getelementptr inbounds i8, ptr %15, i64 24
  %.sroa.0.0.copyload = load i64, ptr %95, align 8
  invoke void @_Z2adSt6vectorIiSaIiEESt4pairIi6modIntIiEE(ptr noundef nonnull %7, i64 %.sroa.0.0.copyload)
          to label %96 unwind label %101

96:                                               ; preds = %94
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairISt6vectorIiSaIiEES1_Ii6modIntIiEEES2_IS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %98, label %.lr.ph68, label %._crit_edge69

99:                                               ; preds = %._crit_edge66
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %104

104:                                              ; preds = %50, %66, %90, %103, %35
  %.pn52 = phi { ptr, i32 } [ %36, %35 ], [ %.pn, %103 ], [ %67, %66 ], [ %91, %90 ], [ %51, %50 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn52

105:                                              ; preds = %2, %._crit_edge69
  ret void
}

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

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

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

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

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

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

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


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