; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src (SparseDenseSDMemory)

; 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.SparseDenseSDMemory = type { %class.MemoryController, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.8", i32, i32, i32, i32, i32, i32, ptr, %"class.std::vector.13", %"class.std::vector.13", ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, %"class.std::vector.8", i32, %class.SDMemoryStats }
%class.MemoryController = 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl" }
%"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Fifo *, std::allocator<Fifo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.SDMemoryStats = type { %class.Stats, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3" }
%class.Stats = type { ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow = external hidden unnamed_addr constant [98 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow(ptr noundef nonnull align 8 dereferenceable(672) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) unnamed_addr #1 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  %13 = load ptr, ptr %7, align 8
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 1
  store ptr %14, ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = call noundef i32 @_ZNK8DNNLayer14get_layer_typeEv(ptr noundef nonnull align 8 dereferenceable(84) %17)
  %19 = icmp eq i32 %18, 4
  br i1 %19, label %20, label %21

20:                                               ; preds = %6
  br label %23

21:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 88, ptr noundef @__PRETTY_FUNCTION__._ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow) #5
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 32
  store ptr %24, ptr %25, align 8, !tbaa !39
  %26 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 63
  store i8 1, ptr %26, align 8, !tbaa !40
  %27 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = call noundef i32 @_ZNK8DNNLayer5get_NEv(ptr noundef nonnull align 8 dereferenceable(84) %28)
  %30 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 4
  store i32 %29, ptr %30, align 8, !tbaa !41
  %31 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = call noundef i32 @_ZNK8DNNLayer5get_CEv(ptr noundef nonnull align 8 dereferenceable(84) %32)
  %34 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 7
  store i32 %33, ptr %34, align 4, !tbaa !42
  %35 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = call noundef i32 @_ZNK8DNNLayer5get_KEv(ptr noundef nonnull align 8 dereferenceable(84) %36)
  %38 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 5
  store i32 %37, ptr %38, align 4, !tbaa !43
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 72
  %41 = getelementptr inbounds %class.SDMemoryStats, ptr %40, i32 0, i32 11
  store i32 %39, ptr %41, align 8, !tbaa !44
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 30
  store ptr %42, ptr %43, align 8, !tbaa !45
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 31
  store ptr %44, ptr %45, align 8, !tbaa !46
  %46 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 4
  %47 = load i32, ptr %46, align 8, !tbaa !41
  %48 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 5
  %49 = load i32, ptr %48, align 4, !tbaa !43
  %50 = mul i32 %47, %49
  %51 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 65
  store i32 %50, ptr %51, align 8, !tbaa !47
  %52 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 4
  %53 = load i32, ptr %52, align 8, !tbaa !41
  %54 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 7
  %55 = load i32, ptr %54, align 4, !tbaa !42
  %56 = mul i32 %53, %55
  %57 = zext i32 %56 to i64
  %58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %57, i64 4)
  %59 = extractvalue { i64, i1 } %58, 1
  %60 = extractvalue { i64, i1 } %58, 0
  %61 = select i1 %59, i64 -1, i64 %60
  %62 = call noalias noundef nonnull ptr @_Znam(i64 noundef %61) #6
  %63 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 47
  store ptr %62, ptr %63, align 8, !tbaa !48
  %64 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 5
  %65 = load i32, ptr %64, align 4, !tbaa !43
  %66 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 7
  %67 = load i32, ptr %66, align 4, !tbaa !42
  %68 = mul i32 %65, %67
  %69 = zext i32 %68 to i64
  %70 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %69, i64 4)
  %71 = extractvalue { i64, i1 } %70, 1
  %72 = extractvalue { i64, i1 } %70, 0
  %73 = select i1 %71, i64 -1, i64 %72
  %74 = call noalias noundef nonnull ptr @_Znam(i64 noundef %73) #6
  %75 = getelementptr inbounds %class.SparseDenseSDMemory, ptr %13, i32 0, i32 48
  store ptr %74, ptr %75, align 8, !tbaa !49
  ret void
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS8Dataflow", !7, i64 0}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTS19SparseDenseSDMemory", !13, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !6, i64 120, !19, i64 128, !20, i64 136, !24, i64 160, !24, i64 184, !28, i64 208, !15, i64 232, !15, i64 236, !15, i64 240, !15, i64 244, !15, i64 248, !15, i64 252, !6, i64 256, !32, i64 264, !32, i64 288, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !15, i64 352, !15, i64 356, !15, i64 360, !15, i64 364, !15, i64 368, !15, i64 372, !15, i64 376, !6, i64 384, !15, i64 392, !15, i64 396, !15, i64 400, !15, i64 404, !6, i64 408, !6, i64 416, !15, i64 424, !15, i64 428, !15, i64 432, !15, i64 436, !15, i64 440, !15, i64 444, !36, i64 448, !36, i64 449, !36, i64 450, !36, i64 451, !36, i64 452, !36, i64 453, !36, i64 454, !36, i64 455, !36, i64 456, !15, i64 460, !15, i64 464, !15, i64 468, !15, i64 472, !15, i64 476, !15, i64 480, !28, i64 488, !15, i64 512, !37, i64 520}
!13 = !{!"_ZTS16MemoryController", !14, i64 0}
!14 = !{!"_ZTS4Unit", !15, i64 8, !16, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS23SparsityControllerState", !7, i64 0}
!20 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIjSaIjEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTS13SDMemoryStats", !38, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !10, i64 48, !24, i64 56, !24, i64 80, !24, i64 104, !24, i64 128}
!38 = !{!"_ZTS5Stats"}
!39 = !{!12, !6, i64 328}
!40 = !{!12, !36, i64 456}
!41 = !{!12, !15, i64 72}
!42 = !{!12, !15, i64 84}
!43 = !{!12, !15, i64 76}
!44 = !{!12, !10, i64 568}
!45 = !{!12, !6, i64 312}
!46 = !{!12, !6, i64 320}
!47 = !{!12, !15, i64 464}
!48 = !{!12, !6, i64 408}
!49 = !{!12, !6, i64 416}


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

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow = external hidden unnamed_addr constant [98 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow(ptr nocapture noundef nonnull align 8 dereferenceable(672) %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) unnamed_addr #1 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %1, ptr %7, align 8, !tbaa !5
  %8 = tail call noundef i32 @_ZNK8DNNLayer14get_layer_typeEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %9 = icmp eq i32 %8, 4
  br i1 %9, label %11, label %10

10:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN19SparseDenseSDMemory8setLayerEP8DNNLayerPfS2_S2_8Dataflow) #4
  unreachable

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 328
  store ptr %4, ptr %12, align 8, !tbaa !37
  %13 = getelementptr inbounds i8, ptr %0, i64 456
  store i8 1, ptr %13, align 8, !tbaa !38
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = tail call noundef i32 @_ZNK8DNNLayer5get_NEv(ptr noundef nonnull align 8 dereferenceable(84) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %15, ptr %16, align 8, !tbaa !39
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = tail call noundef i32 @_ZNK8DNNLayer5get_CEv(ptr noundef nonnull align 8 dereferenceable(84) %17)
  %19 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %18, ptr %19, align 4, !tbaa !40
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = tail call noundef i32 @_ZNK8DNNLayer5get_KEv(ptr noundef nonnull align 8 dereferenceable(84) %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %21, ptr %22, align 4, !tbaa !41
  %23 = getelementptr inbounds i8, ptr %0, i64 568
  store i32 %5, ptr %23, align 8, !tbaa !42
  %24 = getelementptr inbounds i8, ptr %0, i64 312
  store ptr %2, ptr %24, align 8, !tbaa !43
  %25 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %3, ptr %25, align 8, !tbaa !44
  %26 = load i32, ptr %16, align 8, !tbaa !39
  %27 = mul i32 %26, %21
  %28 = getelementptr inbounds i8, ptr %0, i64 464
  store i32 %27, ptr %28, align 8, !tbaa !45
  %29 = load i32, ptr %19, align 4, !tbaa !40
  %30 = mul i32 %29, %26
  %31 = zext i32 %30 to i64
  %32 = shl nuw nsw i64 %31, 2
  %33 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #5
  %34 = getelementptr inbounds i8, ptr %0, i64 408
  store ptr %33, ptr %34, align 8, !tbaa !46
  %35 = mul i32 %29, %21
  %36 = zext i32 %35 to i64
  %37 = shl nuw nsw i64 %36, 2
  %38 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %37) #5
  %39 = getelementptr inbounds i8, ptr %0, i64 416
  store ptr %38, ptr %39, align 8, !tbaa !47
  ret void
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !14, i64 48}
!6 = !{!"_ZTS19SparseDenseSDMemory", !7, i64 0, !14, i64 48, !14, i64 56, !14, i64 64, !9, i64 72, !9, i64 76, !9, i64 80, !9, i64 84, !9, i64 88, !9, i64 92, !9, i64 96, !9, i64 100, !9, i64 104, !9, i64 108, !9, i64 112, !14, i64 120, !16, i64 128, !17, i64 136, !21, i64 160, !21, i64 184, !25, i64 208, !9, i64 232, !9, i64 236, !9, i64 240, !9, i64 244, !9, i64 248, !9, i64 252, !14, i64 256, !29, i64 264, !29, i64 288, !14, i64 312, !14, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !9, i64 352, !9, i64 356, !9, i64 360, !9, i64 364, !9, i64 368, !9, i64 372, !9, i64 376, !14, i64 384, !9, i64 392, !9, i64 396, !9, i64 400, !9, i64 404, !14, i64 408, !14, i64 416, !9, i64 424, !9, i64 428, !9, i64 432, !9, i64 436, !9, i64 440, !9, i64 444, !33, i64 448, !33, i64 449, !33, i64 450, !33, i64 451, !33, i64 452, !33, i64 453, !33, i64 454, !33, i64 455, !33, i64 456, !9, i64 460, !9, i64 464, !9, i64 468, !9, i64 472, !9, i64 476, !9, i64 480, !25, i64 488, !9, i64 512, !34, i64 520}
!7 = !{!"_ZTS16MemoryController", !8, i64 0}
!8 = !{!"_ZTS4Unit", !9, i64 8, !12, i64 16}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !15, i64 8, !10, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTS23SparsityControllerState", !10, i64 0}
!17 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"_ZTSSt6vectorIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!25 = !{!"_ZTSSt6vectorIP10ConnectionSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP10ConnectionSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP10ConnectionSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!29 = !{!"_ZTSSt6vectorIP4FifoSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP4FifoSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP4FifoSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!33 = !{!"bool", !10, i64 0}
!34 = !{!"_ZTS13SDMemoryStats", !35, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !9, i64 24, !9, i64 28, !9, i64 32, !9, i64 36, !9, i64 40, !9, i64 44, !36, i64 48, !21, i64 56, !21, i64 80, !21, i64 104, !21, i64 128}
!35 = !{!"_ZTS5Stats"}
!36 = !{!"_ZTS8Dataflow", !10, i64 0}
!37 = !{!6, !14, i64 328}
!38 = !{!6, !33, i64 456}
!39 = !{!6, !9, i64 72}
!40 = !{!6, !9, i64 84}
!41 = !{!6, !9, i64 76}
!42 = !{!6, !36, i64 568}
!43 = !{!6, !14, i64 312}
!44 = !{!6, !14, i64 320}
!45 = !{!6, !9, i64 464}
!46 = !{!6, !14, i64 408}
!47 = !{!6, !14, i64 416}


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