; LLVM IR from ryanlayer/giggle :: src (ll)

; 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.uint64_t_ll_bpt_non_leading_data = type { ptr, ptr }
%struct.uint64_t_ll = type { i64, ptr, ptr }
%struct.uint64_t_ll_node = type { i64, ptr }

@.str = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @uint64_t_ll_non_leading_serialize(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %18

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr null, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %3, align 8
  br label %145

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %30

24:                                               ; preds = %18
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.uint64_t_ll, ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %29, ptr %7, align 8, !tbaa !14
  br label %31

30:                                               ; preds = %18
  store i64 0, ptr %7, align 8, !tbaa !14
  br label %31

31:                                               ; preds = %30, %24
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %42

36:                                               ; preds = %31
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds %struct.uint64_t_ll, ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  store i64 %41, ptr %8, align 8, !tbaa !14
  br label %43

42:                                               ; preds = %31
  store i64 0, ptr %8, align 8, !tbaa !14
  br label %43

43:                                               ; preds = %42, %36
  %44 = load i64, ptr %7, align 8, !tbaa !14
  %45 = add i64 2, %44
  %46 = load i64, ptr %8, align 8, !tbaa !14
  %47 = add i64 %45, %46
  %48 = mul i64 %47, 8
  store i64 %48, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %49 = load i64, ptr %7, align 8, !tbaa !14
  %50 = add i64 2, %49
  %51 = load i64, ptr %8, align 8, !tbaa !14
  %52 = add i64 %50, %51
  %53 = call noalias ptr @calloc(i64 noundef %52, i64 noundef 8) #5
  store ptr %53, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %57

56:                                               ; preds = %43
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str) #6
  unreachable

57:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !14
  %58 = load i64, ptr %7, align 8, !tbaa !14
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i64, ptr %11, align 8, !tbaa !14
  %61 = add i64 %60, 1
  store i64 %61, ptr %11, align 8, !tbaa !14
  %62 = getelementptr inbounds i64, ptr %59, i64 %60
  store i64 %58, ptr %62, align 8, !tbaa !14
  %63 = load i64, ptr %8, align 8, !tbaa !14
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i64, ptr %11, align 8, !tbaa !14
  %66 = add i64 %65, 1
  store i64 %66, ptr %11, align 8, !tbaa !14
  %67 = getelementptr inbounds i64, ptr %64, i64 %65
  store i64 %63, ptr %67, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %104

72:                                               ; preds = %57
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.uint64_t_ll, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  store ptr %77, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !14
  br label %78

78:                                               ; preds = %81, %72
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %94

81:                                               ; preds = %78
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !17
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load i64, ptr %11, align 8, !tbaa !14
  %87 = add i64 %86, 1
  store i64 %87, ptr %11, align 8, !tbaa !14
  %88 = getelementptr inbounds i64, ptr %85, i64 %86
  store i64 %84, ptr %88, align 8, !tbaa !14
  %89 = load i64, ptr %12, align 8, !tbaa !14
  %90 = add i64 %89, 1
  store i64 %90, ptr %12, align 8, !tbaa !14
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  store ptr %93, ptr %13, align 8, !tbaa !5
  br label %78, !llvm.loop !20

94:                                               ; preds = %78
  %95 = load i64, ptr %12, align 8, !tbaa !14
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.uint64_t_ll, ptr %98, i32 0, i32 0
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = icmp ne i64 %95, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.1) #6
  unreachable

103:                                              ; preds = %94
  br label %104

104:                                              ; preds = %103, %57
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %141

109:                                              ; preds = %104
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = getelementptr inbounds %struct.uint64_t_ll, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  store ptr %114, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !14
  br label %115

115:                                              ; preds = %118, %109
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %131

118:                                              ; preds = %115
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %119, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !17
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i64, ptr %11, align 8, !tbaa !14
  %124 = add i64 %123, 1
  store i64 %124, ptr %11, align 8, !tbaa !14
  %125 = getelementptr inbounds i64, ptr %122, i64 %123
  store i64 %121, ptr %125, align 8, !tbaa !14
  %126 = load i64, ptr %12, align 8, !tbaa !14
  %127 = add i64 %126, 1
  store i64 %127, ptr %12, align 8, !tbaa !14
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.uint64_t_ll_node, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  store ptr %130, ptr %13, align 8, !tbaa !5
  br label %115, !llvm.loop !22

131:                                              ; preds = %115
  %132 = load i64, ptr %12, align 8, !tbaa !14
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.uint64_t_ll_bpt_non_leading_data, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds %struct.uint64_t_ll, ptr %135, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = icmp ne i64 %132, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %131
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.2) #6
  unreachable

140:                                              ; preds = %131
  br label %141

141:                                              ; preds = %140, %104
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %142, ptr %143, align 8, !tbaa !5
  %144 = load i64, ptr %9, align 8, !tbaa !14
  store i64 %144, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %145

145:                                              ; preds = %141, %16
  %146 = load i64, ptr %3, align 8
  ret i64 %146
}

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #3

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { noreturn "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 }
attributes #5 = { nounwind allocsize(0,1) }
attributes #6 = { noreturn }

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


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

@.str = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i64 @uint64_t_ll_non_leading_serialize(ptr noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %35, label %4

4:                                                ; preds = %2
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %8, label %6

6:                                                ; preds = %4
  %7 = load i64, ptr %5, align 8, !tbaa !10
  br label %8

8:                                                ; preds = %4, %6
  %.046 = phi i64 [ %7, %6 ], [ 0, %4 ]
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %.not54 = icmp eq ptr %10, null
  br i1 %.not54, label %13, label %11

11:                                               ; preds = %8
  %12 = load i64, ptr %10, align 8, !tbaa !10
  br label %13

13:                                               ; preds = %8, %11
  %.047 = phi i64 [ %12, %11 ], [ 0, %8 ]
  %14 = add i64 %.046, 2
  %15 = add i64 %14, %.047
  %16 = shl i64 %15, 3
  %17 = tail call noalias ptr @calloc(i64 noundef %15, i64 noundef 8) #3
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %13
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str) #4
  unreachable

20:                                               ; preds = %13
  store i64 %.046, ptr %17, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %17, i64 8
  store i64 %.047, ptr %21, align 8, !tbaa !14
  br i1 %.not, label %28, label %.preheader62

.preheader62:                                     ; preds = %20
  %.0.in63 = getelementptr inbounds i8, ptr %5, i64 8
  %.064 = load ptr, ptr %.0.in63, align 8, !tbaa !15
  %.not5665 = icmp eq ptr %.064, null
  br i1 %.not5665, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader62, %.lr.ph
  %.068 = phi ptr [ %.0, %.lr.ph ], [ %.064, %.preheader62 ]
  %.04167 = phi i64 [ %25, %.lr.ph ], [ 0, %.preheader62 ]
  %.04366 = phi i64 [ %23, %.lr.ph ], [ 2, %.preheader62 ]
  %22 = load i64, ptr %.068, align 8, !tbaa !16
  %23 = add i64 %.04366, 1
  %24 = getelementptr inbounds i64, ptr %17, i64 %.04366
  store i64 %22, ptr %24, align 8, !tbaa !14
  %25 = add i64 %.04167, 1
  %.0.in = getelementptr inbounds i8, ptr %.068, i64 8
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !15
  %.not56 = icmp eq ptr %.0, null
  br i1 %.not56, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %.preheader62
  %.043.lcssa = phi i64 [ 2, %.preheader62 ], [ %23, %.lr.ph ]
  %.041.lcssa = phi i64 [ 0, %.preheader62 ], [ %25, %.lr.ph ]
  %26 = load i64, ptr %5, align 8, !tbaa !10
  %.not57 = icmp eq i64 %.041.lcssa, %26
  br i1 %.not57, label %28, label %27

27:                                               ; preds = %._crit_edge
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.1) #4
  unreachable

28:                                               ; preds = %._crit_edge, %20
  %.144 = phi i64 [ %.043.lcssa, %._crit_edge ], [ 2, %20 ]
  br i1 %.not54, label %35, label %.preheader

.preheader:                                       ; preds = %28
  %.1.in70 = getelementptr inbounds i8, ptr %10, i64 8
  %.171 = load ptr, ptr %.1.in70, align 8, !tbaa !15
  %.not5972 = icmp eq ptr %.171, null
  br i1 %.not5972, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %.preheader, %.lr.ph76
  %.175 = phi ptr [ %.1, %.lr.ph76 ], [ %.171, %.preheader ]
  %.14274 = phi i64 [ %32, %.lr.ph76 ], [ 0, %.preheader ]
  %.273 = phi i64 [ %30, %.lr.ph76 ], [ %.144, %.preheader ]
  %29 = load i64, ptr %.175, align 8, !tbaa !16
  %30 = add i64 %.273, 1
  %31 = getelementptr inbounds i64, ptr %17, i64 %.273
  store i64 %29, ptr %31, align 8, !tbaa !14
  %32 = add i64 %.14274, 1
  %.1.in = getelementptr inbounds i8, ptr %.175, i64 8
  %.1 = load ptr, ptr %.1.in, align 8, !tbaa !15
  %.not59 = icmp eq ptr %.1, null
  br i1 %.not59, label %._crit_edge77, label %.lr.ph76, !llvm.loop !20

._crit_edge77:                                    ; preds = %.lr.ph76, %.preheader
  %.142.lcssa = phi i64 [ 0, %.preheader ], [ %32, %.lr.ph76 ]
  %33 = load i64, ptr %10, align 8, !tbaa !10
  %.not60 = icmp eq i64 %.142.lcssa, %33
  br i1 %.not60, label %35, label %34

34:                                               ; preds = %._crit_edge77
  tail call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.2) #4
  unreachable

35:                                               ; preds = %28, %._crit_edge77, %2
  %storemerge = phi ptr [ null, %2 ], [ %17, %._crit_edge77 ], [ %17, %28 ]
  %.045 = phi i64 [ 0, %2 ], [ %16, %._crit_edge77 ], [ %16, %28 ]
  store ptr %storemerge, ptr %1, align 8, !tbaa !15
  ret i64 %.045
}

; 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 #1

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #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 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 #2 = { noreturn "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,1) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"uint64_t_ll_bpt_non_leading_data", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"uint64_t_ll", !12, i64 0, !7, i64 8, !7, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"uint64_t_ll_node", !12, i64 0, !7, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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