; LLVM IR from ctlst-tech/catpilot :: os/freertos/memmang (heap_5)

; 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.A_BLOCK_LINK = type { ptr, i64 }

@pxEnd = external hidden global ptr, align 8
@xBlockAllocatedBit = external hidden global i64, align 8
@xFreeBytesRemaining = external hidden global i64, align 8
@xStart = external hidden global %struct.A_BLOCK_LINK, align 8
@xMinimumEverFreeBytesRemaining = external hidden global i64, align 8
@xNumberOfSuccessfulAllocations = external hidden global i64, align 8

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

9:                                                ; preds = %1
  call void @vPortRaiseBASEPRI()
  br label %10

10:                                               ; preds = %10, %9
  br label %10

11:                                               ; preds = %1
  call void @vTaskSuspendAll()
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = load i64, ptr @xBlockAllocatedBit, align 8, !tbaa !5
  %14 = and i64 %12, %13
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %16, label %138

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

19:                                               ; preds = %16
  %20 = load i64, ptr %2, align 8, !tbaa !5
  %21 = add i64 %20, 16
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp ugt i64 %21, %22
  br i1 %23, label %24, label %48

24:                                               ; preds = %19
  %25 = load i64, ptr %2, align 8, !tbaa !5
  %26 = add i64 %25, 16
  store i64 %26, ptr %2, align 8, !tbaa !5
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = and i64 %27, 7
  %29 = icmp ne i64 %28, 0
  br i1 %29, label %30, label %46

30:                                               ; preds = %24
  %31 = load i64, ptr %2, align 8, !tbaa !5
  %32 = load i64, ptr %2, align 8, !tbaa !5
  %33 = and i64 %32, 7
  %34 = sub i64 8, %33
  %35 = add i64 %31, %34
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %37 = icmp ugt i64 %35, %36
  br i1 %37, label %38, label %44

38:                                               ; preds = %30
  %39 = load i64, ptr %2, align 8, !tbaa !5
  %40 = and i64 %39, 7
  %41 = sub i64 8, %40
  %42 = load i64, ptr %2, align 8, !tbaa !5
  %43 = add i64 %42, %41
  store i64 %43, ptr %2, align 8, !tbaa !5
  br label %45

44:                                               ; preds = %30
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %44, %38
  br label %47

46:                                               ; preds = %24
  br label %47

47:                                               ; preds = %46, %45
  br label %49

48:                                               ; preds = %19, %16
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %48, %47
  %50 = load i64, ptr %2, align 8, !tbaa !5
  %51 = icmp ugt i64 %50, 0
  br i1 %51, label %52, label %136

52:                                               ; preds = %49
  %53 = load i64, ptr %2, align 8, !tbaa !5
  %54 = load i64, ptr @xFreeBytesRemaining, align 8, !tbaa !5
  %55 = icmp ule i64 %53, %54
  br i1 %55, label %56, label %136

56:                                               ; preds = %52
  store ptr @xStart, ptr %4, align 8, !tbaa !9
  %57 = load ptr, ptr @xStart, align 8, !tbaa !11
  store ptr %57, ptr %3, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %71, %56
  %59 = load ptr, ptr %3, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !13
  %62 = load i64, ptr %2, align 8, !tbaa !5
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %64, label %69

64:                                               ; preds = %58
  %65 = load ptr, ptr %3, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = icmp ne ptr %67, null
  br label %69

69:                                               ; preds = %64, %58
  %70 = phi i1 [ false, %58 ], [ %68, %64 ]
  br i1 %70, label %71, label %76

71:                                               ; preds = %69
  %72 = load ptr, ptr %3, align 8, !tbaa !9
  store ptr %72, ptr %4, align 8, !tbaa !9
  %73 = load ptr, ptr %3, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  store ptr %75, ptr %3, align 8, !tbaa !9
  br label %58, !llvm.loop !14

76:                                               ; preds = %69
  %77 = load ptr, ptr %3, align 8, !tbaa !9
  %78 = load ptr, ptr @pxEnd, align 8, !tbaa !9
  %79 = icmp ne ptr %77, %78
  br i1 %79, label %80, label %134

80:                                               ; preds = %76
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  store ptr %84, ptr %6, align 8, !tbaa !9
  %85 = load ptr, ptr %3, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %88, i32 0, i32 0
  store ptr %87, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %3, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %90, i32 0, i32 1
  %92 = load i64, ptr %91, align 8, !tbaa !13
  %93 = load i64, ptr %2, align 8, !tbaa !5
  %94 = sub i64 %92, %93
  %95 = icmp ugt i64 %94, 32
  br i1 %95, label %96, label %111

96:                                               ; preds = %80
  %97 = load ptr, ptr %3, align 8, !tbaa !9
  %98 = load i64, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %97, i64 %98
  store ptr %99, ptr %5, align 8, !tbaa !9
  %100 = load ptr, ptr %3, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !13
  %103 = load i64, ptr %2, align 8, !tbaa !5
  %104 = sub i64 %102, %103
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %105, i32 0, i32 1
  store i64 %104, ptr %106, align 8, !tbaa !13
  %107 = load i64, ptr %2, align 8, !tbaa !5
  %108 = load ptr, ptr %3, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %108, i32 0, i32 1
  store i64 %107, ptr %109, align 8, !tbaa !13
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  call void @prvInsertBlockIntoFreeList(ptr noundef %110)
  br label %112

111:                                              ; preds = %80
  br label %112

112:                                              ; preds = %111, %96
  %113 = load ptr, ptr %3, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %113, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !13
  %116 = load i64, ptr @xFreeBytesRemaining, align 8, !tbaa !5
  %117 = sub i64 %116, %115
  store i64 %117, ptr @xFreeBytesRemaining, align 8, !tbaa !5
  %118 = load i64, ptr @xFreeBytesRemaining, align 8, !tbaa !5
  %119 = load i64, ptr @xMinimumEverFreeBytesRemaining, align 8, !tbaa !5
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %112
  %122 = load i64, ptr @xFreeBytesRemaining, align 8, !tbaa !5
  store i64 %122, ptr @xMinimumEverFreeBytesRemaining, align 8, !tbaa !5
  br label %124

123:                                              ; preds = %112
  br label %124

124:                                              ; preds = %123, %121
  %125 = load i64, ptr @xBlockAllocatedBit, align 8, !tbaa !5
  %126 = load ptr, ptr %3, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %126, i32 0, i32 1
  %128 = load i64, ptr %127, align 8, !tbaa !13
  %129 = or i64 %128, %125
  store i64 %129, ptr %127, align 8, !tbaa !13
  %130 = load ptr, ptr %3, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.A_BLOCK_LINK, ptr %130, i32 0, i32 0
  store ptr null, ptr %131, align 8, !tbaa !11
  %132 = load i64, ptr @xNumberOfSuccessfulAllocations, align 8, !tbaa !5
  %133 = add i64 %132, 1
  store i64 %133, ptr @xNumberOfSuccessfulAllocations, align 8, !tbaa !5
  br label %135

134:                                              ; preds = %76
  br label %135

135:                                              ; preds = %134, %124
  br label %137

136:                                              ; preds = %52, %49
  br label %137

137:                                              ; preds = %136, %135
  br label %139

138:                                              ; preds = %11
  br label %139

139:                                              ; preds = %138, %137
  %140 = call i64 @xTaskResumeAll()
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  %142 = icmp eq ptr %141, null
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  call void @vApplicationMallocFailedHook()
  br label %145

144:                                              ; preds = %139
  br label %145

145:                                              ; preds = %144, %143
  %146 = load ptr, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret ptr %146
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @vPortRaiseBASEPRI() #2

declare void @vTaskSuspendAll() #3

; Function Attrs: nounwind uwtable
declare hidden void @prvInsertBlockIntoFreeList(ptr noundef) #0

declare i64 @xTaskResumeAll() #3

declare void @vApplicationMallocFailedHook() #3

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

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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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 = { "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 = !{!"long", !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, !10, i64 0}
!12 = !{!"A_BLOCK_LINK", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"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.A_BLOCK_LINK = type { ptr, i64 }

@pxEnd = external hidden local_unnamed_addr global ptr, align 8
@xBlockAllocatedBit = external hidden local_unnamed_addr global i64, align 8
@xFreeBytesRemaining = external hidden local_unnamed_addr global i64, align 8
@xStart = external hidden local_unnamed_addr global %struct.A_BLOCK_LINK, align 8
@xMinimumEverFreeBytesRemaining = external hidden local_unnamed_addr global i64, align 8
@xNumberOfSuccessfulAllocations = external hidden local_unnamed_addr global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local ptr @pvPortMalloc(i64 noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @pxEnd, align 8, !tbaa !5
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  tail call void @vPortRaiseBASEPRI()
  br label %5

5:                                                ; preds = %5, %4
  br label %5

6:                                                ; preds = %1
  tail call void @vTaskSuspendAll() #3
  %7 = load i64, ptr @xBlockAllocatedBit, align 8, !tbaa !9
  %8 = and i64 %7, %0
  %9 = icmp eq i64 %8, 0
  %10 = add i64 %0, -1
  %11 = icmp ult i64 %10, -17
  %or.cond = and i1 %11, %9
  br i1 %or.cond, label %12, label %.thread

12:                                               ; preds = %6
  %13 = add nuw i64 %0, 16
  %14 = and i64 %0, 7
  %.not46 = icmp eq i64 %14, 0
  %15 = and i64 %0, -8
  %16 = add i64 %15, 24
  %17 = icmp ugt i64 %16, %13
  %. = select i1 %17, i64 %16, i64 0
  %.036 = select i1 %.not46, i64 %13, i64 %.
  %18 = load i64, ptr @xFreeBytesRemaining, align 8
  %19 = freeze i64 %18
  %20 = add i64 %.036, -1
  %or.cond.not = icmp ult i64 %20, %19
  br i1 %or.cond.not, label %21, label %.thread

21:                                               ; preds = %12
  %22 = load ptr, ptr @xStart, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !13
  %25 = icmp ult i64 %24, %.036
  br i1 %25, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %21
  %26 = load ptr, ptr %22, align 8, !tbaa !11
  %.not4975 = icmp eq ptr %26, null
  br i1 %.not4975, label %.critedge, label %.lr.ph77, !llvm.loop !14

.lr.ph77:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %27 = phi ptr [ %31, %.lr.ph ], [ %26, %.lr.ph.preheader ]
  %.0386376 = phi ptr [ %27, %.lr.ph ], [ %22, %.lr.ph.preheader ]
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !13
  %30 = icmp ult i64 %29, %.036
  br i1 %30, label %.lr.ph, label %.critedge, !llvm.loop !14

.lr.ph:                                           ; preds = %.lr.ph77
  %31 = load ptr, ptr %27, align 8, !tbaa !11
  %.not49 = icmp eq ptr %31, null
  br i1 %.not49, label %.critedge, label %.lr.ph77, !llvm.loop !14

.critedge:                                        ; preds = %.lr.ph77, %.lr.ph, %.lr.ph.preheader, %21
  %.038.lcssa62 = phi ptr [ %22, %21 ], [ %22, %.lr.ph.preheader ], [ %27, %.lr.ph ], [ %27, %.lr.ph77 ]
  %.037.lcssa = phi ptr [ @xStart, %21 ], [ @xStart, %.lr.ph.preheader ], [ %.0386376, %.lr.ph ], [ %.0386376, %.lr.ph77 ]
  %.lcssa = phi i64 [ %24, %21 ], [ %24, %.lr.ph.preheader ], [ %29, %.lr.ph ], [ %29, %.lr.ph77 ]
  %32 = getelementptr inbounds i8, ptr %.038.lcssa62, i64 8
  %33 = load ptr, ptr @pxEnd, align 8, !tbaa !5
  %.not50 = icmp eq ptr %.038.lcssa62, %33
  br i1 %.not50, label %.thread, label %34

34:                                               ; preds = %.critedge
  %35 = load ptr, ptr %.037.lcssa, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %.038.lcssa62, align 8, !tbaa !11
  store ptr %37, ptr %.037.lcssa, align 8, !tbaa !11
  %38 = sub i64 %.lcssa, %.036
  %39 = icmp ugt i64 %38, 32
  br i1 %39, label %40, label %43

40:                                               ; preds = %34
  %41 = getelementptr inbounds i8, ptr %.038.lcssa62, i64 %.036
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  store i64 %38, ptr %42, align 8, !tbaa !13
  store i64 %.036, ptr %32, align 8, !tbaa !13
  tail call void @prvInsertBlockIntoFreeList(ptr noundef nonnull %41)
  br label %43

43:                                               ; preds = %34, %40
  %44 = load i64, ptr %32, align 8, !tbaa !13
  %45 = load i64, ptr @xFreeBytesRemaining, align 8, !tbaa !9
  %46 = sub i64 %45, %44
  store i64 %46, ptr @xFreeBytesRemaining, align 8, !tbaa !9
  %47 = load i64, ptr @xMinimumEverFreeBytesRemaining, align 8, !tbaa !9
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %43
  store i64 %46, ptr @xMinimumEverFreeBytesRemaining, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %49, %43
  %51 = load i64, ptr @xBlockAllocatedBit, align 8, !tbaa !9
  %52 = or i64 %44, %51
  store i64 %52, ptr %32, align 8, !tbaa !13
  store ptr null, ptr %.038.lcssa62, align 8, !tbaa !11
  %53 = load i64, ptr @xNumberOfSuccessfulAllocations, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr @xNumberOfSuccessfulAllocations, align 8, !tbaa !9
  %55 = tail call i64 @xTaskResumeAll() #3
  br label %57

.thread:                                          ; preds = %.critedge, %12, %6
  %56 = tail call i64 @xTaskResumeAll() #3
  tail call void @vApplicationMallocFailedHook() #3
  br label %57

57:                                               ; preds = %50, %.thread
  %.058 = phi ptr [ %36, %50 ], [ null, %.thread ]
  ret ptr %.058
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @vPortRaiseBASEPRI() local_unnamed_addr #1

declare void @vTaskSuspendAll() local_unnamed_addr #2

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

declare i64 @xTaskResumeAll() local_unnamed_addr #2

declare void @vApplicationMallocFailedHook() local_unnamed_addr #2

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" }
attributes #1 = { alwaysinline 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 = { "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", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"A_BLOCK_LINK", !6, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass