; 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.836 = type { %"class.std::shared_ptr.837" }
%"class.std::shared_ptr.837" = type { %"class.std::__shared_ptr.838" }
%"class.std::__shared_ptr.838" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.ts::data::NodeArray.840" = type <{ %"struct.ts::data::ReadonlyArray.841", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.841" = type { %"class.std::vector.842" }
%"class.std::vector.842" = type { %"struct.std::_Vector_base.843" }
%"struct.std::_Vector_base.843" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ts::data::TextRange" = type { %"struct.ts::pos_type", i32 }
%"struct.ts::pos_type" = type { i32, i32 }
%"struct.ts::data::JSDocTypeLiteral" = type { %"struct.ts::data::JSDocType", %"struct.ts::data::NodeArray.840", 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::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: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory22createJSDocTypeLiteralENS_4data9NodeArrayI3ptrINS1_20JSDocPropertyLikeTagEEEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.836) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3) #1 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 i1, align 1
  %10 = alloca %"struct.ts::data::NodeArray.840", align 8
  %11 = alloca %"struct.ts::data::NodeArray.840", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  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
  %14 = zext i1 %3 to i8
  store i8 %14, ptr %8, align 1, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZN2ts11NodeFactory14createBaseNodeI3ptrINS_4data16JSDocTypeLiteralEES4_EEDa10SyntaxKind(ptr dead_on_unwind writable sret(%struct.ptr.836) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %15, i32 noundef 329)
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  invoke void @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44) %11, ptr noundef nonnull align 8 dereferenceable(44) %2)
          to label %16 unwind label %29

16:                                               ; preds = %4
  invoke void @_ZN2ts11NodeFactory11asNodeArrayI3ptrINS_4data20JSDocPropertyLikeTagEEEENS3_9NodeArrayIT_EES8_(ptr dead_on_unwind writable sret(%"struct.ts::data::NodeArray.840") align 8 %10, ptr noundef nonnull align 8 dereferenceable(232) %15, ptr noundef %11)
          to label %17 unwind label %33

17:                                               ; preds = %16
  %18 = invoke noundef ptr @_ZN3ptrIN2ts4data16JSDocTypeLiteralEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %19 unwind label %37

19:                                               ; preds = %17
  %20 = getelementptr inbounds %"struct.ts::data::JSDocTypeLiteral", ptr %18, i32 0, i32 1
  %21 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44) %20, ptr noundef nonnull align 8 dereferenceable(44) %10) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %10) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %11) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  %22 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %23 = trunc i8 %22 to i1
  %24 = invoke noundef ptr @_ZN3ptrIN2ts4data16JSDocTypeLiteralEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %25 unwind label %43

25:                                               ; preds = %19
  %26 = getelementptr inbounds %"struct.ts::data::JSDocTypeLiteral", ptr %24, i32 0, i32 2
  %27 = zext i1 %23 to i8
  store i8 %27, ptr %26, align 8, !tbaa !13
  store i1 true, ptr %9, align 1
  %28 = load i1, ptr %9, align 1
  br i1 %28, label %48, label %47

29:                                               ; preds = %4
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %12, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %13, align 4
  br label %42

33:                                               ; preds = %16
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %12, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %13, align 4
  br label %41

37:                                               ; preds = %17
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %12, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %13, align 4
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %10) #5
  br label %41

41:                                               ; preds = %37, %33
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %11) #5
  br label %42

42:                                               ; preds = %41, %29
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  br label %49

43:                                               ; preds = %19
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %12, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %13, align 4
  br label %49

47:                                               ; preds = %25
  call void @_ZN3ptrIN2ts4data16JSDocTypeLiteralEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %48

48:                                               ; preds = %47, %25
  ret void

49:                                               ; preds = %43, %42
  call void @_ZN3ptrIN2ts4data16JSDocTypeLiteralEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %12, align 8
  %52 = load i32, ptr %13, align 4
  %53 = insertvalue { ptr, i32 } poison, ptr %51, 0
  %54 = insertvalue { ptr, i32 } %53, i32 %52, 1
  resume { ptr, i32 } %54
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts11NodeFactory11asNodeArrayI3ptrINS_4data20JSDocPropertyLikeTagEEEENS3_9NodeArrayIT_EES8_(ptr dead_on_unwind noalias writable sret(%"struct.ts::data::NodeArray.840") align 8, ptr noundef nonnull align 8 dereferenceable(232), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 = { 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 #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 = { 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 280}
!14 = !{!"_ZTSN2ts4data16JSDocTypeLiteralE", !15, i64 0, !49, i64 232, !10, i64 280}
!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 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEE", !50, i64 0, !19, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !25, i64 40}
!50 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_20JSDocPropertyLikeTagEEEE", !51, i64 0}
!51 = !{!"_ZTSSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.836 = type { %"class.std::shared_ptr.837" }
%"class.std::shared_ptr.837" = type { %"class.std::__shared_ptr.838" }
%"class.std::__shared_ptr.838" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.ts::data::NodeArray.840" = type <{ %"struct.ts::data::ReadonlyArray.841", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.841" = type { %"class.std::vector.842" }
%"class.std::vector.842" = type { %"struct.std::_Vector_base.843" }
%"struct.std::_Vector_base.843" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocPropertyLikeTag>, std::allocator<ptr<ts::data::JSDocPropertyLikeTag>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ts::data::TextRange" = type { %"struct.ts::pos_type", i32 }
%"struct.ts::pos_type" = type { i32, i32 }

; 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: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory22createJSDocTypeLiteralENS_4data9NodeArrayI3ptrINS1_20JSDocPropertyLikeTagEEEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.836) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.ts::data::NodeArray.840", align 8
  %6 = alloca %"struct.ts::data::NodeArray.840", align 8
  tail call void @_ZN2ts11NodeFactory14createBaseNodeI3ptrINS_4data16JSDocTypeLiteralEES4_EEDa10SyntaxKind(ptr dead_on_unwind writable sret(%struct.ptr.836) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, i32 noundef 329)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  invoke void @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44) %6, ptr noundef nonnull align 8 dereferenceable(44) %2)
          to label %7 unwind label %15

7:                                                ; preds = %4
  invoke void @_ZN2ts11NodeFactory11asNodeArrayI3ptrINS_4data20JSDocPropertyLikeTagEEEENS3_9NodeArrayIT_EES8_(ptr dead_on_unwind nonnull writable sret(%"struct.ts::data::NodeArray.840") align 8 %5, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull %6)
          to label %8 unwind label %17

8:                                                ; preds = %7
  %9 = zext i1 %3 to i8
  %10 = call noundef ptr @_ZN3ptrIN2ts4data16JSDocTypeLiteralEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %11 = getelementptr inbounds i8, ptr %10, i64 232
  %12 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44) %11, ptr noundef nonnull align 8 dereferenceable(44) %5) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %5) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  %13 = call noundef ptr @_ZN3ptrIN2ts4data16JSDocTypeLiteralEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %14 = getelementptr inbounds i8, ptr %13, i64 280
  store i8 %9, ptr %14, align 8, !tbaa !5
  ret void

15:                                               ; preds = %4
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %19

17:                                               ; preds = %7
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %6) #5
  br label %19

19:                                               ; preds = %17, %15
  %.pn = phi { ptr, i32 } [ %18, %17 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  call void @_ZN3ptrIN2ts4data16JSDocTypeLiteralEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts11NodeFactory11asNodeArrayI3ptrINS_4data20JSDocPropertyLikeTagEEEENS3_9NodeArrayIT_EES8_(ptr dead_on_unwind noalias writable sret(%"struct.ts::data::NodeArray.840") align 8, ptr noundef nonnull align 8 dereferenceable(232), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 = { 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 #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 = { 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 280}
!6 = !{!"_ZTSN2ts4data16JSDocTypeLiteralE", !7, i64 0, !45, i64 232, !27, i64 280}
!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 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_20JSDocPropertyLikeTagEEEE", !46, i64 0, !11, i64 24, !27, i64 36, !27, i64 37, !27, i64 38, !19, i64 40}
!46 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_20JSDocPropertyLikeTagEEEE", !47, i64 0}
!47 = !{!"_ZTSSt6vectorI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data20JSDocPropertyLikeTagEESaIS4_EE17_Vector_impl_dataE", !26, i64 0, !26, i64 8, !26, i64 16}


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