; LLVM IR from Rintarooo/VRPTW_ACO_Routing :: src/graph.ll (ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii)

; 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.Graph = type { ptr, i32, i32, ptr, ptr, ptr }
%class.Car = type { i32, i32, i32, i32, i32, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.Node = type { i32, i32, i32, i32, i8, i32, i32, i32 }

@_ZTV5Graph = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV5Graph, i32 0, i32 0, i32 2), ptr %14, align 8, !tbaa !11
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 1
  store i32 %15, ptr %16, align 8, !tbaa !13
  %17 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %18 = trunc i64 %17 to i32
  %19 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  store i32 %18, ptr %19, align 4, !tbaa !15
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %23)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @.str.2)
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %26)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @.str.3)
  %29 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef %30)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %33 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %34 = load i32, ptr %33, align 4, !tbaa !15
  %35 = sext i32 %34 to i64
  %36 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %35, i64 32)
  %37 = extractvalue { i64, i1 } %36, 1
  %38 = extractvalue { i64, i1 } %36, 0
  %39 = select i1 %37, i64 -1, i64 %38
  %40 = call noalias noundef nonnull ptr @_Znam(i64 noundef %39) #9
  %41 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  store ptr %40, ptr %41, align 8, !tbaa !16
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 48)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = or i1 %45, %48
  %50 = extractvalue { i64, i1 } %47, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #9
  store i64 %43, ptr %52, align 16
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = icmp eq i64 %43, 0
  br i1 %54, label %61, label %55

55:                                               ; preds = %4
  %56 = getelementptr inbounds %class.Car, ptr %53, i64 %43
  br label %57

57:                                               ; preds = %57, %55
  %58 = phi ptr [ %53, %55 ], [ %59, %57 ]
  call void @_ZN3CarC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %58) #8
  %59 = getelementptr inbounds %class.Car, ptr %58, i64 1
  %60 = icmp eq ptr %59, %56
  br i1 %60, label %61, label %57

61:                                               ; preds = %57, %4
  %62 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  store ptr %53, ptr %62, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %162, %61
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %165

69:                                               ; preds = %63
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %71) #8
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 0) #8
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %class.Node, ptr %76, i64 %78
  %80 = getelementptr inbounds %class.Node, ptr %79, i32 0, i32 2
  store i32 %74, ptr %80, align 4, !tbaa !18
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %82) #8
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 1) #8
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %class.Node, ptr %87, i64 %89
  %91 = getelementptr inbounds %class.Node, ptr %90, i32 0, i32 0
  store i32 %85, ptr %91, align 4, !tbaa !21
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %93) #8
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef 2) #8
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %class.Node, ptr %98, i64 %100
  %102 = getelementptr inbounds %class.Node, ptr %101, i32 0, i32 1
  store i32 %96, ptr %102, align 4, !tbaa !22
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %104) #8
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef 3) #8
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %class.Node, ptr %109, i64 %111
  %113 = getelementptr inbounds %class.Node, ptr %112, i32 0, i32 3
  store i32 %107, ptr %113, align 4, !tbaa !23
  %114 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %class.Node, ptr %115, i64 %117
  %119 = getelementptr inbounds %class.Node, ptr %118, i32 0, i32 4
  store i8 0, ptr %119, align 4, !tbaa !24
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %121) #8
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef 4) #8
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %class.Node, ptr %126, i64 %128
  %130 = getelementptr inbounds %class.Node, ptr %129, i32 0, i32 5
  store i32 %124, ptr %130, align 4, !tbaa !25
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %132) #8
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef 5) #8
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %class.Node, ptr %137, i64 %139
  %141 = getelementptr inbounds %class.Node, ptr %140, i32 0, i32 6
  store i32 %135, ptr %141, align 4, !tbaa !26
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %143) #8
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef 5) #8
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %148) #8
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef 4) #8
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = sub nsw i32 %146, %151
  %153 = sitofp i32 %152 to double
  %154 = fmul double 2.000000e-01, %153
  %155 = fptosi double %154 to i32
  %156 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !16
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %class.Node, ptr %157, i64 %159
  %161 = getelementptr inbounds %class.Node, ptr %160, i32 0, i32 7
  store i32 %155, ptr %161, align 4, !tbaa !27
  br label %162

162:                                              ; preds = %69
  %163 = load i32, ptr %9, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %9, align 4, !tbaa !9
  br label %63, !llvm.loop !28

165:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %203, %165
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = load i32, ptr %8, align 4, !tbaa !9
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %206

171:                                              ; preds = %166
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !17
  %175 = load i32, ptr %10, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %class.Car, ptr %174, i64 %176
  %178 = getelementptr inbounds %class.Car, ptr %177, i32 0, i32 0
  store i32 %172, ptr %178, align 8, !tbaa !30
  %179 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  %180 = load ptr, ptr %179, align 8, !tbaa !17
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %class.Car, ptr %180, i64 %182
  %184 = getelementptr inbounds %class.Car, ptr %183, i32 0, i32 1
  store i32 0, ptr %184, align 4, !tbaa !36
  %185 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  %186 = load ptr, ptr %185, align 8, !tbaa !17
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %class.Car, ptr %186, i64 %188
  %190 = getelementptr inbounds %class.Car, ptr %189, i32 0, i32 2
  store i32 0, ptr %190, align 8, !tbaa !37
  %191 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  %192 = load ptr, ptr %191, align 8, !tbaa !17
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %class.Car, ptr %192, i64 %194
  %196 = getelementptr inbounds %class.Car, ptr %195, i32 0, i32 3
  store i32 10, ptr %196, align 4, !tbaa !38
  %197 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 3
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds %class.Car, ptr %198, i64 %200
  %202 = getelementptr inbounds %class.Car, ptr %201, i32 0, i32 4
  store i32 0, ptr %202, align 8, !tbaa !39
  br label %203

203:                                              ; preds = %171
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %10, align 4, !tbaa !9
  br label %166, !llvm.loop !40

206:                                              ; preds = %170
  %207 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %208 = load i32, ptr %207, align 4, !tbaa !15
  %209 = sext i32 %208 to i64
  %210 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %209, i64 8)
  %211 = extractvalue { i64, i1 } %210, 1
  %212 = extractvalue { i64, i1 } %210, 0
  %213 = select i1 %211, i64 -1, i64 %212
  %214 = call noalias noundef nonnull ptr @_Znam(i64 noundef %213) #9
  %215 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 5
  store ptr %214, ptr %215, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %256, %206
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %219 = load i32, ptr %218, align 4, !tbaa !15
  %220 = icmp slt i32 %217, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %216
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %259

222:                                              ; preds = %216
  %223 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %224 = load i32, ptr %223, align 4, !tbaa !15
  %225 = sext i32 %224 to i64
  %226 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %225, i64 8)
  %227 = extractvalue { i64, i1 } %226, 1
  %228 = extractvalue { i64, i1 } %226, 0
  %229 = select i1 %227, i64 -1, i64 %228
  %230 = call noalias noundef nonnull ptr @_Znam(i64 noundef %229) #9
  %231 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 5
  %232 = load ptr, ptr %231, align 8, !tbaa !41
  %233 = load i32, ptr %11, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds ptr, ptr %232, i64 %234
  store ptr %230, ptr %235, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %252, %222
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 2
  %239 = load i32, ptr %238, align 4, !tbaa !15
  %240 = icmp slt i32 %237, %239
  br i1 %240, label %242, label %241

241:                                              ; preds = %236
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %255

242:                                              ; preds = %236
  %243 = getelementptr inbounds %class.Graph, ptr %14, i32 0, i32 5
  %244 = load ptr, ptr %243, align 8, !tbaa !41
  %245 = load i32, ptr %11, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  store double 0.000000e+00, ptr %251, align 8, !tbaa !42
  br label %252

252:                                              ; preds = %242
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %13, align 4, !tbaa !9
  br label %236, !llvm.loop !44

255:                                              ; preds = %241
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %11, align 4, !tbaa !9
  br label %216, !llvm.loop !45

259:                                              ; preds = %221
  call void @_ZN5Graph18calc_node_distanceEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3CarC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 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) #0 align 2

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

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

!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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS5Graph", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!14, !10, i64 12}
!16 = !{!14, !6, i64 24}
!17 = !{!14, !6, i64 16}
!18 = !{!19, !10, i64 8}
!19 = !{!"_ZTS4Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !20, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!20 = !{!"bool", !7, i64 0}
!21 = !{!19, !10, i64 0}
!22 = !{!19, !10, i64 4}
!23 = !{!19, !10, i64 12}
!24 = !{!19, !20, i64 16}
!25 = !{!19, !10, i64 20}
!26 = !{!19, !10, i64 24}
!27 = !{!19, !10, i64 28}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTS3Car", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !32, i64 24}
!32 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!31, !10, i64 4}
!37 = !{!31, !10, i64 8}
!38 = !{!31, !10, i64 12}
!39 = !{!31, !10, i64 16}
!40 = distinct !{!40, !29}
!41 = !{!14, !6, i64 32}
!42 = !{!43, !43, i64 0}
!43 = !{!"double", !7, i64 0}
!44 = distinct !{!44, !29}
!45 = distinct !{!45, !29}


; 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.Car = type { i32, i32, i32, i32, i32, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.Node = type { i32, i32, i32, i32, i8, i32, i32, i32 }

@_ZTV5Graph = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV5Graph, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %3, ptr %5, align 8, !tbaa !8
  %6 = tail call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %7 = trunc i64 %6 to i32
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %7, ptr %8, align 4, !tbaa !13
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %3)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.2)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %2)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.3)
  %16 = load i32, ptr %8, align 4, !tbaa !13
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef %16)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %19 = load i32, ptr %8, align 4, !tbaa !13
  %20 = sext i32 %19 to i64
  %21 = icmp slt i32 %19, 0
  %22 = shl nsw i64 %20, 5
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #9
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %24, ptr %25, align 8, !tbaa !14
  %26 = sext i32 %3 to i64
  %27 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %26, i64 48)
  %28 = extractvalue { i64, i1 } %27, 1
  %29 = extractvalue { i64, i1 } %27, 0
  %30 = or disjoint i64 %29, 8
  %31 = select i1 %28, i64 -1, i64 %30
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
  store i64 %26, ptr %32, align 16
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = icmp eq i32 %3, 0
  br i1 %34, label %.loopexit, label %35

35:                                               ; preds = %4
  %36 = getelementptr inbounds %class.Car, ptr %33, i64 %26
  br label %37

37:                                               ; preds = %37, %35
  %38 = phi ptr [ %33, %35 ], [ %39, %37 ]
  tail call void @_ZN3CarC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  %39 = getelementptr inbounds i8, ptr %38, i64 48
  %40 = icmp eq ptr %39, %36
  br i1 %40, label %.loopexit.loopexit, label %37

.loopexit.loopexit:                               ; preds = %37
  %.pre = load i32, ptr %8, align 4, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %4
  %41 = phi i32 [ %.pre, %.loopexit.loopexit ], [ %19, %4 ]
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %33, ptr %42, align 8, !tbaa !15
  %43 = icmp sgt i32 %41, 0
  br i1 %43, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %.loopexit
  %.lcssa = phi i32 [ %41, %.loopexit ], [ %90, %.lr.ph ]
  %44 = icmp sgt i32 %3, 0
  br i1 %44, label %.lr.ph45, label %._crit_edge

.lr.ph45:                                         ; preds = %.preheader
  %45 = load ptr, ptr %42, align 8, !tbaa !15
  %wide.trip.count = zext nneg i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %46 = icmp eq i32 %3, 1
  br i1 %46, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph45.new

.lr.ph45.new:                                     ; preds = %.lr.ph45
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %110

.lr.ph:                                           ; preds = %.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.loopexit ]
  %47 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #8
  %49 = load i32, ptr %48, align 4, !tbaa !16
  %50 = load ptr, ptr %25, align 8, !tbaa !14
  %51 = getelementptr inbounds %class.Node, ptr %50, i64 %indvars.iv, i32 2
  store i32 %49, ptr %51, align 4, !tbaa !17
  %52 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef 1) #8
  %54 = load i32, ptr %53, align 4, !tbaa !16
  %55 = load ptr, ptr %25, align 8, !tbaa !14
  %56 = getelementptr inbounds %class.Node, ptr %55, i64 %indvars.iv
  store i32 %54, ptr %56, align 4, !tbaa !20
  %57 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef 2) #8
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = load ptr, ptr %25, align 8, !tbaa !14
  %61 = getelementptr inbounds %class.Node, ptr %60, i64 %indvars.iv, i32 1
  store i32 %59, ptr %61, align 4, !tbaa !21
  %62 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 3) #8
  %64 = load i32, ptr %63, align 4, !tbaa !16
  %65 = load ptr, ptr %25, align 8, !tbaa !14
  %66 = getelementptr inbounds %class.Node, ptr %65, i64 %indvars.iv, i32 3
  store i32 %64, ptr %66, align 4, !tbaa !22
  %67 = getelementptr inbounds %class.Node, ptr %65, i64 %indvars.iv, i32 4
  store i8 0, ptr %67, align 4, !tbaa !23
  %68 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %69 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef 4) #8
  %70 = load i32, ptr %69, align 4, !tbaa !16
  %71 = load ptr, ptr %25, align 8, !tbaa !14
  %72 = getelementptr inbounds %class.Node, ptr %71, i64 %indvars.iv, i32 5
  store i32 %70, ptr %72, align 4, !tbaa !24
  %73 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %74 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 5) #8
  %75 = load i32, ptr %74, align 4, !tbaa !16
  %76 = load ptr, ptr %25, align 8, !tbaa !14
  %77 = getelementptr inbounds %class.Node, ptr %76, i64 %indvars.iv, i32 6
  store i32 %75, ptr %77, align 4, !tbaa !25
  %78 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %79 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef 5) #8
  %80 = load i32, ptr %79, align 4, !tbaa !16
  %81 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef 4) #8
  %83 = load i32, ptr %82, align 4, !tbaa !16
  %84 = sub nsw i32 %80, %83
  %85 = sitofp i32 %84 to double
  %86 = fmul double %85, 2.000000e-01
  %87 = fptosi double %86 to i32
  %88 = load ptr, ptr %25, align 8, !tbaa !14
  %89 = getelementptr inbounds %class.Node, ptr %88, i64 %indvars.iv, i32 7
  store i32 %87, ptr %89, align 4, !tbaa !26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %90 = load i32, ptr %8, align 4, !tbaa !13
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next, %91
  br i1 %92, label %.lr.ph, label %.preheader, !llvm.loop !27

._crit_edge.loopexit.unr-lcssa:                   ; preds = %110, %.lr.ph45
  %indvars.iv57.unr = phi i64 [ 0, %.lr.ph45 ], [ %indvars.iv.next58.1, %110 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %93 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv57.unr
  store i32 %2, ptr %93, align 8, !tbaa !29
  %94 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv57.unr, i32 1
  store <4 x i32> <i32 0, i32 0, i32 10, i32 0>, ptr %94, align 4, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %95 = sext i32 %.lcssa to i64
  %96 = icmp slt i32 %.lcssa, 0
  %97 = shl nsw i64 %95, 3
  %98 = select i1 %96, i64 -1, i64 %97
  %99 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %98) #9
  %100 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %99, ptr %100, align 8, !tbaa !35
  %101 = icmp sgt i32 %.lcssa, 0
  br i1 %101, label %.lr.ph48.us.preheader, label %._crit_edge53

.lr.ph48.us.preheader:                            ; preds = %._crit_edge
  %102 = zext nneg i32 %.lcssa to i64
  %103 = shl nuw nsw i64 %102, 3
  br label %.lr.ph48.us

.lr.ph48.us:                                      ; preds = %.lr.ph48.us.preheader, %.lr.ph48.us
  %104 = phi ptr [ %99, %.lr.ph48.us.preheader ], [ %107, %.lr.ph48.us ]
  %indvars.iv63 = phi i64 [ 0, %.lr.ph48.us.preheader ], [ %indvars.iv.next64, %.lr.ph48.us ]
  %105 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %98) #9
  %106 = getelementptr inbounds ptr, ptr %104, i64 %indvars.iv63
  store ptr %105, ptr %106, align 8, !tbaa !36
  %107 = load ptr, ptr %100, align 8, !tbaa !35
  %108 = getelementptr inbounds ptr, ptr %107, i64 %indvars.iv63
  %109 = load ptr, ptr %108, align 8, !tbaa !36
  tail call void @llvm.memset.p0.i64(ptr align 8 %109, i8 0, i64 %103, i1 false), !tbaa !37
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %102
  br i1 %exitcond67.not, label %._crit_edge53, label %.lr.ph48.us, !llvm.loop !39

110:                                              ; preds = %110, %.lr.ph45.new
  %indvars.iv57 = phi i64 [ 0, %.lr.ph45.new ], [ %indvars.iv.next58.1, %110 ]
  %niter = phi i64 [ 0, %.lr.ph45.new ], [ %niter.next.1, %110 ]
  %111 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv57
  store i32 %2, ptr %111, align 8, !tbaa !29
  %112 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv57, i32 1
  store <4 x i32> <i32 0, i32 0, i32 10, i32 0>, ptr %112, align 4, !tbaa !16
  %indvars.iv.next58 = or disjoint i64 %indvars.iv57, 1
  %113 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv.next58
  store i32 %2, ptr %113, align 8, !tbaa !29
  %114 = getelementptr inbounds %class.Car, ptr %45, i64 %indvars.iv.next58, i32 1
  store <4 x i32> <i32 0, i32 0, i32 10, i32 0>, ptr %114, align 4, !tbaa !16
  %indvars.iv.next58.1 = add nuw nsw i64 %indvars.iv57, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %110, !llvm.loop !40

._crit_edge53:                                    ; preds = %.lr.ph48.us, %._crit_edge
  tail call void @_ZN5Graph18calc_node_distanceEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3CarC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 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 #0 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTS5Graph", !10, i64 8, !10, i64 12, !12, i64 16, !12, i64 24, !12, i64 32}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"any pointer", !11, i64 0}
!13 = !{!9, !10, i64 12}
!14 = !{!9, !12, i64 24}
!15 = !{!9, !12, i64 16}
!16 = !{!10, !10, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTS4Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !19, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!19 = !{!"bool", !11, i64 0}
!20 = !{!18, !10, i64 0}
!21 = !{!18, !10, i64 4}
!22 = !{!18, !10, i64 12}
!23 = !{!18, !19, i64 16}
!24 = !{!18, !10, i64 20}
!25 = !{!18, !10, i64 24}
!26 = !{!18, !10, i64 28}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTS3Car", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !31, i64 24}
!31 = !{!"_ZTSSt6vectorI4NodeSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseI4NodeSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI4NodeSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!35 = !{!9, !12, i64 32}
!36 = !{!12, !12, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"double", !11, i64 0}
!39 = distinct !{!39, !28}
!40 = distinct !{!40, !28}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass