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

; 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.leaf_data = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr }

@LEAF_POINTERS_SIZE = external dso_local global i64, align 8
@LEAF_NUMS_SIZE = external dso_local global i64, align 8
@LEAF_LEADING_STARTS_ENDS_SIZE = external dso_local global i64, align 8
@ORDER = external dso_local global i32, align 4
@.str.1 = external hidden unnamed_addr constant [40 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: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #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 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 @leaf_data_deserialize(ptr noundef %0, i64 noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %9, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %10 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 72) #6
  store ptr %10, ptr %8, align 8, !tbaa !5
  %11 = load ptr, ptr %8, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %3
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.1) #7
  unreachable

14:                                               ; preds = %3
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.leaf_data, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load i32, ptr @ORDER, align 4, !tbaa !11
  %19 = mul i32 2, %18
  %20 = zext i32 %19 to i64
  %21 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %22 = mul i64 %20, %21
  %23 = getelementptr inbounds i8, ptr %17, i64 %22
  %24 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  %25 = mul i64 0, %24
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 1 %26, i64 %27, i1 false)
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.leaf_data, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i32, ptr @ORDER, align 4, !tbaa !11
  %32 = mul i32 2, %31
  %33 = zext i32 %32 to i64
  %34 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %35 = mul i64 %33, %34
  %36 = getelementptr inbounds i8, ptr %30, i64 %35
  %37 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  %38 = mul i64 1, %37
  %39 = getelementptr inbounds i8, ptr %36, i64 %38
  %40 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 1 %39, i64 %40, i1 false)
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.leaf_data, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i32, ptr @ORDER, align 4, !tbaa !11
  %45 = mul i32 2, %44
  %46 = zext i32 %45 to i64
  %47 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %48 = mul i64 %46, %47
  %49 = getelementptr inbounds i8, ptr %43, i64 %48
  %50 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  %51 = mul i64 2, %50
  %52 = getelementptr inbounds i8, ptr %49, i64 %51
  %53 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 1 %52, i64 %53, i1 false)
  %54 = load i32, ptr @ORDER, align 4, !tbaa !11
  %55 = zext i32 %54 to i64
  %56 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %57 = call noalias ptr @calloc(i64 noundef %55, i64 noundef %56) #6
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.leaf_data, ptr %58, i32 0, i32 3
  store ptr %57, ptr %59, align 8, !tbaa !13
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.leaf_data, ptr %60, i32 0, i32 3
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %65

64:                                               ; preds = %14
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.1) #7
  unreachable

65:                                               ; preds = %14
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.leaf_data, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr @ORDER, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %73 = mul i64 %71, %72
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 1 %69, i64 %73, i1 false)
  %74 = load i32, ptr @ORDER, align 4, !tbaa !11
  %75 = zext i32 %74 to i64
  %76 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %77 = call noalias ptr @calloc(i64 noundef %75, i64 noundef %76) #6
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.leaf_data, ptr %78, i32 0, i32 4
  store ptr %77, ptr %79, align 8, !tbaa !15
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.leaf_data, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = icmp eq ptr %82, null
  br i1 %83, label %84, label %85

84:                                               ; preds = %65
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.1) #7
  unreachable

85:                                               ; preds = %65
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.leaf_data, ptr %86, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !15
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load i32, ptr @ORDER, align 4, !tbaa !11
  %91 = zext i32 %90 to i64
  %92 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %93 = mul i64 %91, %92
  %94 = getelementptr inbounds i8, ptr %89, i64 %93
  %95 = load i32, ptr @ORDER, align 4, !tbaa !11
  %96 = zext i32 %95 to i64
  %97 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %98 = mul i64 %96, %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 1 %94, i64 %98, i1 false)
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.leaf_data, ptr %99, i32 0, i32 0
  %101 = load i64, ptr %100, align 8, !tbaa !16
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.leaf_data, ptr %102, i32 0, i32 1
  %104 = load i64, ptr %103, align 8, !tbaa !17
  %105 = add i64 %101, %104
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.leaf_data, ptr %106, i32 0, i32 2
  %108 = load i64, ptr %107, align 8, !tbaa !18
  %109 = add i64 %105, %108
  %110 = load i64, ptr @LEAF_LEADING_STARTS_ENDS_SIZE, align 8, !tbaa !9
  %111 = call noalias ptr @calloc(i64 noundef %109, i64 noundef %110) #6
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.leaf_data, ptr %112, i32 0, i32 8
  store ptr %111, ptr %113, align 8, !tbaa !19
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.leaf_data, ptr %114, i32 0, i32 8
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = icmp eq ptr %116, null
  br i1 %117, label %118, label %119

118:                                              ; preds = %85
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.1) #7
  unreachable

119:                                              ; preds = %85
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.leaf_data, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.leaf_data, ptr %123, i32 0, i32 5
  store ptr %122, ptr %124, align 8, !tbaa !20
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.leaf_data, ptr %125, i32 0, i32 8
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.leaf_data, ptr %128, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !16
  %131 = getelementptr inbounds i64, ptr %127, i64 %130
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.leaf_data, ptr %132, i32 0, i32 6
  store ptr %131, ptr %133, align 8, !tbaa !21
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.leaf_data, ptr %134, i32 0, i32 8
  %136 = load ptr, ptr %135, align 8, !tbaa !19
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.leaf_data, ptr %137, i32 0, i32 0
  %139 = load i64, ptr %138, align 8, !tbaa !16
  %140 = getelementptr inbounds i64, ptr %136, i64 %139
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.leaf_data, ptr %141, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !17
  %144 = getelementptr inbounds i64, ptr %140, i64 %143
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.leaf_data, ptr %145, i32 0, i32 7
  store ptr %144, ptr %146, align 8, !tbaa !22
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.leaf_data, ptr %147, i32 0, i32 8
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load i32, ptr @ORDER, align 4, !tbaa !11
  %152 = mul i32 2, %151
  %153 = zext i32 %152 to i64
  %154 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %155 = mul i64 %153, %154
  %156 = getelementptr inbounds i8, ptr %150, i64 %155
  %157 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  %158 = mul i64 3, %157
  %159 = getelementptr inbounds i8, ptr %156, i64 %158
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.leaf_data, ptr %160, i32 0, i32 0
  %162 = load i64, ptr %161, align 8, !tbaa !16
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.leaf_data, ptr %163, i32 0, i32 1
  %165 = load i64, ptr %164, align 8, !tbaa !17
  %166 = add i64 %162, %165
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.leaf_data, ptr %167, i32 0, i32 2
  %169 = load i64, ptr %168, align 8, !tbaa !18
  %170 = add i64 %166, %169
  %171 = load i64, ptr @LEAF_LEADING_STARTS_ENDS_SIZE, align 8, !tbaa !9
  %172 = mul i64 %170, %171
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %149, ptr align 1 %159, i64 %172, i1 false)
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %173, ptr %174, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i64 72
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"leaf_data", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!15 = !{!14, !6, i64 32}
!16 = !{!14, !10, i64 0}
!17 = !{!14, !10, i64 8}
!18 = !{!14, !10, i64 16}
!19 = !{!14, !6, i64 64}
!20 = !{!14, !6, i64 40}
!21 = !{!14, !6, i64 48}
!22 = !{!14, !6, i64 56}


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

@LEAF_POINTERS_SIZE = external dso_local local_unnamed_addr global i64, align 8
@LEAF_NUMS_SIZE = external dso_local local_unnamed_addr global i64, align 8
@LEAF_LEADING_STARTS_ENDS_SIZE = external dso_local local_unnamed_addr global i64, align 8
@ORDER = external dso_local local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i64 @leaf_data_deserialize(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = tail call noalias dereferenceable_or_null(72) ptr @calloc(i64 noundef 1, i64 noundef 72) #4
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %7

6:                                                ; preds = %3
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.1) #5
  unreachable

7:                                                ; preds = %3
  %8 = load i32, ptr @ORDER, align 4, !tbaa !5
  %9 = shl i32 %8, 1
  %10 = zext i32 %9 to i64
  %11 = load i64, ptr @LEAF_POINTERS_SIZE, align 8, !tbaa !9
  %12 = mul i64 %11, %10
  %13 = getelementptr inbounds i8, ptr %0, i64 %12
  %14 = load i64, ptr @LEAF_NUMS_SIZE, align 8, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %4, ptr align 1 %13, i64 %14, i1 false)
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = getelementptr inbounds i8, ptr %13, i64 %14
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %15, ptr align 1 %16, i64 %14, i1 false)
  %17 = getelementptr inbounds i8, ptr %4, i64 16
  %18 = shl i64 %14, 1
  %19 = getelementptr inbounds i8, ptr %13, i64 %18
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %17, ptr align 1 %19, i64 %14, i1 false)
  %20 = zext i32 %8 to i64
  %21 = tail call noalias ptr @calloc(i64 noundef %20, i64 noundef %11) #4
  %22 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %21, ptr %22, align 8, !tbaa !11
  %23 = icmp eq ptr %21, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %7
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.1) #5
  unreachable

25:                                               ; preds = %7
  %26 = mul i64 %11, %20
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %21, ptr align 1 %0, i64 %26, i1 false)
  %27 = tail call noalias ptr @calloc(i64 noundef %20, i64 noundef %11) #4
  %28 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %27, ptr %28, align 8, !tbaa !14
  %29 = icmp eq ptr %27, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %25
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.1) #5
  unreachable

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %0, i64 %26
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %27, ptr align 1 %32, i64 %26, i1 false)
  %33 = load i64, ptr %4, align 8, !tbaa !15
  %34 = load i64, ptr %15, align 8, !tbaa !16
  %35 = add i64 %34, %33
  %36 = load i64, ptr %17, align 8, !tbaa !17
  %37 = add i64 %35, %36
  %38 = load i64, ptr @LEAF_LEADING_STARTS_ENDS_SIZE, align 8, !tbaa !9
  %39 = tail call noalias ptr @calloc(i64 noundef %37, i64 noundef %38) #4
  %40 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr %39, ptr %40, align 8, !tbaa !18
  %41 = icmp eq ptr %39, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %31
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.1) #5
  unreachable

43:                                               ; preds = %31
  %44 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %39, ptr %44, align 8, !tbaa !19
  %45 = getelementptr inbounds i64, ptr %39, i64 %33
  %46 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr %45, ptr %46, align 8, !tbaa !20
  %47 = getelementptr inbounds i64, ptr %45, i64 %34
  %48 = getelementptr inbounds i8, ptr %4, i64 56
  store ptr %47, ptr %48, align 8, !tbaa !21
  %49 = mul i64 %14, 3
  %50 = getelementptr inbounds i8, ptr %13, i64 %49
  %51 = mul i64 %37, %38
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %39, ptr align 1 %50, i64 %51, i1 false)
  store ptr %4, ptr %2, align 8, !tbaa !22
  ret i64 72
}

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree 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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0,1) }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"leaf_data", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !13, i64 32}
!15 = !{!12, !10, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !13, i64 64}
!19 = !{!12, !13, i64 40}
!20 = !{!12, !13, i64 48}
!21 = !{!12, !13, i64 56}
!22 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass