; LLVM IR from Angold-4/chainsaw :: src/debug/editor.ll (ZN6Editor7delCharEv)

; 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.Editor = type { i8, ptr, ptr, %struct.buffer, ptr, ptr, %struct.editorConfig, %struct.editorConfig }
%struct.buffer = type { ptr, i64, i8, i32 }
%struct.editorConfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, [80 x i8], %"class.std::__cxx11::basic_string", i8, i64 }
%"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] }
%struct.editRow = type { i32, i32, i32, ptr, ptr }

; 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: mustprogress uwtable
declare dso_local void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Editor7delCharEv(ptr noundef nonnull align 8 dereferenceable(448) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  %9 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %10 = getelementptr inbounds %struct.editorConfig, ptr %9, i32 0, i32 2
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %13 = getelementptr inbounds %struct.editorConfig, ptr %12, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !18
  %15 = add nsw i32 %11, %14
  store i32 %15, ptr %3, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  %16 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %17 = getelementptr inbounds %struct.editorConfig, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 4, !tbaa !20
  %19 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %20 = getelementptr inbounds %struct.editorConfig, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %22 = add nsw i32 %18, %21
  store i32 %22, ptr %4, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  %23 = load i32, ptr %3, align 4, !tbaa !19
  %24 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %25 = getelementptr inbounds %struct.editorConfig, ptr %24, i32 0, i32 8
  %26 = load i32, ptr %25, align 8, !tbaa !22
  %27 = icmp sge i32 %23, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %1
  br label %36

29:                                               ; preds = %1
  %30 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %31 = getelementptr inbounds %struct.editorConfig, ptr %30, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  %33 = load i32, ptr %3, align 4, !tbaa !19
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct.editRow, ptr %32, i64 %34
  br label %36

36:                                               ; preds = %29, %28
  %37 = phi ptr [ null, %28 ], [ %35, %29 ]
  store ptr %37, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %46

40:                                               ; preds = %36
  %41 = load i32, ptr %3, align 4, !tbaa !19
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %40
  %44 = load i32, ptr %4, align 4, !tbaa !19
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %36
  store i32 1, ptr %6, align 4
  br label %154

47:                                               ; preds = %43, %40
  %48 = load i32, ptr %4, align 4, !tbaa !19
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %120

50:                                               ; preds = %47
  %51 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %52 = getelementptr inbounds %struct.editorConfig, ptr %51, i32 0, i32 10
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  %54 = load i32, ptr %3, align 4, !tbaa !19
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.editRow, ptr %53, i64 %56
  %58 = getelementptr inbounds %struct.editRow, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !24
  store i32 %59, ptr %4, align 4, !tbaa !19
  %60 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %61 = getelementptr inbounds %struct.editorConfig, ptr %60, i32 0, i32 10
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = load i32, ptr %3, align 4, !tbaa !19
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.editRow, ptr %62, i64 %65
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.editRow, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.editRow, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !24
  %73 = sext i32 %72 to i64
  call void @_ZN6Editor15rowAppendStringEP7editRowPcm(ptr noundef nonnull align 8 dereferenceable(448) %8, ptr noundef %66, ptr noundef %69, i64 noundef %73)
  %74 = load i32, ptr %3, align 4, !tbaa !19
  call void @_ZN6Editor6delRowEi(ptr noundef nonnull align 8 dereferenceable(448) %8, i32 noundef %74)
  store ptr null, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %76 = getelementptr inbounds %struct.editorConfig, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 4, !tbaa !18
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %84

79:                                               ; preds = %50
  %80 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %81 = getelementptr inbounds %struct.editorConfig, ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 8, !tbaa !9
  %83 = add nsw i32 %82, -1
  store i32 %83, ptr %81, align 8, !tbaa !9
  br label %89

84:                                               ; preds = %50
  %85 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %86 = getelementptr inbounds %struct.editorConfig, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !18
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %86, align 4, !tbaa !18
  br label %89

89:                                               ; preds = %84, %79
  %90 = load i32, ptr %4, align 4, !tbaa !19
  %91 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %92 = getelementptr inbounds %struct.editorConfig, ptr %91, i32 0, i32 0
  store i32 %90, ptr %92, align 8, !tbaa !21
  %93 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %94 = getelementptr inbounds %struct.editorConfig, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %97 = getelementptr inbounds %struct.editorConfig, ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 4, !tbaa !27
  %99 = icmp sge i32 %95, %98
  br i1 %99, label %100, label %119

100:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  %101 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %102 = getelementptr inbounds %struct.editorConfig, ptr %101, i32 0, i32 5
  %103 = load i32, ptr %102, align 4, !tbaa !27
  %104 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %105 = getelementptr inbounds %struct.editorConfig, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !21
  %107 = sub nsw i32 %103, %106
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %7, align 4, !tbaa !19
  %109 = load i32, ptr %7, align 4, !tbaa !19
  %110 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %111 = getelementptr inbounds %struct.editorConfig, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !21
  %113 = sub nsw i32 %112, %109
  store i32 %113, ptr %111, align 8, !tbaa !21
  %114 = load i32, ptr %7, align 4, !tbaa !19
  %115 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %116 = getelementptr inbounds %struct.editorConfig, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 4, !tbaa !20
  %118 = add nsw i32 %117, %114
  store i32 %118, ptr %116, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %119

119:                                              ; preds = %100, %89
  br label %144

120:                                              ; preds = %47
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load i32, ptr %4, align 4, !tbaa !19
  %123 = sub nsw i32 %122, 1
  call void @_ZN6Editor10rowDelCharEP7editRowi(ptr noundef nonnull align 8 dereferenceable(448) %8, ptr noundef %121, i32 noundef %123)
  %124 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %125 = getelementptr inbounds %struct.editorConfig, ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !21
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %138

128:                                              ; preds = %120
  %129 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %130 = getelementptr inbounds %struct.editorConfig, ptr %129, i32 0, i32 3
  %131 = load i32, ptr %130, align 4, !tbaa !20
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %128
  %134 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %135 = getelementptr inbounds %struct.editorConfig, ptr %134, i32 0, i32 3
  %136 = load i32, ptr %135, align 4, !tbaa !20
  %137 = add nsw i32 %136, -1
  store i32 %137, ptr %135, align 4, !tbaa !20
  br label %143

138:                                              ; preds = %128, %120
  %139 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %140 = getelementptr inbounds %struct.editorConfig, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !21
  %142 = add nsw i32 %141, -1
  store i32 %142, ptr %140, align 8, !tbaa !21
  br label %143

143:                                              ; preds = %138, %133
  br label %144

144:                                              ; preds = %143, %119
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %149

147:                                              ; preds = %144
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %8, ptr noundef %148)
  br label %149

149:                                              ; preds = %147, %144
  %150 = getelementptr inbounds %class.Editor, ptr %8, i32 0, i32 6
  %151 = getelementptr inbounds %struct.editorConfig, ptr %150, i32 0, i32 11
  %152 = load i32, ptr %151, align 8, !tbaa !28
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %151, align 8, !tbaa !28
  store i32 0, ptr %6, align 4
  br label %154

154:                                              ; preds = %149, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  %155 = load i32, ptr %6, align 4
  switch i32 %155, label %157 [
    i32 0, label %156
    i32 1, label %156
  ]

156:                                              ; preds = %154, %154
  ret void

157:                                              ; preds = %154
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor15rowAppendStringEP7editRowPcm(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef, ptr noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor6delRowEi(ptr noundef nonnull align 8 dereferenceable(448), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor10rowDelCharEP7editRowi(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef, i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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, !14, i64 72}
!10 = !{!"_ZTS6Editor", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 48, !6, i64 56, !15, i64 64, !15, i64 256}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS6buffer", !6, i64 0, !13, i64 8, !11, i64 16, !14, i64 20}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS12editorConfig", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !6, i64 40, !14, i64 48, !6, i64 56, !7, i64 64, !16, i64 144, !11, i64 176, !13, i64 184}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !13, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!10, !14, i64 68}
!19 = !{!14, !14, i64 0}
!20 = !{!10, !14, i64 76}
!21 = !{!10, !14, i64 64}
!22 = !{!10, !14, i64 96}
!23 = !{!10, !6, i64 104}
!24 = !{!25, !14, i64 4}
!25 = !{!"_ZTS7editRow", !14, i64 0, !14, i64 4, !14, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!25, !6, i64 16}
!27 = !{!10, !14, i64 84}
!28 = !{!10, !14, i64 112}


; 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.editRow = type { i32, i32, i32, ptr, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Editor7delCharEv(ptr noundef nonnull align 8 dereferenceable(448) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 64
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 68
  %6 = load i32, ptr %5, align 4, !tbaa !17
  %7 = add nsw i32 %6, %4
  %8 = getelementptr inbounds i8, ptr %0, i64 76
  %9 = load i32, ptr %8, align 4, !tbaa !18
  %10 = load i32, ptr %2, align 8, !tbaa !19
  %11 = add nsw i32 %10, %9
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  %13 = load i32, ptr %12, align 8, !tbaa !20
  %.not = icmp sge i32 %7, %13
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = load ptr, ptr %14, align 8
  %16 = sext i32 %7 to i64
  %17 = getelementptr %struct.editRow, ptr %15, i64 %16
  %.not2632 = icmp eq ptr %17, null
  %.not26 = select i1 %.not, i1 true, i1 %.not2632
  br i1 %.not26, label %61, label %18

18:                                               ; preds = %1
  %19 = icmp eq i32 %7, 0
  %20 = icmp eq i32 %11, 0
  %or.cond = select i1 %19, i1 %20, i1 false
  br i1 %or.cond, label %61, label %21

21:                                               ; preds = %18
  br i1 %20, label %22, label %47

22:                                               ; preds = %21
  %23 = getelementptr i8, ptr %17, i64 -32
  %24 = getelementptr i8, ptr %17, i64 -28
  %25 = load i32, ptr %24, align 4, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %17, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %28 = getelementptr inbounds i8, ptr %17, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !21
  %30 = sext i32 %29 to i64
  tail call void @_ZN6Editor15rowAppendStringEP7editRowPcm(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef %23, ptr noundef %27, i64 noundef %30)
  tail call void @_ZN6Editor6delRowEi(ptr noundef nonnull align 8 dereferenceable(448) %0, i32 noundef %7)
  %31 = load i32, ptr %5, align 4, !tbaa !17
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %22
  %34 = load i32, ptr %3, align 8, !tbaa !5
  %35 = add nsw i32 %34, -1
  store i32 %35, ptr %3, align 8, !tbaa !5
  br label %38

36:                                               ; preds = %22
  %37 = add nsw i32 %31, -1
  store i32 %37, ptr %5, align 4, !tbaa !17
  br label %38

38:                                               ; preds = %36, %33
  store i32 %25, ptr %2, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %0, i64 84
  %40 = load i32, ptr %39, align 4, !tbaa !24
  %.not28 = icmp slt i32 %25, %40
  br i1 %.not28, label %.thread, label %41

41:                                               ; preds = %38
  %42 = sub nsw i32 %40, %25
  %43 = add nsw i32 %42, 1
  %44 = sub nsw i32 %25, %43
  store i32 %44, ptr %2, align 8, !tbaa !19
  %45 = load i32, ptr %8, align 4, !tbaa !18
  %46 = add nsw i32 %45, %43
  store i32 %46, ptr %8, align 4, !tbaa !18
  br label %.thread

47:                                               ; preds = %21
  %48 = add nsw i32 %11, -1
  tail call void @_ZN6Editor10rowDelCharEP7editRowi(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull %17, i32 noundef %48)
  %49 = load i32, ptr %2, align 8, !tbaa !19
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %55

51:                                               ; preds = %47
  %52 = load i32, ptr %8, align 4, !tbaa !18
  %.not27 = icmp eq i32 %52, 0
  br i1 %.not27, label %55, label %53

53:                                               ; preds = %51
  %54 = add nsw i32 %52, -1
  store i32 %54, ptr %8, align 4, !tbaa !18
  br label %57

55:                                               ; preds = %51, %47
  %56 = add nsw i32 %49, -1
  store i32 %56, ptr %2, align 8, !tbaa !19
  br label %57

57:                                               ; preds = %55, %53
  tail call void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull %17)
  br label %.thread

.thread:                                          ; preds = %38, %41, %57
  %58 = getelementptr inbounds i8, ptr %0, i64 112
  %59 = load i32, ptr %58, align 8, !tbaa !25
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 8, !tbaa !25
  br label %61

61:                                               ; preds = %1, %18, %.thread
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor15rowAppendStringEP7editRowPcm(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor6delRowEi(ptr noundef nonnull align 8 dereferenceable(448), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Editor10rowDelCharEP7editRowi(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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" }

!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, !13, i64 72}
!6 = !{!"_ZTS6Editor", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 48, !10, i64 56, !14, i64 64, !14, i64 256}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS6buffer", !10, i64 0, !12, i64 8, !7, i64 16, !13, i64 20}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTS12editorConfig", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !10, i64 40, !13, i64 48, !10, i64 56, !8, i64 64, !15, i64 144, !7, i64 176, !12, i64 184}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !12, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!17 = !{!6, !13, i64 68}
!18 = !{!6, !13, i64 76}
!19 = !{!6, !13, i64 64}
!20 = !{!6, !13, i64 96}
!21 = !{!22, !13, i64 4}
!22 = !{!"_ZTS7editRow", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !10, i64 24}
!23 = !{!22, !10, i64 16}
!24 = !{!6, !13, i64 84}
!25 = !{!6, !13, i64 112}


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