; LLVM IR from Water-Melon/Melon :: t (rs)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mln_rs_result_t = type { ptr, i64, i64 }

@__const.main.origin = external hidden unnamed_addr constant [100 x i8], align 16
@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [58 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [100 x i8], align 16
  %11 = alloca [12 x ptr], align 16
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 100, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.origin, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 96, i1 false)
  %12 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %13 = call ptr @mln_rs_encode(ptr noundef %12, i64 noundef 10, i64 noundef 10, i64 noundef 2)
  store ptr %13, ptr %8, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  br label %17

16:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 16, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

17:                                               ; preds = %15
  %18 = load ptr, ptr %8, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.mln_rs_result_t, ptr %18, i32 0, i32 2
  %20 = load i64, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %8, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.mln_rs_result_t, ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !14
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %20, i64 noundef %23)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %72, %17
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = load ptr, ptr %8, align 8, !tbaa !9
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %25
  br label %35

31:                                               ; preds = %25
  %32 = load ptr, ptr %8, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.mln_rs_result_t, ptr %32, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %31, %30
  %36 = phi i64 [ 0, %30 ], [ %34, %31 ]
  %37 = icmp ult i64 %27, %36
  br i1 %37, label %38, label %75

38:                                               ; preds = %35
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %67

42:                                               ; preds = %38
  %43 = load ptr, ptr %8, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.mln_rs_result_t, ptr %43, i32 0, i32 2
  %45 = load i64, ptr %44, align 8, !tbaa !11
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp ule i64 %45, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %42
  br label %65

50:                                               ; preds = %42
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.mln_rs_result_t, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.mln_rs_result_t, ptr %56, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !14
  %59 = load ptr, ptr %8, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.mln_rs_result_t, ptr %59, i32 0, i32 2
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = udiv i64 %58, %61
  %63 = mul i64 %55, %62
  %64 = getelementptr inbounds i8, ptr %53, i64 %63
  br label %65

65:                                               ; preds = %50, %49
  %66 = phi ptr [ null, %49 ], [ %64, %50 ]
  br label %67

67:                                               ; preds = %65, %41
  %68 = phi ptr [ null, %41 ], [ %66, %65 ]
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [12 x ptr], ptr %11, i64 0, i64 %70
  store ptr %68, ptr %71, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %67
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %6, align 4, !tbaa !5
  br label %25, !llvm.loop !16

75:                                               ; preds = %35
  %76 = getelementptr inbounds [12 x ptr], ptr %11, i64 0, i64 0
  store ptr null, ptr %76, align 16, !tbaa !9
  %77 = getelementptr inbounds [12 x ptr], ptr %11, i64 0, i64 1
  store ptr null, ptr %77, align 8, !tbaa !9
  %78 = getelementptr inbounds [12 x ptr], ptr %11, i64 0, i64 0
  %79 = call ptr @mln_rs_decode(ptr noundef %78, i64 noundef 10, i64 noundef 10, i64 noundef 2)
  store ptr %79, ptr %9, align 8, !tbaa !9
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %82

81:                                               ; preds = %75
  br label %83

82:                                               ; preds = %75
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 26, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

83:                                               ; preds = %81
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %143, %83
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = load ptr, ptr %9, align 8, !tbaa !9
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  br label %94

90:                                               ; preds = %84
  %91 = load ptr, ptr %9, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.mln_rs_result_t, ptr %91, i32 0, i32 2
  %93 = load i64, ptr %92, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %90, %89
  %95 = phi i64 [ 0, %89 ], [ %93, %90 ]
  %96 = icmp ult i64 %86, %95
  br i1 %96, label %97, label %146

97:                                               ; preds = %94
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %138, %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 10
  br i1 %100, label %101, label %141

101:                                              ; preds = %98
  %102 = load ptr, ptr %9, align 8, !tbaa !9
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  br label %130

105:                                              ; preds = %101
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.mln_rs_result_t, ptr %106, i32 0, i32 2
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = icmp ule i64 %108, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %105
  br label %128

113:                                              ; preds = %105
  %114 = load ptr, ptr %9, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.mln_rs_result_t, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = load ptr, ptr %9, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.mln_rs_result_t, ptr %119, i32 0, i32 1
  %121 = load i64, ptr %120, align 8, !tbaa !14
  %122 = load ptr, ptr %9, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.mln_rs_result_t, ptr %122, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !11
  %125 = udiv i64 %121, %124
  %126 = mul i64 %118, %125
  %127 = getelementptr inbounds i8, ptr %116, i64 %126
  br label %128

128:                                              ; preds = %113, %112
  %129 = phi ptr [ null, %112 ], [ %127, %113 ]
  br label %130

130:                                              ; preds = %128, %104
  %131 = phi ptr [ null, %104 ], [ %129, %128 ]
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i8, ptr %131, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !18
  %136 = zext i8 %135 to i32
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %136)
  br label %138

138:                                              ; preds = %130
  %139 = load i32, ptr %7, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %7, align 4, !tbaa !5
  br label %98, !llvm.loop !19

141:                                              ; preds = %98
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %143

143:                                              ; preds = %141
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %6, align 4, !tbaa !5
  br label %84, !llvm.loop !20

146:                                              ; preds = %94
  %147 = load ptr, ptr %8, align 8, !tbaa !9
  call void @mln_rs_result_free(ptr noundef %147)
  %148 = load ptr, ptr %9, align 8, !tbaa !9
  call void @mln_rs_result_free(ptr noundef %148)
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @mln_rs_encode(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

declare ptr @mln_rs_decode(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #4

declare void @mln_rs_result_free(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"", !10, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


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

@__const.main.origin = external hidden unnamed_addr constant [100 x i8], align 16
@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [58 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [100 x i8], align 16
  %4 = alloca [12 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %3, ptr noundef nonnull align 16 dereferenceable(100) @__const.main.origin, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #8
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %5, i8 0, i64 80, i1 false)
  %6 = call ptr @mln_rs_encode(ptr noundef nonnull %3, i64 noundef 10, i64 noundef 10, i64 noundef 2) #8
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %2
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 16, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %6, i64 16
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !11
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %10, i64 noundef %12)
  %14 = load i64, ptr %9, align 8, !tbaa !5
  %.not43 = icmp eq i64 %14, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %15 = load i64, ptr %11, align 8, !tbaa !11
  %16 = udiv i64 %15, %14
  %.pre = load ptr, ptr %6, align 8, !tbaa !12
  %xtraiter = and i64 %14, 3
  %17 = icmp ult i64 %14, 4
  br i1 %17, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %14, -4
  br label %18

18:                                               ; preds = %18, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %18 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %18 ]
  %19 = mul i64 %16, %indvars.iv
  %20 = getelementptr inbounds i8, ptr %.pre, i64 %19
  %21 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %indvars.iv
  store ptr %20, ptr %21, align 16, !tbaa !13
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %22 = mul i64 %16, %indvars.iv.next
  %23 = getelementptr inbounds i8, ptr %.pre, i64 %22
  %24 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %indvars.iv.next
  store ptr %23, ptr %24, align 8, !tbaa !13
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = mul i64 %16, %indvars.iv.next.1
  %26 = getelementptr inbounds i8, ptr %.pre, i64 %25
  %27 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %indvars.iv.next.1
  store ptr %26, ptr %27, align 16, !tbaa !13
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %28 = mul i64 %16, %indvars.iv.next.2
  %29 = getelementptr inbounds i8, ptr %.pre, i64 %28
  %30 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %indvars.iv.next.2
  store ptr %29, ptr %30, align 8, !tbaa !13
  %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 %._crit_edge.loopexit.unr-lcssa, label %18, !llvm.loop !14

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

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %31 = mul i64 %16, %indvars.iv.epil
  %32 = getelementptr inbounds i8, ptr %.pre, i64 %31
  %33 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %indvars.iv.epil
  store ptr %32, ptr %33, align 8, !tbaa !13
  %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 %._crit_edge, label %.epil.preheader, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %34 = call ptr @mln_rs_decode(ptr noundef nonnull %4, i64 noundef 10, i64 noundef 10, i64 noundef 2) #8
  %.not35 = icmp eq ptr %34, null
  br i1 %.not35, label %38, label %.preheader38

.preheader38:                                     ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %.not44 = icmp eq i64 %36, 0
  br i1 %.not44, label %._crit_edge42, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader38
  %37 = getelementptr inbounds i8, ptr %34, i64 8
  br label %.preheader

38:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 26, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %39 = phi i64 [ %36, %.preheader.lr.ph ], [ %139, %.preheader ]
  %indvars.iv50 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next51, %.preheader ]
  %.not36 = icmp ugt i64 %39, %indvars.iv50
  call void @llvm.assume(i1 %.not36)
  %40 = load ptr, ptr %34, align 8, !tbaa !12
  %41 = load i64, ptr %37, align 8, !tbaa !11
  %42 = udiv i64 %41, %39
  %43 = mul i64 %42, %indvars.iv50
  %44 = getelementptr inbounds i8, ptr %40, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !18
  %46 = zext i8 %45 to i32
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %46)
  %48 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.1 = icmp ugt i64 %48, %indvars.iv50
  call void @llvm.assume(i1 %.not36.1)
  %49 = load ptr, ptr %34, align 8, !tbaa !12
  %50 = load i64, ptr %37, align 8, !tbaa !11
  %51 = udiv i64 %50, %48
  %52 = mul i64 %51, %indvars.iv50
  %53 = getelementptr inbounds i8, ptr %49, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  %55 = load i8, ptr %54, align 1, !tbaa !18
  %56 = zext i8 %55 to i32
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %56)
  %58 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.2 = icmp ugt i64 %58, %indvars.iv50
  call void @llvm.assume(i1 %.not36.2)
  %59 = load ptr, ptr %34, align 8, !tbaa !12
  %60 = load i64, ptr %37, align 8, !tbaa !11
  %61 = udiv i64 %60, %58
  %62 = mul i64 %61, %indvars.iv50
  %63 = getelementptr inbounds i8, ptr %59, i64 %62
  %64 = getelementptr inbounds i8, ptr %63, i64 2
  %65 = load i8, ptr %64, align 1, !tbaa !18
  %66 = zext i8 %65 to i32
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %66)
  %68 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.3 = icmp ugt i64 %68, %indvars.iv50
  call void @llvm.assume(i1 %.not36.3)
  %69 = load ptr, ptr %34, align 8, !tbaa !12
  %70 = load i64, ptr %37, align 8, !tbaa !11
  %71 = udiv i64 %70, %68
  %72 = mul i64 %71, %indvars.iv50
  %73 = getelementptr inbounds i8, ptr %69, i64 %72
  %74 = getelementptr inbounds i8, ptr %73, i64 3
  %75 = load i8, ptr %74, align 1, !tbaa !18
  %76 = zext i8 %75 to i32
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %76)
  %78 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.4 = icmp ugt i64 %78, %indvars.iv50
  call void @llvm.assume(i1 %.not36.4)
  %79 = load ptr, ptr %34, align 8, !tbaa !12
  %80 = load i64, ptr %37, align 8, !tbaa !11
  %81 = udiv i64 %80, %78
  %82 = mul i64 %81, %indvars.iv50
  %83 = getelementptr inbounds i8, ptr %79, i64 %82
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  %85 = load i8, ptr %84, align 1, !tbaa !18
  %86 = zext i8 %85 to i32
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %86)
  %88 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.5 = icmp ugt i64 %88, %indvars.iv50
  call void @llvm.assume(i1 %.not36.5)
  %89 = load ptr, ptr %34, align 8, !tbaa !12
  %90 = load i64, ptr %37, align 8, !tbaa !11
  %91 = udiv i64 %90, %88
  %92 = mul i64 %91, %indvars.iv50
  %93 = getelementptr inbounds i8, ptr %89, i64 %92
  %94 = getelementptr inbounds i8, ptr %93, i64 5
  %95 = load i8, ptr %94, align 1, !tbaa !18
  %96 = zext i8 %95 to i32
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %96)
  %98 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.6 = icmp ugt i64 %98, %indvars.iv50
  call void @llvm.assume(i1 %.not36.6)
  %99 = load ptr, ptr %34, align 8, !tbaa !12
  %100 = load i64, ptr %37, align 8, !tbaa !11
  %101 = udiv i64 %100, %98
  %102 = mul i64 %101, %indvars.iv50
  %103 = getelementptr inbounds i8, ptr %99, i64 %102
  %104 = getelementptr inbounds i8, ptr %103, i64 6
  %105 = load i8, ptr %104, align 1, !tbaa !18
  %106 = zext i8 %105 to i32
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %106)
  %108 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.7 = icmp ugt i64 %108, %indvars.iv50
  call void @llvm.assume(i1 %.not36.7)
  %109 = load ptr, ptr %34, align 8, !tbaa !12
  %110 = load i64, ptr %37, align 8, !tbaa !11
  %111 = udiv i64 %110, %108
  %112 = mul i64 %111, %indvars.iv50
  %113 = getelementptr inbounds i8, ptr %109, i64 %112
  %114 = getelementptr inbounds i8, ptr %113, i64 7
  %115 = load i8, ptr %114, align 1, !tbaa !18
  %116 = zext i8 %115 to i32
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %116)
  %118 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.8 = icmp ugt i64 %118, %indvars.iv50
  call void @llvm.assume(i1 %.not36.8)
  %119 = load ptr, ptr %34, align 8, !tbaa !12
  %120 = load i64, ptr %37, align 8, !tbaa !11
  %121 = udiv i64 %120, %118
  %122 = mul i64 %121, %indvars.iv50
  %123 = getelementptr inbounds i8, ptr %119, i64 %122
  %124 = getelementptr inbounds i8, ptr %123, i64 8
  %125 = load i8, ptr %124, align 1, !tbaa !18
  %126 = zext i8 %125 to i32
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %126)
  %128 = load i64, ptr %35, align 8, !tbaa !5
  %.not36.9 = icmp ugt i64 %128, %indvars.iv50
  call void @llvm.assume(i1 %.not36.9)
  %129 = load ptr, ptr %34, align 8, !tbaa !12
  %130 = load i64, ptr %37, align 8, !tbaa !11
  %131 = udiv i64 %130, %128
  %132 = mul i64 %131, %indvars.iv50
  %133 = getelementptr inbounds i8, ptr %129, i64 %132
  %134 = getelementptr inbounds i8, ptr %133, i64 9
  %135 = load i8, ptr %134, align 1, !tbaa !18
  %136 = zext i8 %135 to i32
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %136)
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %139 = load i64, ptr %35, align 8, !tbaa !5
  %140 = icmp ugt i64 %139, %indvars.iv.next51
  br i1 %140, label %.preheader, label %._crit_edge42, !llvm.loop !19

._crit_edge42:                                    ; preds = %.preheader, %.preheader38
  call void @mln_rs_result_free(ptr noundef nonnull %6) #8
  call void @mln_rs_result_free(ptr noundef nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #8
  ret i32 0
}

; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @mln_rs_encode(ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

declare ptr @mln_rs_decode(ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare void @mln_rs_result_free(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #7

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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, !10, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !15}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass