; LLVM IR from ponylang/ponyc :: src/libponyrt/gc (serialise)

; 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.pony_ctx_t = type { ptr, ptr, ptr, ptr, ptr, %struct.actormap_t, ptr, i64, %struct.ponyint_serialise_t, ptr, ptr, ptr }
%struct.actormap_t = type { %struct.hashmap_t }
%struct.hashmap_t = type { i64, i64, ptr, ptr }
%struct.ponyint_serialise_t = type { %struct.hashmap_t }
%struct.ponyint_array_t = type { ptr, i64, i64, ptr }
%struct.serialise_t = type { i64, i64, ptr, i32, i8 }
%struct._pony_type_t = type { i32, i32, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i8, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.pony_serialise = external hidden unnamed_addr constant [15 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
declare dso_local ptr @ponyint_serialise_next(ptr noundef, ptr noundef) #1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @ponyint_serialise_object(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @ponyint_serialise_actor(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @serialise_cleanup(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @pony_serialise(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.pony_ctx_t, ptr %15, i32 0, i32 4
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %6
  br label %21

20:                                               ; preds = %6
  call void @ponyint_assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i64 noundef 222, ptr noundef @__func__.pony_serialise)
  br label %21

21:                                               ; preds = %20, %19
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.pony_ctx_t, ptr %22, i32 0, i32 2
  store ptr @ponyint_serialise_object, ptr %23, align 8, !tbaa !15
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.pony_ctx_t, ptr %24, i32 0, i32 3
  store ptr @ponyint_serialise_actor, ptr %25, align 8, !tbaa !16
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.pony_ctx_t, ptr %26, i32 0, i32 7
  store i64 0, ptr %27, align 8, !tbaa !17
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.pony_ctx_t, ptr %29, i32 0, i32 9
  store ptr %28, ptr %30, align 8, !tbaa !18
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.pony_ctx_t, ptr %32, i32 0, i32 11
  store ptr %31, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %40

36:                                               ; preds = %21
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  call void @pony_traceknown(ptr noundef %37, ptr noundef %38, ptr noundef %39, i32 noundef 0)
  br label %43

40:                                               ; preds = %21
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @pony_traceunknown(ptr noundef %41, ptr noundef %42, i32 noundef 0)
  br label %43

43:                                               ; preds = %40, %36
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  call void @ponyint_gc_handlestack(ptr noundef %44)
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.pony_ctx_t, ptr %45, i32 0, i32 7
  %47 = load i64, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ponyint_array_t, ptr %48, i32 0, i32 1
  store i64 %47, ptr %49, align 8, !tbaa !20
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ponyint_array_t, ptr %50, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !20
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ponyint_array_t, ptr %53, i32 0, i32 2
  store i64 %52, ptr %54, align 8, !tbaa !22
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ponyint_array_t, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !20
  %60 = call ptr %55(ptr noundef %56, i64 noundef %59)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ponyint_array_t, ptr %61, i32 0, i32 3
  store ptr %60, ptr %62, align 8, !tbaa !23
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ponyint_array_t, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ponyint_array_t, ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !20
  call void @llvm.memset.p0.i64(ptr align 1 %65, i8 0, i64 %68, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 -1, ptr %13, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  br label %69

69:                                               ; preds = %111, %43
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.pony_ctx_t, ptr %70, i32 0, i32 8
  %72 = call ptr @ponyint_serialise_next(ptr noundef %71, ptr noundef %13)
  store ptr %72, ptr %14, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %112

74:                                               ; preds = %69
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.serialise_t, ptr %75, i32 0, i32 4
  %77 = load i8, ptr %76, align 4, !tbaa !25, !range !29, !noundef !30
  %78 = trunc i8 %77 to i1
  br i1 %78, label %111, label %79

79:                                               ; preds = %74
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.serialise_t, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !31
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %111

84:                                               ; preds = %79
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.serialise_t, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !31
  %88 = getelementptr inbounds %struct._pony_type_t, ptr %87, i32 0, i32 8
  %89 = load ptr, ptr %88, align 8, !tbaa !32
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %111

91:                                               ; preds = %84
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.serialise_t, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !31
  %95 = getelementptr inbounds %struct._pony_type_t, ptr %94, i32 0, i32 8
  %96 = load ptr, ptr %95, align 8, !tbaa !32
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.serialise_t, ptr %98, i32 0, i32 0
  %100 = load i64, ptr %99, align 8, !tbaa !34
  %101 = inttoptr i64 %100 to ptr
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ponyint_array_t, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.serialise_t, ptr %105, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !35
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.serialise_t, ptr %108, i32 0, i32 3
  %110 = load i32, ptr %109, align 8, !tbaa !36
  call void %96(ptr noundef %97, ptr noundef %101, ptr noundef %104, i64 noundef %107, i32 noundef %110)
  br label %111

111:                                              ; preds = %91, %84, %79, %74
  br label %69, !llvm.loop !37

112:                                              ; preds = %69
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  call void @serialise_cleanup(ptr noundef %113)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

declare void @pony_traceknown(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare void @pony_traceunknown(ptr noundef, ptr noundef, i32 noundef) #2

declare void @ponyint_gc_handlestack(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !6, i64 32}
!10 = !{!"pony_ctx_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 72, !13, i64 80, !14, i64 88, !6, i64 120, !6, i64 128, !6, i64 136}
!11 = !{!"actormap_t", !12, i64 0}
!12 = !{!"hashmap_t", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"long", !7, i64 0}
!14 = !{!"ponyint_serialise_t", !12, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !13, i64 80}
!18 = !{!10, !6, i64 120}
!19 = !{!10, !6, i64 136}
!20 = !{!21, !13, i64 8}
!21 = !{!"", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24}
!22 = !{!21, !13, i64 16}
!23 = !{!21, !6, i64 24}
!24 = !{!13, !13, i64 0}
!25 = !{!26, !28, i64 28}
!26 = !{!"serialise_t", !13, i64 0, !13, i64 8, !6, i64 16, !27, i64 24, !28, i64 28}
!27 = !{!"int", !7, i64 0}
!28 = !{!"_Bool", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!26, !6, i64 16}
!32 = !{!33, !6, i64 48}
!33 = !{!"_pony_type_t", !27, i64 0, !27, i64 4, !13, i64 8, !27, i64 16, !27, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !27, i64 96, !28, i64 100, !6, i64 104, !6, i64 112, !6, i64 120}
!34 = !{!26, !13, i64 0}
!35 = !{!26, !13, i64 8}
!36 = !{!26, !27, i64 24}
!37 = distinct !{!37, !38}
!38 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.pony_serialise = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ponyint_serialise_next(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @ponyint_serialise_object(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @ponyint_serialise_actor(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @serialise_cleanup(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @pony_serialise(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca i64, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %6
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i64 noundef 222, ptr noundef nonnull @__func__.pony_serialise) #4
  br label %12

12:                                               ; preds = %6, %11
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr @ponyint_serialise_object, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr @ponyint_serialise_actor, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 0, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %4, ptr %16, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %5, ptr %17, align 8, !tbaa !18
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %19, label %18

18:                                               ; preds = %12
  tail call void @pony_traceknown(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef 0) #4
  br label %20

19:                                               ; preds = %12
  tail call void @pony_traceunknown(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 0) #4
  br label %20

20:                                               ; preds = %19, %18
  tail call void @ponyint_gc_handlestack(ptr noundef nonnull %0) #4
  %21 = load i64, ptr %15, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %21, ptr %22, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %3, i64 16
  store i64 %21, ptr %23, align 8, !tbaa !21
  %24 = tail call ptr %4(ptr noundef nonnull %0, i64 noundef %21) #4
  %25 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %24, ptr %25, align 8, !tbaa !22
  %26 = load i64, ptr %22, align 8, !tbaa !19
  tail call void @llvm.memset.p0.i64(ptr align 1 %24, i8 0, i64 %26, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 -1, ptr %7, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %0, i64 88
  %28 = call ptr @ponyint_serialise_next(ptr noundef nonnull %27, ptr noundef nonnull %7)
  %.not3942 = icmp eq ptr %28, null
  br i1 %.not3942, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %20, %47
  %29 = phi ptr [ %48, %47 ], [ %28, %20 ]
  %30 = getelementptr inbounds i8, ptr %29, i64 28
  %31 = load i8, ptr %30, align 4, !tbaa !24, !range !28, !noundef !29
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %47, label %33

33:                                               ; preds = %.lr.ph
  %34 = getelementptr inbounds i8, ptr %29, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !30
  %.not40 = icmp eq ptr %35, null
  br i1 %.not40, label %47, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %35, i64 48
  %38 = load ptr, ptr %37, align 8, !tbaa !31
  %.not41 = icmp eq ptr %38, null
  br i1 %.not41, label %47, label %39

39:                                               ; preds = %36
  %40 = load i64, ptr %29, align 8, !tbaa !33
  %41 = inttoptr i64 %40 to ptr
  %42 = load ptr, ptr %25, align 8, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %29, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !34
  %45 = getelementptr inbounds i8, ptr %29, i64 24
  %46 = load i32, ptr %45, align 8, !tbaa !35
  call void %38(ptr noundef %0, ptr noundef %41, ptr noundef %42, i64 noundef %44, i32 noundef %46) #4
  br label %47

47:                                               ; preds = %39, %36, %33, %.lr.ph
  %48 = call ptr @ponyint_serialise_next(ptr noundef nonnull %27, ptr noundef nonnull %7)
  %.not39 = icmp eq ptr %48, null
  br i1 %.not39, label %._crit_edge, label %.lr.ph, !llvm.loop !36

._crit_edge:                                      ; preds = %47, %20
  call void @serialise_cleanup(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret void
}

declare void @pony_traceknown(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @pony_traceunknown(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @ponyint_gc_handlestack(ptr noundef) local_unnamed_addr #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

attributes #0 = { mustprogress 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 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 32}
!6 = !{!"pony_ctx_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 72, !12, i64 80, !13, i64 88, !7, i64 120, !7, i64 128, !7, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"actormap_t", !11, i64 0}
!11 = !{!"hashmap_t", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 24}
!12 = !{!"long", !8, i64 0}
!13 = !{!"ponyint_serialise_t", !11, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !12, i64 80}
!17 = !{!6, !7, i64 120}
!18 = !{!6, !7, i64 136}
!19 = !{!20, !12, i64 8}
!20 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !7, i64 24}
!21 = !{!20, !12, i64 16}
!22 = !{!20, !7, i64 24}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !27, i64 28}
!25 = !{!"serialise_t", !12, i64 0, !12, i64 8, !7, i64 16, !26, i64 24, !27, i64 28}
!26 = !{!"int", !8, i64 0}
!27 = !{!"_Bool", !8, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!25, !7, i64 16}
!31 = !{!32, !7, i64 48}
!32 = !{!"_pony_type_t", !26, i64 0, !26, i64 4, !12, i64 8, !26, i64 16, !26, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !26, i64 96, !27, i64 100, !7, i64 104, !7, i64 112, !7, i64 120}
!33 = !{!25, !12, i64 0}
!34 = !{!25, !12, i64 8}
!35 = !{!25, !26, i64 24}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


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