; LLVM IR from tangjz/acm-icpc :: leetcode/extra/Shopee_003-Order Delivery.ll (ZN4Flow8DijkstraEv)

; 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"

%"struct.Flow::Edge" = type { i32, i32, i32, i64 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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] }>

@_ZN4Flow1NE = external dso_local global i32, align 4
@_ZN4Flow1SE = external dso_local global i32, align 4
@_ZN4Flow1TE = external dso_local global i32, align 4
@_ZN4Flow3lnkE = external dso_local global [45 x i32], align 16
@_ZN4Flow3disE = external dso_local global [45 x i64], align 16
@_ZN4Flow3sumE = external dso_local global i64, align 8
@_ZN4Flow1eE = external dso_local global [819 x %"struct.Flow::Edge"], align 16
@_ZN4Flow3visE = external dso_local global [45 x i8], align 16

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Flow8DijkstraEv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i1, align 1
  %2 = alloca %"class.std::priority_queue", align 8
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca { i64, i32 }, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca i64, align 8
  %15 = alloca { i64, i32 }, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
  %18 = load i32, ptr @_ZN4Flow1NE, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = mul i64 %19, 8
  call void @llvm.memset.p0.i64(ptr align 16 @_ZN4Flow3disE, i8 63, i64 %20, i1 false)
  %21 = load i32, ptr @_ZN4Flow1NE, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = mul i64 %22, 1
  call void @llvm.memset.p0.i64(ptr align 16 @_ZN4Flow3visE, i8 0, i64 %23, i1 false)
  %24 = load i32, ptr @_ZN4Flow1TE, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %25
  store i64 0, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %27 = load i32, ptr @_ZN4Flow1TE, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = sub nsw i64 0, %30
  store i64 %31, ptr %4, align 8, !tbaa !9
  %32 = invoke { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) @_ZN4Flow1TE)
          to label %33 unwind label %51

33:                                               ; preds = %0
  store { i64, i32 } %32, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %7, i64 12, i1 false)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %34 unwind label %51

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  br label %35

35:                                               ; preds = %134, %132, %34
  %36 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %37 unwind label %55

37:                                               ; preds = %35
  %38 = xor i1 %36, true
  br i1 %38, label %39, label %136

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %40 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %41 unwind label %59

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"struct.std::pair", ptr %40, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !11
  store i32 %43, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %2)
          to label %44 unwind label %59

44:                                               ; preds = %41
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [45 x i8], ptr @_ZN4Flow3visE, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !13, !range !15, !noundef !16
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %63

50:                                               ; preds = %44
  store i32 2, ptr %9, align 4
  br label %132, !llvm.loop !17

51:                                               ; preds = %33, %0
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %5, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  br label %197

55:                                               ; preds = %35
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  br label %197

59:                                               ; preds = %41, %39
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %5, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %6, align 4
  br label %135

63:                                               ; preds = %44
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [45 x i8], ptr @_ZN4Flow3visE, i64 0, i64 %65
  store i8 1, ptr %66, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [45 x i32], ptr @_ZN4Flow3lnkE, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  store i32 %70, ptr %10, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %125, %63
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = icmp ne i32 %72, -1
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %131

75:                                               ; preds = %71
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = xor i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %78
  %80 = getelementptr inbounds %"struct.Flow::Edge", ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !19
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %84, label %83

83:                                               ; preds = %75
  br label %125

84:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %86
  %88 = getelementptr inbounds %"struct.Flow::Edge", ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !21
  store i32 %89, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = xor i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %96
  %98 = getelementptr inbounds %"struct.Flow::Edge", ptr %97, i32 0, i32 3
  %99 = load i64, ptr %98, align 8, !tbaa !22
  %100 = add nsw i64 %93, %99
  store i64 %100, ptr %12, align 8, !tbaa !9
  %101 = load i64, ptr %12, align 8, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp slt i64 %101, %105
  br i1 %106, label %107, label %124

107:                                              ; preds = %84
  %108 = load i64, ptr %12, align 8, !tbaa !9
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %110
  store i64 %108, ptr %111, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = sub nsw i64 0, %115
  store i64 %116, ptr %14, align 8, !tbaa !9
  %117 = invoke { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %118 unwind label %120

118:                                              ; preds = %107
  store { i64, i32 } %117, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %15, i64 12, i1 false)
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(12) %13)
          to label %119 unwind label %120

119:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %124

120:                                              ; preds = %118, %107
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %135

124:                                              ; preds = %119, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %125

125:                                              ; preds = %124, %83
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %127
  %129 = getelementptr inbounds %"struct.Flow::Edge", ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 8, !tbaa !23
  store i32 %130, ptr %10, align 4, !tbaa !5
  br label %71, !llvm.loop !24

131:                                              ; preds = %74
  store i32 0, ptr %9, align 4
  br label %132

132:                                              ; preds = %131, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %133 = load i32, ptr %9, align 4
  switch i32 %133, label %203 [
    i32 0, label %134
    i32 2, label %35
  ]

134:                                              ; preds = %132
  br label %35, !llvm.loop !17

135:                                              ; preds = %120, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %197

136:                                              ; preds = %37
  %137 = load i32, ptr @_ZN4Flow1SE, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !9
  %141 = icmp eq i64 %140, 4557430888798830399
  br i1 %141, label %142, label %143

142:                                              ; preds = %136
  store i1 false, ptr %1, align 1
  store i32 1, ptr %9, align 4
  br label %195

143:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %185, %143
  %145 = load i32, ptr %16, align 4, !tbaa !5
  %146 = load i32, ptr @_ZN4Flow1NE, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %188

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %150 = load i32, ptr %16, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [45 x i32], ptr @_ZN4Flow3lnkE, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  store i32 %153, ptr %17, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %178, %149
  %155 = load i32, ptr %17, align 4, !tbaa !5
  %156 = icmp ne i32 %155, -1
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %184

158:                                              ; preds = %154
  %159 = load i32, ptr %17, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %160
  %162 = getelementptr inbounds %"struct.Flow::Edge", ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !21
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = load i32, ptr %16, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !9
  %171 = sub nsw i64 %166, %170
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %173
  %175 = getelementptr inbounds %"struct.Flow::Edge", ptr %174, i32 0, i32 3
  %176 = load i64, ptr %175, align 8, !tbaa !22
  %177 = add nsw i64 %176, %171
  store i64 %177, ptr %175, align 8, !tbaa !22
  br label %178

178:                                              ; preds = %158
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %180
  %182 = getelementptr inbounds %"struct.Flow::Edge", ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 8, !tbaa !23
  store i32 %183, ptr %17, align 4, !tbaa !5
  br label %154, !llvm.loop !25

184:                                              ; preds = %157
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %16, align 4, !tbaa !5
  br label %144, !llvm.loop !26

188:                                              ; preds = %148
  %189 = load i32, ptr @_ZN4Flow1SE, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !9
  %193 = load i64, ptr @_ZN4Flow3sumE, align 8, !tbaa !9
  %194 = add nsw i64 %193, %192
  store i64 %194, ptr @_ZN4Flow3sumE, align 8, !tbaa !9
  store i1 true, ptr %1, align 1
  store i32 1, ptr %9, align 4
  br label %195

195:                                              ; preds = %188, %142
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  %196 = load i1, ptr %1, align 1
  ret i1 %196

197:                                              ; preds = %135, %55, %51
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %5, align 8
  %200 = load i32, ptr %6, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202

203:                                              ; preds = %132
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 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)) #3 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)) #3

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #5 align 2

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

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

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


; 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"

%"struct.Flow::Edge" = type { i32, i32, i32, i64 }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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] }>

@_ZN4Flow1NE = external dso_local local_unnamed_addr global i32, align 4
@_ZN4Flow1SE = external dso_local local_unnamed_addr global i32, align 4
@_ZN4Flow1TE = external dso_local global i32, align 4
@_ZN4Flow3lnkE = external dso_local local_unnamed_addr global [45 x i32], align 16
@_ZN4Flow3disE = external dso_local local_unnamed_addr global [45 x i64], align 16
@_ZN4Flow3sumE = external dso_local local_unnamed_addr global i64, align 8
@_ZN4Flow1eE = external dso_local local_unnamed_addr global [819 x %"struct.Flow::Edge"], align 16
@_ZN4Flow3visE = external dso_local local_unnamed_addr global [45 x i8], align 16

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Flow8DijkstraEv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::priority_queue", align 8
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #5
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %7 = load i32, ptr @_ZN4Flow1NE, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = shl nsw i64 %8, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZN4Flow3disE, i8 63, i64 %9, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZN4Flow3visE, i8 0, i64 %8, i1 false)
  %10 = load i32, ptr @_ZN4Flow1TE, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %11
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8, !tbaa !9
  %13 = invoke { 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) @_ZN4Flow1TE)
          to label %14 unwind label %26

14:                                               ; preds = %0
  %.fca.0.extract19 = extractvalue { i64, i32 } %13, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %13, 1
  store i64 %.fca.0.extract19, ptr %2, align 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(12) %2)
          to label %15 unwind label %26

15:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %16 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  br i1 %16, label %._crit_edge, label %.lr.ph39

.lr.ph39:                                         ; preds = %15
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  br label %17

17:                                               ; preds = %.lr.ph39, %.loopexit
  %18 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !11
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
          to label %21 unwind label %28

21:                                               ; preds = %17
  %22 = sext i32 %20 to i64
  %23 = getelementptr inbounds [45 x i8], ptr @_ZN4Flow3visE, i64 0, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !13, !range !15, !noundef !16
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %.loopexit, label %30, !llvm.loop !17

26:                                               ; preds = %14, %0
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %87

28:                                               ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %87

30:                                               ; preds = %21
  store i8 1, ptr %23, align 1, !tbaa !13
  %31 = getelementptr inbounds [45 x i32], ptr @_ZN4Flow3lnkE, i64 0, i64 %22
  %.03036 = load i32, ptr %31, align 4, !tbaa !5
  %.not3237 = icmp eq i32 %.03036, -1
  br i1 %.not3237, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %32 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %22
  br label %33

33:                                               ; preds = %.lr.ph, %59
  %.03038 = phi i32 [ %.03036, %.lr.ph ], [ %.030, %59 ]
  %34 = xor i32 %.03038, 1
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %35
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !19
  %.not33 = icmp eq i32 %38, 0
  br i1 %.not33, label %._crit_edge50, label %39

._crit_edge50:                                    ; preds = %33
  %.pre = sext i32 %.03038 to i64
  br label %59

39:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %40 = sext i32 %.03038 to i64
  %41 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %40, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !21
  store i32 %42, ptr %4, align 4, !tbaa !5
  %43 = load i64, ptr %32, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %36, i64 16
  %45 = load i64, ptr %44, align 8, !tbaa !22
  %46 = add nsw i64 %45, %43
  %47 = sext i32 %42 to i64
  %48 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = icmp slt i64 %46, %49
  br i1 %50, label %51, label %58

51:                                               ; preds = %39
  store i64 %46, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %52 = sub nsw i64 0, %46
  store i64 %52, ptr %6, align 8, !tbaa !9
  %53 = invoke { i64, i32 } @_ZSt9make_pairIxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %54 unwind label %56

54:                                               ; preds = %51
  %.fca.0.extract = extractvalue { i64, i32 } %53, 0
  %.fca.1.extract = extractvalue { i64, i32 } %53, 1
  store i64 %.fca.0.extract, ptr %5, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %55 unwind label %56

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %58

56:                                               ; preds = %54, %51
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %87

58:                                               ; preds = %55, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %59

59:                                               ; preds = %._crit_edge50, %58
  %.pre-phi = phi i64 [ %.pre, %._crit_edge50 ], [ %40, %58 ]
  %60 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %.pre-phi
  %.030 = load i32, ptr %60, align 8, !tbaa !5
  %.not32 = icmp eq i32 %.030, -1
  br i1 %.not32, label %.loopexit, label %33, !llvm.loop !23

.loopexit:                                        ; preds = %59, %30, %21
  %61 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  br i1 %61, label %._crit_edge, label %17

._crit_edge:                                      ; preds = %.loopexit, %15
  %62 = load i32, ptr @_ZN4Flow1SE, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = icmp ne i64 %65, 4557430888798830399
  br i1 %66, label %.preheader, label %86

.preheader:                                       ; preds = %._crit_edge
  %67 = load i32, ptr @_ZN4Flow1NE, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph47.preheader, label %._crit_edge48

.lr.ph47.preheader:                               ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %67 to i64
  br label %.lr.ph47

._crit_edge48:                                    ; preds = %._crit_edge45, %.preheader
  %69 = load i64, ptr @_ZN4Flow3sumE, align 8, !tbaa !9
  %70 = add nsw i64 %69, %65
  store i64 %70, ptr @_ZN4Flow3sumE, align 8, !tbaa !9
  br label %86

.lr.ph47:                                         ; preds = %.lr.ph47.preheader, %._crit_edge45
  %indvars.iv = phi i64 [ 0, %.lr.ph47.preheader ], [ %indvars.iv.next, %._crit_edge45 ]
  %71 = getelementptr inbounds [45 x i32], ptr @_ZN4Flow3lnkE, i64 0, i64 %indvars.iv
  %.040 = load i32, ptr %71, align 4, !tbaa !5
  %.not41 = icmp eq i32 %.040, -1
  br i1 %.not41, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %.lr.ph47
  %72 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %indvars.iv
  %73 = load i64, ptr %72, align 8, !tbaa !9
  br label %74

._crit_edge45:                                    ; preds = %74, %.lr.ph47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge48, label %.lr.ph47, !llvm.loop !24

74:                                               ; preds = %.lr.ph44, %74
  %.042 = phi i32 [ %.040, %.lr.ph44 ], [ %.0, %74 ]
  %75 = sext i32 %.042 to i64
  %76 = getelementptr inbounds [819 x %"struct.Flow::Edge"], ptr @_ZN4Flow1eE, i64 0, i64 %75
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !21
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [45 x i64], ptr @_ZN4Flow3disE, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = sub i64 %81, %73
  %83 = getelementptr inbounds i8, ptr %76, i64 16
  %84 = load i64, ptr %83, align 8, !tbaa !22
  %85 = add nsw i64 %82, %84
  store i64 %85, ptr %83, align 8, !tbaa !22
  %.0 = load i32, ptr %76, align 8, !tbaa !5
  %.not = icmp eq i32 %.0, -1
  br i1 %.not, label %._crit_edge45, label %74, !llvm.loop !25

86:                                               ; preds = %._crit_edge, %._crit_edge48
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #5
  ret i1 %66

87:                                               ; preds = %28, %56, %26
  %.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %57, %56 ], [ %29, %28 ]
  call void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

; 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 #3 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 #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairIxiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 align 2

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

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

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


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