; LLVM IR from ADJA/algos :: Graphs/MinCostDijkstraHeap.ll (Z8dijkstrav)

; 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<edge, std::allocator<edge>>::_Vector_impl" }
%"struct.std::_Vector_base<edge, std::allocator<edge>>::_Vector_impl" = type { %"struct.std::_Vector_base<edge, std::allocator<edge>>::_Vector_impl_data" }
%"struct.std::_Vector_base<edge, std::allocator<edge>>::_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<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::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"struct.std::pair.10" = type { i32, i32 }
%struct.edge = type { i32, i32, i32, i32, i64 }

@e = external dso_local global %"class.std::vector", align 8
@g = external dso_local global [1050 x %"class.std::vector.0"], align 16
@phi = external dso_local global [1050 x i64], align 16
@q = external dso_local global %"class.std::priority_queue", align 8
@dist = external dso_local global [1050 x i64], align 16
@par = external dso_local global [1050 x i32], align 16
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8dijkstrav() #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca i64, align 8
  %4 = alloca { i64, i32 }, align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair.10", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i64, align 8
  %17 = alloca { i64, i32 }, align 8
  br label %18

18:                                               ; preds = %21, %0
  %19 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %20 = xor i1 %19, true
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  br label %18, !llvm.loop !5

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  %23 = load i32, ptr @s, align 4, !tbaa !7
  store i32 %23, ptr %1, align 4, !tbaa !7
  br label %24

24:                                               ; preds = %39, %22
  %25 = load i32, ptr %1, align 4, !tbaa !7
  %26 = load i32, ptr @t, align 4, !tbaa !7
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %42

29:                                               ; preds = %24
  %30 = load i32, ptr %1, align 4, !tbaa !7
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %31
  store i64 1000000000000000, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %33 = load i32, ptr %1, align 4, !tbaa !7
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = sub nsw i64 0, %36
  store i64 %37, ptr %3, align 8, !tbaa !11
  %38 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store { i64, i32 } %38, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %4, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  br label %39

39:                                               ; preds = %29
  %40 = load i32, ptr %1, align 4, !tbaa !7
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %1, align 4, !tbaa !7
  br label %24, !llvm.loop !13

42:                                               ; preds = %28
  %43 = load i32, ptr @s, align 4, !tbaa !7
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %44
  store i64 0, ptr %45, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !7
  %46 = call i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) @s)
  store i64 %46, ptr %6, align 4
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  br label %47

47:                                               ; preds = %158, %156, %42
  %48 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %49 = xor i1 %48, true
  br i1 %49, label %50, label %159

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %51 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %52 = getelementptr inbounds %"struct.std::pair", ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !14
  store i32 %53, ptr %8, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %54 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %55 = getelementptr inbounds %"struct.std::pair", ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !16
  %57 = sub nsw i64 0, %56
  store i64 %57, ptr %9, align 8, !tbaa !11
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %58 = load i64, ptr %9, align 8, !tbaa !11
  %59 = load i32, ptr %8, align 4, !tbaa !7
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = icmp sgt i64 %58, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %50
  store i32 7, ptr %10, align 4
  br label %156, !llvm.loop !17

65:                                               ; preds = %50
  %66 = load i32, ptr %8, align 4, !tbaa !7
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !11
  %70 = icmp eq i64 %69, 1000000000000000
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  store i32 8, ptr %10, align 4
  br label %156

72:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !7
  br label %73

73:                                               ; preds = %152, %72
  %74 = load i32, ptr %11, align 4, !tbaa !7
  %75 = load i32, ptr %8, align 4, !tbaa !7
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [1050 x %"class.std::vector.0"], ptr @g, i64 0, i64 %76
  %78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #4
  %79 = trunc i64 %78 to i32
  %80 = icmp slt i32 %74, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %73
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %155

82:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %83 = load i32, ptr %8, align 4, !tbaa !7
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [1050 x %"class.std::vector.0"], ptr @g, i64 0, i64 %84
  %86 = load i32, ptr %11, align 4, !tbaa !7
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #4
  %89 = load i32, ptr %88, align 4, !tbaa !7
  store i32 %89, ptr %12, align 4, !tbaa !7
  %90 = load i32, ptr %12, align 4, !tbaa !7
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %91) #4
  %93 = getelementptr inbounds %struct.edge, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = load i32, ptr %12, align 4, !tbaa !7
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %96) #4
  %98 = getelementptr inbounds %struct.edge, ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 4, !tbaa !20
  %100 = icmp eq i32 %94, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %82
  store i32 11, ptr %10, align 4
  br label %149

102:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %103 = load i32, ptr %12, align 4, !tbaa !7
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %104) #4
  %106 = getelementptr inbounds %struct.edge, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !21
  store i32 %107, ptr %13, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %108 = load i32, ptr %12, align 4, !tbaa !7
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %109) #4
  %111 = getelementptr inbounds %struct.edge, ptr %110, i32 0, i32 4
  %112 = load i64, ptr %111, align 8, !tbaa !22
  %113 = load i32, ptr %8, align 4, !tbaa !7
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1050 x i64], ptr @phi, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = add nsw i64 %112, %116
  %118 = load i32, ptr %13, align 4, !tbaa !7
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [1050 x i64], ptr @phi, i64 0, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = sub nsw i64 %117, %121
  store i64 %122, ptr %14, align 8, !tbaa !11
  %123 = load i64, ptr %9, align 8, !tbaa !11
  %124 = load i64, ptr %14, align 8, !tbaa !11
  %125 = add nsw i64 %123, %124
  %126 = load i32, ptr %13, align 4, !tbaa !7
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !11
  %130 = icmp slt i64 %125, %129
  br i1 %130, label %131, label %148

131:                                              ; preds = %102
  %132 = load i64, ptr %9, align 8, !tbaa !11
  %133 = load i64, ptr %14, align 8, !tbaa !11
  %134 = add nsw i64 %132, %133
  %135 = load i32, ptr %13, align 4, !tbaa !7
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %136
  store i64 %134, ptr %137, align 8, !tbaa !11
  %138 = load i32, ptr %12, align 4, !tbaa !7
  %139 = load i32, ptr %13, align 4, !tbaa !7
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [1050 x i32], ptr @par, i64 0, i64 %140
  store i32 %138, ptr %141, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %142 = load i32, ptr %13, align 4, !tbaa !7
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = sub nsw i64 0, %145
  store i64 %146, ptr %16, align 8, !tbaa !11
  %147 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
  store { i64, i32 } %147, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %17, i64 12, i1 false)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %148

148:                                              ; preds = %131, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  store i32 0, ptr %10, align 4
  br label %149

149:                                              ; preds = %148, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %150 = load i32, ptr %10, align 4
  switch i32 %150, label %160 [
    i32 0, label %151
    i32 11, label %152
  ]

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151, %149
  %153 = load i32, ptr %11, align 4, !tbaa !7
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %11, align 4, !tbaa !7
  br label %73, !llvm.loop !23

155:                                              ; preds = %81
  store i32 0, ptr %10, align 4
  br label %156

156:                                              ; preds = %155, %71, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %157 = load i32, ptr %10, align 4
  switch i32 %157, label %160 [
    i32 0, label %158
    i32 7, label %47
    i32 8, label %159
  ]

158:                                              ; preds = %156
  br label %47, !llvm.loop !17

159:                                              ; preds = %156, %47
  ret void

160:                                              ; preds = %156, %149
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !9, i64 0}
!13 = distinct !{!13, !6}
!14 = !{!15, !8, i64 8}
!15 = !{!"_ZTSSt4pairIxiE", !12, i64 0, !8, i64 8}
!16 = !{!15, !12, i64 0}
!17 = distinct !{!17, !6}
!18 = !{!19, !8, i64 8}
!19 = !{!"_ZTS4edge", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !12, i64 16}
!20 = !{!19, !8, i64 12}
!21 = !{!19, !8, i64 4}
!22 = !{!19, !12, i64 16}
!23 = distinct !{!23, !6}


; 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<edge, std::allocator<edge>>::_Vector_impl" }
%"struct.std::_Vector_base<edge, std::allocator<edge>>::_Vector_impl" = type { %"struct.std::_Vector_base<edge, std::allocator<edge>>::_Vector_impl_data" }
%"struct.std::_Vector_base<edge, std::allocator<edge>>::_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<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::priority_queue" = type <{ %"class.std::vector.5", [8 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, int>, std::allocator<std::pair<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type <{ i64, i32, [4 x i8] }>
%"struct.std::pair.10" = type { i32, i32 }

@e = external dso_local global %"class.std::vector", align 8
@g = external dso_local global [1050 x %"class.std::vector.0"], align 16
@phi = external dso_local local_unnamed_addr global [1050 x i64], align 16
@q = external dso_local global %"class.std::priority_queue", align 8
@dist = external dso_local local_unnamed_addr global [1050 x i64], align 16
@par = external dso_local local_unnamed_addr global [1050 x i32], align 16
@s = external dso_local global i32, align 4
@t = external dso_local local_unnamed_addr global i32, align 4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8dijkstrav() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca i64, align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair.10", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i64, align 8
  %10 = tail call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  br i1 %10, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  tail call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %11 = tail call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  br i1 %11, label %._crit_edge, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  %12 = load i32, ptr @s, align 4, !tbaa !7
  store i32 %12, ptr %1, align 4, !tbaa !7
  %13 = load i32, ptr @t, align 4, !tbaa !7
  %.not32 = icmp sgt i32 %12, %13
  br i1 %.not32, label %._crit_edge36, label %.lr.ph35

.lr.ph35:                                         ; preds = %._crit_edge
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  br label %19

._crit_edge36.loopexit:                           ; preds = %19
  %.pre = load i32, ptr @s, align 4, !tbaa !7
  br label %._crit_edge36

._crit_edge36:                                    ; preds = %._crit_edge36.loopexit, %._crit_edge
  %14 = phi i32 [ %.pre, %._crit_edge36.loopexit ], [ %12, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %15
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 0, ptr %6, align 4, !tbaa !7
  %17 = call i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) @s)
  store i64 %17, ptr %5, align 8
  call void @_ZNSt4pairIxiEC2IiiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  %18 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  br i1 %18, label %.thread, label %.lr.ph40

.lr.ph40:                                         ; preds = %._crit_edge36
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %26

19:                                               ; preds = %.lr.ph35, %19
  %storemerge33 = phi i32 [ %12, %.lr.ph35 ], [ %24, %19 ]
  %20 = sext i32 %storemerge33 to i64
  %21 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %20
  store i64 1000000000000000, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  store i64 -1000000000000000, ptr %3, align 8, !tbaa !11
  %22 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.fca.0.extract19 = extractvalue { i64, i32 } %22, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %22, 1
  store i64 %.fca.0.extract19, ptr %2, align 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  %23 = load i32, ptr %1, align 4, !tbaa !7
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %1, align 4, !tbaa !7
  %25 = load i32, ptr @t, align 4, !tbaa !7
  %.not.not = icmp slt i32 %23, %25
  br i1 %.not.not, label %19, label %._crit_edge36.loopexit, !llvm.loop !13

26:                                               ; preds = %.lr.ph40, %.loopexit
  %27 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !14
  %30 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %31 = load i64, ptr %30, align 8, !tbaa !16
  %32 = sub i64 0, %31
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  %33 = sext i32 %29 to i64
  %34 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = icmp slt i64 %35, %32
  br i1 %36, label %.loopexit, label %37, !llvm.loop !17

37:                                               ; preds = %26
  %38 = icmp eq i64 %35, 1000000000000000
  br i1 %38, label %.thread, label %.preheader

.preheader:                                       ; preds = %37
  %39 = getelementptr inbounds [1050 x %"class.std::vector.0"], ptr @g, i64 0, i64 %33
  %40 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %41 = trunc i64 %40 to i32
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph38, label %.loopexit

.lr.ph38:                                         ; preds = %.preheader
  %43 = getelementptr inbounds [1050 x i64], ptr @phi, i64 0, i64 %33
  br label %44

44:                                               ; preds = %.lr.ph38, %78
  %indvars.iv = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next, %78 ]
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv) #3
  %46 = load i32, ptr %45, align 4, !tbaa !7
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %47) #3
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i32, ptr %49, align 8, !tbaa !18
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %47) #3
  %52 = getelementptr inbounds i8, ptr %51, i64 12
  %53 = load i32, ptr %52, align 4, !tbaa !20
  %54 = icmp eq i32 %50, %53
  br i1 %54, label %78, label %55

55:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %47) #3
  %57 = getelementptr inbounds i8, ptr %56, i64 4
  %58 = load i32, ptr %57, align 4, !tbaa !21
  store i32 %58, ptr %7, align 4, !tbaa !7
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4edgeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @e, i64 noundef %47) #3
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load i64, ptr %60, align 8, !tbaa !22
  %62 = load i64, ptr %43, align 8, !tbaa !11
  %63 = load i32, ptr %7, align 4, !tbaa !7
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1050 x i64], ptr @phi, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = add i64 %61, %62
  %68 = add i64 %31, %66
  %69 = sub i64 %67, %68
  %70 = getelementptr inbounds [1050 x i64], ptr @dist, i64 0, i64 %64
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = icmp slt i64 %69, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %55
  store i64 %69, ptr %70, align 8, !tbaa !11
  %74 = getelementptr inbounds [1050 x i32], ptr @par, i64 0, i64 %64
  store i32 %46, ptr %74, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %75 = sub nsw i64 0, %69
  store i64 %75, ptr %9, align 8, !tbaa !11
  %76 = call { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.fca.0.extract = extractvalue { i64, i32 } %76, 0
  %.fca.1.extract = extractvalue { i64, i32 } %76, 1
  store i64 %.fca.0.extract, ptr %8, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) @q, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  br label %77

77:                                               ; preds = %73, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %78

78:                                               ; preds = %44, %77
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %sext = shl i64 %79, 32
  %80 = ashr exact i64 %sext, 32
  %81 = icmp slt i64 %indvars.iv.next, %80
  br i1 %81, label %44, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %78, %.preheader, %26
  %82 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) @q)
  br i1 %82, label %.thread, label %26

.thread:                                          ; preds = %.loopexit, %37, %._crit_edge36
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiRiESt4pairINSt25__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 #2

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

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

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

; Function Attrs: mustprogress 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 #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !9, i64 0}
!13 = distinct !{!13, !6}
!14 = !{!15, !8, i64 8}
!15 = !{!"_ZTSSt4pairIxiE", !12, i64 0, !8, i64 8}
!16 = !{!15, !12, i64 0}
!17 = distinct !{!17, !6}
!18 = !{!19, !8, i64 8}
!19 = !{!"_ZTS4edge", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !12, i64 16}
!20 = !{!19, !8, i64 12}
!21 = !{!19, !8, i64 4}
!22 = !{!19, !12, i64 16}
!23 = distinct !{!23, !6}


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