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

; 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.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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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
define dso_local void @_ZN6Editor9InsertRowEiPcmR12editorConfig(ptr noundef nonnull align 8 dereferenceable(448) %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(192) %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %6, align 8
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.editorConfig, ptr %14, i32 0, i32 8
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = icmp sgt i32 %13, %16
  br i1 %17, label %18, label %19

18:                                               ; preds = %5
  br label %143

19:                                               ; preds = %5
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.editorConfig, ptr %20, i32 0, i32 10
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.editorConfig, ptr %23, i32 0, i32 8
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = add nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  %28 = mul i64 32, %27
  %29 = call ptr @realloc(ptr noundef %22, i64 noundef %28) #5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.editorConfig, ptr %30, i32 0, i32 10
  store ptr %29, ptr %31, align 8, !tbaa !18
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.editorConfig, ptr %33, i32 0, i32 8
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = icmp ne i32 %32, %35
  br i1 %36, label %37, label %81

37:                                               ; preds = %19
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.editorConfig, ptr %38, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %struct.editRow, ptr %40, i64 %42
  %44 = getelementptr inbounds %struct.editRow, ptr %43, i64 1
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.editorConfig, ptr %45, i32 0, i32 10
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.editRow, ptr %47, i64 %49
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.editorConfig, ptr %51, i32 0, i32 8
  %53 = load i32, ptr %52, align 8, !tbaa !13
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = sub nsw i32 %53, %54
  %56 = sext i32 %55 to i64
  %57 = mul i64 32, %56
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %44, ptr align 8 %50, i64 %57, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %11, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %77, %37
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.editorConfig, ptr %62, i32 0, i32 8
  %64 = load i32, ptr %63, align 8, !tbaa !13
  %65 = icmp sle i32 %61, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %80

67:                                               ; preds = %60
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.editorConfig, ptr %68, i32 0, i32 10
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.editRow, ptr %70, i64 %72
  %74 = getelementptr inbounds %struct.editRow, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !19
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 8, !tbaa !19
  br label %77

77:                                               ; preds = %67
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %11, align 4, !tbaa !9
  br label %60, !llvm.loop !21

80:                                               ; preds = %66
  br label %81

81:                                               ; preds = %80, %19
  %82 = load i64, ptr %9, align 8, !tbaa !11
  %83 = trunc i64 %82 to i32
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.editorConfig, ptr %84, i32 0, i32 10
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.editRow, ptr %86, i64 %88
  %90 = getelementptr inbounds %struct.editRow, ptr %89, i32 0, i32 1
  store i32 %83, ptr %90, align 4, !tbaa !23
  %91 = load i64, ptr %9, align 8, !tbaa !11
  %92 = call noalias noundef nonnull ptr @_Znam(i64 noundef %91) #7
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.editorConfig, ptr %93, i32 0, i32 10
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.editRow, ptr %95, i64 %97
  %99 = getelementptr inbounds %struct.editRow, ptr %98, i32 0, i32 3
  store ptr %92, ptr %99, align 8, !tbaa !24
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.editorConfig, ptr %100, i32 0, i32 10
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.editRow, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct.editRow, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i64, ptr %9, align 8, !tbaa !11
  %110 = add i64 %109, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %107, ptr align 1 %108, i64 %110, i1 false)
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.editorConfig, ptr %111, i32 0, i32 10
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.editRow, ptr %113, i64 %115
  %117 = getelementptr inbounds %struct.editRow, ptr %116, i32 0, i32 4
  store ptr null, ptr %117, align 8, !tbaa !25
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.editorConfig, ptr %118, i32 0, i32 10
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.editRow, ptr %120, i64 %122
  %124 = getelementptr inbounds %struct.editRow, ptr %123, i32 0, i32 2
  store i32 0, ptr %124, align 8, !tbaa !26
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.editorConfig, ptr %126, i32 0, i32 10
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.editRow, ptr %128, i64 %130
  %132 = getelementptr inbounds %struct.editRow, ptr %131, i32 0, i32 0
  store i32 %125, ptr %132, align 8, !tbaa !19
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.editorConfig, ptr %133, i32 0, i32 10
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.editRow, ptr %135, i64 %137
  call void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %12, ptr noundef %138)
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.editorConfig, ptr %139, i32 0, i32 8
  %141 = load i32, ptr %140, align 8, !tbaa !13
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %140, align 8, !tbaa !13
  br label %143

143:                                              ; preds = %81, %18
  ret void
}

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind allocsize(1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(1) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 32}
!14 = !{!"_ZTS12editorConfig", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !10, i64 48, !6, i64 56, !7, i64 64, !15, i64 144, !17, i64 176, !12, i64 184}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !12, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!14, !6, i64 40}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTS7editRow", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!20, !10, i64 4}
!24 = !{!20, !6, i64 16}
!25 = !{!20, !6, i64 24}
!26 = !{!20, !10, i64 8}


; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Editor9InsertRowEiPcmR12editorConfig(ptr noundef nonnull align 8 dereferenceable(448) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr nocapture noundef nonnull align 8 dereferenceable(192) %4) local_unnamed_addr #1 align 2 {
  %6 = getelementptr inbounds i8, ptr %4, i64 32
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp slt i32 %7, %1
  br i1 %8, label %48, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %4, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = add nsw i32 %7, 1
  %13 = sext i32 %12 to i64
  %14 = shl nsw i64 %13, 5
  %15 = tail call ptr @realloc(ptr noundef %11, i64 noundef %14) #4
  store ptr %15, ptr %10, align 8, !tbaa !15
  %16 = load i32, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i32 %16, %1
  %.pre = sext i32 %1 to i64
  br i1 %.not, label %.loopexit, label %17

17:                                               ; preds = %9
  %18 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre
  %19 = getelementptr inbounds i8, ptr %18, i64 32
  %20 = sub nsw i32 %16, %1
  %21 = sext i32 %20 to i64
  %22 = shl nsw i64 %21, 5
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %19, ptr align 8 %18, i64 %22, i1 false)
  %.not42.not43 = icmp sgt i32 %16, %1
  br i1 %.not42.not43, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %17
  %wide.trip.count = sext i32 %16 to i64
  %23 = sub nsw i64 %wide.trip.count, %.pre
  %xtraiter = and i64 %23, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %.pre, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %24 = getelementptr inbounds %struct.editRow, ptr %15, i64 %indvars.iv.next.prol
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 8, !tbaa !16
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !18

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %.pre, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %27 = sub nsw i64 %.pre, %wide.trip.count
  %28 = icmp ugt i64 %27, -4
  br i1 %28, label %.loopexit, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %15, i64 32
  %invariant.gep46 = getelementptr i8, ptr %15, i64 64
  %invariant.gep48 = getelementptr i8, ptr %15, i64 96
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %gep = getelementptr %struct.editRow, ptr %invariant.gep, i64 %indvars.iv
  %29 = load i32, ptr %gep, align 8, !tbaa !16
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %gep, align 8, !tbaa !16
  %gep47 = getelementptr %struct.editRow, ptr %invariant.gep46, i64 %indvars.iv
  %31 = load i32, ptr %gep47, align 8, !tbaa !16
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %gep47, align 8, !tbaa !16
  %gep49 = getelementptr %struct.editRow, ptr %invariant.gep48, i64 %indvars.iv
  %33 = load i32, ptr %gep49, align 8, !tbaa !16
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %gep49, align 8, !tbaa !16
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %35 = getelementptr inbounds %struct.editRow, ptr %15, i64 %indvars.iv.next.3
  %36 = load i32, ptr %35, align 8, !tbaa !16
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 8, !tbaa !16
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %9, %17
  %38 = trunc i64 %3 to i32
  %39 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre, i32 1
  store i32 %38, ptr %39, align 4, !tbaa !22
  %40 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %3) #5
  %41 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre, i32 3
  store ptr %40, ptr %41, align 8, !tbaa !23
  %42 = add i64 %3, 1
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %40, ptr align 1 %2, i64 %42, i1 false)
  %43 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre, i32 4
  store ptr null, ptr %43, align 8, !tbaa !24
  %44 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre, i32 2
  store i32 0, ptr %44, align 8, !tbaa !25
  %45 = getelementptr inbounds %struct.editRow, ptr %15, i64 %.pre
  store i32 %1, ptr %45, align 8, !tbaa !16
  tail call void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull %45)
  %46 = load i32, ptr %6, align 8, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %6, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %5, %.loopexit
  ret void
}

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #0

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

attributes #0 = { mustprogress nocallback nofree 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 = { 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 #3 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(1) }
attributes #5 = { builtin allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 32}
!6 = !{!"_ZTS12editorConfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !7, i64 48, !10, i64 56, !8, i64 64, !11, i64 144, !14, i64 176, !13, i64 184}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!6, !10, i64 40}
!16 = !{!17, !7, i64 0}
!17 = !{!"_ZTS7editRow", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!17, !7, i64 4}
!23 = !{!17, !10, i64 16}
!24 = !{!17, !10, i64 24}
!25 = !{!17, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass