; LLVM IR from rociodellasala/TP3_SO :: Kernel (heap)

; 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.kernelHeapHeader = type { i32, i32, [10 x i32], [50 x %struct.ProcessSlot], i32, [10 x i32], [100 x %struct.ThreadSlot], i32, [100 x %struct.s_mutex], i32, [10 x i32], [500 x %struct.s_pipe], i32, [10 x i32], [1000 x %struct.s_heapPage] }
%struct.ProcessSlot = type { ptr, %struct.Process }
%struct.Process = type { i32, i32, [30 x i32], i32, i32, [50 x i8], [20 x ptr], i32, ptr, ptr, ptr, [10 x ptr], i32, ptr, ptr }
%struct.ThreadSlot = type { ptr, %struct.Thread }
%struct.Thread = type { i32, ptr, ptr, ptr, i32, i32 }
%struct.s_mutex = type { i8, i8, [20 x i8], [10 x i32], [10 x i32] }
%struct.s_pipe = type { i32, i32, i32, i8, i8, i8, i8, i8, [40 x i8], i32, i32 }
%struct.s_heapPage = type { ptr, i32, i32, ptr }

@kernelHeader = external dso_local global ptr, align 8

; 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 uwtable
define dso_local ptr @findAvaiableHeapKernelPage(i32 noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 496, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 48, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 68, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 104, ptr %8, align 4, !tbaa !5
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = load i32, ptr %5, align 4, !tbaa !5
  %12 = icmp eq i32 %10, %11
  br i1 %12, label %13, label %41

13:                                               ; preds = %1
  %14 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.kernelHeapHeader, ptr %14, i32 0, i32 2
  %16 = getelementptr inbounds [10 x i32], ptr %15, i64 0, i64 0
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = icmp eq i32 %17, -1
  br i1 %18, label %19, label %28

19:                                               ; preds = %13
  %20 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.kernelHeapHeader, ptr %20, i32 0, i32 3
  %22 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.kernelHeapHeader, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 4, !tbaa !11
  %26 = sext i32 %24 to i64
  %27 = getelementptr inbounds [50 x %struct.ProcessSlot], ptr %21, i64 0, i64 %26
  store ptr %27, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

28:                                               ; preds = %13
  %29 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.kernelHeapHeader, ptr %29, i32 0, i32 3
  %31 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.kernelHeapHeader, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds [10 x i32], ptr %32, i64 0, i64 0
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x %struct.ProcessSlot], ptr %30, i64 0, i64 %35
  store ptr %36, ptr %4, align 8, !tbaa !9
  %37 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.kernelHeapHeader, ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds [10 x i32], ptr %38, i64 0, i64 0
  call void @moveFreeArray(ptr noundef %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %40, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

41:                                               ; preds = %1
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = icmp eq i32 %42, %43
  br i1 %44, label %45, label %73

45:                                               ; preds = %41
  %46 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.kernelHeapHeader, ptr %46, i32 0, i32 5
  %48 = getelementptr inbounds [10 x i32], ptr %47, i64 0, i64 0
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = icmp eq i32 %49, -1
  br i1 %50, label %51, label %60

51:                                               ; preds = %45
  %52 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.kernelHeapHeader, ptr %52, i32 0, i32 6
  %54 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.kernelHeapHeader, ptr %54, i32 0, i32 4
  %56 = load i32, ptr %55, align 8, !tbaa !13
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %55, align 8, !tbaa !13
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds [100 x %struct.ThreadSlot], ptr %53, i64 0, i64 %58
  store ptr %59, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

60:                                               ; preds = %45
  %61 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.kernelHeapHeader, ptr %61, i32 0, i32 6
  %63 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.kernelHeapHeader, ptr %63, i32 0, i32 5
  %65 = getelementptr inbounds [10 x i32], ptr %64, i64 0, i64 0
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100 x %struct.ThreadSlot], ptr %62, i64 0, i64 %67
  store ptr %68, ptr %4, align 8, !tbaa !9
  %69 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.kernelHeapHeader, ptr %69, i32 0, i32 5
  %71 = getelementptr inbounds [10 x i32], ptr %70, i64 0, i64 0
  call void @moveFreeArray(ptr noundef %71)
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %72, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

73:                                               ; preds = %41
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %77, label %105

77:                                               ; preds = %73
  %78 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.kernelHeapHeader, ptr %78, i32 0, i32 10
  %80 = getelementptr inbounds [10 x i32], ptr %79, i64 0, i64 0
  %81 = load i32, ptr %80, align 8, !tbaa !5
  %82 = icmp eq i32 %81, -1
  br i1 %82, label %83, label %92

83:                                               ; preds = %77
  %84 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.kernelHeapHeader, ptr %84, i32 0, i32 11
  %86 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.kernelHeapHeader, ptr %86, i32 0, i32 9
  %88 = load i32, ptr %87, align 4, !tbaa !14
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !14
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds [500 x %struct.s_pipe], ptr %85, i64 0, i64 %90
  store ptr %91, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

92:                                               ; preds = %77
  %93 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.kernelHeapHeader, ptr %93, i32 0, i32 11
  %95 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.kernelHeapHeader, ptr %95, i32 0, i32 10
  %97 = getelementptr inbounds [10 x i32], ptr %96, i64 0, i64 0
  %98 = load i32, ptr %97, align 8, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [500 x %struct.s_pipe], ptr %94, i64 0, i64 %99
  store ptr %100, ptr %4, align 8, !tbaa !9
  %101 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.kernelHeapHeader, ptr %101, i32 0, i32 10
  %103 = getelementptr inbounds [10 x i32], ptr %102, i64 0, i64 0
  call void @moveFreeArray(ptr noundef %103)
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %104, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

105:                                              ; preds = %73
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = icmp eq i32 %106, %107
  br i1 %108, label %109, label %118

109:                                              ; preds = %105
  %110 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.kernelHeapHeader, ptr %110, i32 0, i32 8
  %112 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.kernelHeapHeader, ptr %112, i32 0, i32 7
  %114 = load i32, ptr %113, align 8, !tbaa !15
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !15
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds [100 x %struct.s_mutex], ptr %111, i64 0, i64 %116
  store ptr %117, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

118:                                              ; preds = %105
  %119 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.kernelHeapHeader, ptr %119, i32 0, i32 13
  %121 = getelementptr inbounds [10 x i32], ptr %120, i64 0, i64 0
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = icmp eq i32 %122, -1
  br i1 %123, label %124, label %133

124:                                              ; preds = %118
  %125 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.kernelHeapHeader, ptr %125, i32 0, i32 14
  %127 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.kernelHeapHeader, ptr %127, i32 0, i32 12
  %129 = load i32, ptr %128, align 8, !tbaa !16
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %128, align 8, !tbaa !16
  %131 = sext i32 %129 to i64
  %132 = getelementptr inbounds [1000 x %struct.s_heapPage], ptr %126, i64 0, i64 %131
  store ptr %132, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

133:                                              ; preds = %118
  %134 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.kernelHeapHeader, ptr %134, i32 0, i32 14
  %136 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.kernelHeapHeader, ptr %136, i32 0, i32 13
  %138 = getelementptr inbounds [10 x i32], ptr %137, i64 0, i64 0
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [1000 x %struct.s_heapPage], ptr %135, i64 0, i64 %140
  store ptr %141, ptr %4, align 8, !tbaa !9
  %142 = load ptr, ptr @kernelHeader, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.kernelHeapHeader, ptr %142, i32 0, i32 13
  %144 = getelementptr inbounds [10 x i32], ptr %143, i64 0, i64 0
  call void @moveFreeArray(ptr noundef %144)
  %145 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %145, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %146

146:                                              ; preds = %133, %124, %109, %92, %83, %60, %51, %28, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  %147 = load ptr, ptr %2, align 8
  ret ptr %147
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 4}
!12 = !{!"kernelHeapHeader", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 48, !6, i64 24848, !7, i64 24852, !7, i64 24896, !6, i64 29696, !7, i64 29700, !6, i64 40100, !7, i64 40104, !7, i64 40144, !6, i64 74144, !7, i64 74148, !7, i64 74192}
!13 = !{!12, !6, i64 24848}
!14 = !{!12, !6, i64 40100}
!15 = !{!12, !6, i64 29696}
!16 = !{!12, !6, i64 74144}


; 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.ProcessSlot = type { ptr, %struct.Process }
%struct.Process = type { i32, i32, [30 x i32], i32, i32, [50 x i8], [20 x ptr], i32, ptr, ptr, ptr, [10 x ptr], i32, ptr, ptr }
%struct.ThreadSlot = type { ptr, %struct.Thread }
%struct.Thread = type { i32, ptr, ptr, ptr, i32, i32 }
%struct.s_pipe = type { i32, i32, i32, i8, i8, i8, i8, i8, [40 x i8], i32, i32 }
%struct.s_mutex = type { i8, i8, [20 x i8], [10 x i32], [10 x i32] }
%struct.s_heapPage = type { ptr, i32, i32, ptr }

@kernelHeader = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local nonnull ptr @findAvaiableHeapKernelPage(i32 noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @kernelHeader, align 8, !tbaa !5
  switch i32 %0, label %52 [
    i32 496, label %3
    i32 48, label %17
    i32 68, label %31
    i32 104, label %45
  ]

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp eq i32 %5, -1
  %7 = getelementptr inbounds i8, ptr %2, i64 48
  br i1 %6, label %8, label %14

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %9, align 4, !tbaa !11
  %12 = sext i32 %10 to i64
  %13 = getelementptr inbounds [50 x %struct.ProcessSlot], ptr %7, i64 0, i64 %12
  br label %66

14:                                               ; preds = %3
  %15 = sext i32 %5 to i64
  %16 = getelementptr inbounds [50 x %struct.ProcessSlot], ptr %7, i64 0, i64 %15
  tail call void @moveFreeArray(ptr noundef nonnull %4)
  br label %66

17:                                               ; preds = %1
  %18 = getelementptr inbounds i8, ptr %2, i64 24852
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = icmp eq i32 %19, -1
  %21 = getelementptr inbounds i8, ptr %2, i64 24896
  br i1 %20, label %22, label %28

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %2, i64 24848
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 8, !tbaa !13
  %26 = sext i32 %24 to i64
  %27 = getelementptr inbounds [100 x %struct.ThreadSlot], ptr %21, i64 0, i64 %26
  br label %66

28:                                               ; preds = %17
  %29 = sext i32 %19 to i64
  %30 = getelementptr inbounds [100 x %struct.ThreadSlot], ptr %21, i64 0, i64 %29
  tail call void @moveFreeArray(ptr noundef nonnull %18)
  br label %66

31:                                               ; preds = %1
  %32 = getelementptr inbounds i8, ptr %2, i64 40104
  %33 = load i32, ptr %32, align 8, !tbaa !9
  %34 = icmp eq i32 %33, -1
  %35 = getelementptr inbounds i8, ptr %2, i64 40144
  br i1 %34, label %36, label %42

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %2, i64 40100
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !14
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [500 x %struct.s_pipe], ptr %35, i64 0, i64 %40
  br label %66

42:                                               ; preds = %31
  %43 = sext i32 %33 to i64
  %44 = getelementptr inbounds [500 x %struct.s_pipe], ptr %35, i64 0, i64 %43
  tail call void @moveFreeArray(ptr noundef nonnull %32)
  br label %66

45:                                               ; preds = %1
  %46 = getelementptr inbounds i8, ptr %2, i64 29700
  %47 = getelementptr inbounds i8, ptr %2, i64 29696
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 8, !tbaa !15
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds [100 x %struct.s_mutex], ptr %46, i64 0, i64 %50
  br label %66

52:                                               ; preds = %1
  %53 = getelementptr inbounds i8, ptr %2, i64 74148
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = icmp eq i32 %54, -1
  %56 = getelementptr inbounds i8, ptr %2, i64 74192
  br i1 %55, label %57, label %63

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %2, i64 74144
  %59 = load i32, ptr %58, align 8, !tbaa !16
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 8, !tbaa !16
  %61 = sext i32 %59 to i64
  %62 = getelementptr inbounds [1000 x %struct.s_heapPage], ptr %56, i64 0, i64 %61
  br label %66

63:                                               ; preds = %52
  %64 = sext i32 %54 to i64
  %65 = getelementptr inbounds [1000 x %struct.s_heapPage], ptr %56, i64 0, i64 %64
  tail call void @moveFreeArray(ptr noundef nonnull %53)
  br label %66

66:                                               ; preds = %63, %57, %45, %42, %36, %28, %22, %14, %8
  %.0 = phi ptr [ %13, %8 ], [ %16, %14 ], [ %27, %22 ], [ %30, %28 ], [ %41, %36 ], [ %44, %42 ], [ %51, %45 ], [ %62, %57 ], [ %65, %63 ]
  ret ptr %.0
}

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

attributes #0 = { 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" }

!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, !10, i64 4}
!12 = !{!"kernelHeapHeader", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 48, !10, i64 24848, !7, i64 24852, !7, i64 24896, !10, i64 29696, !7, i64 29700, !10, i64 40100, !7, i64 40104, !7, i64 40144, !10, i64 74144, !7, i64 74148, !7, i64 74192}
!13 = !{!12, !10, i64 24848}
!14 = !{!12, !10, i64 40100}
!15 = !{!12, !10, i64 29696}
!16 = !{!12, !10, i64 74144}


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