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

@gravity_class_string = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 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
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
define dso_local ptr @gravity_class_lookup_constructor(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.gravity_string_t, align 8
  %7 = alloca %struct.gravity_value_t, align 8
  %8 = alloca [256 x i8], align 16
  %9 = alloca %struct.gravity_string_t, align 8
  %10 = alloca %struct.gravity_value_t, align 8
  %11 = alloca %struct.gravity_string_t, align 8
  %12 = alloca %struct.gravity_value_t, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.gravity_class_s, ptr %13, i32 0, i32 8
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %73

17:                                               ; preds = %2
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %43

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #6
  %21 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 0
  %22 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %22, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 40, i1 false)
  %24 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 2
  store ptr @.str.15, ptr %24, align 8, !tbaa !17
  %25 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 3
  store i32 0, ptr %25, align 8, !tbaa !18
  %26 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 4
  store i32 5, ptr %26, align 4, !tbaa !19
  %27 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 5
  store i32 0, ptr %27, align 8, !tbaa !20
  %28 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 4
  %31 = load i32, ptr %30, align 4, !tbaa !19
  %32 = call i32 @gravity_hash_compute_buffer(ptr noundef %29, i32 noundef %31)
  %33 = getelementptr inbounds %struct.gravity_string_t, ptr %6, i32 0, i32 3
  store i32 %32, ptr %33, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %34 = getelementptr inbounds %struct.gravity_value_t, ptr %7, i32 0, i32 0
  %35 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !21
  %36 = getelementptr inbounds %struct.gravity_value_t, ptr %7, i32 0, i32 1
  store ptr %6, ptr %36, align 8, !tbaa !23
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %41 = load i64, ptr %40, align 8
  %42 = call ptr @gravity_class_lookup(ptr noundef %37, ptr %39, i64 %41)
  store ptr %42, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #6
  br label %96

43:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 256, ptr %8) #6
  %44 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %44, i64 noundef 256, ptr noundef @.str.16, ptr noundef @.str.15, i32 noundef %45) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #6
  %47 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 0
  %48 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %48, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 40, i1 false)
  %50 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 2
  %51 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  store ptr %51, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 3
  store i32 0, ptr %52, align 8, !tbaa !18
  %53 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 4
  %54 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  %55 = call i64 @strlen(ptr noundef %54) #7
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %53, align 4, !tbaa !19
  %57 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 5
  store i32 0, ptr %57, align 8, !tbaa !20
  %58 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 4
  %61 = load i32, ptr %60, align 4, !tbaa !19
  %62 = call i32 @gravity_hash_compute_buffer(ptr noundef %59, i32 noundef %61)
  %63 = getelementptr inbounds %struct.gravity_string_t, ptr %9, i32 0, i32 3
  store i32 %62, ptr %63, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %64 = getelementptr inbounds %struct.gravity_value_t, ptr %10, i32 0, i32 0
  %65 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %65, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds %struct.gravity_value_t, ptr %10, i32 0, i32 1
  store ptr %9, ptr %66, align 8, !tbaa !23
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8
  %70 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %71 = load i64, ptr %70, align 8
  %72 = call ptr @gravity_class_lookup(ptr noundef %67, ptr %69, i64 %71)
  store ptr %72, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #6
  br label %96

73:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #6
  %74 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 0
  %75 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %75, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %76, i8 0, i64 40, i1 false)
  %77 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 2
  store ptr @.str.17, ptr %77, align 8, !tbaa !17
  %78 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 3
  store i32 0, ptr %78, align 8, !tbaa !18
  %79 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 4
  store i32 4, ptr %79, align 4, !tbaa !19
  %80 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 5
  store i32 0, ptr %80, align 8, !tbaa !20
  %81 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 4
  %84 = load i32, ptr %83, align 4, !tbaa !19
  %85 = call i32 @gravity_hash_compute_buffer(ptr noundef %82, i32 noundef %84)
  %86 = getelementptr inbounds %struct.gravity_string_t, ptr %11, i32 0, i32 3
  store i32 %85, ptr %86, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %87 = getelementptr inbounds %struct.gravity_value_t, ptr %12, i32 0, i32 0
  %88 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  store ptr %88, ptr %87, align 8, !tbaa !21
  %89 = getelementptr inbounds %struct.gravity_value_t, ptr %12, i32 0, i32 1
  store ptr %11, ptr %89, align 8, !tbaa !23
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8
  %93 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %94 = load i64, ptr %93, align 8
  %95 = call ptr @gravity_class_lookup(ptr noundef %90, ptr %92, i64 %94)
  store ptr %95, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  br label %96

96:                                               ; preds = %73, %43, %20
  %97 = load ptr, ptr %3, align 8
  ret ptr %97
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 #3 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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) }

!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 72}
!12 = !{!"gravity_class_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !14, i64 64, !14, i64 65, !14, i64 66, !14, i64 67, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !6, i64 112}
!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 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64}
!17 = !{!16, !6, i64 48}
!18 = !{!16, !10, i64 56}
!19 = !{!16, !10, i64 60}
!20 = !{!16, !10, i64 64}
!21 = !{!22, !6, i64 0}
!22 = !{!"", !6, i64 0, !7, i64 8}
!23 = !{!7, !7, i64 0}


; 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 local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 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: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare dso_local ptr @gravity_class_lookup(ptr noundef, ptr, i64) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
define dso_local ptr @gravity_class_lookup_constructor(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.gravity_string_t, align 8
  %4 = alloca [256 x i8], align 16
  %5 = alloca %struct.gravity_string_t, align 8
  %6 = alloca %struct.gravity_string_t, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %36, label %9

9:                                                ; preds = %2
  %10 = icmp eq i32 %1, 0
  br i1 %10, label %11, label %22

11:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #6
  %12 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  store ptr %12, ptr %3, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %13, i8 0, i64 40, i1 false)
  %14 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr @.str.15, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %3, i64 56
  %16 = getelementptr inbounds i8, ptr %3, i64 60
  store i32 5, ptr %16, align 4, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %3, i64 64
  store i32 0, ptr %17, align 8, !tbaa !18
  %18 = tail call i32 @gravity_hash_compute_buffer(ptr noundef nonnull @.str.15, i32 noundef 5) #6
  store i32 %18, ptr %15, align 8, !tbaa !19
  %19 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  %20 = ptrtoint ptr %3 to i64
  %21 = call ptr @gravity_class_lookup(ptr noundef nonnull %0, ptr %19, i64 %20)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  br label %47

22:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #6
  %23 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 256, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.15, i32 noundef %1) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #6
  %24 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  store ptr %24, ptr %5, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %25, i8 0, i64 40, i1 false)
  %26 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %4, ptr %26, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %5, i64 56
  %28 = getelementptr inbounds i8, ptr %5, i64 60
  %29 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #7
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %28, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %5, i64 64
  store i32 0, ptr %31, align 8, !tbaa !18
  %32 = call i32 @gravity_hash_compute_buffer(ptr noundef nonnull %4, i32 noundef %30) #6
  store i32 %32, ptr %27, align 8, !tbaa !19
  %33 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  %34 = ptrtoint ptr %5 to i64
  %35 = call ptr @gravity_class_lookup(ptr noundef nonnull %0, ptr %33, i64 %34)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #6
  br label %47

36:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  %37 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  store ptr %37, ptr %6, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %38, i8 0, i64 40, i1 false)
  %39 = getelementptr inbounds i8, ptr %6, i64 48
  store ptr @.str.17, ptr %39, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %6, i64 56
  %41 = getelementptr inbounds i8, ptr %6, i64 60
  store i32 4, ptr %41, align 4, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %6, i64 64
  store i32 0, ptr %42, align 8, !tbaa !18
  %43 = tail call i32 @gravity_hash_compute_buffer(ptr noundef nonnull @.str.17, i32 noundef 4) #6
  store i32 %43, ptr %40, align 8, !tbaa !19
  %44 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  %45 = ptrtoint ptr %6 to i64
  %46 = call ptr @gravity_class_lookup(ptr noundef nonnull %0, ptr %44, i64 %45)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %47

47:                                               ; preds = %36, %22, %11
  %.0 = phi ptr [ %21, %11 ], [ %35, %22 ], [ %46, %36 ]
  ret ptr %.0
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree 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 = { 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 #3 = { inlinehint 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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) }

!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 72}
!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 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48, !12, i64 56, !12, i64 60, !12, i64 64}
!16 = !{!15, !7, i64 48}
!17 = !{!15, !12, i64 60}
!18 = !{!15, !12, i64 64}
!19 = !{!15, !12, i64 56}


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