; 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.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" }
%"class.std::__shared_count" = type { ptr }
%struct.ptr.116 = type { %"class.std::shared_ptr.117" }
%"class.std::shared_ptr.117" = type { %"class.std::__shared_ptr.118" }
%"class.std::__shared_ptr.118" = 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.ts::ParenthesizerRules" = type { ptr }
%"struct.ts::data::BinaryExpression" = type <{ %"struct.ts::data::Declaration", %struct.ptr, %struct.ptr.120, %struct.ptr, i32, [4 x i8] }>
%"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.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.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.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.ptr.120 = type { %"class.std::shared_ptr.121" }
%"class.std::shared_ptr.121" = type { %"class.std::__shared_ptr.122" }
%"class.std::__shared_ptr.122" = type { ptr, %"class.std::__shared_count" }

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts31skipPartiallyEmittedExpressionsE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.35) align 8, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ptrIN2ts4data4NodeEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) 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: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL23getExpressionPrecedenceE3ptrINS_4data10ExpressionEE(ptr noundef) #4

; 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL21getOperatorPrecedenceE10SyntaxKindS0_b(i32 noundef, i32 noundef, i1 noundef zeroext) #4

; 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 i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef) #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2ts18ParenthesizerRules29binaryOperandNeedsParenthesesE10SyntaxKind3ptrINS_4data10ExpressionEEbS5_(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3, ptr noundef %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.ptr.35, align 8
  %15 = alloca %struct.ptr.35, align 8
  %16 = alloca %struct.ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.ptr, align 8
  %22 = alloca %struct.ptr.35, align 8
  %23 = alloca %struct.ptr.116, align 8
  %24 = alloca i1, align 1
  %25 = alloca i1, align 1
  %26 = alloca i32, align 4
  %27 = alloca %struct.ptr, align 8
  %28 = alloca i1, align 1
  %29 = alloca %struct.ptr, align 8
  %30 = alloca %struct.ptr.35, align 8
  %31 = alloca i1, align 1
  %32 = alloca i1, align 1
  %33 = alloca i32, align 4
  %34 = alloca %struct.ptr, align 8
  %35 = alloca %struct.ptr.35, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  %36 = zext i1 %3 to i8
  store i8 %36, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8
  %38 = getelementptr inbounds %"struct.ts::ParenthesizerRules", ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = call noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232) %39)
  br i1 %40, label %41, label %42

41:                                               ; preds = %5
  store i1 false, ptr %6, align 1
  br label %237

42:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = call noundef i32 @_ZN2tsL21getOperatorPrecedenceE10SyntaxKindS0_b(i32 noundef 226, i32 noundef %43, i1 noundef zeroext false)
  store i32 %44, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = call noundef i32 @_ZN2tsL24getOperatorAssociativityE10SyntaxKindS0_b(i32 noundef 226, i32 noundef %45, i1 noundef zeroext false)
  store i32 %46, ptr %13, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  invoke void @_ZN3ptrIN2ts4data4NodeEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %16)
          to label %47 unwind label %58

47:                                               ; preds = %42
  invoke void @_ZN2ts31skipPartiallyEmittedExpressionsE3ptrINS_4data4NodeEE(ptr dead_on_unwind writable sret(%struct.ptr.35) align 8 %14, ptr noundef %15)
          to label %48 unwind label %62

48:                                               ; preds = %47
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %49 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %50 = trunc i8 %49 to i1
  br i1 %50, label %71, label %51

51:                                               ; preds = %48
  %52 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEeqE10SyntaxKind(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 219)
          to label %53 unwind label %67

53:                                               ; preds = %51
  br i1 %52, label %54, label %71

54:                                               ; preds = %53
  %55 = load i32, ptr %12, align 4, !tbaa !15
  %56 = icmp sgt i32 %55, 3
  br i1 %56, label %57, label %71

57:                                               ; preds = %54
  store i1 true, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %234

58:                                               ; preds = %42
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %17, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %18, align 4
  br label %66

62:                                               ; preds = %47
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %17, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %18, align 4
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %236

67:                                               ; preds = %51
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %17, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %18, align 4
  br label %235

71:                                               ; preds = %54, %53, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  invoke void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %22)
          to label %72 unwind label %79

72:                                               ; preds = %71
  %73 = invoke noundef i32 @_ZN2tsL23getExpressionPrecedenceE3ptrINS_4data10ExpressionEE(ptr noundef %21)
          to label %74 unwind label %83

74:                                               ; preds = %72
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  store i32 %73, ptr %20, align 4, !tbaa !15
  %75 = load i32, ptr %20, align 4, !tbaa !15
  %76 = load i32, ptr %12, align 4, !tbaa !15
  %77 = invoke noundef i32 @_ZN2ts13compareValuesINS_18OperatorPrecedenceEEENS_10ComparisonET_S3_(i32 noundef %75, i32 noundef %76)
          to label %78 unwind label %88

78:                                               ; preds = %74
  switch i32 %77, label %231 [
    i32 -1, label %92
    i32 1, label %103
    i32 0, label %104
  ]

79:                                               ; preds = %71
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %17, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %18, align 4
  br label %87

83:                                               ; preds = %72
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %17, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %18, align 4
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %87

87:                                               ; preds = %83, %79
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %233

88:                                               ; preds = %131, %112, %110, %98, %74
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %17, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %18, align 4
  br label %233

92:                                               ; preds = %78
  %93 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %94 = trunc i8 %93 to i1
  br i1 %94, label %102, label %95

95:                                               ; preds = %92
  %96 = load i32, ptr %13, align 4, !tbaa !17
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEeqE10SyntaxKind(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 229)
          to label %100 unwind label %88

100:                                              ; preds = %98
  br i1 %99, label %101, label %102

101:                                              ; preds = %100
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

102:                                              ; preds = %100, %95, %92
  store i1 true, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

103:                                              ; preds = %78
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

104:                                              ; preds = %78
  %105 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = load i32, ptr %13, align 4, !tbaa !17
  %109 = icmp eq i32 %108, 1
  store i1 %109, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

110:                                              ; preds = %104
  store i1 false, ptr %24, align 1
  store i1 false, ptr %25, align 1
  %111 = invoke noundef i32 @_ZN3ptrIN2ts4data4NodeEEcv10SyntaxKindEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %112 unwind label %88

112:                                              ; preds = %110
  %113 = invoke noundef zeroext i1 @_ZN2ts18isBinaryExpressionE10SyntaxKind(i32 noundef %111)
          to label %114 unwind label %88

114:                                              ; preds = %112
  br i1 %113, label %115, label %123

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  store i1 true, ptr %24, align 1
  invoke void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_16BinaryExpressionEEEET_v(ptr dead_on_unwind writable sret(%struct.ptr.116) align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %116 unwind label %136

116:                                              ; preds = %115
  store i1 true, ptr %25, align 1
  %117 = invoke noundef ptr @_ZN3ptrIN2ts4data16BinaryExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %118 unwind label %140

118:                                              ; preds = %116
  %119 = getelementptr inbounds %"struct.ts::data::BinaryExpression", ptr %117, i32 0, i32 2
  %120 = load i32, ptr %8, align 4, !tbaa !9
  %121 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data5TokenIJL10SyntaxKind43EEEEEeqES3_(ptr noundef nonnull align 8 dereferenceable(16) %119, i32 noundef %120)
          to label %122 unwind label %140

122:                                              ; preds = %118
  br label %123

123:                                              ; preds = %122, %114
  %124 = phi i1 [ false, %114 ], [ %121, %122 ]
  %125 = load i1, ptr %25, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void @_ZN3ptrIN2ts4data16BinaryExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %127

127:                                              ; preds = %126, %123
  %128 = load i1, ptr %24, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %130

130:                                              ; preds = %129, %127
  br i1 %124, label %131, label %216

131:                                              ; preds = %130
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = invoke noundef zeroext i1 @_ZN2tsL30operatorHasAssociativePropertyE10SyntaxKind(i32 noundef %132)
          to label %134 unwind label %88

134:                                              ; preds = %131
  br i1 %133, label %135, label %151

135:                                              ; preds = %134
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

136:                                              ; preds = %115
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %17, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %18, align 4
  br label %147

140:                                              ; preds = %118, %116
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %17, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %18, align 4
  %144 = load i1, ptr %25, align 1
  br i1 %144, label %145, label %146

145:                                              ; preds = %140
  call void @_ZN3ptrIN2ts4data16BinaryExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %146

146:                                              ; preds = %145, %140
  br label %147

147:                                              ; preds = %146, %136
  %148 = load i1, ptr %24, align 1
  br i1 %148, label %149, label %150

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %150

150:                                              ; preds = %149, %147
  br label %233

151:                                              ; preds = %134
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 40
  br i1 %153, label %154, label %215

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i1 false, ptr %28, align 1
  %155 = invoke noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %156 unwind label %184

156:                                              ; preds = %154
  br i1 %155, label %157, label %160

157:                                              ; preds = %156
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  store i1 true, ptr %28, align 1
  %158 = invoke noundef i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef %27)
          to label %159 unwind label %188

159:                                              ; preds = %157
  br label %161

160:                                              ; preds = %156
  br label %161

161:                                              ; preds = %160, %159
  %162 = phi i32 [ %158, %159 ], [ 0, %160 ]
  %163 = load i1, ptr %28, align 1
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %165

165:                                              ; preds = %164, %161
  store i32 %162, ptr %26, align 4, !tbaa !9
  %166 = load i32, ptr %26, align 4, !tbaa !9
  store i1 false, ptr %31, align 1
  store i1 false, ptr %32, align 1
  %167 = invoke noundef zeroext i1 @_ZN2ts13isLiteralKindE10SyntaxKind(i32 noundef %166)
          to label %168 unwind label %184

168:                                              ; preds = %165
  br i1 %167, label %169, label %175

169:                                              ; preds = %168
  %170 = load i32, ptr %26, align 4, !tbaa !9
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  store i1 true, ptr %31, align 1
  invoke void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %30)
          to label %171 unwind label %195

171:                                              ; preds = %169
  store i1 true, ptr %32, align 1
  %172 = invoke noundef i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef %29)
          to label %173 unwind label %199

173:                                              ; preds = %171
  %174 = icmp eq i32 %170, %172
  br label %175

175:                                              ; preds = %173, %168
  %176 = phi i1 [ false, %168 ], [ %174, %173 ]
  %177 = load i1, ptr %32, align 1
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %179

179:                                              ; preds = %178, %175
  %180 = load i1, ptr %31, align 1
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br label %182

182:                                              ; preds = %181, %179
  br i1 %176, label %183, label %210

183:                                              ; preds = %182
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %211

184:                                              ; preds = %165, %154
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %17, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %18, align 4
  br label %214

188:                                              ; preds = %157
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %17, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %18, align 4
  %192 = load i1, ptr %28, align 1
  br i1 %192, label %193, label %194

193:                                              ; preds = %188
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %194

194:                                              ; preds = %193, %188
  br label %214

195:                                              ; preds = %169
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %17, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %18, align 4
  br label %206

199:                                              ; preds = %171
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %17, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %18, align 4
  %203 = load i1, ptr %32, align 1
  br i1 %203, label %204, label %205

204:                                              ; preds = %199
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %205

205:                                              ; preds = %204, %199
  br label %206

206:                                              ; preds = %205, %195
  %207 = load i1, ptr %31, align 1
  br i1 %207, label %208, label %209

208:                                              ; preds = %206
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br label %209

209:                                              ; preds = %208, %206
  br label %214

210:                                              ; preds = %182
  store i32 0, ptr %19, align 4
  br label %211

211:                                              ; preds = %210, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %212 = load i32, ptr %19, align 4
  switch i32 %212, label %232 [
    i32 0, label %213
  ]

213:                                              ; preds = %211
  br label %215

214:                                              ; preds = %209, %194, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %233

215:                                              ; preds = %213, %151
  br label %216

216:                                              ; preds = %215, %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  invoke void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef %35)
          to label %217 unwind label %222

217:                                              ; preds = %216
  %218 = invoke noundef i32 @_ZN2tsL26getExpressionAssociativityE3ptrINS_4data10ExpressionEE(ptr noundef %34)
          to label %219 unwind label %226

219:                                              ; preds = %217
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  store i32 %218, ptr %33, align 4, !tbaa !17
  %220 = load i32, ptr %33, align 4, !tbaa !17
  %221 = icmp eq i32 %220, 0
  store i1 %221, ptr %6, align 1
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %232

222:                                              ; preds = %216
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %17, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %18, align 4
  br label %230

226:                                              ; preds = %217
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %17, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %18, align 4
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %233

231:                                              ; preds = %78
  store i1 false, ptr %6, align 1
  store i32 1, ptr %19, align 4
  br label %232

232:                                              ; preds = %231, %219, %211, %135, %107, %103, %102, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %234

233:                                              ; preds = %230, %214, %150, %88, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %235

234:                                              ; preds = %232, %57
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %237

235:                                              ; preds = %233, %67
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %236

236:                                              ; preds = %235, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %239

237:                                              ; preds = %234, %41
  %238 = load i1, ptr %6, align 1
  ret i1 %238

239:                                              ; preds = %236
  %240 = load ptr, ptr %17, align 8
  %241 = load i32, ptr %18, align 4
  %242 = insertvalue { ptr, i32 } poison, ptr %240, 0
  %243 = insertvalue { ptr, i32 } %242, i32 %241, 1
  resume { ptr, i32 } %243
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN2tsL24getOperatorAssociativityE10SyntaxKindS0_b(i32 noundef, i32 noundef, i1 noundef zeroext) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ts13compareValuesINS_18OperatorPrecedenceEEENS_10ComparisonET_S3_(i32 noundef, i32 noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN2tsL30operatorHasAssociativePropertyE10SyntaxKind(i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL26getExpressionAssociativityE3ptrINS_4data10ExpressionEE(ptr noundef) #4

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 = { 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 = { 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, !10, i64 0}
!10 = !{!"_ZTS10SyntaxKind", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN2ts18ParenthesizerRulesE", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN2ts18OperatorPrecedenceE", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN2ts13AssociativityE", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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.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" }
%"class.std::__shared_count" = type { ptr }
%struct.ptr.116 = type { %"class.std::shared_ptr.117" }
%"class.std::shared_ptr.117" = type { %"class.std::__shared_ptr.118" }
%"class.std::__shared_ptr.118" = 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" }

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2ts31skipPartiallyEmittedExpressionsE3ptrINS_4data4NodeEE(ptr dead_on_unwind noalias writable sret(%struct.ptr.35) align 8, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ptrIN2ts4data4NodeEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) 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: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL23getExpressionPrecedenceE3ptrINS_4data10ExpressionEE(ptr noundef) local_unnamed_addr #4

; 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL21getOperatorPrecedenceE10SyntaxKindS0_b(i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

; 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 i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2ts18ParenthesizerRules29binaryOperandNeedsParenthesesE10SyntaxKind3ptrINS_4data10ExpressionEEbS5_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3, ptr noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.ptr.35, align 8
  %7 = alloca %struct.ptr.35, align 8
  %8 = alloca %struct.ptr, align 8
  %9 = alloca %struct.ptr, align 8
  %10 = alloca %struct.ptr.35, align 8
  %11 = alloca %struct.ptr.116, align 8
  %12 = alloca %struct.ptr, align 8
  %13 = alloca %struct.ptr, align 8
  %14 = alloca %struct.ptr.35, align 8
  %15 = alloca %struct.ptr, align 8
  %16 = alloca %struct.ptr.35, align 8
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = tail call noundef zeroext i1 @_ZN2ts11NodeFactory20NoParenthesizerRulesEv(ptr noundef nonnull align 8 dereferenceable(232) %17)
  br i1 %18, label %81, label %19

19:                                               ; preds = %5
  %20 = tail call noundef i32 @_ZN2tsL21getOperatorPrecedenceE10SyntaxKindS0_b(i32 noundef 226, i32 noundef %1, i1 noundef zeroext false)
  %21 = tail call noundef i32 @_ZN2tsL24getOperatorAssociativityE10SyntaxKindS0_b(i32 noundef 226, i32 noundef %1, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @_ZN3ptrIN2ts4data4NodeEEC2INS1_10ExpressionEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull %8)
  invoke void @_ZN2ts31skipPartiallyEmittedExpressionsE3ptrINS_4data4NodeEE(ptr dead_on_unwind nonnull writable sret(%struct.ptr.35) align 8 %6, ptr noundef nonnull %7)
          to label %22 unwind label %26

22:                                               ; preds = %19
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br i1 %3, label %28, label %23

23:                                               ; preds = %22
  %24 = call noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEeqE10SyntaxKind(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 219)
  %25 = icmp sgt i32 %20, 3
  %or.cond = and i1 %25, %24
  br i1 %or.cond, label %79, label %28

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

28:                                               ; preds = %23, %22
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %10)
  %29 = invoke noundef i32 @_ZN2tsL23getExpressionPrecedenceE3ptrINS_4data10ExpressionEE(ptr noundef nonnull %9)
          to label %30 unwind label %33

30:                                               ; preds = %28
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  %31 = invoke noundef i32 @_ZN2ts13compareValuesINS_18OperatorPrecedenceEEENS_10ComparisonET_S3_(i32 noundef %29, i32 noundef %20)
          to label %32 unwind label %35

32:                                               ; preds = %30
  switch i32 %31, label %79 [
    i32 -1, label %37
    i32 0, label %42
  ]

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %78

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %78

37:                                               ; preds = %32
  %38 = icmp ne i32 %21, 1
  %or.cond3.not = or i1 %38, %3
  br i1 %or.cond3.not, label %41, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEeqE10SyntaxKind(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 229)
  br i1 %40, label %79, label %41

41:                                               ; preds = %39, %37
  br label %79

42:                                               ; preds = %32
  br i1 %3, label %43, label %45

43:                                               ; preds = %42
  %44 = icmp eq i32 %21, 1
  br label %79

45:                                               ; preds = %42
  %46 = call noundef i32 @_ZN3ptrIN2ts4data4NodeEEcv10SyntaxKindEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %47 = call noundef zeroext i1 @_ZN2ts18isBinaryExpressionE10SyntaxKind(i32 noundef %46)
  br i1 %47, label %48, label %.critedge.thread

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZN3ptrIN2ts4data4NodeEE2asIS_INS1_16BinaryExpressionEEEET_v(ptr dead_on_unwind nonnull writable sret(%struct.ptr.116) align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %.critedge unwind label %54

.critedge:                                        ; preds = %48
  %49 = call noundef ptr @_ZN3ptrIN2ts4data16BinaryExpressionEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %50 = getelementptr inbounds i8, ptr %49, i64 344
  %51 = call noundef zeroext i1 @_ZN3ptrIN2ts4data5TokenIJL10SyntaxKind43EEEEEeqES3_(ptr noundef nonnull align 8 dereferenceable(16) %50, i32 noundef %1)
  call void @_ZN3ptrIN2ts4data16BinaryExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br i1 %51, label %52, label %.critedge.thread

52:                                               ; preds = %.critedge
  %53 = call noundef zeroext i1 @_ZN2tsL30operatorHasAssociativePropertyE10SyntaxKind(i32 noundef %1)
  br i1 %53, label %79, label %56

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %78

56:                                               ; preds = %52
  %57 = icmp eq i32 %1, 40
  br i1 %57, label %58, label %.critedge.thread

58:                                               ; preds = %56
  %59 = call noundef zeroext i1 @_ZN3ptrIN2ts4data10ExpressionEEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br i1 %59, label %60, label %63

60:                                               ; preds = %58
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  %61 = invoke noundef i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef nonnull %12)
          to label %62 unwind label %68

62:                                               ; preds = %60
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %63

63:                                               ; preds = %58, %62
  %64 = phi i32 [ %61, %62 ], [ 0, %58 ]
  %65 = call noundef zeroext i1 @_ZN2ts13isLiteralKindE10SyntaxKind(i32 noundef %64)
  br i1 %65, label %66, label %.critedge.thread

66:                                               ; preds = %63
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %14)
  %67 = invoke noundef i32 @_ZN2ts33getLiteralKindOfBinaryPlusOperandE3ptrINS_4data10ExpressionEE(ptr noundef nonnull %13)
          to label %.critedge50 unwind label %70

68:                                               ; preds = %60
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %78

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %78

.critedge50:                                      ; preds = %66
  %72 = icmp eq i32 %64, %67
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br i1 %72, label %79, label %.critedge.thread

.critedge.thread:                                 ; preds = %63, %45, %56, %.critedge50, %.critedge
  call void @_ZN3ptrIN2ts4data4NodeEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN3ptrIN2ts4data10ExpressionEEC2INS1_4NodeEEES_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %16)
  %73 = invoke noundef i32 @_ZN2tsL26getExpressionAssociativityE3ptrINS_4data10ExpressionEE(ptr noundef nonnull %15)
          to label %74 unwind label %76

74:                                               ; preds = %.critedge.thread
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %75 = icmp eq i32 %73, 0
  br label %79

76:                                               ; preds = %.critedge.thread
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3ptrIN2ts4data10ExpressionEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %78

78:                                               ; preds = %68, %70, %54, %76, %35, %33
  %.pn45 = phi { ptr, i32 } [ %77, %76 ], [ %55, %54 ], [ %36, %35 ], [ %34, %33 ], [ %71, %70 ], [ %69, %68 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %80

79:                                               ; preds = %41, %43, %74, %.critedge50, %39, %52, %32, %23
  %.2 = phi i1 [ true, %23 ], [ %44, %43 ], [ %75, %74 ], [ false, %.critedge50 ], [ true, %41 ], [ false, %39 ], [ false, %52 ], [ false, %32 ]
  call void @_ZN3ptrIN2ts4data4NodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %81

80:                                               ; preds = %78, %26
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %78 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn45.pn

81:                                               ; preds = %5, %79
  %.3 = phi i1 [ %.2, %79 ], [ false, %5 ]
  ret i1 %.3
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN2tsL24getOperatorAssociativityE10SyntaxKindS0_b(i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN2ts13compareValuesINS_18OperatorPrecedenceEEENS_10ComparisonET_S3_(i32 noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN2tsL30operatorHasAssociativePropertyE10SyntaxKind(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN2tsL26getExpressionAssociativityE3ptrINS_4data10ExpressionEE(ptr noundef) local_unnamed_addr #4

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 = { 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 = { 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,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass