; 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.gravity_class_s = type { ptr, %struct.gravity_gc_s, ptr, ptr, i8, i8, i8, i8, ptr, ptr, ptr, ptr, i32, ptr }
%struct.gravity_gc_s = type { i8, i8, ptr, ptr, ptr, ptr }
%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 }
%struct.anon.6 = type { i16, [2 x ptr] }
%struct.gravity_delegate_t = type { ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; 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

declare i32 @string_size(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

declare ptr @gravity_vm_delegate(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @gravity_function_size(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %struct.gravity_value_t, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.gravity_class_s, ptr %10, i32 0, i32 1
  %12 = getelementptr inbounds %struct.gravity_gc_s, ptr %11, i32 0, i32 1
  store i8 1, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.gravity_function_t, ptr %13, i32 0, i32 3
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = call i32 @string_size(ptr noundef %15)
  %17 = zext i32 %16 to i64
  %18 = add i64 184, %17
  %19 = trunc i64 %18 to i32
  store i32 %19, ptr %5, align 4, !tbaa !17
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.gravity_function_t, ptr %20, i32 0, i32 8
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %72

24:                                               ; preds = %2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.gravity_function_t, ptr %25, i32 0, i32 9
  %27 = getelementptr inbounds %struct.anon.5, ptr %26, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %41

30:                                               ; preds = %24
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.gravity_function_t, ptr %31, i32 0, i32 9
  %33 = getelementptr inbounds %struct.anon.5, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !19
  %35 = zext i32 %34 to i64
  %36 = mul i64 %35, 4
  %37 = load i32, ptr %5, align 4, !tbaa !17
  %38 = zext i32 %37 to i64
  %39 = add i64 %38, %36
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %5, align 4, !tbaa !17
  br label %41

41:                                               ; preds = %30, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.gravity_function_t, ptr %42, i32 0, i32 9
  %44 = getelementptr inbounds %struct.anon.5, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %struct.gravity_value_r, ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !19
  store i64 %46, ptr %6, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !20
  br label %47

47:                                               ; preds = %68, %41
  %48 = load i64, ptr %7, align 8, !tbaa !20
  %49 = load i64, ptr %6, align 8, !tbaa !20
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %71

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.gravity_function_t, ptr %53, i32 0, i32 9
  %55 = getelementptr inbounds %struct.anon.5, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.gravity_value_r, ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  %58 = load i64, ptr %7, align 8, !tbaa !20
  %59 = getelementptr inbounds %struct.gravity_value_t, ptr %57, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %59, i64 16, i1 false), !tbaa.struct !22
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %64 = load i64, ptr %63, align 8
  %65 = call i32 @gravity_value_size(ptr noundef %60, ptr %62, i64 %64)
  %66 = load i32, ptr %5, align 4, !tbaa !17
  %67 = add i32 %66, %65
  store i32 %67, ptr %5, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  br label %68

68:                                               ; preds = %52
  %69 = load i64, ptr %7, align 8, !tbaa !20
  %70 = add i64 %69, 1
  store i64 %70, ptr %7, align 8, !tbaa !20
  br label %47, !llvm.loop !23

71:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %155

72:                                               ; preds = %2
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.gravity_function_t, ptr %73, i32 0, i32 8
  %75 = load i32, ptr %74, align 8, !tbaa !18
  %76 = icmp eq i32 %75, 3
  br i1 %76, label %77, label %124

77:                                               ; preds = %72
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.gravity_function_t, ptr %78, i32 0, i32 9
  %80 = getelementptr inbounds %struct.anon.6, ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds [2 x ptr], ptr %80, i64 0, i64 0
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %94

84:                                               ; preds = %77
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.gravity_function_t, ptr %86, i32 0, i32 9
  %88 = getelementptr inbounds %struct.anon.6, ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds [2 x ptr], ptr %88, i64 0, i64 0
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = call i32 @gravity_closure_size(ptr noundef %85, ptr noundef %90)
  %92 = load i32, ptr %5, align 4, !tbaa !17
  %93 = add i32 %92, %91
  store i32 %93, ptr %5, align 4, !tbaa !17
  br label %94

94:                                               ; preds = %84, %77
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.gravity_function_t, ptr %95, i32 0, i32 9
  %97 = getelementptr inbounds %struct.anon.6, ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds [2 x ptr], ptr %97, i64 0, i64 1
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %123

101:                                              ; preds = %94
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.gravity_function_t, ptr %102, i32 0, i32 9
  %104 = getelementptr inbounds %struct.anon.6, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds [2 x ptr], ptr %104, i64 0, i64 0
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.gravity_function_t, ptr %107, i32 0, i32 9
  %109 = getelementptr inbounds %struct.anon.6, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [2 x ptr], ptr %109, i64 0, i64 1
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = icmp ne ptr %106, %111
  br i1 %112, label %113, label %123

113:                                              ; preds = %101
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.gravity_function_t, ptr %115, i32 0, i32 9
  %117 = getelementptr inbounds %struct.anon.6, ptr %116, i32 0, i32 1
  %118 = getelementptr inbounds [2 x ptr], ptr %117, i64 0, i64 1
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = call i32 @gravity_closure_size(ptr noundef %114, ptr noundef %119)
  %121 = load i32, ptr %5, align 4, !tbaa !17
  %122 = add i32 %121, %120
  store i32 %122, ptr %5, align 4, !tbaa !17
  br label %123

123:                                              ; preds = %113, %101, %94
  br label %154

124:                                              ; preds = %72
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.gravity_function_t, ptr %125, i32 0, i32 8
  %127 = load i32, ptr %126, align 8, !tbaa !18
  %128 = icmp eq i32 %127, 2
  br i1 %128, label %129, label %153

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = call ptr @gravity_vm_delegate(ptr noundef %130)
  store ptr %131, ptr %9, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.gravity_function_t, ptr %132, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %152

136:                                              ; preds = %129
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.gravity_delegate_t, ptr %137, i32 0, i32 23
  %139 = load ptr, ptr %138, align 8, !tbaa !26
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %152

141:                                              ; preds = %136
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.gravity_delegate_t, ptr %142, i32 0, i32 23
  %144 = load ptr, ptr %143, align 8, !tbaa !26
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.gravity_function_t, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !25
  %149 = call i32 %144(ptr noundef %145, ptr noundef %148)
  %150 = load i32, ptr %5, align 4, !tbaa !17
  %151 = add i32 %150, %149
  store i32 %151, ptr %5, align 4, !tbaa !17
  br label %152

152:                                              ; preds = %141, %136, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %153

153:                                              ; preds = %152, %124
  br label %154

154:                                              ; preds = %153, %123
  br label %155

155:                                              ; preds = %154, %71
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.gravity_class_s, ptr %156, i32 0, i32 1
  %158 = getelementptr inbounds %struct.gravity_gc_s, ptr %157, i32 0, i32 1
  store i8 0, ptr %158, align 1, !tbaa !9
  %159 = load i32, ptr %5, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %159
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @gravity_value_size(ptr noundef, ptr, i64) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @gravity_closure_size(ptr noundef, ptr noundef) #3

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 = { 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 }

!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, !12, i64 9}
!10 = !{!"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}
!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 = !{!15, !6, i64 56}
!15 = !{!"", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !16, i64 64, !16, i64 66, !16, i64 68, !16, i64 70, !13, i64 72, !7, i64 80}
!16 = !{!"short", !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!15, !13, i64 72}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{i64 0, i64 8, !5, i64 8, i64 8, !19}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!15, !6, i64 48}
!26 = !{!27, !6, i64 176}
!27 = !{!"", !6, i64 0, !12, i64 8, !12, i64 9, !6, i64 16, !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, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184}


; 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_value_t = type { ptr, %union.anon }
%union.anon = type { i64 }

declare i32 @string_size(ptr noundef) local_unnamed_addr #0

declare ptr @gravity_vm_delegate(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @gravity_function_size(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 9
  store i8 1, ptr %3, align 1, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 56
  %5 = load ptr, ptr %4, align 8, !tbaa !13
  %6 = tail call i32 @string_size(ptr noundef %5) #2
  %7 = add i32 %6, 184
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = load i32, ptr %8, align 8, !tbaa !16
  switch i32 %9, label %.loopexit [
    i32 0, label %10
    i32 3, label %28
    i32 2, label %42
  ]

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 80
  %12 = getelementptr inbounds i8, ptr %1, i64 160
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  %.not44 = icmp eq ptr %13, null
  br i1 %.not44, label %19, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %1, i64 152
  %16 = load i32, ptr %15, align 8, !tbaa !17
  %17 = shl i32 %16, 2
  %18 = add i32 %17, %7
  br label %19

19:                                               ; preds = %14, %10
  %.0 = phi i32 [ %18, %14 ], [ %7, %10 ]
  %20 = load i64, ptr %11, align 8, !tbaa !17
  %.not47 = icmp eq i64 %20, 0
  br i1 %.not47, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %21 = getelementptr inbounds i8, ptr %1, i64 96
  br label %22

22:                                               ; preds = %.lr.ph, %22
  %.146 = phi i32 [ %.0, %.lr.ph ], [ %26, %22 ]
  %.03445 = phi i64 [ 0, %.lr.ph ], [ %27, %22 ]
  %23 = load ptr, ptr %21, align 8, !tbaa !17
  %24 = getelementptr inbounds %struct.gravity_value_t, ptr %23, i64 %.03445
  %.sroa.0.0.copyload = load ptr, ptr %24, align 8, !tbaa !18
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.4.0.copyload = load i64, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  %25 = tail call i32 @gravity_value_size(ptr noundef %0, ptr %.sroa.0.0.copyload, i64 %.sroa.4.0.copyload)
  %26 = add i32 %25, %.146
  %27 = add nuw i64 %.03445, 1
  %exitcond.not = icmp eq i64 %27, %20
  br i1 %exitcond.not, label %.loopexit, label %22, !llvm.loop !19

28:                                               ; preds = %2
  %29 = getelementptr inbounds i8, ptr %1, i64 88
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %.not41 = icmp eq ptr %30, null
  br i1 %.not41, label %34, label %31

31:                                               ; preds = %28
  %32 = tail call i32 @gravity_closure_size(ptr noundef %0, ptr noundef nonnull %30)
  %33 = add i32 %32, %7
  br label %34

34:                                               ; preds = %31, %28
  %.2 = phi i32 [ %33, %31 ], [ %7, %28 ]
  %35 = getelementptr inbounds i8, ptr %1, i64 96
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %.not42 = icmp eq ptr %36, null
  br i1 %.not42, label %.loopexit, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr %29, align 8, !tbaa !17
  %.not43 = icmp eq ptr %38, %36
  br i1 %.not43, label %.loopexit, label %39

39:                                               ; preds = %37
  %40 = tail call i32 @gravity_closure_size(ptr noundef %0, ptr noundef nonnull %36)
  %41 = add i32 %40, %.2
  br label %.loopexit

42:                                               ; preds = %2
  %43 = tail call ptr @gravity_vm_delegate(ptr noundef %0) #2
  %44 = getelementptr inbounds i8, ptr %1, i64 48
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %.not = icmp eq ptr %45, null
  br i1 %.not, label %.loopexit, label %46

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %43, i64 176
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %.not40 = icmp eq ptr %48, null
  br i1 %.not40, label %.loopexit, label %49

49:                                               ; preds = %46
  %50 = tail call i32 %48(ptr noundef %0, ptr noundef nonnull %45) #2
  %51 = add i32 %50, %7
  br label %.loopexit

.loopexit:                                        ; preds = %22, %19, %42, %46, %49, %2, %39, %37, %34
  %.4 = phi i32 [ %41, %39 ], [ %.2, %37 ], [ %.2, %34 ], [ %7, %2 ], [ %51, %49 ], [ %7, %46 ], [ %7, %42 ], [ %.0, %19 ], [ %26, %22 ]
  store i8 0, ptr %3, align 1, !tbaa !5
  ret i32 %.4
}

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

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

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 = { 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 }

!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, !11, i64 9}
!6 = !{!"gravity_class_s", !7, i64 0, !10, i64 8, !7, i64 48, !7, i64 56, !11, i64 64, !11, i64 65, !11, i64 66, !11, i64 67, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !12, i64 104, !7, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"gravity_gc_s", !11, i64 0, !11, i64 1, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 56}
!14 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48, !7, i64 56, !15, i64 64, !15, i64 66, !15, i64 68, !15, i64 70, !12, i64 72, !8, i64 80}
!15 = !{!"short", !8, i64 0}
!16 = !{!14, !12, i64 72}
!17 = !{!8, !8, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !7, i64 48}
!22 = !{!23, !7, i64 176}
!23 = !{!"", !7, i64 0, !11, i64 8, !11, i64 9, !7, i64 16, !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, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184}


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