; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint June/Problem G/Sim (G)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, %"struct.std::pair.5" }
%"struct.std::pair.5" = type { i32, i32 }

@graph = external dso_local global [500001 x %"class.std::vector"], align 16
@roads = external dso_local global %"class.std::vector.0", align 8
@joints = external dso_local global %"class.std::vector.0", align 8
@visitTime = external dso_local global [500001 x i32], align 16
@exitTime = external dso_local global [500001 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1

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

; 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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca %"struct.std::pair.5", align 4
  %22 = alloca { i64, i32 }, align 8
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca %"struct.std::pair.5", align 4
  %25 = alloca { i64, i32 }, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i8, align 1
  store i32 0, ptr %1, align 4
  %30 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %31 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %33
  %35 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  %36 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %37 = getelementptr i8, ptr %36, i64 -24
  %38 = load i64, ptr %37, align 8
  %39 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %38
  %40 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %39, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %261, %0
  %43 = load i32, ptr %18, align 4, !tbaa !11
  %44 = load i32, ptr %2, align 4, !tbaa !11
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %264

47:                                               ; preds = %42
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %58, %47
  %51 = load i32, ptr %18, align 4, !tbaa !11
  %52 = load i32, ptr %3, align 4, !tbaa !11
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %54, label %61

54:                                               ; preds = %50
  %55 = load i32, ptr %18, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %56
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #7
  br label %58

58:                                               ; preds = %54
  %59 = load i32, ptr %18, align 4, !tbaa !11
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %18, align 4, !tbaa !11
  br label %50, !llvm.loop !13

61:                                               ; preds = %50
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @joints) #7
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @roads) #7
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %78, %61
  %63 = load i32, ptr %18, align 4, !tbaa !11
  %64 = load i32, ptr %3, align 4, !tbaa !11
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %66, label %81

66:                                               ; preds = %62
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %70 = load i32, ptr %8, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %71
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %73 = load i32, ptr %9, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %74
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %76 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i64 %76, ptr %21, align 4
  %77 = call { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store { i64, i32 } %77, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %22, i64 12, i1 false)
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @joints, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  br label %78

78:                                               ; preds = %66
  %79 = load i32, ptr %18, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %18, align 4, !tbaa !11
  br label %62, !llvm.loop !15

81:                                               ; preds = %62
  call void @_Z3dfsii(i32 noundef 1, i32 noundef -1)
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %82

82:                                               ; preds = %92, %81
  %83 = load i32, ptr %18, align 4, !tbaa !11
  %84 = load i32, ptr %4, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %95

86:                                               ; preds = %82
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %90 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store i64 %90, ptr %24, align 4
  %91 = call { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store { i64, i32 } %91, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %25, i64 12, i1 false)
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @roads, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  br label %92

92:                                               ; preds = %86
  %93 = load i32, ptr %18, align 4, !tbaa !11
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %18, align 4, !tbaa !11
  br label %82, !llvm.loop !16

95:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %96 = load i32, ptr %4, align 4, !tbaa !11
  %97 = zext i32 %96 to i64
  %98 = shl i64 1, %97
  store i64 %98, ptr %26, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %255, %95
  %100 = load i32, ptr %18, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = load i64, ptr %26, align 8, !tbaa !8
  %103 = icmp slt i64 %101, %102
  br i1 %103, label %104, label %258

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  store i8 1, ptr %29, align 1, !tbaa !17
  store i64 0, ptr %17, align 8, !tbaa !8
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %105

105:                                              ; preds = %127, %104
  %106 = load i32, ptr %7, align 4, !tbaa !11
  %107 = load i32, ptr %4, align 4, !tbaa !11
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %109, label %130

109:                                              ; preds = %105
  %110 = load i32, ptr %18, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr %7, align 4, !tbaa !11
  %113 = zext i32 %112 to i64
  %114 = shl i64 1, %113
  %115 = and i64 %111, %114
  %116 = icmp ne i64 %115, 0
  br i1 %116, label %117, label %126

117:                                              ; preds = %109
  %118 = load i32, ptr %7, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %119) #7
  %121 = getelementptr inbounds %"struct.std::pair", ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !19
  %123 = sext i32 %122 to i64
  %124 = load i64, ptr %17, align 8, !tbaa !8
  %125 = add nsw i64 %124, %123
  store i64 %125, ptr %17, align 8, !tbaa !8
  br label %126

126:                                              ; preds = %117, %109
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %7, align 4, !tbaa !11
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %7, align 4, !tbaa !11
  br label %105, !llvm.loop !22

130:                                              ; preds = %105
  %131 = load i64, ptr %17, align 8, !tbaa !8
  %132 = load i64, ptr %16, align 8, !tbaa !8
  %133 = icmp sle i64 %131, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 16, ptr %19, align 4
  br label %252

135:                                              ; preds = %130
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %136

136:                                              ; preds = %243, %135
  %137 = load i32, ptr %6, align 4, !tbaa !11
  %138 = load i32, ptr %3, align 4, !tbaa !11
  %139 = sub nsw i32 %138, 1
  %140 = icmp slt i32 %137, %139
  br i1 %140, label %141, label %246

141:                                              ; preds = %136
  store i32 0, ptr %27, align 4, !tbaa !11
  %142 = load i32, ptr %6, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %143) #7
  %145 = getelementptr inbounds %"struct.std::pair", ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !19
  store i32 %146, ptr %28, align 4, !tbaa !11
  %147 = load i32, ptr %6, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %148) #7
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds %"struct.std::pair.5", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 4, !tbaa !23
  store i32 %152, ptr %14, align 4, !tbaa !11
  %153 = load i32, ptr %6, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %154) #7
  %156 = getelementptr inbounds %"struct.std::pair", ptr %155, i32 0, i32 1
  %157 = getelementptr inbounds %"struct.std::pair.5", ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !24
  store i32 %158, ptr %15, align 4, !tbaa !11
  %159 = load i32, ptr %14, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !11
  %163 = load i32, ptr %15, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !11
  %167 = icmp sgt i32 %162, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %141
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15) #7
  br label %169

169:                                              ; preds = %168, %141
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %170

170:                                              ; preds = %234, %169
  %171 = load i32, ptr %7, align 4, !tbaa !11
  %172 = load i32, ptr %4, align 4, !tbaa !11
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %174, label %237

174:                                              ; preds = %170
  %175 = load i32, ptr %18, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = load i32, ptr %7, align 4, !tbaa !11
  %178 = zext i32 %177 to i64
  %179 = shl i64 1, %178
  %180 = and i64 %176, %179
  %181 = icmp ne i64 %180, 0
  br i1 %181, label %182, label %228

182:                                              ; preds = %174
  %183 = load i32, ptr %7, align 4, !tbaa !11
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %184) #7
  %186 = getelementptr inbounds %"struct.std::pair", ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %"struct.std::pair.5", ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4, !tbaa !23
  store i32 %188, ptr %12, align 4, !tbaa !11
  %189 = load i32, ptr %7, align 4, !tbaa !11
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %190) #7
  %192 = getelementptr inbounds %"struct.std::pair", ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds %"struct.std::pair.5", ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !24
  store i32 %194, ptr %13, align 4, !tbaa !11
  %195 = load i32, ptr %12, align 4, !tbaa !11
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !11
  %199 = load i32, ptr %14, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !11
  %203 = icmp sle i32 %198, %202
  br i1 %203, label %204, label %227

204:                                              ; preds = %182
  %205 = load i32, ptr %15, align 4, !tbaa !11
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !11
  %209 = load i32, ptr %13, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !11
  %213 = icmp sle i32 %208, %212
  br i1 %213, label %214, label %227

214:                                              ; preds = %204
  %215 = load i32, ptr %13, align 4, !tbaa !11
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !11
  %219 = load i32, ptr %15, align 4, !tbaa !11
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [500001 x i32], ptr @exitTime, i64 0, i64 %220
  %222 = load i32, ptr %221, align 4, !tbaa !11
  %223 = icmp slt i32 %218, %222
  br i1 %223, label %224, label %227

224:                                              ; preds = %214
  %225 = load i32, ptr %27, align 4, !tbaa !11
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %27, align 4, !tbaa !11
  br label %227

227:                                              ; preds = %224, %214, %204, %182
  br label %228

228:                                              ; preds = %227, %174
  %229 = load i32, ptr %27, align 4, !tbaa !11
  %230 = load i32, ptr %28, align 4, !tbaa !11
  %231 = icmp sgt i32 %229, %230
  br i1 %231, label %232, label %233

232:                                              ; preds = %228
  br label %237

233:                                              ; preds = %228
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %7, align 4, !tbaa !11
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %7, align 4, !tbaa !11
  br label %170, !llvm.loop !25

237:                                              ; preds = %232, %170
  %238 = load i32, ptr %27, align 4, !tbaa !11
  %239 = load i32, ptr %28, align 4, !tbaa !11
  %240 = icmp sgt i32 %238, %239
  br i1 %240, label %241, label %242

241:                                              ; preds = %237
  store i8 0, ptr %29, align 1, !tbaa !17
  br label %246

242:                                              ; preds = %237
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %6, align 4, !tbaa !11
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %6, align 4, !tbaa !11
  br label %136, !llvm.loop !26

246:                                              ; preds = %241, %136
  %247 = load i8, ptr %29, align 1, !tbaa !17, !range !27, !noundef !28
  %248 = trunc i8 %247 to i1
  br i1 %248, label %249, label %251

249:                                              ; preds = %246
  %250 = load i64, ptr %17, align 8, !tbaa !8
  store i64 %250, ptr %16, align 8, !tbaa !8
  br label %251

251:                                              ; preds = %249, %246
  store i32 0, ptr %19, align 4
  br label %252

252:                                              ; preds = %251, %134
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  %253 = load i32, ptr %19, align 4
  switch i32 %253, label %266 [
    i32 0, label %254
    i32 16, label %255
  ]

254:                                              ; preds = %252
  br label %255

255:                                              ; preds = %254, %252
  %256 = load i32, ptr %18, align 4, !tbaa !11
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %18, align 4, !tbaa !11
  br label %99, !llvm.loop !29

258:                                              ; preds = %99
  %259 = load i64, ptr %16, align 8, !tbaa !8
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %259)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %261

261:                                              ; preds = %258
  %262 = load i32, ptr %18, align 4, !tbaa !11
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %18, align 4, !tbaa !11
  br label %42, !llvm.loop !30

264:                                              ; preds = %46
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %265 = load i32, ptr %1, align 4
  ret i32 %265

266:                                              ; preds = %252
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

declare i32 @printf(ptr noundef, ...) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"_ZTSSt4pairIiS_IiiEE", !12, i64 0, !21, i64 4}
!21 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!22 = distinct !{!22, !14}
!23 = !{!20, !12, i64 4}
!24 = !{!20, !12, i64 8}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, std::pair<int, int>>, std::allocator<std::pair<int, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, %"struct.std::pair.5" }
%"struct.std::pair.5" = type { i32, i32 }

@graph = external dso_local global [500001 x %"class.std::vector"], align 16
@roads = external dso_local global %"class.std::vector.0", align 8
@joints = external dso_local global %"class.std::vector.0", align 8
@visitTime = external dso_local local_unnamed_addr global [500001 x i32], align 16
@exitTime = external dso_local local_unnamed_addr global [500001 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair.5", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair.5", align 8
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %19
  %21 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef null)
  %22 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %24
  %26 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %25, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %28 = load i32, ptr %1, align 4, !tbaa !8
  %.not103 = icmp slt i32 %28, 1
  br i1 %.not103, label %._crit_edge107, label %.lr.ph106

.lr.ph106:                                        ; preds = %0
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  br label %29

._crit_edge107:                                   ; preds = %._crit_edge100, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

29:                                               ; preds = %.lr.ph106, %._crit_edge100
  %.048104 = phi i64 [ 0, %.lr.ph106 ], [ %.149.lcssa, %._crit_edge100 ]
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %.not6069 = icmp slt i32 %32, 1
  br i1 %.not6069, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %29 ]
  %33 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %2, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  %.not60.not = icmp slt i64 %indvars.iv, %35
  br i1 %.not60.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %29
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @joints) #7
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @roads) #7
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = icmp sgt i32 %36, 1
  br i1 %37, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %._crit_edge, %.lr.ph73
  %.25571 = phi i32 [ %49, %.lr.ph73 ], [ 1, %._crit_edge ]
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %41 = load i32, ptr %4, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %42
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %44 = load i32, ptr %5, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @graph, i64 0, i64 %45
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %47 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %47, ptr %13, align 8
  %48 = call { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %.fca.0.extract7 = extractvalue { i64, i32 } %48, 0
  %.fca.1.extract8 = extractvalue { i64, i32 } %48, 1
  store i64 %.fca.0.extract7, ptr %12, align 8
  store i32 %.fca.1.extract8, ptr %.sroa.210.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @joints, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  %49 = add nuw nsw i32 %.25571, 1
  %50 = load i32, ptr %2, align 4, !tbaa !8
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph73, label %._crit_edge74, !llvm.loop !13

._crit_edge74:                                    ; preds = %.lr.ph73, %._crit_edge
  call void @_Z3dfsii(i32 noundef 1, i32 noundef -1)
  %52 = load i32, ptr %3, align 4, !tbaa !8
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %._crit_edge74, %.lr.ph77
  %.35675 = phi i32 [ %59, %.lr.ph77 ], [ 0, %._crit_edge74 ]
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %57 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i64 %57, ptr %15, align 8
  %58 = call { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %.fca.0.extract = extractvalue { i64, i32 } %58, 0
  %.fca.1.extract = extractvalue { i64, i32 } %58, 1
  store i64 %.fca.0.extract, ptr %14, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @roads, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  %59 = add nuw nsw i32 %.35675, 1
  %60 = load i32, ptr %3, align 4, !tbaa !8
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %.lr.ph77, label %._crit_edge78, !llvm.loop !14

._crit_edge78:                                    ; preds = %.lr.ph77, %._crit_edge74
  %.lcssa = phi i32 [ %52, %._crit_edge74 ], [ %60, %.lr.ph77 ]
  %62 = zext nneg i32 %.lcssa to i64
  %63 = shl nuw i64 1, %62
  %64 = icmp sgt i64 %63, 1
  br i1 %64, label %.preheader68, label %._crit_edge100

.preheader68:                                     ; preds = %._crit_edge78, %.loopexit
  %65 = phi i32 [ %144, %.loopexit ], [ %.lcssa, %._crit_edge78 ]
  %66 = phi i32 [ %145, %.loopexit ], [ %.lcssa, %._crit_edge78 ]
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %.loopexit ], [ 1, %._crit_edge78 ]
  %.14999 = phi i64 [ %.3, %.loopexit ], [ %.048104, %._crit_edge78 ]
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph81, label %._crit_edge82

.lr.ph81:                                         ; preds = %.preheader68, %76
  %68 = phi i32 [ %77, %76 ], [ %65, %.preheader68 ]
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %76 ], [ 0, %.preheader68 ]
  %.05179 = phi i64 [ %.152, %76 ], [ 0, %.preheader68 ]
  %69 = shl nuw i64 1, %indvars.iv112
  %70 = and i64 %69, %indvars.iv121
  %.not66 = icmp eq i64 %70, 0
  br i1 %.not66, label %76, label %71

71:                                               ; preds = %.lr.ph81
  %72 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv112) #7
  %73 = load i32, ptr %72, align 4, !tbaa !15
  %74 = sext i32 %73 to i64
  %75 = add nsw i64 %.05179, %74
  %.pre = load i32, ptr %3, align 4, !tbaa !8
  br label %76

76:                                               ; preds = %.lr.ph81, %71
  %77 = phi i32 [ %.pre, %71 ], [ %68, %.lr.ph81 ]
  %.152 = phi i64 [ %75, %71 ], [ %.05179, %.lr.ph81 ]
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next113, %78
  br i1 %79, label %.lr.ph81, label %._crit_edge82, !llvm.loop !18

._crit_edge82:                                    ; preds = %76, %.preheader68
  %80 = phi i32 [ %65, %.preheader68 ], [ %77, %76 ]
  %81 = phi i32 [ %66, %.preheader68 ], [ %77, %76 ]
  %.051.lcssa = phi i64 [ 0, %.preheader68 ], [ %.152, %76 ]
  %.not61 = icmp sgt i64 %.051.lcssa, %.14999
  br i1 %.not61, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %._crit_edge82
  %82 = load i32, ptr %2, align 4, !tbaa !8
  %.not6592 = icmp sgt i32 %82, 1
  br i1 %.not6592, label %.lr.ph94, label %.loopexit

83:                                               ; preds = %._crit_edge88
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %84 = load i32, ptr %2, align 4, !tbaa !8
  %85 = add nsw i32 %84, -1
  %86 = sext i32 %85 to i64
  %.not65 = icmp slt i64 %indvars.iv.next119, %86
  br i1 %.not65, label %.lr.ph94, label %.loopexit, !llvm.loop !19

.lr.ph94:                                         ; preds = %.preheader, %83
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %83 ], [ 0, %.preheader ]
  %87 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %indvars.iv118) #7
  %88 = load i32, ptr %87, align 4, !tbaa !15
  %89 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %indvars.iv118) #7
  %90 = getelementptr inbounds i8, ptr %89, i64 4
  %91 = load i32, ptr %90, align 4, !tbaa !20
  store i32 %91, ptr %10, align 4, !tbaa !8
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @joints, i64 noundef %indvars.iv118) #7
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = load i32, ptr %93, align 4, !tbaa !21
  store i32 %94, ptr %11, align 4, !tbaa !8
  %95 = load i32, ptr %10, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = sext i32 %94 to i64
  %100 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = icmp sgt i32 %98, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %.lr.ph94
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11) #7
  br label %104

