; LLVM IR from Tiramisu-Compiler/tiramisu :: 3rdParty/isl/imath (gmp_compat)

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

@MP_OK = external constant i32, align 4
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__.impz_get_str = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

17:                                               ; preds = %3
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = sub nsw i32 0, %18
  store i32 %19, ptr %8, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %17, %3
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = call i32 @mp_int_string_len(ptr noundef %21, i32 noundef %22)
  store i32 %23, ptr %9, align 4, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %30

26:                                               ; preds = %20
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = call noalias ptr @malloc(i64 noundef %28) #7
  store ptr %29, ptr %4, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %26, %20
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = call i32 @mp_int_to_string(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
  %36 = load i32, ptr @MP_OK, align 4, !tbaa !9
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %38, label %40

38:                                               ; preds = %30
  br i1 true, label %39, label %40

39:                                               ; preds = %38
  br label %41

40:                                               ; preds = %38, %30
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.2, i32 noundef 338, ptr noundef @__PRETTY_FUNCTION__.impz_get_str) #8
  unreachable

41:                                               ; preds = %39
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %89, %41
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = sub nsw i32 %44, 1
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %47, label %92

47:                                               ; preds = %42
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %69

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %51 = call ptr @__ctype_toupper_loc() #9
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %52, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = trunc i32 %63 to i8
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %65, i64 %67
  store i8 %64, ptr %68, align 1, !tbaa !11
  br label %88

69:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %70 = call ptr @__ctype_tolower_loc() #9
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %72, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = sext i8 %76 to i32
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %71, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = trunc i32 %82 to i8
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  store i8 %83, ptr %87, align 1, !tbaa !11
  br label %88

88:                                               ; preds = %69, %50
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !9
  br label %42, !llvm.loop !12

92:                                               ; preds = %42
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret ptr %93
}

declare i32 @mp_int_string_len(ptr noundef, i32 noundef) #3

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

declare i32 @mp_int_to_string(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() #5

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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) "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 willreturn memory(none) "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 = { nounwind allocsize(0) }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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

@MP_OK = external local_unnamed_addr constant i32, align 4
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__.impz_get_str = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @impz_get_str(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = icmp slt i32 %1, 0
  %spec.select = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
  %5 = tail call i32 @mp_int_string_len(ptr noundef %2, i32 noundef %spec.select) #6
  %6 = icmp eq ptr %0, null
  br i1 %6, label %7, label %10

7:                                                ; preds = %3
  %8 = sext i32 %5 to i64
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #7
  br label %10

10:                                               ; preds = %7, %3
  %.0 = phi ptr [ %9, %7 ], [ %0, %3 ]
  %11 = tail call i32 @mp_int_to_string(ptr noundef %2, i32 noundef %spec.select, ptr noundef %.0, i32 noundef %5) #6
  %12 = load i32, ptr @MP_OK, align 4, !tbaa !5
  %13 = icmp eq i32 %11, %12
  br i1 %13, label %.preheader, label %51

.preheader:                                       ; preds = %10
  %14 = icmp sgt i32 %5, 1
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %15 = add nsw i32 %5, -1
  %wide.trip.count37 = zext i32 %15 to i64
  br i1 %4, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %16 = tail call ptr @__ctype_toupper_loc() #8
  %17 = add nsw i64 %wide.trip.count37, -1
  %xtraiter43 = and i64 %wide.trip.count37, 3
  %18 = icmp ult i64 %17, 3
  br i1 %18, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.split.us.new

.lr.ph.split.us.new:                              ; preds = %.lr.ph.split.us
  %unroll_iter46 = and i64 %wide.trip.count37, 4294967292
  br label %19

19:                                               ; preds = %19, %.lr.ph.split.us.new
  %indvars.iv34 = phi i64 [ 0, %.lr.ph.split.us.new ], [ %indvars.iv.next35.3, %19 ]
  %niter47 = phi i64 [ 0, %.lr.ph.split.us.new ], [ %niter47.next.3, %19 ]
  %20 = load ptr, ptr %16, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv34
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %23 = sext i8 %22 to i64
  %24 = getelementptr inbounds i32, ptr %20, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = trunc i32 %25 to i8
  store i8 %26, ptr %21, align 1, !tbaa !11
  %indvars.iv.next35 = or disjoint i64 %indvars.iv34, 1
  %27 = load ptr, ptr %16, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next35
  %29 = load i8, ptr %28, align 1, !tbaa !11
  %30 = sext i8 %29 to i64
  %31 = getelementptr inbounds i32, ptr %27, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = trunc i32 %32 to i8
  store i8 %33, ptr %28, align 1, !tbaa !11
  %indvars.iv.next35.1 = or disjoint i64 %indvars.iv34, 2
  %34 = load ptr, ptr %16, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next35.1
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i64
  %38 = getelementptr inbounds i32, ptr %34, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = trunc i32 %39 to i8
  store i8 %40, ptr %35, align 1, !tbaa !11
  %indvars.iv.next35.2 = or disjoint i64 %indvars.iv34, 3
  %41 = load ptr, ptr %16, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next35.2
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = sext i8 %43 to i64
  %45 = getelementptr inbounds i32, ptr %41, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = trunc i32 %46 to i8
  store i8 %47, ptr %42, align 1, !tbaa !11
  %indvars.iv.next35.3 = add nuw nsw i64 %indvars.iv34, 4
  %niter47.next.3 = add i64 %niter47, 4
  %niter47.ncmp.3 = icmp eq i64 %niter47.next.3, %unroll_iter46
  br i1 %niter47.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %19, !llvm.loop !12

.lr.ph.split:                                     ; preds = %.lr.ph
  %48 = tail call ptr @__ctype_tolower_loc() #8
  %49 = add nsw i64 %wide.trip.count37, -1
  %xtraiter = and i64 %wide.trip.count37, 3
  %50 = icmp ult i64 %49, 3
  br i1 %50, label %._crit_edge.loopexit41.unr-lcssa, label %.lr.ph.split.new

.lr.ph.split.new:                                 ; preds = %.lr.ph.split
  %unroll_iter = and i64 %wide.trip.count37, 4294967292
  br label %52

51:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.2, i32 noundef 338, ptr noundef nonnull @__PRETTY_FUNCTION__.impz_get_str) #9
  unreachable

52:                                               ; preds = %52, %.lr.ph.split.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.split.new ], [ %indvars.iv.next.3, %52 ]
  %niter = phi i64 [ 0, %.lr.ph.split.new ], [ %niter.next.3, %52 ]
  %53 = load ptr, ptr %48, align 8, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv
  %55 = load i8, ptr %54, align 1, !tbaa !11
  %56 = sext i8 %55 to i64
  %57 = getelementptr inbounds i32, ptr %53, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = trunc i32 %58 to i8
  store i8 %59, ptr %54, align 1, !tbaa !11
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %60 = load ptr, ptr %48, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i64
  %64 = getelementptr inbounds i32, ptr %60, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = trunc i32 %65 to i8
  store i8 %66, ptr %61, align 1, !tbaa !11
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %67 = load ptr, ptr %48, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next.1
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = sext i8 %69 to i64
  %71 = getelementptr inbounds i32, ptr %67, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = trunc i32 %72 to i8
  store i8 %73, ptr %68, align 1, !tbaa !11
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %74 = load ptr, ptr %48, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.next.2
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = sext i8 %76 to i64
  %78 = getelementptr inbounds i32, ptr %74, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = trunc i32 %79 to i8
  store i8 %80, ptr %75, align 1, !tbaa !11
  %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.loopexit41.unr-lcssa, label %52, !llvm.loop !12

._crit_edge.loopexit.unr-lcssa:                   ; preds = %19, %.lr.ph.split.us
  %indvars.iv34.unr = phi i64 [ 0, %.lr.ph.split.us ], [ %indvars.iv.next35.3, %19 ]
  %lcmp.mod45.not = icmp eq i64 %xtraiter43, 0
  br i1 %lcmp.mod45.not, label %._crit_edge, label %.epil.preheader42

.epil.preheader42:                                ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader42
  %indvars.iv34.epil = phi i64 [ %indvars.iv.next35.epil, %.epil.preheader42 ], [ %indvars.iv34.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter44 = phi i64 [ %epil.iter44.next, %.epil.preheader42 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %81 = load ptr, ptr %16, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv34.epil
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = sext i8 %83 to i64
  %85 = getelementptr inbounds i32, ptr %81, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = trunc i32 %86 to i8
  store i8 %87, ptr %82, align 1, !tbaa !11
  %indvars.iv.next35.epil = add nuw nsw i64 %indvars.iv34.epil, 1
  %epil.iter44.next = add i64 %epil.iter44, 1
  %epil.iter44.cmp.not = icmp eq i64 %epil.iter44.next, %xtraiter43
  br i1 %epil.iter44.cmp.not, label %._crit_edge, label %.epil.preheader42, !llvm.loop !14

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

.epil.preheader:                                  ; preds = %._crit_edge.loopexit41.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit41.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit41.unr-lcssa ]
  %88 = load ptr, ptr %48, align 8, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %.0, i64 %indvars.iv.epil
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = sext i8 %90 to i64
  %92 = getelementptr inbounds i32, ptr %88, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = trunc i32 %93 to i8
  store i8 %94, ptr %89, align 1, !tbaa !11
  %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.loopexit41.unr-lcssa, %.epil.preheader, %._crit_edge.loopexit.unr-lcssa, %.epil.preheader42, %.preheader
  ret ptr %.0
}

declare i32 @mp_int_string_len(ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare i32 @mp_int_to_string(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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,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 #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind willreturn memory(none) }
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, !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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !15}


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