; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2007-08/nabor.ll (Z9manhattanv)

; 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.point = type { i32, i32, i32 }
%struct.node = 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.__gnu_cxx::__normal_iterator.8" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }

@n = external dso_local global i32, align 4
@p = external dso_local global [100010 x %struct.point], align 16
@T = external dso_local global [100010 x %struct.node], align 16
@_ZZ9manhattanvE1a = external hidden global [100010 x i32], align 16

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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 void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 noundef i32 @_Z4distR5pointS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5queryi(i32 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9manhattanv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %38, %0
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %41

32:                                               ; preds = %27
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.point, ptr %36, i32 0, i32 2
  store i32 %33, ptr %37, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %32
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %1, align 4, !tbaa !5
  br label %27, !llvm.loop !11

41:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %285, %41
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp sle i32 %43, 4
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %289

46:                                               ; preds = %42
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 4
  br i1 %51, label %52, label %71

52:                                               ; preds = %49, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %67, %52
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = load i32, ptr @n, align 4, !tbaa !5
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %53
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %60
  %62 = getelementptr inbounds %struct.point, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.point, ptr %65, i32 0, i32 1
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %66) #5
  br label %67

67:                                               ; preds = %58
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !5
  br label %53, !llvm.loop !13

70:                                               ; preds = %57
  br label %96

71:                                               ; preds = %49
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 3
  br i1 %73, label %74, label %95

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %91, %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %94

80:                                               ; preds = %75
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.point, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !14
  %86 = sub nsw i32 0, %85
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.point, ptr %89, i32 0, i32 0
  store i32 %86, ptr %90, align 4, !tbaa !14
  br label %91

91:                                               ; preds = %80
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %5, align 4, !tbaa !5
  br label %75, !llvm.loop !15

94:                                               ; preds = %79
  br label %95

95:                                               ; preds = %94, %71
  br label %96

96:                                               ; preds = %95, %70
  %97 = load i32, ptr @n, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.point, ptr getelementptr inbounds (%struct.point, ptr @p, i64 1), i64 %98
  call void @_ZSt4sortIP5pointEvT_S2_(ptr noundef getelementptr inbounds (%struct.point, ptr @p, i64 1), ptr noundef %99)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %124, %96
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = load i32, ptr @n, align 4, !tbaa !5
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %131

105:                                              ; preds = %100
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.point, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !16
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %112
  %114 = getelementptr inbounds %struct.point, ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 4, !tbaa !14
  %116 = sub nsw i32 %110, %115
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %118
  store i32 %116, ptr %119, align 4, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %121
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %122)
          to label %123 unwind label %127

123:                                              ; preds = %105
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %7, align 4, !tbaa !5
  br label %100, !llvm.loop !17

127:                                              ; preds = %105
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %288

131:                                              ; preds = %104
  %132 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %10, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %11, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %10, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %11, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %137, ptr %139)
          to label %140 unwind label %166

140:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %141 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %14, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  %143 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %15, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %14, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %15, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8
  %149 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %146, ptr %148)
          to label %150 unwind label %170

150:                                              ; preds = %140
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %13, i32 0, i32 0
  store ptr %149, ptr %151, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %152 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %17, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %12, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %16, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  %158 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr %155, ptr %157)
          to label %159 unwind label %174

159:                                              ; preds = %150
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  store ptr %158, ptr %160, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %202, %159
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = load i32, ptr @n, align 4, !tbaa !5
  %164 = icmp sle i32 %162, %163
  br i1 %164, label %179, label %165

165:                                              ; preds = %161
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %209

166:                                              ; preds = %131
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %8, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %9, align 4
  br label %288

170:                                              ; preds = %140
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %8, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %9, align 4
  br label %178

174:                                              ; preds = %150
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %8, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %178

178:                                              ; preds = %174, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %288

179:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %180 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %181 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %21, i32 0, i32 0
  store ptr %180, ptr %181, align 8
  %182 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %22, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  %184 = load i32, ptr %19, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %185
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %21, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %22, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %188, ptr %190, ptr noundef nonnull align 4 dereferenceable(4) %186)
          to label %192 unwind label %205

192:                                              ; preds = %179
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %20, i32 0, i32 0
  store ptr %191, ptr %193, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %194 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %23, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  %196 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  %197 = add nsw i64 %196, 1
  %198 = trunc i64 %197 to i32
  %199 = load i32, ptr %19, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %200
  store i32 %198, ptr %201, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %202

202:                                              ; preds = %192
  %203 = load i32, ptr %19, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %19, align 4, !tbaa !5
  br label %161, !llvm.loop !18

205:                                              ; preds = %179
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %8, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %288

209:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %224, %209
  %211 = load i32, ptr %24, align 4, !tbaa !5
  %212 = load i32, ptr @n, align 4, !tbaa !5
  %213 = icmp sle i32 %211, %212
  br i1 %213, label %215, label %214

214:                                              ; preds = %210
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %227

215:                                              ; preds = %210
  %216 = load i32, ptr %24, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [100010 x %struct.node], ptr @T, i64 0, i64 %217
  %219 = getelementptr inbounds %struct.node, ptr %218, i32 0, i32 0
  store i32 2147483647, ptr %219, align 8, !tbaa !19
  %220 = load i32, ptr %24, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [100010 x %struct.node], ptr @T, i64 0, i64 %221
  %223 = getelementptr inbounds %struct.node, ptr %222, i32 0, i32 1
  store i32 -1, ptr %223, align 4, !tbaa !21
  br label %224

224:                                              ; preds = %215
  %225 = load i32, ptr %24, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %24, align 4, !tbaa !5
  br label %210, !llvm.loop !22

227:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %228 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %228, ptr %25, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %281, %227
  %230 = load i32, ptr %25, align 4, !tbaa !5
  %231 = icmp sge i32 %230, 1
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %284

233:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %234 = load i32, ptr %25, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = call noundef i32 @_Z5queryi(i32 noundef %237)
  store i32 %238, ptr %26, align 4, !tbaa !5
  %239 = load i32, ptr %26, align 4, !tbaa !5
  %240 = icmp ne i32 %239, -1
  br i1 %240, label %241, label %264

241:                                              ; preds = %233
  %242 = load i32, ptr %25, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %243
  %245 = getelementptr inbounds %struct.point, ptr %244, i32 0, i32 2
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = load i32, ptr %26, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %248
  %250 = getelementptr inbounds %struct.point, ptr %249, i32 0, i32 2
  %251 = load i32, ptr %250, align 4, !tbaa !9
  %252 = load i32, ptr %25, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %253
  %255 = load i32, ptr %26, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %256
  %258 = call noundef i32 @_Z4distR5pointS0_(ptr noundef nonnull align 4 dereferenceable(12) %254, ptr noundef nonnull align 4 dereferenceable(12) %257)
  invoke void @_Z7addEdgeiii(i32 noundef %246, i32 noundef %251, i32 noundef %258)
          to label %259 unwind label %260

259:                                              ; preds = %241
  br label %264

260:                                              ; preds = %241
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %8, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %288

264:                                              ; preds = %259, %233
  %265 = load i32, ptr %25, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = load i32, ptr %25, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %270
  %272 = getelementptr inbounds %struct.point, ptr %271, i32 0, i32 0
  %273 = load i32, ptr %272, align 4, !tbaa !14
  %274 = load i32, ptr %25, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %275
  %277 = getelementptr inbounds %struct.point, ptr %276, i32 0, i32 1
  %278 = load i32, ptr %277, align 4, !tbaa !16
  %279 = add nsw i32 %273, %278
  %280 = load i32, ptr %25, align 4, !tbaa !5
  call void @_Z6updateiii(i32 noundef %268, i32 noundef %279, i32 noundef %280)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %281

281:                                              ; preds = %264
  %282 = load i32, ptr %25, align 4, !tbaa !5
  %283 = add nsw i32 %282, -1
  store i32 %283, ptr %25, align 4, !tbaa !5
  br label %229, !llvm.loop !23

284:                                              ; preds = %232
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %2, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %2, align 4, !tbaa !5
  br label %42, !llvm.loop !24

288:                                              ; preds = %260, %205, %178, %166, %127
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %290

289:                                              ; preds = %45
  ret void

290:                                              ; preds = %288
  %291 = load ptr, ptr %8, align 8
  %292 = load i32, ptr %9, align 4
  %293 = insertvalue { ptr, i32 } poison, ptr %291, 0
  %294 = insertvalue { ptr, i32 } %293, i32 %292, 1
  resume { ptr, i32 } %294
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__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)) #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #4

attributes #0 = { 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 = { 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 = { 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, !6, i64 8}
!10 = !{!"_ZTS5point", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!10, !6, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!10, !6, i64 4}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS4node", !6, i64 0, !6, i64 4}
!21 = !{!20, !6, i64 4}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !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.point = type { i32, i32, i32 }
%struct.node = 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.__gnu_cxx::__normal_iterator.9" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.8" = type { ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global [100010 x %struct.point], align 16
@T = external dso_local local_unnamed_addr global [100010 x %struct.node], align 16
@_ZZ9manhattanvE1a = external hidden global [100010 x i32], align 16

declare i32 @__gxx_personality_v0(...)

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

; 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 void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 noundef i32 @_Z4distR5pointS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9manhattanv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %.not77 = icmp slt i32 %8, 1
  br i1 %.not77, label %.preheader75.preheader, label %.lr.ph.preheader

.preheader75.preheader.loopexit.unr-lcssa:        ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader75.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader75.preheader.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader75.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader75.preheader.loopexit.unr-lcssa ]
  %9 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.epil, i32 2
  %10 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %10, ptr %9, align 4, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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 %.preheader75.preheader, label %.lr.ph.epil, !llvm.loop !11

.preheader75.preheader:                           ; preds = %.preheader75.preheader.loopexit.unr-lcssa, %.lr.ph.epil, %0
  br label %.preheader75

.lr.ph.preheader:                                 ; preds = %0
  %11 = zext nneg i32 %8 to i64
  %xtraiter = and i64 %11, 3
  %12 = icmp ult i32 %8, 4
  br i1 %12, label %.preheader75.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %11, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %13 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv, i32 2
  %14 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %14, ptr %13, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next, i32 2
  %16 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %16, ptr %15, align 4, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %17 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next.1, i32 2
  %18 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %18, ptr %17, align 4, !tbaa !9
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %19 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next.2, i32 2
  %20 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %20, ptr %19, align 4, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 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 %.preheader75.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !13

21:                                               ; preds = %._crit_edge97
  ret void

.preheader75:                                     ; preds = %.preheader75.preheader, %._crit_edge97
  %.05398 = phi i32 [ %103, %._crit_edge97 ], [ 1, %.preheader75.preheader ]
  switch i32 %.05398, label %..loopexit_crit_edge [
    i32 4, label %25
    i32 2, label %25
    i32 3, label %.preheader73
  ]

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

.preheader73:                                     ; preds = %.preheader75
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %.not6379 = icmp slt i32 %22, 1
  br i1 %.not6379, label %.loopexit, label %.lr.ph81.preheader

.lr.ph81.preheader:                               ; preds = %.preheader73
  %23 = zext nneg i32 %22 to i64
  %xtraiter136 = and i64 %23, 3
  %24 = icmp ult i32 %22, 4
  br i1 %24, label %.loopexit.loopexit134.unr-lcssa, label %.lr.ph81.preheader.new

.lr.ph81.preheader.new:                           ; preds = %.lr.ph81.preheader
  %unroll_iter139 = and i64 %23, 2147483644
  br label %.lr.ph81

25:                                               ; preds = %.preheader75, %.preheader75
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %.not6482 = icmp slt i32 %26, 1
  br i1 %.not6482, label %.loopexit, label %.lr.ph84

.lr.ph84:                                         ; preds = %25, %.lr.ph84
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.lr.ph84 ], [ 1, %25 ]
  %27 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv107
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28) #5
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %.not64.not = icmp slt i64 %indvars.iv107, %30
  br i1 %.not64.not, label %.lr.ph84, label %.loopexit, !llvm.loop !15

.lr.ph81:                                         ; preds = %.lr.ph81, %.lr.ph81.preheader.new
  %indvars.iv102 = phi i64 [ 1, %.lr.ph81.preheader.new ], [ %indvars.iv.next103.3, %.lr.ph81 ]
  %niter140 = phi i64 [ 0, %.lr.ph81.preheader.new ], [ %niter140.next.3, %.lr.ph81 ]
  %31 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv102
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = sub nsw i32 0, %32
  store i32 %33, ptr %31, align 4, !tbaa !16
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %34 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next103
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = sub nsw i32 0, %35
  store i32 %36, ptr %34, align 4, !tbaa !16
  %indvars.iv.next103.1 = add nuw nsw i64 %indvars.iv102, 2
  %37 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next103.1
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = sub nsw i32 0, %38
  store i32 %39, ptr %37, align 4, !tbaa !16
  %indvars.iv.next103.2 = add nuw nsw i64 %indvars.iv102, 3
  %40 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv.next103.2
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %40, align 4, !tbaa !16
  %indvars.iv.next103.3 = add nuw nsw i64 %indvars.iv102, 4
  %niter140.next.3 = add i64 %niter140, 4
  %niter140.ncmp.3 = icmp eq i64 %niter140.next.3, %unroll_iter139
  br i1 %niter140.ncmp.3, label %.loopexit.loopexit134.unr-lcssa, label %.lr.ph81, !llvm.loop !17

.loopexit.loopexit134.unr-lcssa:                  ; preds = %.lr.ph81, %.lr.ph81.preheader
  %indvars.iv102.unr = phi i64 [ 1, %.lr.ph81.preheader ], [ %indvars.iv.next103.3, %.lr.ph81 ]
  %lcmp.mod138.not = icmp eq i64 %xtraiter136, 0
  br i1 %lcmp.mod138.not, label %.loopexit, label %.lr.ph81.epil

.lr.ph81.epil:                                    ; preds = %.loopexit.loopexit134.unr-lcssa, %.lr.ph81.epil
  %indvars.iv102.epil = phi i64 [ %indvars.iv.next103.epil, %.lr.ph81.epil ], [ %indvars.iv102.unr, %.loopexit.loopexit134.unr-lcssa ]
  %epil.iter137 = phi i64 [ %epil.iter137.next, %.lr.ph81.epil ], [ 0, %.loopexit.loopexit134.unr-lcssa ]
  %43 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv102.epil
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = sub nsw i32 0, %44
  store i32 %45, ptr %43, align 4, !tbaa !16
  %indvars.iv.next103.epil = add nuw nsw i64 %indvars.iv102.epil, 1
  %epil.iter137.next = add i64 %epil.iter137, 1
  %epil.iter137.cmp.not = icmp eq i64 %epil.iter137.next, %xtraiter136
  br i1 %epil.iter137.cmp.not, label %.loopexit, label %.lr.ph81.epil, !llvm.loop !18

.loopexit:                                        ; preds = %.loopexit.loopexit134.unr-lcssa, %.lr.ph81.epil, %.lr.ph84, %..loopexit_crit_edge, %.preheader73, %25
  %46 = phi i32 [ %.pre, %..loopexit_crit_edge ], [ %22, %.preheader73 ], [ %26, %25 ], [ %29, %.lr.ph84 ], [ %22, %.lr.ph81.epil ], [ %22, %.loopexit.loopexit134.unr-lcssa ]
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.point, ptr getelementptr inbounds (i8, ptr @p, i64 12), i64 %47
  call void @_ZSt4sortIP5pointEvT_S2_(ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 12), ptr noundef nonnull %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %.not6585 = icmp slt i32 %49, 1
  br i1 %.not6585, label %._crit_edge, label %.lr.ph87

._crit_edge:                                      ; preds = %58, %.loopexit
  %50 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %51 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %50, ptr %51)
          to label %63 unwind label %80

.lr.ph87:                                         ; preds = %.loopexit, %58
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %58 ], [ 1, %.loopexit ]
  %52 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv110
  %53 = getelementptr inbounds i8, ptr %52, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !19
  %55 = load i32, ptr %52, align 4, !tbaa !16
  %56 = sub nsw i32 %54, %55
  %57 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %indvars.iv110
  store i32 %56, ptr %57, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %57)
          to label %58 unwind label %61

58:                                               ; preds = %.lr.ph87
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %.not65.not = icmp slt i64 %indvars.iv110, %60
  br i1 %.not65.not, label %.lr.ph87, label %._crit_edge, !llvm.loop !20

61:                                               ; preds = %.lr.ph87
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %127

63:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %64 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %66 = invoke ptr @_ZSt6uniqueIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_S7_(ptr %64, ptr %65)
          to label %67 unwind label %82

67:                                               ; preds = %63
  store ptr %66, ptr %3, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %68 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %68, ptr %5, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %69 = load ptr, ptr %2, align 8
  %70 = load ptr, ptr %4, align 8
  %71 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr %69, ptr %70)
          to label %72 unwind label %84

72:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %73 = load i32, ptr @n, align 4, !tbaa !5
  %.not6788 = icmp slt i32 %73, 1
  br i1 %.not6788, label %._crit_edge97, label %.lr.ph91

.preheader72:                                     ; preds = %91
  %.not6892 = icmp slt i32 %96, 1
  br i1 %.not6892, label %._crit_edge97, label %.lr.ph94.preheader

.lr.ph94.preheader:                               ; preds = %.preheader72
  %74 = add nuw i32 %96, 1
  %wide.trip.count119 = zext i32 %74 to i64
  %75 = zext nneg i32 %96 to i64
  %min.iters.check = icmp ult i32 %96, 4
  br i1 %min.iters.check, label %.lr.ph94.preheader133, label %vector.ph

.lr.ph94.preheader133:                            ; preds = %middle.block, %.lr.ph94.preheader
  %indvars.iv116.ph = phi i64 [ 1, %.lr.ph94.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph94

vector.ph:                                        ; preds = %.lr.ph94.preheader
  %n.vec = and i64 %75, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %76 = or disjoint i64 %index, 3
  %77 = getelementptr inbounds [100010 x %struct.node], ptr @T, i64 0, i64 %offset.idx
  %78 = getelementptr inbounds [100010 x %struct.node], ptr @T, i64 0, i64 %76
  store <4 x i32> <i32 2147483647, i32 -1, i32 2147483647, i32 -1>, ptr %77, align 8, !tbaa !5
  store <4 x i32> <i32 2147483647, i32 -1, i32 2147483647, i32 -1>, ptr %78, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %79 = icmp eq i64 %index.next, %n.vec
  br i1 %79, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %75
  br i1 %cmp.n, label %.lr.ph96.preheader, label %.lr.ph94.preheader133

80:                                               ; preds = %._crit_edge
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %127

82:                                               ; preds = %63
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %86

84:                                               ; preds = %67
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %86

86:                                               ; preds = %84, %82
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %127

.lr.ph91:                                         ; preds = %72, %91
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %91 ], [ 1, %72 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %87 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %88 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %89 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %indvars.iv113
  %90 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %87, ptr %88, ptr noundef nonnull align 4 dereferenceable(4) %89)
          to label %91 unwind label %98

91:                                               ; preds = %.lr.ph91
  store ptr %90, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %92 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %92, ptr %7, align 8
  %93 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %94 = trunc i64 %93 to i32
  %95 = add i32 %94, 1
  store i32 %95, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %.not67.not = icmp slt i64 %indvars.iv113, %97
  br i1 %.not67.not, label %.lr.ph91, label %.preheader72, !llvm.loop !24

98:                                               ; preds = %.lr.ph91
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %127

.lr.ph96.preheader:                               ; preds = %.lr.ph94, %middle.block
  %100 = zext nneg i32 %96 to i64
  br label %.lr.ph96

.lr.ph94:                                         ; preds = %.lr.ph94.preheader133, %.lr.ph94
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph94 ], [ %indvars.iv116.ph, %.lr.ph94.preheader133 ]
  %101 = getelementptr inbounds [100010 x %struct.node], ptr @T, i64 0, i64 %indvars.iv116
  store i32 2147483647, ptr %101, align 8, !tbaa !25
  %102 = getelementptr inbounds i8, ptr %101, i64 4
  store i32 -1, ptr %102, align 4, !tbaa !27
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %.lr.ph96.preheader, label %.lr.ph94, !llvm.loop !28

._crit_edge97:                                    ; preds = %118, %72, %.preheader72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  %103 = add nuw nsw i32 %.05398, 1
  %exitcond124.not = icmp eq i32 %103, 5
  br i1 %exitcond124.not, label %21, label %.preheader75, !llvm.loop !29

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %118
  %indvars.iv121 = phi i64 [ %100, %.lr.ph96.preheader ], [ %indvars.iv.next122, %118 ]
  %104 = getelementptr inbounds [100010 x i32], ptr @_ZZ9manhattanvE1a, i64 0, i64 %indvars.iv121
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = call noundef i32 @_Z5queryi(i32 noundef %105)
  %.not69 = icmp eq i32 %106, -1
  br i1 %.not69, label %118, label %107

107:                                              ; preds = %.lr.ph96
  %108 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv121
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = sext i32 %106 to i64
  %112 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %111
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = call noundef i32 @_Z4distR5pointS0_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) %112)
  invoke void @_Z7addEdgeiii(i32 noundef %110, i32 noundef %114, i32 noundef %115)
          to label %118 unwind label %116

116:                                              ; preds = %107
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %127

118:                                              ; preds = %107, %.lr.ph96
  %119 = load i32, ptr %104, align 4, !tbaa !5
  %120 = getelementptr inbounds [100010 x %struct.point], ptr @p, i64 0, i64 %indvars.iv121
  %121 = load i32, ptr %120, align 4, !tbaa !16
  %122 = getelementptr inbounds i8, ptr %120, i64 4
  %123 = load i32, ptr %122, align 4, !tbaa !19
  %124 = add nsw i32 %123, %121
  %125 = trunc nuw nsw i64 %indvars.iv121 to i32
  call void @_Z6updateiii(i32 noundef %119, i32 noundef %124, i32 noundef %125)
  %indvars.iv.next122 = add nsw i64 %indvars.iv121, -1
  %126 = icmp sgt i64 %indvars.iv121, 1
  br i1 %126, label %.lr.ph96, label %._crit_edge97, !llvm.loop !30

127:                                              ; preds = %116, %98, %86, %80, %61
  %.pn70 = phi { ptr, i32 } [ %62, %61 ], [ %99, %98 ], [ %117, %116 ], [ %.pn, %86 ], [ %81, %80 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn70
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

; 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 uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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 = { 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 = { 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, !6, i64 8}
!10 = !{!"_ZTS5point", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!10, !6, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !12}
!19 = !{!10, !6, i64 4}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !14}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTS4node", !6, i64 0, !6, i64 4}
!27 = !{!26, !6, i64 4}
!28 = distinct !{!28, !14, !23, !22}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


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