; LLVM IR from bqi343/cp-notebook :: Contests/USACO Training/Ch 4/4.1 fence6 (main)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, 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" }
%"class.std::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.8" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@vertex = external dso_local global %"class.std::map", align 8
@dist = external dso_local global [101 x [101 x i32]], align 16
@N = external dso_local global i32, align 4
@nex = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8dijkstraii(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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %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 %"class.std::set", align 8
  %11 = alloca %"class.std::set", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair.8", align 8
  %15 = alloca %"struct.std::pair.8", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.8", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair.8", align 8
  %22 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %52, %0
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 101
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %55

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

37:                                               ; preds = %48, %36
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 101
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %51

41:                                               ; preds = %37
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [101 x i32], ptr %44, i64 0, i64 %46
  store i32 1000000007, ptr %47, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %41
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %4, align 4, !tbaa !5
  br label %37, !llvm.loop !9

51:                                               ; preds = %40
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %2, align 4, !tbaa !5
  br label %32, !llvm.loop !11

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

56:                                               ; preds = %179, %55
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = load i32, ptr @N, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %183

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  %66 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %67 unwind label %83

67:                                               ; preds = %61
  %68 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %69 = extractvalue { ptr, i8 } %66, 0
  store ptr %69, ptr %68, align 8
  %70 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %71 = extractvalue { ptr, i8 } %66, 1
  store i8 %71, ptr %70, align 8
  %72 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %73 unwind label %83

73:                                               ; preds = %67
  %74 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %75 = extractvalue { ptr, i8 } %72, 0
  store ptr %75, ptr %74, align 8
  %76 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %77 = extractvalue { ptr, i8 } %72, 1
  store i8 %77, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %96, %73
  %79 = load i32, ptr %16, align 4, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %87, label %82

82:                                               ; preds = %78
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %103

83:                                               ; preds = %170, %165, %160, %157, %148, %132, %67, %61
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  br label %182

87:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %89 unwind label %99

89:                                               ; preds = %87
  %90 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %91 unwind label %99

91:                                               ; preds = %89
  %92 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %93 = extractvalue { ptr, i8 } %90, 0
  store ptr %93, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %95 = extractvalue { ptr, i8 } %90, 1
  store i8 %95, ptr %94, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %96

96:                                               ; preds = %91
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %16, align 4, !tbaa !5
  br label %78, !llvm.loop !12

99:                                               ; preds = %89, %87
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %182

103:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %118, %103
  %105 = load i32, ptr %19, align 4, !tbaa !5
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %125

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %110 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %111 unwind label %121

111:                                              ; preds = %109
  %112 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %113 unwind label %121

113:                                              ; preds = %111
  %114 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %115 = extractvalue { ptr, i8 } %112, 0
  store ptr %115, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %117 = extractvalue { ptr, i8 } %112, 1
  store i8 %117, ptr %116, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %118

118:                                              ; preds = %113
  %119 = load i32, ptr %19, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !5
  br label %104, !llvm.loop !13

121:                                              ; preds = %111, %109
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %12, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %182

125:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %126 = invoke ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %127 unwind label %137

127:                                              ; preds = %125
  %128 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %22, i32 0, i32 0
  store ptr %126, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %129 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @vertex) #6
  %130 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  %131 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br i1 %131, label %132, label %141

132:                                              ; preds = %127
  %133 = load i32, ptr @nex, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr @nex, align 4, !tbaa !5
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %136 unwind label %83

136:                                              ; preds = %132
  store i32 %133, ptr %135, align 4, !tbaa !5
  br label %141

137:                                              ; preds = %125
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %12, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %182

141:                                              ; preds = %136, %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %142 = invoke ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %143 unwind label %153

143:                                              ; preds = %141
  %144 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %142, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %145 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @vertex) #6
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %25, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br i1 %147, label %148, label %157

148:                                              ; preds = %143
  %149 = load i32, ptr @nex, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr @nex, align 4, !tbaa !5
  %151 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %152 unwind label %83

152:                                              ; preds = %148
  store i32 %149, ptr %151, align 4, !tbaa !5
  br label %157

153:                                              ; preds = %141
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %182

157:                                              ; preds = %152, %143
  %158 = load i32, ptr %7, align 4, !tbaa !5
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %160 unwind label %83

160:                                              ; preds = %157
  %161 = load i32, ptr %159, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %162
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %165 unwind label %83

165:                                              ; preds = %160
  %166 = load i32, ptr %164, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [101 x i32], ptr %163, i64 0, i64 %167
  store i32 %158, ptr %168, align 4, !tbaa !5
  %169 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %170 unwind label %83

170:                                              ; preds = %165
  %171 = load i32, ptr %169, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %172
  %174 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %175 unwind label %83

175:                                              ; preds = %170
  %176 = load i32, ptr %174, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [101 x i32], ptr %173, i64 0, i64 %177
  store i32 %158, ptr %178, align 4, !tbaa !5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %179

179:                                              ; preds = %175
  %180 = load i32, ptr %5, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %5, align 4, !tbaa !5
  br label %56, !llvm.loop !14

182:                                              ; preds = %153, %137, %121, %99, %83
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %258

183:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 1000000007, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 1, ptr %27, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %251, %183
  %185 = load i32, ptr %27, align 4, !tbaa !5
  %186 = load i32, ptr @nex, align 4, !tbaa !5
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %254

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %190 = load i32, ptr %27, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %28, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %247, %189
  %193 = load i32, ptr %28, align 4, !tbaa !5
  %194 = load i32, ptr @nex, align 4, !tbaa !5
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %250

197:                                              ; preds = %192
  %198 = load i32, ptr %27, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %199
  %201 = load i32, ptr %28, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [101 x i32], ptr %200, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = icmp ne i32 %204, 1000000007
  br i1 %205, label %206, label %246

206:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %207 = load i32, ptr %27, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %208
  %210 = load i32, ptr %28, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [101 x i32], ptr %209, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  store i32 %213, ptr %29, align 4, !tbaa !5
  %214 = load i32, ptr %28, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %215
  %217 = load i32, ptr %27, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [101 x i32], ptr %216, i64 0, i64 %218
  store i32 1000000007, ptr %219, align 4, !tbaa !5
  %220 = load i32, ptr %27, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %221
  %223 = load i32, ptr %28, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [101 x i32], ptr %222, i64 0, i64 %224
  store i32 1000000007, ptr %225, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %226 = load i32, ptr %27, align 4, !tbaa !5
  %227 = load i32, ptr %28, align 4, !tbaa !5
  %228 = call noundef i32 @_Z8dijkstraii(i32 noundef %226, i32 noundef %227)
  %229 = load i32, ptr %29, align 4, !tbaa !5
  %230 = add nsw i32 %228, %229
  store i32 %230, ptr %30, align 4, !tbaa !5
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %232 = load i32, ptr %231, align 4, !tbaa !5
  store i32 %232, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  %233 = load i32, ptr %29, align 4, !tbaa !5
  %234 = load i32, ptr %28, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %235
  %237 = load i32, ptr %27, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [101 x i32], ptr %236, i64 0, i64 %238
  store i32 %233, ptr %239, align 4, !tbaa !5
  %240 = load i32, ptr %27, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %241
  %243 = load i32, ptr %28, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [101 x i32], ptr %242, i64 0, i64 %244
  store i32 %233, ptr %245, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %246

246:                                              ; preds = %206, %197
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %28, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %28, align 4, !tbaa !5
  br label %192, !llvm.loop !15

250:                                              ; preds = %196
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %27, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %27, align 4, !tbaa !5
  br label %184, !llvm.loop !16

254:                                              ; preds = %188
  %255 = load i32, ptr %26, align 4, !tbaa !5
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %255)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %257 = load i32, ptr %1, align 4
  ret i32 %257

258:                                              ; preds = %182
  %259 = load ptr, ptr %12, align 8
  %260 = load i32, ptr %13, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

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 @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::set<int>, std::pair<const std::set<int>, int>, std::_Select1st<std::pair<const std::set<int>, int>>, std::less<std::set<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, 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" }
%"class.std::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@vertex = external dso_local global %"class.std::map", align 8
@dist = external dso_local local_unnamed_addr global [101 x [101 x i32]], align 16
@N = external dso_local global i32, align 4
@nex = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8dijkstraii(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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  br label %vector.ph

vector.ph:                                        ; preds = %vector.ph, %0
  %indvars.iv70 = phi i64 [ 0, %0 ], [ %indvars.iv.next71, %vector.ph ]
  %16 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 0
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %16, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 8
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %18, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 16
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %20, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 24
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %22, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 32
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %24, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 40
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %26, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 48
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %28, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 56
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %30, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 64
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %32, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 72
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %34, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %35, align 4, !tbaa !5
  %36 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 80
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %36, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 88
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %38, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 96
  store i32 1000000007, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 97
  store i32 1000000007, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 98
  store i32 1000000007, ptr %42, align 4, !tbaa !5
  %43 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 99
  store i32 1000000007, ptr %43, align 4, !tbaa !5
  %44 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv70, i64 100
  store i32 1000000007, ptr %44, align 4, !tbaa !5
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next71, 101
  br i1 %exitcond73.not, label %.preheader52, label %vector.ph, !llvm.loop !9

.preheader52:                                     ; preds = %vector.ph
  %45 = load i32, ptr @N, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph60, label %._crit_edge61

._crit_edge61:                                    ; preds = %118, %.preheader52
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 1000000007, ptr %13, align 4, !tbaa !5
  %47 = load i32, ptr @nex, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 1
  br i1 %48, label %.lr.ph67, label %._crit_edge68

.lr.ph60:                                         ; preds = %.preheader52, %118
  %.04559 = phi i32 [ %123, %118 ], [ 0, %.preheader52 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %49 = 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)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  %53 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %54 unwind label %60

54:                                               ; preds = %.lr.ph60
  %55 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %.preheader51 unwind label %60

.preheader51:                                     ; preds = %54
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %65, %.preheader51
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph58, label %._crit_edge

60:                                               ; preds = %115, %109, %106, %103, %96, %84, %54, %.lr.ph60
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %126

.lr.ph:                                           ; preds = %.preheader51, %65
  %.04756 = phi i32 [ %66, %65 ], [ 0, %.preheader51 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %63 unwind label %69

63:                                               ; preds = %.lr.ph
  %64 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %65 unwind label %69

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %66 = add nuw nsw i32 %.04756, 1
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %.lr.ph, label %.preheader, !llvm.loop !11

69:                                               ; preds = %63, %.lr.ph
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %126

._crit_edge:                                      ; preds = %75, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %71 = invoke ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %81 unwind label %89

.lr.ph58:                                         ; preds = %.preheader, %75
  %.04457 = phi i32 [ %76, %75 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %72 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %73 unwind label %79

73:                                               ; preds = %.lr.ph58
  %74 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %75 unwind label %79

75:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %76 = add nuw nsw i32 %.04457, 1
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %.lr.ph58, label %._crit_edge, !llvm.loop !12

79:                                               ; preds = %73, %.lr.ph58
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %126

81:                                               ; preds = %._crit_edge
  store ptr %71, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %82 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @vertex) #6
  store ptr %82, ptr %10, align 8
  %83 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %83, label %84, label %91

84:                                               ; preds = %81
  %85 = load i32, ptr @nex, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @nex, align 4, !tbaa !5
  %87 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %88 unwind label %60

88:                                               ; preds = %84
  store i32 %85, ptr %87, align 4, !tbaa !5
  br label %91

89:                                               ; preds = %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %126

91:                                               ; preds = %88, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %92 = invoke ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %93 unwind label %101

93:                                               ; preds = %91
  store ptr %92, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %94 = call ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @vertex) #6
  store ptr %94, ptr %12, align 8
  %95 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %95, label %96, label %103

96:                                               ; preds = %93
  %97 = load i32, ptr @nex, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr @nex, align 4, !tbaa !5
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %100 unwind label %60

100:                                              ; preds = %96
  store i32 %97, ptr %99, align 4, !tbaa !5
  br label %103

101:                                              ; preds = %91
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %126

103:                                              ; preds = %100, %93
  %104 = load i32, ptr %2, align 4, !tbaa !5
  %105 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %106 unwind label %60

106:                                              ; preds = %103
  %107 = load i32, ptr %105, align 4, !tbaa !5
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %109 unwind label %60

109:                                              ; preds = %106
  %110 = sext i32 %107 to i64
  %111 = load i32, ptr %108, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %110, i64 %112
  store i32 %104, ptr %113, align 4, !tbaa !5
  %114 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %115 unwind label %60

115:                                              ; preds = %109
  %116 = load i32, ptr %114, align 4, !tbaa !5
  %117 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48) @vertex, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %118 unwind label %60

118:                                              ; preds = %115
  %119 = sext i32 %116 to i64
  %120 = load i32, ptr %117, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %119, i64 %121
  store i32 %104, ptr %122, align 4, !tbaa !5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %123 = add nuw nsw i32 %.04559, 1
  %124 = load i32, ptr @N, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %.lr.ph60, label %._crit_edge61, !llvm.loop !13

126:                                              ; preds = %101, %89, %79, %69, %60
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %80, %79 ], [ %61, %60 ], [ %102, %101 ], [ %90, %89 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn

.loopexit.loopexit:                               ; preds = %150
  %.pre82 = sext i32 %152 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph67
  %.pre-phi = phi i64 [ %.pre82, %.loopexit.loopexit ], [ %134, %.lr.ph67 ]
  %127 = phi i32 [ %151, %.loopexit.loopexit ], [ %132, %.lr.ph67 ]
  %128 = phi i32 [ %152, %.loopexit.loopexit ], [ %133, %.lr.ph67 ]
  %129 = icmp slt i64 %indvars.iv.next80, %.pre-phi
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  br i1 %129, label %.lr.ph67, label %._crit_edge68, !llvm.loop !14

._crit_edge68:                                    ; preds = %.loopexit, %._crit_edge61
  %130 = phi i32 [ 1000000007, %._crit_edge61 ], [ %127, %.loopexit ]
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %130)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  ret i32 0

.lr.ph67:                                         ; preds = %._crit_edge61, %.loopexit
  %132 = phi i32 [ %127, %.loopexit ], [ 1000000007, %._crit_edge61 ]
  %133 = phi i32 [ %128, %.loopexit ], [ %47, %._crit_edge61 ]
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.loopexit ], [ 1, %._crit_edge61 ]
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %.loopexit ], [ 2, %._crit_edge61 ]
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %134 = sext i32 %133 to i64
  %135 = icmp slt i64 %indvars.iv.next80, %134
  br i1 %135, label %.lr.ph64, label %.loopexit

.lr.ph64:                                         ; preds = %.lr.ph67
  %136 = trunc nuw nsw i64 %indvars.iv79 to i32
  br label %137

137:                                              ; preds = %.lr.ph64, %150
  %138 = phi i32 [ %132, %.lr.ph64 ], [ %151, %150 ]
  %139 = phi i32 [ %133, %.lr.ph64 ], [ %152, %150 ]
  %140 = phi i32 [ %133, %.lr.ph64 ], [ %153, %150 ]
  %indvars.iv76 = phi i64 [ %indvars.iv74, %.lr.ph64 ], [ %indvars.iv.next77, %150 ]
  %141 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv79, i64 %indvars.iv76
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %.not = icmp eq i32 %142, 1000000007
  br i1 %.not, label %150, label %143

143:                                              ; preds = %137
  %144 = getelementptr inbounds [101 x [101 x i32]], ptr @dist, i64 0, i64 %indvars.iv76, i64 %indvars.iv79
  store i32 1000000007, ptr %144, align 4, !tbaa !5
  store i32 1000000007, ptr %141, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %145 = trunc nuw nsw i64 %indvars.iv76 to i32
  %146 = call noundef i32 @_Z8dijkstraii(i32 noundef %136, i32 noundef %145)
  %147 = add nsw i32 %146, %142
  store i32 %147, ptr %14, align 4, !tbaa !5
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %149 = load i32, ptr %148, align 4, !tbaa !5
  store i32 %149, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  store i32 %142, ptr %144, align 4, !tbaa !5
  store i32 %142, ptr %141, align 4, !tbaa !5
  %.pre = load i32, ptr @nex, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %137, %143
  %151 = phi i32 [ %138, %137 ], [ %149, %143 ]
  %152 = phi i32 [ %139, %137 ], [ %.pre, %143 ]
  %153 = phi i32 [ %140, %137 ], [ %.pre, %143 ]
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %154 = trunc nuw i64 %indvars.iv.next77 to i32
  %155 = icmp sgt i32 %153, %154
  br i1 %155, label %137, label %.loopexit.loopexit, !llvm.loop !15
}

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 @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKSt3setIiSt4lessIiESaIiEEiEESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt3setIiSt4lessIiESaIiEEiS1_IS4_ESaISt4pairIKS4_iEEEixERS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 = { 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass