; LLVM IR from marcobambini/gravity :: src/runtime (gravity_core)

; 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_string_t = type { ptr, %struct.gravity_gc_s, ptr, i32, i32, i32 }
%struct.gravity_gc_s = type { i8, i8, ptr, ptr, ptr, ptr }
%struct.gravity_value_t = type { ptr, %union.anon }
%union.anon = type { i64 }
%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.0 }
%union.anon.0 = type { %struct.anon }
%struct.anon = 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 }
%struct.anon.1 = type { i16, [2 x ptr] }
%struct.gravity_class_s = type { ptr, %struct.gravity_gc_s, ptr, ptr, i8, i8, i8, i8, ptr, ptr, ptr, ptr, i32, ptr }

@gravity_class_string = external dso_local global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__.computed_property_free = external hidden unnamed_addr constant [68 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 void @computed_property_free(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %struct.gravity_string_t, align 8
  %8 = alloca %struct.gravity_value_t, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, 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 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #6
  %15 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 0
  %16 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %16, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 40, i1 false)
  %18 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 2
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %19, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 3
  store i32 0, ptr %20, align 8, !tbaa !16
  %21 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i64 @strlen(ptr noundef %22) #7
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %21, align 4, !tbaa !17
  %25 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 5
  store i32 0, ptr %25, align 8, !tbaa !18
  %26 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 4
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %30 = call i32 @gravity_hash_compute_buffer(ptr noundef %27, i32 noundef %29)
  %31 = getelementptr inbounds %struct.gravity_string_t, ptr %7, i32 0, i32 3
  store i32 %30, ptr %31, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %32 = getelementptr inbounds %struct.gravity_value_t, ptr %8, i32 0, i32 0
  %33 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %33, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds %struct.gravity_value_t, ptr %8, i32 0, i32 1
  store ptr %7, ptr %34, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %39 = load i64, ptr %38, align 8
  %40 = call ptr @gravity_class_lookup_closure(ptr noundef %35, ptr %37, i64 %39)
  store ptr %40, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %3
  br label %45

44:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.13, i32 noundef 3216, ptr noundef @__PRETTY_FUNCTION__.computed_property_free) #8
  unreachable

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.gravity_closure_s, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = getelementptr inbounds %struct.gravity_function_t, ptr %48, i32 0, i32 9
  %50 = getelementptr inbounds %struct.anon.1, ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds [2 x ptr], ptr %50, i64 0, i64 0
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  store ptr %52, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.gravity_closure_s, ptr %53, i32 0, i32 3
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds %struct.gravity_function_t, ptr %55, i32 0, i32 9
  %57 = getelementptr inbounds %struct.anon.1, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds [2 x ptr], ptr %57, i64 0, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.gravity_closure_s, ptr %60, i32 0, i32 3
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds %struct.gravity_function_t, ptr %62, i32 0, i32 9
  %64 = getelementptr inbounds %struct.anon.1, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [2 x ptr], ptr %64, i64 0, i64 1
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = icmp ne ptr %59, %66
  br i1 %67, label %68, label %76

68:                                               ; preds = %45
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.gravity_closure_s, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = getelementptr inbounds %struct.gravity_function_t, ptr %71, i32 0, i32 9
  %73 = getelementptr inbounds %struct.anon.1, ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds [2 x ptr], ptr %73, i64 0, i64 1
  %75 = load ptr, ptr %74, align 8, !tbaa !21
  br label %77

76:                                               ; preds = %45
  br label %77

77:                                               ; preds = %76, %68
  %78 = phi ptr [ %75, %68 ], [ null, %76 ]
  store ptr %78, ptr %11, align 8, !tbaa !5
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %87

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.gravity_closure_s, ptr %82, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  store ptr %84, ptr %12, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  call void @gravity_closure_free(ptr noundef null, ptr noundef %85)
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  call void @gravity_function_free(ptr noundef null, ptr noundef %86)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %87

