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

@gravity_class_int = external dso_local global ptr, align 8
@gravity_class_float = external dso_local global ptr, align 8
@gravity_class_bool = external dso_local global ptr, align 8
@gravity_class_null = external dso_local global ptr, align 8
@gravity_class_string = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 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) #0

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

declare ptr @gravity_vm_fastlookup(ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @gravity_value_getclass(ptr, i64) #2

declare ptr @gravity_vm_getclosure(ptr noundef) #2

declare zeroext i1 @gravity_vm_runclosure(ptr noundef, ptr noundef, ptr, i64, ptr noundef, i16 noundef zeroext) #2

declare { ptr, i64 } @gravity_vm_result(ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
define dso_local { ptr, i64 } @convert_value2bool(ptr noundef %0, ptr %1, i64 %2) #3 {
  %4 = alloca %struct.gravity_value_t, align 8
  %5 = alloca %struct.gravity_value_t, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  store ptr %1, ptr %10, align 8
  %11 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  store i64 %2, ptr %11, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  %15 = icmp eq ptr %13, %14
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %5, i64 16, i1 false), !tbaa.struct !11
  br label %151

17:                                               ; preds = %3
  %18 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr @gravity_class_int, align 8, !tbaa !5
  %21 = icmp eq ptr %19, %20
  br i1 %21, label %22, label %31

22:                                               ; preds = %17
  %23 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %24 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %24, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  %26 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !12
  %28 = icmp ne i64 %27, 0
  %29 = zext i1 %28 to i32
  %30 = sext i32 %29 to i64
  store i64 %30, ptr %25, align 8, !tbaa !12
  br label %151

31:                                               ; preds = %17
  %32 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr @gravity_class_float, align 8, !tbaa !5
  %35 = icmp eq ptr %33, %34
  br i1 %35, label %36, label %45

36:                                               ; preds = %31
  %37 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %38 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %38, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  %40 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 1
  %41 = load double, ptr %40, align 8, !tbaa !12
  %42 = fcmp une double %41, 0.000000e+00
  %43 = zext i1 %42 to i32
  %44 = sext i32 %43 to i64
  store i64 %44, ptr %39, align 8, !tbaa !12
  br label %151

45:                                               ; preds = %31
  %46 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  %49 = icmp eq ptr %47, %48
  br i1 %49, label %50, label %58

50:                                               ; preds = %45
  %51 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !12
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %54, label %58

54:                                               ; preds = %50
  %55 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %56 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %56, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  store i64 0, ptr %57, align 8, !tbaa !12
  br label %151

58:                                               ; preds = %50, %45
  %59 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  %62 = icmp eq ptr %60, %61
  br i1 %62, label %63, label %71

63:                                               ; preds = %58
  %64 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !12
  %66 = icmp eq i64 %65, 1
  br i1 %66, label %67, label %71

67:                                               ; preds = %63
  %68 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %69 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %69, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  store i64 0, ptr %70, align 8, !tbaa !12
  br label %151

71:                                               ; preds = %63, %58
  %72 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  %75 = icmp eq ptr %73, %74
  br i1 %75, label %76, label %99

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %77 = getelementptr inbounds %struct.gravity_value_t, ptr %5, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  store ptr %78, ptr %7, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.gravity_string_t, ptr %79, i32 0, i32 4
  %81 = load i32, ptr %80, align 4, !tbaa !13
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %87

83:                                               ; preds = %76
  %84 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %85 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %85, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  store i64 0, ptr %86, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %98

87:                                               ; preds = %76
  %88 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %89 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %89, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.gravity_string_t, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = call i32 @strcmp(ptr noundef %93, ptr noundef @.str) #7
  %95 = icmp ne i32 %94, 0
  %96 = zext i1 %95 to i32
  %97 = sext i32 %96 to i64
  store i64 %97, ptr %90, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %98

98:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %151

99:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %104 = load i64, ptr %103, align 8
  %105 = call ptr @gravity_value_getclass(ptr %102, i64 %104)
  %106 = call ptr @gravity_vm_fastlookup(ptr noundef %100, ptr noundef %105, i32 noundef 27)
  store ptr %106, ptr %9, align 8, !tbaa !5
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %128

109:                                              ; preds = %99
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.gravity_closure_s, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = getelementptr inbounds %struct.gravity_function_t, ptr %112, i32 0, i32 8
  %114 = load i32, ptr %113, align 8, !tbaa !21
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %123

116:                                              ; preds = %109
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.gravity_closure_s, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = getelementptr inbounds %struct.gravity_function_t, ptr %119, i32 0, i32 9
  %121 = load ptr, ptr %120, align 8, !tbaa !12
  %122 = icmp eq ptr %121, @convert_object_bool
  br i1 %122, label %128, label %123

123:                                              ; preds = %116, %109
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = call ptr @gravity_vm_getclosure(ptr noundef %124)
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = icmp eq ptr %125, %126
  br i1 %127, label %128, label %132

128:                                              ; preds = %123, %116, %99
  %129 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  %130 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  store ptr %130, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  store i64 1, ptr %131, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %150

132:                                              ; preds = %123
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %138 = load i64, ptr %137, align 8
  %139 = call zeroext i1 @gravity_vm_runclosure(ptr noundef %133, ptr noundef %134, ptr %136, i64 %138, ptr noundef null, i16 noundef zeroext 0)
  br i1 %139, label %140, label %147

140:                                              ; preds = %132
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = call { ptr, i64 } @gravity_vm_result(ptr noundef %141)
  %143 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  %144 = extractvalue { ptr, i64 } %142, 0
  store ptr %144, ptr %143, align 8
  %145 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  %146 = extractvalue { ptr, i64 } %142, 1
  store i64 %146, ptr %145, align 8
  store i32 1, ptr %8, align 4
  br label %150

147:                                              ; preds = %132
  %148 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 0
  store ptr null, ptr %148, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.gravity_value_t, ptr %4, i32 0, i32 1
  store ptr null, ptr %149, align 8, !tbaa !12
  store i32 1, ptr %8, align 4
  br label %150

150:                                              ; preds = %147, %140, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %151

151:                                              ; preds = %150, %98, %67, %54, %36, %22, %16
  %152 = load { ptr, i64 }, ptr %4, align 8
  ret { ptr, i64 } %152
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @convert_object_bool(ptr noundef, ptr noundef, i16 noundef zeroext, i32 noundef) #5

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #5 = { 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 #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, !6, i64 0}
!10 = !{!"", !6, i64 0, !7, i64 8}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !17, i64 60}
!14 = !{!"", !6, i64 0, !15, i64 8, !6, i64 48, !17, i64 56, !17, i64 60, !17, i64 64}
!15 = !{!"gravity_gc_s", !16, i64 0, !16, i64 1, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!14, !6, i64 48}
!19 = !{!20, !6, i64 56}
!20 = !{!"gravity_closure_s", !6, i64 0, !15, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80}
!21 = !{!22, !17, i64 72}
!22 = !{!"", !6, i64 0, !15, i64 8, !6, i64 48, !6, i64 56, !23, i64 64, !23, i64 66, !23, i64 68, !23, i64 70, !17, i64 72, !7, i64 80}
!23 = !{!"short", !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"

@gravity_class_int = external dso_local local_unnamed_addr global ptr, align 8
@gravity_class_float = external dso_local local_unnamed_addr global ptr, align 8
@gravity_class_bool = external dso_local local_unnamed_addr global ptr, align 8
@gravity_class_null = external dso_local local_unnamed_addr global ptr, align 8
@gravity_class_string = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1

declare ptr @gravity_vm_fastlookup(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @gravity_value_getclass(ptr, i64) local_unnamed_addr #0

declare ptr @gravity_vm_getclosure(ptr noundef) local_unnamed_addr #0

declare zeroext i1 @gravity_vm_runclosure(ptr noundef, ptr noundef, ptr, i64, ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

declare { ptr, i64 } @gravity_vm_result(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
define dso_local { ptr, i64 } @convert_value2bool(ptr noundef %0, ptr %1, i64 %2) local_unnamed_addr #1 {
  %4 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  %5 = icmp eq ptr %4, %1
  br i1 %5, label %61, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr @gravity_class_int, align 8, !tbaa !5
  %8 = icmp eq ptr %7, %1
  br i1 %8, label %9, label %12

9:                                                ; preds = %6
  %10 = icmp ne i64 %2, 0
  %11 = zext i1 %10 to i64
  br label %61

12:                                               ; preds = %6
  %13 = load ptr, ptr @gravity_class_float, align 8, !tbaa !5
  %14 = icmp eq ptr %13, %1
  br i1 %14, label %15, label %19

15:                                               ; preds = %12
  %16 = and i64 %2, 9223372036854775807
  %17 = icmp ne i64 %16, 0
  %18 = zext i1 %17 to i64
  br label %61

19:                                               ; preds = %12
  %20 = load ptr, ptr @gravity_class_null, align 8, !tbaa !5
  %21 = icmp eq ptr %20, %1
  %22 = icmp ult i64 %2, 2
  %or.cond31 = select i1 %21, i1 %22, i1 false
  br i1 %or.cond31, label %61, label %23

23:                                               ; preds = %19
  %24 = load ptr, ptr @gravity_class_string, align 8, !tbaa !5
  %25 = icmp eq ptr %24, %1
  br i1 %25, label %26, label %37

26:                                               ; preds = %23
  %27 = inttoptr i64 %2 to ptr
  %28 = getelementptr inbounds i8, ptr %27, i64 60
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %61, label %31

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %27, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str) #4
  %35 = icmp ne i32 %34, 0
  %36 = zext i1 %35 to i64
  br label %61

37:                                               ; preds = %23
  %38 = tail call ptr @gravity_value_getclass(ptr %1, i64 %2) #5
  %39 = tail call ptr @gravity_vm_fastlookup(ptr noundef %0, ptr noundef %38, i32 noundef 27) #5
  %.not = icmp eq ptr %39, null
  br i1 %.not, label %53, label %40

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %39, i64 56
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 72
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %50

46:                                               ; preds = %40
  %47 = getelementptr inbounds i8, ptr %42, i64 80
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = icmp eq ptr %48, @convert_object_bool
  br i1 %49, label %53, label %50

50:                                               ; preds = %46, %40
  %51 = tail call ptr @gravity_vm_getclosure(ptr noundef %0) #5
  %52 = icmp eq ptr %51, %39
  br i1 %52, label %53, label %55

53:                                               ; preds = %50, %46, %37
  %54 = load ptr, ptr @gravity_class_bool, align 8, !tbaa !5
  br label %61

55:                                               ; preds = %50
  %56 = tail call zeroext i1 @gravity_vm_runclosure(ptr noundef %0, ptr noundef nonnull %39, ptr %1, i64 %2, ptr noundef null, i16 noundef zeroext 0) #5
  br i1 %56, label %57, label %61

57:                                               ; preds = %55
  %58 = tail call { ptr, i64 } @gravity_vm_result(ptr noundef %0) #5
  %59 = extractvalue { ptr, i64 } %58, 0
  %60 = extractvalue { ptr, i64 } %58, 1
  br label %61

61:                                               ; preds = %53, %57, %55, %31, %26, %19, %3, %15, %9
  %.sroa.028.2 = phi ptr [ %4, %9 ], [ %4, %15 ], [ %1, %3 ], [ %4, %19 ], [ %4, %26 ], [ %4, %31 ], [ %54, %53 ], [ %59, %57 ], [ null, %55 ]
  %.sroa.11.2 = phi i64 [ %11, %9 ], [ %18, %15 ], [ %2, %3 ], [ 0, %19 ], [ 0, %26 ], [ %36, %31 ], [ 1, %53 ], [ %60, %57 ], [ 0, %55 ]
  %.fca.0.insert = insertvalue { ptr, i64 } poison, ptr %.sroa.028.2, 0
  %.fca.1.insert = insertvalue { ptr, i64 } %.fca.0.insert, i64 %.sroa.11.2, 1
  ret { ptr, i64 } %.fca.1.insert
}

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @convert_object_bool(ptr noundef, ptr noundef, i16 noundef zeroext, i32 noundef) #3

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { 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 willreturn memory(read) }
attributes #5 = { 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, !13, i64 60}
!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 = !{!16, !6, i64 56}
!16 = !{!"gravity_closure_s", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80}
!17 = !{!18, !13, i64 72}
!18 = !{!"", !6, i64 0, !11, i64 8, !6, i64 48, !6, i64 56, !19, i64 64, !19, i64 66, !19, i64 68, !19, i64 70, !13, i64 72, !7, i64 80}
!19 = !{!"short", !7, i64 0}
!20 = !{!7, !7, i64 0}


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