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

28:                                               ; preds = %2
  store i32 65536, ptr %3, align 4
  br label %143

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

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  invoke void @_ZN2tsL39getElementsOfBindingOrAssignmentPatternE3ptrINS_4data4NodeEE(ptr dead_on_unwind writable sret(%"struct.ts::data::NodeArray.62") align 8 %7, ptr noundef %8)
          to label %36 unwind label %46

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

43:                                               ; preds = %134, %36
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %44, label %50, label %45

45:                                               ; preds = %43
  store i32 2, ptr %13, align 4
  br label %138

46:                                               ; preds = %35
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %140

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %51) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  invoke void @_ZN3ptrIN2ts4data4NodeEEC2INS1_14BindingElementEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %17)
          to label %52 unwind label %76

52:                                               ; preds = %50
  invoke void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8 %15, ptr noundef %16)
          to label %53 unwind label %80

53:                                               ; preds = %52
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  store i1 false, ptr %19, align 1
  %54 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data4NodeEEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %55 unwind label %85

55:                                               ; preds = %53
  br i1 %54, label %56, label %59

56:                                               ; preds = %55
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  store i1 true, ptr %19, align 1
  %57 = invoke noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef %18)
          to label %58 unwind label %89

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %58, %55
  %60 = phi i1 [ false, %55 ], [ %57, %58 ]
  %61 = xor i1 %60, true
  %62 = xor i1 %61, true
  %63 = load i1, ptr %19, align 1
  br i1 %63, label %64, label %65

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

65:                                               ; preds = %64, %59
  br i1 %62, label %66, label %127

66:                                               ; preds = %65
  %67 = invoke noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %68 unwind label %85

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"struct.ts::data::Node", ptr %67, i32 0, i32 5
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = invoke noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %70, i32 noundef 65536)
          to label %72 unwind label %85

72:                                               ; preds = %68
  %73 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %71)
          to label %74 unwind label %85

74:                                               ; preds = %72
  br i1 %73, label %96, label %75

75:                                               ; preds = %74
  store i32 65536, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %128

76:                                               ; preds = %50
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %84

80:                                               ; preds = %52
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %84

84:                                               ; preds = %80, %76
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %137

85:                                               ; preds = %102, %98, %96, %72, %68, %66, %53
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  br label %136

89:                                               ; preds = %56
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  %93 = load i1, ptr %19, align 1
  br i1 %93, label %94, label %95

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

95:                                               ; preds = %94, %89
  br label %136

96:                                               ; preds = %74
  %97 = invoke noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %98 unwind label %85

98:                                               ; preds = %96
  %99 = getelementptr inbounds %"struct.ts::data::Node", ptr %97, i32 0, i32 5
  %100 = load i32, ptr %99, align 8, !tbaa !9
  %101 = invoke noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %100, i32 noundef 128)
          to label %102 unwind label %85

102:                                              ; preds = %98
  %103 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %101)
          to label %104 unwind label %85

104:                                              ; preds = %102
  br i1 %103, label %126, label %105

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %106 = invoke noundef i32 @_ZN2ts11NodeFactory31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef nonnull align 8 dereferenceable(232) %22, ptr noundef %21)
          to label %107 unwind label %113

107:                                              ; preds = %105
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  store i32 %106, ptr %20, align 4, !tbaa !30
  %108 = load i32, ptr %20, align 4, !tbaa !30
  %109 = invoke noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %108)
          to label %110 unwind label %117

110:                                              ; preds = %107
  br i1 %109, label %121, label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %20, align 4, !tbaa !30
  store i32 %112, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %122

113:                                              ; preds = %105
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %125

117:                                              ; preds = %107
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  br label %125

121:                                              ; preds = %110
  store i32 0, ptr %13, align 4
  br label %122

122:                                              ; preds = %121, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %123 = load i32, ptr %13, align 4
  switch i32 %123, label %128 [
    i32 0, label %124
  ]

124:                                              ; preds = %122
  br label %126

125:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %136

126:                                              ; preds = %124, %104
  br label %127

127:                                              ; preds = %126, %65
  store i32 0, ptr %13, align 4
  br label %128

128:                                              ; preds = %127, %122, %75
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  %129 = load i32, ptr %13, align 4
  switch i32 %129, label %131 [
    i32 0, label %130
  ]

130:                                              ; preds = %128
  store i32 0, ptr %13, align 4
  br label %131

131:                                              ; preds = %130, %128
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  %132 = load i32, ptr %13, align 4
  switch i32 %132, label %138 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %43

136:                                              ; preds = %125, %95, %85
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %137

137:                                              ; preds = %136, %84
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  br label %140

138:                                              ; preds = %131, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %139 = load i32, ptr %13, align 4
  switch i32 %139, label %150 [
    i32 2, label %141
    i32 1, label %143
  ]

140:                                              ; preds = %137, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %145

141:                                              ; preds = %138
  br label %142

142:                                              ; preds = %141, %29
  store i32 0, ptr %3, align 4
  br label %143

143:                                              ; preds = %142, %138, %28
  %144 = load i32, ptr %3, align 4
  ret i32 %144

145:                                              ; preds = %140
  %146 = load ptr, ptr %9, align 8
  %147 = load i32, ptr %10, align 4
  %148 = insertvalue { ptr, i32 } poison, ptr %146, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %147, 1
  resume { ptr, i32 } %149

150:                                              ; preds = %138
  unreachable
}

; 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) #4

; 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) #4

; 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) #4

; 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 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 = { 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 = { 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 #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: mustprogress uwtable
define dso_local noundef i32 @_ZN2ts11NodeFactory31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(232) %0, ptr noundef nonnull %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.ts::data::NodeArray.62", align 8
  %4 = alloca %struct.ptr.17, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %struct.ptr.70, align 8
  %8 = alloca %struct.ptr.17, align 8
  %9 = alloca %struct.ptr.17, align 8
  %10 = alloca %struct.ptr.70, align 8
  %11 = alloca %struct.ptr.17, align 8
  %12 = alloca %struct.ptr.17, align 8
  %13 = tail call noundef ptr @_ZN3ptrIN2ts4data4NodeEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %14 = getelementptr inbounds i8, ptr %13, i64 32
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = tail call noundef i32 @_ZN2tsanENS_14TransformFlagsES0_(i32 noundef %15, i32 noundef 65536)
  %17 = tail call noundef zeroext i1 @_ZN2tsntENS_14TransformFlagsE(i32 noundef %16)
  br i1 %17, label %18, label %66

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

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

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

.thread29:                                        ; preds = %59, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  br label %66

29:                                               ; preds = %24
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %65

.lr.ph:                                           ; preds = %25, %59
  %.034 = phi i32 [ %.3, %59 ], [ undef, %25 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3ptrIN2ts4data14BindingElementEESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %31) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @_ZN3ptrIN2ts4data4NodeEEC2INS1_14BindingElementEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %10)
  invoke void @_ZN2tsL37getTargetOfBindingOrAssignmentElementE3ptrINS_4data4NodeEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.17) align 8 %8, ptr noundef nonnull %9)
          to label %32 unwind label %43

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

34:                                               ; preds = %32
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %35 = invoke noundef zeroext i1 @_ZN2tsL19isAssignmentPatternE3ptrINS_4data4NodeEE(ptr noundef nonnull %11)
          to label %36 unwind label %45

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

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

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

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %62

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

53:                                               ; preds = %47
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %54 = invoke noundef i32 @_ZN2ts11NodeFactory31propagateAssignmentPatternFlagsE3ptrINS_4data4NodeEE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %12)
          to label %55 unwind label %57

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

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %62

.thread28:                                        ; preds = %32, %55, %36, %47, %37
  %cond = phi i1 [ false, %37 ], [ true, %47 ], [ true, %36 ], [ %56, %55 ], [ true, %32 ]
  %.3 = phi i32 [ 65536, %37 ], [ %.034, %47 ], [ %.034, %36 ], [ %.0., %55 ], [ %.034, %32 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN3ptrIN2ts4data14BindingElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br i1 %cond, label %59, label %64

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

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

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

64:                                               ; preds = %.thread28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorI3ptrIN2ts4data14BindingElementEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  br label %66

65:                                               ; preds = %63, %29
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %30, %29 ]
  resume { ptr, i32 } %.pn.pn.pn

66:                                               ; preds = %18, %.thread29, %64, %2
  %.5 = phi i32 [ %.3, %64 ], [ 65536, %2 ], [ 0, %.thread29 ], [ 0, %18 ]
  ret i32 %.5
}

; 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 #4

; 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 #4

; 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 #4

; 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 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 = { 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 = { 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 #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