; LLVM IR from cryptid-org/cryptid-native :: dependencies/gmp/src (mini-gmp)

; 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.mpn_base_info = type { i32, i64 }
%struct.__mpz_struct = type { i32, i32, ptr }

@gmp_allocate_func = external hidden global ptr, align 8
@gmp_free_func = external hidden global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @mpn_copyi(ptr noundef, ptr noundef, i64 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
declare hidden i32 @mpn_base_power_of_two_p(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @mpn_get_str_bits(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @mpn_get_base_info(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @mpn_get_str_other(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @gmp_xalloc_limbs(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @mpz_sizeinbase(ptr noundef, i32 noundef) #0

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

18:                                               ; preds = %3
  store ptr @.str.25, ptr %9, align 8, !tbaa !5
  br label %22

19:                                               ; preds = %3
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = sub nsw i32 0, %20
  store i32 %21, ptr %6, align 4, !tbaa !9
  store ptr @.str.26, ptr %9, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %19, %18
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp sle i32 %23, 1
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 10, ptr %6, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %25, %22
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = icmp sgt i32 %27, 36
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store ptr null, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %140

30:                                               ; preds = %26
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = call i64 @mpz_sizeinbase(ptr noundef %31, i32 noundef %32)
  %34 = add i64 1, %33
  store i64 %34, ptr %12, align 8, !tbaa !11
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %42, label %37

37:                                               ; preds = %30
  %38 = load ptr, ptr @gmp_allocate_func, align 8, !tbaa !5
  %39 = load i64, ptr %12, align 8, !tbaa !11
  %40 = add i64 1, %39
  %41 = call ptr %38(i64 noundef %40)
  store ptr %41, ptr %5, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %37, %30
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.__mpz_struct, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = icmp sge i32 %45, 0
  br i1 %46, label %47, label %51

47:                                               ; preds = %42
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.__mpz_struct, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !13
  br label %56

51:                                               ; preds = %42
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.__mpz_struct, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !13
  %55 = sub nsw i32 0, %54
  br label %56

56:                                               ; preds = %51, %47
  %57 = phi i32 [ %50, %47 ], [ %55, %51 ]
  %58 = sext i32 %57 to i64
  store i64 %58, ptr %10, align 8, !tbaa !11
  %59 = load i64, ptr %10, align 8, !tbaa !11
  %60 = icmp eq i64 %59, 0
  br i1 %60, label %61, label %67

61:                                               ; preds = %56
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 0
  store i8 48, ptr %63, align 1, !tbaa !15
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  store i8 0, ptr %65, align 1, !tbaa !15
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %66, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %140

67:                                               ; preds = %56
  store i64 0, ptr %11, align 8, !tbaa !11
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.__mpz_struct, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !13
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %67
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load i64, ptr %11, align 8, !tbaa !11
  %75 = add i64 %74, 1
  store i64 %75, ptr %11, align 8, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %73, i64 %74
  store i8 45, ptr %76, align 1, !tbaa !15
  br label %77

77:                                               ; preds = %72, %67
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = call i32 @mpn_base_power_of_two_p(i32 noundef %78)
  store i32 %79, ptr %8, align 4, !tbaa !9
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %94

82:                                               ; preds = %77
  %83 = load i64, ptr %11, align 8, !tbaa !11
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i64, ptr %11, align 8, !tbaa !11
  %86 = getelementptr inbounds i8, ptr %84, i64 %85
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.__mpz_struct, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !16
  %91 = load i64, ptr %10, align 8, !tbaa !11
  %92 = call i64 @mpn_get_str_bits(ptr noundef %86, i32 noundef %87, ptr noundef %90, i64 noundef %91)
  %93 = add i64 %83, %92
  store i64 %93, ptr %12, align 8, !tbaa !11
  br label %115

94:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  call void @mpn_get_base_info(ptr noundef %14, i64 noundef %96)
  %97 = load i64, ptr %10, align 8, !tbaa !11
  %98 = call ptr @gmp_xalloc_limbs(i64 noundef %97)
  store ptr %98, ptr %15, align 8, !tbaa !5
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.__mpz_struct, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = load i64, ptr %10, align 8, !tbaa !11
  call void @mpn_copyi(ptr noundef %99, ptr noundef %102, i64 noundef %103)
  %104 = load i64, ptr %11, align 8, !tbaa !11
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load i64, ptr %11, align 8, !tbaa !11
  %107 = getelementptr inbounds i8, ptr %105, i64 %106
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load i64, ptr %10, align 8, !tbaa !11
  %111 = call i64 @mpn_get_str_other(ptr noundef %107, i32 noundef %108, ptr noundef %14, ptr noundef %109, i64 noundef %110)
  %112 = add i64 %104, %111
  store i64 %112, ptr %12, align 8, !tbaa !11
  %113 = load ptr, ptr @gmp_free_func, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  call void %113(ptr noundef %114, i64 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #2
  br label %115

115:                                              ; preds = %94, %82
  br label %116

116:                                              ; preds = %132, %115
  %117 = load i64, ptr %11, align 8, !tbaa !11
  %118 = load i64, ptr %12, align 8, !tbaa !11
  %119 = icmp ult i64 %117, %118
  br i1 %119, label %120, label %135

120:                                              ; preds = %116
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load i64, ptr %11, align 8, !tbaa !11
  %124 = getelementptr inbounds i8, ptr %122, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !15
  %126 = zext i8 %125 to i64
  %127 = getelementptr inbounds i8, ptr %121, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !15
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load i64, ptr %11, align 8, !tbaa !11
  %131 = getelementptr inbounds i8, ptr %129, i64 %130
  store i8 %128, ptr %131, align 1, !tbaa !15
  br label %132

132:                                              ; preds = %120
  %133 = load i64, ptr %11, align 8, !tbaa !11
  %134 = add i64 %133, 1
  store i64 %134, ptr %11, align 8, !tbaa !11
  br label %116, !llvm.loop !17

135:                                              ; preds = %116
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i64, ptr %12, align 8, !tbaa !11
  %138 = getelementptr inbounds i8, ptr %136, i64 %137
  store i8 0, ptr %138, align 1, !tbaa !15
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %139, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %140

140:                                              ; preds = %135, %61, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  %141 = load ptr, ptr %4, align 8
  ret ptr %141
}

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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"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"

%struct.mpn_base_info = type { i32, i64 }

@gmp_allocate_func = external hidden local_unnamed_addr global ptr, align 8
@gmp_free_func = external hidden local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mpn_base_power_of_two_p(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @mpn_get_str_bits(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @mpn_get_base_info(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @mpn_get_str_other(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @gmp_xalloc_limbs(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @mpz_sizeinbase(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @mpz_get_str(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.mpn_base_info, align 8
  %5 = icmp sgt i32 %1, -1
  %.053 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
  %.052 = select i1 %5, ptr @.str.25, ptr @.str.26
  %6 = icmp ult i32 %.053, 2
  %spec.store.select = select i1 %6, i32 10, i32 %.053
  %7 = icmp ugt i32 %spec.store.select, 36
  br i1 %7, label %74, label %8

8:                                                ; preds = %3
  %9 = tail call i64 @mpz_sizeinbase(ptr noundef %2, i32 noundef %spec.store.select)
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %10, label %14

10:                                               ; preds = %8
  %11 = load ptr, ptr @gmp_allocate_func, align 8, !tbaa !5
  %12 = add i64 %9, 2
  %13 = tail call ptr %11(i64 noundef %12) #3
  br label %14

14:                                               ; preds = %10, %8
  %.051 = phi ptr [ %0, %8 ], [ %13, %10 ]
  %15 = getelementptr inbounds i8, ptr %2, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = tail call i32 @llvm.abs.i32(i32 %16, i1 true)
  %18 = zext nneg i32 %17 to i64
  %19 = icmp eq i32 %16, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %14
  store i8 48, ptr %.051, align 1, !tbaa !12
  br label %.sink.split

21:                                               ; preds = %14
  %22 = icmp slt i32 %16, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  store i8 45, ptr %.051, align 1, !tbaa !12
  br label %24

24:                                               ; preds = %23, %21
  %.050 = phi i64 [ 1, %23 ], [ 0, %21 ]
  %25 = tail call i32 @mpn_base_power_of_two_p(i32 noundef %spec.store.select)
  %.not61 = icmp eq i32 %25, 0
  br i1 %.not61, label %31, label %26

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %.051, i64 %.050
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = tail call i64 @mpn_get_str_bits(ptr noundef %27, i32 noundef %25, ptr noundef %29, i64 noundef %18)
  br label %39

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %32 = zext nneg i32 %spec.store.select to i64
  call void @mpn_get_base_info(ptr noundef nonnull %4, i64 noundef %32)
  %33 = call ptr @gmp_xalloc_limbs(i64 noundef %18)
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  call void @mpn_copyi(ptr noundef %33, ptr noundef %35, i64 noundef %18)
  %36 = getelementptr inbounds i8, ptr %.051, i64 %.050
  %37 = call i64 @mpn_get_str_other(ptr noundef %36, i32 noundef %spec.store.select, ptr noundef nonnull %4, ptr noundef %33, i64 noundef %18)
  %38 = load ptr, ptr @gmp_free_func, align 8, !tbaa !5
  call void %38(ptr noundef %33, i64 noundef 0) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  br label %39

39:                                               ; preds = %31, %26
  %.pn = phi i64 [ %30, %26 ], [ %37, %31 ]
  %.049 = add i64 %.pn, %.050
  %40 = icmp ult i64 %.050, %.049
  br i1 %40, label %.lr.ph.preheader, label %.sink.split

.lr.ph.preheader:                                 ; preds = %39
  %41 = add i64 %.pn, -1
  %xtraiter = and i64 %.pn, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.162.prol = phi i64 [ %47, %.lr.ph.prol ], [ %.050, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %42 = getelementptr inbounds i8, ptr %.051, i64 %.162.prol
  %43 = load i8, ptr %42, align 1, !tbaa !12
  %44 = zext i8 %43 to i64
  %45 = getelementptr inbounds i8, ptr %.052, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !12
  store i8 %46, ptr %42, align 1, !tbaa !12
  %47 = add nuw i64 %.162.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !14

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.162.unr = phi i64 [ %.050, %.lr.ph.preheader ], [ %47, %.lr.ph.prol ]
  %48 = icmp ult i64 %41, 3
  br i1 %48, label %.sink.split, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.162 = phi i64 [ %72, %.lr.ph ], [ %.162.unr, %.lr.ph.prol.loopexit ]
  %49 = getelementptr inbounds i8, ptr %.051, i64 %.162
  %50 = load i8, ptr %49, align 1, !tbaa !12
  %51 = zext i8 %50 to i64
  %52 = getelementptr inbounds i8, ptr %.052, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !12
  store i8 %53, ptr %49, align 1, !tbaa !12
  %54 = add nuw i64 %.162, 1
  %55 = getelementptr inbounds i8, ptr %.051, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !12
  %57 = zext i8 %56 to i64
  %58 = getelementptr inbounds i8, ptr %.052, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !12
  store i8 %59, ptr %55, align 1, !tbaa !12
  %60 = add nuw i64 %.162, 2
  %61 = getelementptr inbounds i8, ptr %.051, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !12
  %63 = zext i8 %62 to i64
  %64 = getelementptr inbounds i8, ptr %.052, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !12
  store i8 %65, ptr %61, align 1, !tbaa !12
  %66 = add nuw i64 %.162, 3
  %67 = getelementptr inbounds i8, ptr %.051, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !12
  %69 = zext i8 %68 to i64
  %70 = getelementptr inbounds i8, ptr %.052, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !12
  store i8 %71, ptr %67, align 1, !tbaa !12
  %72 = add nuw i64 %.162, 4
  %exitcond.not.3 = icmp eq i64 %72, %.049
  br i1 %exitcond.not.3, label %.sink.split, label %.lr.ph, !llvm.loop !16

.sink.split:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %39, %20
  %.049.sink = phi i64 [ 1, %20 ], [ %.049, %39 ], [ %.049, %.lr.ph ], [ %.049, %.lr.ph.prol.loopexit ]
  %73 = getelementptr inbounds i8, ptr %.051, i64 %.049.sink
  store i8 0, ptr %73, align 1, !tbaa !12
  br label %74

74:                                               ; preds = %.sink.split, %3
  %.0 = phi ptr [ null, %3 ], [ %.051, %.sink.split ]
  ret ptr %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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