; 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_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.gravity_closure_s = type { ptr, %struct.gravity_gc_s, ptr, ptr, ptr, ptr, i32 }
%struct.gravity_string_t = type { ptr, %struct.gravity_gc_s, ptr, i32, i32, i32 }
%struct.gravity_instance_t = type { ptr, %struct.gravity_gc_s, ptr, ptr, ptr }
%struct.gravity_range_t = type { ptr, %struct.gravity_gc_s, i64, i64 }
%struct.gravity_list_t = type { ptr, %struct.gravity_gc_s, %struct.gravity_value_r }
%struct.gravity_map_t = type { ptr, %struct.gravity_gc_s, ptr }

@gravity_class_class = external global ptr, align 8
@gravity_class_null = external global ptr, align 8
@gravity_class_function = external global ptr, align 8
@gravity_class_closure = external global ptr, align 8
@gravity_class_string = external global ptr, align 8
@gravity_class_int = external global ptr, align 8
@gravity_class_float = external global ptr, align 8
@gravity_class_bool = external global ptr, align 8
@gravity_class_upvalue = external global ptr, align 8
@gravity_class_fiber = external global ptr, align 8
@.str.51 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@gravity_object_debug.buffer = external hidden global [512 x i8], align 16
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@gravity_class_instance = external global ptr, align 8
@.str.61 = external hidden unnamed_addr constant [18 x i8], align 1
@gravity_class_range = external global ptr, align 8
@.str.62 = external hidden unnamed_addr constant [17 x i8], align 1
@gravity_class_list = external global ptr, align 8
@.str.63 = external hidden unnamed_addr constant [20 x i8], align 1
@gravity_class_map = external global ptr, align 8
@.str.64 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [4 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

declare i32 @gravity_hash_count(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @gravity_object_debug(ptr noundef %0, i1 noundef zeroext %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %11 = zext i1 %1 to i8
  store i8 %11, ptr %5, align 1, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %19

14:                                               ; preds = %2
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.gravity_class_s, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %14, %2
  store ptr @.str.51, ptr %3, align 8
  br label %213

20:                                               ; preds = %14
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.gravity_class_s, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = load ptr, ptr @gravity_class_int, align 8, !tbaa !5
  %25 = icmp eq ptr %23, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %20
  store ptr @.str.52, ptr %3, align 8
  br label %213

27:                                               ; preds = %20
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.gravity_class_s, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = load ptr, ptr @gravity_class_float, align 8, !tbaa !5
  %32 = icmp eq ptr %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %27
  store ptr @.str.53, ptr %3, align 8
  br label %213

34:                                               ; preds = %27
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.gravity_class_s, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  %39 = icmp eq ptr %37, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %34
  store ptr @.str.54, ptr %3, align 8
  br label %213

41:                                               ; preds = %34
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.gravity_class_s, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  %46 = icmp eq ptr %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  store ptr @.str.55, ptr %3, align 8
  br label %213

48:                                               ; preds = %41
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.gravity_class_s, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr @gravity_class_function, align 8, !tbaa !5
  %53 = icmp eq ptr %51, %52
  br i1 %53, label %54, label %65

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.gravity_function_t, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  store ptr %57, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  store ptr @.str.56, ptr %6, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %60, %54
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.57, ptr noundef %62, ptr noundef %63) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %213

65:                                               ; preds = %48
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.gravity_class_s, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = load ptr, ptr @gravity_class_closure, align 8, !tbaa !5
  %70 = icmp eq ptr %68, %69
  br i1 %70, label %71, label %90

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %72 = load i8, ptr %5, align 1, !tbaa !9, !range !18, !noundef !19
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  br label %81

75:                                               ; preds = %71
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.gravity_closure_s, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = getelementptr inbounds %struct.gravity_function_t, ptr %78, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  br label %81

81:                                               ; preds = %75, %74
  %82 = phi ptr [ null, %74 ], [ %80, %75 ]
  store ptr %82, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store ptr @.str.56, ptr %7, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %85, %81
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.58, ptr noundef %87, ptr noundef %88) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %213

90:                                               ; preds = %65
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.gravity_class_s, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = load ptr, ptr @gravity_class_class, align 8, !tbaa !5
  %95 = icmp eq ptr %93, %94
  br i1 %95, label %96, label %107

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.gravity_class_s, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  store ptr %99, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %103, label %102

102:                                              ; preds = %96
  store ptr @.str.56, ptr %8, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %102, %96
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.59, ptr noundef %104, ptr noundef %105) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %213

107:                                              ; preds = %90
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.gravity_class_s, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  %112 = icmp eq ptr %110, %111
  br i1 %112, label %113, label %119

113:                                              ; preds = %107
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.gravity_string_t, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  %118 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.60, ptr noundef %114, ptr noundef %117) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

119:                                              ; preds = %107
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.gravity_class_s, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr @gravity_class_instance, align 8, !tbaa !5
  %124 = icmp eq ptr %122, %123
  br i1 %124, label %125, label %152

125:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %126 = load i8, ptr %5, align 1, !tbaa !9, !range !18, !noundef !19
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  br label %133

129:                                              ; preds = %125
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.gravity_instance_t, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  br label %133

133:                                              ; preds = %129, %128
  %134 = phi ptr [ null, %128 ], [ %132, %129 ]
  store ptr %134, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = icmp ne ptr %135, null
  br i1 %136, label %137, label %146

137:                                              ; preds = %133
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.gravity_class_s, ptr %138, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %146

142:                                              ; preds = %137
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.gravity_class_s, ptr %143, i32 0, i32 3
  %145 = load ptr, ptr %144, align 8, !tbaa !22
  br label %147

146:                                              ; preds = %137, %133
  br label %147

147:                                              ; preds = %146, %142
  %148 = phi ptr [ %145, %142 ], [ @.str.56, %146 ]
  store ptr %148, ptr %10, align 8, !tbaa !5
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.61, ptr noundef %149, ptr noundef %150) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %213

152:                                              ; preds = %119
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.gravity_class_s, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = load ptr, ptr @gravity_class_range, align 8, !tbaa !5
  %157 = icmp eq ptr %155, %156
  br i1 %157, label %158, label %167

158:                                              ; preds = %152
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.gravity_range_t, ptr %160, i32 0, i32 2
  %162 = load i64, ptr %161, align 8, !tbaa !27
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.gravity_range_t, ptr %163, i32 0, i32 3
  %165 = load i64, ptr %164, align 8, !tbaa !30
  %166 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.62, ptr noundef %159, i64 noundef %162, i64 noundef %165) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

167:                                              ; preds = %152
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.gravity_class_s, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = load ptr, ptr @gravity_class_list, align 8, !tbaa !5
  %172 = icmp eq ptr %170, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %167
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.gravity_list_t, ptr %175, i32 0, i32 2
  %177 = getelementptr inbounds %struct.gravity_value_r, ptr %176, i32 0, i32 0
  %178 = load i64, ptr %177, align 8, !tbaa !31
  %179 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.63, ptr noundef %174, i64 noundef %178) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

180:                                              ; preds = %167
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.gravity_class_s, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = load ptr, ptr @gravity_class_map, align 8, !tbaa !5
  %185 = icmp eq ptr %183, %184
  br i1 %185, label %186, label %194

186:                                              ; preds = %180
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.gravity_map_t, ptr %188, i32 0, i32 2
  %190 = load ptr, ptr %189, align 8, !tbaa !34
  %191 = call i32 @gravity_hash_count(ptr noundef %190)
  %192 = zext i32 %191 to i64
  %193 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.64, ptr noundef %187, i64 noundef %192) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

194:                                              ; preds = %180
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.gravity_class_s, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !11
  %198 = load ptr, ptr @gravity_class_fiber, align 8, !tbaa !5
  %199 = icmp eq ptr %197, %198
  br i1 %199, label %200, label %203

200:                                              ; preds = %194
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.65, ptr noundef %201) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

203:                                              ; preds = %194
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.gravity_class_s, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !11
  %207 = load ptr, ptr @gravity_class_upvalue, align 8, !tbaa !5
  %208 = icmp eq ptr %206, %207
  br i1 %208, label %209, label %212

209:                                              ; preds = %203
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef @gravity_object_debug.buffer, i64 noundef 512, ptr noundef @.str.66, ptr noundef %210) #4
  store ptr @gravity_object_debug.buffer, ptr %3, align 8
  br label %213

212:                                              ; preds = %203
  store ptr @.str.67, ptr %3, align 8
  br label %213

213:                                              ; preds = %212, %209, %200, %186, %173, %158, %147, %113, %103, %86, %61, %47, %40, %33, %26, %19
  %214 = load ptr, ptr %3, align 8
  ret ptr %214
}

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 = { "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 = { 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, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"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}
!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 = !{!16, !6, i64 56}
!16 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !17, i64 64, !17, i64 66, !17, i64 68, !17, i64 70, !14, i64 72, !7, i64 80}
!17 = !{!"short", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !6, i64 56}
!21 = !{!"gravity_closure_s", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80}
!22 = !{!12, !6, i64 56}
!23 = !{!24, !6, i64 48}
!24 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !14, i64 56, !14, i64 60, !14, i64 64}
!25 = !{!26, !6, i64 48}
!26 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48, !6, i64 56, !6, i64 64}
!27 = !{!28, !29, i64 48}
!28 = !{!"", !6, i64 0, !13, i64 8, !29, i64 48, !29, i64 56}
!29 = !{!"long", !7, i64 0}
!30 = !{!28, !29, i64 56}
!31 = !{!32, !29, i64 48}
!32 = !{!"", !6, i64 0, !13, i64 8, !33, i64 48}
!33 = !{!"", !29, i64 0, !29, i64 8, !6, i64 16}
!34 = !{!35, !6, i64 48}
!35 = !{!"", !6, i64 0, !13, i64 8, !6, i64 48}


; 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"

@gravity_class_class = external local_unnamed_addr global ptr, align 8
@gravity_class_null = external local_unnamed_addr global ptr, align 8
@gravity_class_function = external local_unnamed_addr global ptr, align 8
@gravity_class_closure = external local_unnamed_addr global ptr, align 8
@gravity_class_string = external local_unnamed_addr global ptr, align 8
@gravity_class_int = external local_unnamed_addr global ptr, align 8
@gravity_class_float = external local_unnamed_addr global ptr, align 8
@gravity_class_bool = external local_unnamed_addr global ptr, align 8
@gravity_class_upvalue = external local_unnamed_addr global ptr, align 8
@gravity_class_fiber = external local_unnamed_addr global ptr, align 8
@.str.51 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@gravity_object_debug.buffer = external hidden global [512 x i8], align 16
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@gravity_class_instance = external local_unnamed_addr global ptr, align 8
@.str.61 = external hidden unnamed_addr constant [18 x i8], align 1
@gravity_class_range = external local_unnamed_addr global ptr, align 8
@.str.62 = external hidden unnamed_addr constant [17 x i8], align 1
@gravity_class_list = external local_unnamed_addr global ptr, align 8
@.str.63 = external hidden unnamed_addr constant [20 x i8], align 1
@gravity_class_map = external local_unnamed_addr global ptr, align 8
@.str.64 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

declare i32 @gravity_hash_count(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef nonnull ptr @gravity_object_debug(ptr noundef %0, i1 noundef zeroext %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %97, label %3

3:                                                ; preds = %2
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %.not53 = icmp eq ptr %4, null
  br i1 %.not53, label %97, label %5

5:                                                ; preds = %3
  %6 = load ptr, ptr @gravity_class_int, align 8, !tbaa !13
  %7 = icmp eq ptr %4, %6
  br i1 %7, label %97, label %8

8:                                                ; preds = %5
  %9 = load ptr, ptr @gravity_class_float, align 8, !tbaa !13
  %10 = icmp eq ptr %4, %9
  br i1 %10, label %97, label %11

11:                                               ; preds = %8
  %12 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !13
  %13 = icmp eq ptr %4, %12
  br i1 %13, label %97, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr @gravity_class_null, align 8, !tbaa !13
  %16 = icmp eq ptr %4, %15
  br i1 %16, label %97, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr @gravity_class_function, align 8, !tbaa !13
  %19 = icmp eq ptr %4, %18
  br i1 %19, label %20, label %24

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %.not58 = icmp eq ptr %22, null
  %spec.store.select = select i1 %.not58, ptr @.str.56, ptr %22
  %23 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.57, ptr noundef nonnull %0, ptr noundef nonnull %spec.store.select) #3
  br label %97

24:                                               ; preds = %17
  %25 = load ptr, ptr @gravity_class_closure, align 8, !tbaa !13
  %26 = icmp eq ptr %4, %25
  br i1 %26, label %27, label %36

27:                                               ; preds = %24
  br i1 %1, label %33, label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  br label %33

33:                                               ; preds = %27, %28
  %34 = phi ptr [ %32, %28 ], [ null, %27 ]
  %.not57 = icmp eq ptr %34, null
  %spec.store.select1 = select i1 %.not57, ptr @.str.56, ptr %34
  %35 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.58, ptr noundef nonnull %0, ptr noundef nonnull %spec.store.select1) #3
  br label %97

36:                                               ; preds = %24
  %37 = load ptr, ptr @gravity_class_class, align 8, !tbaa !13
  %38 = icmp eq ptr %4, %37
  br i1 %38, label %39, label %43

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %.not56 = icmp eq ptr %41, null
  %spec.store.select2 = select i1 %.not56, ptr @.str.56, ptr %41
  %42 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.59, ptr noundef nonnull %0, ptr noundef nonnull %spec.store.select2) #3
  br label %97

43:                                               ; preds = %36
  %44 = load ptr, ptr @gravity_class_string, align 8, !tbaa !13
  %45 = icmp eq ptr %4, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.60, ptr noundef nonnull %0, ptr noundef %48) #3
  br label %97

50:                                               ; preds = %43
  %51 = load ptr, ptr @gravity_class_instance, align 8, !tbaa !13
  %52 = icmp eq ptr %4, %51
  br i1 %52, label %53, label %62

53:                                               ; preds = %50
  br i1 %1, label %.thread, label %54

54:                                               ; preds = %53
  %55 = getelementptr inbounds i8, ptr %0, i64 48
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %.not54 = icmp eq ptr %56, null
  br i1 %.not54, label %.thread, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %56, i64 56
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %.not55 = icmp eq ptr %59, null
  %spec.select = select i1 %.not55, ptr @.str.56, ptr %59
  br label %.thread

.thread:                                          ; preds = %53, %57, %54
  %60 = phi ptr [ @.str.56, %54 ], [ %spec.select, %57 ], [ @.str.56, %53 ]
  %61 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.61, ptr noundef nonnull %0, ptr noundef nonnull %60) #3
  br label %97

62:                                               ; preds = %50
  %63 = load ptr, ptr @gravity_class_range, align 8, !tbaa !13
  %64 = icmp eq ptr %4, %63
  br i1 %64, label %65, label %71

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %0, i64 48
  %67 = load i64, ptr %66, align 8, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %0, i64 56
  %69 = load i64, ptr %68, align 8, !tbaa !27
  %70 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.62, ptr noundef nonnull %0, i64 noundef %67, i64 noundef %69) #3
  br label %97

71:                                               ; preds = %62
  %72 = load ptr, ptr @gravity_class_list, align 8, !tbaa !13
  %73 = icmp eq ptr %4, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %71
  %75 = getelementptr inbounds i8, ptr %0, i64 48
  %76 = load i64, ptr %75, align 8, !tbaa !28
  %77 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.63, ptr noundef nonnull %0, i64 noundef %76) #3
  br label %97

78:                                               ; preds = %71
  %79 = load ptr, ptr @gravity_class_map, align 8, !tbaa !13
  %80 = icmp eq ptr %4, %79
  br i1 %80, label %81, label %87

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %0, i64 48
  %83 = load ptr, ptr %82, align 8, !tbaa !31
  %84 = tail call i32 @gravity_hash_count(ptr noundef %83) #3
  %85 = zext i32 %84 to i64
  %86 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.64, ptr noundef nonnull %0, i64 noundef %85) #3
  br label %97

87:                                               ; preds = %78
  %88 = load ptr, ptr @gravity_class_fiber, align 8, !tbaa !13
  %89 = icmp eq ptr %4, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.65, ptr noundef nonnull %0) #3
  br label %97

92:                                               ; preds = %87
  %93 = load ptr, ptr @gravity_class_upvalue, align 8, !tbaa !13
  %94 = icmp eq ptr %4, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) @gravity_object_debug.buffer, i64 noundef 512, ptr noundef nonnull @.str.66, ptr noundef nonnull %0) #3
  br label %97

97:                                               ; preds = %92, %14, %11, %8, %5, %2, %3, %95, %90, %81, %74, %65, %.thread, %46, %39, %33, %20
  %.0 = phi ptr [ @gravity_object_debug.buffer, %20 ], [ @gravity_object_debug.buffer, %33 ], [ @gravity_object_debug.buffer, %39 ], [ @gravity_object_debug.buffer, %46 ], [ @gravity_object_debug.buffer, %.thread ], [ @gravity_object_debug.buffer, %65 ], [ @gravity_object_debug.buffer, %74 ], [ @gravity_object_debug.buffer, %81 ], [ @gravity_object_debug.buffer, %90 ], [ @gravity_object_debug.buffer, %95 ], [ @.str.51, %3 ], [ @.str.51, %2 ], [ @.str.52, %5 ], [ @.str.53, %8 ], [ @.str.54, %11 ], [ @.str.55, %14 ], [ @.str.67, %92 ]
  ret ptr %.0
}

attributes #0 = { 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 #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 = { 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 = { 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 0}
!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 56}
!15 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48, !7, i64 56, !16, i64 64, !16, i64 66, !16, i64 68, !16, i64 70, !12, i64 72, !8, i64 80}
!16 = !{!"short", !8, i64 0}
!17 = !{!18, !7, i64 56}
!18 = !{!"gravity_closure_s", !7, i64 0, !10, i64 8, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !12, i64 80}
!19 = !{!6, !7, i64 56}
!20 = !{!21, !7, i64 48}
!21 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48, !12, i64 56, !12, i64 60, !12, i64 64}
!22 = !{!23, !7, i64 48}
!23 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48, !7, i64 56, !7, i64 64}
!24 = !{!25, !26, i64 48}
!25 = !{!"", !7, i64 0, !10, i64 8, !26, i64 48, !26, i64 56}
!26 = !{!"long", !8, i64 0}
!27 = !{!25, !26, i64 56}
!28 = !{!29, !26, i64 48}
!29 = !{!"", !7, i64 0, !10, i64 8, !30, i64 48}
!30 = !{!"", !26, i64 0, !26, i64 8, !7, i64 16}
!31 = !{!32, !7, i64 48}
!32 = !{!"", !7, i64 0, !10, i64 8, !7, i64 48}


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