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

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

%struct.ptr.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 }
%struct.ptr.39 = type { %"class.std::shared_ptr.40" }
%"class.std::shared_ptr.40" = type { %"class.std::__shared_ptr.41" }
%"class.std::__shared_ptr.41" = type { ptr, %"class.std::__shared_count" }
%struct.ptr.43 = type { %"class.std::shared_ptr.44" }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%struct.ptr = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%struct.ptr.35 = type { %"class.std::shared_ptr.36" }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = type { ptr, %"class.std::__shared_count" }
%"struct.ts::ParenthesizerRules" = type { ptr }
%"struct.ts::data::NewExpression" = type { %"struct.ts::data::Declaration", %struct.ptr.39, %"struct.ts::data::NodeArray.71", %"struct.ts::data::NodeArray" }
%"struct.ts::data::Declaration" = type { %"struct.ts::data::DeclarationStatement", %struct.ptr.79, %struct.ptr.79 }
%"struct.ts::data::DeclarationStatement" = type { %"struct.ts::data::Statement" }
%"struct.ts::data::Statement" = type { %"struct.ts::data::PrimaryExpression" }
%"struct.ts::data::PrimaryExpression" = type { %"struct.ts::data::MemberExpression" }
%"struct.ts::data::MemberExpression" = type { %"struct.ts::data::LeftHandSideExpression" }
%"struct.ts::data::LeftHandSideExpression" = type { %"struct.ts::data::UpdateExpression" }
%"struct.ts::data::UpdateExpression" = type { %"struct.ts::data::UnaryExpression" }
%"struct.ts::data::UnaryExpression" = type { %"struct.ts::data::ExpressionWithTypeArguments" }
%"struct.ts::data::ExpressionWithTypeArguments" = type { %"struct.ts::data::NodeWithTypeArguments", %struct.ptr.39 }
%"struct.ts::data::NodeWithTypeArguments" = type { %"struct.ts::data::Expression", %"struct.ts::data::NodeArray.71" }
%"struct.ts::data::Expression" = type { %"struct.ts::data::TypeNode" }
%"struct.ts::data::TypeNode" = type { %"struct.ts::data::JSDocContainer" }
%"struct.ts::data::JSDocContainer" = type { %"struct.ts::data::Node.base", [3 x i8], %"struct.ts::data::NodeArray.55", %"struct.ts::data::NodeArray.63" }
%"struct.ts::data::Node.base" = type <{ ptr, %"struct.ts::data::TextRange", i32, i32, i32, i32, [4 x i8], %"struct.ts::data::NodeArray.47", i32, [4 x i8], %struct.ptr.35, %struct.ptr.35, i32, i8 }>
%"struct.ts::data::TextRange" = type { %"struct.ts::pos_type", i32 }
%"struct.ts::pos_type" = type { i32, i32 }
%"struct.ts::data::NodeArray.47" = type <{ %"struct.ts::data::ReadonlyArray.48", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.48" = type { %"class.std::vector.49" }
%"class.std::vector.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = type { %"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::Node>, std::allocator<ptr<ts::data::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ts::data::NodeArray.55" = type <{ %"struct.ts::data::ReadonlyArray.56", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.56" = type { %"class.std::vector.57" }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDoc>, std::allocator<ptr<ts::data::JSDoc>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ts::data::NodeArray.63" = type <{ %"struct.ts::data::ReadonlyArray.64", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.64" = type { %"class.std::vector.65" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::JSDocTag>, std::allocator<ptr<ts::data::JSDocTag>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ptr.79 = type { %"class.std::shared_ptr.80" }
%"class.std::shared_ptr.80" = type { %"class.std::__shared_ptr.81" }
%"class.std::__shared_ptr.81" = type { ptr, %"class.std::__shared_count" }
%"struct.ts::data::NodeArray.71" = type <{ %"struct.ts::data::ReadonlyArray.72", %"struct.ts::data::TextRange", i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ts::data::ReadonlyArray.72" = type { %"class.std::vector.73" }
%"class.std::vector.73" = type { %"struct.std::_Vector_base.74" }
%"struct.std::_Vector_base.74" = type { %"struct.std::_Vector_base<ptr<ts::data::TypeNode>, std::allocator<ptr<ts::data::TypeNode>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::TypeNode>, std::allocator<ptr<ts::data::TypeNode>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::TypeNode>, std::allocator<ptr<ts::data::TypeNode>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::TypeNode>, std::allocator<ptr<ts::data::TypeNode>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::Expression>, std::allocator<ptr<ts::data::Expression>>>::_Vector_impl" }
%"struct.std::_Vector_base<ptr<ts::data::Expression>, std::allocator<ptr<ts::data::Expression>>>::_Vector_impl" = type { %"struct.std::_Vector_base<ptr<ts::data::Expression>, std::allocator<ptr<ts::data::Expression>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ptr<ts::data::Expression>, std::allocator<ptr<ts::data::Expression>>>::_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

declare noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232)) #1

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

declare void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8, ptr noundef nonnull align 8 dereferenceable(232), ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts18ParenthesizerRules28parenthesizeLeftSideOfAccessE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_13NewExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.43) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data10ExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts18ParenthesizerRules27parenthesizeExpressionOfNewE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.ptr.35, align 8
  %11 = alloca %struct.ptr, align 8
  %12 = alloca %struct.ptr.17, align 8
  %13 = alloca %struct.ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.ptr.43, align 8
  %16 = alloca %struct.ptr.17, align 8
  %17 = alloca i1, align 1
  %18 = alloca %struct.ptr, align 8
  %19 = alloca i1, align 1
  %20 = alloca i1, align 1
  %21 = alloca %struct.ptr, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  %23 = getelementptr inbounds %"struct.ts::ParenthesizerRules", ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232) %24)
  br i1 %25, label %26, label %32

26:                                               ; preds = %3
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN3ptrIN2ts4data22LeftHandSideExpressionEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %7)
          to label %27 unwind label %28

27:                                               ; preds = %26
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %119

28:                                               ; preds = %26
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %8, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %9, align 4
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %120

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2tsL21getLeftmostExpressionE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind writable sret(%struct.ptr.35) align 8 %10, ptr noundef %11, i1 noundef zeroext true)
          to label %33 unwind label %36

33:                                               ; preds = %32
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  %34 = invoke noundef i32 @_ZN3ptrIN2ts4data4NodeEEcv10SyntaxKindEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %35 unwind label %40

35:                                               ; preds = %33
  switch i32 %34, label %110 [
    i32 213, label %44
    i32 214, label %58
  ]

36:                                               ; preds = %32
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %118

40:                                               ; preds = %33
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %8, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %9, align 4
  br label %117

44:                                               ; preds = %35
  %45 = getelementptr inbounds %"struct.ts::ParenthesizerRules", ptr %22, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8 %12, ptr noundef nonnull align 8 dereferenceable(232) %46, ptr noundef %13)
          to label %47 unwind label %49

47:                                               ; preds = %44
  invoke void @_ZN3ptrIN2ts4data22LeftHandSideExpressionEEC2INS1_23ParenthesizedExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %12)
          to label %48 unwind label %53

48:                                               ; preds = %47
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  store i32 1, ptr %14, align 4
  br label %116

49:                                               ; preds = %44
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  br label %57

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %117

58:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  store i1 false, ptr %17, align 1
  store i1 false, ptr %19, align 1
  store i1 false, ptr %20, align 1
  invoke void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_13NewExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.43) align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %59 unwind label %82

59:                                               ; preds = %58
  %60 = invoke noundef ptr @_ZN3ptrIN2ts4data13NewExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %61 unwind label %86

61:                                               ; preds = %59
  %62 = getelementptr inbounds %"struct.ts::data::NewExpression", ptr %60, i32 0, i32 3
  %63 = invoke noundef zeroext i1 @_ZN2tsntI3ptrINS_4data10ExpressionEEEEbRNS2_9NodeArrayIT_EE(ptr noundef nonnull align 8 dereferenceable(44) %62)
          to label %64 unwind label %86

64:                                               ; preds = %61
  br i1 %63, label %65, label %70

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  store i1 true, ptr %17, align 1
  %66 = getelementptr inbounds %"struct.ts::ParenthesizerRules", ptr %22, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  store i1 true, ptr %19, align 1
  invoke void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8 %16, ptr noundef nonnull align 8 dereferenceable(232) %67, ptr noundef %18)
          to label %68 unwind label %90

68:                                               ; preds = %65
  store i1 true, ptr %20, align 1
  invoke void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %69 unwind label %94

69:                                               ; preds = %68
  br label %72

70:                                               ; preds = %64
  invoke void @_ZN3ptrIN2ts4data10ExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %71 unwind label %94

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i1, ptr %20, align 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %75

75:                                               ; preds = %74, %72
  %76 = load i1, ptr %19, align 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %78

78:                                               ; preds = %77, %75
  %79 = load i1, ptr %17, align 1
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %81

81:                                               ; preds = %80, %78
  call void @_ZN3ptrIN2ts4data13NewExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  store i32 1, ptr %14, align 4
  br label %116

82:                                               ; preds = %58
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %8, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %9, align 4
  br label %109

86:                                               ; preds = %61, %59
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %8, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %9, align 4
  br label %108

90:                                               ; preds = %65
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  br label %101

94:                                               ; preds = %70, %68
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  %98 = load i1, ptr %20, align 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %94
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %100

100:                                              ; preds = %99, %94
  br label %101

101:                                              ; preds = %100, %90
  %102 = load i1, ptr %19, align 1
  br i1 %102, label %103, label %104

103:                                              ; preds = %101
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %104

104:                                              ; preds = %103, %101
  %105 = load i1, ptr %17, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %107

107:                                              ; preds = %106, %104
  br label %108

108:                                              ; preds = %107, %86
  call void @_ZN3ptrIN2ts4data13NewExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %109

109:                                              ; preds = %108, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %117

110:                                              ; preds = %35
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2ts18ParenthesizerRules28parenthesizeLeftSideOfAccessE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef %21, i1 noundef zeroext false)
          to label %111 unwind label %112

111:                                              ; preds = %110
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  store i32 1, ptr %14, align 4
  br label %116

112:                                              ; preds = %110
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %8, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %9, align 4
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %117

116:                                              ; preds = %111, %81, %48
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %119

117:                                              ; preds = %112, %109, %57, %40
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %118

118:                                              ; preds = %117, %36
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %120

119:                                              ; preds = %116, %27
  ret void

120:                                              ; preds = %118, %28
  %121 = load ptr, ptr %8, align 8
  %122 = load i32, ptr %9, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL21getLeftmostExpressionE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.35) align 8, ptr noundef, i1 noundef zeroext) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2tsntI3ptrINS_4data10ExpressionEEEEbRNS2_9NodeArrayIT_EE(ptr noundef nonnull align 8 dereferenceable(44)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { 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, !6, i64 0}
!10 = !{!"_ZTSN2ts18ParenthesizerRulesE", !6, 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.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 }
%struct.ptr.39 = type { %"class.std::shared_ptr.40" }
%"class.std::shared_ptr.40" = type { %"class.std::__shared_ptr.41" }
%"class.std::__shared_ptr.41" = type { ptr, %"class.std::__shared_count" }
%struct.ptr.43 = type { %"class.std::shared_ptr.44" }
%"class.std::shared_ptr.44" = type { %"class.std::__shared_ptr.45" }
%"class.std::__shared_ptr.45" = type { ptr, %"class.std::__shared_count" }
%struct.ptr = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%struct.ptr.35 = type { %"class.std::shared_ptr.36" }
%"class.std::shared_ptr.36" = type { %"class.std::__shared_ptr.37" }
%"class.std::__shared_ptr.37" = 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

declare noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #1

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

declare void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind writable sret(%struct.ptr.17) align 8, ptr noundef nonnull align 8 dereferenceable(232), ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2ts18ParenthesizerRules28parenthesizeLeftSideOfAccessE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_13NewExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.43) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data10ExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2ts18ParenthesizerRules27parenthesizeExpressionOfNewE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.ptr, align 8
  %5 = alloca %struct.ptr.35, align 8
  %6 = alloca %struct.ptr, align 8
  %7 = alloca %struct.ptr.17, align 8
  %8 = alloca %struct.ptr, align 8
  %9 = alloca %struct.ptr.43, align 8
  %10 = alloca %struct.ptr.17, align 8
  %11 = alloca %struct.ptr, align 8
  %12 = alloca %struct.ptr, align 8
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232) %13)
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @_ZN3ptrIN2ts4data22LeftHandSideExpressionEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %4)
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  br label %55

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2tsL21getLeftmostExpressionE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind nonnull writable sret(%struct.ptr.35) align 8 %5, ptr noundef nonnull %6, i1 noundef zeroext true)
          to label %17 unwind label %19

17:                                               ; preds = %16
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  %18 = call noundef i32 @_ZN3ptrIN2ts4data4NodeEEcv10SyntaxKindEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  switch i32 %18, label %48 [
    i32 213, label %21
    i32 214, label %26
  ]

19:                                               ; preds = %16
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %54

21:                                               ; preds = %17
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.17) align 8 %7, ptr noundef nonnull align 8 dereferenceable(232) %22, ptr noundef nonnull %8)
          to label %23 unwind label %24

23:                                               ; preds = %21
  call void @_ZN3ptrIN2ts4data22LeftHandSideExpressionEEC2INS1_23ParenthesizedExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %7)
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %52

24:                                               ; preds = %21
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %53

26:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  invoke void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_13NewExpressionEEEET_v(ptr dead_on_unwind nonnull writable sret(%struct.ptr.43) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %27 unwind label %36

27:                                               ; preds = %26
  %28 = call noundef ptr @_ZN3ptrIN2ts4data13NewExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %29 = getelementptr inbounds i8, ptr %28, i64 392
  %30 = invoke noundef zeroext i1 @_ZN2tsntI3ptrINS_4data10ExpressionEEEEbRNS2_9NodeArrayIT_EE(ptr noundef nonnull align 8 dereferenceable(44) %29)
          to label %31 unwind label %38

31:                                               ; preds = %27
  br i1 %30, label %32, label %35

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2ts11NodeFactory29createParenthesizedExpressionE3ptrINS_4data10ExpressionEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.17) align 8 %10, ptr noundef nonnull align 8 dereferenceable(232) %33, ptr noundef nonnull %11)
          to label %34 unwind label %40

34:                                               ; preds = %32
  invoke void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %.critedge unwind label %42

35:                                               ; preds = %31
  invoke void @_ZN3ptrIN2ts4data10ExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %.critedge27 unwind label %44

.critedge:                                        ; preds = %34
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %.critedge27

.critedge27:                                      ; preds = %35, %.critedge
  call void @_ZN3ptrIN2ts4data13NewExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %52

36:                                               ; preds = %26
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %47

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge29

40:                                               ; preds = %32
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %46

42:                                               ; preds = %34
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %46

44:                                               ; preds = %35
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge29

46:                                               ; preds = %42, %40
  %.pn.ph = phi { ptr, i32 } [ %41, %40 ], [ %43, %42 ]
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %.critedge29

.critedge29:                                      ; preds = %44, %46, %38
  %.pn.pn = phi { ptr, i32 } [ %.pn.ph, %46 ], [ %39, %38 ], [ %45, %44 ]
  call void @_ZN3ptrIN2ts4data13NewExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %47

47:                                               ; preds = %.critedge29, %36
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.critedge29 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %53

48:                                               ; preds = %17
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN2ts18ParenthesizerRules28parenthesizeLeftSideOfAccessE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind writable sret(%struct.ptr.39) align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %12, i1 noundef zeroext false)
          to label %49 unwind label %50

49:                                               ; preds = %48
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %52

50:                                               ; preds = %48
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %53

52:                                               ; preds = %49, %.critedge27, %23
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %55

53:                                               ; preds = %50, %47, %24
  %.pn24 = phi { ptr, i32 } [ %51, %50 ], [ %.pn.pn.pn, %47 ], [ %25, %24 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %54

54:                                               ; preds = %53, %19
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %53 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn24.pn

55:                                               ; preds = %52, %15
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN2tsL21getLeftmostExpressionE3ptrINS_4data10ExpressionEEb(ptr dead_on_unwind noalias writable sret(%struct.ptr.35) align 8, ptr noundef, i1 noundef zeroext) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2tsntI3ptrINS_4data10ExpressionEEEEbRNS2_9NodeArrayIT_EE(ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3ptrIN2ts4data23ParenthesizedExpressionEE2asIS_INS1_22LeftHandSideExpressionEEEET_v(ptr dead_on_unwind noalias writable sret(%struct.ptr.39) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN2ts18ParenthesizerRulesE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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