; LLVM IR from marcobambini/gravity :: src/shared (gravity_value)

; 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.gravity_value_t = type { ptr, %union.anon }
%union.anon = type { i64 }
%struct.fiber_s = type { ptr, %struct.gravity_gc_s, ptr, ptr, i32, ptr, i32, i32, ptr, ptr, i8, ptr, %struct.gravity_value_t, i32, i64, double, double }
%struct.gravity_gc_s = type { i8, i8, ptr, ptr, ptr, ptr }
%struct.gravity_callframe_t = type { ptr, i32, i16, ptr, ptr, ptr, i8 }
%struct.gravity_closure_s = type { ptr, %struct.gravity_gc_s, ptr, ptr, ptr, ptr, i32 }
%struct.gravity_function_t = type { ptr, %struct.gravity_gc_s, ptr, ptr, i16, i16, i16, i16, i32, %union.anon.4 }
%union.anon.4 = type { %struct.anon.5 }
%struct.anon.5 = type { %struct.gravity_value_r, %struct.gravity_value_r, %struct.gravity_value_r, i32, ptr, ptr, float, i8 }
%struct.gravity_value_r = type { i64, i64, ptr }

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@gravity_class_null = external global ptr, align 8
@.str.46 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__.gravity_fiber_new = external hidden unnamed_addr constant [90 x i8], align 1
@gravity_class_fiber = external global ptr, align 8

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

declare ptr @gravity_calloc(ptr noundef, i64 noundef, i64 noundef) #1

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

declare void @gravity_vm_transfer(ptr noundef, ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @gravity_fiber_new(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.gravity_value_t, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.gravity_value_t, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %13 = call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef 168)
  store ptr %13, ptr %9, align 8, !tbaa !5
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %4
  br label %18

17:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.1, i32 noundef 1302, ptr noundef @__PRETTY_FUNCTION__.gravity_fiber_new) #6
  unreachable

18:                                               ; preds = %16
  %19 = load ptr, ptr @gravity_class_fiber, align 8, !tbaa !5
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.fiber_s, ptr %20, i32 0, i32 0
  store ptr %19, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.fiber_s, ptr %22, i32 0, i32 11
  store ptr null, ptr %23, align 8, !tbaa !18
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.fiber_s, ptr %24, i32 0, i32 12
  %26 = getelementptr inbounds %struct.gravity_value_t, ptr %10, i32 0, i32 0
  %27 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  store ptr %27, ptr %26, align 8, !tbaa !19
  %28 = getelementptr inbounds %struct.gravity_value_t, ptr %10, i32 0, i32 1
  store i64 0, ptr %28, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !21
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp ult i32 %29, 256
  br i1 %30, label %31, label %32

31:                                               ; preds = %18
  store i32 256, ptr %7, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %31, %18
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = mul i64 16, %34
  %36 = call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef %35)
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.fiber_s, ptr %37, i32 0, i32 2
  store ptr %36, ptr %38, align 8, !tbaa !22
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.fiber_s, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.fiber_s, ptr %42, i32 0, i32 3
  store ptr %41, ptr %43, align 8, !tbaa !23
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.fiber_s, ptr %45, i32 0, i32 4
  store i32 %44, ptr %46, align 8, !tbaa !24
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = icmp ult i32 %47, 32
  br i1 %48, label %49, label %50

49:                                               ; preds = %32
  store i32 32, ptr %8, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %49, %32
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = mul i64 48, %52
  %54 = call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef %53)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.fiber_s, ptr %55, i32 0, i32 5
  store ptr %54, ptr %56, align 8, !tbaa !25
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.fiber_s, ptr %58, i32 0, i32 7
  store i32 %57, ptr %59, align 4, !tbaa !26
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.fiber_s, ptr %60, i32 0, i32 6
  store i32 1, ptr %61, align 8, !tbaa !27
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.fiber_s, ptr %62, i32 0, i32 8
  store ptr null, ptr %63, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.fiber_s, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !25
  %67 = getelementptr inbounds %struct.gravity_callframe_t, ptr %66, i64 0
  store ptr %67, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %92

70:                                               ; preds = %50
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.gravity_callframe_t, ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !29
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.gravity_closure_s, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !32
  %77 = getelementptr inbounds %struct.gravity_function_t, ptr %76, i32 0, i32 8
  %78 = load i32, ptr %77, align 8, !tbaa !34
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %87

80:                                               ; preds = %70
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.gravity_closure_s, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %84 = getelementptr inbounds %struct.gravity_function_t, ptr %83, i32 0, i32 9
  %85 = getelementptr inbounds %struct.anon.5, ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  br label %88

87:                                               ; preds = %70
  br label %88

88:                                               ; preds = %87, %80
  %89 = phi ptr [ %86, %80 ], [ null, %87 ]
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.gravity_callframe_t, ptr %90, i32 0, i32 0
  store ptr %89, ptr %91, align 8, !tbaa !36
  br label %92

92:                                               ; preds = %88, %50
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.gravity_callframe_t, ptr %93, i32 0, i32 1
  store i32 0, ptr %94, align 8, !tbaa !37
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.fiber_s, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.gravity_callframe_t, ptr %98, i32 0, i32 5
  store ptr %97, ptr %99, align 8, !tbaa !38
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.gravity_callframe_t, ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %101, align 8, !tbaa !38
  %103 = getelementptr inbounds %struct.gravity_value_t, ptr %102, i64 0
  %104 = getelementptr inbounds %struct.gravity_value_t, ptr %12, i32 0, i32 0
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.fiber_s, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  store ptr %107, ptr %104, align 8, !tbaa !19
  %108 = getelementptr inbounds %struct.gravity_value_t, ptr %12, i32 0, i32 1
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %109, ptr %108, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !21
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %115

112:                                              ; preds = %92
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  call void @gravity_vm_transfer(ptr noundef %113, ptr noundef %114)
  br label %115

115:                                              ; preds = %112, %92
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret ptr %116
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"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, !6, i64 0}
!12 = !{!"fiber_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112, !15, i64 120, !10, i64 136, !16, i64 144, !17, i64 152, !17, i64 160}
!13 = !{!"gravity_gc_s", !14, i64 0, !14, i64 1, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!"", !6, i64 0, !7, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!12, !6, i64 112}
!19 = !{!15, !6, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 8, !5, i64 8, i64 8, !20}
!22 = !{!12, !6, i64 48}
!23 = !{!12, !6, i64 56}
!24 = !{!12, !10, i64 64}
!25 = !{!12, !6, i64 72}
!26 = !{!12, !10, i64 84}
!27 = !{!12, !10, i64 80}
!28 = !{!12, !6, i64 88}
!29 = !{!30, !6, i64 24}
!30 = !{!"", !6, i64 0, !10, i64 8, !31, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !14, i64 40}
!31 = !{!"short", !7, i64 0}
!32 = !{!33, !6, i64 56}
!33 = !{!"gravity_closure_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80}
!34 = !{!35, !10, i64 72}
!35 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !31, i64 64, !31, i64 66, !31, i64 68, !31, i64 70, !10, i64 72, !7, i64 80}
!36 = !{!30, !6, i64 0}
!37 = !{!30, !10, i64 8}
!38 = !{!30, !6, i64 32}


; 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 [81 x i8], align 1
@gravity_class_null = external local_unnamed_addr global ptr, align 8
@.str.46 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__.gravity_fiber_new = external hidden unnamed_addr constant [90 x i8], align 1
@gravity_class_fiber = external local_unnamed_addr global ptr, align 8

declare ptr @gravity_calloc(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

declare void @gravity_vm_transfer(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @gravity_fiber_new(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = tail call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef 168) #4
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.1, i32 noundef 1302, ptr noundef nonnull @__PRETTY_FUNCTION__.gravity_fiber_new) #5
  unreachable

7:                                                ; preds = %4
  %8 = load ptr, ptr @gravity_class_fiber, align 8, !tbaa !5
  store ptr %8, ptr %5, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr null, ptr %9, align 8, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %5, i64 120
  %11 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  store ptr %11, ptr %10, align 8, !tbaa !5
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 128
  store i64 0, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !18
  %spec.store.select = tail call i32 @llvm.umax.i32(i32 %2, i32 256)
  %12 = zext i32 %spec.store.select to i64
  %13 = shl nuw nsw i64 %12, 4
  %14 = tail call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef %13) #4
  %15 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %14, ptr %15, align 8, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %14, ptr %16, align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %5, i64 64
  store i32 %spec.store.select, ptr %17, align 8, !tbaa !21
  %spec.store.select1 = tail call i32 @llvm.umax.i32(i32 %3, i32 32)
  %18 = zext i32 %spec.store.select1 to i64
  %19 = mul nuw nsw i64 %18, 48
  %20 = tail call ptr @gravity_calloc(ptr noundef null, i64 noundef 1, i64 noundef %19) #4
  %21 = getelementptr inbounds i8, ptr %5, i64 72
  store ptr %20, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %5, i64 84
  store i32 %spec.store.select1, ptr %22, align 4, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %5, i64 80
  store i32 1, ptr %23, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %5, i64 88
  store ptr null, ptr %24, align 8, !tbaa !25
  %.not39 = icmp eq ptr %1, null
  br i1 %.not39, label %37, label %25

25:                                               ; preds = %7
  %26 = getelementptr inbounds i8, ptr %20, i64 24
  store ptr %1, ptr %26, align 8, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %1, i64 56
  %28 = load ptr, ptr %27, align 8, !tbaa !29
  %29 = getelementptr inbounds i8, ptr %28, i64 72
  %30 = load i32, ptr %29, align 8, !tbaa !31
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %25
  %33 = getelementptr inbounds i8, ptr %28, i64 160
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  br label %35

35:                                               ; preds = %25, %32
  %36 = phi ptr [ %34, %32 ], [ null, %25 ]
  store ptr %36, ptr %20, align 8, !tbaa !33
  br label %37

37:                                               ; preds = %35, %7
  %38 = getelementptr inbounds i8, ptr %20, i64 8
  store i32 0, ptr %38, align 8, !tbaa !34
  %39 = load ptr, ptr %15, align 8, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr %39, ptr %40, align 8, !tbaa !35
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %41, ptr %39, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 8
  store ptr %5, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !18
  %.not40 = icmp eq ptr %0, null
  br i1 %.not40, label %43, label %42

42:                                               ; preds = %37
  tail call void @gravity_vm_transfer(ptr noundef nonnull %0, ptr noundef nonnull %5) #4
  br label %43

43:                                               ; preds = %42, %37
  ret ptr %5
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

attributes #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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"fiber_s", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !13, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !6, i64 88, !6, i64 96, !12, i64 104, !6, i64 112, !14, i64 120, !13, i64 136, !15, i64 144, !16, i64 152, !16, i64 160}
!11 = !{!"gravity_gc_s", !12, i64 0, !12, i64 1, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !6, i64 0, !7, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!10, !6, i64 112}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !6, i64 48}
!20 = !{!10, !6, i64 56}
!21 = !{!10, !13, i64 64}
!22 = !{!10, !6, i64 72}
!23 = !{!10, !13, i64 84}
!24 = !{!10, !13, i64 80}
!25 = !{!10, !6, i64 88}
!26 = !{!27, !6, i64 24}
!27 = !{!"", !6, i64 0, !13, i64 8, !28, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40}
!28 = !{!"short", !7, i64 0}
!29 = !{!30, !6, i64 56}
!30 = !{!"gravity_closure_s", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80}
!31 = !{!32, !13, i64 72}
!32 = !{!"", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !28, i64 64, !28, i64 66, !28, i64 68, !28, i64 70, !13, i64 72, !7, i64 80}
!33 = !{!27, !6, i64 0}
!34 = !{!27, !13, i64 8}
!35 = !{!27, !6, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass