; LLVM IR from Simple-XX/SimpleKernel :: src/libc/src/string (string)

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

; 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: nounwind uwtable
define dso_local ptr @memmove(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %12, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = icmp ult ptr %13, %14
  br i1 %15, label %16, label %28

16:                                               ; preds = %3
  br label %17

17:                                               ; preds = %21, %16
  %18 = load i64, ptr %6, align 8, !tbaa !9
  %19 = add i64 %18, -1
  store i64 %19, ptr %6, align 8, !tbaa !9
  %20 = icmp ne i64 %18, 0
  br i1 %20, label %21, label %27

21:                                               ; preds = %17
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i32 1
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load i8, ptr %22, align 1, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i32 1
  store ptr %26, ptr %7, align 8, !tbaa !5
  store i8 %24, ptr %25, align 1, !tbaa !11
  br label %17, !llvm.loop !12

27:                                               ; preds = %17
  br label %48

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i64, ptr %6, align 8, !tbaa !9
  %31 = sub i64 %30, 1
  %32 = getelementptr inbounds i8, ptr %29, i64 %31
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = sub i64 %34, 1
  %36 = getelementptr inbounds i8, ptr %33, i64 %35
  store ptr %36, ptr %10, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %41, %28
  %38 = load i64, ptr %6, align 8, !tbaa !9
  %39 = add i64 %38, -1
  store i64 %39, ptr %6, align 8, !tbaa !9
  %40 = icmp ne i64 %38, 0
  br i1 %40, label %41, label %47

41:                                               ; preds = %37
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i32 -1
  store ptr %43, ptr %9, align 8, !tbaa !5
  %44 = load i8, ptr %42, align 1, !tbaa !11
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i32 -1
  store ptr %46, ptr %10, align 8, !tbaa !5
  store i8 %44, ptr %45, align 1, !tbaa !11
  br label %37, !llvm.loop !14

47:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %48

48:                                               ; preds = %47, %27
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  ret ptr %49
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local noundef ptr @memmove(ptr noundef returned writeonly %0, ptr noundef readonly %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = ptrtoint ptr %1 to i64
  %5 = ptrtoint ptr %0 to i64
  %6 = ptrtoint ptr %1 to i64
  %7 = icmp ult ptr %0, %1
  %.not2228 = icmp eq i64 %2, 0
  br i1 %7, label %.preheader, label %44

.preheader:                                       ; preds = %3
  br i1 %.not2228, label %.loopexit, label %iter.check64

iter.check64:                                     ; preds = %.preheader
  %min.iters.check62 = icmp ult i64 %2, 8
  %8 = sub i64 %5, %4
  %diff.check60 = icmp ult i64 %8, 32
  %or.cond = or i1 %min.iters.check62, %diff.check60
  br i1 %or.cond, label %.lr.ph32.preheader, label %vector.main.loop.iter.check66

vector.main.loop.iter.check66:                    ; preds = %iter.check64
  %min.iters.check65 = icmp ult i64 %2, 32
  br i1 %min.iters.check65, label %vec.epilog.ph82, label %vector.ph67

vector.ph67:                                      ; preds = %vector.main.loop.iter.check66
  %n.vec69 = and i64 %2, -32
  br label %vector.body70

vector.body70:                                    ; preds = %vector.body70, %vector.ph67
  %index71 = phi i64 [ 0, %vector.ph67 ], [ %index.next78, %vector.body70 ]
  %next.gep72 = getelementptr i8, ptr %1, i64 %index71
  %next.gep74 = getelementptr i8, ptr %0, i64 %index71
  %9 = getelementptr i8, ptr %next.gep72, i64 16
  %wide.load76 = load <16 x i8>, ptr %next.gep72, align 1, !tbaa !5
  %wide.load77 = load <16 x i8>, ptr %9, align 1, !tbaa !5
  %10 = getelementptr i8, ptr %next.gep74, i64 16
  store <16 x i8> %wide.load76, ptr %next.gep74, align 1, !tbaa !5
  store <16 x i8> %wide.load77, ptr %10, align 1, !tbaa !5
  %index.next78 = add nuw i64 %index71, 32
  %11 = icmp eq i64 %index.next78, %n.vec69
  br i1 %11, label %middle.block61, label %vector.body70, !llvm.loop !8

middle.block61:                                   ; preds = %vector.body70
  %cmp.n79 = icmp eq i64 %n.vec69, %2
  br i1 %cmp.n79, label %.loopexit, label %vec.epilog.iter.check83

vec.epilog.iter.check83:                          ; preds = %middle.block61
  %ind.end96 = and i64 %2, 31
  %ind.end93 = getelementptr i8, ptr %0, i64 %n.vec69
  %ind.end90 = getelementptr i8, ptr %1, i64 %n.vec69
  %n.vec.remaining84 = and i64 %2, 24
  %min.epilog.iters.check85 = icmp eq i64 %n.vec.remaining84, 0
  br i1 %min.epilog.iters.check85, label %.lr.ph32.preheader, label %vec.epilog.ph82

vec.epilog.ph82:                                  ; preds = %vector.main.loop.iter.check66, %vec.epilog.iter.check83
  %vec.epilog.resume.val86 = phi i64 [ %n.vec69, %vec.epilog.iter.check83 ], [ 0, %vector.main.loop.iter.check66 ]
  %n.vec88 = and i64 %2, -8
  %ind.end89 = getelementptr i8, ptr %1, i64 %n.vec88
  %ind.end92 = getelementptr i8, ptr %0, i64 %n.vec88
  %ind.end95 = and i64 %2, 7
  br label %vec.epilog.vector.body98

vec.epilog.vector.body98:                         ; preds = %vec.epilog.vector.body98, %vec.epilog.ph82
  %index99 = phi i64 [ %vec.epilog.resume.val86, %vec.epilog.ph82 ], [ %index.next103, %vec.epilog.vector.body98 ]
  %next.gep100 = getelementptr i8, ptr %1, i64 %index99
  %next.gep101 = getelementptr i8, ptr %0, i64 %index99
  %wide.load102 = load <8 x i8>, ptr %next.gep100, align 1, !tbaa !5
  store <8 x i8> %wide.load102, ptr %next.gep101, align 1, !tbaa !5
  %index.next103 = add nuw i64 %index99, 8
  %12 = icmp eq i64 %index.next103, %n.vec88
  br i1 %12, label %vec.epilog.middle.block80, label %vec.epilog.vector.body98, !llvm.loop !12

vec.epilog.middle.block80:                        ; preds = %vec.epilog.vector.body98
  %cmp.n104 = icmp eq i64 %n.vec88, %2
  br i1 %cmp.n104, label %.loopexit, label %.lr.ph32.preheader

.lr.ph32.preheader:                               ; preds = %vec.epilog.middle.block80, %iter.check64, %vec.epilog.iter.check83
  %.01531.ph = phi ptr [ %1, %iter.check64 ], [ %ind.end90, %vec.epilog.iter.check83 ], [ %ind.end89, %vec.epilog.middle.block80 ]
  %.01630.ph = phi ptr [ %0, %iter.check64 ], [ %ind.end93, %vec.epilog.iter.check83 ], [ %ind.end92, %vec.epilog.middle.block80 ]
  %.01729.ph = phi i64 [ %2, %iter.check64 ], [ %ind.end96, %vec.epilog.iter.check83 ], [ %ind.end95, %vec.epilog.middle.block80 ]
  %13 = add i64 %.01729.ph, -1
  %xtraiter107 = and i64 %.01729.ph, 7
  %lcmp.mod108.not = icmp eq i64 %xtraiter107, 0
  br i1 %lcmp.mod108.not, label %.lr.ph32.prol.loopexit, label %.lr.ph32.prol

.lr.ph32.prol:                                    ; preds = %.lr.ph32.preheader, %.lr.ph32.prol
  %.01531.prol = phi ptr [ %15, %.lr.ph32.prol ], [ %.01531.ph, %.lr.ph32.preheader ]
  %.01630.prol = phi ptr [ %17, %.lr.ph32.prol ], [ %.01630.ph, %.lr.ph32.preheader ]
  %.01729.prol = phi i64 [ %14, %.lr.ph32.prol ], [ %.01729.ph, %.lr.ph32.preheader ]
  %prol.iter109 = phi i64 [ %prol.iter109.next, %.lr.ph32.prol ], [ 0, %.lr.ph32.preheader ]
  %14 = add i64 %.01729.prol, -1
  %15 = getelementptr inbounds i8, ptr %.01531.prol, i64 1
  %16 = load i8, ptr %.01531.prol, align 1, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %.01630.prol, i64 1
  store i8 %16, ptr %.01630.prol, align 1, !tbaa !5
  %prol.iter109.next = add i64 %prol.iter109, 1
  %prol.iter109.cmp.not = icmp eq i64 %prol.iter109.next, %xtraiter107
  br i1 %prol.iter109.cmp.not, label %.lr.ph32.prol.loopexit, label %.lr.ph32.prol, !llvm.loop !13

.lr.ph32.prol.loopexit:                           ; preds = %.lr.ph32.prol, %.lr.ph32.preheader
  %.01531.unr = phi ptr [ %.01531.ph, %.lr.ph32.preheader ], [ %15, %.lr.ph32.prol ]
  %.01630.unr = phi ptr [ %.01630.ph, %.lr.ph32.preheader ], [ %17, %.lr.ph32.prol ]
  %.01729.unr = phi i64 [ %.01729.ph, %.lr.ph32.preheader ], [ %14, %.lr.ph32.prol ]
  %18 = icmp ult i64 %13, 7
  br i1 %18, label %.loopexit, label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32.prol.loopexit, %.lr.ph32
  %.01531 = phi ptr [ %41, %.lr.ph32 ], [ %.01531.unr, %.lr.ph32.prol.loopexit ]
  %.01630 = phi ptr [ %43, %.lr.ph32 ], [ %.01630.unr, %.lr.ph32.prol.loopexit ]
  %.01729 = phi i64 [ %40, %.lr.ph32 ], [ %.01729.unr, %.lr.ph32.prol.loopexit ]
  %19 = getelementptr inbounds i8, ptr %.01531, i64 1
  %20 = load i8, ptr %.01531, align 1, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %.01630, i64 1
  store i8 %20, ptr %.01630, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %.01531, i64 2
  %23 = load i8, ptr %19, align 1, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %.01630, i64 2
  store i8 %23, ptr %21, align 1, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %.01531, i64 3
  %26 = load i8, ptr %22, align 1, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %.01630, i64 3
  store i8 %26, ptr %24, align 1, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %.01531, i64 4
  %29 = load i8, ptr %25, align 1, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %.01630, i64 4
  store i8 %29, ptr %27, align 1, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %.01531, i64 5
  %32 = load i8, ptr %28, align 1, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %.01630, i64 5
  store i8 %32, ptr %30, align 1, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %.01531, i64 6
  %35 = load i8, ptr %31, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %.01630, i64 6
  store i8 %35, ptr %33, align 1, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %.01531, i64 7
  %38 = load i8, ptr %34, align 1, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %.01630, i64 7
  store i8 %38, ptr %36, align 1, !tbaa !5
  %40 = add i64 %.01729, -8
  %41 = getelementptr inbounds i8, ptr %.01531, i64 8
  %42 = load i8, ptr %37, align 1, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %.01630, i64 8
  store i8 %42, ptr %39, align 1, !tbaa !5
  %.not22.7 = icmp eq i64 %40, 0
  br i1 %.not22.7, label %.loopexit, label %.lr.ph32, !llvm.loop !15

44:                                               ; preds = %3
  br i1 %.not2228, label %.loopexit, label %iter.check

iter.check:                                       ; preds = %44
  %45 = add i64 %2, -1
  %46 = getelementptr inbounds i8, ptr %0, i64 %45
  %47 = getelementptr inbounds i8, ptr %1, i64 %45
  %min.iters.check = icmp ult i64 %2, 4
  %48 = sub i64 %6, %5
  %diff.check = icmp ult i64 %48, 16
  %or.cond105 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond105, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check36 = icmp ult i64 %2, 16
  br i1 %min.iters.check36, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %2, -16
  %invariant.gep = getelementptr i8, ptr %47, i64 -15
  %invariant.gep115 = getelementptr i8, ptr %46, i64 -15
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 0, %index
  %offset.idx37 = sub i64 0, %index
  %gep = getelementptr i8, ptr %invariant.gep, i64 %offset.idx37
  %wide.load = load <16 x i8>, ptr %gep, align 1, !tbaa !5
  %gep116 = getelementptr i8, ptr %invariant.gep115, i64 %offset.idx
  store <16 x i8> %wide.load, ptr %gep116, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 16
  %49 = icmp eq i64 %index.next, %n.vec
  br i1 %49, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %2
  br i1 %cmp.n, label %.loopexit, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end47 = and i64 %2, 15
  %50 = sub i64 0, %n.vec
  %ind.end44 = getelementptr i8, ptr %47, i64 %50
  %51 = sub i64 0, %n.vec
  %ind.end42 = getelementptr i8, ptr %46, i64 %51
  %n.vec.remaining = and i64 %2, 12
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec41 = and i64 %2, -4
  %52 = sub i64 0, %n.vec41
  %ind.end = getelementptr i8, ptr %46, i64 %52
  %53 = sub i64 0, %n.vec41
  %ind.end43 = getelementptr i8, ptr %47, i64 %53
  %ind.end46 = and i64 %2, 3
  %invariant.gep117 = getelementptr i8, ptr %47, i64 -3
  %invariant.gep119 = getelementptr i8, ptr %46, i64 -3
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index49 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next57, %vec.epilog.vector.body ]
  %offset.idx50 = sub i64 0, %index49
  %offset.idx52 = sub i64 0, %index49
  %gep118 = getelementptr i8, ptr %invariant.gep117, i64 %offset.idx52
  %wide.load54 = load <4 x i8>, ptr %gep118, align 1, !tbaa !5
  %gep120 = getelementptr i8, ptr %invariant.gep119, i64 %offset.idx50
  store <4 x i8> %wide.load54, ptr %gep120, align 1, !tbaa !5
  %index.next57 = add nuw i64 %index49, 4
  %54 = icmp eq i64 %index.next57, %n.vec41
  br i1 %54, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !17

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n58 = icmp eq i64 %n.vec41, %2
  br i1 %cmp.n58, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.027.ph = phi ptr [ %46, %iter.check ], [ %ind.end42, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.01426.ph = phi ptr [ %47, %iter.check ], [ %ind.end44, %vec.epilog.iter.check ], [ %ind.end43, %vec.epilog.middle.block ]
  %.125.ph = phi i64 [ %2, %iter.check ], [ %ind.end47, %vec.epilog.iter.check ], [ %ind.end46, %vec.epilog.middle.block ]
  %55 = add i64 %.125.ph, -1
  %xtraiter = and i64 %.125.ph, 7
  %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
  %.027.prol = phi ptr [ %59, %.lr.ph.prol ], [ %.027.ph, %.lr.ph.preheader ]
  %.01426.prol = phi ptr [ %57, %.lr.ph.prol ], [ %.01426.ph, %.lr.ph.preheader ]
  %.125.prol = phi i64 [ %56, %.lr.ph.prol ], [ %.125.ph, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %56 = add i64 %.125.prol, -1
  %57 = getelementptr inbounds i8, ptr %.01426.prol, i64 -1
  %58 = load i8, ptr %.01426.prol, align 1, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %.027.prol, i64 -1
  store i8 %58, ptr %.027.prol, align 1, !tbaa !5
  %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
  %.027.unr = phi ptr [ %.027.ph, %.lr.ph.preheader ], [ %59, %.lr.ph.prol ]
  %.01426.unr = phi ptr [ %.01426.ph, %.lr.ph.preheader ], [ %57, %.lr.ph.prol ]
  %.125.unr = phi i64 [ %.125.ph, %.lr.ph.preheader ], [ %56, %.lr.ph.prol ]
  %60 = icmp ult i64 %55, 7
  br i1 %60, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.027 = phi ptr [ %85, %.lr.ph ], [ %.027.unr, %.lr.ph.prol.loopexit ]
  %.01426 = phi ptr [ %83, %.lr.ph ], [ %.01426.unr, %.lr.ph.prol.loopexit ]
  %.125 = phi i64 [ %82, %.lr.ph ], [ %.125.unr, %.lr.ph.prol.loopexit ]
  %61 = getelementptr inbounds i8, ptr %.01426, i64 -1
  %62 = load i8, ptr %.01426, align 1, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %.027, i64 -1
  store i8 %62, ptr %.027, align 1, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %.01426, i64 -2
  %65 = load i8, ptr %61, align 1, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %.027, i64 -2
  store i8 %65, ptr %63, align 1, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %.01426, i64 -3
  %68 = load i8, ptr %64, align 1, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %.027, i64 -3
  store i8 %68, ptr %66, align 1, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %.01426, i64 -4
  %71 = load i8, ptr %67, align 1, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %.027, i64 -4
  store i8 %71, ptr %69, align 1, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %.01426, i64 -5
  %74 = load i8, ptr %70, align 1, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %.027, i64 -5
  store i8 %74, ptr %72, align 1, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %.01426, i64 -6
  %77 = load i8, ptr %73, align 1, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %.027, i64 -6
  store i8 %77, ptr %75, align 1, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %.01426, i64 -7
  %80 = load i8, ptr %76, align 1, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %.027, i64 -7
  store i8 %80, ptr %78, align 1, !tbaa !5
  %82 = add i64 %.125, -8
  %83 = getelementptr inbounds i8, ptr %.01426, i64 -8
  %84 = load i8, ptr %79, align 1, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %.027, i64 -8
  store i8 %84, ptr %81, align 1, !tbaa !5
  %.not.7 = icmp eq i64 %82, 0
  br i1 %.not.7, label %.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph32.prol.loopexit, %.lr.ph32, %middle.block, %vec.epilog.middle.block, %middle.block61, %vec.epilog.middle.block80, %44, %.preheader
  ret ptr %0
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !9, !10}
!16 = distinct !{!16, !9, !10, !11}
!17 = distinct !{!17, !9, !10, !11}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !9, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass