; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src/ASNetwork.ll (ZN9ASNetwork16configureSignalsEP4TileP8DNNLayerjj)

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

%"class.std::map.42" = type { %"class.std::_Rb_tree.43" }
%"class.std::_Rb_tree.43" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, adderconfig_t>, std::_Select1st<std::pair<const std::pair<int, int>, adderconfig_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, adderconfig_t>, std::_Select1st<std::pair<const std::pair<int, int>, adderconfig_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.50" = type { %"class.std::_Rb_tree.51" }
%"class.std::_Rb_tree.51" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, fl_t>, std::_Select1st<std::pair<const std::pair<int, int>, fl_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, fl_t>, std::_Select1st<std::pair<const std::pair<int, int>, fl_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.58" = type { %"class.std::_Rb_tree.59" }
%"class.std::_Rb_tree.59" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, std::pair<bool, bool>>, std::_Select1st<std::pair<const std::pair<int, int>, std::pair<bool, bool>>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, std::pair<bool, bool>>, std::_Select1st<std::pair<const std::pair<int, int>, std::pair<bool, bool>>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.68" = type { %"class.std::_Rb_tree.69" }
%"class.std::_Rb_tree.69" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%class.ASNetwork = type <{ %class.ReduceNetwork, i32, i32, i32, [4 x i8], %"class.std::map", %"class.std::vector", %"class.std::vector", %"class.std::map.6", %"class.std::map.6", %"class.std::vector.11", ptr, ptr, i8, [3 x i8], %class.Config, [4 x i8] }>
%class.ReduceNetwork = type { %class.Unit }
%class.Unit = type { ptr, i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, ASwitch *>, std::_Select1st<std::pair<const std::pair<int, int>, ASwitch *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, ASwitch *>, std::_Select1st<std::pair<const std::pair<int, int>, ASwitch *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl" }
%"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ASwitch *, std::allocator<ASwitch *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, Connection *>, std::_Select1st<std::pair<const std::pair<int, int>, Connection *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, Connection *>, std::_Select1st<std::pair<const std::pair<int, int>, Connection *>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Config = type { i32, %class.DSNetworkConfig, %class.DSwitchConfig, %class.MSNetworkConfig, %class.MSwitchConfig, %class.ASNetworkConfig, %class.ASwitchConfig, %class.LookUpTableConfig, %class.SDMemoryConfig }
%class.DSNetworkConfig = type { i32 }
%class.DSwitchConfig = type { i32, i32, i32, i32 }
%class.MSNetworkConfig = type { i32, i32, i32, i32 }
%class.MSwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.ASNetworkConfig = type { i32, i32 }
%class.ASwitchConfig = type { i32, i32, i32, i32, i32, i32 }
%class.LookUpTableConfig = type { i32, i32 }
%class.SDMemoryConfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ASNetwork16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::map.42", align 8
  %15 = alloca %"class.std::map.50", align 8
  %16 = alloca %"class.std::map.58", align 8
  %17 = alloca %"class.std::map.68", align 8
  %18 = alloca %"class.std::map.42", align 8
  %19 = alloca %"class.std::map.50", align 8
  %20 = alloca %"class.std::map.58", align 8
  %21 = alloca %"class.std::map.68", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 256) #8
  invoke void @_ZN11CompilerARTC2Ev(ptr noundef nonnull align 8 dereferenceable(256) %23)
          to label %24 unwind label %61

24:                                               ; preds = %5
  store ptr %23, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = load ptr, ptr %25, align 8, !tbaa !11
  %31 = getelementptr inbounds ptr, ptr %30, i64 0
  %32 = load ptr, ptr %31, align 8
  call void %32(ptr noundef nonnull align 8 dereferenceable(256) %25, ptr noundef %26, ptr noundef %27, i32 noundef %28, i32 noundef %29)
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK11CompilerART26get_switches_configurationEv(ptr dead_on_unwind writable sret(%"class.std::map.42") align 8 %14, ptr noundef nonnull align 8 dereferenceable(256) %33)
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #7
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK11CompilerART25get_fwlinks_configurationEv(ptr dead_on_unwind writable sret(%"class.std::map.50") align 8 %15, ptr noundef nonnull align 8 dereferenceable(256) %34)
          to label %35 unwind label %65

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #7
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK11CompilerART18get_childs_enabledEv(ptr dead_on_unwind writable sret(%"class.std::map.58") align 8 %16, ptr noundef nonnull align 8 dereferenceable(256) %36)
          to label %37 unwind label %69

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #7
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK11CompilerART32get_forwarding_to_memory_enabledEv(ptr dead_on_unwind writable sret(%"class.std::map.68") align 8 %17, ptr noundef nonnull align 8 dereferenceable(256) %38)
          to label %39 unwind label %73

39:                                               ; preds = %37
  invoke void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %40 unwind label %77

40:                                               ; preds = %39
  invoke void @_ZN9ASNetwork19addersConfigurationESt3mapISt4pairIiiE13adderconfig_tSt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %22, ptr noundef %18)
          to label %41 unwind label %81

41:                                               ; preds = %40
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  invoke void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %42 unwind label %77

42:                                               ; preds = %41
  invoke void @_ZN9ASNetwork23forwardingConfigurationESt3mapISt4pairIiiE4fl_tSt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %22, ptr noundef %19)
          to label %43 unwind label %85

43:                                               ; preds = %42
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #7
  invoke void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %44 unwind label %77

44:                                               ; preds = %43
  invoke void @_ZN9ASNetwork24childsLinksConfigurationESt3mapISt4pairIiiES1_IbbESt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %22, ptr noundef %20)
          to label %45 unwind label %89

45:                                               ; preds = %44
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #7
  invoke void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %46 unwind label %77

46:                                               ; preds = %45
  invoke void @_ZN9ASNetwork31forwardingToMemoryConfigurationESt3mapISt4pairIiiEbSt4lessIS2_ESaIS1_IKS2_bEEE(ptr noundef nonnull align 8 dereferenceable(460) %22, ptr noundef %21)
          to label %47 unwind label %93

47:                                               ; preds = %46
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  %48 = getelementptr inbounds %class.ASNetwork, ptr %22, i32 0, i32 13
  %49 = load i8, ptr %48, align 8, !tbaa !13, !range !53, !noundef !54
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i32
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %53, label %97

53:                                               ; preds = %47
  %54 = getelementptr inbounds %class.ASNetwork, ptr %22, i32 0, i32 12
  %55 = load ptr, ptr %54, align 8, !tbaa !55
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN18AccumulationBuffer16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(200) %55, ptr noundef %56, ptr noundef %57, i32 noundef %58, i32 noundef %59)
          to label %60 unwind label %77

60:                                               ; preds = %53
  br label %97

61:                                               ; preds = %5
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %12, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 256) #9
  br label %106

65:                                               ; preds = %24
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %12, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %13, align 4
  br label %105

69:                                               ; preds = %35
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  br label %104

73:                                               ; preds = %37
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  br label %103

77:                                               ; preds = %53, %45, %43, %41, %39
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %12, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %13, align 4
  br label %102

81:                                               ; preds = %40
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  br label %102

85:                                               ; preds = %42
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %12, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %13, align 4
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #7
  br label %102

89:                                               ; preds = %44
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %12, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %13, align 4
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #7
  br label %102

93:                                               ; preds = %46
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %12, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %13, align 4
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br label %102

97:                                               ; preds = %60, %47
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = icmp eq ptr %98, null
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  call void @_ZN11CompilerARTD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %98) #7
  call void @_ZdlPvm(ptr noundef %98, i64 noundef 256) #9
  br label %101

101:                                              ; preds = %100, %97
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #7
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #7
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void

102:                                              ; preds = %93, %89, %85, %81, %77
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  br label %103

103:                                              ; preds = %102, %73
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #7
  br label %104

104:                                              ; preds = %103, %69
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #7
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #7
  br label %105

105:                                              ; preds = %104, %65
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #7
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  br label %106

106:                                              ; preds = %105, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %107

107:                                              ; preds = %106
  %108 = load ptr, ptr %12, align 8
  %109 = load i32, ptr %13, align 4
  %110 = insertvalue { ptr, i32 } poison, ptr %108, 0
  %111 = insertvalue { ptr, i32 } %110, i32 %109, 1
  resume { ptr, i32 } %111
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART26get_switches_configurationEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.42") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART25get_fwlinks_configurationEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.50") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART18get_childs_enabledEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.58") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART32get_forwarding_to_memory_enabledEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.68") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

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

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

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

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

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

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

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

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

declare void @_ZN18AccumulationBuffer16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !39, i64 296}
!14 = !{!"_ZTS9ASNetwork", !15, i64 0, !10, i64 48, !10, i64 52, !10, i64 56, !20, i64 64, !28, i64 112, !28, i64 136, !32, i64 160, !32, i64 208, !35, i64 256, !6, i64 280, !6, i64 288, !39, i64 296, !40, i64 300}
!15 = !{!"_ZTS13ReduceNetwork", !16, i64 0}
!16 = !{!"_ZTS4Unit", !10, i64 8, !17, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !19, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIP7ASwitchSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIP7ASwitchSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !23, i64 0, !25, i64 8}
!35 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"bool", !7, i64 0}
!40 = !{!"_ZTS6Config", !10, i64 0, !41, i64 4, !42, i64 8, !43, i64 24, !45, i64 40, !46, i64 64, !48, i64 72, !49, i64 96, !50, i64 104}
!41 = !{!"_ZTS15DSNetworkConfig", !10, i64 0}
!42 = !{!"_ZTS13DSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!43 = !{!"_ZTS15MSNetworkConfig", !44, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!44 = !{!"_ZTS19MultiplierNetwork_t", !7, i64 0}
!45 = !{!"_ZTS13MSwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!46 = !{!"_ZTS15ASNetworkConfig", !47, i64 0, !10, i64 4}
!47 = !{!"_ZTS15ReduceNetwork_t", !7, i64 0}
!48 = !{!"_ZTS13ASwitchConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!49 = !{!"_ZTS17LookUpTableConfig", !10, i64 0, !10, i64 4}
!50 = !{!"_ZTS14SDMemoryConfig", !51, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !52, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!51 = !{!"_ZTS18MemoryController_t", !7, i64 0}
!52 = !{!"_ZTS17MemoryHierarchy_t", !7, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!14, !6, i64 288}


; 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::map.42" = type { %"class.std::_Rb_tree.43" }
%"class.std::_Rb_tree.43" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, adderconfig_t>, std::_Select1st<std::pair<const std::pair<int, int>, adderconfig_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, adderconfig_t>, std::_Select1st<std::pair<const std::pair<int, int>, adderconfig_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.50" = type { %"class.std::_Rb_tree.51" }
%"class.std::_Rb_tree.51" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, fl_t>, std::_Select1st<std::pair<const std::pair<int, int>, fl_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, fl_t>, std::_Select1st<std::pair<const std::pair<int, int>, fl_t>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.58" = type { %"class.std::_Rb_tree.59" }
%"class.std::_Rb_tree.59" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, std::pair<bool, bool>>, std::_Select1st<std::pair<const std::pair<int, int>, std::pair<bool, bool>>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, std::pair<bool, bool>>, std::_Select1st<std::pair<const std::pair<int, int>, std::pair<bool, bool>>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.68" = type { %"class.std::_Rb_tree.69" }
%"class.std::_Rb_tree.69" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9ASNetwork16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::map.42", align 8
  %7 = alloca %"class.std::map.50", align 8
  %8 = alloca %"class.std::map.58", align 8
  %9 = alloca %"class.std::map.68", align 8
  %10 = alloca %"class.std::map.42", align 8
  %11 = alloca %"class.std::map.50", align 8
  %12 = alloca %"class.std::map.58", align 8
  %13 = alloca %"class.std::map.68", align 8
  %14 = tail call noalias noundef nonnull dereferenceable(256) ptr @_Znwm(i64 noundef 256) #7
  invoke void @_ZN11CompilerARTC2Ev(ptr noundef nonnull align 8 dereferenceable(256) %14)
          to label %15 unwind label %35

15:                                               ; preds = %5
  %16 = load ptr, ptr %14, align 8, !tbaa !5
  %17 = load ptr, ptr %16, align 8
  tail call void %17(ptr noundef nonnull align 8 dereferenceable(256) %14, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #8
  call void @_ZNK11CompilerART26get_switches_configurationEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.42") align 8 %6, ptr noundef nonnull align 8 dereferenceable(256) %14)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  invoke void @_ZNK11CompilerART25get_fwlinks_configurationEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.50") align 8 %7, ptr noundef nonnull align 8 dereferenceable(256) %14)
          to label %18 unwind label %37

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #8
  invoke void @_ZNK11CompilerART18get_childs_enabledEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.58") align 8 %8, ptr noundef nonnull align 8 dereferenceable(256) %14)
          to label %19 unwind label %39

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  invoke void @_ZNK11CompilerART32get_forwarding_to_memory_enabledEv(ptr dead_on_unwind nonnull writable sret(%"class.std::map.68") align 8 %9, ptr noundef nonnull align 8 dereferenceable(256) %14)
          to label %20 unwind label %41

20:                                               ; preds = %19
  invoke void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %21 unwind label %43

21:                                               ; preds = %20
  invoke void @_ZN9ASNetwork19addersConfigurationESt3mapISt4pairIiiE13adderconfig_tSt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef nonnull %10)
          to label %22 unwind label %45

22:                                               ; preds = %21
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  invoke void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %23 unwind label %43

23:                                               ; preds = %22
  invoke void @_ZN9ASNetwork23forwardingConfigurationESt3mapISt4pairIiiE4fl_tSt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef nonnull %11)
          to label %24 unwind label %47

24:                                               ; preds = %23
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  invoke void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %25 unwind label %43

25:                                               ; preds = %24
  invoke void @_ZN9ASNetwork24childsLinksConfigurationESt3mapISt4pairIiiES1_IbbESt4lessIS2_ESaIS1_IKS2_S3_EEE(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef nonnull %12)
          to label %26 unwind label %49

26:                                               ; preds = %25
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  invoke void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %27 unwind label %43

27:                                               ; preds = %26
  invoke void @_ZN9ASNetwork31forwardingToMemoryConfigurationESt3mapISt4pairIiiEbSt4lessIS2_ESaIS1_IKS2_bEEE(ptr noundef nonnull align 8 dereferenceable(460) %0, ptr noundef nonnull %13)
          to label %28 unwind label %51

28:                                               ; preds = %27
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  %29 = getelementptr inbounds i8, ptr %0, i64 296
  %30 = load i8, ptr %29, align 8, !tbaa !8, !range !51, !noundef !52
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %53

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %0, i64 288
  %34 = load ptr, ptr %33, align 8, !tbaa !53
  invoke void @_ZN18AccumulationBuffer16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(200) %34, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4)
          to label %53 unwind label %43

35:                                               ; preds = %5
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 256) #9
  br label %58

37:                                               ; preds = %15
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %57

39:                                               ; preds = %18
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %56

41:                                               ; preds = %19
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %55

43:                                               ; preds = %32, %26, %24, %22, %20
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %54

45:                                               ; preds = %21
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  br label %54

47:                                               ; preds = %23
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  br label %54

49:                                               ; preds = %25
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #8
  br label %54

51:                                               ; preds = %27
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  br label %54

53:                                               ; preds = %28, %32
  call void @_ZN11CompilerARTD2Ev(ptr noundef nonnull align 8 dereferenceable(256) %14) #8
  call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 256) #9
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #8
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  ret void

54:                                               ; preds = %51, %49, %47, %45, %43
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %52, %51 ], [ %50, %49 ], [ %48, %47 ], [ %46, %45 ]
  call void @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  br label %55

55:                                               ; preds = %54, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %54 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  call void @_ZNSt3mapISt4pairIiiES0_IbbESt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  br label %56

56:                                               ; preds = %55, %39
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %55 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #8
  call void @_ZNSt3mapISt4pairIiiE4fl_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  br label %57

57:                                               ; preds = %56, %37
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %56 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3mapISt4pairIiiE13adderconfig_tSt4lessIS1_ESaIS0_IKS1_S2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  br label %58

58:                                               ; preds = %57, %35
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %57 ], [ %36, %35 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART26get_switches_configurationEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.42") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART25get_fwlinks_configurationEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.50") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART18get_childs_enabledEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.58") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11CompilerART32get_forwarding_to_memory_enabledEv(ptr dead_on_unwind noalias writable sret(%"class.std::map.68") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

declare void @_ZN18AccumulationBuffer16configureSignalsEP4TileP8DNNLayerjj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !37, i64 296}
!9 = !{!"_ZTS9ASNetwork", !10, i64 0, !12, i64 48, !12, i64 52, !12, i64 56, !18, i64 64, !26, i64 112, !26, i64 136, !30, i64 160, !30, i64 208, !33, i64 256, !16, i64 280, !16, i64 288, !37, i64 296, !38, i64 300}
!10 = !{!"_ZTS13ReduceNetwork", !11, i64 0}
!11 = !{!"_ZTS4Unit", !12, i64 8, !14, i64 16}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !17, i64 8, !13, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !13, i64 0}
!17 = !{!"long", !13, i64 0}
!18 = !{!"_ZTSSt3mapISt4pairIiiEP7ASwitchSt4lessIS1_ESaIS0_IKS1_S3_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P7ASwitchESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !17, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !13, i64 0}
!26 = !{!"_ZTSSt6vectorIP7ASwitchSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP7ASwitchSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP7ASwitchSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!30 = !{!"_ZTSSt3mapISt4pairIiiEP10ConnectionSt4lessIS1_ESaIS0_IKS1_S3_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES0_IKS1_P10ConnectionESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !21, i64 0, !23, i64 8}
!33 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!37 = !{!"bool", !13, i64 0}
!38 = !{!"_ZTS6Config", !12, i64 0, !39, i64 4, !40, i64 8, !41, i64 24, !43, i64 40, !44, i64 64, !46, i64 72, !47, i64 96, !48, i64 104}
!39 = !{!"_ZTS15DSNetworkConfig", !12, i64 0}
!40 = !{!"_ZTS13DSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!41 = !{!"_ZTS15MSNetworkConfig", !42, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!42 = !{!"_ZTS19MultiplierNetwork_t", !13, i64 0}
!43 = !{!"_ZTS13MSwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!44 = !{!"_ZTS15ASNetworkConfig", !45, i64 0, !12, i64 4}
!45 = !{!"_ZTS15ReduceNetwork_t", !13, i64 0}
!46 = !{!"_ZTS13ASwitchConfig", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!47 = !{!"_ZTS17LookUpTableConfig", !12, i64 0, !12, i64 4}
!48 = !{!"_ZTS14SDMemoryConfig", !49, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !50, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!49 = !{!"_ZTS18MemoryController_t", !13, i64 0}
!50 = !{!"_ZTS17MemoryHierarchy_t", !13, i64 0}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!9, !16, i64 288}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass