; LLVM IR from gstonge/spreading_CR :: src/SpreadingProcess.ll (ZN3net16SpreadingProcess11estimate_R0EjjRKSt6vectorIjSaIjEE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::pair" = type { double, double }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.net::SpreadingProcess" = type <{ %"class.net::StaticNetworkSIR", %"class.pcg_detail::engine", %"class.std::uniform_real_distribution", [100000 x double], %"class.std::vector", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.45", i8, [7 x i8] }>
%"class.net::StaticNetworkSIR" = type { %"class.net::Network", double, double, double, double, i8, i8, i8, i8, [4 x i8], %"class.net::HashPropensity", i64, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.5", %"class.net::BinaryTree", %"class.std::unordered_map.25", i64, i64 }
%"class.net::Network" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.net::HashPropensity" = type <{ double, double, double, i8, [7 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::unordered_set<unsigned int>, std::allocator<std::unordered_set<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unordered_set<unsigned int>, std::allocator<std::unordered_set<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unordered_set<unsigned int>, std::allocator<std::unordered_set<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unordered_set<unsigned int>, std::allocator<std::unordered_set<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.net::BinaryTree" = type { ptr, ptr, %"class.std::vector.15", %"class.std::unordered_map" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<net::BinaryTreeNode *, std::allocator<net::BinaryTreeNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<net::BinaryTreeNode *, std::allocator<net::BinaryTreeNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::BinaryTreeNode *, std::allocator<net::BinaryTreeNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::BinaryTreeNode *, std::allocator<net::BinaryTreeNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.25" = type { %"class.std::_Hashtable.26" }
%"class.std::_Hashtable.26" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.pcg_detail::engine" = type { %"class.pcg_detail::specific_stream", i64 }
%"class.pcg_detail::specific_stream" = type { i64 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<>::param_type" }
%"struct.std::uniform_real_distribution<>::param_type" = type { double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.50" = type { i32, i32 }

@_ZTIN3net11MyExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEE4seedIJRjEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

declare void @_ZN3net16StaticNetworkSIR9infectionEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) #4

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

declare void @_ZN3net16StaticNetworkSIR13set_recoveredEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN3net16SpreadingProcess11estimate_R0EjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(800513) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::vector.5", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::allocator.7", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8
  %29 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %30 = call noundef double @_ZNK3net16StaticNetworkSIR21get_transmission_rateEv(ptr noundef nonnull align 8 dereferenceable(384) %29)
  %31 = fcmp ole double %30, 0.000000e+00
  br i1 %31, label %32, label %34

32:                                               ; preds = %4
  %33 = call ptr @__cxa_allocate_exception(i64 8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 8, i1 false)
  call void @_ZN3net11MyExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  call void @__cxa_throw(ptr %33, ptr @_ZTIN3net11MyExceptionE, ptr @_ZNSt9exceptionD2Ev) #9
  unreachable

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  %35 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 8
  %36 = load i8, ptr %35, align 8, !tbaa !11, !range !58, !noundef !59
  %37 = trunc i8 %36 to i1
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %10, align 1, !tbaa !60
  call void @_ZN3net16SpreadingProcess11set_tracingEb(ptr noundef nonnull align 8 dereferenceable(800513) %28, i1 noundef zeroext true)
  %39 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 1
  call void @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEE4seedIJRjEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %41, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %42 unwind label %60

42:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store double 0.000000e+00, ptr %16, align 8, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 0.000000e+00, ptr %17, align 8, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %190, %42
  %44 = load i32, ptr %20, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %47, label %192

47:                                               ; preds = %43
  invoke void @_ZN3net16SpreadingProcess5resetEv(ptr noundef nonnull align 8 dereferenceable(800513) %28)
          to label %48 unwind label %64

48:                                               ; preds = %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  %51 = icmp ugt i64 %50, 0
  br i1 %51, label %52, label %85

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %77, %52
  %54 = load i32, ptr %21, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %68, label %59

59:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %84

60:                                               ; preds = %34
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %14, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %241

64:                                               ; preds = %226, %193, %192, %47
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %14, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %15, align 4
  br label %240

68:                                               ; preds = %53
  %69 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load i32, ptr %21, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72)
          to label %74 unwind label %80

74:                                               ; preds = %68
  %75 = load i32, ptr %73, align 4, !tbaa !9
  invoke void @_ZN3net16StaticNetworkSIR13set_recoveredEj(ptr noundef nonnull align 8 dereferenceable(384) %69, i32 noundef %75)
          to label %76 unwind label %80

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %21, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %21, align 4, !tbaa !9
  br label %53, !llvm.loop !62

80:                                               ; preds = %74, %68
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %14, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %240

84:                                               ; preds = %59
  br label %85

85:                                               ; preds = %84, %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i8 0, ptr %22, align 1, !tbaa !60
  br label %86

86:                                               ; preds = %114, %85
  %87 = load i8, ptr %22, align 1, !tbaa !60, !range !58, !noundef !59
  %88 = trunc i8 %87 to i1
  %89 = xor i1 %88, true
  br i1 %89, label %90, label %115

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 2
  %92 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 1
  %93 = invoke noundef double @_ZNSt25uniform_real_distributionIdEclIN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) %92)
          to label %94 unwind label %110

94:                                               ; preds = %90
  %95 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %96 = invoke noundef i64 @_ZNK3net7Network4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %95)
          to label %97 unwind label %110

97:                                               ; preds = %94
  %98 = uitofp i64 %96 to double
  %99 = fmul double %93, %98
  %100 = call double @llvm.floor.f64(double %99)
  %101 = fptoui double %100 to i32
  store i32 %101, ptr %18, align 4, !tbaa !9
  %102 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = invoke noundef zeroext i1 @_ZN3net16StaticNetworkSIR14is_susceptibleEj(ptr noundef nonnull align 8 dereferenceable(384) %102, i32 noundef %103)
          to label %105 unwind label %110

105:                                              ; preds = %97
  br i1 %104, label %106, label %114

106:                                              ; preds = %105
  store i8 1, ptr %22, align 1, !tbaa !60
  %107 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %108 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3net16StaticNetworkSIR9infectionEj(ptr noundef nonnull align 8 dereferenceable(384) %107, i32 noundef %108)
          to label %109 unwind label %110

109:                                              ; preds = %106
  br label %114

110:                                              ; preds = %144, %139, %129, %106, %97, %94, %90
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %14, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %15, align 4
  br label %191

114:                                              ; preds = %109, %105
  br label %86, !llvm.loop !64

115:                                              ; preds = %86
  %116 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store double 0.000000e+00, ptr %23, align 8, !tbaa !61
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %117 unwind label %146

117:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %118 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %119 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %120 = invoke noundef i64 @_ZNK3net16StaticNetworkSIR16get_Inode_numberEv(ptr noundef nonnull align 8 dereferenceable(384) %119)
          to label %121 unwind label %150

121:                                              ; preds = %117
  %122 = trunc i64 %120 to i32
  store i32 %122, ptr %24, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %123 unwind label %150

123:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %124 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %125 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %126 = invoke noundef i64 @_ZNK3net16StaticNetworkSIR16get_Rnode_numberEv(ptr noundef nonnull align 8 dereferenceable(384) %125)
          to label %127 unwind label %154

127:                                              ; preds = %123
  %128 = trunc i64 %126 to i32
  store i32 %128, ptr %25, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %129 unwind label %154

129:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  invoke void @_ZN3net16SpreadingProcess10next_stateEv(ptr noundef nonnull align 8 dereferenceable(800513) %28)
          to label %130 unwind label %110

130:                                              ; preds = %129
  %131 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 7
  %132 = call noundef i64 @_ZNKSt6vectorISt4pairIjjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #8
  %133 = icmp ugt i64 %132, 0
  br i1 %133, label %134, label %190

134:                                              ; preds = %130
  %135 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 7
  %136 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIjjESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #8
  %137 = getelementptr inbounds %"struct.std::pair.50", ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !65
  store i32 %138, ptr %19, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %145, %134
  %140 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 0
  %141 = load i32, ptr %19, align 4, !tbaa !9
  %142 = invoke noundef zeroext i1 @_ZN3net16StaticNetworkSIR11is_infectedEj(ptr noundef nonnull align 8 dereferenceable(384) %140, i32 noundef %141)
          to label %143 unwind label %110

143:                                              ; preds = %139
  br i1 %142, label %144, label %158

144:                                              ; preds = %143
  invoke void @_ZN3net16SpreadingProcess10next_stateEv(ptr noundef nonnull align 8 dereferenceable(800513) %28)
          to label %145 unwind label %110

145:                                              ; preds = %144
  br label %139, !llvm.loop !67

146:                                              ; preds = %115
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %14, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %191

150:                                              ; preds = %121, %117
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %14, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %191

154:                                              ; preds = %127, %123
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %14, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %191

158:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %184, %158
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 7
  %163 = call noundef i64 @_ZNKSt6vectorISt4pairIjjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #8
  %164 = icmp ult i64 %161, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %187

166:                                              ; preds = %159
  %167 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %28, i32 0, i32 7
  %168 = load i32, ptr %26, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIjjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #8
  %171 = getelementptr inbounds %"struct.std::pair.50", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !68
  %173 = load i32, ptr %19, align 4, !tbaa !9
  %174 = icmp eq i32 %172, %173
  br i1 %174, label %175, label %183

175:                                              ; preds = %166
  %176 = load i32, ptr %20, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %177) #8
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %178, align 4, !tbaa !9
  %181 = load double, ptr %16, align 8, !tbaa !61
  %182 = fadd double %181, 1.000000e+00
  store double %182, ptr %16, align 8, !tbaa !61
  br label %183

183:                                              ; preds = %175, %166
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %26, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %26, align 4, !tbaa !9
  br label %159, !llvm.loop !69

187:                                              ; preds = %165
  %188 = load i32, ptr %20, align 4, !tbaa !9
  %189 = add i32 %188, 1
  store i32 %189, ptr %20, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %187, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %43, !llvm.loop !70

191:                                              ; preds = %154, %150, %146, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %240

192:                                              ; preds = %43
  invoke void @_ZN3net16SpreadingProcess5resetEv(ptr noundef nonnull align 8 dereferenceable(800513) %28)
          to label %193 unwind label %64

193:                                              ; preds = %192
  %194 = load i8, ptr %10, align 1, !tbaa !60, !range !58, !noundef !59
  %195 = trunc i8 %194 to i1
  invoke void @_ZN3net16SpreadingProcess11set_tracingEb(ptr noundef nonnull align 8 dereferenceable(800513) %28, i1 noundef zeroext %195)
          to label %196 unwind label %64

196:                                              ; preds = %193
  %197 = load i32, ptr %7, align 4, !tbaa !9
  %198 = uitofp i32 %197 to double
  %199 = load double, ptr %16, align 8, !tbaa !61
  %200 = fdiv double %199, %198
  store double %200, ptr %16, align 8, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %223, %196
  %202 = load i32, ptr %27, align 4, !tbaa !9
  %203 = load i32, ptr %7, align 4, !tbaa !9
  %204 = icmp ult i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %226

206:                                              ; preds = %201
  %207 = load i32, ptr %27, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %208) #8
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = uitofp i32 %210 to double
  %212 = load double, ptr %16, align 8, !tbaa !61
  %213 = fsub double %211, %212
  %214 = load i32, ptr %27, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %215) #8
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = uitofp i32 %217 to double
  %219 = load double, ptr %16, align 8, !tbaa !61
  %220 = fsub double %218, %219
  %221 = load double, ptr %17, align 8, !tbaa !61
  %222 = call double @llvm.fmuladd.f64(double %213, double %220, double %221)
  store double %222, ptr %17, align 8, !tbaa !61
  br label %223

223:                                              ; preds = %206
  %224 = load i32, ptr %27, align 4, !tbaa !9
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %27, align 4, !tbaa !9
  br label %201, !llvm.loop !71

226:                                              ; preds = %205
  %227 = load i32, ptr %7, align 4, !tbaa !9
  %228 = uitofp i32 %227 to double
  %229 = load double, ptr %17, align 8, !tbaa !61
  %230 = fdiv double %229, %228
  store double %230, ptr %17, align 8, !tbaa !61
  %231 = load double, ptr %17, align 8, !tbaa !61
  %232 = call double @sqrt(double noundef %231) #8
  store double %232, ptr %17, align 8, !tbaa !61
  %233 = invoke { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %234 unwind label %64

234:                                              ; preds = %226
  %235 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 0
  %236 = extractvalue { double, double } %233, 0
  store double %236, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 1
  %238 = extractvalue { double, double } %233, 1
  store double %238, ptr %237, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  %239 = load { double, double }, ptr %5, align 8
  ret { double, double } %239

240:                                              ; preds = %191, %80, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %241

241:                                              ; preds = %240, %60
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %14, align 8
  %244 = load i32, ptr %15, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

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

declare ptr @__cxa_allocate_exception(i64)

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNSt25uniform_real_distributionIdEclIN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #7

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: nounwind
declare double @sqrt(double noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

!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, !19, i64 800512}
!12 = !{!"_ZTSN3net16SpreadingProcessE", !13, i64 0, !50, i64 384, !52, i64 400, !7, i64 416, !22, i64 800416, !30, i64 800440, !30, i64 800464, !54, i64 800488, !19, i64 800512}
!13 = !{!"_ZTSN3net16StaticNetworkSIRE", !14, i64 0, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !19, i64 48, !19, i64 49, !19, i64 50, !19, i64 51, !20, i64 56, !21, i64 88, !22, i64 96, !26, i64 120, !30, i64 144, !34, i64 168, !30, i64 192, !38, i64 216, !48, i64 312, !21, i64 368, !21, i64 376}
!14 = !{!"_ZTSN3net7NetworkE", !15, i64 0}
!15 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3net14HashPropensityE", !18, i64 0, !18, i64 8, !18, i64 16, !19, i64 24}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorImSaImEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseImSaImEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSN3net10BinaryTreeE", !6, i64 0, !6, i64 8, !39, i64 16, !43, i64 40}
!39 = !{!"_ZTSSt6vectorIPN3net14BinaryTreeNodeESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt13unordered_mapIPN3net14BinaryTreeNodeEjSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_jEEE", !44, i64 0}
!44 = !{!"_ZTSSt10_HashtableIPN3net14BinaryTreeNodeESt4pairIKS2_jESaIS5_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !21, i64 8, !45, i64 16, !21, i64 24, !46, i64 32, !6, i64 48}
!45 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!46 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !47, i64 0, !21, i64 8}
!47 = !{!"float", !7, i64 0}
!48 = !{!"_ZTSSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE", !49, i64 0}
!49 = !{!"_ZTSSt10_HashtableImSt4pairIKmSt6vectorIS0_IjdESaIS3_EEESaIS6_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !21, i64 8, !45, i64 16, !21, i64 24, !46, i64 32, !6, i64 48}
!50 = !{!"_ZTSN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEE", !51, i64 0, !21, i64 8}
!51 = !{!"_ZTSN10pcg_detail15specific_streamImEE", !21, i64 0}
!52 = !{!"_ZTSSt25uniform_real_distributionIdE", !53, i64 0}
!53 = !{!"_ZTSNSt25uniform_real_distributionIdE10param_typeE", !18, i64 0, !18, i64 8}
!54 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!19, !19, i64 0}
!61 = !{!18, !18, i64 0}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}
!64 = distinct !{!64, !63}
!65 = !{!66, !10, i64 4}
!66 = !{!"_ZTSSt4pairIjjE", !10, i64 0, !10, i64 4}
!67 = distinct !{!67, !63}
!68 = !{!66, !10, i64 0}
!69 = distinct !{!69, !63}
!70 = distinct !{!70, !63}
!71 = distinct !{!71, !63}


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

@_ZTIN3net11MyExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK3net16StaticNetworkSIR16get_Inode_numberEv(ptr noundef nonnull align 8 dereferenceable(384)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEE4seedIJRjEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

declare void @_ZN3net16StaticNetworkSIR9infectionEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) local_unnamed_addr #3

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

declare void @_ZN3net16StaticNetworkSIR13set_recoveredEj(ptr noundef nonnull align 8 dereferenceable(384), i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN3net16SpreadingProcess11estimate_R0EjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(800513) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.5", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::allocator.7", align 1
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 %2, ptr %5, align 4, !tbaa !5
  %14 = tail call noundef double @_ZNK3net16StaticNetworkSIR21get_transmission_rateEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  %15 = fcmp ugt double %14, 0.000000e+00
  br i1 %15, label %18, label %16

16:                                               ; preds = %4
  %17 = tail call ptr @__cxa_allocate_exception(i64 8) #8
  store i64 0, ptr %17, align 16
  tail call void @_ZN3net11MyExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  tail call void @__cxa_throw(ptr nonnull %17, ptr nonnull @_ZTIN3net11MyExceptionE, ptr nonnull @_ZNSt9exceptionD2Ev) #9
  unreachable

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %0, i64 800512
  %20 = load i8, ptr %19, align 8, !tbaa !9, !range !57, !noundef !58
  %21 = trunc nuw i8 %20 to i1
  tail call void @_ZN3net16SpreadingProcess11set_tracingEb(ptr noundef nonnull align 8 dereferenceable(800513) %0, i1 noundef zeroext true)
  %22 = getelementptr inbounds i8, ptr %0, i64 384
  call void @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEE4seedIJRjEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  %23 = zext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %24 unwind label %35

24:                                               ; preds = %18
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %.not68 = icmp eq i32 %1, 0
  br i1 %.not68, label %._crit_edge63, label %.lr.ph62

.lr.ph62:                                         ; preds = %24
  %25 = getelementptr inbounds i8, ptr %0, i64 400
  %26 = getelementptr inbounds i8, ptr %0, i64 800416
  %27 = getelementptr inbounds i8, ptr %0, i64 800440
  %28 = getelementptr inbounds i8, ptr %0, i64 800464
  %29 = getelementptr inbounds i8, ptr %0, i64 800488
  br label %30

30:                                               ; preds = %.lr.ph62, %95
  %31 = phi double [ 0.000000e+00, %.lr.ph62 ], [ %96, %95 ]
  %.03260 = phi i32 [ 0, %.lr.ph62 ], [ %.133, %95 ]
  invoke void @_ZN3net16SpreadingProcess5resetEv(ptr noundef nonnull align 8 dereferenceable(800513) %0)
          to label %32 unwind label %.loopexit52

32:                                               ; preds = %30
  %33 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %.loopexit51.preheader, label %.preheader50

.loopexit51.preheader:                            ; preds = %40, %.preheader50, %32
  br label %.loopexit51

.preheader50:                                     ; preds = %32
  %34 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not69 = icmp eq i64 %34, 0
  br i1 %.not69, label %.loopexit51.preheader, label %.lr.ph

35:                                               ; preds = %18
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %117

.loopexit52:                                      ; preds = %30
  %lpad.loopexit54 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp53:                             ; preds = %._crit_edge63, %._crit_edge67
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph:                                           ; preds = %.preheader50, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 0, %.preheader50 ]
  %37 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv)
          to label %38 unwind label %43

38:                                               ; preds = %.lr.ph
  %39 = load i32, ptr %37, align 4, !tbaa !5
  invoke void @_ZN3net16StaticNetworkSIR13set_recoveredEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %39)
          to label %40 unwind label %43

40:                                               ; preds = %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %42 = icmp ugt i64 %41, %indvars.iv.next
  br i1 %42, label %.lr.ph, label %.loopexit51.preheader, !llvm.loop !59

43:                                               ; preds = %38, %.lr.ph
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit51:                                      ; preds = %.loopexit51.preheader, %46
  %45 = invoke noundef double @_ZNSt25uniform_real_distributionIdEclIN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %46 unwind label %.loopexit.split-lp.loopexit.loopexit

46:                                               ; preds = %.loopexit51
  %47 = call noundef i64 @_ZNK3net7Network4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %48 = uitofp i64 %47 to double
  %49 = fmul double %45, %48
  %50 = call double @llvm.floor.f64(double %49)
  %51 = fptoui double %50 to i32
  %52 = call noundef zeroext i1 @_ZN3net16StaticNetworkSIR14is_susceptibleEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %51)
  br i1 %52, label %53, label %.loopexit51

53:                                               ; preds = %46
  invoke void @_ZN3net16StaticNetworkSIR9infectionEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %51)
          to label %54 unwind label %.loopexit.split-lp.loopexit.loopexit.split-lp

.loopexit:                                        ; preds = %72
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.loopexit:             ; preds = %.loopexit51
  %lpad.loopexit79 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.loopexit.split-lp:    ; preds = %53
  %lpad.loopexit.split-lp80 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %61
  %lpad.loopexit.split-lp48 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store double 0.000000e+00, ptr %11, align 8, !tbaa !61
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %55 unwind label %73

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %56 = call noundef i64 @_ZNK3net16StaticNetworkSIR16get_Inode_numberEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  %57 = trunc i64 %56 to i32
  store i32 %57, ptr %12, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %58 unwind label %75

58:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %59 = call noundef i64 @_ZNK3net16StaticNetworkSIR16get_Rnode_numberEv(ptr noundef nonnull align 8 dereferenceable(384) %0)
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %61 unwind label %77

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  invoke void @_ZN3net16SpreadingProcess10next_stateEv(ptr noundef nonnull align 8 dereferenceable(800513) %0)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp

62:                                               ; preds = %61
  %63 = call noundef i64 @_ZNKSt6vectorISt4pairIjjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %.not42 = icmp eq i64 %63, 0
  br i1 %.not42, label %95, label %64

64:                                               ; preds = %62
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIjjESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !62
  br label %68

68:                                               ; preds = %72, %64
  %69 = call noundef zeroext i1 @_ZN3net16StaticNetworkSIR11is_infectedEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %67)
  br i1 %69, label %72, label %.preheader

.preheader:                                       ; preds = %68
  %70 = call noundef i64 @_ZNKSt6vectorISt4pairIjjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %.not70 = icmp eq i64 %70, 0
  br i1 %.not70, label %._crit_edge, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader
  %71 = zext i32 %.03260 to i64
  br label %81

72:                                               ; preds = %68
  invoke void @_ZN3net16SpreadingProcess10next_stateEv(ptr noundef nonnull align 8 dereferenceable(800513) %0)
          to label %68 unwind label %.loopexit, !llvm.loop !64

73:                                               ; preds = %54
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %.loopexit.split-lp

75:                                               ; preds = %55
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %.loopexit.split-lp

77:                                               ; preds = %58
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %.loopexit.split-lp

._crit_edge:                                      ; preds = %91, %.preheader
  %79 = phi double [ %31, %.preheader ], [ %92, %91 ]
  %80 = add i32 %.03260, 1
  br label %95

81:                                               ; preds = %.lr.ph59, %91
  %82 = phi double [ %31, %.lr.ph59 ], [ %92, %91 ]
  %indvars.iv73 = phi i64 [ 0, %.lr.ph59 ], [ %indvars.iv.next74, %91 ]
  %83 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIjjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv73) #8
  %84 = load i32, ptr %83, align 4, !tbaa !65
  %85 = icmp eq i32 %84, %67
  br i1 %85, label %86, label %91

86:                                               ; preds = %81
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %71) #8
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !5
  %90 = fadd double %82, 1.000000e+00
  store double %90, ptr %9, align 8, !tbaa !61
  br label %91

91:                                               ; preds = %81, %86
  %92 = phi double [ %82, %81 ], [ %90, %86 ]
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %93 = call noundef i64 @_ZNKSt6vectorISt4pairIjjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %94 = icmp ugt i64 %93, %indvars.iv.next74
  br i1 %94, label %81, label %._crit_edge, !llvm.loop !66

95:                                               ; preds = %._crit_edge, %62
  %96 = phi double [ %79, %._crit_edge ], [ %31, %62 ]
  %.133 = phi i32 [ %80, %._crit_edge ], [ %.03260, %62 ]
  %97 = icmp ult i32 %.133, %1
  br i1 %97, label %30, label %._crit_edge63, !llvm.loop !67

._crit_edge63:                                    ; preds = %95, %24
  %98 = phi double [ 0.000000e+00, %24 ], [ %96, %95 ]
  invoke void @_ZN3net16SpreadingProcess5resetEv(ptr noundef nonnull align 8 dereferenceable(800513) %0)
          to label %99 unwind label %.loopexit.split-lp53

99:                                               ; preds = %._crit_edge63
  call void @_ZN3net16SpreadingProcess11set_tracingEb(ptr noundef nonnull align 8 dereferenceable(800513) %0, i1 noundef zeroext %21)
  %100 = uitofp i32 %1 to double
  %101 = fdiv double %98, %100
  store double %101, ptr %9, align 8, !tbaa !61
  br i1 %.not68, label %._crit_edge67, label %.lr.ph66

._crit_edge67:                                    ; preds = %.lr.ph66, %99
  %102 = phi double [ 0.000000e+00, %99 ], [ %115, %.lr.ph66 ]
  %103 = fdiv double %102, %100
  %104 = call double @sqrt(double noundef %103) #8
  store double %104, ptr %10, align 8, !tbaa !61
  %105 = invoke { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %116 unwind label %.loopexit.split-lp53

.lr.ph66:                                         ; preds = %99, %.lr.ph66
  %106 = phi double [ %115, %.lr.ph66 ], [ 0.000000e+00, %99 ]
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %.lr.ph66 ], [ 0, %99 ]
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv76) #8
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = uitofp i32 %108 to double
  %110 = fsub double %109, %101
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv76) #8
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = uitofp i32 %112 to double
  %114 = fsub double %113, %101
  %115 = call double @llvm.fmuladd.f64(double %110, double %114, double %106)
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next77, %23
  br i1 %exitcond.not, label %._crit_edge67, label %.lr.ph66, !llvm.loop !68

116:                                              ; preds = %._crit_edge67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  ret { double, double } %105

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit.loopexit, %.loopexit.split-lp.loopexit.loopexit.split-lp, %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit52, %.loopexit.split-lp53, %73, %75, %77, %43
  %.pn44 = phi { ptr, i32 } [ %44, %43 ], [ %78, %77 ], [ %76, %75 ], [ %74, %73 ], [ %lpad.loopexit54, %.loopexit52 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp53 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp48, %.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit79, %.loopexit.split-lp.loopexit.loopexit ], [ %lpad.loopexit.split-lp80, %.loopexit.split-lp.loopexit.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %117

117:                                              ; preds = %.loopexit.split-lp, %35
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %.loopexit.split-lp ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn44.pn
}

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNSt25uniform_real_distributionIdEclIN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEEEEdRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #6

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZSt9make_pairIRdS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(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 void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

!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, !18, i64 800512}
!10 = !{!"_ZTSN3net16SpreadingProcessE", !11, i64 0, !49, i64 384, !51, i64 400, !7, i64 416, !21, i64 800416, !29, i64 800440, !29, i64 800464, !53, i64 800488, !18, i64 800512}
!11 = !{!"_ZTSN3net16StaticNetworkSIRE", !12, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !18, i64 48, !18, i64 49, !18, i64 50, !18, i64 51, !19, i64 56, !20, i64 88, !21, i64 96, !25, i64 120, !29, i64 144, !33, i64 168, !29, i64 192, !37, i64 216, !47, i64 312, !20, i64 368, !20, i64 376}
!12 = !{!"_ZTSN3net7NetworkE", !13, i64 0}
!13 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN3net14HashPropensityE", !17, i64 0, !17, i64 8, !17, i64 16, !18, i64 24}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!25 = !{!"_ZTSSt6vectorImSaImEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseImSaImEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!29 = !{!"_ZTSSt6vectorIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!33 = !{!"_ZTSSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!37 = !{!"_ZTSN3net10BinaryTreeE", !15, i64 0, !15, i64 8, !38, i64 16, !42, i64 40}
!38 = !{!"_ZTSSt6vectorIPN3net14BinaryTreeNodeESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!42 = !{!"_ZTSSt13unordered_mapIPN3net14BinaryTreeNodeEjSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_jEEE", !43, i64 0}
!43 = !{!"_ZTSSt10_HashtableIPN3net14BinaryTreeNodeESt4pairIKS2_jESaIS5_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !15, i64 0, !20, i64 8, !44, i64 16, !20, i64 24, !45, i64 32, !15, i64 48}
!44 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!45 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !46, i64 0, !20, i64 8}
!46 = !{!"float", !7, i64 0}
!47 = !{!"_ZTSSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE", !48, i64 0}
!48 = !{!"_ZTSSt10_HashtableImSt4pairIKmSt6vectorIS0_IjdESaIS3_EEESaIS6_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !15, i64 0, !20, i64 8, !44, i64 16, !20, i64 24, !45, i64 32, !15, i64 48}
!49 = !{!"_ZTSN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEE", !50, i64 0, !20, i64 8}
!50 = !{!"_ZTSN10pcg_detail15specific_streamImEE", !20, i64 0}
!51 = !{!"_ZTSSt25uniform_real_distributionIdE", !52, i64 0}
!52 = !{!"_ZTSNSt25uniform_real_distributionIdE10param_typeE", !17, i64 0, !17, i64 8}
!53 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!57 = !{i8 0, i8 2}
!58 = !{}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.mustprogress"}
!61 = !{!17, !17, i64 0}
!62 = !{!63, !6, i64 4}
!63 = !{!"_ZTSSt4pairIjjE", !6, i64 0, !6, i64 4}
!64 = distinct !{!64, !60}
!65 = !{!63, !6, i64 0}
!66 = distinct !{!66, !60}
!67 = distinct !{!67, !60}
!68 = distinct !{!68, !60}


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