; LLVM IR from Rintarooo/VRPTW_ACO_Routing :: src/colony.ll (ZN6ColonyC2ESt6vectorIS0_IiSaIiEESaIS2_EEii)

; 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 }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Graph = type { ptr, i32, i32, ptr, ptr, ptr }
%class.Colony = type { %class.Graph, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZTV6Colony = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [14 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: 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) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ColonyC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.11", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %9, i32 noundef %18, i32 noundef %19)
          to label %20 unwind label %51

20:                                               ; preds = %4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTV6Colony, i32 0, i32 0, i32 2), ptr %17, align 8, !tbaa !11
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %22 unwind label %55

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %24 unwind label %55

24:                                               ; preds = %22
  %25 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = sext i32 %26 to i64
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 8)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
          to label %33 unwind label %55

33:                                               ; preds = %24
  %34 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 1
  store ptr %32, ptr %34, align 8, !tbaa !15
  %35 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %37 = sext i32 %36 to i64
  %38 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %37, i64 8)
  %39 = extractvalue { i64, i1 } %38, 1
  %40 = extractvalue { i64, i1 } %38, 0
  %41 = select i1 %39, i64 -1, i64 %40
  %42 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %41) #9
          to label %43 unwind label %55

43:                                               ; preds = %33
  %44 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 2
  store ptr %42, ptr %44, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %121, %43
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %59, label %50

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

51:                                               ; preds = %4
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %197

55:                                               ; preds = %33, %24, %22, %20
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  br label %196

59:                                               ; preds = %45
  %60 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %62, i64 8)
  %64 = extractvalue { i64, i1 } %63, 1
  %65 = extractvalue { i64, i1 } %63, 0
  %66 = select i1 %64, i64 -1, i64 %65
  %67 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %66) #9
          to label %68 unwind label %94

68:                                               ; preds = %59
  %69 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  store ptr %67, ptr %73, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = sext i32 %75 to i64
  %77 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %76, i64 8)
  %78 = extractvalue { i64, i1 } %77, 1
  %79 = extractvalue { i64, i1 } %77, 0
  %80 = select i1 %78, i64 -1, i64 %79
  %81 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %80) #9
          to label %82 unwind label %94

82:                                               ; preds = %68
  %83 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  store ptr %81, ptr %87, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %117, %82
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = icmp slt i32 %89, %91
  br i1 %92, label %98, label %93

93:                                               ; preds = %88
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %120

94:                                               ; preds = %68, %59
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %10, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %196

98:                                               ; preds = %88
  %99 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double 0.000000e+00, ptr %107, align 8, !tbaa !18
  %108 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  store double 0.000000e+00, ptr %116, align 8, !tbaa !18
  br label %117

117:                                              ; preds = %98
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %14, align 4, !tbaa !9
  br label %88, !llvm.loop !20

120:                                              ; preds = %93
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %12, align 4, !tbaa !9
  br label %45, !llvm.loop !22

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

125:                                              ; preds = %192, %124
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !13
  %129 = icmp slt i32 %126, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %125
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %195

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %16, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %188, %131
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 2
  %137 = load i32, ptr %136, align 4, !tbaa !13
  %138 = icmp slt i32 %135, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %134
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %191

140:                                              ; preds = %134
  %141 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  store double 1.000000e+00, ptr %149, align 8, !tbaa !18
  %150 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %155, i64 %157
  store double 1.000000e+00, ptr %158, align 8, !tbaa !18
  %159 = getelementptr inbounds %class.Graph, ptr %17, i32 0, i32 5
  %160 = load ptr, ptr %159, align 8, !tbaa !23
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !18
  %169 = fdiv double 1.000000e+00, %168
  %170 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !17
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds double, ptr %175, i64 %177
  store double %169, ptr %178, align 8, !tbaa !18
  %179 = getelementptr inbounds %class.Colony, ptr %17, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !17
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds ptr, ptr %180, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %169, ptr %187, align 8, !tbaa !18
  br label %188

188:                                              ; preds = %140
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %16, align 4, !tbaa !9
  br label %134, !llvm.loop !24

191:                                              ; preds = %139
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %15, align 4, !tbaa !9
  br label %125, !llvm.loop !25

195:                                              ; preds = %130
  ret void

196:                                              ; preds = %94, %55
  call void @_ZN5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #8
  br label %197

197:                                              ; preds = %196, %51
  %198 = load ptr, ptr %10, align 8
  %199 = load i32, ptr %11, align 4
  %200 = insertvalue { ptr, i32 } poison, ptr %198, 0
  %201 = insertvalue { ptr, i32 } %200, i32 %199, 1
  resume { ptr, i32 } %201
}

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

declare void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

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

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

!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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 12}
!14 = !{!"_ZTS5Graph", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!16, !6, i64 40}
!16 = !{!"_ZTS6Colony", !14, i64 0, !6, i64 40, !6, i64 48}
!17 = !{!16, !6, i64 48}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!14, !6, i64 32}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}


; 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 }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZTV6Colony = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1

; 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 #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ColonyC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.11", align 8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %1)
  invoke void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %5, i32 noundef %2, i32 noundef %3)
          to label %6 unwind label %62

6:                                                ; preds = %4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTV6Colony, i64 16), ptr %0, align 8, !tbaa !5
  %7 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %8 unwind label %64

8:                                                ; preds = %6
  %9 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %10 unwind label %64

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  %12 = load i32, ptr %11, align 4, !tbaa !8
  %13 = sext i32 %12 to i64
  %14 = icmp slt i32 %12, 0
  %15 = shl nsw i64 %13, 3
  %16 = select i1 %14, i64 -1, i64 %15
  %17 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %16) #7
          to label %18 unwind label %64

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %17, ptr %19, align 8, !tbaa !13
  %20 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %16) #7
          to label %21 unwind label %64

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %20, ptr %22, align 8, !tbaa !15
  %23 = icmp sgt i32 %12, 0
  br i1 %23, label %.lr.ph41.split.us.preheader, label %._crit_edge

.lr.ph41.split.us.preheader:                      ; preds = %21
  %wide.trip.count50 = zext nneg i32 %12 to i64
  %min.iters.check = icmp ult i32 %12, 4
  %n.vec = and i64 %wide.trip.count50, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count50
  %xtraiter = and i64 %wide.trip.count50, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph41.split.us

.lr.ph41.split.us:                                ; preds = %.lr.ph41.split.us.preheader, %._crit_edge.us
  %24 = phi ptr [ %17, %.lr.ph41.split.us.preheader ], [ %31, %._crit_edge.us ]
  %indvars.iv47 = phi i64 [ 0, %.lr.ph41.split.us.preheader ], [ %indvars.iv.next48, %._crit_edge.us ]
  %25 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %16) #7
          to label %26 unwind label %.split.us

26:                                               ; preds = %.lr.ph41.split.us
  %27 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv47
  store ptr %25, ptr %27, align 8, !tbaa !16
  %28 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %16) #7
          to label %.lr.ph.us unwind label %.split.us

.lr.ph.us:                                        ; preds = %26
  %29 = load ptr, ptr %22, align 8, !tbaa !15
  %30 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv47
  store ptr %28, ptr %30, align 8, !tbaa !16
  %31 = load ptr, ptr %19, align 8, !tbaa !13
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv47
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = load ptr, ptr %22, align 8, !tbaa !15
  %35 = getelementptr inbounds ptr, ptr %34, i64 %indvars.iv47
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = ptrtoint ptr %36 to i64
  %38 = ptrtoint ptr %33 to i64
  %39 = sub i64 %37, %38
  %diff.check = icmp ult i64 %39, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us ]
  %40 = getelementptr inbounds double, ptr %33, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  store <2 x double> zeroinitializer, ptr %40, align 8, !tbaa !17
  store <2 x double> zeroinitializer, ptr %41, align 8, !tbaa !17
  %42 = getelementptr inbounds double, ptr %36, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <2 x double> zeroinitializer, ptr %42, align 8, !tbaa !17
  store <2 x double> zeroinitializer, ptr %43, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph.us
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %45 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.prol
  store double 0.000000e+00, ptr %45, align 8, !tbaa !17
  %46 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.prol
  store double 0.000000e+00, ptr %46, align 8, !tbaa !17
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !23

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %47 = sub nsw i64 %indvars.iv.ph, %wide.trip.count50
  %48 = icmp ugt i64 %47, -4
  br i1 %48, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %49 = getelementptr inbounds double, ptr %33, i64 %indvars.iv
  store double 0.000000e+00, ptr %49, align 8, !tbaa !17
  %50 = getelementptr inbounds double, ptr %36, i64 %indvars.iv
  store double 0.000000e+00, ptr %50, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %51, align 8, !tbaa !17
  %52 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next
  store double 0.000000e+00, ptr %52, align 8, !tbaa !17
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %53 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next.1
  store double 0.000000e+00, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next.1
  store double 0.000000e+00, ptr %54, align 8, !tbaa !17
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %55 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next.2
  store double 0.000000e+00, ptr %55, align 8, !tbaa !17
  %56 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next.2
  store double 0.000000e+00, ptr %56, align 8, !tbaa !17
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count50
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !25

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count50
  br i1 %exitcond51.not, label %.preheader, label %.lr.ph41.split.us, !llvm.loop !26

.split.us:                                        ; preds = %26, %.lr.ph41.split.us
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %86

.preheader:                                       ; preds = %._crit_edge.us
  br i1 %23, label %.lr.ph44, label %._crit_edge

.lr.ph44:                                         ; preds = %.preheader
  %58 = load ptr, ptr %19, align 8
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  %60 = load ptr, ptr %59, align 8
  %61 = load ptr, ptr %22, align 8
  %wide.trip.count62 = zext nneg i32 %12 to i64
  br label %66

62:                                               ; preds = %4
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %87

64:                                               ; preds = %18, %10, %8, %6
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %86

.loopexit:                                        ; preds = %74, %66
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count62
  br i1 %exitcond63.not, label %._crit_edge, label %66, !llvm.loop !27

._crit_edge:                                      ; preds = %.loopexit, %21, %.preheader
  ret void

66:                                               ; preds = %.lr.ph44, %.loopexit
  %indvars.iv59 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next60, %.loopexit ]
  %indvars.iv52 = phi i64 [ 1, %.lr.ph44 ], [ %indvars.iv.next53, %.loopexit ]
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %67 = icmp slt i64 %indvars.iv.next60, %13
  br i1 %67, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %66
  %68 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv59
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv59
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv59
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  br label %74

74:                                               ; preds = %.lr.ph, %74
  %indvars.iv54 = phi i64 [ %indvars.iv52, %.lr.ph ], [ %indvars.iv.next55, %74 ]
  %75 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv54
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = getelementptr inbounds double, ptr %76, i64 %indvars.iv59
  store double 1.000000e+00, ptr %77, align 8, !tbaa !17
  %78 = getelementptr inbounds double, ptr %69, i64 %indvars.iv54
  store double 1.000000e+00, ptr %78, align 8, !tbaa !17
  %79 = getelementptr inbounds double, ptr %71, i64 %indvars.iv54
  %80 = load double, ptr %79, align 8, !tbaa !17
  %81 = fdiv double 1.000000e+00, %80
  %82 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv54
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = getelementptr inbounds double, ptr %83, i64 %indvars.iv59
  store double %81, ptr %84, align 8, !tbaa !17
  %85 = getelementptr inbounds double, ptr %73, i64 %indvars.iv54
  store double %81, ptr %85, align 8, !tbaa !17
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next55, %wide.trip.count62
  br i1 %exitcond58.not, label %.loopexit, label %74, !llvm.loop !28

86:                                               ; preds = %.split.us, %64
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %57, %.split.us ]
  call void @_ZN5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  br label %87

87:                                               ; preds = %86, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %86 ], [ %63, %62 ]
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

declare void @_ZN5GraphC2ESt6vectorIS0_IiSaIiEESaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #2

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

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

; Function Attrs: nounwind
declare void @_ZN5GraphD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

attributes #0 = { 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 #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 12}
!9 = !{!"_ZTS5Graph", !10, i64 8, !10, i64 12, !12, i64 16, !12, i64 24, !12, i64 32}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"any pointer", !11, i64 0}
!13 = !{!14, !12, i64 40}
!14 = !{!"_ZTS6Colony", !9, i64 0, !12, i64 40, !12, i64 48}
!15 = !{!14, !12, i64 48}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !11, i64 0}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !20, !21}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}


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