; 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.327 = type { %"class.std::shared_ptr.328" }
%"class.std::shared_ptr.328" = type { %"class.std::__shared_ptr.329" }
%"class.std::__shared_ptr.329" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.ts::data::NodeArray.740" = type <{ %"struct.ts::data::ReadonlyArray.741", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.741" = type { %"class.std::vector.742" }
%"class.std::vector.742" = type { %"struct.std::_Vector_base.743" }
%"struct.std::_Vector_base.743" = type { %"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_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::ImportAttributes" = type <{ %"struct.ts::data::Node.base", [3 x i8], i32, [4 x i8], %struct.ptr.17, %"struct.ts::data::NodeArray.740", i8, [7 x i8] }>
%"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::Node" = 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, [3 x i8] }>

; 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 nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_14TransformFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory22createImportAttributesENS_4data9NodeArrayI3ptrINS1_15ImportAttributeEEEEb10SyntaxKind(ptr dead_on_unwind noalias writable sret(%struct.ptr.327) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3, i32 noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.ts::data::NodeArray.740", align 8
  %15 = alloca %"struct.ts::data::NodeArray.740", align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %9, align 1, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %17 = load ptr, ptr %7, align 8
  store i1 false, ptr %11, align 1
  call void @_ZN2ts11NodeFactory14createBaseNodeI3ptrINS_4data16ImportAttributesEES4_EEDa10SyntaxKind(ptr dead_on_unwind writable sret(%struct.ptr.327) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %17, i32 noundef 300)
  %18 = load i32, ptr %10, align 4, !tbaa !11
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %5
  %21 = load i32, ptr %10, align 4, !tbaa !11
  br label %23

22:                                               ; preds = %5
  br label %23

23:                                               ; preds = %22, %20
  %24 = phi i32 [ %21, %20 ], [ 118, %22 ]
  %25 = invoke noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %26 unwind label %46

26:                                               ; preds = %23
  %27 = getelementptr inbounds %"struct.ts::data::ImportAttributes", ptr %25, i32 0, i32 2
  store i32 %24, ptr %27, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #5
  invoke void @_ZN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44) %15, ptr noundef nonnull align 8 dereferenceable(44) %2)
          to label %28 unwind label %50

28:                                               ; preds = %26
  invoke void @_ZN2ts11NodeFactory15createNodeArrayI3ptrINS_4data15ImportAttributeEEEENS3_9NodeArrayIT_EES8_b(ptr dead_on_unwind writable sret(%"struct.ts::data::NodeArray.740") align 8 %14, ptr noundef nonnull align 8 dereferenceable(232) %17, ptr noundef %15, i1 noundef zeroext false)
          to label %29 unwind label %54

29:                                               ; preds = %28
  %30 = invoke noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %31 unwind label %58

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"struct.ts::data::ImportAttributes", ptr %30, i32 0, i32 5
  %33 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44) %32, ptr noundef nonnull align 8 dereferenceable(44) %14) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %14) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  %34 = load i8, ptr %9, align 1, !tbaa !9, !range !39, !noundef !40
  %35 = trunc i8 %34 to i1
  %36 = invoke noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %37 unwind label %46

37:                                               ; preds = %31
  %38 = getelementptr inbounds %"struct.ts::data::ImportAttributes", ptr %36, i32 0, i32 6
  %39 = zext i1 %35 to i8
  store i8 %39, ptr %38, align 8, !tbaa !41
  %40 = invoke noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %41 unwind label %46

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"struct.ts::data::Node", ptr %40, i32 0, i32 5
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_14TransformFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 noundef 4)
          to label %44 unwind label %46

44:                                               ; preds = %41
  store i1 true, ptr %11, align 1
  %45 = load i1, ptr %11, align 1
  br i1 %45, label %65, label %64

46:                                               ; preds = %41, %37, %31, %23
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %12, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %13, align 4
  br label %66

50:                                               ; preds = %26
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  br label %63

54:                                               ; preds = %28
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  br label %62

58:                                               ; preds = %29
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %14) #5
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %15) #5
  br label %63

63:                                               ; preds = %62, %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  br label %66

64:                                               ; preds = %44
  call void @_ZN3ptrIN2ts4data16ImportAttributesEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %65

65:                                               ; preds = %64, %44
  ret void

66:                                               ; preds = %63, %46
  call void @_ZN3ptrIN2ts4data16ImportAttributesEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %12, align 8
  %69 = load i32, ptr %13, align 4
  %70 = insertvalue { ptr, i32 } poison, ptr %68, 0
  %71 = insertvalue { ptr, i32 } %70, i32 %69, 1
  resume { ptr, i32 } %71
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ptrIN2ts4data16ImportAttributesEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 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 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 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 = !{!12, !12, i64 0}
!12 = !{!"_ZTS10SyntaxKind", !7, i64 0}
!13 = !{!14, !12, i64 136}
!14 = !{!"_ZTSN2ts4data16ImportAttributesE", !15, i64 0, !12, i64 136, !28, i64 144, !33, i64 160, !10, i64 208}
!15 = !{!"_ZTSN2ts4data4NodeE", !16, i64 8, !12, i64 20, !19, i64 24, !20, i64 28, !21, i64 32, !22, i64 40, !18, i64 88, !28, i64 96, !28, i64 112, !32, i64 128, !10, i64 132}
!16 = !{!"_ZTSN2ts4data9TextRangeE", !17, i64 0, !18, i64 8}
!17 = !{!"_ZTSN2ts8pos_typeE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN2ts9NodeFlagsE", !7, i64 0}
!20 = !{!"_ZTSN2ts13ModifierFlagsE", !7, i64 0}
!21 = !{!"_ZTSN2ts14TransformFlagsE", !7, i64 0}
!22 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !23, i64 0, !16, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !21, i64 40}
!23 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !24, i64 0}
!24 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !29, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!32 = !{!"_ZTSN2ts13InternalFlagsE", !7, i64 0}
!33 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEE", !34, i64 0, !16, i64 24, !10, i64 36, !10, i64 37, !10, i64 38, !21, i64 40}
!34 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_15ImportAttributeEEEE", !35, i64 0}
!35 = !{!"_ZTSSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!14, !10, i64 208}


; 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.327 = type { %"class.std::shared_ptr.328" }
%"class.std::shared_ptr.328" = type { %"class.std::__shared_ptr.329" }
%"class.std::__shared_ptr.329" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.ts::data::NodeArray.740" = type <{ %"struct.ts::data::ReadonlyArray.741", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.741" = type { %"class.std::vector.742" }
%"class.std::vector.742" = type { %"struct.std::_Vector_base.743" }
%"struct.std::_Vector_base.743" = type { %"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::ImportAttribute>, std::allocator<ptr<ts::data::ImportAttribute>>>::_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_14TransformFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts11NodeFactory22createImportAttributesENS_4data9NodeArrayI3ptrINS1_15ImportAttributeEEEEb10SyntaxKind(ptr dead_on_unwind noalias writable sret(%struct.ptr.327) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2, i1 noundef zeroext %3, i32 noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.ts::data::NodeArray.740", align 8
  %7 = alloca %"struct.ts::data::NodeArray.740", align 8
  tail call void @_ZN2ts11NodeFactory14createBaseNodeI3ptrINS_4data16ImportAttributesEES4_EEDa10SyntaxKind(ptr dead_on_unwind writable sret(%struct.ptr.327) align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, i32 noundef 300)
  %.not = icmp eq i32 %4, 0
  %8 = select i1 %.not, i32 118, i32 %4
  %9 = tail call noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %10 = getelementptr inbounds i8, ptr %9, i64 136
  store i32 %8, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  invoke void @_ZN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(44) %7, ptr noundef nonnull align 8 dereferenceable(44) %2)
          to label %11 unwind label %22

11:                                               ; preds = %5
  invoke void @_ZN2ts11NodeFactory15createNodeArrayI3ptrINS_4data15ImportAttributeEEEENS3_9NodeArrayIT_EES8_b(ptr dead_on_unwind nonnull writable sret(%"struct.ts::data::NodeArray.740") align 8 %6, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull %7, i1 noundef zeroext false)
          to label %12 unwind label %24

12:                                               ; preds = %11
  %13 = zext i1 %3 to i8
  %14 = call noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %15 = getelementptr inbounds i8, ptr %14, i64 160
  %16 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(44) %15, ptr noundef nonnull align 8 dereferenceable(44) %6) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %6) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  %17 = call noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds i8, ptr %17, i64 208
  store i8 %13, ptr %18, align 8, !tbaa !36
  %19 = call noundef ptr @_ZN3ptrIN2ts4data16ImportAttributesEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2tsoRERNS_14TransformFlagsES0_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 4)
  ret void

22:                                               ; preds = %5
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %26

24:                                               ; preds = %11
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #5
  br label %26

26:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @_ZN3ptrIN2ts4data16ImportAttributesEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ptrIN2ts4data16ImportAttributesEED2Ev(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 = { 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 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 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, !13, i64 136}
!6 = !{!"_ZTSN2ts4data16ImportAttributesE", !7, i64 0, !13, i64 136, !25, i64 144, !30, i64 160, !24, i64 208}
!7 = !{!"_ZTSN2ts4data4NodeE", !8, i64 8, !13, i64 20, !14, i64 24, !15, i64 28, !16, i64 32, !17, i64 40, !10, i64 88, !25, i64 96, !25, i64 112, !29, i64 128, !24, i64 132}
!8 = !{!"_ZTSN2ts4data9TextRangeE", !9, i64 0, !10, i64 8}
!9 = !{!"_ZTSN2ts8pos_typeE", !10, i64 0, !10, i64 4}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTS10SyntaxKind", !11, i64 0}
!14 = !{!"_ZTSN2ts9NodeFlagsE", !11, i64 0}
!15 = !{!"_ZTSN2ts13ModifierFlagsE", !11, i64 0}
!16 = !{!"_ZTSN2ts14TransformFlagsE", !11, i64 0}
!17 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !18, i64 0, !8, i64 24, !24, i64 36, !24, i64 37, !24, i64 38, !16, i64 40}
!18 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !19, i64 0}
!19 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!23 = !{!"any pointer", !11, i64 0}
!24 = !{!"bool", !11, i64 0}
!25 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !26, i64 0}
!26 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !23, i64 0, !28, i64 8}
!28 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !23, i64 0}
!29 = !{!"_ZTSN2ts13InternalFlagsE", !11, i64 0}
!30 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_15ImportAttributeEEEE", !31, i64 0, !8, i64 24, !24, i64 36, !24, i64 37, !24, i64 38, !16, i64 40}
!31 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_15ImportAttributeEEEE", !32, i64 0}
!32 = !{!"_ZTSSt6vectorI3ptrIN2ts4data15ImportAttributeEESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data15ImportAttributeEESaIS4_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!36 = !{!6, !24, i64 208}


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