; LLVM IR from kokobd/leetcode-hs :: csrc/src (p17)

; 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: nounwind uwtable
define dso_local ptr @p17_letterCombinations(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i8, align 1
  %23 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 0
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %2
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %30, align 4, !tbaa !10
  store ptr null, ptr %3, align 8
  br label %143

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 1, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %32, ptr %8, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %47, %31
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %50

39:                                               ; preds = %33
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = call i64 @digitToLettersSize(i8 noundef signext %41)
  %43 = load i64, ptr %6, align 8, !tbaa !12
  %44 = mul i64 %43, %42
  store i64 %44, ptr %6, align 8, !tbaa !12
  %45 = load i64, ptr %7, align 8, !tbaa !12
  %46 = add i64 %45, 1
  store i64 %46, ptr %7, align 8, !tbaa !12
  br label %47

47:                                               ; preds = %39
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %8, align 8, !tbaa !5
  br label %33, !llvm.loop !14

50:                                               ; preds = %38
  %51 = load i64, ptr %6, align 8, !tbaa !12
  %52 = trunc i64 %51 to i32
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %52, ptr %53, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %54 = load i64, ptr %6, align 8, !tbaa !12
  %55 = mul i64 %54, 8
  %56 = call noalias ptr @malloc(i64 noundef %55) #6
  store ptr %56, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !12
  br label %57

57:                                               ; preds = %69, %50
  %58 = load i64, ptr %10, align 8, !tbaa !12
  %59 = load i64, ptr %6, align 8, !tbaa !12
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %72

62:                                               ; preds = %57
  %63 = load i64, ptr %7, align 8, !tbaa !12
  %64 = add i64 1, %63
  %65 = call noalias ptr @calloc(i64 noundef %64, i64 noundef 1) #7
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i64, ptr %10, align 8, !tbaa !12
  %68 = getelementptr inbounds ptr, ptr %66, i64 %67
  store ptr %65, ptr %68, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %62
  %70 = load i64, ptr %10, align 8, !tbaa !12
  %71 = add i64 %70, 1
  store i64 %71, ptr %10, align 8, !tbaa !12
  br label %57, !llvm.loop !16

72:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %73 = load i64, ptr %6, align 8, !tbaa !12
  store i64 %73, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !12
  br label %74

74:                                               ; preds = %138, %72
  %75 = load i64, ptr %12, align 8, !tbaa !12
  %76 = load i64, ptr %7, align 8, !tbaa !12
  %77 = icmp ne i64 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %141

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i64, ptr %12, align 8, !tbaa !12
  %82 = getelementptr inbounds i8, ptr %80, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !9
  store i8 %83, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %84 = load i8, ptr %14, align 1, !tbaa !9
  %85 = call ptr @digitToLetters(i8 noundef signext %84)
  store ptr %85, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %86 = load i8, ptr %14, align 1, !tbaa !9
  %87 = call i64 @digitToLettersSize(i8 noundef signext %86)
  store i64 %87, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %88 = load i64, ptr %6, align 8, !tbaa !12
  %89 = load i64, ptr %11, align 8, !tbaa !12
  %90 = udiv i64 %88, %89
  store i64 %90, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %91 = load i64, ptr %11, align 8, !tbaa !12
  %92 = load i64, ptr %16, align 8, !tbaa !12
  %93 = udiv i64 %91, %92
  store i64 %93, ptr %18, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !12
  br label %94

94:                                               ; preds = %133, %79
  %95 = load i64, ptr %20, align 8, !tbaa !12
  %96 = load i64, ptr %17, align 8, !tbaa !12
  %97 = icmp ne i64 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %136

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store i64 0, ptr %21, align 8, !tbaa !12
  br label %100

100:                                              ; preds = %129, %99
  %101 = load i64, ptr %21, align 8, !tbaa !12
  %102 = load i64, ptr %16, align 8, !tbaa !12
  %103 = icmp ne i64 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %132

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load i64, ptr %21, align 8, !tbaa !12
  %108 = getelementptr inbounds i8, ptr %106, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !9
  store i8 %109, ptr %22, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !12
  br label %110

110:                                              ; preds = %125, %105
  %111 = load i64, ptr %23, align 8, !tbaa !12
  %112 = load i64, ptr %18, align 8, !tbaa !12
  %113 = icmp ne i64 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %128

115:                                              ; preds = %110
  %116 = load i8, ptr %22, align 1, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i64, ptr %19, align 8, !tbaa !12
  %119 = getelementptr inbounds ptr, ptr %117, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load i64, ptr %12, align 8, !tbaa !12
  %122 = getelementptr inbounds i8, ptr %120, i64 %121
  store i8 %116, ptr %122, align 1, !tbaa !9
  %123 = load i64, ptr %19, align 8, !tbaa !12
  %124 = add i64 %123, 1
  store i64 %124, ptr %19, align 8, !tbaa !12
  br label %125

125:                                              ; preds = %115
  %126 = load i64, ptr %23, align 8, !tbaa !12
  %127 = add i64 %126, 1
  store i64 %127, ptr %23, align 8, !tbaa !12
  br label %110, !llvm.loop !17

128:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %21, align 8, !tbaa !12
  %131 = add i64 %130, 1
  store i64 %131, ptr %21, align 8, !tbaa !12
  br label %100, !llvm.loop !18

132:                                              ; preds = %104
  br label %133

133:                                              ; preds = %132
  %134 = load i64, ptr %20, align 8, !tbaa !12
  %135 = add i64 %134, 1
  store i64 %135, ptr %20, align 8, !tbaa !12
  br label %94, !llvm.loop !19

136:                                              ; preds = %98
  %137 = load i64, ptr %18, align 8, !tbaa !12
  store i64 %137, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %138

138:                                              ; preds = %136
  %139 = load i64, ptr %12, align 8, !tbaa !12
  %140 = add i64 %139, 1
  store i64 %140, ptr %12, align 8, !tbaa !12
  br label %74, !llvm.loop !20

141:                                              ; preds = %78
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %142, ptr %3, align 8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %143

143:                                              ; preds = %141, %29
  %144 = load ptr, ptr %3, align 8
  ret ptr %144
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @digitToLettersSize(i8 noundef signext) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @digitToLetters(i8 noundef signext) #2

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


; 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: nounwind uwtable
define dso_local noalias noundef ptr @p17_letterCombinations(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %3 = load i8, ptr %0, align 1, !tbaa !5
  %4 = icmp eq i8 %3, 0
  br i1 %4, label %5, label %.preheader62

5:                                                ; preds = %2
  store i32 0, ptr %1, align 4, !tbaa !8
  br label %.loopexit

6:                                                ; preds = %.preheader62
  %7 = trunc i64 %13 to i32
  store i32 %7, ptr %1, align 4, !tbaa !8
  %8 = shl i64 %13, 3
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #4
  %.not82 = icmp eq i64 %13, 0
  br i1 %.not82, label %.preheader61, label %.lr.ph

.lr.ph:                                           ; preds = %6
  %10 = add i64 %.05264, 2
  br label %16

.preheader62:                                     ; preds = %2, %.preheader62
  %.05165 = phi i64 [ %13, %.preheader62 ], [ 1, %2 ]
  %.05264 = phi i64 [ %14, %.preheader62 ], [ 0, %2 ]
  %.05363 = phi ptr [ %15, %.preheader62 ], [ %0, %2 ]
  %11 = phi i8 [ %.pr, %.preheader62 ], [ %3, %2 ]
  %12 = tail call i64 @digitToLettersSize(i8 noundef signext %11)
  %13 = mul i64 %12, %.05165
  %14 = add i64 %.05264, 1
  %15 = getelementptr inbounds i8, ptr %.05363, i64 1
  %.pr = load i8, ptr %15, align 1, !tbaa !5
  %.not = icmp eq i8 %.pr, 0
  br i1 %.not, label %6, label %.preheader62, !llvm.loop !10

.preheader61:                                     ; preds = %16, %6
  %.not5777 = icmp eq i64 %14, 0
  br i1 %.not5777, label %.loopexit, label %.lr.ph81.preheader

.lr.ph81.preheader:                               ; preds = %.preheader61
  %invariant.gep = getelementptr i8, ptr %9, i64 8
  %invariant.gep97 = getelementptr i8, ptr %9, i64 16
  %invariant.gep99 = getelementptr i8, ptr %9, i64 24
  br label %.lr.ph81

16:                                               ; preds = %.lr.ph, %16
  %.05466 = phi i64 [ 0, %.lr.ph ], [ %19, %16 ]
  %17 = tail call noalias ptr @calloc(i64 noundef %10, i64 noundef 1) #5
  %18 = getelementptr inbounds ptr, ptr %9, i64 %.05466
  store ptr %17, ptr %18, align 8, !tbaa !12
  %19 = add nuw i64 %.05466, 1
  %exitcond.not = icmp eq i64 %19, %13
  br i1 %exitcond.not, label %.preheader61, label %16, !llvm.loop !14

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %._crit_edge76
  %.05580 = phi i64 [ %25, %._crit_edge76 ], [ %13, %.lr.ph81.preheader ]
  %.05678 = phi i64 [ %28, %._crit_edge76 ], [ 0, %.lr.ph81.preheader ]
  %20 = getelementptr inbounds i8, ptr %0, i64 %.05678
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %22 = tail call ptr @digitToLetters(i8 noundef signext %21)
  %23 = tail call i64 @digitToLettersSize(i8 noundef signext %21)
  %24 = udiv i64 %13, %.05580
  %25 = udiv i64 %.05580, %23
  %.not5873 = icmp ugt i64 %.05580, %13
  %.not6067 = icmp ugt i64 %23, %.05580
  %or.cond = or i1 %.not5873, %.not6067
  br i1 %or.cond, label %._crit_edge76, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.lr.ph81
  %26 = add i64 %25, -1
  %xtraiter = and i64 %25, 3
  %27 = icmp ult i64 %26, 3
  %unroll_iter = and i64 %25, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.split
  %.04975 = phi i64 [ %29, %.split ], [ 0, %.preheader.preheader ]
  %.05074 = phi i64 [ %.lcssa, %.split ], [ 0, %.preheader.preheader ]
  br label %.lr.ph70

._crit_edge76:                                    ; preds = %.split, %.lr.ph81
  %28 = add nuw i64 %.05678, 1
  %.not57 = icmp eq i64 %.05678, %.05264
  br i1 %.not57, label %.loopexit, label %.lr.ph81, !llvm.loop !15

.split:                                           ; preds = %._crit_edge
  %29 = add i64 %.04975, 1
  %.not58 = icmp eq i64 %29, %24
  br i1 %.not58, label %._crit_edge76, label %.preheader, !llvm.loop !16

.lr.ph70:                                         ; preds = %.preheader, %._crit_edge
  %.04872 = phi i64 [ 0, %.preheader ], [ %36, %._crit_edge ]
  %.171 = phi i64 [ %.05074, %.preheader ], [ %.lcssa, %._crit_edge ]
  %30 = getelementptr inbounds i8, ptr %22, i64 %.04872
  %31 = load i8, ptr %30, align 1, !tbaa !5
  br i1 %27, label %._crit_edge.unr-lcssa, label %.lr.ph70.new

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph70.new, %.lr.ph70
  %.lcssa.ph = phi i64 [ poison, %.lr.ph70 ], [ %46, %.lr.ph70.new ]
  %.268.unr = phi i64 [ %.171, %.lr.ph70 ], [ %46, %.lr.ph70.new ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %.268.epil = phi i64 [ %35, %.epil.preheader ], [ %.268.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  %32 = getelementptr inbounds ptr, ptr %9, i64 %.268.epil
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = getelementptr inbounds i8, ptr %33, i64 %.05678
  store i8 %31, ptr %34, align 1, !tbaa !5
  %35 = add i64 %.268.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 %._crit_edge, label %.epil.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %35, %.epil.preheader ]
  %36 = add i64 %.04872, 1
  %.not59 = icmp eq i64 %36, %23
  br i1 %.not59, label %.split, label %.lr.ph70, !llvm.loop !19

.lr.ph70.new:                                     ; preds = %.lr.ph70, %.lr.ph70.new
  %.268 = phi i64 [ %46, %.lr.ph70.new ], [ %.171, %.lr.ph70 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph70.new ], [ 0, %.lr.ph70 ]
  %37 = getelementptr inbounds ptr, ptr %9, i64 %.268
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 %.05678
  store i8 %31, ptr %39, align 1, !tbaa !5
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %.268
  %40 = load ptr, ptr %gep, align 8, !tbaa !12
  %41 = getelementptr inbounds i8, ptr %40, i64 %.05678
  store i8 %31, ptr %41, align 1, !tbaa !5
  %gep98 = getelementptr ptr, ptr %invariant.gep97, i64 %.268
  %42 = load ptr, ptr %gep98, align 8, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %42, i64 %.05678
  store i8 %31, ptr %43, align 1, !tbaa !5
  %gep100 = getelementptr ptr, ptr %invariant.gep99, i64 %.268
  %44 = load ptr, ptr %gep100, align 8, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %44, i64 %.05678
  store i8 %31, ptr %45, align 1, !tbaa !5
  %46 = add i64 %.268, 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 %._crit_edge.unr-lcssa, label %.lr.ph70.new, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge76, %.preheader61, %5
  %.047 = phi ptr [ null, %5 ], [ %9, %.preheader61 ], [ %9, %._crit_edge76 ]
  ret ptr %.047
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @digitToLettersSize(i8 noundef signext) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @digitToLetters(i8 noundef signext) local_unnamed_addr #1

attributes #0 = { 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 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind allocsize(0,1) }

!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 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}


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