; LLVM IR from xtaci/algorithms :: src (bellman_ford_demo)

; 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.alg::BellmanFord" = type { %"class.alg::HashTable", i8, ptr }
%"class.alg::HashTable" = type { i32, ptr, ptr }
%"class.std::auto_ptr" = type { ptr }
%struct.list_head = type { ptr, ptr }
%"struct.alg::Graph::Adjacent" = type <{ %"struct.alg::Graph::Vertex", i32, i32, i32, [4 x i8], %struct.list_head, %struct.list_head, i32, [4 x i8] }>
%"struct.alg::Graph::Vertex" = type { i32, i32, %struct.list_head }

@.str = external hidden unnamed_addr constant [54 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"class.alg::BellmanFord", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::auto_ptr", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.alg::BellmanFord", align 8
  %10 = alloca %"class.std::auto_ptr", align 8
  store i32 0, ptr %1, align 4
  %11 = call i64 @time(ptr noundef null) #7
  %12 = trunc i64 %11 to i32
  call void @srand(i32 noundef %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 10, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = call noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef %13)
  store ptr %14, ptr %3, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !9
  call void @_ZNK3alg5Graph8printdotEv(ptr noundef nonnull align 8 dereferenceable(36) %15)
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #7
  %16 = load ptr, ptr %3, align 8, !tbaa !9
  call void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(36) %16)
  %17 = invoke i32 (ptr, ...) @printf(ptr noundef @.str)
          to label %18 unwind label %56

18:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %19 = invoke noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40) %4, i32 noundef 3)
          to label %20 unwind label %60

20:                                               ; preds = %18
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEC2EPS4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %21 = load ptr, ptr %3, align 8, !tbaa !9
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %23 unwind label %64

23:                                               ; preds = %20
  %24 = getelementptr inbounds %struct.list_head, ptr %22, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = ptrtoint ptr %25 to i64
  %27 = sub i64 %26, ptrtoint (ptr getelementptr inbounds (%"struct.alg::Graph::Adjacent", ptr inttoptr (i64 1 to ptr), i32 0, i32 6) to i64)
  %28 = add nsw i64 %27, 1
  %29 = inttoptr i64 %28 to ptr
  store ptr %29, ptr %8, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %80, %23
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alg::Graph::Adjacent", ptr %31, i32 0, i32 6
  %33 = load ptr, ptr %3, align 8, !tbaa !9
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36) %33)
          to label %35 unwind label %64

35:                                               ; preds = %30
  %36 = icmp ne ptr %32, %34
  br i1 %36, label %37, label %89

37:                                               ; preds = %35
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = getelementptr inbounds %"struct.alg::Graph::Adjacent", ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.alg::Graph::Vertex", ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %41)
          to label %43 unwind label %64

43:                                               ; preds = %37
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alg::Graph::Adjacent", ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.alg::Graph::Vertex", ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !13
  %49 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %44, i32 noundef %48)
          to label %50 unwind label %64

50:                                               ; preds = %43
  %51 = load i32, ptr %49, align 4, !tbaa !5
  %52 = icmp eq i32 %51, -1
  br i1 %52, label %53, label %68

53:                                               ; preds = %50
  %54 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %55 unwind label %64

55:                                               ; preds = %53
  br label %79

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

60:                                               ; preds = %18
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %169

64:                                               ; preds = %127, %121, %115, %109, %103, %97, %95, %91, %89, %75, %68, %53, %43, %37, %30, %20
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %6, align 4
  br label %168

68:                                               ; preds = %50
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  %71 = getelementptr inbounds %"struct.alg::Graph::Adjacent", ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %"struct.alg::Graph::Vertex", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !13
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %73)
          to label %75 unwind label %64

75:                                               ; preds = %68
  %76 = load i32, ptr %74, align 4, !tbaa !5
  %77 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %76)
          to label %78 unwind label %64

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78, %55
  br label %80

80:                                               ; preds = %79
  %81 = load ptr, ptr %8, align 8, !tbaa !9
  %82 = getelementptr inbounds %"struct.alg::Graph::Adjacent", ptr %81, i32 0, i32 6
  %83 = getelementptr inbounds %struct.list_head, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = ptrtoint ptr %84 to i64
  %86 = sub i64 %85, ptrtoint (ptr getelementptr inbounds (%"struct.alg::Graph::Adjacent", ptr inttoptr (i64 1 to ptr), i32 0, i32 6) to i64)
  %87 = add nsw i64 %86, 1
  %88 = inttoptr i64 %87 to ptr
  store ptr %88, ptr %8, align 8, !tbaa !9
  br label %30, !llvm.loop !17

89:                                               ; preds = %35
  %90 = invoke noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %91 unwind label %64

91:                                               ; preds = %89
  %92 = zext i1 %90 to i64
  %93 = select i1 %90, ptr @.str.5, ptr @.str.6
  %94 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %93)
          to label %95 unwind label %64

95:                                               ; preds = %91
  %96 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7)
          to label %97 unwind label %64

97:                                               ; preds = %95
  %98 = load ptr, ptr %3, align 8, !tbaa !9
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = getelementptr inbounds ptr, ptr %99, i64 2
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef zeroext i1 %101(ptr noundef nonnull align 8 dereferenceable(36) %98, i32 noundef 100)
          to label %103 unwind label %64

103:                                              ; preds = %97
  %104 = load ptr, ptr %3, align 8, !tbaa !9
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  %106 = getelementptr inbounds ptr, ptr %105, i64 2
  %107 = load ptr, ptr %106, align 8
  %108 = invoke noundef zeroext i1 %107(ptr noundef nonnull align 8 dereferenceable(36) %104, i32 noundef 101)
          to label %109 unwind label %64

109:                                              ; preds = %103
  %110 = load ptr, ptr %3, align 8, !tbaa !9
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = getelementptr inbounds ptr, ptr %111, i64 2
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef zeroext i1 %113(ptr noundef nonnull align 8 dereferenceable(36) %110, i32 noundef 102)
          to label %115 unwind label %64

115:                                              ; preds = %109
  %116 = load ptr, ptr %3, align 8, !tbaa !9
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = getelementptr inbounds ptr, ptr %117, i64 4
  %119 = load ptr, ptr %118, align 8
  %120 = invoke noundef zeroext i1 %119(ptr noundef nonnull align 8 dereferenceable(36) %116, i32 noundef 100, i32 noundef 101, i32 noundef -1)
          to label %121 unwind label %64

121:                                              ; preds = %115
  %122 = load ptr, ptr %3, align 8, !tbaa !9
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = getelementptr inbounds ptr, ptr %123, i64 4
  %125 = load ptr, ptr %124, align 8
  %126 = invoke noundef zeroext i1 %125(ptr noundef nonnull align 8 dereferenceable(36) %122, i32 noundef 101, i32 noundef 102, i32 noundef -1)
          to label %127 unwind label %64

127:                                              ; preds = %121
  %128 = load ptr, ptr %3, align 8, !tbaa !9
  %129 = load ptr, ptr %128, align 8, !tbaa !19
  %130 = getelementptr inbounds ptr, ptr %129, i64 4
  %131 = load ptr, ptr %130, align 8
  %132 = invoke noundef zeroext i1 %131(ptr noundef nonnull align 8 dereferenceable(36) %128, i32 noundef 102, i32 noundef 100, i32 noundef -1)
          to label %133 unwind label %64

133:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %134 = load ptr, ptr %3, align 8, !tbaa !9
  invoke void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(36) %134)
          to label %135 unwind label %154

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %136 = invoke noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40) %9, i32 noundef 0)
          to label %137 unwind label %158

137:                                              ; preds = %135
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEC2EPS4_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %136) #7
  %138 = load ptr, ptr %3, align 8, !tbaa !9
  invoke void @_ZNK3alg5Graph8printdotEv(ptr noundef nonnull align 8 dereferenceable(36) %138)
          to label %139 unwind label %162

139:                                              ; preds = %137
  %140 = invoke noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %141 unwind label %162

141:                                              ; preds = %139
  %142 = zext i1 %140 to i64
  %143 = select i1 %140, ptr @.str.5, ptr @.str.6
  %144 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %143)
          to label %145 unwind label %162

145:                                              ; preds = %141
  %146 = load ptr, ptr %3, align 8, !tbaa !9
  %147 = icmp eq ptr %146, null
  br i1 %147, label %152, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %146, align 8, !tbaa !19
  %150 = getelementptr inbounds ptr, ptr %149, i64 1
  %151 = load ptr, ptr %150, align 8
  call void %151(ptr noundef nonnull align 8 dereferenceable(36) %146) #7
  br label %152

152:                                              ; preds = %148, %145
  store i32 0, ptr %1, align 4
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %153 = load i32, ptr %1, align 4
  ret i32 %153

154:                                              ; preds = %133
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %5, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %6, align 4
  br label %167

158:                                              ; preds = %135
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %5, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %6, align 4
  br label %166

162:                                              ; preds = %141, %139, %137
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %5, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %6, align 4
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %166

166:                                              ; preds = %162, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %167

167:                                              ; preds = %166, %154
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %168

168:                                              ; preds = %167, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %169

169:                                              ; preds = %168, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %170

170:                                              ; preds = %169, %56
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr %5, align 8
  %173 = load i32, ptr %6, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS9list_head", !10, i64 0, !10, i64 8}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN3alg5Graph8AdjacentE", !15, i64 0, !6, i64 24, !6, i64 28, !6, i64 32, !12, i64 40, !12, i64 56, !6, i64 72}
!15 = !{!"_ZTSN3alg5Graph6VertexE", !6, i64 0, !6, i64 4, !12, i64 8}
!16 = !{!14, !10, i64 56}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}


; 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.alg::BellmanFord" = type { %"class.alg::HashTable", i8, ptr }
%"class.alg::HashTable" = type { i32, ptr, ptr }
%"class.std::auto_ptr" = type { ptr }

@.str = external hidden unnamed_addr constant [54 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.alg::BellmanFord", align 8
  %2 = alloca %"class.std::auto_ptr", align 8
  %3 = alloca %"class.alg::BellmanFord", align 8
  %4 = alloca %"class.std::auto_ptr", align 8
  %5 = tail call i64 @time(ptr noundef null) #7
  %6 = trunc i64 %5 to i32
  tail call void @srand(i32 noundef %6) #7
  %7 = tail call noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef 10)
  tail call void @_ZNK3alg5Graph8printdotEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #7
  call void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(36) %7)
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %9 = invoke noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef 3)
          to label %10 unwind label %25

10:                                               ; preds = %0
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEC2EPS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %9) #7
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %.0.in.in.in32 = load ptr, ptr %11, align 8, !tbaa !5
  %.0.in.in33 = ptrtoint ptr %.0.in.in.in32 to i64
  %.0.in34 = add i64 %.0.in.in33, -56
  %.035 = inttoptr i64 %.0.in34 to ptr
  %12 = getelementptr inbounds i8, ptr %.035, i64 56
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %.not36 = icmp eq ptr %12, %13
  br i1 %.not36, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10, %34
  %14 = phi ptr [ %35, %34 ], [ %12, %10 ]
  %.037 = phi ptr [ %.0, %34 ], [ %.035, %10 ]
  %15 = load i32, ptr %.037, align 8, !tbaa !10
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %15)
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %18 = load i32, ptr %.037, align 8, !tbaa !10
  %19 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %18)
          to label %20 unwind label %.loopexit

20:                                               ; preds = %.lr.ph
  %21 = load i32, ptr %19, align 4, !tbaa !14
  %22 = icmp eq i32 %21, -1
  br i1 %22, label %23, label %27

23:                                               ; preds = %20
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %34

25:                                               ; preds = %0
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %90

.loopexit:                                        ; preds = %.lr.ph, %27
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %89

.loopexit.split-lp:                               ; preds = %._crit_edge, %45, %50, %55, %60, %65
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %89

27:                                               ; preds = %20
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %29 = load i32, ptr %.037, align 8, !tbaa !10
  %30 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %29)
          to label %31 unwind label %.loopexit

31:                                               ; preds = %27
  %32 = load i32, ptr %30, align 4, !tbaa !14
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %32)
  br label %34

34:                                               ; preds = %23, %31
  %.0.in.in.in = load ptr, ptr %14, align 8, !tbaa !5
  %.0.in.in = ptrtoint ptr %.0.in.in.in to i64
  %.0.in = add i64 %.0.in.in, -56
  %.0 = inttoptr i64 %.0.in to ptr
  %35 = getelementptr inbounds i8, ptr %.0, i64 56
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %.not = icmp eq ptr %35, %36
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %34, %10
  %37 = call noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %38 = select i1 %37, ptr @.str.5, ptr @.str.6
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %38)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %41 = load ptr, ptr %7, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8
  %44 = invoke noundef zeroext i1 %43(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 100)
          to label %45 unwind label %.loopexit.split-lp

45:                                               ; preds = %._crit_edge
  %46 = load ptr, ptr %7, align 8, !tbaa !17
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8
  %49 = invoke noundef zeroext i1 %48(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 101)
          to label %50 unwind label %.loopexit.split-lp

50:                                               ; preds = %45
  %51 = load ptr, ptr %7, align 8, !tbaa !17
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef zeroext i1 %53(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 102)
          to label %55 unwind label %.loopexit.split-lp

55:                                               ; preds = %50
  %56 = load ptr, ptr %7, align 8, !tbaa !17
  %57 = getelementptr inbounds i8, ptr %56, i64 32
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 100, i32 noundef 101, i32 noundef -1)
          to label %60 unwind label %.loopexit.split-lp

60:                                               ; preds = %55
  %61 = load ptr, ptr %7, align 8, !tbaa !17
  %62 = getelementptr inbounds i8, ptr %61, i64 32
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 101, i32 noundef 102, i32 noundef -1)
          to label %65 unwind label %.loopexit.split-lp

65:                                               ; preds = %60
  %66 = load ptr, ptr %7, align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef zeroext i1 %68(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 102, i32 noundef 100, i32 noundef -1)
          to label %70 unwind label %.loopexit.split-lp

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  invoke void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %71 unwind label %81

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %72 = invoke noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef 0)
          to label %73 unwind label %83

73:                                               ; preds = %71
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEEC2EPS4_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %72) #7
  invoke void @_ZNK3alg5Graph8printdotEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %74 unwind label %85

74:                                               ; preds = %73
  %75 = call noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
  %76 = select i1 %75, ptr @.str.5, ptr @.str.6
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %76)
  %78 = load ptr, ptr %7, align 8, !tbaa !17
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load ptr, ptr %79, align 8
  call void %80(ptr noundef nonnull align 8 dereferenceable(36) %7) #7
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  ret i32 0

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %88

83:                                               ; preds = %71
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %87

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br label %87

87:                                               ; preds = %85, %83
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  br label %88

88:                                               ; preds = %87, %81
  %.pn.pn = phi { ptr, i32 } [ %.pn, %87 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %89

89:                                               ; preds = %.loopexit, %.loopexit.split-lp, %88
  %.pn29 = phi { ptr, i32 } [ %.pn.pn, %88 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt8auto_ptrIN3alg9HashTableIiiNS0_9hash_codeIiEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br label %90

90:                                               ; preds = %89, %25
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %89 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn29.pn
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg13DirectedGraph9randgraphEi(i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg11BellmanFordC2ERKNS_5GraphE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3alg11BellmanFord3runEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3alg5Graph4listEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3alg9HashTableIiiNS_9hash_codeIiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3alg11BellmanFord18has_negative_cycleEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3alg11BellmanFordD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS9list_head", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !13, i64 0}
!11 = !{!"_ZTSN3alg5Graph8AdjacentE", !12, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !6, i64 40, !6, i64 56, !13, i64 72}
!12 = !{!"_ZTSN3alg5Graph6VertexE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass