; LLVM IR from gstonge/spreading_CR :: src/QSSpreadingProcess.ll (ZN3net18QSSpreadingProcess6evolveEd)

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

%"class.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.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::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 }
%"class.net::QSSpreadingProcess" = type <{ %"class.net::SpreadingProcess.base", [7 x i8], %"class.std::vector.50", double, i32, %"class.std::uniform_int_distribution", [4 x i8] }>
%"class.net::SpreadingProcess.base" = 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 }>
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<net::Configuration, std::allocator<net::Configuration>>::_Vector_impl" }
%"struct.std::_Vector_base<net::Configuration, std::allocator<net::Configuration>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::Configuration, std::allocator<net::Configuration>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::Configuration, std::allocator<net::Configuration>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }

; 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 uwtable
define dso_local void @_ZN3net18QSSpreadingProcess6evolveEd(ptr noundef nonnull align 8 dereferenceable(800564) %0, double noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %9 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 3
  %10 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 1
  %11 = call noundef i32 @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEclEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %12 = call noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef %11)
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds [100000 x double], ptr %9, i64 0, i64 %13
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.net::QSSpreadingProcess", ptr %8, i32 0, i32 3
  %17 = load double, ptr %16, align 8, !tbaa !11
  %18 = fdiv double %15, %17
  store double %18, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %19 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 0
  %20 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 1
  %21 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 3
  %22 = call noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(800000) %21)
  store double %22, ptr %7, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %59, %2
  %24 = load double, ptr %5, align 8, !tbaa !9
  %25 = load double, ptr %7, align 8, !tbaa !9
  %26 = fadd double %24, %25
  %27 = load double, ptr %4, align 8, !tbaa !9
  %28 = fcmp olt double %26, %27
  br i1 %28, label %29, label %64

29:                                               ; preds = %23
  %30 = load double, ptr %7, align 8, !tbaa !9
  %31 = load double, ptr %5, align 8, !tbaa !9
  %32 = fadd double %31, %30
  store double %32, ptr %5, align 8, !tbaa !9
  %33 = load double, ptr %5, align 8, !tbaa !9
  %34 = load double, ptr %6, align 8, !tbaa !9
  %35 = fcmp oge double %33, %34
  br i1 %35, label %36, label %49

36:                                               ; preds = %29
  call void @_ZN3net18QSSpreadingProcess14update_historyEv(ptr noundef nonnull align 8 dereferenceable(800564) %8)
  %37 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 3
  %38 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 1
  %39 = call noundef i32 @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEclEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  %40 = call noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef %39)
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [100000 x double], ptr %37, i64 0, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %"class.net::QSSpreadingProcess", ptr %8, i32 0, i32 3
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = fdiv double %43, %45
  %47 = load double, ptr %6, align 8, !tbaa !9
  %48 = fadd double %47, %46
  store double %48, ptr %6, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %36, %29
  %50 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 0
  %51 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 1
  %52 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 2
  %53 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 7
  %54 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 8
  %55 = load i8, ptr %54, align 8, !tbaa !65, !range !66, !noundef !67
  %56 = trunc i8 %55 to i1
  call void @_ZN3net12update_eventERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERSt25uniform_real_distributionIdERSt6vectorISt4pairIjjESaISH_EEb(ptr noundef nonnull align 8 dereferenceable(384) %50, ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(24) %53, i1 noundef zeroext %56)
  %57 = call noundef zeroext i1 @_ZN3net16SpreadingProcess11is_absorbedEv(ptr noundef nonnull align 8 dereferenceable(800513) %8)
  br i1 %57, label %58, label %59

58:                                               ; preds = %49
  call void @_ZN3net18QSSpreadingProcess30get_configuration_from_historyEv(ptr noundef nonnull align 8 dereferenceable(800564) %8)
  br label %59

59:                                               ; preds = %58, %49
  %60 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 0
  %61 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 1
  %62 = getelementptr inbounds %"class.net::SpreadingProcess", ptr %8, i32 0, i32 3
  %63 = call noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384) %60, ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(800000) %62)
  store double %63, ptr %7, align 8, !tbaa !9
  br label %23, !llvm.loop !68

64:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

declare noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef) #2

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

declare noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(800000)) #2

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

declare void @_ZN3net12update_eventERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERSt25uniform_real_distributionIdERSt6vectorISt4pairIjjESaISH_EEb(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN3net16SpreadingProcess11is_absorbedEv(ptr noundef nonnull align 8 dereferenceable(800513)) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 800544}
!12 = !{!"_ZTSN3net18QSSpreadingProcessE", !13, i64 0, !58, i64 800520, !10, i64 800544, !62, i64 800552, !63, i64 800556}
!13 = !{!"_ZTSN3net16SpreadingProcessE", !14, 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}
!14 = !{!"_ZTSN3net16StaticNetworkSIRE", !15, i64 0, !10, i64 16, !10, i64 24, !10, i64 32, !10, 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}
!15 = !{!"_ZTSN3net7NetworkE", !16, i64 0}
!16 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3net14HashPropensityE", !10, i64 0, !10, i64 8, !10, 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", !10, i64 0, !10, 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 = !{!"_ZTSSt6vectorIN3net13ConfigurationESaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIN3net13ConfigurationESaIS1_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN3net13ConfigurationESaIS1_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN3net13ConfigurationESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!"int", !7, i64 0}
!63 = !{!"_ZTSSt24uniform_int_distributionIiE", !64, i64 0}
!64 = !{!"_ZTSNSt24uniform_int_distributionIiE10param_typeE", !62, i64 0, !62, i64 4}
!65 = !{!13, !19, i64 800512}
!66 = !{i8 0, i8 2}
!67 = !{}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3net18QSSpreadingProcess6evolveEd(ptr noundef nonnull align 8 dereferenceable(800564) %0, double noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 416
  %4 = getelementptr inbounds i8, ptr %0, i64 384
  %5 = tail call noundef i32 @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEclEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %6 = tail call noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef %5)
  %7 = zext i32 %6 to i64
  %8 = getelementptr inbounds [100000 x double], ptr %3, i64 0, i64 %7
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 800544
  %11 = load double, ptr %10, align 8, !tbaa !9
  %12 = tail call noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(800000) %3)
  %13 = fcmp olt double %12, %1
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %14 = fadd double %12, 0.000000e+00
  %15 = fdiv double %9, %11
  %16 = getelementptr inbounds i8, ptr %0, i64 400
  %17 = getelementptr inbounds i8, ptr %0, i64 800488
  %18 = getelementptr inbounds i8, ptr %0, i64 800512
  br label %19

19:                                               ; preds = %.lr.ph, %36
  %20 = phi double [ %14, %.lr.ph ], [ %38, %36 ]
  %.0912 = phi double [ %15, %.lr.ph ], [ %.1, %36 ]
  %21 = fcmp ult double %20, %.0912
  br i1 %21, label %31, label %22

22:                                               ; preds = %19
  tail call void @_ZN3net18QSSpreadingProcess14update_historyEv(ptr noundef nonnull align 8 dereferenceable(800564) %0)
  %23 = tail call noundef i32 @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEclEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %24 = tail call noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef %23)
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [100000 x double], ptr %3, i64 0, i64 %25
  %27 = load double, ptr %26, align 8, !tbaa !5
  %28 = load double, ptr %10, align 8, !tbaa !9
  %29 = fdiv double %27, %28
  %30 = fadd double %.0912, %29
  br label %31

31:                                               ; preds = %22, %19
  %.1 = phi double [ %30, %22 ], [ %.0912, %19 ]
  %32 = load i8, ptr %18, align 8, !tbaa !64, !range !65, !noundef !66
  %33 = trunc nuw i8 %32 to i1
  tail call void @_ZN3net12update_eventERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERSt25uniform_real_distributionIdERSt6vectorISt4pairIjjESaISH_EEb(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %33)
  %34 = tail call noundef zeroext i1 @_ZN3net16SpreadingProcess11is_absorbedEv(ptr noundef nonnull align 8 dereferenceable(800513) %0)
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  tail call void @_ZN3net18QSSpreadingProcess30get_configuration_from_historyEv(ptr noundef nonnull align 8 dereferenceable(800564) %0)
  br label %36

36:                                               ; preds = %35, %31
  %37 = tail call noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(800000) %3)
  %38 = fadd double %20, %37
  %39 = fcmp olt double %38, %1
  br i1 %39, label %19, label %._crit_edge, !llvm.loop !67

._crit_edge:                                      ; preds = %36, %2
  ret void
}

declare noundef i32 @_ZN3net9INDEX_MAPEj(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10pcg_detail6engineIjmNS_12xsh_rr_mixinIjmEELb1ENS_15specific_streamImEENS_18default_multiplierImEEEclEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

declare noundef double @_ZN3net12get_lifetimeERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERA100000_d(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(800000)) local_unnamed_addr #1

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

declare void @_ZN3net12update_eventERNS_16StaticNetworkSIRERN10pcg_detail6engineIjmNS2_12xsh_rr_mixinIjmEELb1ENS2_15specific_streamImEENS2_18default_multiplierImEEEERSt25uniform_real_distributionIdERSt6vectorISt4pairIjjESaISH_EEb(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN3net16SpreadingProcess11is_absorbedEv(ptr noundef nonnull align 8 dereferenceable(800513)) local_unnamed_addr #1

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

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 800544}
!10 = !{!"_ZTSN3net18QSSpreadingProcessE", !11, i64 0, !57, i64 800520, !6, i64 800544, !61, i64 800552, !62, i64 800556}
!11 = !{!"_ZTSN3net16SpreadingProcessE", !12, 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}
!12 = !{!"_ZTSN3net16StaticNetworkSIRE", !13, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, 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}
!13 = !{!"_ZTSN3net7NetworkE", !14, i64 0}
!14 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IjSaIjEESaIS2_EELN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0, !17, i64 8}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN3net14HashPropensityE", !6, i64 0, !6, i64 8, !6, 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", !16, i64 0, !16, i64 8, !16, 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", !16, i64 0, !16, i64 8, !16, 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", !16, i64 0, !16, i64 8, !16, 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", !16, i64 0, !16, i64 8, !16, i64 16}
!37 = !{!"_ZTSN3net10BinaryTreeE", !16, i64 0, !16, 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", !16, i64 0, !16, i64 8, !16, 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", !16, i64 0, !20, i64 8, !44, i64 16, !20, i64 24, !45, i64 32, !16, i64 48}
!44 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !16, 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", !16, i64 0, !20, i64 8, !44, i64 16, !20, i64 24, !45, i64 32, !16, 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", !6, i64 0, !6, 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", !16, i64 0, !16, i64 8, !16, i64 16}
!57 = !{!"_ZTSSt6vectorIN3net13ConfigurationESaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIN3net13ConfigurationESaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIN3net13ConfigurationESaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN3net13ConfigurationESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!61 = !{!"int", !7, i64 0}
!62 = !{!"_ZTSSt24uniform_int_distributionIiE", !63, i64 0}
!63 = !{!"_ZTSNSt24uniform_int_distributionIiE10param_typeE", !61, i64 0, !61, i64 4}
!64 = !{!11, !18, i64 800512}
!65 = !{i8 0, i8 2}
!66 = !{}
!67 = distinct !{!67, !68}
!68 = !{!"llvm.loop.mustprogress"}


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