87:                                               ; preds = %81, %77
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %96

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.gravity_closure_s, ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  store ptr %93, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  call void @gravity_closure_free(ptr noundef null, ptr noundef %94)
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  call void @gravity_function_free(ptr noundef null, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %96

96:                                               ; preds = %90, %87
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.gravity_closure_s, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %105

101:                                              ; preds = %96
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.gravity_closure_s, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  call void @gravity_function_free(ptr noundef null, ptr noundef %104)
  br label %105

105:                                              ; preds = %101, %96
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  call void @gravity_closure_free(ptr noundef null, ptr noundef %106)
  %107 = load i8, ptr %6, align 1, !tbaa !9, !range !24, !noundef !25
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %118

109:                                              ; preds = %105
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.gravity_class_s, ptr %110, i32 0, i32 11
  %112 = load ptr, ptr %111, align 8, !tbaa !26
  %113 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = call zeroext i1 @gravity_hash_remove(ptr noundef %112, ptr %114, i64 %116)
  br label %118

118:                                              ; preds = %109, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #6
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare i32 @gravity_hash_compute_buffer(ptr noundef, i32 noundef) #4

declare ptr @gravity_class_lookup_closure(ptr noundef, ptr, i64) #4

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

declare void @gravity_closure_free(ptr noundef, ptr noundef) #4

declare void @gravity_function_free(ptr noundef, ptr noundef) #4

declare zeroext i1 @gravity_hash_remove(ptr noundef, ptr, i64) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind willreturn memory(read) "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 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !14, i64 56, !14, i64 60, !14, i64 64}
!13 = !{!"gravity_gc_s", !10, i64 0, !10, i64 1, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !6, i64 48}
!16 = !{!12, !14, i64 56}
!17 = !{!12, !14, i64 60}
!18 = !{!12, !14, i64 64}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !6, i64 0, !7, i64 8}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !6, i64 56}
!23 = !{!"gravity_closure_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !6, i64 96}
!27 = !{!"gravity_class_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 65, !10, i64 66, !10, i64 67, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !6, i64 112}


; 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.gravity_string_t = type { ptr, %struct.gravity_gc_s, ptr, i32, i32, i32 }
%struct.gravity_gc_s = type { i8, i8, ptr, ptr, ptr, ptr }

@gravity_class_string = external dso_local local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__.computed_property_free = external hidden unnamed_addr constant [68 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
define dso_local void @computed_property_free(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #1 {
  %4 = alloca %struct.gravity_string_t, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #6
  %5 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %5, ptr %4, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %4, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %6, i8 0, i64 40, i1 false)
  %7 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr %1, ptr %7, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %4, i64 56
  %9 = getelementptr inbounds i8, ptr %4, i64 60
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #7
  %11 = trunc i64 %10 to i32
  store i32 %11, ptr %9, align 4, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %4, i64 64
  store i32 0, ptr %12, align 8, !tbaa !16
  %13 = tail call i32 @gravity_hash_compute_buffer(ptr noundef %1, i32 noundef %11) #6
  store i32 %13, ptr %8, align 8, !tbaa !17
  %14 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  %15 = ptrtoint ptr %4 to i64
  %16 = call ptr @gravity_class_lookup_closure(ptr noundef %0, ptr %14, i64 %15) #6
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %17, label %18

17:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13, i32 noundef 3216, ptr noundef nonnull @__PRETTY_FUNCTION__.computed_property_free) #8
  unreachable

18:                                               ; preds = %3
  %19 = getelementptr inbounds i8, ptr %16, i64 56
  %20 = load ptr, ptr %19, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %20, i64 88
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = getelementptr inbounds i8, ptr %20, i64 96
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %.not26 = icmp eq ptr %22, %24
  %spec.select = select i1 %.not26, ptr null, ptr %24
  %.not27 = icmp eq ptr %22, null
  br i1 %.not27, label %28, label %25

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %22, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  call void @gravity_closure_free(ptr noundef null, ptr noundef nonnull %22) #6
  call void @gravity_function_free(ptr noundef null, ptr noundef %27) #6
  br label %28

28:                                               ; preds = %25, %18
  %.not28 = icmp eq ptr %spec.select, null
  br i1 %.not28, label %32, label %29

29:                                               ; preds = %28
  %30 = getelementptr inbounds i8, ptr %spec.select, i64 56
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  call void @gravity_closure_free(ptr noundef null, ptr noundef nonnull %spec.select) #6
  call void @gravity_function_free(ptr noundef null, ptr noundef %31) #6
  br label %32

32:                                               ; preds = %29, %28
  %33 = load ptr, ptr %19, align 8, !tbaa !18
  %.not29 = icmp eq ptr %33, null
  br i1 %.not29, label %35, label %34

34:                                               ; preds = %32
  call void @gravity_function_free(ptr noundef null, ptr noundef nonnull %33) #6
  br label %35

35:                                               ; preds = %34, %32
  call void @gravity_closure_free(ptr noundef null, ptr noundef nonnull %16) #6
  br i1 %2, label %36, label %40

36:                                               ; preds = %35
  %37 = getelementptr inbounds i8, ptr %0, i64 96
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = call zeroext i1 @gravity_hash_remove(ptr noundef %38, ptr %14, i64 %15) #6
  br label %40

40:                                               ; preds = %36, %35
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

declare i32 @gravity_hash_compute_buffer(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @gravity_class_lookup_closure(ptr noundef, ptr, i64) local_unnamed_addr #4

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

declare void @gravity_closure_free(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @gravity_function_free(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i1 @gravity_hash_remove(ptr noundef, ptr, i64) local_unnamed_addr #4

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"", !6, i64 0, !11, i64 8, !6, i64 48, !13, i64 56, !13, i64 60, !13, i64 64}
!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 = !{!10, !6, i64 48}
!15 = !{!10, !13, i64 60}
!16 = !{!10, !13, i64 64}
!17 = !{!10, !13, i64 56}
!18 = !{!19, !6, i64 56}
!19 = !{!"gravity_closure_s", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !6, i64 96}
!22 = !{!"gravity_class_s", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !12, i64 64, !12, i64 65, !12, i64 66, !12, i64 67, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !13, i64 104, !6, i64 112}


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