; 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.ts::data::NodeArray.62" = type <{ %"struct.ts::data::ReadonlyArray.63", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.63" = type { %"class.std::vector.64" }
%"class.std::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_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.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" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.ptr.70 = type { %"class.std::shared_ptr.71" }
%"class.std::shared_ptr.71" = type { %"class.std::__shared_ptr.72" }
%"class.std::__shared_ptr.72" = 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] }>
%"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 }

; 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 i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL39getElementsOfBindingOrAssignmentPatternE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%"struct.ts::data::NodeArray.62") align 8, ptr noundef) #3

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.17) align 8, ptr noundef) #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.ts::data::NodeArray.62", align 8
  %6 = alloca %struct.ptr.17, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.ptr.70, align 8
  %13 = alloca %struct.ptr.17, align 8
  %14 = alloca %struct.ptr.17, align 8
  %15 = alloca %struct.ptr.70, align 8
  %16 = alloca %struct.ptr.17, align 8
  %17 = alloca i1, align 1
  %18 = alloca i32, align 4
  %19 = alloca %struct.ptr.17, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %20 = call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %21 = getelementptr inbounds %"struct.ts::data::Node", ptr %20, i32 0, i32 5
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %22, i32 noundef 65536)
  %24 = call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %23)
  br i1 %24, label %26, label %25

25:                                               ; preds = %1
  store i32 65536, ptr %2, align 4
  br label %138

26:                                               ; preds = %1
  %27 = call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %28 = getelementptr inbounds %"struct.ts::data::Node", ptr %27, i32 0, i32 5
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %30 = call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %29, i32 noundef 128)
  %31 = call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %30)
  br i1 %31, label %137, label %32

32:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  invoke void @_ZN2tsL39getElementsOfBindingOrAssignmentPatternE3ptrINS_4data4NodeEE(ptr dead_on_unwind writable sret(%"struct.ts::data::NodeArray.62") align 8 %5, ptr noundef %6)
          to label %33 unwind label %43

33:                                               ; preds = %32
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  store ptr %5, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call ptr @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call ptr @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  br label %40

40:                                               ; preds = %129, %33
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %41, label %47, label %42

42:                                               ; preds = %40
  store i32 2, ptr %11, align 4
  br label %133

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %135

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %48) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  invoke void @_ZN3ptrIN2ts4data4NodeEEC2INS1_14BindingElementEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %15)
          to label %49 unwind label %71

49:                                               ; preds = %47
  invoke void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8 %13, ptr noundef %14)
          to label %50 unwind label %75

50:                                               ; preds = %49
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  store i1 false, ptr %17, align 1
  %51 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data4NodeEEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %52 unwind label %80

52:                                               ; preds = %50
  br i1 %51, label %53, label %56

53:                                               ; preds = %52
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  store i1 true, ptr %17, align 1
  %54 = invoke noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef %16)
          to label %55 unwind label %84

55:                                               ; preds = %53
  br label %56

56:                                               ; preds = %55, %52
  %57 = phi i1 [ false, %52 ], [ %54, %55 ]
  %58 = load i1, ptr %17, align 1
  br i1 %58, label %59, label %60

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

60:                                               ; preds = %59, %56
  br i1 %57, label %61, label %122

61:                                               ; preds = %60
  %62 = invoke noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %63 unwind label %80

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"struct.ts::data::Node", ptr %62, i32 0, i32 5
  %65 = load i32, ptr %64, align 8, !tbaa !9
  %66 = invoke noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %65, i32 noundef 65536)
          to label %67 unwind label %80

67:                                               ; preds = %63
  %68 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %66)
          to label %69 unwind label %80

69:                                               ; preds = %67
  br i1 %68, label %91, label %70

70:                                               ; preds = %69
  store i32 65536, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %123

71:                                               ; preds = %47
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %79

75:                                               ; preds = %49
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %132

80:                                               ; preds = %97, %93, %91, %67, %63, %61, %50
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %131

84:                                               ; preds = %53
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  %88 = load i1, ptr %17, align 1
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %90

90:                                               ; preds = %89, %84
  br label %131

91:                                               ; preds = %69
  %92 = invoke noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %93 unwind label %80

93:                                               ; preds = %91
  %94 = getelementptr inbounds %"struct.ts::data::Node", ptr %92, i32 0, i32 5
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = invoke noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %95, i32 noundef 128)
          to label %97 unwind label %80

97:                                               ; preds = %93
  %98 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %96)
          to label %99 unwind label %80

99:                                               ; preds = %97
  br i1 %98, label %121, label %100

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  %101 = invoke noundef i32 @_ZN2ts31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef %19)
          to label %102 unwind label %108

102:                                              ; preds = %100
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  store i32 %101, ptr %18, align 4, !tbaa !30
  %103 = load i32, ptr %18, align 4, !tbaa !30
  %104 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %103)
          to label %105 unwind label %112

105:                                              ; preds = %102
  br i1 %104, label %116, label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %18, align 4, !tbaa !30
  store i32 %107, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %117

108:                                              ; preds = %100
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br label %120

112:                                              ; preds = %102
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  br label %120

116:                                              ; preds = %105
  store i32 0, ptr %11, align 4
  br label %117

117:                                              ; preds = %116, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %118 = load i32, ptr %11, align 4
  switch i32 %118, label %123 [
    i32 0, label %119
  ]

119:                                              ; preds = %117
  br label %121

120:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %131

121:                                              ; preds = %119, %99
  br label %122

122:                                              ; preds = %121, %60
  store i32 0, ptr %11, align 4
  br label %123

123:                                              ; preds = %122, %117, %70
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %124 = load i32, ptr %11, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  store i32 0, ptr %11, align 4
  br label %126

126:                                              ; preds = %125, %123
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %127 = load i32, ptr %11, align 4
  switch i32 %127, label %133 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %40

131:                                              ; preds = %120, %90, %80
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %132

132:                                              ; preds = %131, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #5
  br label %135

133:                                              ; preds = %126, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %134 = load i32, ptr %11, align 4
  switch i32 %134, label %145 [
    i32 2, label %136
    i32 1, label %138
  ]

135:                                              ; preds = %132, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %140

136:                                              ; preds = %133
  br label %137

137:                                              ; preds = %136, %26
  store i32 0, ptr %2, align 4
  br label %138

138:                                              ; preds = %137, %133, %25
  %139 = load i32, ptr %2, align 4
  ret i32 %139

140:                                              ; preds = %135
  %141 = load ptr, ptr %7, align 8
  %142 = load i32, ptr %8, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144

145:                                              ; preds = %133
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 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, !17, i64 32}
!10 = !{!"_ZTSN2ts4data4NodeE", !11, i64 8, !14, i64 20, !15, i64 24, !16, i64 28, !17, i64 32, !18, i64 40, !13, i64 88, !25, i64 96, !25, i64 112, !29, i64 128, !24, i64 132}
!11 = !{!"_ZTSN2ts4data9TextRangeE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN2ts8pos_typeE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS10SyntaxKind", !7, i64 0}
!15 = !{!"_ZTSN2ts9NodeFlagsE", !7, i64 0}
!16 = !{!"_ZTSN2ts13ModifierFlagsE", !7, i64 0}
!17 = !{!"_ZTSN2ts14TransformFlagsE", !7, i64 0}
!18 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !19, i64 0, !11, i64 24, !24, i64 36, !24, i64 37, !24, i64 38, !17, i64 40}
!19 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !20, i64 0}
!20 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !26, i64 0}
!26 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !28, i64 8}
!28 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!29 = !{!"_ZTSN2ts13InternalFlagsE", !7, i64 0}
!30 = !{!17, !17, 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"

%"struct.ts::data::NodeArray.62" = type <{ %"struct.ts::data::ReadonlyArray.63", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.63" = type { %"class.std::vector.64" }
%"class.std::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::BindingElement>, std::allocator<ptr<ts::data::BindingElement>>>::_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.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" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.ptr.70 = type { %"class.std::shared_ptr.71" }
%"class.std::shared_ptr.71" = type { %"class.std::__shared_ptr.72" }
%"class.std::__shared_ptr.72" = 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 i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL39getElementsOfBindingOrAssignmentPatternE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%"struct.ts::data::NodeArray.62") align 8, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.17) align 8, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef nonnull %0) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.ts::data::NodeArray.62", align 8
  %3 = alloca %struct.ptr.17, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %struct.ptr.70, align 8
  %7 = alloca %struct.ptr.17, align 8
  %8 = alloca %struct.ptr.17, align 8
  %9 = alloca %struct.ptr.70, align 8
  %10 = alloca %struct.ptr.17, align 8
  %11 = alloca %struct.ptr.17, align 8
  %12 = tail call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = tail call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %14, i32 noundef 65536)
  %16 = tail call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %15)
  br i1 %16, label %17, label %65

17:                                               ; preds = %1
  %18 = tail call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %19 = getelementptr inbounds i8, ptr %18, i64 32
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %21 = tail call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %20, i32 noundef 128)
  %22 = tail call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %21)
  br i1 %22, label %65, label %23

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  invoke void @_ZN2tsL39getElementsOfBindingOrAssignmentPatternE3ptrINS_4data4NodeEE(ptr dead_on_unwind nonnull writable sret(%"struct.ts::data::NodeArray.62") align 8 %2, ptr noundef nonnull %3)
          to label %24 unwind label %28

24:                                               ; preds = %23
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %25 = call ptr @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %25, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %26 = call ptr @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %26, ptr %5, align 8
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %27, label %.lr.ph, label %.thread28

.thread28:                                        ; preds = %58, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #5
  br label %65

28:                                               ; preds = %23
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  br label %64

.lr.ph:                                           ; preds = %24, %58
  %.033 = phi i32 [ %.3, %58 ], [ undef, %24 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2INS1_14BindingElementEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull %9)
  invoke void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.17) align 8 %7, ptr noundef nonnull %8)
          to label %31 unwind label %42

31:                                               ; preds = %.lr.ph
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  %32 = call noundef zeroext i1 @_ZN3ptrIN2ts4data4NodeEEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %32, label %33, label %.thread27

33:                                               ; preds = %31
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %34 = invoke noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef nonnull %10)
          to label %35 unwind label %44

35:                                               ; preds = %33
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br i1 %34, label %36, label %.thread27

36:                                               ; preds = %35
  %37 = call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load i32, ptr %38, align 8, !tbaa !5
  %40 = call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %39, i32 noundef 65536)
  %41 = call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %40)
  br i1 %41, label %46, label %.thread27

42:                                               ; preds = %.lr.ph
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %62

44:                                               ; preds = %33
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %61

46:                                               ; preds = %36
  %47 = call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %48 = getelementptr inbounds i8, ptr %47, i64 32
  %49 = load i32, ptr %48, align 8, !tbaa !5
  %50 = call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %49, i32 noundef 128)
  %51 = call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %50)
  br i1 %51, label %.thread27, label %52

52:                                               ; preds = %46
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %53 = invoke noundef i32 @_ZN2ts31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef nonnull %11)
          to label %54 unwind label %56

54:                                               ; preds = %52
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  %55 = call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %53)
  %.0. = select i1 %55, i32 %.033, i32 %53
  br label %.thread27

56:                                               ; preds = %52
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %61

.thread27:                                        ; preds = %31, %54, %35, %46, %36
  %cond = phi i1 [ false, %36 ], [ true, %46 ], [ true, %35 ], [ %55, %54 ], [ true, %31 ]
  %.3 = phi i32 [ 65536, %36 ], [ %.033, %46 ], [ %.033, %35 ], [ %.0., %54 ], [ %.033, %31 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br i1 %cond, label %58, label %63

58:                                               ; preds = %.thread27
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %60, label %.lr.ph, label %.thread28

61:                                               ; preds = %44, %56
  %.sink = phi ptr [ %10, %44 ], [ %11, %56 ]
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %57, %56 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %62

62:                                               ; preds = %61, %42
  %.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #5
  br label %64

63:                                               ; preds = %.thread27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #5
  br label %65

64:                                               ; preds = %62, %28
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %62 ], [ %29, %28 ]
  resume { ptr, i32 } %.pn.pn.pn

65:                                               ; preds = %17, %.thread28, %63, %1
  %.5 = phi i32 [ %.3, %63 ], [ 65536, %1 ], [ 0, %.thread28 ], [ 0, %17 ]
  ret i32 %.5
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 = { 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 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, !15, i64 32}
!6 = !{!"_ZTSN2ts4data4NodeE", !7, i64 8, !12, i64 20, !13, i64 24, !14, i64 28, !15, i64 32, !16, i64 40, !9, i64 88, !24, i64 96, !24, i64 112, !28, i64 128, !23, i64 132}
!7 = !{!"_ZTSN2ts4data9TextRangeE", !8, i64 0, !9, i64 8}
!8 = !{!"_ZTSN2ts8pos_typeE", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS10SyntaxKind", !10, i64 0}
!13 = !{!"_ZTSN2ts9NodeFlagsE", !10, i64 0}
!14 = !{!"_ZTSN2ts13ModifierFlagsE", !10, i64 0}
!15 = !{!"_ZTSN2ts14TransformFlagsE", !10, i64 0}
!16 = !{!"_ZTSN2ts4data9NodeArrayI3ptrINS0_4NodeEEEE", !17, i64 0, !7, i64 24, !23, i64 36, !23, i64 37, !23, i64 38, !15, i64 40}
!17 = !{!"_ZTSN2ts4data13ReadonlyArrayI3ptrINS0_4NodeEEEE", !18, i64 0}
!18 = !{!"_ZTSSt6vectorI3ptrIN2ts4data4NodeEESaIS4_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI3ptrIN2ts4data4NodeEESaIS4_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!22 = !{!"any pointer", !10, i64 0}
!23 = !{!"bool", !10, i64 0}
!24 = !{!"_ZTS3ptrIN2ts4data4NodeEE", !25, i64 0}
!25 = !{!"_ZTSSt10shared_ptrIN2ts4data4NodeEE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN2ts4data4NodeELN9__gnu_cxx12_Lock_policyE2EE", !22, i64 0, !27, i64 8}
!27 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !22, i64 0}
!28 = !{!"_ZTSN2ts13InternalFlagsE", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass