; LLVM IR from kala13x/libxutils :: tools (xtop)

; 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.XCPUStats = type { [3 x i32], i16, %struct.XProcInfo, %struct.XCPUInfo, %struct.XArray_ }
%struct.XProcInfo = type { i32, i32, i64, i64, i64, i64, i64 }
%struct.XCPUInfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct.XArray_ = type { ptr, ptr, i32, ptr, i8, i8, i8, i64, i64 }
%struct.XString = type { ptr, i64, i64, i16, i8, i8 }

@.str.179 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.185 = 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

declare float @XU32ToFloat(i32 noundef) #1

declare ptr @XArray_GetData(ptr noundef, i64 noundef) #1

declare void @XArray_Destroy(ptr noundef) #1

declare i32 @XString_Append(ptr noundef, ptr noundef, ...) #1

declare i64 @XArray_Used(ptr noundef) #1

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

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

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 0
  %17 = getelementptr inbounds [3 x i32], ptr %16, i64 0, i64 0
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = call float @XU32ToFloat(i32 noundef %18)
  %20 = fpext float %19 to double
  %21 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 0
  %22 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 1
  %23 = load i32, ptr %22, align 4, !tbaa !9
  %24 = call float @XU32ToFloat(i32 noundef %23)
  %25 = fpext float %24 to double
  %26 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 0
  %27 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 2
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = call float @XU32ToFloat(i32 noundef %28)
  %30 = fpext float %29 to double
  %31 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %15, ptr noundef @.str.182, double noundef %20, double noundef %25, double noundef %30)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.XString, ptr %32, i32 0, i32 3
  %34 = load i16, ptr %33, align 8, !tbaa !11
  %35 = sext i16 %34 to i32
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %14
  %38 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  call void @XArray_Destroy(ptr noundef %38)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %115

39:                                               ; preds = %14
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 2
  %42 = getelementptr inbounds %struct.XProcInfo, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = call float @XU32ToFloat(i32 noundef %43)
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 2
  %47 = getelementptr inbounds %struct.XProcInfo, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !20
  %49 = call float @XU32ToFloat(i32 noundef %48)
  %50 = fpext float %49 to double
  %51 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %40, ptr noundef @.str.183, double noundef %45, double noundef %50)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.XString, ptr %52, i32 0, i32 3
  %54 = load i16, ptr %53, align 8, !tbaa !11
  %55 = sext i16 %54 to i32
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %66, label %57

57:                                               ; preds = %39
  %58 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 3
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call i32 @XTOPApp_AppendCoreJson(ptr noundef %58, ptr noundef %59)
  %61 = icmp slt i32 %60, 0
  br i1 %61, label %66, label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %63, ptr noundef @.str.184)
  %65 = icmp slt i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %62, %57, %39
  %67 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  call void @XArray_Destroy(ptr noundef %67)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %115

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %69 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  %70 = call i64 @XArray_Used(ptr noundef %69)
  store i64 %70, ptr %9, align 8, !tbaa !21
  store i64 0, ptr %8, align 8, !tbaa !21
  br label %71

71:                                               ; preds = %102, %68
  %72 = load i64, ptr %8, align 8, !tbaa !21
  %73 = load i64, ptr %9, align 8, !tbaa !21
  %74 = icmp ult i64 %72, %73
  br i1 %74, label %75, label %105

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %76 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  %77 = load i64, ptr %8, align 8, !tbaa !21
  %78 = call ptr @XArray_GetData(ptr noundef %76, i64 noundef %77)
  store ptr %78, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %82

81:                                               ; preds = %75
  store i32 4, ptr %7, align 4
  br label %99

82:                                               ; preds = %75
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = call i32 @XTOPApp_AppendCoreJson(ptr noundef %83, ptr noundef %84)
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %96, label %87

87:                                               ; preds = %82
  %88 = load i64, ptr %8, align 8, !tbaa !21
  %89 = add i64 %88, 1
  %90 = load i64, ptr %9, align 8, !tbaa !21
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %87
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %93, ptr noundef @.str.179)
  %95 = icmp slt i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %92, %82
  %97 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  call void @XArray_Destroy(ptr noundef %97)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %99

98:                                               ; preds = %92, %87
  store i32 0, ptr %7, align 4
  br label %99

99:                                               ; preds = %98, %96, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %100 = load i32, ptr %7, align 4
  switch i32 %100, label %113 [
    i32 0, label %101
    i32 4, label %102
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101, %99
  %103 = load i64, ptr %8, align 8, !tbaa !21
  %104 = add i64 %103, 1
  store i64 %104, ptr %8, align 8, !tbaa !21
  br label %71, !llvm.loop !22

105:                                              ; preds = %71
  %106 = getelementptr inbounds %struct.XCPUStats, ptr %6, i32 0, i32 4
  call void @XArray_Destroy(ptr noundef %106)
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %107, ptr noundef @.str.185)
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.XString, ptr %109, i32 0, i32 3
  %111 = load i16, ptr %110, align 8, !tbaa !11
  %112 = sext i16 %111 to i32
  store i32 %112, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %113

113:                                              ; preds = %105, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %115

114:                                              ; preds = %2
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %115

115:                                              ; preds = %114, %113, %66, %37
  call void @llvm.lifetime.end.p0(i64 216, ptr %6) #3
  %116 = load i32, ptr %3, align 4
  ret i32 %116
}

declare i32 @XMon_GetCPUStats(ptr noundef, ptr noundef) #1

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 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 24}
!12 = !{!"XString", !6, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !7, i64 26, !7, i64 27}
!13 = !{!"long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !10, i64 20}
!16 = !{!"XCPUStats", !7, i64 0, !14, i64 12, !17, i64 16, !18, i64 64, !19, i64 160}
!17 = !{!"XProcInfo", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!18 = !{!"XCPUInfo", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !13, i64 88}
!19 = !{!"XArray_", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !13, i64 40, !13, i64 48}
!20 = !{!16, !10, i64 16}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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.XCPUStats = type { [3 x i32], i16, %struct.XProcInfo, %struct.XCPUInfo, %struct.XArray_ }
%struct.XProcInfo = type { i32, i32, i64, i64, i64, i64, i64 }
%struct.XCPUInfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct.XArray_ = type { ptr, ptr, i32, ptr, i8, i8, i8, i64, i64 }

@.str.179 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

declare float @XU32ToFloat(i32 noundef) local_unnamed_addr #1

declare ptr @XArray_GetData(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @XArray_Destroy(ptr noundef) local_unnamed_addr #1

declare i32 @XString_Append(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare i64 @XArray_Used(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @XTOPApp_AppendCPUJson(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.XCPUStats, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %3) #3
  %4 = call i32 @XMon_GetCPUStats(ptr noundef %0, ptr noundef nonnull %3) #3
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %6, label %64

6:                                                ; preds = %2
  %7 = load i32, ptr %3, align 8, !tbaa !5
  %8 = call float @XU32ToFloat(i32 noundef %7) #3
  %9 = fpext float %8 to double
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = call float @XU32ToFloat(i32 noundef %11) #3
  %13 = fpext float %12 to double
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = call float @XU32ToFloat(i32 noundef %15) #3
  %17 = fpext float %16 to double
  %18 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %1, ptr noundef nonnull @.str.182, double noundef %9, double noundef %13, double noundef %17) #3
  %19 = getelementptr inbounds i8, ptr %1, i64 24
  %20 = load i16, ptr %19, align 8, !tbaa !9
  %21 = icmp slt i16 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %6
  %23 = getelementptr inbounds i8, ptr %3, i64 160
  call void @XArray_Destroy(ptr noundef nonnull %23) #3
  br label %64

24:                                               ; preds = %6
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  %26 = getelementptr inbounds i8, ptr %3, i64 20
  %27 = load i32, ptr %26, align 4, !tbaa !14
  %28 = call float @XU32ToFloat(i32 noundef %27) #3
  %29 = fpext float %28 to double
  %30 = load i32, ptr %25, align 8, !tbaa !19
  %31 = call float @XU32ToFloat(i32 noundef %30) #3
  %32 = fpext float %31 to double
  %33 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef nonnull %1, ptr noundef nonnull @.str.183, double noundef %29, double noundef %32) #3
  %34 = load i16, ptr %19, align 8, !tbaa !9
  %35 = icmp slt i16 %34, 0
  br i1 %35, label %43, label %36

36:                                               ; preds = %24
  %37 = getelementptr inbounds i8, ptr %3, i64 64
  %38 = call i32 @XTOPApp_AppendCoreJson(ptr noundef nonnull %37, ptr noundef nonnull %1)
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %43, label %40

40:                                               ; preds = %36
  %41 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef nonnull %1, ptr noundef nonnull @.str.184) #3
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %40, %36, %24
  %44 = getelementptr inbounds i8, ptr %3, i64 160
  call void @XArray_Destroy(ptr noundef nonnull %44) #3
  br label %64

45:                                               ; preds = %40
  %46 = getelementptr inbounds i8, ptr %3, i64 160
  %47 = call i64 @XArray_Used(ptr noundef nonnull %46) #3
  %.not = icmp eq i64 %47, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %45, %60
  %.02125 = phi i64 [ %.pre-phi, %60 ], [ 0, %45 ]
  %48 = call ptr @XArray_GetData(ptr noundef nonnull %46, i64 noundef %.02125) #3
  %49 = icmp eq ptr %48, null
  br i1 %49, label %.lr.ph._crit_edge, label %50

.lr.ph._crit_edge:                                ; preds = %.lr.ph
  %.pre = add nuw i64 %.02125, 1
  br label %60

50:                                               ; preds = %.lr.ph
  %51 = call i32 @XTOPApp_AppendCoreJson(ptr noundef nonnull %48, ptr noundef %1)
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %59, label %53

53:                                               ; preds = %50
  %54 = add nuw i64 %.02125, 1
  %55 = icmp ult i64 %54, %47
  br i1 %55, label %56, label %60

56:                                               ; preds = %53
  %57 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %1, ptr noundef nonnull @.str.179) #3
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %50, %56
  call void @XArray_Destroy(ptr noundef nonnull %46) #3
  br label %64

60:                                               ; preds = %.lr.ph._crit_edge, %56, %53
  %.pre-phi = phi i64 [ %.pre, %.lr.ph._crit_edge ], [ %54, %56 ], [ %54, %53 ]
  %exitcond.not = icmp eq i64 %.pre-phi, %47
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %60, %45
  call void @XArray_Destroy(ptr noundef nonnull %46) #3
  %61 = call i32 (ptr, ptr, ...) @XString_Append(ptr noundef %1, ptr noundef nonnull @.str.185) #3
  %62 = load i16, ptr %19, align 8, !tbaa !9
  %63 = sext i16 %62 to i32
  br label %64

64:                                               ; preds = %59, %2, %._crit_edge, %43, %22
  %.3 = phi i32 [ -1, %22 ], [ -1, %43 ], [ -1, %59 ], [ %63, %._crit_edge ], [ -1, %2 ]
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %3) #3
  ret i32 %.3
}

declare i32 @XMon_GetCPUStats(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 24}
!10 = !{!"XString", !11, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 26, !7, i64 27}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !6, i64 20}
!15 = !{!"XCPUStats", !7, i64 0, !13, i64 12, !16, i64 16, !17, i64 64, !18, i64 160}
!16 = !{!"XProcInfo", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!17 = !{!"XCPUInfo", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !12, i64 88}
!18 = !{!"XArray_", !11, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !12, i64 40, !12, i64 48}
!19 = !{!15, !6, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass