; LLVM IR from jzimmerman/langcc :: gen/cc/gen.ll (ZN4lang2cc4Node5Param2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE)

; 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.30" = type { ptr, ptr }
%"struct.langcc::rc_ptr.35" = 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.lang::cc::Node::Param::_T" = type <{ %"struct.lang::cc::Node::_T", %"struct.langcc::rc_ptr.200", %"struct.langcc::rc_ptr.45", %"struct.langcc::rc_ptr.45", %"struct.langcc::Option::_T.201", [4 x i8] }>
%"struct.lang::cc::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.200" = type { ptr, ptr }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::Option::_T.201" = type { i32, [16 x i8] }

@.str.266 = 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_ptrIN4lang2cc4Node5Param2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_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: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node5Param2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.30") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param3val2_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_IN4lang2cc4Node3Mod2_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_ptrIN4lang2cc4Node3Mod2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) #5 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: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Expr2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node3Mod2_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 @_ZN4lang2cc4Node5Param2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(204) %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.30", align 8
  %6 = alloca i64, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.langcc::rc_ptr.35", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  %19 = getelementptr inbounds i8, ptr %18, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node5Param2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.30") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 0, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %20

20:                                               ; preds = %76, %2
  %21 = load i64, ptr %6, align 8, !tbaa !11
  %22 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %23 unwind label %46

23:                                               ; preds = %20
  %24 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %22, i32 0, i32 1
  %25 = invoke noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %26 unwind label %46

26:                                               ; preds = %23
  %27 = icmp slt i64 %21, %25
  br i1 %27, label %28, label %81

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %29 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %30 unwind label %50

30:                                               ; preds = %28
  %31 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %29, i32 0, i32 1
  %32 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %33 unwind label %50

33:                                               ; preds = %30
  %34 = load i64, ptr %6, align 8, !tbaa !11
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %32, i64 noundef %34)
          to label %36 unwind label %50

36:                                               ; preds = %33
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %37 unwind label %50

37:                                               ; preds = %36
  %38 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %67

40:                                               ; preds = %37
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %43 unwind label %54

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.266, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %44 unwind label %58

44:                                               ; preds = %43
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %42, ptr noundef %12)
          to label %45 unwind label %62

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %67

46:                                               ; preds = %84, %23, %20
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %134

50:                                               ; preds = %36, %33, %30, %28
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  br label %80

54:                                               ; preds = %73, %71, %40
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %79

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

62:                                               ; preds = %44
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %79

67:                                               ; preds = %45, %37
  %68 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %69 = trunc i8 %68 to i1
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %71

71:                                               ; preds = %70, %67
  store i8 1, ptr %7, align 1, !tbaa !9
  %72 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %73 unwind label %54

73:                                               ; preds = %71
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4lang2cc4Node3Mod2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %72, ptr noundef nonnull align 8 dereferenceable(16) %74)
          to label %75 unwind label %54

75:                                               ; preds = %73
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %6, align 8, !tbaa !11
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %6, align 8, !tbaa !11
  br label %20, !llvm.loop !15

79:                                               ; preds = %66, %54
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %80

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

81:                                               ; preds = %26
  %82 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %99

84:                                               ; preds = %81
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %85)
          to label %87 unwind label %46

87:                                               ; preds = %84
  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.266, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %88 unwind label %90

88:                                               ; preds = %87
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %86, ptr noundef %14)
          to label %89 unwind label %94

89:                                               ; preds = %88
  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
  br label %99

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

94:                                               ; preds = %88
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %9, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %98

98:                                               ; preds = %94, %90
  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 %134

99:                                               ; preds = %89, %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %100 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %101 unwind label %135

101:                                              ; preds = %99
  %102 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %100, i32 0, i32 2
  %103 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %102)
          to label %104 unwind label %135

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

106:                                              ; preds = %104
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_11PrBufStream2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %107)
          to label %109 unwind label %135

109:                                              ; preds = %106
  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.266, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %110 unwind label %139

110:                                              ; preds = %109
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %108, ptr noundef %16)
          to label %111 unwind label %143

111:                                              ; preds = %110
  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
  %112 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %113 unwind label %135

113:                                              ; preds = %111
  %114 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %112, i32 0, i32 3
  %115 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %114)
          to label %116 unwind label %135

116:                                              ; preds = %113
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4lang2cc4Node4Expr2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %115, ptr noundef nonnull align 8 dereferenceable(16) %117)
          to label %118 unwind label %135

118:                                              ; preds = %116
  %119 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %120 unwind label %135

120:                                              ; preds = %118
  %121 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %119, i32 0, i32 4
  %122 = invoke noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %121)
          to label %123 unwind label %135

123:                                              ; preds = %120
  br i1 %122, label %124, label %148

124:                                              ; preds = %123
  %125 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %126 unwind label %135

126:                                              ; preds = %124
  %127 = getelementptr inbounds %"struct.lang::cc::Node::Param::_T", ptr %125, i32 0, i32 4
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %127)
          to label %129 unwind label %135

129:                                              ; preds = %126
  %130 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param3val2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %128)
          to label %131 unwind label %135

131:                                              ; preds = %129
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4lang2cc4Node5Param3val2_T5writeERN6langcc6rc_ptrINS5_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(152) %130, ptr noundef nonnull align 8 dereferenceable(16) %132)
          to label %133 unwind label %135

133:                                              ; preds = %131
  br label %148

134:                                              ; preds = %98, %80, %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %149

135:                                              ; preds = %131, %129, %126, %124, %120, %118, %116, %113, %111, %106, %104, %101, %99
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %149

139:                                              ; preds = %109
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  br label %147

143:                                              ; preds = %110
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %147

147:                                              ; preds = %143, %139
  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

148:                                              ; preds = %133, %123
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_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 = %147, %135, %134
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %9, align 8
  %152 = load i32, ptr %10, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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

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.30" = type { ptr, ptr }
%"struct.langcc::rc_ptr.35" = 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 }

@.str.266 = 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_ptrIN4lang2cc4Node5Param2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_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: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node5Param2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.30") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_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_ptrIN4lang2cc4Node3Mod2_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_ptrIN4lang2cc4Node4Expr2_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_ptrIN4lang2cc4Node5Param3val2_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_IN4lang2cc4Node3Mod2_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_ptrIN4lang2cc4Node3Mod2_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 void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #5 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: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Expr2_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node3Mod2_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 @_ZN4lang2cc4Node5Param2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(204) %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.30", align 8
  %4 = alloca %"struct.langcc::rc_ptr.35", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node5Param2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.30") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %12 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %13 = getelementptr inbounds i8, ptr %12, i64 136
  %14 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %.critedge.peel, label %.critedge37

.critedge.peel:                                   ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %16 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %17 = getelementptr inbounds i8, ptr %16, i64 136
  %18 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %18, i64 noundef 0)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %20 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN4lang2cc4Node3Mod2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %20, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %21 unwind label %.loopexit.split-lp45

21:                                               ; preds = %.critedge.peel
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %22 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %23 = getelementptr inbounds i8, ptr %22, i64 136
  %24 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = icmp sgt i64 %24, 1
  br i1 %25, label %.lr.ph.peel.next, label %._crit_edge

.lr.ph.peel.next:                                 ; preds = %21, %36
  %.02235 = phi i64 [ %37, %36 ], [ 1, %21 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %26 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %27 = getelementptr inbounds i8, ptr %26, i64 136
  %28 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %28, i64 noundef %.02235)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %30 = 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 %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.266, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %31 unwind label %32

31:                                               ; preds = %.lr.ph.peel.next
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %30, ptr noundef nonnull %5)
          to label %.critedge unwind label %33

.loopexit44:                                      ; preds = %.critedge
  %lpad.loopexit46 = landingpad { ptr, i32 }
          cleanup
  br label %42

.loopexit.split-lp45:                             ; preds = %.critedge.peel
  %lpad.loopexit.split-lp47 = landingpad { ptr, i32 }
          cleanup
  br label %42

32:                                               ; preds = %.lr.ph.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %34

33:                                               ; preds = %31
  %lpad.loopexit41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %34

34:                                               ; preds = %33, %32
  %.pn26 = phi { ptr, i32 } [ %lpad.loopexit41, %33 ], [ %lpad.loopexit, %32 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %42

.critedge:                                        ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %35 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN4lang2cc4Node3Mod2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %35, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %36 unwind label %.loopexit44

36:                                               ; preds = %.critedge
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %37 = add nuw nsw i64 %.02235, 1
  %38 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %39 = getelementptr inbounds i8, ptr %38, i64 136
  %40 = call noundef i64 @_ZN6langcc3lenINS_6rc_ptrIN4lang2cc4Node3Mod2_TEEEEElRKNS1_INS_3VecIT_EEEE(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = icmp slt i64 %37, %40
  br i1 %41, label %.lr.ph.peel.next, label %._crit_edge, !llvm.loop !5

42:                                               ; preds = %.loopexit44, %.loopexit.split-lp45, %34
  %.pn28 = phi { ptr, i32 } [ %.pn26, %34 ], [ %lpad.loopexit46, %.loopexit44 ], [ %lpad.loopexit.split-lp47, %.loopexit.split-lp45 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node3Mod2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %79

._crit_edge:                                      ; preds = %36, %21
  %43 = 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.266, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %44 unwind label %46

44:                                               ; preds = %._crit_edge
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %43, ptr noundef nonnull %7)
          to label %45 unwind label %48

45:                                               ; preds = %44
  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
  br label %.critedge37

46:                                               ; preds = %._crit_edge
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %44
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  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 %79

.critedge37:                                      ; preds = %2, %45
  %51 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %52 = getelementptr inbounds i8, ptr %51, i64 152
  %53 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %52)
  invoke void @_ZN4lang2cc4Node4Expr2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %53, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %54 unwind label %71

54:                                               ; preds = %.critedge37
  %55 = 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.266, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %56 unwind label %73

56:                                               ; preds = %54
  invoke void @_ZN6langcc11PrBufStream2_T11push_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(80) %55, ptr noundef nonnull %9)
          to label %57 unwind label %75

57:                                               ; preds = %56
  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
  %58 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %59 = getelementptr inbounds i8, ptr %58, i64 168
  %60 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  invoke void @_ZN4lang2cc4Node4Expr2_T5writeERN6langcc6rc_ptrINS4_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(140) %60, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %61 unwind label %71

61:                                               ; preds = %57
  %62 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %63 = getelementptr inbounds i8, ptr %62, i64 184
  %64 = call noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %63)
  br i1 %64, label %65, label %78

65:                                               ; preds = %61
  %66 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %67 = getelementptr inbounds i8, ptr %66, i64 184
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node5Param3val2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %67)
          to label %69 unwind label %71

69:                                               ; preds = %65
  %70 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param3val2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %68)
  invoke void @_ZN4lang2cc4Node5Param3val2_T5writeERN6langcc6rc_ptrINS5_11PrBufStream2_TEEE(ptr noundef nonnull align 8 dereferenceable(152) %70, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %78 unwind label %71

71:                                               ; preds = %69, %65, %57, %.critedge37
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %79

73:                                               ; preds = %54
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %56
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %77

77:                                               ; preds = %75, %73
  %.pn24 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  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 %79

78:                                               ; preds = %69, %61
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret void

79:                                               ; preds = %42, %50, %77, %71
  %.pn28.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %.pn24, %77 ], [ %.pn28, %42 ], [ %.pn, %50 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Param2_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 } %.pn28.pn.pn
}

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

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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass