; LLVM IR from gstonge/spreading_CR :: src/StaticNetworkSIR.ll (ZN3net16StaticNetworkSIR5resetEv)

; 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::__detail::_Node_iterator.74" = type { %"struct.std::__detail::_Node_iterator_base.75" }
%"struct.std::__detail::_Node_iterator_base.75" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"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" = 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.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.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.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 }
%"struct.std::pair.76" = type { i64, %"class.std::vector.69" }
%"class.std::vector.69" = type { %"struct.std::_Vector_base.70" }
%"struct.std::_Vector_base.70" = type { %"struct.std::_Vector_base<std::pair<unsigned int, double>, std::allocator<std::pair<unsigned int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, double>, std::allocator<std::pair<unsigned int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, double>, std::allocator<std::pair<unsigned int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, double>, std::allocator<std::pair<unsigned int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.78" = type { i32, double }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3net16StaticNetworkSIR5resetEv(ptr noundef nonnull align 8 dereferenceable(384) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator.74", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.74", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator.74", align 8
  %8 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 17
  %11 = call noundef double @_ZNK3net10BinaryTree9get_valueEv(ptr noundef nonnull align 8 dereferenceable(96) %10)
  %12 = fcmp ogt double %11, 0.000000e+00
  br i1 %12, label %13, label %59

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %14 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 18
  %15 = call ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %14) #4
  %16 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.74", ptr %3, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.75", ptr %16, i32 0, i32 0
  store ptr %15, ptr %17, align 8
  br label %18

18:                                               ; preds = %54, %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %19 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 18
  %20 = call ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %19) #4
  %21 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.74", ptr %4, i32 0, i32 0
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.75", ptr %21, i32 0, i32 0
  store ptr %20, ptr %22, align 8
  %23 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br i1 %23, label %25, label %24

24:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %58

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %26 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %27 = getelementptr inbounds %"struct.std::pair.76", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %28, ptr %5, align 8, !tbaa !16
  br label %29

29:                                               ; preds = %52, %25
  %30 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %31 = getelementptr inbounds %"struct.std::pair.76", ptr %30, i32 0, i32 1
  %32 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIjdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  %33 = xor i1 %32, true
  br i1 %33, label %34, label %53

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %35 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %36 = getelementptr inbounds %"struct.std::pair.76", ptr %35, i32 0, i32 1
  %37 = call noundef i64 @_ZNKSt6vectorISt4pairIjdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #4
  %38 = sub i64 %37, 1
  store i64 %38, ptr %6, align 8, !tbaa !16
  %39 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 18
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %39, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %41 = load i64, ptr %6, align 8, !tbaa !16
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIjdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %41) #4
  %43 = getelementptr inbounds %"struct.std::pair.78", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = call noundef zeroext i1 @_ZN3net16StaticNetworkSIR11is_infectedEj(ptr noundef nonnull align 8 dereferenceable(384) %9, i32 noundef %44)
  br i1 %45, label %46, label %49

46:                                               ; preds = %34
  %47 = load i64, ptr %5, align 8, !tbaa !16
  %48 = load i64, ptr %6, align 8, !tbaa !16
  call void @_ZN3net16StaticNetworkSIR8recoveryEmm(ptr noundef nonnull align 8 dereferenceable(384) %9, i64 noundef %47, i64 noundef %48)
  br label %52

49:                                               ; preds = %34
  %50 = load i64, ptr %5, align 8, !tbaa !16
  %51 = load i64, ptr %6, align 8, !tbaa !16
  call void @_ZN3net16StaticNetworkSIR13immunity_lossEmm(ptr noundef nonnull align 8 dereferenceable(384) %9, i64 noundef %50, i64 noundef %51)
  br label %52

52:                                               ; preds = %49, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %29, !llvm.loop !21

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

54:                                               ; preds = %53
  %55 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #4
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.74", ptr %7, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.75", ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  br label %18, !llvm.loop !23

58:                                               ; preds = %24
  br label %59

59:                                               ; preds = %58, %1
  %60 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 8
  %61 = load i8, ptr %60, align 1, !tbaa !24, !range !60, !noundef !61
  %62 = trunc i8 %61 to i1
  br i1 %62, label %63, label %94

63:                                               ; preds = %59
  br label %64

64:                                               ; preds = %68, %63
  %65 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 16
  %66 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #4
  %67 = xor i1 %66, true
  br i1 %67, label %68, label %93

68:                                               ; preds = %64
  %69 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 20
  %70 = load i64, ptr %69, align 8, !tbaa !62
  %71 = sub i64 %70, 1
  store i64 %71, ptr %69, align 8, !tbaa !62
  %72 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 14
  %73 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 16
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #4
  %75 = load i32, ptr %74, align 4, !tbaa !63
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %76) #4
  store i32 0, ptr %77, align 4, !tbaa !63
  %78 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 15
  %79 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef 2) #4
  %80 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 16
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #4
  %82 = call noundef i64 @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %79, ptr noundef nonnull align 4 dereferenceable(4) %81)
  %83 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 15
  %84 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0) #4
  %85 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 16
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #4
  %87 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %84, ptr noundef nonnull align 4 dereferenceable(4) %86)
  %88 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 0
  %89 = extractvalue { ptr, i8 } %87, 0
  store ptr %89, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 1
  %91 = extractvalue { ptr, i8 } %87, 1
  store i8 %91, ptr %90, align 8
  %92 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 16
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #4
  br label %64, !llvm.loop !64

93:                                               ; preds = %64
  br label %94

94:                                               ; preds = %93, %59
  %95 = getelementptr inbounds %"class.net::StaticNetworkSIR", ptr %9, i32 0, i32 17
  call void @_ZN3net10BinaryTree5clearEv(ptr noundef nonnull align 8 dereferenceable(96) %95)
  ret void
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIjdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #1 align 2

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

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

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

declare void @_ZN3net10BinaryTree5clearEv(ptr noundef nonnull align 8 dereferenceable(96)) #3

attributes #0 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt4pairIKmSt6vectorIS_IjdESaIS2_EEE", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorISt4pairIjdESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseISt4pairIjdESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt4pairIjdESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt4pairIjdESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSSt4pairIjdE", !19, i64 0, !20, i64 8}
!19 = !{!"int", !7, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !30, i64 51}
!25 = !{!"_ZTSN3net16StaticNetworkSIRE", !26, i64 0, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !30, i64 48, !30, i64 49, !30, i64 50, !30, i64 51, !31, i64 56, !11, i64 88, !32, i64 96, !36, i64 120, !40, i64 144, !44, i64 168, !40, i64 192, !48, i64 216, !58, i64 312, !11, i64 368, !11, i64 376}
!26 = !{!"_ZTSN3net7NetworkE", !27, i64 0}
!27 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN3net14HashPropensityE", !20, i64 0, !20, i64 8, !20, i64 16, !30, i64 24}
!32 = !{!"_ZTSSt6vectorIdSaIdEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorImSaImEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseImSaImEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIjSaIjEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!"_ZTSN3net10BinaryTreeE", !6, i64 0, !6, i64 8, !49, i64 16, !53, i64 40}
!49 = !{!"_ZTSSt6vectorIPN3net14BinaryTreeNodeESaIS2_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt13unordered_mapIPN3net14BinaryTreeNodeEjSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_jEEE", !54, i64 0}
!54 = !{!"_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, !11, i64 8, !55, i64 16, !11, i64 24, !56, i64 32, !6, i64 48}
!55 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!56 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !57, i64 0, !11, i64 8}
!57 = !{!"float", !7, i64 0}
!58 = !{!"_ZTSSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE", !59, i64 0}
!59 = !{!"_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, !11, i64 8, !55, i64 16, !11, i64 24, !56, i64 32, !6, i64 48}
!60 = !{i8 0, i8 2}
!61 = !{}
!62 = !{!25, !11, i64 376}
!63 = !{!19, !19, i64 0}
!64 = distinct !{!64, !22}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::__detail::_Node_iterator.74" = type { %"struct.std::__detail::_Node_iterator_base.75" }
%"struct.std::__detail::_Node_iterator_base.75" = type { ptr }

; 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 nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3net16StaticNetworkSIR5resetEv(ptr noundef nonnull align 8 dereferenceable(384) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"struct.std::__detail::_Node_iterator.74", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator.74", align 8
  %4 = alloca i64, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 216
  %6 = tail call noundef double @_ZNK3net10BinaryTree9get_valueEv(ptr noundef nonnull align 8 dereferenceable(96) %5)
  %7 = fcmp ogt double %6, 0.000000e+00
  br i1 %7, label %8, label %36

8:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 312
  %10 = tail call ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #4
  store ptr %10, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %11 = tail call ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #4
  store ptr %11, ptr %3, align 8
  %12 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br i1 %12, label %.lr.ph5, label %._crit_edge6

._crit_edge6:                                     ; preds = %._crit_edge, %8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %36

.lr.ph5:                                          ; preds = %8, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %13 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %14 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %14, ptr %4, align 8, !tbaa !15
  %15 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIjdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br i1 %17, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph5, %29
  %18 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = call noundef i64 @_ZNKSt6vectorISt4pairIjdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %21 = add i64 %20, -1
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIjdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %21) #4
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = call noundef zeroext i1 @_ZN3net16StaticNetworkSIR11is_infectedEj(ptr noundef nonnull align 8 dereferenceable(384) %0, i32 noundef %24)
  %26 = load i64, ptr %4, align 8, !tbaa !15
  br i1 %25, label %27, label %28

27:                                               ; preds = %.lr.ph
  call void @_ZN3net16StaticNetworkSIR8recoveryEmm(ptr noundef nonnull align 8 dereferenceable(384) %0, i64 noundef %26, i64 noundef %21)
  br label %29

28:                                               ; preds = %.lr.ph
  call void @_ZN3net16StaticNetworkSIR13immunity_lossEmm(ptr noundef nonnull align 8 dereferenceable(384) %0, i64 noundef %26, i64 noundef %21)
  br label %29

29:                                               ; preds = %28, %27
  %30 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIjdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  br i1 %32, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %29, %.lr.ph5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %33 = call ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0ELb0EEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %34 = call ptr @_ZNSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #4
  store ptr %34, ptr %3, align 8
  %35 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKmSt6vectorIS1_IjdESaIS4_EEELb0EEESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br i1 %35, label %.lr.ph5, label %._crit_edge6, !llvm.loop !22

36:                                               ; preds = %._crit_edge6, %1
  %37 = getelementptr inbounds i8, ptr %0, i64 51
  %38 = load i8, ptr %37, align 1, !tbaa !23, !range !59, !noundef !60
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %36
  %40 = getelementptr inbounds i8, ptr %0, i64 192
  %41 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  br i1 %41, label %.loopexit, label %.lr.ph7

.lr.ph7:                                          ; preds = %.preheader
  %42 = getelementptr inbounds i8, ptr %0, i64 376
  %43 = getelementptr inbounds i8, ptr %0, i64 144
  %44 = getelementptr inbounds i8, ptr %0, i64 168
  br label %45

45:                                               ; preds = %.lr.ph7, %45
  %46 = load i64, ptr %42, align 8, !tbaa !61
  %47 = add i64 %46, -1
  store i64 %47, ptr %42, align 8, !tbaa !61
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %49 = load i32, ptr %48, align 4, !tbaa !62
  %50 = zext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %50) #4
  store i32 0, ptr %51, align 4, !tbaa !62
  %52 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 2) #4
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %54 = call noundef i64 @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE5eraseERKj(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %55 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #4
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %57 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %55, ptr noundef nonnull align 4 dereferenceable(4) %56)
  call void @_ZNSt6vectorIjSaIjEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %58 = call noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  br i1 %58, label %.loopexit, label %45, !llvm.loop !63

.loopexit:                                        ; preds = %45, %.preheader, %36
  call void @_ZN3net10BinaryTree5clearEv(ptr noundef nonnull align 8 dereferenceable(96) %5)
  ret void
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIjdESaIS1_EE4sizeEv(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 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIjdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIjSaIjEE5emptyEv(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(4) ptr @_ZNSt6vectorIjSaIjEEixEm(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 @_ZNSt6vectorIjSaIjEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

declare void @_ZN3net10BinaryTree5clearEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSSt4pairIKmSt6vectorIS_IjdESaIS2_EEE", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorISt4pairIjdESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseISt4pairIjdESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseISt4pairIjdESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt4pairIjdESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSSt4pairIjdE", !18, i64 0, !19, i64 8}
!18 = !{!"int", !8, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !29, i64 51}
!24 = !{!"_ZTSN3net16StaticNetworkSIRE", !25, i64 0, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !29, i64 48, !29, i64 49, !29, i64 50, !29, i64 51, !30, i64 56, !7, i64 88, !31, i64 96, !35, i64 120, !39, i64 144, !43, i64 168, !39, i64 192, !47, i64 216, !57, i64 312, !7, i64 368, !7, i64 376}
!25 = !{!"_ZTSN3net7NetworkE", !26, i64 0}
!26 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !28, i64 8}
!28 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!29 = !{!"bool", !8, i64 0}
!30 = !{!"_ZTSN3net14HashPropensityE", !19, i64 0, !19, i64 8, !19, i64 16, !29, i64 24}
!31 = !{!"_ZTSSt6vectorIdSaIdEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!35 = !{!"_ZTSSt6vectorImSaImEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseImSaImEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!39 = !{!"_ZTSSt6vectorIjSaIjEE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!43 = !{!"_ZTSSt6vectorISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEESaIS6_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!47 = !{!"_ZTSN3net10BinaryTreeE", !14, i64 0, !14, i64 8, !48, i64 16, !52, i64 40}
!48 = !{!"_ZTSSt6vectorIPN3net14BinaryTreeNodeESaIS2_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN3net14BinaryTreeNodeESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!52 = !{!"_ZTSSt13unordered_mapIPN3net14BinaryTreeNodeEjSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_jEEE", !53, i64 0}
!53 = !{!"_ZTSSt10_HashtableIPN3net14BinaryTreeNodeESt4pairIKS2_jESaIS5_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !14, i64 0, !7, i64 8, !54, i64 16, !7, i64 24, !55, i64 32, !14, i64 48}
!54 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !14, i64 0}
!55 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !56, i64 0, !7, i64 8}
!56 = !{!"float", !8, i64 0}
!57 = !{!"_ZTSSt13unordered_mapImSt6vectorISt4pairIjdESaIS2_EESt4hashImESt8equal_toImESaIS1_IKmS4_EEE", !58, i64 0}
!58 = !{!"_ZTSSt10_HashtableImSt4pairIKmSt6vectorIS0_IjdESaIS3_EEESaIS6_ENSt8__detail10_Select1stESt8equal_toImESt4hashImENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !14, i64 0, !7, i64 8, !54, i64 16, !7, i64 24, !55, i64 32, !14, i64 48}
!59 = !{i8 0, i8 2}
!60 = !{}
!61 = !{!24, !7, i64 376}
!62 = !{!18, !18, i64 0}
!63 = distinct !{!63, !21}


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