104:                                              ; preds = %103, %.lr.ph94
  %105 = load i32, ptr %3, align 4, !tbaa !8
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.lr.ph87, label %._crit_edge88

.lr.ph87:                                         ; preds = %104, %137
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %137 ], [ 0, %104 ]
  %.04485 = phi i32 [ %.1, %137 ], [ 0, %104 ]
  %107 = shl nuw i64 1, %indvars.iv115
  %108 = and i64 %107, %indvars.iv121
  %.not62 = icmp eq i64 %108, 0
  br i1 %.not62, label %137, label %109

109:                                              ; preds = %.lr.ph87
  %110 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv115) #7
  %111 = getelementptr inbounds i8, ptr %110, i64 4
  %112 = load i32, ptr %111, align 4, !tbaa !20
  store i32 %112, ptr %8, align 4, !tbaa !8
  %113 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIiS0_IiiEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv115) #7
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  %115 = load i32, ptr %114, align 4, !tbaa !21
  store i32 %115, ptr %9, align 4, !tbaa !8
  %116 = load i32, ptr %8, align 4, !tbaa !8
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !8
  %120 = load i32, ptr %10, align 4, !tbaa !8
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !8
  %.not63 = icmp sgt i32 %119, %123
  br i1 %.not63, label %137, label %124

124:                                              ; preds = %109
  %125 = load i32, ptr %11, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !8
  %129 = sext i32 %115 to i64
  %130 = getelementptr inbounds [500001 x i32], ptr @visitTime, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %.not64 = icmp sgt i32 %128, %131
  br i1 %.not64, label %137, label %132

132:                                              ; preds = %124
  %133 = getelementptr inbounds [500001 x i32], ptr @exitTime, i64 0, i64 %126
  %134 = load i32, ptr %133, align 4, !tbaa !8
  %135 = icmp slt i32 %131, %134
  %136 = zext i1 %135 to i32
  %spec.select = add nsw i32 %.04485, %136
  br label %137

137:                                              ; preds = %132, %109, %124, %.lr.ph87
  %.1 = phi i32 [ %.04485, %124 ], [ %.04485, %109 ], [ %.04485, %.lr.ph87 ], [ %spec.select, %132 ]
  %138 = icmp sle i32 %.1, %88
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %139 = load i32, ptr %3, align 4
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next116, %140
  %or.cond = select i1 %138, i1 %141, i1 false
  br i1 %or.cond, label %.lr.ph87, label %._crit_edge88, !llvm.loop !22

._crit_edge88:                                    ; preds = %137, %104
  %142 = phi i32 [ %105, %104 ], [ %139, %137 ]
  %.2 = phi i32 [ 0, %104 ], [ %.1, %137 ]
  %143 = icmp sgt i32 %.2, %88
  br i1 %143, label %.loopexit, label %83

.loopexit:                                        ; preds = %._crit_edge88, %83, %.preheader, %._crit_edge82
  %144 = phi i32 [ %80, %._crit_edge82 ], [ %80, %.preheader ], [ %142, %83 ], [ %142, %._crit_edge88 ]
  %145 = phi i32 [ %81, %._crit_edge82 ], [ %81, %.preheader ], [ %142, %83 ], [ %142, %._crit_edge88 ]
  %.3 = phi i64 [ %.14999, %._crit_edge82 ], [ %.051.lcssa, %.preheader ], [ %.14999, %._crit_edge88 ], [ %.051.lcssa, %83 ]
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next122, %63
  br i1 %exitcond.not, label %._crit_edge100.loopexit, label %.preheader68, !llvm.loop !23

._crit_edge100.loopexit:                          ; preds = %.loopexit
  %146 = trunc nuw i64 %63 to i32
  br label %._crit_edge100

._crit_edge100:                                   ; preds = %._crit_edge100.loopexit, %._crit_edge78
  %.4.lcssa = phi i32 [ 1, %._crit_edge78 ], [ %146, %._crit_edge100.loopexit ]
  %.149.lcssa = phi i64 [ %.048104, %._crit_edge78 ], [ %.3, %._crit_edge100.loopexit ]
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %.149.lcssa)
  %148 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.4.lcssa, %148
  br i1 %.not.not, label %29, label %._crit_edge107, !llvm.loop !24
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRiSt4pairIiiEES1_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !9, i64 0}
!16 = !{!"_ZTSSt4pairIiS_IiiEE", !9, i64 0, !17, i64 4}
!17 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!16, !9, i64 4}
!21 = !{!16, !9, i64 8}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


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