; LLVM IR from VAR-solutions/Algorithms :: Dynamic Programming (LongestPalindromicSubsequence)

; 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: mustprogress uwtable
define dso_local noundef i32 @_Z3lpsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %12 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %3, align 4, !tbaa !9
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = zext i32 %14 to i64
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %4, align 8
  %19 = mul nuw i64 %15, %17
  %20 = alloca i32, i64 %19, align 16
  store i64 %15, ptr %5, align 8
  store i64 %17, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %34, %1
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %37

26:                                               ; preds = %21
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = mul nsw i64 %28, %17
  %30 = getelementptr inbounds i32, ptr %20, i64 %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i32, ptr %30, i64 %32
  store i32 1, ptr %33, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %26
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %7, align 4, !tbaa !9
  br label %21, !llvm.loop !11

37:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %124, %37
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %127

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %120, %43
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  %49 = add nsw i32 %48, 1
  %50 = icmp slt i32 %45, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %44
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %123

52:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = add nsw i32 %53, %54
  %56 = sub nsw i32 %55, 1
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = sext i8 %60 to i32
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %63)
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = sext i8 %65 to i32
  %67 = icmp eq i32 %61, %66
  br i1 %67, label %68, label %93

68:                                               ; preds = %52
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  br label %84

72:                                               ; preds = %68
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = mul nsw i64 %75, %17
  %77 = getelementptr inbounds i32, ptr %20, i64 %76
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %77, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = add nsw i32 2, %82
  br label %84

84:                                               ; preds = %72, %71
  %85 = phi i32 [ 2, %71 ], [ %83, %72 ]
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = mul nsw i64 %87, %17
  %89 = getelementptr inbounds i32, ptr %20, i64 %88
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  store i32 %85, ptr %92, align 4, !tbaa !9
  br label %119

93:                                               ; preds = %52
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = mul nsw i64 %96, %17
  %98 = getelementptr inbounds i32, ptr %20, i64 %97
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr %98, i64 %100
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = mul nsw i64 %103, %17
  %105 = getelementptr inbounds i32, ptr %20, i64 %104
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %105, i64 %108
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %101, ptr noundef nonnull align 4 dereferenceable(4) %109)
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = mul nsw i64 %113, %17
  %115 = getelementptr inbounds i32, ptr %20, i64 %114
  %116 = load i32, ptr %11, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  store i32 %111, ptr %118, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %93, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %10, align 4, !tbaa !9
  br label %44, !llvm.loop !14

123:                                              ; preds = %51
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %8, align 4, !tbaa !9
  br label %38, !llvm.loop !15

127:                                              ; preds = %42
  %128 = mul nsw i64 0, %17
  %129 = getelementptr inbounds i32, ptr %20, i64 %128
  %130 = load i32, ptr %3, align 4, !tbaa !9
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %129, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !9
  store i32 1, ptr %9, align 4
  %135 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %135)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 %134
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z3lpsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %0) local_unnamed_addr #0 {
  %2 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #2
  %3 = trunc i64 %2 to i32
  %4 = and i64 %2, 4294967295
  %5 = mul nuw i64 %4, %4
  %6 = alloca i32, i64 %5, align 16
  %7 = icmp sgt i32 %3, 0
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge43

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = and i64 %2, 2147483647
  %8 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %2, 3
  %9 = icmp ult i64 %8, 3
  br i1 %9, label %.preheader34.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
  br label %.lr.ph

.preheader34.unr-lcssa:                           ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader34, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader34.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader34.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader34.unr-lcssa ]
  %10 = mul nuw nsw i64 %4, %indvars.iv.epil
  %11 = getelementptr inbounds i32, ptr %6, i64 %10
  %12 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.epil
  store i32 1, ptr %12, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader34, label %.lr.ph.epil, !llvm.loop !9

.preheader34:                                     ; preds = %.lr.ph.epil, %.preheader34.unr-lcssa
  %.not40 = icmp eq i32 %3, 1
  br i1 %.not40, label %._crit_edge43, label %.preheader

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %13 = mul nuw nsw i64 %4, %indvars.iv
  %14 = getelementptr inbounds i32, ptr %6, i64 %13
  %15 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv
  store i32 1, ptr %15, align 16, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %16 = mul nuw nsw i64 %4, %indvars.iv.next
  %17 = getelementptr inbounds i32, ptr %6, i64 %16
  %18 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv.next
  store i32 1, ptr %18, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %19 = mul nuw nsw i64 %4, %indvars.iv.next.1
  %20 = getelementptr inbounds i32, ptr %6, i64 %19
  %21 = getelementptr inbounds i32, ptr %20, i64 %indvars.iv.next.1
  store i32 1, ptr %21, align 8, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %22 = mul nuw nsw i64 %4, %indvars.iv.next.2
  %23 = getelementptr inbounds i32, ptr %6, i64 %22
  %24 = getelementptr inbounds i32, ptr %23, i64 %indvars.iv.next.2
  store i32 1, ptr %24, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader34.unr-lcssa, label %.lr.ph, !llvm.loop !11

.preheader:                                       ; preds = %.preheader34, %._crit_edge
  %indvars.iv49.in = phi i32 [ %indvars.iv49, %._crit_edge ], [ %3, %.preheader34 ]
  %.03141 = phi i32 [ %53, %._crit_edge ], [ 2, %.preheader34 ]
  %indvars.iv49 = add i32 %indvars.iv49.in, -1
  %.not3336 = icmp sgt i32 %.03141, %3
  br i1 %.not3336, label %._crit_edge, label %.lr.ph39

.lr.ph39:                                         ; preds = %.preheader
  %25 = icmp eq i32 %.03141, 2
  br i1 %25, label %.lr.ph39.split.us.preheader, label %.lr.ph39.split.preheader

.lr.ph39.split.preheader:                         ; preds = %.lr.ph39
  %26 = sext i32 %.03141 to i64
  %wide.trip.count51 = zext i32 %indvars.iv49 to i64
  br label %.lr.ph39.split

.lr.ph39.split.us.preheader:                      ; preds = %.lr.ph39
  %wide.trip.count56 = zext i32 %indvars.iv49 to i64
  br label %.lr.ph39.split.us

.lr.ph39.split.us:                                ; preds = %.lr.ph39.split.us.preheader, %48
  %indvars.iv53 = phi i64 [ 0, %.lr.ph39.split.us.preheader ], [ %indvars.iv.next54.pre-phi, %48 ]
  %27 = add nsw i64 %indvars.iv53, 1
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv53)
  %29 = load i8, ptr %28, align 1, !tbaa !13
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %27)
  %31 = load i8, ptr %30, align 1, !tbaa !13
  %32 = icmp eq i8 %29, %31
  br i1 %32, label %44, label %33

33:                                               ; preds = %.lr.ph39.split.us
  %34 = add nuw nsw i64 %indvars.iv53, 1
  %35 = mul nuw nsw i64 %4, %34
  %36 = getelementptr inbounds i32, ptr %6, i64 %35
  %37 = getelementptr inbounds i32, ptr %36, i64 %27
  %38 = mul nuw nsw i64 %4, %indvars.iv53
  %39 = getelementptr inbounds i32, ptr %6, i64 %38
  %40 = getelementptr i32, ptr %39, i64 %indvars.iv53
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %39, i64 %27
  store i32 %42, ptr %43, align 4, !tbaa !5
  br label %48

44:                                               ; preds = %.lr.ph39.split.us
  %45 = mul nuw nsw i64 %4, %indvars.iv53
  %46 = getelementptr inbounds i32, ptr %6, i64 %45
  %47 = getelementptr inbounds i32, ptr %46, i64 %27
  store i32 2, ptr %47, align 4, !tbaa !5
  %.pre = add nuw nsw i64 %indvars.iv53, 1
  br label %48

48:                                               ; preds = %44, %33
  %indvars.iv.next54.pre-phi = phi i64 [ %.pre, %44 ], [ %34, %33 ]
  %exitcond57.not = icmp eq i64 %indvars.iv.next54.pre-phi, %wide.trip.count56
  br i1 %exitcond57.not, label %._crit_edge, label %.lr.ph39.split.us, !llvm.loop !14

._crit_edge43:                                    ; preds = %._crit_edge, %1, %.preheader34
  %49 = shl i64 %2, 32
  %sext = add i64 %49, -4294967296
  %50 = ashr exact i64 %sext, 30
  %51 = getelementptr inbounds i8, ptr %6, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  ret i32 %52

._crit_edge:                                      ; preds = %78, %48, %.preheader
  %53 = add i32 %.03141, 1
  %.not = icmp sgt i32 %53, %3
  br i1 %.not, label %._crit_edge43, label %.preheader, !llvm.loop !15

.lr.ph39.split:                                   ; preds = %.lr.ph39.split.preheader, %78
  %indvars.iv46 = phi i64 [ 0, %.lr.ph39.split.preheader ], [ %61, %78 ]
  %54 = add nuw nsw i64 %indvars.iv46, %26
  %55 = add nsw i64 %54, -1
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv46)
  %57 = load i8, ptr %56, align 1, !tbaa !13
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %55)
  %59 = load i8, ptr %58, align 1, !tbaa !13
  %60 = icmp eq i8 %57, %59
  %61 = add nuw nsw i64 %indvars.iv46, 1
  %62 = mul nuw nsw i64 %4, %61
  %63 = getelementptr inbounds i32, ptr %6, i64 %62
  br i1 %60, label %64, label %70

64:                                               ; preds = %.lr.ph39.split
  %65 = getelementptr i32, ptr %63, i64 %54
  %66 = getelementptr i8, ptr %65, i64 -8
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, 2
  %69 = mul nuw nsw i64 %4, %indvars.iv46
  br label %78

70:                                               ; preds = %.lr.ph39.split
  %71 = getelementptr inbounds i32, ptr %63, i64 %55
  %72 = mul nuw nsw i64 %4, %indvars.iv46
  %73 = getelementptr inbounds i32, ptr %6, i64 %72
  %74 = getelementptr i32, ptr %73, i64 %54
  %75 = getelementptr i8, ptr %74, i64 -8
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = load i32, ptr %76, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %70, %64
  %79 = phi i64 [ %72, %70 ], [ %69, %64 ]
  %.sink = phi i32 [ %77, %70 ], [ %68, %64 ]
  %80 = getelementptr inbounds i32, ptr %6, i64 %79
  %81 = getelementptr inbounds i32, ptr %80, i64 %55
  store i32 %.sink, ptr %81, align 4, !tbaa !5
  %exitcond52.not = icmp eq i64 %61, %wide.trip.count51
  br i1 %exitcond52.not, label %._crit_edge, label %.lr.ph39.split, !llvm.loop !14
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

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

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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass