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

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

@.str.33 = external hidden unnamed_addr constant [49 x i8], align 1

; 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 @_ZN6Editor4ExitEi(ptr noundef nonnull align 8 dereferenceable(448), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.editRow, ptr %11, i32 0, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = icmp eq ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %2
  call void @_ZdaPv(ptr noundef %13) #6
  br label %16

16:                                               ; preds = %15, %2
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %37, %16
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.editRow, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %23, label %40

23:                                               ; preds = %17
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.editRow, ptr %24, i32 0, i32 3
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %26, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !15
  %31 = sext i8 %30 to i32
  %32 = icmp eq i32 %31, 9
  br i1 %32, label %33, label %36

33:                                               ; preds = %23
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = add i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %33, %23
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !9
  br label %17, !llvm.loop !16

40:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.editRow, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !13
  %44 = sext i32 %43 to i64
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = mul i32 %45, 8
  %47 = zext i32 %46 to i64
  %48 = add i64 %44, %47
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = mul i32 %49, 9
  %51 = zext i32 %50 to i64
  %52 = add i64 %48, %51
  %53 = add i64 %52, 1
  store i64 %53, ptr %9, align 8, !tbaa !18
  %54 = load i64, ptr %9, align 8, !tbaa !18
  %55 = icmp ugt i64 %54, 4294967295
  br i1 %55, label %56, label %58

56:                                               ; preds = %40
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  call void @_ZN6Editor4ExitEi(ptr noundef nonnull align 8 dereferenceable(448) %10, i32 noundef 1)
  br label %58

58:                                               ; preds = %56, %40
  %59 = load i64, ptr %9, align 8, !tbaa !18
  %60 = call noalias noundef nonnull ptr @_Znam(i64 noundef %59) #7
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.editRow, ptr %61, i32 0, i32 4
  store ptr %60, ptr %62, align 8, !tbaa !11
  store i32 0, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %117, %58
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.editRow, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %69, label %120

69:                                               ; preds = %63
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.editRow, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %72, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, 9
  br i1 %78, label %79, label %101

79:                                               ; preds = %69
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.editRow, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !9
  %85 = sext i32 %83 to i64
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  store i8 32, ptr %86, align 1, !tbaa !15
  br label %87

87:                                               ; preds = %92, %79
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = srem i32 %89, 8
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %100

92:                                               ; preds = %87
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.editRow, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !9
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds i8, ptr %95, i64 %98
  store i8 32, ptr %99, align 1, !tbaa !15
  br label %87, !llvm.loop !20

100:                                              ; preds = %87
  br label %116

101:                                              ; preds = %69
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.editRow, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !14
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i8, ptr %104, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !15
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.editRow, ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %8, align 4, !tbaa !9
  %114 = sext i32 %112 to i64
  %115 = getelementptr inbounds i8, ptr %111, i64 %114
  store i8 %108, ptr %115, align 1, !tbaa !15
  br label %116

116:                                              ; preds = %101, %100
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %7, align 4, !tbaa !9
  br label %63, !llvm.loop !21

120:                                              ; preds = %63
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.editRow, ptr %122, i32 0, i32 2
  store i32 %121, ptr %123, align 8, !tbaa !22
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.editRow, ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %126, i64 %128
  store i8 0, ptr %129, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #4

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 = { 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 = { 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 #4 = { "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 }
attributes #6 = { builtin 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, !6, i64 24}
!12 = !{!"_ZTS7editRow", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !6, i64 16}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!12, !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"

@.str.33 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Editor9UpdateRowEP7editRow(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr nocapture noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 24
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @_ZdaPv(ptr noundef nonnull %4) #5
  br label %7

7:                                                ; preds = %6, %2
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !11
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
  %vec.phi59 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %20, %vector.body ]
  %13 = getelementptr inbounds i8, ptr %12, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  %wide.load = load <4 x i8>, ptr %13, align 1, !tbaa !13
  %wide.load60 = load <4 x i8>, ptr %14, align 1, !tbaa !13
  %15 = icmp eq <4 x i8> %wide.load, <i8 9, i8 9, i8 9, i8 9>
  %16 = icmp eq <4 x i8> %wide.load60, <i8 9, i8 9, i8 9, i8 9>
  %17 = zext <4 x i1> %15 to <4 x i32>
  %18 = zext <4 x i1> %16 to <4 x i32>
  %19 = add <4 x i32> %vec.phi, %17
  %20 = add <4 x i32> %vec.phi59, %18
  %index.next = add nuw i64 %index, 8
  %21 = icmp eq i64 %index.next, %n.vec
  br i1 %21, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %20, %19
  %22 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.039.ph = phi i32 [ 0, %.lr.ph ], [ %22, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.039 = phi i32 [ %spec.select, %scalar.ph ], [ %.039.ph, %scalar.ph.preheader ]
  %23 = getelementptr inbounds i8, ptr %12, i64 %indvars.iv
  %24 = load i8, ptr %23, align 1, !tbaa !13
  %25 = icmp eq i8 %24, 9
  %26 = zext i1 %25 to i32
  %spec.select = add i32 %.039, %26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %scalar.ph, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %scalar.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %22, %middle.block ], [ %spec.select, %scalar.ph ]
  %27 = shl i32 %spec.select.lcssa, 3
  %28 = or disjoint i32 %27, 1
  %29 = zext i32 %28 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %7
  %.0.lcssa = phi i64 [ 1, %7 ], [ %29, %._crit_edge.loopexit ]
  %30 = sext i32 %9 to i64
  %31 = add nsw i64 %.0.lcssa, %30
  %32 = icmp ugt i64 %31, 4294967295
  br i1 %32, label %33, label %35

33:                                               ; preds = %._crit_edge
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  tail call void @_ZN6Editor4ExitEi(ptr noundef nonnull align 8 dereferenceable(448) %0, i32 noundef 1)
  br label %35

35:                                               ; preds = %33, %._crit_edge
  %36 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #6
  store ptr %36, ptr %3, align 8, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !11
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %35
  %39 = getelementptr inbounds i8, ptr %1, i64 16
  br label %40

40:                                               ; preds = %.lr.ph49, %.loopexit
  %indvars.iv56 = phi i64 [ 0, %.lr.ph49 ], [ %indvars.iv.next57, %.loopexit ]
  %.03147 = phi i32 [ 0, %.lr.ph49 ], [ %.2, %.loopexit ]
  %41 = load ptr, ptr %39, align 8, !tbaa !12
  %42 = getelementptr inbounds i8, ptr %41, i64 %indvars.iv56
  %43 = load i8, ptr %42, align 1, !tbaa !13
  %44 = icmp eq i8 %43, 9
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = add nsw i32 %.03147, 1
  %47 = sext i32 %.03147 to i64
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  br i1 %44, label %49, label %86

49:                                               ; preds = %40
  store i8 32, ptr %48, align 1, !tbaa !13
  %50 = add nsw i32 %.03147, 2
  %51 = and i32 %50, 7
  %.not41 = icmp eq i32 %51, 0
  br i1 %.not41, label %.loopexit, label %.lr.ph44.preheader

.lr.ph44.preheader:                               ; preds = %49
  %52 = zext i32 %50 to i64
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = sext i32 %46 to i64
  %55 = getelementptr inbounds i8, ptr %53, i64 %54
  store i8 32, ptr %55, align 1, !tbaa !13
  %indvars.iv.next54 = add nuw nsw i64 %52, 1
  %56 = and i64 %indvars.iv.next54, 7
  %.not = icmp eq i64 %56, 0
  br i1 %.not, label %.loopexit, label %.lr.ph44.1, !llvm.loop !19

.lr.ph44.1:                                       ; preds = %.lr.ph44.preheader
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = sext i32 %50 to i64
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  store i8 32, ptr %59, align 1, !tbaa !13
  %indvars.iv.next54.1 = add nuw nsw i64 %52, 2
  %60 = and i64 %indvars.iv.next54.1, 7
  %.not.1 = icmp eq i64 %60, 0
  %61 = trunc i64 %indvars.iv.next54 to i32
  br i1 %.not.1, label %.loopexit, label %.lr.ph44.2, !llvm.loop !19

.lr.ph44.2:                                       ; preds = %.lr.ph44.1
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %sext = shl i64 %indvars.iv.next54, 32
  %63 = ashr exact i64 %sext, 32
  %64 = getelementptr inbounds i8, ptr %62, i64 %63
  store i8 32, ptr %64, align 1, !tbaa !13
  %indvars.iv.next54.2 = add nuw nsw i64 %52, 3
  %65 = and i64 %indvars.iv.next54.2, 7
  %.not.2 = icmp eq i64 %65, 0
  %66 = trunc i64 %indvars.iv.next54.1 to i32
  br i1 %.not.2, label %.loopexit, label %.lr.ph44.3, !llvm.loop !19

.lr.ph44.3:                                       ; preds = %.lr.ph44.2
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %sext64 = shl i64 %indvars.iv.next54.1, 32
  %68 = ashr exact i64 %sext64, 32
  %69 = getelementptr inbounds i8, ptr %67, i64 %68
  store i8 32, ptr %69, align 1, !tbaa !13
  %indvars.iv.next54.3 = add nuw nsw i64 %52, 4
  %70 = and i64 %indvars.iv.next54.3, 7
  %.not.3 = icmp eq i64 %70, 0
  %71 = trunc i64 %indvars.iv.next54.2 to i32
  br i1 %.not.3, label %.loopexit, label %.lr.ph44.4, !llvm.loop !19

.lr.ph44.4:                                       ; preds = %.lr.ph44.3
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %sext65 = shl i64 %indvars.iv.next54.2, 32
  %73 = ashr exact i64 %sext65, 32
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  store i8 32, ptr %74, align 1, !tbaa !13
  %indvars.iv.next54.4 = add nuw nsw i64 %52, 5
  %75 = and i64 %indvars.iv.next54.4, 7
  %.not.4 = icmp eq i64 %75, 0
  %76 = trunc i64 %indvars.iv.next54.3 to i32
  br i1 %.not.4, label %.loopexit, label %.lr.ph44.5, !llvm.loop !19

.lr.ph44.5:                                       ; preds = %.lr.ph44.4
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %sext66 = shl i64 %indvars.iv.next54.3, 32
  %78 = ashr exact i64 %sext66, 32
  %79 = getelementptr inbounds i8, ptr %77, i64 %78
  store i8 32, ptr %79, align 1, !tbaa !13
  %indvars.iv.next54.5 = add nuw nsw i64 %52, 6
  %80 = and i64 %indvars.iv.next54.5, 7
  %.not.5 = icmp eq i64 %80, 0
  %81 = trunc i64 %indvars.iv.next54.4 to i32
  br i1 %.not.5, label %.loopexit, label %.lr.ph44.6, !llvm.loop !19

.lr.ph44.6:                                       ; preds = %.lr.ph44.5
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %sext67 = shl i64 %indvars.iv.next54.4, 32
  %83 = ashr exact i64 %sext67, 32
  %84 = getelementptr inbounds i8, ptr %82, i64 %83
  store i8 32, ptr %84, align 1, !tbaa !13
  %85 = trunc i64 %indvars.iv.next54.5 to i32
  br label %.loopexit

86:                                               ; preds = %40
  store i8 %43, ptr %48, align 1, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph44.preheader, %.lr.ph44.1, %.lr.ph44.2, %.lr.ph44.3, %.lr.ph44.4, %.lr.ph44.5, %.lr.ph44.6, %49, %86
  %.2 = phi i32 [ %46, %86 ], [ %46, %49 ], [ %50, %.lr.ph44.preheader ], [ %61, %.lr.ph44.1 ], [ %66, %.lr.ph44.2 ], [ %71, %.lr.ph44.3 ], [ %76, %.lr.ph44.4 ], [ %81, %.lr.ph44.5 ], [ %85, %.lr.ph44.6 ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %87 = load i32, ptr %8, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next57, %88
  br i1 %89, label %40, label %._crit_edge50.loopexit, !llvm.loop !20

._crit_edge50.loopexit:                           ; preds = %.loopexit
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %._crit_edge50

._crit_edge50:                                    ; preds = %._crit_edge50.loopexit, %35
  %90 = phi ptr [ %36, %35 ], [ %.pre, %._crit_edge50.loopexit ]
  %.031.lcssa = phi i32 [ 0, %35 ], [ %.2, %._crit_edge50.loopexit ]
  %91 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %.031.lcssa, ptr %91, align 8, !tbaa !21
  %92 = sext i32 %.031.lcssa to i64
  %93 = getelementptr inbounds i8, ptr %90, i64 %92
  store i8 0, ptr %93, align 1, !tbaa !13
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #4

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" }
attributes #1 = { 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 #2 = { 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 #3 = { nofree 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { builtin nounwind }
attributes #6 = { 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, !10, i64 24}
!6 = !{!"_ZTS7editRow", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 16}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !17, !16}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = !{!6, !7, i64 8}


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