; LLVM IR from abeaumont/competitive-programming :: cses/1689.ll (Z3dfsiii)

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

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

@dy = external dso_local global [8 x i32], align 16
@dx = external dso_local global [8 x i32], align 16
@dp = external dso_local global [8 x [8 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %29
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [8 x i32], ptr %30, i64 0, i64 %32
  store i32 %27, ptr %33, align 4, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 64
  br i1 %35, label %36, label %37

36:                                               ; preds = %3
  store i1 true, ptr %4, align 1
  br label %200

37:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %130, %37
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 8
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %133

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %43, %47
  store i32 %48, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %49, %53
  store i32 %54, ptr %12, align 4, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %56 = icmp sge i32 %55, 0
  br i1 %56, label %57, label %129

57:                                               ; preds = %42
  %58 = load i32, ptr %11, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 8
  br i1 %59, label %60, label %129

60:                                               ; preds = %57
  %61 = load i32, ptr %12, align 4, !tbaa !5
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %129

63:                                               ; preds = %60
  %64 = load i32, ptr %12, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 8
  br i1 %65, label %66, label %129

66:                                               ; preds = %63
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %68
  %70 = load i32, ptr %12, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [8 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %129, label %75

75:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %119, %75
  %77 = load i32, ptr %14, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 8
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %122

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = load i32, ptr %14, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %81, %85
  store i32 %86, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = add nsw i32 %87, %91
  store i32 %92, ptr %16, align 4, !tbaa !5
  %93 = load i32, ptr %15, align 4, !tbaa !5
  %94 = icmp sge i32 %93, 0
  br i1 %94, label %95, label %114

95:                                               ; preds = %80
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 8
  br i1 %97, label %98, label %114

98:                                               ; preds = %95
  %99 = load i32, ptr %16, align 4, !tbaa !5
  %100 = icmp sge i32 %99, 0
  br i1 %100, label %101, label %114

101:                                              ; preds = %98
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 8
  br i1 %103, label %104, label %114

104:                                              ; preds = %101
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %106
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [8 x i32], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 0
  %113 = xor i1 %112, true
  br label %114

114:                                              ; preds = %104, %101, %98, %95, %80
  %115 = phi i1 [ false, %101 ], [ false, %98 ], [ false, %95 ], [ false, %80 ], [ %113, %104 ]
  %116 = zext i1 %115 to i32
  %117 = load i32, ptr %13, align 4, !tbaa !5
  %118 = add nsw i32 %117, %116
  store i32 %118, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %119

119:                                              ; preds = %114
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %14, align 4, !tbaa !5
  br label %76, !llvm.loop !9

122:                                              ; preds = %79
  %123 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %124 unwind label %125

124:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %129

125:                                              ; preds = %122
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %17, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %199

129:                                              ; preds = %124, %66, %63, %60, %57, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !5
  br label %38, !llvm.loop !11

133:                                              ; preds = %41
  %134 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  %136 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %139, ptr %141)
          to label %142 unwind label %152

142:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr %8, ptr %21, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %143 = load ptr, ptr %21, align 8, !tbaa !12
  %144 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #6
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %146 = load ptr, ptr %21, align 8, !tbaa !12
  %147 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #6
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  br label %149

149:                                              ; preds = %187, %142
  %150 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br i1 %150, label %156, label %151

151:                                              ; preds = %149
  store i32 8, ptr %10, align 4
  br label %189

152:                                              ; preds = %133
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %17, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %18, align 4
  br label %199

156:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %157 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %157, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %24) #6
  store ptr %158, ptr %25, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %24) #6
  store ptr %159, ptr %26, align 8, !tbaa !12
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = load ptr, ptr %26, align 8, !tbaa !12
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = add nsw i32 %160, %165
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = load ptr, ptr %26, align 8, !tbaa !12
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = add nsw i32 %167, %172
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  %176 = invoke noundef zeroext i1 @_Z3dfsiii(i32 noundef %166, i32 noundef %173, i32 noundef %175)
          to label %177 unwind label %179

177:                                              ; preds = %156
  br i1 %176, label %178, label %183

178:                                              ; preds = %177
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %184

179:                                              ; preds = %156
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %17, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %199

183:                                              ; preds = %177
  store i32 0, ptr %10, align 4
  br label %184

184:                                              ; preds = %183, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %185 = load i32, ptr %10, align 4
  switch i32 %185, label %189 [
    i32 0, label %186
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %149

189:                                              ; preds = %184, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %190 = load i32, ptr %10, align 4
  switch i32 %190, label %198 [
    i32 8, label %191
  ]

191:                                              ; preds = %189
  %192 = load i32, ptr %5, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %193
  %195 = load i32, ptr %6, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [8 x i32], ptr %194, i64 0, i64 %196
  store i32 0, ptr %197, align 4, !tbaa !5
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %198

198:                                              ; preds = %191, %189
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %200

199:                                              ; preds = %179, %152, %125
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %202

200:                                              ; preds = %198, %36
  %201 = load i1, ptr %4, align 1
  ret i1 %201

202:                                              ; preds = %199
  %203 = load ptr, ptr %17, align 8
  %204 = load i32, ptr %18, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync 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 = { 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

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


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

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

@dy = external dso_local local_unnamed_addr global [8 x i32], align 16
@dx = external dso_local local_unnamed_addr global [8 x i32], align 16
@dp = external dso_local local_unnamed_addr global [8 x [8 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = sext i32 %0 to i64
  %11 = sext i32 %1 to i64
  %12 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %10, i64 %11
  store i32 %2, ptr %12, align 4, !tbaa !5
  %13 = icmp eq i32 %2, 64
  br i1 %13, label %183, label %14

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %18

15:                                               ; preds = %148
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %16 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %17 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %16, ptr %17)
          to label %152 unwind label %157

18:                                               ; preds = %14, %148
  %storemerge67 = phi i32 [ 0, %14 ], [ %150, %148 ]
  %19 = sext i32 %storemerge67 to i64
  %20 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = add nsw i32 %21, %0
  %23 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %19
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = add nsw i32 %24, %1
  %or.cond = icmp ult i32 %22, 8
  %26 = icmp ult i32 %25, 8
  %or.cond6 = select i1 %or.cond, i1 %26, i1 false
  br i1 %or.cond6, label %27, label %148

27:                                               ; preds = %18
  %28 = zext nneg i32 %22 to i64
  %29 = zext nneg i32 %25 to i64
  %30 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %28, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %32, label %148

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %33 = load i32, ptr @dy, align 16, !tbaa !5
  %34 = add nsw i32 %33, %22
  %35 = load i32, ptr @dx, align 16, !tbaa !5
  %36 = add nsw i32 %35, %25
  %or.cond8 = icmp ult i32 %34, 8
  %37 = icmp ult i32 %36, 8
  %or.cond12 = select i1 %or.cond8, i1 %37, i1 false
  br i1 %or.cond12, label %38, label %43

38:                                               ; preds = %32
  %39 = zext nneg i32 %34 to i64
  %40 = zext nneg i32 %36 to i64
  %41 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %39, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %.not62 = icmp eq i32 %42, 0
  br label %43

43:                                               ; preds = %38, %32
  %44 = phi i1 [ false, %32 ], [ %.not62, %38 ]
  %45 = zext i1 %44 to i32
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 4), align 4, !tbaa !5
  %47 = add nsw i32 %46, %22
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 4), align 4, !tbaa !5
  %49 = add nsw i32 %48, %25
  %or.cond8.1 = icmp ult i32 %47, 8
  %50 = icmp ult i32 %49, 8
  %or.cond12.1 = select i1 %or.cond8.1, i1 %50, i1 false
  br i1 %or.cond12.1, label %51, label %56

51:                                               ; preds = %43
  %52 = zext nneg i32 %47 to i64
  %53 = zext nneg i32 %49 to i64
  %54 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %52, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.not62.1 = icmp eq i32 %55, 0
  br label %56

56:                                               ; preds = %51, %43
  %57 = phi i1 [ false, %43 ], [ %.not62.1, %51 ]
  %58 = zext i1 %57 to i32
  %59 = add nuw nsw i32 %45, %58
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 8), align 8, !tbaa !5
  %61 = add nsw i32 %60, %22
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 8), align 8, !tbaa !5
  %63 = add nsw i32 %62, %25
  %or.cond8.2 = icmp ult i32 %61, 8
  %64 = icmp ult i32 %63, 8
  %or.cond12.2 = select i1 %or.cond8.2, i1 %64, i1 false
  br i1 %or.cond12.2, label %65, label %70

65:                                               ; preds = %56
  %66 = zext nneg i32 %61 to i64
  %67 = zext nneg i32 %63 to i64
  %68 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %66, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %.not62.2 = icmp eq i32 %69, 0
  br label %70

70:                                               ; preds = %65, %56
  %71 = phi i1 [ false, %56 ], [ %.not62.2, %65 ]
  %72 = zext i1 %71 to i32
  %73 = add nuw nsw i32 %59, %72
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 12), align 4, !tbaa !5
  %75 = add nsw i32 %74, %22
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 12), align 4, !tbaa !5
  %77 = add nsw i32 %76, %25
  %or.cond8.3 = icmp ult i32 %75, 8
  %78 = icmp ult i32 %77, 8
  %or.cond12.3 = select i1 %or.cond8.3, i1 %78, i1 false
  br i1 %or.cond12.3, label %79, label %84

79:                                               ; preds = %70
  %80 = zext nneg i32 %75 to i64
  %81 = zext nneg i32 %77 to i64
  %82 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %80, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %.not62.3 = icmp eq i32 %83, 0
  br label %84

84:                                               ; preds = %79, %70
  %85 = phi i1 [ false, %70 ], [ %.not62.3, %79 ]
  %86 = zext i1 %85 to i32
  %87 = add nuw nsw i32 %73, %86
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 16), align 16, !tbaa !5
  %89 = add nsw i32 %88, %22
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 16), align 16, !tbaa !5
  %91 = add nsw i32 %90, %25
  %or.cond8.4 = icmp ult i32 %89, 8
  %92 = icmp ult i32 %91, 8
  %or.cond12.4 = select i1 %or.cond8.4, i1 %92, i1 false
  br i1 %or.cond12.4, label %93, label %98

93:                                               ; preds = %84
  %94 = zext nneg i32 %89 to i64
  %95 = zext nneg i32 %91 to i64
  %96 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %94, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not62.4 = icmp eq i32 %97, 0
  br label %98

98:                                               ; preds = %93, %84
  %99 = phi i1 [ false, %84 ], [ %.not62.4, %93 ]
  %100 = zext i1 %99 to i32
  %101 = add nuw nsw i32 %87, %100
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 20), align 4, !tbaa !5
  %103 = add nsw i32 %102, %22
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 20), align 4, !tbaa !5
  %105 = add nsw i32 %104, %25
  %or.cond8.5 = icmp ult i32 %103, 8
  %106 = icmp ult i32 %105, 8
  %or.cond12.5 = select i1 %or.cond8.5, i1 %106, i1 false
  br i1 %or.cond12.5, label %107, label %112

107:                                              ; preds = %98
  %108 = zext nneg i32 %103 to i64
  %109 = zext nneg i32 %105 to i64
  %110 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %108, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %.not62.5 = icmp eq i32 %111, 0
  br label %112

112:                                              ; preds = %107, %98
  %113 = phi i1 [ false, %98 ], [ %.not62.5, %107 ]
  %114 = zext i1 %113 to i32
  %115 = add nuw nsw i32 %101, %114
  %116 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 24), align 8, !tbaa !5
  %117 = add nsw i32 %116, %22
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 24), align 8, !tbaa !5
  %119 = add nsw i32 %118, %25
  %or.cond8.6 = icmp ult i32 %117, 8
  %120 = icmp ult i32 %119, 8
  %or.cond12.6 = select i1 %or.cond8.6, i1 %120, i1 false
  br i1 %or.cond12.6, label %121, label %126

121:                                              ; preds = %112
  %122 = zext nneg i32 %117 to i64
  %123 = zext nneg i32 %119 to i64
  %124 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %122, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %.not62.6 = icmp eq i32 %125, 0
  br label %126

126:                                              ; preds = %121, %112
  %127 = phi i1 [ false, %112 ], [ %.not62.6, %121 ]
  %128 = zext i1 %127 to i32
  %129 = add nuw nsw i32 %115, %128
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @dy, i64 28), align 4, !tbaa !5
  %131 = add nsw i32 %130, %22
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @dx, i64 28), align 4, !tbaa !5
  %133 = add nsw i32 %132, %25
  %or.cond8.7 = icmp ult i32 %131, 8
  %134 = icmp ult i32 %133, 8
  %or.cond12.7 = select i1 %or.cond8.7, i1 %134, i1 false
  br i1 %or.cond12.7, label %135, label %140

135:                                              ; preds = %126
  %136 = zext nneg i32 %131 to i64
  %137 = zext nneg i32 %133 to i64
  %138 = getelementptr inbounds [8 x [8 x i32]], ptr @dp, i64 0, i64 %136, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %.not62.7 = icmp eq i32 %139, 0
  br label %140

140:                                              ; preds = %135, %126
  %141 = phi i1 [ false, %126 ], [ %.not62.7, %135 ]
  %142 = zext i1 %141 to i32
  %143 = add nuw nsw i32 %129, %142
  store i32 %143, ptr %6, align 4, !tbaa !5
  %144 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %145 unwind label %146

145:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %148

146:                                              ; preds = %140
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %182

148:                                              ; preds = %145, %27, %18
  %149 = phi i32 [ %.pre, %145 ], [ %storemerge67, %27 ], [ %storemerge67, %18 ]
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %5, align 4, !tbaa !5
  %151 = icmp slt i32 %149, 7
  br i1 %151, label %18, label %15, !llvm.loop !9

152:                                              ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %153 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %153, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %154 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %154, ptr %8, align 8
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %155, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %152
  %156 = add nsw i32 %2, 1
  br label %159

157:                                              ; preds = %15
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %182

159:                                              ; preds = %.lr.ph, %176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %160 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %161 = load i64, ptr %160, align 4
  store i64 %161, ptr %9, align 8
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %9) #5
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %9) #5
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [8 x i32], ptr @dy, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %167, %0
  %169 = getelementptr inbounds [8 x i32], ptr @dx, i64 0, i64 %165
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = add nsw i32 %170, %1
  %172 = invoke noundef zeroext i1 @_Z3dfsiii(i32 noundef %168, i32 noundef %171, i32 noundef %156)
          to label %175 unwind label %173

173:                                              ; preds = %159
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %182

175:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br i1 %172, label %179, label %176

176:                                              ; preds = %175
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %178, label %159, label %._crit_edge

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %180

._crit_edge:                                      ; preds = %176, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %179, %._crit_edge
  %181 = phi i1 [ true, %179 ], [ false, %._crit_edge ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %183

182:                                              ; preds = %173, %157, %146
  %.pn = phi { ptr, i32 } [ %147, %146 ], [ %174, %173 ], [ %158, %157 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn

183:                                              ; preds = %3, %180
  %.4 = phi i1 [ %181, %180 ], [ true, %3 ]
  ret i1 %.4
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync 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 = { 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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