; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/字符串算法/Manacher算法.ll (Z8manacherPc)

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

@s = external dso_local global [22000100 x i8], align 16
@len = external dso_local global [22000100 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8manacherPc(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = call i64 @strlen(ptr noundef %10) #5
  %12 = trunc i64 %11 to i32
  store i32 %12, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %32, %1
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %35

18:                                               ; preds = %13
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %4, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %21
  store i8 35, ptr %22, align 1, !tbaa !11
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %30
  store i8 %27, ptr %31, align 1, !tbaa !11
  br label %32

32:                                               ; preds = %18
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %5, align 4, !tbaa !9
  br label %13, !llvm.loop !12

35:                                               ; preds = %17
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %4, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %38
  store i8 35, ptr %39, align 1, !tbaa !11
  store i8 36, ptr @s, align 16, !tbaa !11
  store i32 1, ptr getelementptr inbounds ([22000100 x i32], ptr @len, i64 0, i64 1), align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %117, %35
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %120

45:                                               ; preds = %40
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %65

49:                                               ; preds = %45
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = mul nsw i32 2, %50
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sub nsw i32 %51, %52
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = sub nsw i32 %56, %57
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %63
  store i32 %61, ptr %64, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %69

65:                                               ; preds = %45
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %67
  store i32 1, ptr %68, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %65, %49
  br label %70

70:                                               ; preds = %92, %69
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = add nsw i32 %71, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = sub nsw i32 %81, %85
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = sext i8 %89 to i32
  %91 = icmp eq i32 %80, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %70
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 4, !tbaa !9
  br label %70, !llvm.loop !14

98:                                               ; preds = %70
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = add nsw i32 %99, %103
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = icmp sgt i32 %104, %105
  br i1 %106, label %107, label %116

107:                                              ; preds = %98
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = add nsw i32 %108, %112
  %114 = sub nsw i32 %113, 1
  store i32 %114, ptr %6, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %115, ptr %7, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %107, %98
  br label %117

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

120:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind willreturn memory(read) "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 = { 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !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"

@s = external dso_local local_unnamed_addr global [22000100 x i8], align 16
@len = external dso_local global [22000100 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z8manacherPc(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #4
  %4 = trunc i64 %3 to i32
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = and i64 %3, 2147483647
  %min.iters.check = icmp ult i64 %wide.trip.count, 16
  br i1 %min.iters.check, label %.lr.ph.preheader70, label %vector.memcheck

.lr.ph.preheader70:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv50.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %6 = sub i64 %3, %indvars.iv.ph
  %.neg = add nsw i64 %indvars.iv.ph, 1
  %xtraiter = and i64 %6, 1
  %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.preheader70
  %7 = or disjoint i64 %indvars.iv50.ph, 1
  %8 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %7
  store i8 35, ptr %8, align 1, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv.ph
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %indvars.iv.next51.prol = add nuw nsw i64 %indvars.iv50.ph, 2
  %11 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %indvars.iv.next51.prol
  store i8 %10, ptr %11, align 2, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader70
  %indvars.iv.next51.lcssa71.unr = phi i64 [ poison, %.lr.ph.preheader70 ], [ %indvars.iv.next51.prol, %.lr.ph.prol ]
  %indvars.iv50.unr = phi i64 [ %indvars.iv50.ph, %.lr.ph.preheader70 ], [ %indvars.iv.next51.prol, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader70 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %12 = icmp eq i64 %wide.trip.count, %.neg
  br i1 %12, label %._crit_edge.loopexit, label %.lr.ph.preheader70.new

.lr.ph.preheader70.new:                           ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %0, i64 1
  br label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %13 = shl nuw nsw i64 %wide.trip.count, 1
  %14 = or disjoint i64 %13, 1
  %scevgep = getelementptr i8, ptr @s, i64 %14
  %scevgep65 = getelementptr i8, ptr %0, i64 %wide.trip.count
  %bound0 = icmp ugt ptr %scevgep65, getelementptr inbounds (i8, ptr @s, i64 1)
  %bound1 = icmp ugt ptr %scevgep, %0
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader70, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.mod.vf = and i64 %3, 15
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  %ind.end = shl nsw i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 1
  %15 = getelementptr inbounds i8, ptr %0, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %wide.load = load <8 x i8>, ptr %15, align 1, !tbaa !5, !alias.scope !8
  %wide.load67 = load <8 x i8>, ptr %16, align 1, !tbaa !5, !alias.scope !8
  %17 = or disjoint i64 %offset.idx, 2
  %18 = or disjoint i64 %offset.idx, 18
  %gep = getelementptr [22000100 x i8], ptr getelementptr (i8, ptr @s, i64 -1), i64 0, i64 %17
  %gep73 = getelementptr [22000100 x i8], ptr getelementptr (i8, ptr @s, i64 -1), i64 0, i64 %18
  %interleaved.vec = shufflevector <8 x i8> <i8 35, i8 35, i8 35, i8 35, i8 35, i8 35, i8 35, i8 35>, <8 x i8> %wide.load, <16 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11, i32 4, i32 12, i32 5, i32 13, i32 6, i32 14, i32 7, i32 15>
  store <16 x i8> %interleaved.vec, ptr %gep, align 1, !tbaa !5
  %interleaved.vec68 = shufflevector <8 x i8> <i8 35, i8 35, i8 35, i8 35, i8 35, i8 35, i8 35, i8 35>, <8 x i8> %wide.load67, <16 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11, i32 4, i32 12, i32 5, i32 13, i32 6, i32 14, i32 7, i32 15>
  store <16 x i8> %interleaved.vec68, ptr %gep73, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 16
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge.loopexit, label %.lr.ph.preheader70

._crit_edge.loopexit:                             ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %indvars.iv.next51.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next51.lcssa71.unr, %.lr.ph.prol.loopexit ], [ %indvars.iv.next51.1, %.lr.ph ]
  %20 = trunc nuw nsw i64 %indvars.iv.next51.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %1
  %.034.lcssa = phi i32 [ 0, %1 ], [ %20, %._crit_edge.loopexit ]
  %21 = or disjoint i32 %.034.lcssa, 1
  %22 = zext nneg i32 %21 to i64
  %23 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %22
  store i8 35, ptr %23, align 1, !tbaa !5
  store i8 36, ptr @s, align 16, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @len, i64 4), align 4, !tbaa !15
  %24 = add nuw i32 %.034.lcssa, 2
  %wide.trip.count61 = zext i32 %24 to i64
  br label %35

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader70.new
  %indvars.iv50 = phi i64 [ %indvars.iv50.unr, %.lr.ph.preheader70.new ], [ %indvars.iv.next51.1, %.lr.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader70.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %25 = or disjoint i64 %indvars.iv50, 1
  %26 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %25
  store i8 35, ptr %26, align 1, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 2
  %29 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %indvars.iv.next51
  store i8 %28, ptr %29, align 2, !tbaa !5
  %30 = or disjoint i64 %indvars.iv.next51, 1
  %31 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %30
  store i8 35, ptr %31, align 1, !tbaa !5
  %gep74 = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv
  %32 = load i8, ptr %gep74, align 1, !tbaa !5
  %indvars.iv.next51.1 = add nuw nsw i64 %indvars.iv50, 4
  %33 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %indvars.iv.next51.1
  store i8 %32, ptr %33, align 2, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !17

34:                                               ; preds = %69
  ret void

35:                                               ; preds = %._crit_edge, %69
  %indvars.iv58 = phi i64 [ 1, %._crit_edge ], [ %indvars.iv.next59, %69 ]
  %.03045 = phi i32 [ 1, %._crit_edge ], [ %spec.select36, %69 ]
  %.03144 = phi i32 [ 1, %._crit_edge ], [ %spec.select, %69 ]
  %36 = sext i32 %.03144 to i64
  %37 = icmp slt i64 %indvars.iv58, %36
  br i1 %37, label %38, label %48

38:                                               ; preds = %35
  %39 = shl nsw i32 %.03045, 1
  %40 = sext i32 %39 to i64
  %41 = sub nsw i64 %40, %indvars.iv58
  %42 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %43 = add nuw nsw i32 %.03144, 1
  %44 = trunc nuw nsw i64 %indvars.iv58 to i32
  %45 = sub i32 %43, %44
  store i32 %45, ptr %2, align 4, !tbaa !15
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %47 = load i32, ptr %46, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %49

48:                                               ; preds = %35
  %.pre = trunc nuw nsw i64 %indvars.iv58 to i32
  br label %49

49:                                               ; preds = %48, %38
  %.pre-phi = phi i32 [ %.pre, %48 ], [ %44, %38 ]
  %.sink = phi i32 [ 1, %48 ], [ %47, %38 ]
  %50 = getelementptr inbounds [22000100 x i32], ptr @len, i64 0, i64 %indvars.iv58
  store i32 %.sink, ptr %50, align 4
  %51 = add nsw i32 %.sink, %.pre-phi
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = sext i32 %.sink to i64
  %56 = sub nsw i64 %indvars.iv58, %55
  %57 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = icmp eq i8 %54, %58
  br i1 %59, label %.lr.ph40, label %69

.lr.ph40:                                         ; preds = %49, %.lr.ph40
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %.lr.ph40 ], [ %55, %49 ]
  %indvars.iv.next56 = add nsw i64 %indvars.iv55, 1
  %60 = add nsw i64 %indvars.iv.next56, %indvars.iv58
  %61 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = sub nsw i64 %indvars.iv58, %indvars.iv.next56
  %64 = getelementptr inbounds [22000100 x i8], ptr @s, i64 0, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !5
  %66 = icmp eq i8 %62, %65
  br i1 %66, label %.lr.ph40, label %._crit_edge41, !llvm.loop !18

._crit_edge41:                                    ; preds = %.lr.ph40
  %67 = trunc nsw i64 %indvars.iv.next56 to i32
  %68 = trunc nsw i64 %60 to i32
  store i32 %67, ptr %50, align 4, !tbaa !15
  br label %69

69:                                               ; preds = %._crit_edge41, %49
  %.lcssa = phi i32 [ %68, %._crit_edge41 ], [ %51, %49 ]
  %70 = icmp sgt i32 %.lcssa, %.03144
  %71 = add nsw i32 %.lcssa, -1
  %spec.select = select i1 %70, i32 %71, i32 %.03144
  %spec.select36 = select i1 %70, i32 %.pre-phi, i32 %.03045
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62 = icmp eq i64 %indvars.iv.next59, %wide.trip.count61
  br i1 %exitcond62, label %34, label %35, !llvm.loop !19
}

; 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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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


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