; LLVM IR from ASDAlexander77/TypeScriptCompiler :: tsc/tsc-new-parser (node_factory)

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

%struct.ptr.138 = type { %"class.std::shared_ptr.139" }
%"class.std::shared_ptr.139" = type { %"class.std::__shared_ptr.140" }
%"class.std::__shared_ptr.140" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.ptr.816 = type { %"class.std::shared_ptr.817" }
%"class.std::shared_ptr.817" = type { %"class.std::__shared_ptr.818" }
%"class.std::__shared_ptr.818" = type { ptr, %"class.std::__shared_count" }
%"class.ts::NodeFactory" = type { ptr, %"class.ts::Scanner", %"struct.ts::ParenthesizerRules", i32, %"class.std::function.15" }
%"class.ts::Scanner" = type { i32, i32, i8, i32, %"struct.ts::safe_string", i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i32, %"class.std::vector.10", i32, i32, %"class.std::function" }
%"struct.ts::safe_string" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<wchar_t>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::CommentDirective>, std::allocator<ptr<ts::data::CommentDirective>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.ts::ParenthesizerRules" = type { ptr }
%"class.std::function.15" = type { %"class.std::_Function_base", ptr }
%"struct.ts::data::JSDocNullableType" = type <{ %"struct.ts::data::JSDocType", %struct.ptr.138, i8, [7 x i8] }>
%"struct.ts::data::JSDocType" = type { %"struct.ts::data::TypeNode" }
%"struct.ts::data::TypeNode" = type { %"struct.ts::data::JSDocContainer" }
%"struct.ts::data::JSDocContainer" = type { %"struct.ts::data::Node.base", [3 x i8], %"struct.ts::data::NodeArray.30", %"struct.ts::data::NodeArray.38" }
%"struct.ts::data::Node.base" = type <{ ptr, %"struct.ts::data::TextRange", i32, i32, i32, i32, [4 x i8], %"struct.ts::data::NodeArray", i32, [4 x i8], %struct.ptr.17, %struct.ptr.17, i32, i8 }>
%"struct.ts::data::TextRange" = type { %"struct.ts::pos_type", i32 }
%"struct.ts::pos_type" = type { i32, i32 }
%"struct.ts::data::NodeArray" = type <{ %"struct.ts::data::ReadonlyArray", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray" = type { %"class.std::vector.21" }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ptr.17 = type { %"class.std::shared_ptr.18" }
%"class.std::shared_ptr.18" = type { %"class.std::__shared_ptr.19" }
%"class.std::__shared_ptr.19" = type { ptr, %"class.std::__shared_count" }
%"struct.ts::data::NodeArray.30" = type <{ %"struct.ts::data::ReadonlyArray.31", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.31" = type { %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ts::data::NodeArray.38" = type <{ %"struct.ts::data::ReadonlyArray.39", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.39" = type { %"class.std::vector.40" }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN2ts18ParenthesizerRules37parenthesizeNonArrayTypeOfPostfixTypeE3ptrINS_4data8TypeNodeEE(ptr dead_on_unwind writable sret(%struct.ptr.138) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory23createJSDocNullableTypeE3ptrINS_4data8TypeNodeEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.816) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %struct.ptr.138, align 8
  %10 = alloca %struct.ptr.138, align 8
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i1, align 1
  %15 = alloca %struct.ptr.138, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %8, align 1, !tbaa !9
  %17 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %18 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %19 = trunc i8 %18 to i1
  store i1 false, ptr %11, align 1
  br i1 %19, label %20, label %27

20:                                               ; preds = %4
  %21 = call noundef zeroext i1 @_ZN3ptrIN2ts4data8TypeNodeEEntEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %21, label %25, label %22

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.ts::NodeFactory", ptr %17, i32 0, i32 2
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  store i1 true, ptr %11, align 1
  invoke void @_ZN2ts18ParenthesizerRules37parenthesizeNonArrayTypeOfPostfixTypeE3ptrINS_4data8TypeNodeEE(ptr dead_on_unwind writable sret(%struct.ptr.138) align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %10)
          to label %24 unwind label %40

24:                                               ; preds = %22
  br label %26

25:                                               ; preds = %20
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  br label %26

26:                                               ; preds = %25, %24
  br label %28

27:                                               ; preds = %4
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  br label %28

28:                                               ; preds = %27, %26
  %29 = load i1, ptr %11, align 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %31

31:                                               ; preds = %30, %28
  store i1 false, ptr %14, align 1
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  invoke void @_ZN2ts11NodeFactory26createJSDocUnaryTypeWorkerI3ptrINS_4data17JSDocNullableTypeEEEET_10SyntaxKindDtptcvS6__E4typeE(ptr dead_on_unwind writable sret(%struct.ptr.816) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %17, i32 noundef 321, ptr noundef %15)
          to label %32 unwind label %47

32:                                               ; preds = %31
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %33 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %34 = trunc i8 %33 to i1
  %35 = invoke noundef ptr @_ZN3ptrIN2ts4data17JSDocNullableTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %36 unwind label %51

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"struct.ts::data::JSDocNullableType", ptr %35, i32 0, i32 2
  %38 = zext i1 %34 to i8
  store i8 %38, ptr %37, align 8, !tbaa !13
  store i1 true, ptr %14, align 1
  %39 = load i1, ptr %14, align 1
  br i1 %39, label %56, label %55

40:                                               ; preds = %22
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %12, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %13, align 4
  %44 = load i1, ptr %11, align 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %46

46:                                               ; preds = %45, %40
  br label %58

47:                                               ; preds = %31
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %12, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %13, align 4
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %57

51:                                               ; preds = %32
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %12, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %13, align 4
  call void @_ZN3ptrIN2ts4data17JSDocNullableTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %57

55:                                               ; preds = %36
  call void @_ZN3ptrIN2ts4data17JSDocNullableTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %56

56:                                               ; preds = %55, %36
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  ret void

57:                                               ; preds = %51, %47
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %58

58:                                               ; preds = %57, %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %12, align 8
  %61 = load i32, ptr %13, align 4
  %62 = insertvalue { ptr, i32 } poison, ptr %60, 0
  %63 = insertvalue { ptr, i32 } %62, i32 %61, 1
  resume { ptr, i32 } %63
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts11NodeFactory26createJSDocUnaryTypeWorkerI3ptrINS_4data17JSDocNullableTypeEEEET_10SyntaxKindDtptcvS6__E4typeE(ptr dead_on_unwind noalias writable sret(%struct.ptr.816) align 8, ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, ptr noundef) #4 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 248}
!14 = !{!"_ZTSN2ts4data17JSDocNullableTypeE", !15, i64 0, !49, i64 232, !10, i64 248}
!15 = !{!"_ZTSN2ts4data9JSDocTypeE", !16, i64 0}
!16 = !{!"_ZTSN2ts4data8TypeNodeE", !17, i64 0}
!17 = !{!"_ZTSN2ts4data14JSDocContainerE", !18, i64 0, !37, i64 136, !43, i64 184}
!18 = !{!"_ZTSN2ts4data4NodeE", !19, i64 8, !22, i64 20, !23, i64 24, !24, i64 28, !25, i64 32, !26, i64 40, !21, i64 88, !32, i64 96, !32, i64 112, !36, i64 128, !10, i64 132}
!19 = !{!"_ZTSN2ts4data9TextRangeE", !20, i64 0, !21, i64 8}
!20 = !{!"_ZTSN2ts8pos_typeE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTS10SyntaxKind", !7, i64 0}
!23 = !{!"_ZTSN2ts9NodeFlagsE", !7, i64 0}
!24 = !{!"_ZTSN2ts13ModifierFlagsE", !7, i64 0}
!25 = !{!"_ZTSN2ts14TransformFlagsE", !7, i64 0}
!26 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !27, i64 0, !19, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !25, i64 40}
!27 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !28, i64 0}
!28 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !33, i64 0}
!33 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !34, i64 0}
!34 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !35, i64 8}
!35 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!36 = !{!"_ZTSN2ts13InternalFlagsE", !7, i64 0}
!37 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_5JSDocEEEE", !38, i64 0, !19, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !25, i64 40}
!38 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_5JSDocEEEE", !39, i64 0}
!39 = !{!"_ZTSSt6vectorI3ptrIN2ts4data5JSDocEESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_8JSDocTagEEEE", !44, i64 0, !19, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !25, i64 40}
!44 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_8JSDocTagEEEE", !45, i64 0}
!45 = !{!"_ZTSSt6vectorI3ptrIN2ts4data8JSDocTagEESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTS3ptrIN2ts4data8TypeNodeEE", !50, i64 0}
!50 = !{!"_ZTSSt10shared_ptrIN2ts4data8TypeNodeEE", !51, i64 0}
!51 = !{!"_ZTSSt12__shared_ptrIN2ts4data8TypeNodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !35, i64 8}


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

%struct.ptr.138 = type { %"class.std::shared_ptr.139" }
%"class.std::shared_ptr.139" = type { %"class.std::__shared_ptr.140" }
%"class.std::__shared_ptr.140" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.ptr.816 = type { %"class.std::shared_ptr.817" }
%"class.std::shared_ptr.817" = type { %"class.std::__shared_ptr.818" }
%"class.std::__shared_ptr.818" = type { ptr, %"class.std::__shared_count" }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN2ts18ParenthesizerRules37parenthesizeNonArrayTypeOfPostfixTypeE3ptrINS_4data8TypeNodeEE(ptr dead_on_unwind writable sret(%struct.ptr.138) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory23createJSDocNullableTypeE3ptrINS_4data8TypeNodeEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.816) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.ptr.138, align 8
  %6 = alloca %struct.ptr.138, align 8
  %7 = alloca %struct.ptr.138, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  br i1 %3, label %8, label %13

8:                                                ; preds = %4
  %9 = tail call noundef zeroext i1 @_ZN3ptrIN2ts4data8TypeNodeEEntEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %9, label %12, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %1, i64 184
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  invoke void @_ZN2ts18ParenthesizerRules37parenthesizeNonArrayTypeOfPostfixTypeE3ptrINS_4data8TypeNodeEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.138) align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %6)
          to label %14 unwind label %19

12:                                               ; preds = %8
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  br label %.critedge

13:                                               ; preds = %4
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  br label %.critedge

14:                                               ; preds = %10
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %.critedge

.critedge:                                        ; preds = %12, %13, %14
  call void @_ZN3ptrIN2ts4data8TypeNodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  invoke void @_ZN2ts11NodeFactory26createJSDocUnaryTypeWorkerI3ptrINS_4data17JSDocNullableTypeEEEET_10SyntaxKindDtptcvS6__E4typeE(ptr dead_on_unwind writable sret(%struct.ptr.816) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, i32 noundef 321, ptr noundef nonnull %7)
          to label %15 unwind label %21

15:                                               ; preds = %.critedge
  %16 = zext i1 %3 to i8
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %17 = call noundef ptr @_ZN3ptrIN2ts4data17JSDocNullableTypeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds i8, ptr %17, i64 248
  store i8 %16, ptr %18, align 8, !tbaa !5
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret void

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

21:                                               ; preds = %.critedge
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %23

23:                                               ; preds = %19, %21
  %.sink = phi ptr [ %6, %19 ], [ %5, %21 ]
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %22, %21 ]
  call void @_ZN3ptrIN2ts4data8TypeNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts11NodeFactory26createJSDocUnaryTypeWorkerI3ptrINS_4data17JSDocNullableTypeEEEET_10SyntaxKindDtptcvS6__E4typeE(ptr dead_on_unwind noalias writable sret(%struct.ptr.816) align 8, ptr noundef nonnull align 8 dereferenceable(232), i32 noundef, ptr noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 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, !27, i64 248}
!6 = !{!"_ZTSN2ts4data17JSDocNullableTypeE", !7, i64 0, !45, i64 232, !27, i64 248}
!7 = !{!"_ZTSN2ts4data9JSDocTypeE", !8, i64 0}
!8 = !{!"_ZTSN2ts4data8TypeNodeE", !9, i64 0}
!9 = !{!"_ZTSN2ts4data14JSDocContainerE", !10, i64 0, !33, i64 136, !39, i64 184}
!10 = !{!"_ZTSN2ts4data4NodeE", !11, i64 8, !16, i64 20, !17, i64 24, !18, i64 28, !19, i64 32, !20, i64 40, !13, i64 88, !28, i64 96, !28, i64 112, !32, i64 128, !27, i64 132}
!11 = !{!"_ZTSN2ts4data9TextRangeE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN2ts8pos_typeE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTS10SyntaxKind", !14, i64 0}
!17 = !{!"_ZTSN2ts9NodeFlagsE", !14, i64 0}
!18 = !{!"_ZTSN2ts13ModifierFlagsE", !14, i64 0}
!19 = !{!"_ZTSN2ts14TransformFlagsE", !14, i64 0}
!20 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !21, i64 0, !11, i64 24, !27, i64 36, !27, i64 37, !27, i64 38, !19, i64 40}
!21 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !22, i64 0}
!22 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!26 = !{!"any pointer", !14, i64 0}
!27 = !{!"bool", !14, i64 0}
!28 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !29, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !26, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !26, i64 0}
!32 = !{!"_ZTSN2ts13InternalFlagsE", !14, i64 0}
!33 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_5JSDocEEEE", !34, i64 0, !11, i64 24, !27, i64 36, !27, i64 37, !27, i64 38, !19, i64 40}
!34 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_5JSDocEEEE", !35, i64 0}
!35 = !{!"_ZTSSt6vectorI3ptrIN2ts4data5JSDocEESaIS4_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data5JSDocEESaIS4_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!39 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_8JSDocTagEEEE", !40, i64 0, !11, i64 24, !27, i64 36, !27, i64 37, !27, i64 38, !19, i64 40}
!40 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_8JSDocTagEEEE", !41, i64 0}
!41 = !{!"_ZTSSt6vectorI3ptrIN2ts4data8JSDocTagEESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data8JSDocTagEESaIS4_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}
!45 = !{!"_ZTS3ptrIN2ts4data8TypeNodeEE", !46, i64 0}
!46 = !{!"_ZTSSt10shared_ptrIN2ts4data8TypeNodeEE", !47, i64 0}
!47 = !{!"_ZTSSt12__shared_ptrIN2ts4data8TypeNodeELN9__gnu_cxx12_Lock_policyE2EE", !26, i64 0, !31, i64 8}


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