; LLVM IR from vczh/herodb :: Kernel/Source (Vlpp)

; 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"

%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::stream::FileStream" = type { %"class.vl::Object", i32, ptr, %"class.vl::stream::IStream" }
%"class.vl::stream::IStream" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::stream::EncoderStream" = type { %"class.vl::stream::IStream", ptr, ptr, i64 }
%"class.vl::stream::StreamWriter" = type { %"class.vl::stream::TextWriter", ptr }
%"class.vl::stream::TextWriter" = type { %"class.vl::Object" }
%"class.vl::collections::EnumerableForEachIterator" = type { %"class.vl::collections::ForEachIterator", %"class.vl::Ptr" }
%"class.vl::collections::ForEachIterator" = type { %"class.vl::Object" }
%"class.vl::Ptr" = type { ptr, ptr, ptr, ptr }
%"class.vl::filesystem::File" = type { %"class.vl::Object", %"class.vl::filesystem::FilePath" }
%"class.vl::filesystem::FilePath" = type { %"class.vl::Object", %"class.vl::ObjectString" }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2vl10filesystem8FilePath11GetFullPathEv(ptr dead_on_unwind noalias writable sret(%"class.vl::ObjectString") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl6stream10FileStreamC1ERKNS_12ObjectStringIwEENS1_11AccessRightE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl6stream10FileStream11IsAvailableEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl10filesystem4File13WriteAllLinesERNS_11collections4ListINS_12ObjectStringIwEES5_EEbNS_6stream10BomEncoder8EncodingE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i1 noundef zeroext %2, i32 noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca %"class.vl::stream::FileStream", align 8
  %11 = alloca %"class.vl::ObjectString", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.vl::stream::EncoderStream", align 8
  %17 = alloca %"class.vl::stream::StreamWriter", align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca %"class.vl::collections::EnumerableForEachIterator", align 8
  %21 = alloca %"class.vl::ObjectString", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  %22 = zext i1 %2 to i8
  store i8 %22, ptr %8, align 1, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  %23 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #7
  %24 = getelementptr inbounds %"class.vl::filesystem::File", ptr %23, i32 0, i32 1
  call void @_ZNK2vl10filesystem8FilePath11GetFullPathEv(ptr dead_on_unwind writable sret(%"class.vl::ObjectString") align 8 %11, ptr noundef nonnull align 8 dereferenceable(56) %24)
  invoke void @_ZN2vl6stream10FileStreamC1ERKNS_12ObjectStringIwEENS1_11AccessRightE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(48) %11, i32 noundef 1)
          to label %25 unwind label %29

25:                                               ; preds = %4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  %26 = invoke noundef zeroext i1 @_ZNK2vl6stream10FileStream11IsAvailableEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %27 unwind label %33

27:                                               ; preds = %25
  br i1 %26, label %37, label %28

28:                                               ; preds = %27
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %186

29:                                               ; preds = %4
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %12, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %13, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #7
  br label %189

33:                                               ; preds = %25
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %12, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %13, align 4
  br label %188

37:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  %38 = load i8, ptr %8, align 1, !tbaa !9, !range !13, !noundef !14
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %58

40:                                               ; preds = %37
  %41 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
          to label %42 unwind label %50

42:                                               ; preds = %40
  %43 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN2vl6stream10BomEncoderC1ENS1_8EncodingE(ptr noundef nonnull align 8 dereferenceable(32) %41, i32 noundef %43)
          to label %44 unwind label %54

44:                                               ; preds = %42
  %45 = icmp eq ptr %41, null
  br i1 %45, label %48, label %46

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %41, i64 8
  br label %48

48:                                               ; preds = %46, %44
  %49 = phi ptr [ %47, %46 ], [ null, %44 ]
  store ptr %49, ptr %15, align 8, !tbaa !5
  br label %113

50:                                               ; preds = %99, %86, %73, %60, %40
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  br label %185

54:                                               ; preds = %42
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 32) #9
  br label %185

58:                                               ; preds = %37
  %59 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %59, label %99 [
    i32 1, label %60
    i32 2, label %73
    i32 3, label %86
  ]

60:                                               ; preds = %58
  %61 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %62 unwind label %50

62:                                               ; preds = %60
  invoke void @_ZN2vl6stream11Utf8EncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %61)
          to label %63 unwind label %69

63:                                               ; preds = %62
  %64 = icmp eq ptr %61, null
  br i1 %64, label %67, label %65

65:                                               ; preds = %63
  %66 = getelementptr inbounds i8, ptr %61, i64 8
  br label %67

67:                                               ; preds = %65, %63
  %68 = phi ptr [ %66, %65 ], [ null, %63 ]
  store ptr %68, ptr %15, align 8, !tbaa !5
  br label %112

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %61, i64 noundef 40) #9
  br label %185

73:                                               ; preds = %58
  %74 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %75 unwind label %50

75:                                               ; preds = %73
  invoke void @_ZN2vl6stream12Utf16EncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %74)
          to label %76 unwind label %82

76:                                               ; preds = %75
  %77 = icmp eq ptr %74, null
  br i1 %77, label %80, label %78

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %74, i64 8
  br label %80

80:                                               ; preds = %78, %76
  %81 = phi ptr [ %79, %78 ], [ null, %76 ]
  store ptr %81, ptr %15, align 8, !tbaa !5
  br label %112

82:                                               ; preds = %75
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %12, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 40) #9
  br label %185

86:                                               ; preds = %58
  %87 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %88 unwind label %50

88:                                               ; preds = %86
  invoke void @_ZN2vl6stream14Utf16BEEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %87)
          to label %89 unwind label %95

89:                                               ; preds = %88
  %90 = icmp eq ptr %87, null
  br i1 %90, label %93, label %91

91:                                               ; preds = %89
  %92 = getelementptr inbounds i8, ptr %87, i64 8
  br label %93

93:                                               ; preds = %91, %89
  %94 = phi ptr [ %92, %91 ], [ null, %89 ]
  store ptr %94, ptr %15, align 8, !tbaa !5
  br label %112

95:                                               ; preds = %88
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 40) #9
  br label %185

99:                                               ; preds = %58
  %100 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %101 unwind label %50

101:                                              ; preds = %99
  invoke void @_ZN2vl6stream11MbcsEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %100)
          to label %102 unwind label %108

102:                                              ; preds = %101
  %103 = icmp eq ptr %100, null
  br i1 %103, label %106, label %104

104:                                              ; preds = %102
  %105 = getelementptr inbounds i8, ptr %100, i64 8
  br label %106

106:                                              ; preds = %104, %102
  %107 = phi ptr [ %105, %104 ], [ null, %102 ]
  store ptr %107, ptr %15, align 8, !tbaa !5
  br label %112

108:                                              ; preds = %101
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %100, i64 noundef 40) #9
  br label %185

112:                                              ; preds = %106, %93, %80, %67
  br label %113

113:                                              ; preds = %112, %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #7
  %114 = load ptr, ptr %10, align 8, !tbaa !15
  %115 = getelementptr i8, ptr %114, i64 -24
  %116 = load i64, ptr %115, align 8
  %117 = getelementptr inbounds i8, ptr %10, i64 %116
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN2vl6stream13EncoderStreamC1ERNS0_7IStreamERNS0_8IEncoderE(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %119 unwind label %138

119:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %120 = load ptr, ptr %16, align 8, !tbaa !15
  %121 = getelementptr i8, ptr %120, i64 -160
  %122 = load i64, ptr %121, align 8
  %123 = getelementptr inbounds i8, ptr %16, i64 %122
  invoke void @_ZN2vl6stream12StreamWriterC1ERNS0_7IStreamE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %124 unwind label %142

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  store i8 1, ptr %18, align 1, !tbaa !9
  %125 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %175

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #7
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %130 = getelementptr i8, ptr %129, i64 -24
  %131 = load i64, ptr %130, align 8
  %132 = getelementptr inbounds i8, ptr %128, i64 %131
  invoke void @_ZN2vl11collections21CreateForEachIteratorINS_12ObjectStringIwEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS5_EE(ptr dead_on_unwind writable sret(%"class.vl::collections::EnumerableForEachIterator") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %133 unwind label %146

133:                                              ; preds = %127
  store ptr %20, ptr %19, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %172, %133
  %135 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %136 = trunc i8 %135 to i1
  br i1 %136, label %150, label %137

137:                                              ; preds = %134
  store i32 3, ptr %14, align 4
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %174

138:                                              ; preds = %113
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  br label %184

142:                                              ; preds = %119
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %183

146:                                              ; preds = %127
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  br label %173

150:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #7
  invoke void @_ZN2vl12ObjectStringIwEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %151 unwind label %160

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %169, %151
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = getelementptr inbounds ptr, ptr %154, i64 2
  %156 = load ptr, ptr %155, align 8
  %157 = invoke noundef zeroext i1 %156(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %158 unwind label %164

158:                                              ; preds = %152
  br i1 %157, label %168, label %159

159:                                              ; preds = %158
  store i32 6, ptr %14, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #7
  br label %171

160:                                              ; preds = %150
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %12, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %13, align 4
  br label %170

164:                                              ; preds = %168, %152
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %12, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %13, align 4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br label %170

168:                                              ; preds = %158
  invoke void @_ZN2vl6stream10TextWriter9WriteLineERKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %169 unwind label %164

169:                                              ; preds = %168
  br label %152, !llvm.loop !17

170:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #7
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  br label %173

171:                                              ; preds = %159
  br label %172

172:                                              ; preds = %171
  store i8 0, ptr %18, align 1, !tbaa !9
  br label %134, !llvm.loop !19

173:                                              ; preds = %170, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %183

174:                                              ; preds = %137
  br label %175

175:                                              ; preds = %174, %124
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @_ZN2vl6stream13EncoderStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = icmp eq ptr %176, null
  br i1 %177, label %182, label %178

178:                                              ; preds = %175
  %179 = load ptr, ptr %176, align 8, !tbaa !15
  %180 = getelementptr inbounds ptr, ptr %179, i64 1
  %181 = load ptr, ptr %180, align 8
  call void %181(ptr noundef nonnull align 8 dereferenceable(8) %176) #7
  br label %182

182:                                              ; preds = %178, %175
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %186

183:                                              ; preds = %173, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @_ZN2vl6stream13EncoderStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %184

184:                                              ; preds = %183, %138
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #7
  br label %185

185:                                              ; preds = %184, %108, %95, %82, %69, %54, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %188

186:                                              ; preds = %182, %28
  call void @_ZN2vl6stream10FileStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  %187 = load i1, ptr %5, align 1
  ret i1 %187

188:                                              ; preds = %185, %33
  call void @_ZN2vl6stream10FileStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %189

189:                                              ; preds = %188, %29
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %12, align 8
  %192 = load i32, ptr %13, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_12ObjectStringIwEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS5_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

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

declare void @_ZN2vl6stream12StreamWriterC1ERNS0_7IStreamE(ptr, ptr)

declare void @_ZN2vl6stream10BomEncoderC1ENS1_8EncodingE(ptr, i32)

attributes #0 = { nobuiltin nounwind "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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"_ZTSN2vl6stream10BomEncoder8EncodingE", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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"

%"class.vl::ObjectString" = type { %"class.vl::Object", ptr, ptr, i64, i64, i64 }
%"class.vl::Object" = type { ptr }
%"class.vl::stream::FileStream" = type { %"class.vl::Object", i32, ptr, %"class.vl::stream::IStream" }
%"class.vl::stream::IStream" = type { %"class.vl::Interface" }
%"class.vl::Interface" = type { ptr }
%"class.vl::stream::EncoderStream" = type { %"class.vl::stream::IStream", ptr, ptr, i64 }
%"class.vl::stream::StreamWriter" = type { %"class.vl::stream::TextWriter", ptr }
%"class.vl::stream::TextWriter" = type { %"class.vl::Object" }
%"class.vl::collections::EnumerableForEachIterator" = type { %"class.vl::collections::ForEachIterator", %"class.vl::Ptr" }
%"class.vl::collections::ForEachIterator" = type { %"class.vl::Object" }
%"class.vl::Ptr" = type { ptr, ptr, ptr, ptr }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2vl10filesystem8FilePath11GetFullPathEv(ptr dead_on_unwind noalias writable sret(%"class.vl::ObjectString") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl6stream10FileStreamC1ERKNS_12ObjectStringIwEENS1_11AccessRightE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2vl6stream10FileStream11IsAvailableEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2vl10filesystem4File13WriteAllLinesERNS_11collections4ListINS_12ObjectStringIwEES5_EEbNS_6stream10BomEncoder8EncodingE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i1 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.vl::stream::FileStream", align 8
  %6 = alloca %"class.vl::ObjectString", align 8
  %7 = alloca %"class.vl::stream::EncoderStream", align 8
  %8 = alloca %"class.vl::stream::StreamWriter", align 8
  %9 = alloca %"class.vl::collections::EnumerableForEachIterator", align 8
  %10 = alloca %"class.vl::ObjectString", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNK2vl10filesystem8FilePath11GetFullPathEv(ptr dead_on_unwind nonnull writable sret(%"class.vl::ObjectString") align 8 %6, ptr noundef nonnull align 8 dereferenceable(56) %11)
  invoke void @_ZN2vl6stream10FileStreamC1ERKNS_12ObjectStringIwEENS1_11AccessRightE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef 1)
          to label %12 unwind label %14

12:                                               ; preds = %4
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  %13 = call noundef zeroext i1 @_ZNK2vl6stream10FileStream11IsAvailableEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %13, label %16, label %84

14:                                               ; preds = %4
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  br label %85

16:                                               ; preds = %12
  br i1 %2, label %17, label %24

17:                                               ; preds = %16
  %18 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #8
          to label %19 unwind label %20

19:                                               ; preds = %17
  invoke void @_ZN2vl6stream10BomEncoderC1ENS1_8EncodingE(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %3)
          to label %45 unwind label %22

20:                                               ; preds = %40, %35, %30, %25, %17
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %83

22:                                               ; preds = %19
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 32) #9
  br label %83

24:                                               ; preds = %16
  switch i32 %3, label %40 [
    i32 1, label %25
    i32 2, label %30
    i32 3, label %35
  ]

25:                                               ; preds = %24
  %26 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
          to label %27 unwind label %20

27:                                               ; preds = %25
  invoke void @_ZN2vl6stream11Utf8EncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %45 unwind label %28

28:                                               ; preds = %27
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %26, i64 noundef 40) #9
  br label %83

30:                                               ; preds = %24
  %31 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
          to label %32 unwind label %20

32:                                               ; preds = %30
  invoke void @_ZN2vl6stream12Utf16EncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %31)
          to label %45 unwind label %33

33:                                               ; preds = %32
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %31, i64 noundef 40) #9
  br label %83

35:                                               ; preds = %24
  %36 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
          to label %37 unwind label %20

37:                                               ; preds = %35
  invoke void @_ZN2vl6stream14Utf16BEEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36)
          to label %45 unwind label %38

38:                                               ; preds = %37
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %36, i64 noundef 40) #9
  br label %83

40:                                               ; preds = %24
  %41 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
          to label %42 unwind label %20

42:                                               ; preds = %40
  invoke void @_ZN2vl6stream11MbcsEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %41)
          to label %45 unwind label %43

43:                                               ; preds = %42
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 40) #9
  br label %83

45:                                               ; preds = %42, %37, %32, %27, %19
  %.sink = phi ptr [ %18, %19 ], [ %26, %27 ], [ %31, %32 ], [ %36, %37 ], [ %41, %42 ]
  %46 = getelementptr inbounds i8, ptr %.sink, i64 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %5, i64 %49
  invoke void @_ZN2vl6stream13EncoderStreamC1ERNS0_7IStreamERNS0_8IEncoderE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %51 unwind label %61

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr i8, ptr %52, i64 -160
  %54 = load i64, ptr %53, align 8
  %55 = getelementptr inbounds i8, ptr %7, i64 %54
  invoke void @_ZN2vl6stream12StreamWriterC1ERNS0_7IStreamE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %56 unwind label %63

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #7
  %57 = load ptr, ptr %1, align 8, !tbaa !5
  %58 = getelementptr i8, ptr %57, i64 -24
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr %1, i64 %59
  invoke void @_ZN2vl11collections21CreateForEachIteratorINS_12ObjectStringIwEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS5_EE(ptr dead_on_unwind nonnull writable sret(%"class.vl::collections::EnumerableForEachIterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %67 unwind label %65

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

63:                                               ; preds = %51
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %81

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %80

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  call void @_ZN2vl12ObjectStringIwEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10)
  br label %68

68:                                               ; preds = %79, %67
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load ptr, ptr %70, align 8
  %72 = invoke noundef zeroext i1 %71(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %73 unwind label %77

73:                                               ; preds = %68
  br i1 %72, label %79, label %.critedge

.critedge:                                        ; preds = %73
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN2vl6stream13EncoderStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  %74 = load ptr, ptr %46, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load ptr, ptr %75, align 8
  call void %76(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br label %84

77:                                               ; preds = %79, %68
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2vl12ObjectStringIwED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  call void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  br label %80

79:                                               ; preds = %73
  invoke void @_ZN2vl6stream10TextWriter9WriteLineERKNS_12ObjectStringIwEE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %68 unwind label %77, !llvm.loop !8

80:                                               ; preds = %77, %65
  %.pn = phi { ptr, i32 } [ %78, %77 ], [ %66, %65 ]
  call void @_ZN2vl6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %81

81:                                               ; preds = %80, %63
  %.pn.pn = phi { ptr, i32 } [ %.pn, %80 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN2vl6stream13EncoderStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %82

82:                                               ; preds = %81, %61
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %81 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %83

83:                                               ; preds = %82, %43, %38, %33, %28, %22, %20
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %82 ], [ %23, %22 ], [ %21, %20 ], [ %44, %43 ], [ %39, %38 ], [ %34, %33 ], [ %29, %28 ]
  call void @_ZN2vl6stream10FileStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %85

84:                                               ; preds = %12, %.critedge
  call void @_ZN2vl6stream10FileStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  ret i1 %13

85:                                               ; preds = %83, %14
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %83 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2vl11collections21CreateForEachIteratorINS_12ObjectStringIwEEEENS0_25EnumerableForEachIteratorIT_EERKNS0_11IEnumerableIS5_EE(ptr dead_on_unwind noalias writable sret(%"class.vl::collections::EnumerableForEachIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2vl11collections25EnumerableForEachIteratorINS_12ObjectStringIwEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

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

declare void @_ZN2vl6stream12StreamWriterC1ERNS0_7IStreamE(ptr, ptr) local_unnamed_addr

declare void @_ZN2vl6stream10BomEncoderC1ENS1_8EncodingE(ptr, i32) local_unnamed_addr

attributes #0 = { nobuiltin nounwind "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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass