; LLVM IR from hlzz/libvot :: src/graph (image_graph)

; 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::basic_ostream" = type { ptr, %"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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.vot::ImageGraph" = type { i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vot::ImageNode, std::allocator<vot::ImageNode>>::_Vector_impl" }
%"struct.std::_Vector_base<vot::ImageNode, std::allocator<vot::ImageNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<vot::ImageNode, std::allocator<vot::ImageNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vot::ImageNode, std::allocator<vot::ImageNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::unordered_map<int, vot::LinkEdge>, std::allocator<std::unordered_map<int, vot::LinkEdge>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_map<int, vot::LinkEdge>, std::allocator<std::unordered_map<int, vot::LinkEdge>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_map<int, vot::LinkEdge>, std::allocator<std::unordered_map<int, vot::LinkEdge>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_map<int, vot::LinkEdge>, std::allocator<std::unordered_map<int, vot::LinkEdge>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.30" = type { i32, [4 x i8], %"struct.vot::LinkEdge" }
%"struct.vot::LinkEdge" = type <{ i64, i64, float, i32, i32, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot10ImageGraph17queryExpansionSubEiidRSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEPPbii(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vot10ImageGraph14queryExpansionERSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) #3 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %23 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 5, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = icmp slt i32 %24, 1
  br i1 %25, label %29, label %26

26:                                               ; preds = %4
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = icmp sgt i32 %27, 5
  br i1 %28, label %29, label %31

29:                                               ; preds = %26, %4
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %199

31:                                               ; preds = %26
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = sext i32 %35 to i64
  call void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %37 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = sext i32 %38 to i64
  %40 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %39, i64 8)
  %41 = extractvalue { i64, i1 } %40, 1
  %42 = extractvalue { i64, i1 } %40, 0
  %43 = select i1 %41, i64 -1, i64 %42
  %44 = call noalias noundef nonnull ptr @_Znam(i64 noundef %43) #9
  store ptr %44, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %69, %31
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %72

51:                                               ; preds = %45
  %52 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = call noalias noundef nonnull ptr @_Znam(i64 noundef %54) #9
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  store ptr %55, ptr %59, align 8, !tbaa !5
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = mul i64 1, %67
  call void @llvm.memset.p0.i64(ptr align 1 %64, i8 0, i64 %68, i1 false)
  br label %69

69:                                               ; preds = %51
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %13, align 4, !tbaa !9
  br label %45, !llvm.loop !21

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

73:                                               ; preds = %113, %72
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = icmp slt i32 %74, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %73
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %116

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %80 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 2
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #8
  %84 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %83) #8
  %85 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %86 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %85, i32 0, i32 0
  store ptr %84, ptr %86, align 8
  br label %87

87:                                               ; preds = %108, %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %88 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 2
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #8
  %92 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %91) #8
  %93 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %16, i32 0, i32 0
  %94 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %93, i32 0, i32 0
  store ptr %92, ptr %94, align 8
  %95 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %95, label %97, label %96

96:                                               ; preds = %87
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %112

97:                                               ; preds = %87
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %104 = getelementptr inbounds %"struct.std::pair.30", ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds %"struct.vot::LinkEdge", ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !23
  %107 = getelementptr inbounds i8, ptr %102, i64 %106
  store i8 1, ptr %107, align 1, !tbaa !28
  br label %108

108:                                              ; preds = %97
  %109 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #8
  %110 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %17, i32 0, i32 0
  %111 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %110, i32 0, i32 0
  store ptr %109, ptr %111, align 8
  br label %87, !llvm.loop !30

112:                                              ; preds = %96
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %14, align 4, !tbaa !9
  br label %73, !llvm.loop !31

116:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %172, %116
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !11
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %175

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %124 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 2
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #8
  %128 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %127) #8
  %129 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %19, i32 0, i32 0
  %130 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %129, i32 0, i32 0
  store ptr %128, ptr %130, align 8
  br label %131

131:                                              ; preds = %167, %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %132 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 2
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #8
  %136 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %135) #8
  %137 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %138 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %137, i32 0, i32 0
  store ptr %136, ptr %138, align 8
  %139 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br i1 %139, label %141, label %140

140:                                              ; preds = %131
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %171

141:                                              ; preds = %131
  %142 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %143 = getelementptr inbounds %"struct.std::pair.30", ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %"struct.vot::LinkEdge", ptr %143, i32 0, i32 4
  %145 = load i32, ptr %144, align 8, !tbaa !32
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = icmp sge i32 %145, %146
  br i1 %147, label %148, label %166

148:                                              ; preds = %141
  %149 = load i32, ptr %18, align 4, !tbaa !9
  %150 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %151 = getelementptr inbounds %"struct.std::pair.30", ptr %150, i32 0, i32 2
  %152 = getelementptr inbounds %"struct.vot::LinkEdge", ptr %151, i32 0, i32 1
  %153 = load i64, ptr %152, align 8, !tbaa !23
  %154 = trunc i64 %153 to i32
  %155 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %156 = getelementptr inbounds %"struct.std::pair.30", ptr %155, i32 0, i32 2
  %157 = getelementptr inbounds %"struct.vot::LinkEdge", ptr %156, i32 0, i32 2
  %158 = load float, ptr %157, align 8, !tbaa !33
  %159 = fpext float %158 to double
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = sub nsw i32 %162, 1
  %164 = load i32, ptr %9, align 4, !tbaa !9
  %165 = call noundef zeroext i1 @_ZN3vot10ImageGraph17queryExpansionSubEiidRSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEPPbii(ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %149, i32 noundef %154, double noundef %159, ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef %161, i32 noundef %163, i32 noundef %164)
  br label %166

166:                                              ; preds = %148, %141
  br label %167

167:                                              ; preds = %166
  %168 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #8
  %169 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %170 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %169, i32 0, i32 0
  store ptr %168, ptr %170, align 8
  br label %131, !llvm.loop !34

171:                                              ; preds = %140
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %18, align 4, !tbaa !9
  br label %117, !llvm.loop !35

175:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %191, %175
  %177 = load i32, ptr %22, align 4, !tbaa !9
  %178 = getelementptr inbounds %"class.vot::ImageGraph", ptr %23, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !11
  %180 = icmp slt i32 %177, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %176
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %194

182:                                              ; preds = %176
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = load i32, ptr %22, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = icmp eq ptr %187, null
  br i1 %188, label %190, label %189

189:                                              ; preds = %182
  call void @_ZdaPv(ptr noundef %187) #10
  br label %190

190:                                              ; preds = %189, %182
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %22, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %22, align 4, !tbaa !9
  br label %176, !llvm.loop !36

194:                                              ; preds = %181
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = icmp eq ptr %195, null
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  call void @_ZdaPv(ptr noundef %195) #10
  br label %198

198:                                              ; preds = %197, %194
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %199

199:                                              ; preds = %198, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %200 = load i1, ptr %5, align 1
  ret i1 %200
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3vot10ImageGraphE", !10, i64 0, !13, i64 8, !17, i64 32}
!13 = !{!"_ZTSSt6vectorIN3vot9ImageNodeESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !26, i64 16}
!24 = !{!"_ZTSSt4pairIKiN3vot8LinkEdgeEE", !10, i64 0, !25, i64 8}
!25 = !{!"_ZTSN3vot8LinkEdgeE", !26, i64 0, !26, i64 8, !27, i64 16, !10, i64 20, !10, i64 24}
!26 = !{!"long", !7, i64 0}
!27 = !{!"float", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = !{!24, !10, i64 32}
!33 = !{!24, !27, i64 24}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}


; 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::basic_ostream" = type { ptr, %"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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot10ImageGraph17queryExpansionSubEiidRSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEPPbii(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vot10ImageGraph14queryExpansionERSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = add i32 %2, -1
  %or.cond = icmp ult i32 %9, 5
  br i1 %or.cond, label %12, label %10

10:                                               ; preds = %4
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  br label %84

12:                                               ; preds = %4
  tail call void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %13 = load i32, ptr %0, align 8, !tbaa !5
  %14 = sext i32 %13 to i64
  tail call void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %14)
  %15 = load i32, ptr %0, align 8, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = icmp slt i32 %15, 0
  %18 = shl nsw i64 %16, 3
  %19 = select i1 %17, i64 -1, i64 %18
  %20 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %19) #8
  %21 = icmp sgt i32 %15, 0
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge55

.lr.ph.preheader:                                 ; preds = %12
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.lr.ph

.preheader43:                                     ; preds = %.lr.ph
  br i1 %21, label %.lr.ph47, label %._crit_edge55

.lr.ph47:                                         ; preds = %.preheader43
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  br label %27

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #8
  %24 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv
  store ptr %23, ptr %24, align 8, !tbaa !19
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %23, i8 0, i64 %16, i1 false)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader43, label %.lr.ph, !llvm.loop !20

.preheader42:                                     ; preds = %._crit_edge
  %25 = icmp sgt i32 %34, 0
  br i1 %25, label %.lr.ph52, label %._crit_edge55

.lr.ph52:                                         ; preds = %.preheader42
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  br label %47

27:                                               ; preds = %.lr.ph47, %._crit_edge
  %indvars.iv57 = phi i64 [ 0, %.lr.ph47 ], [ %indvars.iv.next58, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %28 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv57) #7
  %29 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %28) #7
  store ptr %29, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %30 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv57) #7
  %31 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  store ptr %31, ptr %6, align 8
  %32 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %32, label %.lr.ph45, label %._crit_edge

.lr.ph45:                                         ; preds = %27
  %33 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv57
  %.pre = load ptr, ptr %33, align 8, !tbaa !19
  br label %37

._crit_edge:                                      ; preds = %37, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %34 = load i32, ptr %0, align 8, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next58, %35
  br i1 %36, label %27, label %.preheader42, !llvm.loop !22

37:                                               ; preds = %.lr.ph45, %37
  %38 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load i64, ptr %39, align 8, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %.pre, i64 %40
  store i8 1, ptr %41, align 1, !tbaa !28
  %42 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %43 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv57) #7
  %44 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %43) #7
  store ptr %44, ptr %6, align 8
  %45 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %45, label %37, label %._crit_edge, !llvm.loop !30

.preheader:                                       ; preds = %._crit_edge50
  %46 = icmp sgt i32 %54, 0
  br i1 %46, label %.lr.ph54, label %._crit_edge55

47:                                               ; preds = %.lr.ph52, %._crit_edge50
  %indvars.iv60 = phi i64 [ 0, %.lr.ph52 ], [ %indvars.iv.next61, %._crit_edge50 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %48 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv60) #7
  %49 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %48) #7
  store ptr %49, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %50 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv60) #7
  %51 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %50) #7
  store ptr %51, ptr %8, align 8
  %52 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %52, label %.lr.ph49.preheader, label %._crit_edge50

.lr.ph49.preheader:                               ; preds = %47
  %53 = trunc nuw nsw i64 %indvars.iv60 to i32
  br label %.lr.ph49

._crit_edge50:                                    ; preds = %70, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %54 = load i32, ptr %0, align 8, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next61, %55
  br i1 %56, label %47, label %.preheader, !llvm.loop !31

.lr.ph49:                                         ; preds = %.lr.ph49.preheader, %70
  %57 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %58 = getelementptr inbounds i8, ptr %57, i64 32
  %59 = load i32, ptr %58, align 8, !tbaa !32
  %.not = icmp slt i32 %59, %3
  br i1 %.not, label %70, label %60

60:                                               ; preds = %.lr.ph49
  %61 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load i64, ptr %62, align 8, !tbaa !23
  %64 = trunc i64 %63 to i32
  %65 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %66 = getelementptr inbounds i8, ptr %65, i64 24
  %67 = load float, ptr %66, align 8, !tbaa !33
  %68 = fpext float %67 to double
  %69 = call noundef zeroext i1 @_ZN3vot10ImageGraph17queryExpansionSubEiidRSt6vectorIS1_INS_8LinkEdgeESaIS2_EESaIS4_EEPPbii(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %53, i32 noundef %64, double noundef %68, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %20, i32 noundef %9, i32 noundef %3)
  br label %70

70:                                               ; preds = %.lr.ph49, %60
  %71 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKiN3vot8LinkEdgeEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %72 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv60) #7
  %73 = call ptr @_ZNSt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %72) #7
  store ptr %73, ptr %8, align 8
  %74 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKiN3vot8LinkEdgeEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %74, label %.lr.ph49, label %._crit_edge50, !llvm.loop !34

.lr.ph54:                                         ; preds = %.preheader, %80
  %75 = phi i32 [ %81, %80 ], [ %54, %.preheader ]
  %indvars.iv63 = phi i64 [ %indvars.iv.next64, %80 ], [ 0, %.preheader ]
  %76 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv63
  %77 = load ptr, ptr %76, align 8, !tbaa !19
  %78 = icmp eq ptr %77, null
  br i1 %78, label %80, label %79

79:                                               ; preds = %.lr.ph54
  call void @_ZdaPv(ptr noundef nonnull %77) #9
  %.pre66 = load i32, ptr %0, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %.lr.ph54, %79
  %81 = phi i32 [ %75, %.lr.ph54 ], [ %.pre66, %79 ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next64, %82
  br i1 %83, label %.lr.ph54, label %._crit_edge55, !llvm.loop !35

._crit_edge55:                                    ; preds = %80, %12, %.preheader43, %.preheader42, %.preheader
  call void @_ZdaPv(ptr noundef nonnull %20) #9
  br label %84

84:                                               ; preds = %._crit_edge55, %10
  ret i1 %or.cond
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3vot8LinkEdgeESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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 = { inlinehint 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 #5 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"_ZTSN3vot10ImageGraphE", !7, i64 0, !10, i64 8, !15, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN3vot9ImageNodeESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN3vot9ImageNodeESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt13unordered_mapIiN3vot8LinkEdgeESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEESaISB_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !26, i64 16}
!24 = !{!"_ZTSSt4pairIKiN3vot8LinkEdgeEE", !7, i64 0, !25, i64 8}
!25 = !{!"_ZTSN3vot8LinkEdgeE", !26, i64 0, !26, i64 8, !27, i64 16, !7, i64 20, !7, i64 24}
!26 = !{!"long", !8, i64 0}
!27 = !{!"float", !8, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"bool", !8, i64 0}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = !{!24, !7, i64 32}
!33 = !{!24, !27, i64 24}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !21}


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