; LLVM IR from vss2sn/cvrp :: src/local_search_intra.ll (ZN24LocalSearchIntraSolution5SolveEv)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.20" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.21" = type { ptr }
%class.anon = type { i8 }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }
%class.Solution = type { ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %struct.Node, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl" }
%"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vehicle, std::allocator<Vehicle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Node = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%struct.Vehicle = type { i32, i32, i32, double, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

declare noundef zeroext i1 @_ZNK8Solution18CheckSolutionValidEv(ptr noundef nonnull align 8 dereferenceable(104)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24LocalSearchIntraSolution5SolveEv(ptr noundef nonnull align 8 dereferenceable(104) %0) unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %35 = alloca double, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %class.anon, align 1
  %39 = alloca ptr, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %42 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %43 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %44 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 2
  store ptr %44, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %265, %1
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %55 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  store ptr %55, ptr %7, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %263, %54
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 -1, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 -1, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 1, ptr %11, align 8, !tbaa !13
  br label %58

58:                                               ; preds = %184, %57
  %59 = load i64, ptr %11, align 8, !tbaa !13
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Vehicle, ptr %60, i32 0, i32 4
  %62 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %63 = sub i64 %62, 1
  %64 = icmp ult i64 %59, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %58
  store i32 6, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %187

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Vehicle, ptr %67, i32 0, i32 4
  %69 = load i64, ptr %11, align 8, !tbaa !13
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #6
  %71 = load i32, ptr %70, align 4, !tbaa !11
  store i32 %71, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Vehicle, ptr %72, i32 0, i32 4
  %74 = load i64, ptr %11, align 8, !tbaa !13
  %75 = sub i64 %74, 1
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #6
  %77 = load i32, ptr %76, align 4, !tbaa !11
  store i32 %77, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Vehicle, ptr %78, i32 0, i32 4
  %80 = load i64, ptr %11, align 8, !tbaa !13
  %81 = add i64 %80, 1
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #6
  %83 = load i32, ptr %82, align 4, !tbaa !11
  store i32 %83, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %84 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %85 = load i32, ptr %13, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
  %88 = load i32, ptr %14, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #6
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %93 = load i32, ptr %13, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #6
  %96 = load i32, ptr %12, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #6
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = fsub double %91, %99
  %101 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %102 = load i32, ptr %12, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #6
  %105 = load i32, ptr %14, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %106) #6
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = fsub double %100, %108
  store double %109, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %110

110:                                              ; preds = %180, %66
  %111 = load i64, ptr %16, align 8, !tbaa !13
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Vehicle, ptr %112, i32 0, i32 4
  %114 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  %115 = sub i64 %114, 1
  %116 = icmp ult i64 %111, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %110
  store i32 9, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %183

118:                                              ; preds = %110
  %119 = load i64, ptr %16, align 8, !tbaa !13
  %120 = load i64, ptr %11, align 8, !tbaa !13
  %121 = icmp ne i64 %119, %120
  br i1 %121, label %122, label %179

122:                                              ; preds = %118
  %123 = load i64, ptr %16, align 8, !tbaa !13
  %124 = load i64, ptr %11, align 8, !tbaa !13
  %125 = sub i64 %124, 1
  %126 = icmp ne i64 %123, %125
  br i1 %126, label %127, label %179

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Vehicle, ptr %128, i32 0, i32 4
  %130 = load i64, ptr %16, align 8, !tbaa !13
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %130) #6
  %132 = load i32, ptr %131, align 4, !tbaa !11
  store i32 %132, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Vehicle, ptr %133, i32 0, i32 4
  %135 = load i64, ptr %16, align 8, !tbaa !13
  %136 = add i64 %135, 1
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #6
  %138 = load i32, ptr %137, align 4, !tbaa !11
  store i32 %138, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %139 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %140 = load i32, ptr %17, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141) #6
  %143 = load i32, ptr %12, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144) #6
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %148 = load i32, ptr %12, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #6
  %151 = load i32, ptr %18, align 4, !tbaa !11
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #6
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = fadd double %146, %154
  %156 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  %157 = load i32, ptr %17, align 4, !tbaa !11
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #6
  %160 = load i32, ptr %18, align 4, !tbaa !11
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #6
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = fsub double %155, %163
  store double %164, ptr %19, align 8, !tbaa !9
  %165 = load double, ptr %19, align 8, !tbaa !9
  %166 = load double, ptr %15, align 8, !tbaa !9
  %167 = fadd double %165, %166
  %168 = load double, ptr %8, align 8, !tbaa !9
  %169 = fcmp olt double %167, %168
  br i1 %169, label %170, label %178

170:                                              ; preds = %127
  %171 = load double, ptr %19, align 8, !tbaa !9
  %172 = load double, ptr %15, align 8, !tbaa !9
  %173 = fadd double %171, %172
  store double %173, ptr %8, align 8, !tbaa !9
  %174 = load i64, ptr %11, align 8, !tbaa !13
  %175 = trunc i64 %174 to i32
  store i32 %175, ptr %9, align 4, !tbaa !11
  %176 = load i64, ptr %16, align 8, !tbaa !13
  %177 = trunc i64 %176 to i32
  store i32 %177, ptr %10, align 4, !tbaa !11
  br label %178

178:                                              ; preds = %170, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %179

179:                                              ; preds = %178, %122, %118
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %16, align 8, !tbaa !13
  %182 = add i64 %181, 1
  store i64 %182, ptr %16, align 8, !tbaa !13
  br label %110, !llvm.loop !15

183:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %184

184:                                              ; preds = %183
  %185 = load i64, ptr %11, align 8, !tbaa !13
  %186 = add i64 %185, 1
  store i64 %186, ptr %11, align 8, !tbaa !13
  br label %58, !llvm.loop !17

187:                                              ; preds = %65
  %188 = load double, ptr %8, align 8, !tbaa !9
  %189 = fcmp ogt double %188, -1.000000e-05
  br i1 %189, label %190, label %191

190:                                              ; preds = %187
  store i32 5, ptr %6, align 4
  br label %261

191:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Vehicle, ptr %192, i32 0, i32 4
  %194 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %193) #6
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %22, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  %196 = load i32, ptr %9, align 4, !tbaa !11
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %22, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8
  %200 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %199, i64 noundef %197)
  %201 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %21, i32 0, i32 0
  store ptr %200, ptr %201, align 8
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %203 = load i32, ptr %202, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  store i32 %203, ptr %20, align 4, !tbaa !11
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.Vehicle, ptr %204, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.Vehicle, ptr %206, i32 0, i32 4
  %208 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #6
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %25, i32 0, i32 0
  store ptr %208, ptr %209, align 8
  %210 = load i32, ptr %9, align 4, !tbaa !11
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %25, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8
  %214 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %213, i64 noundef %211)
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %24, i32 0, i32 0
  store ptr %214, ptr %215, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  %216 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %23, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8
  %218 = call ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %205, ptr %217)
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %26, i32 0, i32 0
  store ptr %218, ptr %219, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %220 = load i32, ptr %9, align 4, !tbaa !11
  %221 = load i32, ptr %10, align 4, !tbaa !11
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %223, label %240

223:                                              ; preds = %191
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.Vehicle, ptr %224, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.Vehicle, ptr %226, i32 0, i32 4
  %228 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %227) #6
  %229 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %29, i32 0, i32 0
  store ptr %228, ptr %229, align 8
  %230 = load i32, ptr %10, align 4, !tbaa !11
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %29, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8
  %234 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %233, i64 noundef %231)
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %28, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %27, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  %238 = call ptr @_ZNSt6vectorIiSaIiEE6insertEN9__gnu_cxx17__normal_iteratorIPKiS1_EERS4_(ptr noundef nonnull align 8 dereferenceable(24) %225, ptr %237, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %239 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %30, i32 0, i32 0
  store ptr %238, ptr %239, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %258

240:                                              ; preds = %191
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.Vehicle, ptr %241, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.Vehicle, ptr %243, i32 0, i32 4
  %245 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %244) #6
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %33, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  %247 = load i32, ptr %10, align 4, !tbaa !11
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %33, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8
  %252 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %251, i64 noundef %249)
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %32, i32 0, i32 0
  store ptr %252, ptr %253, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.21", ptr %31, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  %256 = call ptr @_ZNSt6vectorIiSaIiEE6insertEN9__gnu_cxx17__normal_iteratorIPKiS1_EERS4_(ptr noundef nonnull align 8 dereferenceable(24) %242, ptr %255, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %257 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %34, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %258

258:                                              ; preds = %240, %223
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 3
  call void @_ZN7Vehicle13CalculateCostERKSt6vectorIS0_IdSaIdEESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %259, ptr noundef nonnull align 8 dereferenceable(24) %260)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  store i32 0, ptr %6, align 4
  br label %261

261:                                              ; preds = %258, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %262 = load i32, ptr %6, align 4
  switch i32 %262, label %313 [
    i32 0, label %263
    i32 5, label %264
  ]

263:                                              ; preds = %261
  br label %56, !llvm.loop !18

264:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %265

265:                                              ; preds = %264
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %51

267:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %268 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 2
  %269 = call ptr @_ZSt5beginISt6vectorI7VehicleSaIS1_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %268)
  %270 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %269, ptr %270, align 8
  %271 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 2
  %272 = call ptr @_ZSt3endISt6vectorI7VehicleSaIS1_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %271)
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  %274 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %275 = load ptr, ptr %274, align 8
  %276 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8
  %278 = call noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS2_SaIS2_EEEEdZN24LocalSearchIntraSolution5SolveEvE3$_0ET0_T_SB_SA_T1_"(ptr %275, ptr %277, double noundef 0.000000e+00)
  store double %278, ptr %35, align 8, !tbaa !9
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %280 = load double, ptr %35, align 8, !tbaa !9
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %279, double noundef %280)
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %281, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %283 = getelementptr inbounds %class.Solution, ptr %43, i32 0, i32 1
  store ptr %283, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %284 = load ptr, ptr %39, align 8, !tbaa !5
  %285 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %284) #6
  %286 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %40, i32 0, i32 0
  store ptr %285, ptr %286, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %287 = load ptr, ptr %39, align 8, !tbaa !5
  %288 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %287) #6
  %289 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.22", ptr %41, i32 0, i32 0
  store ptr %288, ptr %289, align 8
  br label %290

290:                                              ; preds = %306, %267
  %291 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  br i1 %291, label %293, label %292

292:                                              ; preds = %290
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %308

293:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %294 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  store ptr %294, ptr %42, align 8, !tbaa !5
  %295 = load ptr, ptr %42, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.Node, ptr %295, i32 0, i32 4
  %297 = load i8, ptr %296, align 4, !tbaa !19, !range !22, !noundef !23
  %298 = trunc i8 %297 to i1
  br i1 %298, label %305, label %299

299:                                              ; preds = %293
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %300, i8 noundef signext 10)
  %302 = load ptr, ptr %42, align 8, !tbaa !5
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4Node(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(17) %302)
  %304 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %303, i8 noundef signext 10)
  br label %305

305:                                              ; preds = %299, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %306

306:                                              ; preds = %305
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  br label %290

308:                                              ; preds = %292
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %310 = call noundef zeroext i1 @_ZNK8Solution18CheckSolutionValidEv(ptr noundef nonnull align 8 dereferenceable(104) %43)
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %309, i1 noundef zeroext %310)
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %311, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  ret void

313:                                              ; preds = %261
  unreachable
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr, i64 noundef) #1

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

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

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

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

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

declare void @_ZN7Vehicle13CalculateCostERKSt6vectorIS0_IdSaIdEESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS2_SaIS2_EEEEdZN24LocalSearchIntraSolution5SolveEvE3$_0ET0_T_SB_SA_T1_"(ptr, ptr, double noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4Node(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(17)) #0

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #2 align 2

attributes #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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{!20, !21, i64 16}
!20 = !{!"_ZTS4Node", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !21, i64 16}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.20" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.21" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

declare noundef zeroext i1 @_ZNK8Solution18CheckSolutionValidEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24LocalSearchIntraSolution5SolveEv(ptr noundef nonnull align 8 dereferenceable(104) %0) unnamed_addr #2 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.21", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.22", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %15 = tail call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %15, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %16 = tail call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %16, ptr %3, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %17, label %.lr.ph101, label %._crit_edge102

.lr.ph101:                                        ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  br label %29

._crit_edge102:                                   ; preds = %._crit_edge.thread, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %19 = call ptr @_ZSt5beginISt6vectorI7VehicleSaIS1_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %20 = call ptr @_ZSt3endISt6vectorI7VehicleSaIS1_EEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %21 = call noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS2_SaIS2_EEEEdZN24LocalSearchIntraSolution5SolveEvE3$_0ET0_T_SB_SA_T1_"(ptr %19, ptr %20, double noundef 0.000000e+00)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %22, double noundef %21)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %23, i8 noundef signext 10)
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %26 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  store ptr %26, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %27 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  store ptr %27, ptr %13, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %28, label %.lr.ph104, label %._crit_edge105

29:                                               ; preds = %.lr.ph101, %._crit_edge.thread
  %30 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %33 = add i64 %32, -3
  %34 = icmp ult i64 %33, -2
  br i1 %34, label %.lr.ph95, label %._crit_edge.thread

.loopexit:                                        ; preds = %88, %.lr.ph95
  %.176.lcssa = phi i32 [ %.07592, %.lr.ph95 ], [ %.378, %88 ]
  %.172.lcssa = phi i32 [ %.07193, %.lr.ph95 ], [ %.374, %88 ]
  %.1.lcssa = phi double [ %.07094, %.lr.ph95 ], [ %.3, %88 ]
  %35 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %36 = add i64 %35, -1
  %37 = icmp ult i64 %44, %36
  br i1 %37, label %.lr.ph95.backedge, label %._crit_edge

.lr.ph95.backedge:                                ; preds = %.loopexit, %116
  %.07094.be = phi double [ %.1.lcssa, %.loopexit ], [ 0.000000e+00, %116 ]
  %.07193.be = phi i32 [ %.172.lcssa, %.loopexit ], [ -1, %116 ]
  %.07592.be = phi i32 [ %.176.lcssa, %.loopexit ], [ -1, %116 ]
  %.07991.be = phi i64 [ %44, %.loopexit ], [ 1, %116 ]
  br label %.lr.ph95, !llvm.loop !5

._crit_edge:                                      ; preds = %.loopexit
  %38 = fcmp ogt double %.1.lcssa, -1.000000e-05
  br i1 %38, label %._crit_edge.thread, label %92

.lr.ph95:                                         ; preds = %29, %.lr.ph95.backedge
  %.07094 = phi double [ %.07094.be, %.lr.ph95.backedge ], [ 0.000000e+00, %29 ]
  %.07193 = phi i32 [ %.07193.be, %.lr.ph95.backedge ], [ -1, %29 ]
  %.07592 = phi i32 [ %.07592.be, %.lr.ph95.backedge ], [ -1, %29 ]
  %.07991 = phi i64 [ %.07991.be, %.lr.ph95.backedge ], [ 1, %29 ]
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.07991) #6
  %40 = load i32, ptr %39, align 4, !tbaa !7
  %41 = add i64 %.07991, -1
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %41) #6
  %43 = load i32, ptr %42, align 4, !tbaa !7
  %44 = add nuw i64 %.07991, 1
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %44) #6
  %46 = load i32, ptr %45, align 4, !tbaa !7
  %47 = sext i32 %43 to i64
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %47) #6
  %49 = sext i32 %46 to i64
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #6
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %47) #6
  %53 = sext i32 %40 to i64
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %53) #6
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = fsub double %51, %55
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %53) #6
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %49) #6
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = fsub double %56, %59
  %61 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %62 = add i64 %61, -3
  %63 = icmp ult i64 %62, -2
  br i1 %63, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph95
  %64 = trunc i64 %.07991 to i32
  br label %65

65:                                               ; preds = %.lr.ph, %88
  %.188 = phi double [ %.07094, %.lr.ph ], [ %.3, %88 ]
  %.17287 = phi i32 [ %.07193, %.lr.ph ], [ %.374, %88 ]
  %.17686 = phi i32 [ %.07592, %.lr.ph ], [ %.378, %88 ]
  %.08085 = phi i64 [ 1, %.lr.ph ], [ %.pre-phi, %88 ]
  %.not = icmp eq i64 %.08085, %.07991
  %.not82 = icmp eq i64 %.08085, %41
  %or.cond = or i1 %.not, %.not82
  br i1 %or.cond, label %._crit_edge106, label %66

._crit_edge106:                                   ; preds = %65
  %.pre = add nuw i64 %.08085, 1
  br label %88

66:                                               ; preds = %65
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.08085) #6
  %68 = load i32, ptr %67, align 4, !tbaa !7
  %69 = add nuw i64 %.08085, 1
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %69) #6
  %71 = load i32, ptr %70, align 4, !tbaa !7
  %72 = sext i32 %68 to i64
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %72) #6
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %53) #6
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %53) #6
  %77 = sext i32 %71 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #6
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fadd double %75, %79
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %72) #6
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %77) #6
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = fsub double %80, %83
  %85 = fadd double %60, %84
  %86 = fcmp olt double %85, %.188
  %87 = trunc i64 %.08085 to i32
  %.277 = select i1 %86, i32 %87, i32 %.17686
  %.273 = select i1 %86, i32 %64, i32 %.17287
  %.2 = select i1 %86, double %85, double %.188
  br label %88

88:                                               ; preds = %._crit_edge106, %66
  %.pre-phi = phi i64 [ %.pre, %._crit_edge106 ], [ %69, %66 ]
  %.378 = phi i32 [ %.17686, %._crit_edge106 ], [ %.277, %66 ]
  %.374 = phi i32 [ %.17287, %._crit_edge106 ], [ %.273, %66 ]
  %.3 = phi double [ %.188, %._crit_edge106 ], [ %.2, %66 ]
  %89 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %90 = add i64 %89, -1
  %91 = icmp ult i64 %.pre-phi, %90
  br i1 %91, label %65, label %.loopexit, !llvm.loop !13

92:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %93 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %94 = sext i32 %.172.lcssa to i64
  %95 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %93, i64 noundef %94)
  store ptr %95, ptr %5, align 8
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %97 = load i32, ptr %96, align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  store i32 %97, ptr %4, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %98 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %99 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %98, i64 noundef %94)
  store ptr %99, ptr %7, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %100 = load ptr, ptr %6, align 8
  %101 = call ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr %100)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %102 = icmp slt i32 %.172.lcssa, %.176.lcssa
  br i1 %102, label %103, label %109

103:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %104 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %105 = sext i32 %.176.lcssa to i64
  %106 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %104, i64 noundef %105)
  store ptr %106, ptr %9, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %107 = load ptr, ptr %8, align 8
  %108 = call ptr @_ZNSt6vectorIiSaIiEE6insertEN9__gnu_cxx17__normal_iteratorIPKiS1_EERS4_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr %107, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %116

109:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %110 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %111 = add nsw i32 %.176.lcssa, 1
  %112 = sext i32 %111 to i64
  %113 = call ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr %110, i64 noundef %112)
  store ptr %113, ptr %11, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %114 = load ptr, ptr %10, align 8
  %115 = call ptr @_ZNSt6vectorIiSaIiEE6insertEN9__gnu_cxx17__normal_iteratorIPKiS1_EERS4_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr %114, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %116

116:                                              ; preds = %103, %109
  call void @_ZN7Vehicle13CalculateCostERKSt6vectorIS0_IdSaIdEESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %117 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %118 = add i64 %117, -3
  %119 = icmp ult i64 %118, -2
  br i1 %119, label %.lr.ph95.backedge, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %._crit_edge, %116, %29
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %121, label %29, label %._crit_edge102

._crit_edge105:                                   ; preds = %135, %._crit_edge102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %123 = call noundef zeroext i1 @_ZNK8Solution18CheckSolutionValidEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) %122, i1 noundef zeroext %123)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %124, i8 noundef signext 10)
  ret void

.lr.ph104:                                        ; preds = %._crit_edge102, %135
  %126 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  %128 = load i8, ptr %127, align 4, !tbaa !14, !range !17, !noundef !18
  %129 = trunc nuw i8 %128 to i1
  br i1 %129, label %135, label %130

130:                                              ; preds = %.lr.ph104
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %131, i8 noundef signext 10)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4Node(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(17) %126)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %133, i8 noundef signext 10)
  br label %135

135:                                              ; preds = %130, %.lr.ph104
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %137 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %137, label %.lr.ph104, label %._crit_edge105
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4nextIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEET_S7_NSt15iterator_traitsIS7_E15difference_typeE(ptr, i64 noundef) local_unnamed_addr #1

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

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

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

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

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

declare void @_ZN7Vehicle13CalculateCostERKSt6vectorIS0_IdSaIdEESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @"_ZSt10accumulateIN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS2_SaIS2_EEEEdZN24LocalSearchIntraSolution5SolveEvE3$_0ET0_T_SB_SA_T1_"(ptr, ptr, double noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK4Node(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(17)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #2 align 2

attributes #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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = distinct !{!13, !6}
!14 = !{!15, !16, i64 16}
!15 = !{!"_ZTS4Node", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !16, i64 16}
!16 = !{!"bool", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


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