; LLVM IR from vss2sn/cvrp :: src/genetic_algorithm.ll (ZN10GASolution23GenerateGreedySolutionsEv)

; 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.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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.__gnu_cxx::__normal_iterator.25" = type { ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl.base", [3 x i8] }
%"struct.std::_Tuple_impl.base" = type { %"struct.std::_Tuple_impl.33", %"struct.std::_Head_base.34" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %struct.Node }
%struct.Node = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"struct.std::_Head_base.34" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.26" = type { ptr }
%"class.std::tuple.35" = type { %"struct.std::_Tuple_impl.36" }
%"struct.std::_Tuple_impl.36" = type { %"struct.std::_Tuple_impl.37", %"struct.std::_Head_base.39" }
%"struct.std::_Tuple_impl.37" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"struct.std::_Head_base.39" = 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.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.Vehicle = type { i32, i32, i32, double, %"class.std::vector.20" }
%class.GASolution = type <{ %class.Solution, i32, i32, i64, %"class.std::vector.10", i64, %"class.std::vector.15", %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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 @_ZN10GASolution9MakeValidEi(ptr noundef nonnull align 8 dereferenceable(204), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10GASolution23GenerateGreedySolutionsEv(ptr noundef nonnull align 8 dereferenceable(204) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.20", align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.20", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::tuple", align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.26", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.26", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %struct.Node, align 4
  %31 = alloca i8, align 1
  %32 = alloca i64, align 8
  %33 = alloca %"class.std::tuple", align 4
  %34 = alloca %"class.std::tuple.35", align 8
  %35 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #9
  %37 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 2
  invoke void @_ZNSt6vectorI7VehicleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %38 unwind label %49

38:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %39 unwind label %53

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr %4, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #9
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %10, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %11, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %169, %39
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %47, label %57, label %48

48:                                               ; preds = %46
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %171

49:                                               ; preds = %1
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %420

53:                                               ; preds = %38
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %419

57:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %58 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  store ptr %58, ptr %13, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %165, %57
  br label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %14, ptr noundef nonnull align 8 dereferenceable(104) %36, ptr noundef nonnull align 8 dereferenceable(48) %61)
          to label %62 unwind label %117

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21) %14) #9
  store ptr %63, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %64 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZSt3getILm1EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21) %14) #9
  store ptr %64, ptr %16, align 8, !tbaa !5
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load i8, ptr %65, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %125

68:                                               ; preds = %62
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Vehicle, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !15
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Node, ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 4, !tbaa !22
  %75 = sub nsw i32 %71, %74
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %77, label %125

77:                                               ; preds = %68
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Node, ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !22
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Vehicle, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !15
  %84 = sub nsw i32 %83, %80
  store i32 %84, ptr %82, align 4, !tbaa !15
  %85 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 3
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Vehicle, ptr %86, i32 0, i32 4
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %90) #9
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Node, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !24
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %95) #9
  %97 = load double, ptr %96, align 8, !tbaa !25
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Vehicle, ptr %98, i32 0, i32 3
  %100 = load double, ptr %99, align 8, !tbaa !26
  %101 = fadd double %100, %97
  store double %101, ptr %99, align 8, !tbaa !26
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Vehicle, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Node, ptr %104, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 4 dereferenceable(4) %105)
          to label %106 unwind label %121

106:                                              ; preds = %77
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Node, ptr %107, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %108)
          to label %109 unwind label %121

109:                                              ; preds = %106
  %110 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 1
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.Node, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 4, !tbaa !24
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %114) #9
  %116 = getelementptr inbounds %struct.Node, ptr %115, i32 0, i32 4
  store i8 1, ptr %116, align 4, !tbaa !27
  br label %162

117:                                              ; preds = %60
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  br label %167

121:                                              ; preds = %135, %106, %77
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %5, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %6, align 4
  br label %166

125:                                              ; preds = %68, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.Vehicle, ptr %129, i32 0, i32 4
  %131 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #9
  %132 = add i64 %128, %131
  %133 = sub i64 %132, 1
  %134 = trunc i64 %133 to i32
  store i32 %134, ptr %17, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %135 unwind label %158

135:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  %136 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 3
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Vehicle, ptr %137, i32 0, i32 4
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #9
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %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) %136, i64 noundef %141) #9
  %143 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 4
  %144 = getelementptr inbounds %struct.Node, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 8, !tbaa !28
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %146) #9
  %148 = load double, ptr %147, align 8, !tbaa !25
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Vehicle, ptr %149, i32 0, i32 3
  %151 = load double, ptr %150, align 8, !tbaa !26
  %152 = fadd double %151, %148
  store double %152, ptr %150, align 8, !tbaa !26
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.Vehicle, ptr %153, i32 0, i32 4
  %155 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 4
  %156 = getelementptr inbounds %struct.Node, ptr %155, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(4) %156)
          to label %157 unwind label %121

157:                                              ; preds = %135
  store i32 5, ptr %12, align 4
  br label %163

158:                                              ; preds = %125
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %5, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %166

162:                                              ; preds = %109
  store i32 0, ptr %12, align 4
  br label %163

163:                                              ; preds = %162, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  %164 = load i32, ptr %12, align 4
  switch i32 %164, label %426 [
    i32 0, label %165
    i32 5, label %168
  ]

165:                                              ; preds = %163
  br label %59, !llvm.loop !42

166:                                              ; preds = %158, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %167

167:                                              ; preds = %166, %117
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %419

168:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %169

169:                                              ; preds = %168
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %46

171:                                              ; preds = %48
  %172 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %173 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 3
  %174 = load i64, ptr %173, align 8, !tbaa !44
  %175 = icmp ne i64 %172, %174
  br i1 %175, label %176, label %183

176:                                              ; preds = %171
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %178 unwind label %179

178:                                              ; preds = %176
  call void @exit(i32 noundef 0) #10
  unreachable

179:                                              ; preds = %191, %187, %183, %176
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %5, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %6, align 4
  br label %419

183:                                              ; preds = %171
  %184 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 6
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef 0) #9
  %186 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %185, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %187 unwind label %179

187:                                              ; preds = %183
  %188 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 7
  %189 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef 0) #9
  %190 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %191 unwind label %179

191:                                              ; preds = %187
  %192 = invoke noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204) %36, i32 noundef 0)
          to label %193 unwind label %179

193:                                              ; preds = %191
  %194 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 4
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef 0) #9
  store double %192, ptr %195, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store double 2.000000e-01, ptr %18, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %413, %193
  %197 = load i32, ptr %19, align 4, !tbaa !9
  %198 = sitofp i32 %197 to double
  %199 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 1
  %200 = load i32, ptr %199, align 8, !tbaa !55
  %201 = sitofp i32 %200 to double
  %202 = fmul double 2.000000e-01, %201
  %203 = fcmp olt double %198, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %196
  store i32 6, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %418

205:                                              ; preds = %196
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %206 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 2
  %207 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7VehicleSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %206)
          to label %208 unwind label %220

208:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %209 unwind label %224

209:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %210 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 1
  store ptr %210, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %211) #9
  %213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.26", ptr %22, i32 0, i32 0
  store ptr %212, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %214) #9
  %216 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.26", ptr %23, i32 0, i32 0
  store ptr %215, ptr %216, align 8
  br label %217

217:                                              ; preds = %232, %209
  %218 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %218, label %228, label %219

219:                                              ; preds = %217
  store i32 9, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %234

220:                                              ; preds = %205
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %5, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %6, align 4
  br label %417

224:                                              ; preds = %208
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %5, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %417

228:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %229 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  store ptr %229, ptr %24, align 8, !tbaa !5
  %230 = load ptr, ptr %24, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.Node, ptr %230, i32 0, i32 4
  store i8 0, ptr %231, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %232

232:                                              ; preds = %228
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %217

234:                                              ; preds = %219
  %235 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 1
  %236 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 4
  %237 = getelementptr inbounds %struct.Node, ptr %236, i32 0, i32 2
  %238 = load i32, ptr %237, align 8, !tbaa !28
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %239) #9
  %241 = getelementptr inbounds %struct.Node, ptr %240, i32 0, i32 4
  store i8 1, ptr %241, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store ptr %4, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %242 = load ptr, ptr %26, align 8, !tbaa !5
  %243 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #9
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %27, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %245 = load ptr, ptr %26, align 8, !tbaa !5
  %246 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %245) #9
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %28, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  br label %248

248:                                              ; preds = %377, %234
  %249 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #9
  br i1 %249, label %251, label %250

250:                                              ; preds = %248
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %379

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %252 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  store ptr %252, ptr %29, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %373, %251
  br label %254

254:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 20, ptr %30) #9
  invoke void @_ZN4NodeC2Eiiiib(ptr noundef nonnull align 4 dereferenceable(17) %30, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i1 noundef zeroext true)
          to label %255 unwind label %271

255:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #9
  store i8 0, ptr %31, align 1, !tbaa !11
  %256 = load i32, ptr %25, align 4, !tbaa !9
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %258, label %275

258:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %259 = call i32 @rand() #9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 3
  %262 = load i64, ptr %261, align 8, !tbaa !44
  %263 = sub i64 %262, 1
  %264 = urem i64 %260, %263
  %265 = add i64 %264, 1
  store i64 %265, ptr %32, align 8, !tbaa !56
  %266 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 1
  %267 = load i64, ptr %32, align 8, !tbaa !56
  %268 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %267) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %268, i64 17, i1 false), !tbaa.struct !57
  %269 = load i32, ptr %25, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %283

271:                                              ; preds = %254
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %5, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %6, align 4
  br label %375

275:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  %276 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %33, ptr noundef nonnull align 8 dereferenceable(104) %36, ptr noundef nonnull align 8 dereferenceable(48) %276)
          to label %277 unwind label %279

277:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  call void @_ZSt3tieIJb4NodeEESt5tupleIJDpRT_EES4_(ptr dead_on_unwind writable sret(%"class.std::tuple.35") align 8 %34, ptr noundef nonnull align 1 dereferenceable(1) %31, ptr noundef nonnull align 4 dereferenceable(17) %30) #9
  %278 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRbR4NodeEEaSIbS1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOS_IJS6_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(21) %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  br label %283

279:                                              ; preds = %275
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %5, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  br label %374

283:                                              ; preds = %277, %258
  %284 = load i8, ptr %31, align 1, !tbaa !11, !range !13, !noundef !14
  %285 = trunc i8 %284 to i1
  br i1 %285, label %286, label %333

286:                                              ; preds = %283
  %287 = load ptr, ptr %29, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.Vehicle, ptr %287, i32 0, i32 1
  %289 = load i32, ptr %288, align 4, !tbaa !15
  %290 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 3
  %291 = load i32, ptr %290, align 4, !tbaa !22
  %292 = sub nsw i32 %289, %291
  %293 = icmp sge i32 %292, 0
  br i1 %293, label %294, label %333

294:                                              ; preds = %286
  %295 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 3
  %296 = load i32, ptr %295, align 4, !tbaa !22
  %297 = load ptr, ptr %29, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.Vehicle, ptr %297, i32 0, i32 1
  %299 = load i32, ptr %298, align 4, !tbaa !15
  %300 = sub nsw i32 %299, %296
  store i32 %300, ptr %298, align 4, !tbaa !15
  %301 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 3
  %302 = load ptr, ptr %29, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.Vehicle, ptr %302, i32 0, i32 4
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %303) #9
  %305 = load i32, ptr %304, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %301, i64 noundef %306) #9
  %308 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 2
  %309 = load i32, ptr %308, align 4, !tbaa !24
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %307, i64 noundef %310) #9
  %312 = load double, ptr %311, align 8, !tbaa !25
  %313 = load ptr, ptr %29, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.Vehicle, ptr %313, i32 0, i32 3
  %315 = load double, ptr %314, align 8, !tbaa !26
  %316 = fadd double %315, %312
  store double %316, ptr %314, align 8, !tbaa !26
  %317 = load ptr, ptr %29, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.Vehicle, ptr %317, i32 0, i32 4
  %319 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %318, ptr noundef nonnull align 4 dereferenceable(4) %319)
          to label %320 unwind label %329

320:                                              ; preds = %294
  %321 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %321)
          to label %322 unwind label %329

322:                                              ; preds = %320
  %323 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 1
  %324 = getelementptr inbounds %struct.Node, ptr %30, i32 0, i32 2
  %325 = load i32, ptr %324, align 4, !tbaa !24
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %323, i64 noundef %326) #9
  %328 = getelementptr inbounds %struct.Node, ptr %327, i32 0, i32 4
  store i8 1, ptr %328, align 4, !tbaa !27
  br label %370

329:                                              ; preds = %343, %320, %294
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %5, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %6, align 4
  br label %374

333:                                              ; preds = %286, %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %335 = load i32, ptr %334, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = load ptr, ptr %29, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.Vehicle, ptr %337, i32 0, i32 4
  %339 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %338) #9
  %340 = add i64 %336, %339
  %341 = sub i64 %340, 1
  %342 = trunc i64 %341 to i32
  store i32 %342, ptr %35, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %343 unwind label %366

343:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  %344 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 3
  %345 = load ptr, ptr %29, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.Vehicle, ptr %345, i32 0, i32 4
  %347 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %346) #9
  %348 = load i32, ptr %347, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %344, i64 noundef %349) #9
  %351 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 4
  %352 = getelementptr inbounds %struct.Node, ptr %351, i32 0, i32 2
  %353 = load i32, ptr %352, align 8, !tbaa !28
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %354) #9
  %356 = load double, ptr %355, align 8, !tbaa !25
  %357 = load ptr, ptr %29, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.Vehicle, ptr %357, i32 0, i32 3
  %359 = load double, ptr %358, align 8, !tbaa !26
  %360 = fadd double %359, %356
  store double %360, ptr %358, align 8, !tbaa !26
  %361 = load ptr, ptr %29, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.Vehicle, ptr %361, i32 0, i32 4
  %363 = getelementptr inbounds %class.Solution, ptr %36, i32 0, i32 4
  %364 = getelementptr inbounds %struct.Node, ptr %363, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %362, ptr noundef nonnull align 4 dereferenceable(4) %364)
          to label %365 unwind label %329

365:                                              ; preds = %343
  store i32 14, ptr %12, align 4
  br label %371

366:                                              ; preds = %333
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %5, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %374

370:                                              ; preds = %322
  store i32 0, ptr %12, align 4
  br label %371

371:                                              ; preds = %370, %365
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %30) #9
  %372 = load i32, ptr %12, align 4
  switch i32 %372, label %426 [
    i32 0, label %373
    i32 14, label %376
  ]

373:                                              ; preds = %371
  br label %253, !llvm.loop !58

374:                                              ; preds = %366, %329, %279
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #9
  br label %375

375:                                              ; preds = %374, %271
  call void @llvm.lifetime.end.p0(i64 20, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %416

376:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %377

377:                                              ; preds = %376
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  br label %248

379:                                              ; preds = %250
  %380 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 6
  %381 = load i32, ptr %19, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %380, i64 noundef %382) #9
  %384 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %383, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %385 unwind label %393

385:                                              ; preds = %379
  %386 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %387 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 3
  %388 = load i64, ptr %387, align 8, !tbaa !44
  %389 = icmp ne i64 %386, %388
  br i1 %389, label %390, label %397

390:                                              ; preds = %385
  %391 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %392 unwind label %393

392:                                              ; preds = %390
  call void @exit(i32 noundef 0) #10
  unreachable

393:                                              ; preds = %405, %403, %397, %390, %379
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %5, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %6, align 4
  br label %416

397:                                              ; preds = %385
  %398 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 7
  %399 = load i32, ptr %19, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %398, i64 noundef %400) #9
  %402 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %401, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %403 unwind label %393

403:                                              ; preds = %397
  %404 = load i32, ptr %19, align 4, !tbaa !9
  invoke void @_ZN10GASolution9MakeValidEi(ptr noundef nonnull align 8 dereferenceable(204) %36, i32 noundef %404)
          to label %405 unwind label %393

405:                                              ; preds = %403
  %406 = load i32, ptr %19, align 4, !tbaa !9
  %407 = invoke noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204) %36, i32 noundef %406)
          to label %408 unwind label %393

408:                                              ; preds = %405
  %409 = getelementptr inbounds %class.GASolution, ptr %36, i32 0, i32 4
  %410 = load i32, ptr %19, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %409, i64 noundef %411) #9
  store double %407, ptr %412, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %413

413:                                              ; preds = %408
  %414 = load i32, ptr %19, align 4, !tbaa !9
  %415 = add nsw i32 %414, 1
  store i32 %415, ptr %19, align 4, !tbaa !9
  br label %196, !llvm.loop !59

416:                                              ; preds = %393, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %417

417:                                              ; preds = %416, %224, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %419

418:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorI7VehicleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
  ret void

419:                                              ; preds = %417, %179, %167, %53
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @_ZNSt6vectorI7VehicleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %420

420:                                              ; preds = %419, %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
  br label %421

421:                                              ; preds = %420
  %422 = load ptr, ptr %5, align 8
  %423 = load i32, ptr %6, align 4
  %424 = insertvalue { ptr, i32 } poison, ptr %422, 0
  %425 = insertvalue { ptr, i32 } %424, i32 %423, 1
  resume { ptr, i32 } %425

426:                                              ; preds = %371, %163
  unreachable
}

; 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 ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

; Function Attrs: nounwind
declare i32 @rand() #6

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

declare void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(48)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(17) ptr @_ZSt3getILm1EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21)) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4NodeC2Eiiiib(ptr noundef nonnull align 4 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJb4NodeEESt5tupleIJDpRT_EES4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.35") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(17)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRbR4NodeEEaSIbS1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOS_IJS6_S7_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(21)) #1 align 2

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

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "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 #7 = { "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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 4}
!16 = !{!"_ZTS7Vehicle", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 16, !18, i64 24}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !10, i64 12}
!23 = !{!"_ZTS4Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !12, i64 16}
!24 = !{!23, !10, i64 8}
!25 = !{!17, !17, i64 0}
!26 = !{!16, !17, i64 16}
!27 = !{!23, !12, i64 16}
!28 = !{!29, !10, i64 88}
!29 = !{!"_ZTS8Solution", !30, i64 8, !34, i64 32, !38, i64 56, !23, i64 80, !10, i64 100}
!30 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorI7VehicleSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseI7VehicleSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = !{!45, !46, i64 112}
!45 = !{!"_ZTS10GASolution", !29, i64 0, !10, i64 104, !10, i64 108, !46, i64 112, !47, i64 120, !46, i64 144, !51, i64 152, !51, i64 176, !10, i64 200}
!46 = !{!"long", !7, i64 0}
!47 = !{!"_ZTSSt6vectorIdSaIdEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!45, !10, i64 104}
!56 = !{!46, !46, i64 0}
!57 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 1, !11}
!58 = distinct !{!58, !43}
!59 = distinct !{!59, !43}


; 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.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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.__gnu_cxx::__normal_iterator.25" = type { ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl.base", [3 x i8] }
%"struct.std::_Tuple_impl.base" = type { %"struct.std::_Tuple_impl.33", %"struct.std::_Head_base.34" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %struct.Node }
%struct.Node = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"struct.std::_Head_base.34" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.26" = type { ptr }
%"class.std::tuple.35" = type { %"struct.std::_Tuple_impl.36" }
%"struct.std::_Tuple_impl.36" = type { %"struct.std::_Tuple_impl.37", %"struct.std::_Head_base.39" }
%"struct.std::_Tuple_impl.37" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"struct.std::_Head_base.39" = type { ptr }

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

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 @_ZN10GASolution9MakeValidEi(ptr noundef nonnull align 8 dereferenceable(204), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10GASolution23GenerateGreedySolutionsEv(ptr noundef nonnull align 8 dereferenceable(204) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.20", align 8
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::vector.20", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %8 = alloca %"class.std::tuple", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.26", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.26", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %15 = alloca %struct.Node, align 4
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::tuple", align 4
  %18 = alloca %"class.std::tuple.35", align 8
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZNSt6vectorI7VehicleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %21 unwind label %32

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %22 unwind label %34

22:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %23 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %23, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %24 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %24, ptr %7, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  br label %36

._crit_edge:                                      ; preds = %94, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %29 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %.not = icmp eq i64 %29, %31
  br i1 %.not, label %102, label %97

32:                                               ; preds = %1
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %257

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %256

36:                                               ; preds = %.lr.ph, %94
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  %39 = getelementptr inbounds i8, ptr %37, i64 24
  %40 = getelementptr inbounds i8, ptr %37, i64 16
  br label %41

41:                                               ; preds = %88, %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  invoke void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %8, ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %42 unwind label %66

42:                                               ; preds = %41
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21) %8) #9
  %44 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZSt3getILm1EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21) %8) #9
  %45 = load i8, ptr %43, align 1, !tbaa !36, !range !37, !noundef !38
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %68

47:                                               ; preds = %42
  %48 = load i32, ptr %38, align 4, !tbaa !39
  %49 = getelementptr inbounds i8, ptr %44, i64 12
  %50 = load i32, ptr %49, align 4, !tbaa !46
  %51 = sub nsw i32 %48, %50
  %52 = icmp sgt i32 %51, -1
  br i1 %52, label %53, label %68

53:                                               ; preds = %47
  store i32 %51, ptr %38, align 4, !tbaa !39
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %56) #9
  %58 = getelementptr inbounds i8, ptr %44, i64 8
  %59 = load i32, ptr %58, align 4, !tbaa !47
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %60) #9
  %62 = load double, ptr %61, align 8, !tbaa !48
  %63 = load double, ptr %40, align 8, !tbaa !49
  %64 = fadd double %62, %63
  store double %64, ptr %40, align 8, !tbaa !49
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 4 dereferenceable(4) %58)
          to label %65 unwind label %.loopexit84

65:                                               ; preds = %53
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %58)
          to label %88 unwind label %.loopexit84

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

.loopexit84:                                      ; preds = %53, %65
  %lpad.loopexit86 = landingpad { ptr, i32 }
          cleanup
  br label %93

.loopexit.split-lp85:                             ; preds = %75
  %lpad.loopexit.split-lp87 = landingpad { ptr, i32 }
          cleanup
  br label %93

68:                                               ; preds = %47, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  %72 = trunc i64 %71 to i32
  %73 = add i32 %70, -1
  %74 = add i32 %73, %72
  store i32 %74, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %75 unwind label %86

75:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %78) #9
  %80 = load i32, ptr %28, align 8, !tbaa !50
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #9
  %83 = load double, ptr %82, align 8, !tbaa !48
  %84 = load double, ptr %40, align 8, !tbaa !49
  %85 = fadd double %83, %84
  store double %85, ptr %40, align 8, !tbaa !49
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %94 unwind label %.loopexit.split-lp85

86:                                               ; preds = %68
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  br label %93

88:                                               ; preds = %65
  %89 = load i32, ptr %58, align 4, !tbaa !47
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %90) #9
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  store i8 1, ptr %92, align 4, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  br label %41

93:                                               ; preds = %.loopexit84, %.loopexit.split-lp85, %86, %66
  %.pn67.pn = phi { ptr, i32 } [ %67, %66 ], [ %87, %86 ], [ %lpad.loopexit86, %.loopexit84 ], [ %lpad.loopexit.split-lp87, %.loopexit.split-lp85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %256

94:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %96, label %36, label %._crit_edge

97:                                               ; preds = %._crit_edge
  %98 = invoke 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)
          to label %99 unwind label %100

99:                                               ; preds = %97
  call void @exit(i32 noundef 0) #10
  unreachable

100:                                              ; preds = %106, %102, %97
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %256

102:                                              ; preds = %._crit_edge
  %103 = getelementptr inbounds i8, ptr %0, i64 152
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef 0) #9
  %105 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %106 unwind label %100

106:                                              ; preds = %102
  %107 = getelementptr inbounds i8, ptr %0, i64 176
  %108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef 0) #9
  %109 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %110 unwind label %100

110:                                              ; preds = %106
  %111 = call noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef 0)
  %112 = getelementptr inbounds i8, ptr %0, i64 120
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef 0) #9
  store double %111, ptr %113, align 8, !tbaa !48
  %114 = getelementptr inbounds i8, ptr %0, i64 104
  %115 = load i32, ptr %114, align 8, !tbaa !52
  %116 = sitofp i32 %115 to double
  %117 = fmul double %116, 2.000000e-01
  %118 = fcmp ogt double %117, 1.000000e+00
  br i1 %118, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %110
  %119 = getelementptr inbounds i8, ptr %0, i64 8
  %120 = getelementptr inbounds i8, ptr %0, i64 88
  %121 = getelementptr inbounds i8, ptr %15, i64 12
  %122 = getelementptr inbounds i8, ptr %0, i64 56
  %123 = getelementptr inbounds i8, ptr %15, i64 8
  br label %124

._crit_edge99:                                    ; preds = %246, %110
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorI7VehicleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  ret void

124:                                              ; preds = %.lr.ph98, %246
  %indvars.iv = phi i64 [ 1, %.lr.ph98 ], [ %indvars.iv.next, %246 ]
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %125 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7VehicleSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %126 unwind label %138

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 0, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %127 unwind label %140

127:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %128 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #9
  store ptr %128, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %129 = call ptr @_ZNSt6vectorI4NodeSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #9
  store ptr %129, ptr %12, align 8
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %130, label %.lr.ph90, label %._crit_edge91

._crit_edge91:                                    ; preds = %.lr.ph90, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %131 = load i32, ptr %120, align 8, !tbaa !50
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %132) #9
  %134 = getelementptr inbounds i8, ptr %133, i64 16
  store i8 1, ptr %134, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %135 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %135, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %136 = call ptr @_ZNSt6vectorI7VehicleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %136, ptr %14, align 8
  %137 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %137, label %.lr.ph94, label %._crit_edge95

138:                                              ; preds = %124
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %256

140:                                              ; preds = %126
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %256

.lr.ph90:                                         ; preds = %127, %.lr.ph90
  %142 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  store i8 0, ptr %143, align 4, !tbaa !51
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP4NodeSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %145 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP4NodeSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br i1 %145, label %.lr.ph90, label %._crit_edge91

._crit_edge95:                                    ; preds = %234, %._crit_edge91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %indvars.iv) #9
  %147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %237 unwind label %.loopexit79

.lr.ph94:                                         ; preds = %._crit_edge91, %234
  %148 = phi i1 [ false, %234 ], [ true, %._crit_edge91 ]
  %149 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %150 = getelementptr inbounds i8, ptr %149, i64 4
  %151 = getelementptr inbounds i8, ptr %149, i64 24
  %152 = getelementptr inbounds i8, ptr %149, i64 16
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %15) #9
  call void @_ZN4NodeC2Eiiiib(ptr noundef nonnull align 4 dereferenceable(17) %15, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  store i8 0, ptr %16, align 1, !tbaa !36
  br i1 %148, label %156, label %153

153:                                              ; preds = %.lr.ph94
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  invoke void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %17, ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(48) %149)
          to label %154 unwind label %.loopexit.split-lp102

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @_ZSt3tieIJb4NodeEESt5tupleIJDpRT_EES4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.35") align 8 %18, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 4 dereferenceable(17) %15) #9
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRbR4NodeEEaSIbS1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOS_IJS6_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(21) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %164

156:                                              ; preds = %.lr.ph94
  %157 = call i32 @rand() #9
  %158 = sext i32 %157 to i64
  %159 = load i64, ptr %30, align 8, !tbaa !9
  %160 = add i64 %159, -1
  %161 = urem i64 %158, %160
  %162 = add nuw i64 %161, 1
  %163 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %162) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(17) %15, ptr noundef nonnull align 4 dereferenceable(17) %163, i64 17, i1 false), !tbaa.struct !53
  br label %164

164:                                              ; preds = %156, %154
  %165 = load i8, ptr %16, align 1, !tbaa !36, !range !37, !noundef !38
  %166 = trunc nuw i8 %165 to i1
  br i1 %166, label %167, label %.loopexit105

167:                                              ; preds = %164
  %168 = load i32, ptr %150, align 4, !tbaa !39
  %169 = load i32, ptr %121, align 4, !tbaa !46
  %170 = sub nsw i32 %168, %169
  %171 = icmp sgt i32 %170, -1
  br i1 %171, label %172, label %.loopexit105

172:                                              ; preds = %167
  store i32 %170, ptr %150, align 4, !tbaa !39
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %175) #9
  %177 = load i32, ptr %123, align 4, !tbaa !47
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #9
  %180 = load double, ptr %179, align 8, !tbaa !48
  %181 = load double, ptr %152, align 8, !tbaa !49
  %182 = fadd double %180, %181
  store double %182, ptr %152, align 8, !tbaa !49
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %183 unwind label %.loopexit.loopexit.split-lp

183:                                              ; preds = %172
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %.peel.next unwind label %.loopexit.loopexit.split-lp

.peel.next:                                       ; preds = %183
  %184 = load i32, ptr %123, align 4, !tbaa !47
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %185) #9
  %187 = getelementptr inbounds i8, ptr %186, i64 16
  store i8 1, ptr %187, align 4, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %15) #9
  br label %188

188:                                              ; preds = %.peel.next, %229
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %15) #9
  call void @_ZN4NodeC2Eiiiib(ptr noundef nonnull align 4 dereferenceable(17) %15, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  store i8 0, ptr %16, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  invoke void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %17, ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(48) %149)
          to label %190 unwind label %.loopexit101

.loopexit101:                                     ; preds = %188
  %lpad.loopexit103 = landingpad { ptr, i32 }
          cleanup
  br label %189

.loopexit.split-lp102:                            ; preds = %153
  %lpad.loopexit.split-lp104 = landingpad { ptr, i32 }
          cleanup
  br label %189

189:                                              ; preds = %.loopexit.split-lp102, %.loopexit101
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit103, %.loopexit101 ], [ %lpad.loopexit.split-lp104, %.loopexit.split-lp102 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %.loopexit

190:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @_ZSt3tieIJb4NodeEESt5tupleIJDpRT_EES4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.35") align 8 %18, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 4 dereferenceable(17) %15) #9
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRbR4NodeEEaSIbS1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOS_IJS6_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(21) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  %.pre = load i8, ptr %16, align 1, !tbaa !36, !range !37
  %192 = trunc nuw i8 %.pre to i1
  br i1 %192, label %193, label %.loopexit105

193:                                              ; preds = %190
  %194 = load i32, ptr %150, align 4, !tbaa !39
  %195 = load i32, ptr %121, align 4, !tbaa !46
  %196 = sub nsw i32 %194, %195
  %197 = icmp sgt i32 %196, -1
  br i1 %197, label %198, label %.loopexit105

198:                                              ; preds = %193
  store i32 %196, ptr %150, align 4, !tbaa !39
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %201) #9
  %203 = load i32, ptr %123, align 4, !tbaa !47
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #9
  %206 = load double, ptr %205, align 8, !tbaa !48
  %207 = load double, ptr %152, align 8, !tbaa !49
  %208 = fadd double %206, %207
  store double %208, ptr %152, align 8, !tbaa !49
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %209 unwind label %.loopexit.loopexit

209:                                              ; preds = %198
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %229 unwind label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %209, %198
  %lpad.loopexit106 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit.split-lp:                      ; preds = %172, %183
  %lpad.loopexit.split-lp107 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

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

.loopexit105:                                     ; preds = %193, %190, %167, %164
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %213 = trunc i64 %212 to i32
  %214 = add i32 %211, -1
  %215 = add i32 %214, %213
  store i32 %215, ptr %19, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %216 unwind label %227

216:                                              ; preds = %.loopexit105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #9
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %219) #9
  %221 = load i32, ptr %120, align 8, !tbaa !50
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %222) #9
  %224 = load double, ptr %223, align 8, !tbaa !48
  %225 = load double, ptr %152, align 8, !tbaa !49
  %226 = fadd double %224, %225
  store double %226, ptr %152, align 8, !tbaa !49
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %120)
          to label %234 unwind label %.loopexit.split-lp

227:                                              ; preds = %.loopexit105
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  br label %.loopexit

229:                                              ; preds = %209
  %230 = load i32, ptr %123, align 4, !tbaa !47
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %231) #9
  %233 = getelementptr inbounds i8, ptr %232, i64 16
  store i8 1, ptr %233, align 4, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %15) #9
  br label %188, !llvm.loop !54

.loopexit:                                        ; preds = %.loopexit.loopexit, %.loopexit.loopexit.split-lp, %.loopexit.split-lp, %227, %189
  %.pn = phi { ptr, i32 } [ %228, %227 ], [ %lpad.phi, %189 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit106, %.loopexit.loopexit ], [ %lpad.loopexit.split-lp107, %.loopexit.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %256

234:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %15) #9
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP7VehicleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %236 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP7VehicleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %236, label %.lr.ph94, label %._crit_edge95

237:                                              ; preds = %._crit_edge95
  %238 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %239 = load i64, ptr %30, align 8, !tbaa !9
  %.not63 = icmp eq i64 %238, %239
  br i1 %.not63, label %243, label %240

240:                                              ; preds = %237
  %241 = invoke 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)
          to label %242 unwind label %.loopexit.split-lp80

242:                                              ; preds = %240
  call void @exit(i32 noundef 0) #10
  unreachable

.loopexit79:                                      ; preds = %._crit_edge95, %243
  %lpad.loopexit81 = landingpad { ptr, i32 }
          cleanup
  br label %256

.loopexit.split-lp80:                             ; preds = %240
  %lpad.loopexit.split-lp82 = landingpad { ptr, i32 }
          cleanup
  br label %256

243:                                              ; preds = %237
  %244 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %indvars.iv) #9
  %245 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %244, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %246 unwind label %.loopexit79

246:                                              ; preds = %243
  %247 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_ZN10GASolution9MakeValidEi(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef %247)
  %248 = call noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204) %0, i32 noundef %247)
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %indvars.iv) #9
  store double %248, ptr %249, align 8, !tbaa !48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %250 = trunc nuw i64 %indvars.iv.next to i32
  %251 = uitofp nneg i32 %250 to double
  %252 = load i32, ptr %114, align 8, !tbaa !52
  %253 = sitofp i32 %252 to double
  %254 = fmul double %253, 2.000000e-01
  %255 = fcmp ogt double %254, %251
  br i1 %255, label %124, label %._crit_edge99, !llvm.loop !56

256:                                              ; preds = %.loopexit79, %.loopexit.split-lp80, %138, %140, %.loopexit, %100, %93, %34
  %.pn67.pn.pn = phi { ptr, i32 } [ %.pn67.pn, %93 ], [ %101, %100 ], [ %35, %34 ], [ %141, %140 ], [ %139, %138 ], [ %.pn, %.loopexit ], [ %lpad.loopexit81, %.loopexit79 ], [ %lpad.loopexit.split-lp82, %.loopexit.split-lp80 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZNSt6vectorI7VehicleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  br label %257

257:                                              ; preds = %256, %32
  %.pn67.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn, %256 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn67.pn.pn.pn
}

; 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 ptr @_ZNSt6vectorI7VehicleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_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 #3

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_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 #3

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #6

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

declare void @_ZNK8Solution12find_closestERK7Vehicle(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(17) ptr @_ZSt3getILm1EJb4NodeEEOKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOKS5_(ptr noundef nonnull align 4 dereferenceable(21)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10GASolution13CalculateCostEi(ptr noundef nonnull align 8 dereferenceable(204), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4NodeC2Eiiiib(ptr noundef nonnull align 4 dereferenceable(17), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJb4NodeEESt5tupleIJDpRT_EES4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.35") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(17)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRbR4NodeEEaSIbS1_EENSt9enable_ifIXcl12__assignableIT_T0_EEERS3_E4typeEOS_IJS6_S7_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(21)) local_unnamed_addr #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !27, i64 112}
!10 = !{!"_ZTS10GASolution", !11, i64 0, !6, i64 104, !6, i64 108, !27, i64 112, !28, i64 120, !27, i64 144, !32, i64 152, !32, i64 176, !6, i64 200}
!11 = !{!"_ZTS8Solution", !12, i64 8, !17, i64 32, !21, i64 56, !25, i64 80, !6, i64 100}
!12 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorI7VehicleSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI7VehicleSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI7VehicleSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!25 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !26, i64 16}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIdSaIdEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!32 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!36 = !{!26, !26, i64 0}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !6, i64 4}
!40 = !{!"_ZTS7Vehicle", !6, i64 0, !6, i64 4, !6, i64 8, !41, i64 16, !42, i64 24}
!41 = !{!"double", !7, i64 0}
!42 = !{!"_ZTSSt6vectorIiSaIiEE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!46 = !{!25, !6, i64 12}
!47 = !{!25, !6, i64 8}
!48 = !{!41, !41, i64 0}
!49 = !{!40, !41, i64 16}
!50 = !{!11, !6, i64 88}
!51 = !{!25, !26, i64 16}
!52 = !{!10, !6, i64 104}
!53 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 1, !36}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.peeled.count", i32 1}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass