; LLVM IR from ibr-ds/STANlite :: Enclave/sqlite (malloc)

; 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.Mem0Global = type { ptr, i64, ptr, ptr, i32, i32 }
%struct.Sqlite3Config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods2, ptr, i32, i32, i32, i64, i64, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32 }
%struct.sqlite3_mem_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_mutex_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_pcache_methods2 = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mem0 = external hidden global %struct.Mem0Global, align 8
@sqlite3Config = external global %struct.Sqlite3Config, align 8

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

declare void @sqlite3_mutex_enter(ptr noundef) #1

declare void @sqlite3_mutex_leave(ptr noundef) #1

declare i64 @sqlite3StatusValue(i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @sqlite3Malloc(i64 noundef) #2

declare void @sqlite3StatusHighwater(i32 noundef, i32 noundef) #1

declare void @sqlite3StatusUp(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @sqlite3MallocSize(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3Realloc(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %16

13:                                               ; preds = %2
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = call ptr @sqlite3Malloc(i64 noundef %14)
  store ptr %15, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %94

16:                                               ; preds = %2
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sqlite3_free(ptr noundef %20)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %94

21:                                               ; preds = %16
  %22 = load i64, ptr %5, align 8, !tbaa !9
  %23 = icmp uge i64 %22, 2147483392
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  store ptr null, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %94

25:                                               ; preds = %21
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call i32 @sqlite3MallocSize(ptr noundef %26)
  store i32 %27, ptr %6, align 4, !tbaa !11
  %28 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 10), i32 0, i32 4), align 8, !tbaa !13
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = trunc i64 %29 to i32
  %31 = call i32 %28(i32 noundef %30)
  store i32 %31, ptr %7, align 4, !tbaa !11
  %32 = load i32, ptr %6, align 4, !tbaa !11
  %33 = load i32, ptr %7, align 4, !tbaa !11
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %25
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %36, ptr %9, align 8, !tbaa !5
  br label %92

37:                                               ; preds = %25
  %38 = load i32, ptr @sqlite3Config, align 8, !tbaa !18
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %86

40:                                               ; preds = %37
  %41 = load ptr, ptr @mem0, align 8, !tbaa !19
  call void @sqlite3_mutex_enter(ptr noundef %41)
  %42 = load i64, ptr %5, align 8, !tbaa !9
  %43 = trunc i64 %42 to i32
  call void @sqlite3StatusHighwater(i32 noundef 5, i32 noundef %43)
  %44 = load i32, ptr %7, align 4, !tbaa !11
  %45 = load i32, ptr %6, align 4, !tbaa !11
  %46 = sub nsw i32 %44, %45
  store i32 %46, ptr %8, align 4, !tbaa !11
  %47 = load i32, ptr %8, align 4, !tbaa !11
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %49, label %58

49:                                               ; preds = %40
  %50 = call i64 @sqlite3StatusValue(i32 noundef 0)
  %51 = load i64, ptr getelementptr inbounds (%struct.Mem0Global, ptr @mem0, i32 0, i32 1), align 8, !tbaa !21
  %52 = load i32, ptr %8, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = sub nsw i64 %51, %53
  %55 = icmp sge i64 %50, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %49
  %57 = load i32, ptr %8, align 4, !tbaa !11
  call void @sqlite3MallocAlarm(i32 noundef %57)
  br label %58

58:                                               ; preds = %56, %49, %40
  %59 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 10), i32 0, i32 2), align 8, !tbaa !22
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load i32, ptr %7, align 4, !tbaa !11
  %62 = call ptr %59(ptr noundef %60, i32 noundef %61)
  store ptr %62, ptr %9, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %75

65:                                               ; preds = %58
  %66 = load i64, ptr getelementptr inbounds (%struct.Mem0Global, ptr @mem0, i32 0, i32 1), align 8, !tbaa !21
  %67 = icmp sgt i64 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %65
  %69 = load i64, ptr %5, align 8, !tbaa !9
  %70 = trunc i64 %69 to i32
  call void @sqlite3MallocAlarm(i32 noundef %70)
  %71 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 10), i32 0, i32 2), align 8, !tbaa !22
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !11
  %74 = call ptr %71(ptr noundef %72, i32 noundef %73)
  store ptr %74, ptr %9, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %68, %65, %58
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %84

78:                                               ; preds = %75
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = call i32 @sqlite3MallocSize(ptr noundef %79)
  store i32 %80, ptr %7, align 4, !tbaa !11
  %81 = load i32, ptr %7, align 4, !tbaa !11
  %82 = load i32, ptr %6, align 4, !tbaa !11
  %83 = sub nsw i32 %81, %82
  call void @sqlite3StatusUp(i32 noundef 0, i32 noundef %83)
  br label %84

84:                                               ; preds = %78, %75
  %85 = load ptr, ptr @mem0, align 8, !tbaa !19
  call void @sqlite3_mutex_leave(ptr noundef %85)
  br label %91

86:                                               ; preds = %37
  %87 = load ptr, ptr getelementptr inbounds (%struct.sqlite3_mem_methods, ptr getelementptr inbounds (%struct.Sqlite3Config, ptr @sqlite3Config, i32 0, i32 10), i32 0, i32 2), align 8, !tbaa !22
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load i32, ptr %7, align 4, !tbaa !11
  %90 = call ptr %87(ptr noundef %88, i32 noundef %89)
  store ptr %90, ptr %9, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %86, %84
  br label %92

92:                                               ; preds = %91, %35
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %93, ptr %3, align 8
  store i32 1, ptr %10, align 4
  br label %94

94:                                               ; preds = %92, %24, %19, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %95 = load ptr, ptr %3, align 8
  ret ptr %95
}

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3MallocAlarm(i32 noundef) #2

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 = { 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, !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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 72}
!14 = !{!"Sqlite3Config", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !15, i64 40, !16, i64 104, !17, i64 176, !6, i64 280, !12, i64 288, !12, i64 292, !12, i64 296, !10, i64 304, !10, i64 312, !6, i64 320, !12, i64 328, !12, i64 332, !6, i64 336, !12, i64 344, !12, i64 348, !12, i64 352, !12, i64 356, !12, i64 360, !12, i64 364, !12, i64 368, !12, i64 372, !12, i64 376, !12, i64 380, !12, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !12, i64 424, !12, i64 428}
!15 = !{!"sqlite3_mem_methods", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!16 = !{!"sqlite3_mutex_methods", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!17 = !{!"sqlite3_pcache_methods2", !12, i64 0, !6, i64 8, !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}
!18 = !{!14, !12, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"Mem0Global", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36}
!21 = !{!20, !10, i64 8}
!22 = !{!14, !6, i64 56}


; 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.Mem0Global = type { ptr, i64, ptr, ptr, i32, i32 }
%struct.Sqlite3Config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.sqlite3_mem_methods, %struct.sqlite3_mutex_methods, %struct.sqlite3_pcache_methods2, ptr, i32, i32, i32, i64, i64, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32 }
%struct.sqlite3_mem_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_mutex_methods = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sqlite3_pcache_methods2 = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mem0 = external hidden local_unnamed_addr global %struct.Mem0Global, align 8
@sqlite3Config = external local_unnamed_addr global %struct.Sqlite3Config, align 8

declare void @sqlite3_mutex_enter(ptr noundef) local_unnamed_addr #0

declare void @sqlite3_mutex_leave(ptr noundef) local_unnamed_addr #0

declare i64 @sqlite3StatusValue(i32 noundef) local_unnamed_addr #0

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

declare void @sqlite3StatusHighwater(i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @sqlite3StatusUp(i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @sqlite3_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @sqlite3Realloc(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call ptr @sqlite3Malloc(i64 noundef %1)
  br label %47

6:                                                ; preds = %2
  %7 = icmp eq i64 %1, 0
  br i1 %7, label %8, label %9

8:                                                ; preds = %6
  tail call void @sqlite3_free(ptr noundef nonnull %0)
  br label %47

9:                                                ; preds = %6
  %10 = icmp ugt i64 %1, 2147483391
  br i1 %10, label %47, label %11

11:                                               ; preds = %9
  %12 = tail call i32 @sqlite3MallocSize(ptr noundef nonnull %0)
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 72), align 8, !tbaa !5
  %14 = trunc nuw nsw i64 %1 to i32
  %15 = tail call i32 %13(i32 noundef %14) #2
  %16 = icmp eq i32 %12, %15
  br i1 %16, label %47, label %17

17:                                               ; preds = %11
  %18 = load i32, ptr @sqlite3Config, align 8, !tbaa !15
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %44, label %19

19:                                               ; preds = %17
  %20 = load ptr, ptr @mem0, align 8, !tbaa !16
  tail call void @sqlite3_mutex_enter(ptr noundef %20) #2
  tail call void @sqlite3StatusHighwater(i32 noundef 5, i32 noundef %14) #2
  %21 = sub nsw i32 %15, %12
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %29

23:                                               ; preds = %19
  %24 = tail call i64 @sqlite3StatusValue(i32 noundef 0) #2
  %25 = load i64, ptr getelementptr inbounds (i8, ptr @mem0, i64 8), align 8, !tbaa !18
  %26 = zext nneg i32 %21 to i64
  %27 = sub nsw i64 %25, %26
  %.not36 = icmp slt i64 %24, %27
  br i1 %.not36, label %29, label %28

28:                                               ; preds = %23
  tail call void @sqlite3MallocAlarm(i32 noundef %21)
  br label %29

29:                                               ; preds = %28, %23, %19
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 56), align 8, !tbaa !19
  %31 = tail call ptr %30(ptr noundef nonnull %0, i32 noundef %15) #2
  %32 = icmp eq ptr %31, null
  %33 = load i64, ptr getelementptr inbounds (i8, ptr @mem0, i64 8), align 8
  %34 = icmp sgt i64 %33, 0
  %or.cond = select i1 %32, i1 %34, i1 false
  br i1 %or.cond, label %35, label %38

35:                                               ; preds = %29
  tail call void @sqlite3MallocAlarm(i32 noundef %14)
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 56), align 8, !tbaa !19
  %37 = tail call ptr %36(ptr noundef nonnull %0, i32 noundef %15) #2
  br label %38

38:                                               ; preds = %35, %29
  %.0 = phi ptr [ %37, %35 ], [ %31, %29 ]
  %.not37 = icmp eq ptr %.0, null
  br i1 %.not37, label %42, label %39

39:                                               ; preds = %38
  %40 = tail call i32 @sqlite3MallocSize(ptr noundef nonnull %.0)
  %41 = sub nsw i32 %40, %12
  tail call void @sqlite3StatusUp(i32 noundef 0, i32 noundef %41) #2
  br label %42

42:                                               ; preds = %39, %38
  %43 = load ptr, ptr @mem0, align 8, !tbaa !16
  tail call void @sqlite3_mutex_leave(ptr noundef %43) #2
  br label %47

44:                                               ; preds = %17
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @sqlite3Config, i64 56), align 8, !tbaa !19
  %46 = tail call ptr %45(ptr noundef nonnull %0, i32 noundef %15) #2
  br label %47

47:                                               ; preds = %44, %42, %11, %9, %8, %4
  %.030 = phi ptr [ %5, %4 ], [ null, %8 ], [ null, %9 ], [ %.0, %42 ], [ %46, %44 ], [ %0, %11 ]
  ret ptr %.030
}

; Function Attrs: nounwind uwtable
declare hidden void @sqlite3MallocAlarm(i32 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 72}
!6 = !{!"Sqlite3Config", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !12, i64 104, !13, i64 176, !11, i64 280, !7, i64 288, !7, i64 292, !7, i64 296, !14, i64 304, !14, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !11, i64 336, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !7, i64 424, !7, i64 428}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"sqlite3_mem_methods", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"sqlite3_mutex_methods", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64}
!13 = !{!"sqlite3_pcache_methods2", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96}
!14 = !{!"long long", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"Mem0Global", !11, i64 0, !14, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36}
!18 = !{!17, !14, i64 8}
!19 = !{!6, !11, i64 56}


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