; LLVM IR from jzimmerman/langcc :: gen/meta (gen)

; 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.langcc::rc_ptr.258" = type { ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.langcc::rc_ptr.37" = type { ptr, ptr }
%"struct.lang::meta::Node::AttrClause::Block::_T" = type { %"struct.lang::meta::Node::AttrClause::_T.base", %"struct.langcc::rc_ptr.469" }
%"struct.lang::meta::Node::AttrClause::_T.base" = type <{ %"struct.lang::meta::Node::_T", i32 }>
%"struct.lang::meta::Node::_T" = type { ptr, %"struct.langcc::hash_obj", %"struct.langcc::enable_rc_from_this_poly", i32, i64, %"struct.langcc::TokenBounds", i8, i64, %"struct.langcc::ParserAttrMask", %"struct.langcc::ParserLookahead" }
%"struct.langcc::hash_obj" = type { %"struct.langcc::Option::_T" }
%"struct.langcc::Option::_T" = type { i32, [32 x i8] }
%"struct.langcc::enable_rc_from_this_poly" = type { ptr, ptr }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.469" = type { ptr, ptr }

@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node10AttrClause5Block2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.258") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_indentEv(ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_dedentEv(ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4lang4meta4Node10AttrClause5Block2_T5writeERN6langcc6rc_ptrINS5_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.langcc::rc_ptr.258", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca %"struct.langcc::rc_ptr.37", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  %21 = getelementptr inbounds i8, ptr %20, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node10AttrClause5Block2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.258") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %24 unwind label %57

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.269, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %25 unwind label %61

25:                                               ; preds = %24
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %23, ptr noundef %8)
          to label %26 unwind label %65

26:                                               ; preds = %25
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %27

27:                                               ; preds = %108, %26
  %28 = load i64, ptr %10, align 8, !tbaa !11
  %29 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %30 unwind label %70

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"struct.lang::meta::Node::AttrClause::Block::_T", ptr %29, i32 0, i32 1
  %32 = invoke noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %33 unwind label %70

33:                                               ; preds = %30
  %34 = icmp slt i64 %28, %32
  br i1 %34, label %35, label %113

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %36 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %37 unwind label %74

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"struct.lang::meta::Node::AttrClause::Block::_T", ptr %36, i32 0, i32 1
  %39 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node10AttrClause2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %40 unwind label %74

40:                                               ; preds = %37
  %41 = load i64, ptr %10, align 8, !tbaa !11
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %39, i64 noundef %41)
          to label %43 unwind label %74

43:                                               ; preds = %40
  invoke void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %44 unwind label %74

44:                                               ; preds = %43
  %45 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %91

47:                                               ; preds = %44
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %50 unwind label %78

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.270, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %51 unwind label %82

51:                                               ; preds = %50
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %49, ptr noundef %14)
          to label %52 unwind label %86

52:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %55 unwind label %78

55:                                               ; preds = %52
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %54, i64 noundef 1)
          to label %56 unwind label %78

56:                                               ; preds = %55
  br label %91

57:                                               ; preds = %143, %2
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  br label %159

61:                                               ; preds = %24
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  br label %69

65:                                               ; preds = %25
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %69

69:                                               ; preds = %65, %61
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %159

70:                                               ; preds = %141, %138, %134, %131, %116, %30, %27
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %6, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %7, align 4
  br label %149

74:                                               ; preds = %43, %40, %37, %35
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  br label %112

78:                                               ; preds = %105, %103, %101, %98, %97, %94, %55, %52, %47
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %111

82:                                               ; preds = %50
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  br label %90

86:                                               ; preds = %51
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %90

90:                                               ; preds = %86, %82
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %111

91:                                               ; preds = %56, %44
  %92 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  br i1 %93, label %103, label %94

94:                                               ; preds = %91
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %95)
          to label %97 unwind label %78

97:                                               ; preds = %94
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %96, i64 noundef 1)
          to label %98 unwind label %78

98:                                               ; preds = %97
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %99)
          to label %101 unwind label %78

101:                                              ; preds = %98
  invoke void @_ZN6langcc11PrBufStream2_T11push_indentEv(ptr noundef nonnull align 8 dereferenceable(80) %100)
          to label %102 unwind label %78

102:                                              ; preds = %101
  store i8 1, ptr %12, align 1, !tbaa !9
  br label %103

103:                                              ; preds = %102, %91
  store i8 1, ptr %11, align 1, !tbaa !9
  %104 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %105 unwind label %78

105:                                              ; preds = %103
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4lang4meta4Node10AttrClause2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %104, ptr noundef nonnull align 8 dereferenceable(16) %106)
          to label %107 unwind label %78

107:                                              ; preds = %105
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %10, align 8, !tbaa !11
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %10, align 8, !tbaa !11
  br label %27, !llvm.loop !15

111:                                              ; preds = %90, %78
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %112

112:                                              ; preds = %111, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %149

113:                                              ; preds = %33
  %114 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %131

116:                                              ; preds = %113
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %117)
          to label %119 unwind label %70

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.270, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %120 unwind label %122

120:                                              ; preds = %119
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %118, ptr noundef %16)
          to label %121 unwind label %126

121:                                              ; preds = %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %131

122:                                              ; preds = %119
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %6, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %7, align 4
  br label %130

126:                                              ; preds = %120
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %6, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %130

130:                                              ; preds = %126, %122
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %149

131:                                              ; preds = %121, %113
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %132)
          to label %134 unwind label %70

134:                                              ; preds = %131
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %133, i64 noundef 1)
          to label %135 unwind label %70

135:                                              ; preds = %134
  %136 = load i8, ptr %12, align 1, !tbaa !9, !range !13, !noundef !14
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %143

138:                                              ; preds = %135
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %139)
          to label %141 unwind label %70

141:                                              ; preds = %138
  invoke void @_ZN6langcc11PrBufStream2_T11push_dedentEv(ptr noundef nonnull align 8 dereferenceable(80) %140)
          to label %142 unwind label %70

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %144)
          to label %146 unwind label %57

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.38, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %147 unwind label %150

147:                                              ; preds = %146
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %145, ptr noundef %18)
          to label %148 unwind label %154

148:                                              ; preds = %147
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  ret void

149:                                              ; preds = %130, %112, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %159

150:                                              ; preds = %146
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %6, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %7, align 4
  br label %158

154:                                              ; preds = %147
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %6, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %158

158:                                              ; preds = %154, %150
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %159

159:                                              ; preds = %158, %149, %69, %57
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %6, align 8
  %162 = load i32, ptr %7, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.langcc::rc_ptr.258" = type { ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.langcc::rc_ptr.37" = type { ptr, ptr }

@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node10AttrClause5Block2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.258") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_indentEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc11PrBufStream2_T11push_dedentEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4meta4Node10AttrClause2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4lang4meta4Node10AttrClause5Block2_T5writeERN6langcc6rc_ptrINS5_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.langcc::rc_ptr.258", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"struct.langcc::rc_ptr.37", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node10AttrClause5Block2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.258") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %14 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.269, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %15 unwind label %43

15:                                               ; preds = %2
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull %4)
          to label %16 unwind label %45

16:                                               ; preds = %15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %17 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %18 = getelementptr inbounds i8, ptr %17, i64 144
  %19 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.critedge.peel, label %._crit_edge.thread64

.critedge.peel:                                   ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %21 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %22 = getelementptr inbounds i8, ptr %21, i64 144
  %23 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node10AttrClause2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %23, i64 noundef 0)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %25 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %25, i64 noundef 1)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %.critedge.peel
  %27 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc11PrBufStream2_T11push_indentEv(ptr noundef nonnull align 8 dereferenceable(80) %27)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %26
  %29 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  invoke void @_ZN4lang4meta4Node10AttrClause2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %29, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %30 unwind label %.loopexit.split-lp

30:                                               ; preds = %28
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %31 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %32 = getelementptr inbounds i8, ptr %31, i64 144
  %33 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %32)
  %34 = icmp sgt i64 %33, 1
  br i1 %34, label %.lr.ph.peel.next, label %._crit_edge.thread

.lr.ph.peel.next:                                 ; preds = %30, %55
  %.02047 = phi i64 [ %56, %55 ], [ 1, %30 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %35 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %36 = getelementptr inbounds i8, ptr %35, i64 144
  %37 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node10AttrClause2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %37, i64 noundef %.02047)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %38)
  %39 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.270, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %40 unwind label %50

40:                                               ; preds = %.lr.ph.peel.next
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %39, ptr noundef nonnull %7)
          to label %41 unwind label %51

41:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  %42 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %42, i64 noundef 1)
          to label %53 unwind label %.loopexit

43:                                               ; preds = %2
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %15
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %83

48:                                               ; preds = %72, %._crit_edge.thread64
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %83

.loopexit:                                        ; preds = %41, %53
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %61

.loopexit.split-lp:                               ; preds = %.critedge.peel, %26, %28
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %61

50:                                               ; preds = %.lr.ph.peel.next
  %lpad.loopexit54 = landingpad { ptr, i32 }
          cleanup
  br label %52

51:                                               ; preds = %40
  %lpad.loopexit59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %52

52:                                               ; preds = %51, %50
  %.pn35 = phi { ptr, i32 } [ %lpad.loopexit59, %51 ], [ %lpad.loopexit54, %50 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %61

53:                                               ; preds = %41
  %54 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  invoke void @_ZN4lang4meta4Node10AttrClause2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %54, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %55 unwind label %.loopexit

55:                                               ; preds = %53
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %56 = add nuw nsw i64 %.02047, 1
  %57 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %58 = getelementptr inbounds i8, ptr %57, i64 144
  %59 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang4meta4Node10AttrClause2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %58)
  %60 = icmp slt i64 %56, %59
  br i1 %60, label %.lr.ph.peel.next, label %._crit_edge, !llvm.loop !5

61:                                               ; preds = %.loopexit, %.loopexit.split-lp, %52
  %.pn37 = phi { ptr, i32 } [ %.pn35, %52 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %83

._crit_edge:                                      ; preds = %55
  br i1 %20, label %._crit_edge.thread, label %._crit_edge.thread64

._crit_edge.thread:                               ; preds = %30, %._crit_edge
  %62 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.270, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %63 unwind label %65

63:                                               ; preds = %._crit_edge.thread
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %62, ptr noundef nonnull %9)
          to label %64 unwind label %67

64:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %._crit_edge.thread64

65:                                               ; preds = %._crit_edge.thread
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %63
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn31 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %83

._crit_edge.thread64:                             ; preds = %16, %64, %._crit_edge
  %70 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc11PrBufStream2_T13push_newlinesEl(ptr noundef nonnull align 8 dereferenceable(80) %70, i64 noundef 1)
          to label %71 unwind label %48

71:                                               ; preds = %._crit_edge.thread64
  br i1 %20, label %72, label %74

72:                                               ; preds = %71
  %73 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN6langcc11PrBufStream2_T11push_dedentEv(ptr noundef nonnull align 8 dereferenceable(80) %73)
          to label %74 unwind label %48

74:                                               ; preds = %72, %71
  %75 = call noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.38, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %76 unwind label %78

76:                                               ; preds = %74
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %75, ptr noundef nonnull %11)
          to label %77 unwind label %80

77:                                               ; preds = %76
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret void

78:                                               ; preds = %74
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %82

80:                                               ; preds = %76
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %82

82:                                               ; preds = %80, %78
  %.pn33 = phi { ptr, i32 } [ %81, %80 ], [ %79, %78 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %83

83:                                               ; preds = %48, %61, %69, %82, %47
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn33, %82 ], [ %.pn, %47 ], [ %.pn37, %61 ], [ %49, %48 ], [ %.pn31, %69 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node10AttrClause5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn37.pn.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass