; LLVM IR from thepowersgang/mrustc :: src/ast/ast.ll (ZNK3AST6Static5cloneEv)

; 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.TypeRef = type { %struct.Span, %class.TypeData }
%struct.Span = type { ptr }
%class.TypeData = type { i32, %"union.TypeData::DataUnion" }
%"union.TypeData::DataUnion" = type { %"struct.TypeData::Data_ErasedType", [32 x i8] }
%"struct.TypeData::Data_ErasedType" = type { %"class.std::vector.141", %"class.std::vector.141", %"class.std::vector.146" }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Static" = type { i32, %class.TypeRef, %"class.AST::Expr", %"struct.AST::Static::Markings" }
%"class.AST::Expr" = type { %"class.std::shared_ptr.138" }
%"class.std::shared_ptr.138" = type { %"class.std::__shared_ptr.139" }
%"class.std::__shared_ptr.139" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.AST::Static::Markings" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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.AST::ExprNodeP" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8, ptr noundef nonnull align 8 dereferenceable(120)) #1

; Function Attrs: nounwind
declare void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST6Static5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::Static") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.TypeRef, align 8
  %6 = alloca %"class.AST::Expr", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.AST::ExprNodeP", align 8
  %10 = alloca i1, align 1
  %11 = alloca i1, align 1
  %12 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds %"class.AST::Static", ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.AST::Static", ptr %13, i32 0, i32 1
  call void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8 %5, ptr noundef nonnull align 8 dereferenceable(120) %16)
  %17 = getelementptr inbounds %"class.AST::Static", ptr %13, i32 0, i32 2
  store i1 false, ptr %10, align 1
  store i1 false, ptr %11, align 1
  store i1 false, ptr %12, align 1
  %18 = invoke noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %19 unwind label %42

19:                                               ; preds = %2
  br i1 %18, label %20, label %29

20:                                               ; preds = %19
  %21 = getelementptr inbounds %"class.AST::Static", ptr %13, i32 0, i32 2
  %22 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3AST4Expr4nodeEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %23 unwind label %42

23:                                               ; preds = %20
  %24 = load ptr, ptr %22, align 8, !tbaa !25
  %25 = getelementptr inbounds ptr, ptr %24, i64 4
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %27 unwind label %42

27:                                               ; preds = %23
  store i1 true, ptr %10, align 1
  invoke void @_ZN3AST4ExprC1ENS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %9)
          to label %28 unwind label %46

28:                                               ; preds = %27
  store i1 true, ptr %11, align 1
  br label %31

29:                                               ; preds = %19
  invoke void @_ZN3AST4ExprC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %30 unwind label %50

30:                                               ; preds = %29
  store i1 true, ptr %12, align 1
  br label %31

31:                                               ; preds = %30, %28
  invoke void @_ZN3AST6StaticC2ENS0_5ClassE7TypeRefNS_4ExprE(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %15, ptr noundef %5, ptr noundef %6)
          to label %32 unwind label %54

32:                                               ; preds = %31
  %33 = load i1, ptr %12, align 1
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %35

35:                                               ; preds = %34, %32
  %36 = load i1, ptr %11, align 1
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %38

38:                                               ; preds = %37, %35
  %39 = load i1, ptr %10, align 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %41

41:                                               ; preds = %40, %38
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #5
  ret void

42:                                               ; preds = %23, %20, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  br label %69

46:                                               ; preds = %27
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %65

50:                                               ; preds = %29
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %61

54:                                               ; preds = %31
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  %58 = load i1, ptr %12, align 1
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %60

60:                                               ; preds = %59, %54
  br label %61

61:                                               ; preds = %60, %50
  %62 = load i1, ptr %11, align 1
  br i1 %62, label %63, label %64

63:                                               ; preds = %61
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %64

64:                                               ; preds = %63, %61
  br label %65

65:                                               ; preds = %64, %46
  %66 = load i1, ptr %10, align 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %65
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %68

68:                                               ; preds = %67, %65
  br label %69

69:                                               ; preds = %68, %42
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #5
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %7, align 8
  %72 = load i32, ptr %8, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

declare void @_ZN3AST4ExprC1ENS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @_ZN3AST4ExprC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3AST6StaticC2ENS0_5ClassE7TypeRefNS_4ExprE(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3AST6StaticE", !11, i64 0, !12, i64 8, !16, i64 128, !20, i64 144}
!11 = !{!"_ZTSN3AST6Static5ClassE", !7, i64 0}
!12 = !{!"_ZTS7TypeRef", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTS4Span", !6, i64 0}
!14 = !{!"_ZTS8TypeData", !15, i64 0, !7, i64 8}
!15 = !{!"_ZTSN8TypeData3TagE", !7, i64 0}
!16 = !{!"_ZTSN3AST4ExprE", !17, i64 0}
!17 = !{!"_ZTSSt10shared_ptrIN3AST8ExprNodeEE", !18, i64 0}
!18 = !{!"_ZTSSt12__shared_ptrIN3AST8ExprNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!"_ZTSN3AST6Static8MarkingsE", !21, i64 0, !21, i64 32, !24, i64 64}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN3AST7LinkageE", !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}


; 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.TypeRef = type { %struct.Span, %class.TypeData }
%struct.Span = type { ptr }
%class.TypeData = type { i32, %"union.TypeData::DataUnion" }
%"union.TypeData::DataUnion" = type { %"struct.TypeData::Data_ErasedType", [32 x i8] }
%"struct.TypeData::Data_ErasedType" = type { %"class.std::vector.141", %"class.std::vector.141", %"class.std::vector.146" }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type_TraitPath, std::allocator<Type_TraitPath>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<AST::LifetimeRef, std::allocator<AST::LifetimeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.AST::Static" = type { i32, %class.TypeRef, %"class.AST::Expr", %"struct.AST::Static::Markings" }
%"class.AST::Expr" = type { %"class.std::shared_ptr.138" }
%"class.std::shared_ptr.138" = type { %"class.std::__shared_ptr.139" }
%"class.std::__shared_ptr.139" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.AST::Static::Markings" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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.AST::ExprNodeP" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST6Static5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::Static") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.TypeRef, align 8
  %4 = alloca %"class.AST::Expr", align 8
  %5 = alloca %"class.AST::ExprNodeP", align 8
  %6 = load i32, ptr %1, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.TypeRef) align 8 %3, ptr noundef nonnull align 8 dereferenceable(120) %7)
  %8 = getelementptr inbounds i8, ptr %1, i64 128
  %9 = call noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %9, label %10, label %16

10:                                               ; preds = %2
  %11 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3AST4Expr4nodeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %12 = load ptr, ptr %11, align 8, !tbaa !24
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = load ptr, ptr %13, align 8
  invoke void %14(ptr dead_on_unwind nonnull writable sret(%"class.AST::ExprNodeP") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %15 unwind label %19

15:                                               ; preds = %10
  invoke void @_ZN3AST4ExprC1ENS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %5)
          to label %17 unwind label %21

16:                                               ; preds = %2
  invoke void @_ZN3AST4ExprC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %17 unwind label %23

17:                                               ; preds = %16, %15
  invoke void @_ZN3AST6StaticC2ENS0_5ClassE7TypeRefNS_4ExprE(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %6, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %18 unwind label %25

18:                                               ; preds = %17
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br i1 %9, label %.critedge, label %.critedge21

.critedge:                                        ; preds = %18
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br label %.critedge21

.critedge21:                                      ; preds = %18, %.critedge
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #5
  ret void

19:                                               ; preds = %10
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %28

21:                                               ; preds = %15
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %27

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %28

25:                                               ; preds = %17
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3AST4ExprD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br i1 %9, label %27, label %28

27:                                               ; preds = %25, %21
  %.pn.pn.ph = phi { ptr, i32 } [ %22, %21 ], [ %26, %25 ]
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br label %28

28:                                               ; preds = %25, %23, %27, %19
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.ph, %27 ], [ %20, %19 ], [ %24, %23 ], [ %26, %25 ]
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3AST4Expr8is_validEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3AST4Expr4nodeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

declare void @_ZN3AST4ExprC1ENS_9ExprNodePE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @_ZN3AST4ExprC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3AST6StaticC2ENS0_5ClassE7TypeRefNS_4ExprE(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3AST6StaticE", !7, i64 0, !10, i64 8, !15, i64 128, !19, i64 144}
!7 = !{!"_ZTSN3AST6Static5ClassE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7TypeRef", !11, i64 0, !13, i64 8}
!11 = !{!"_ZTS4Span", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTS8TypeData", !14, i64 0, !8, i64 8}
!14 = !{!"_ZTSN8TypeData3TagE", !8, i64 0}
!15 = !{!"_ZTSN3AST4ExprE", !16, i64 0}
!16 = !{!"_ZTSSt10shared_ptrIN3AST8ExprNodeEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3AST8ExprNodeELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!19 = !{!"_ZTSN3AST6Static8MarkingsE", !20, i64 0, !20, i64 32, !23, i64 64}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !8, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTSN3AST7LinkageE", !8, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass