; LLVM IR from caryll/otfcc :: lib/table (COLR)

; 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.__caryll_vectorinterface_table_COLR = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.table_COLR = type { i64, i64, ptr }
%struct.colr_Mapping = type { %struct.otfcc_Handle, %struct.colr_LayerList }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.colr_LayerList = type { i64, i64, ptr }
%struct.colr_Layer = type { %struct.otfcc_Handle, i16 }

@table_iCOLR = external dso_local constant %struct.__caryll_vectorinterface_table_COLR, 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 @otfcc_buildCOLR(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.table_COLR, align 8
  %7 = alloca i16, align 2
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %25

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.table_COLR, ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %20, %2
  store ptr null, ptr %3, align 8
  br label %148

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #3
  %27 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_COLR, ptr @table_iCOLR, i32 0, i32 1), align 8, !tbaa !12
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void %27(ptr noundef %6, ptr noundef %28)
  %29 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_COLR, ptr @table_iCOLR, i32 0, i32 18), align 8, !tbaa !14
  call void %29(ptr noundef %6, ptr noundef @byGID)
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  store i16 0, ptr %7, align 2, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %30 = call ptr (i32, ...) @bk_new_Block(i32 noundef 0)
  store ptr %30, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %31 = call ptr (i32, ...) @bk_new_Block(i32 noundef 0)
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 1, ptr %11, align 8, !tbaa !17
  br label %32

32:                                               ; preds = %129, %26
  %33 = load i64, ptr %11, align 8, !tbaa !17
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %32
  %36 = load i64, ptr %10, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.table_COLR, ptr %6, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = icmp ult i64 %36, %38
  br label %40

40:                                               ; preds = %35, %32
  %41 = phi i1 [ false, %32 ], [ %39, %35 ]
  br i1 %41, label %43, label %42

42:                                               ; preds = %40
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %137

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %44 = getelementptr inbounds %struct.table_COLR, ptr %6, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = load i64, ptr %10, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.colr_Mapping, ptr %45, i64 %46
  store ptr %47, ptr %13, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %122, %43
  %49 = load i64, ptr %11, align 8, !tbaa !17
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %128

52:                                               ; preds = %48
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.colr_Mapping, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.otfcc_Handle, ptr %55, i32 0, i32 1
  %57 = load i16, ptr %56, align 4, !tbaa !19
  %58 = zext i16 %57 to i32
  %59 = load i16, ptr %7, align 2, !tbaa !15
  %60 = zext i16 %59 to i32
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.colr_Mapping, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.colr_LayerList, ptr %62, i32 0, i32 0
  %64 = load i64, ptr %63, align 8, !tbaa !23
  %65 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %53, i32 noundef 2, i32 noundef %58, i32 noundef 2, i32 noundef %60, i32 noundef 2, i64 noundef %64, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 1, ptr %15, align 8, !tbaa !17
  br label %66

66:                                               ; preds = %113, %52
  %67 = load i64, ptr %15, align 8, !tbaa !17
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %69, label %76

69:                                               ; preds = %66
  %70 = load i64, ptr %14, align 8, !tbaa !17
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.colr_Mapping, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %struct.colr_LayerList, ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !23
  %75 = icmp ult i64 %70, %74
  br label %76

76:                                               ; preds = %69, %66
  %77 = phi i1 [ false, %66 ], [ %75, %69 ]
  br i1 %77, label %79, label %78

78:                                               ; preds = %76
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %121

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.colr_Mapping, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %struct.colr_LayerList, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = load i64, ptr %14, align 8, !tbaa !17
  %85 = getelementptr inbounds %struct.colr_Layer, ptr %83, i64 %84
  store ptr %85, ptr %16, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %106, %79
  %87 = load i64, ptr %15, align 8, !tbaa !17
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %112

90:                                               ; preds = %86
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.colr_Layer, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.otfcc_Handle, ptr %93, i32 0, i32 1
  %95 = load i16, ptr %94, align 4, !tbaa !25
  %96 = zext i16 %95 to i32
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.colr_Layer, ptr %97, i32 0, i32 1
  %99 = load i16, ptr %98, align 8, !tbaa !27
  %100 = zext i16 %99 to i32
  %101 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %91, i32 noundef 2, i32 noundef %96, i32 noundef 2, i32 noundef %100, i32 noundef 0)
  %102 = load i16, ptr %7, align 2, !tbaa !15
  %103 = zext i16 %102 to i32
  %104 = add nsw i32 %103, 1
  %105 = trunc i32 %104 to i16
  store i16 %105, ptr %7, align 2, !tbaa !15
  br label %106

106:                                              ; preds = %90
  %107 = load i64, ptr %15, align 8, !tbaa !17
  %108 = icmp ne i64 %107, 0
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i32
  %111 = sext i32 %110 to i64
  store i64 %111, ptr %15, align 8, !tbaa !17
  br label %86, !llvm.loop !28

112:                                              ; preds = %89
  br label %113

113:                                              ; preds = %112
  %114 = load i64, ptr %15, align 8, !tbaa !17
  %115 = icmp ne i64 %114, 0
  %116 = xor i1 %115, true
  %117 = zext i1 %116 to i32
  %118 = sext i32 %117 to i64
  store i64 %118, ptr %15, align 8, !tbaa !17
  %119 = load i64, ptr %14, align 8, !tbaa !17
  %120 = add i64 %119, 1
  store i64 %120, ptr %14, align 8, !tbaa !17
  br label %66, !llvm.loop !30

121:                                              ; preds = %78
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %11, align 8, !tbaa !17
  %124 = icmp ne i64 %123, 0
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i32
  %127 = sext i32 %126 to i64
  store i64 %127, ptr %11, align 8, !tbaa !17
  br label %48, !llvm.loop !31

128:                                              ; preds = %51
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %11, align 8, !tbaa !17
  %131 = icmp ne i64 %130, 0
  %132 = xor i1 %131, true
  %133 = zext i1 %132 to i32
  %134 = sext i32 %133 to i64
  store i64 %134, ptr %11, align 8, !tbaa !17
  %135 = load i64, ptr %10, align 8, !tbaa !17
  %136 = add i64 %135, 1
  store i64 %136, ptr %10, align 8, !tbaa !17
  br label %32, !llvm.loop !32

137:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %138 = getelementptr inbounds %struct.table_COLR, ptr %6, i32 0, i32 0
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i16, ptr %7, align 2, !tbaa !15
  %143 = zext i16 %142 to i32
  %144 = call ptr (i32, ...) @bk_new_Block(i32 noundef 2, i32 noundef 0, i32 noundef 2, i64 noundef %139, i32 noundef 17, ptr noundef %140, i32 noundef 17, ptr noundef %141, i32 noundef 2, i32 noundef %143, i32 noundef 0)
  store ptr %144, ptr %17, align 8, !tbaa !5
  %145 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_COLR, ptr @table_iCOLR, i32 0, i32 3), align 8, !tbaa !33
  call void %145(ptr noundef %6)
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = call ptr @bk_build_Block(ptr noundef %146)
  store ptr %147, ptr %3, align 8
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #3
  br label %148

148:                                              ; preds = %137, %25
  %149 = load ptr, ptr %3, align 8
  ret ptr %149
}

; Function Attrs: nounwind uwtable
declare hidden i32 @byGID(ptr noundef, ptr noundef) #1

declare ptr @bk_new_Block(i32 noundef, ...) #2

declare ptr @bk_push(ptr noundef, i32 noundef, ...) #2

declare ptr @bk_build_Block(ptr noundef) #2

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 = { "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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"__caryll_vectorinterface_table_COLR", !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, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!14 = !{!13, !6, i64 144}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !6, i64 16}
!19 = !{!20, !16, i64 4}
!20 = !{!"", !21, i64 0, !10, i64 16}
!21 = !{!"otfcc_Handle", !22, i64 0, !16, i64 4, !6, i64 8}
!22 = !{!"int", !7, i64 0}
!23 = !{!20, !11, i64 16}
!24 = !{!20, !6, i64 32}
!25 = !{!26, !16, i64 4}
!26 = !{!"", !21, i64 0, !16, i64 16}
!27 = !{!26, !16, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = !{!13, !6, i64 24}


; 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.__caryll_vectorinterface_table_COLR = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.table_COLR = type { i64, i64, ptr }
%struct.colr_Mapping = type { %struct.otfcc_Handle, %struct.colr_LayerList }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.colr_LayerList = type { i64, i64, ptr }
%struct.colr_Layer = type { %struct.otfcc_Handle, i16 }

@table_iCOLR = external dso_local local_unnamed_addr constant %struct.__caryll_vectorinterface_table_COLR, align 8

; 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

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_buildCOLR(ptr noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = alloca %struct.table_COLR, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %45, label %4

4:                                                ; preds = %2
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %.not39 = icmp eq i64 %5, 0
  br i1 %.not39, label %45, label %6

6:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iCOLR, i64 8), align 8, !tbaa !11
  call void %7(ptr noundef nonnull %3, ptr noundef nonnull %0) #3
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iCOLR, i64 144), align 8, !tbaa !13
  call void %8(ptr noundef nonnull %3, ptr noundef nonnull @byGID) #3
  %9 = call ptr (i32, ...) @bk_new_Block(i32 noundef 0) #3
  %10 = call ptr (i32, ...) @bk_new_Block(i32 noundef 0) #3
  %11 = load i64, ptr %3, align 8
  %.not51 = icmp eq i64 %11, 0
  br i1 %.not51, label %._crit_edge, label %.lr.ph48

.lr.ph48:                                         ; preds = %6
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  br label %17

._crit_edge.loopexit:                             ; preds = %.critedge.loopexit
  %13 = zext i16 %.2.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %6
  %.031.lcssa = phi i32 [ 0, %6 ], [ %13, %._crit_edge.loopexit ]
  %.lcssa = phi i64 [ 0, %6 ], [ %30, %._crit_edge.loopexit ]
  %14 = call ptr (i32, ...) @bk_new_Block(i32 noundef 2, i32 noundef 0, i32 noundef 2, i64 noundef %.lcssa, i32 noundef 17, ptr noundef %10, i32 noundef 17, ptr noundef %9, i32 noundef 2, i32 noundef %.031.lcssa, i32 noundef 0) #3
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iCOLR, i64 24), align 8, !tbaa !14
  call void %15(ptr noundef nonnull %3) #3
  %16 = call ptr @bk_build_Block(ptr noundef %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  br label %45

17:                                               ; preds = %.lr.ph48, %.critedge.loopexit
  %.03147 = phi i16 [ 0, %.lr.ph48 ], [ %.2.lcssa, %.critedge.loopexit ]
  %.03546 = phi i64 [ 0, %.lr.ph48 ], [ %29, %.critedge.loopexit ]
  %18 = load ptr, ptr %12, align 8, !tbaa !15
  %19 = getelementptr inbounds %struct.colr_Mapping, ptr %18, i64 %.03546
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = getelementptr inbounds i8, ptr %19, i64 16
  %22 = getelementptr inbounds i8, ptr %19, i64 32
  %23 = load i16, ptr %20, align 4, !tbaa !16
  %24 = zext i16 %23 to i32
  %25 = zext i16 %.03147 to i32
  %26 = load i64, ptr %21, align 8, !tbaa !21
  %27 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %10, i32 noundef 2, i32 noundef %24, i32 noundef 2, i32 noundef %25, i32 noundef 2, i64 noundef %26, i32 noundef 0) #3
  %28 = load i64, ptr %21, align 8, !tbaa !21
  %.not52 = icmp eq i64 %28, 0
  br i1 %.not52, label %.critedge.loopexit, label %.lr.ph

.critedge.loopexit:                               ; preds = %.lr.ph, %17
  %.2.lcssa = phi i16 [ %.03147, %17 ], [ %41, %.lr.ph ]
  %29 = add nuw i64 %.03546, 1
  %30 = load i64, ptr %3, align 8
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %17, label %._crit_edge.loopexit, !llvm.loop !22

.lr.ph:                                           ; preds = %17, %.lr.ph
  %.244 = phi i16 [ %41, %.lr.ph ], [ %.03147, %17 ]
  %.03443 = phi i64 [ %42, %.lr.ph ], [ 0, %17 ]
  %32 = load ptr, ptr %22, align 8, !tbaa !24
  %33 = getelementptr inbounds %struct.colr_Layer, ptr %32, i64 %.03443
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = getelementptr inbounds i8, ptr %33, i64 16
  %36 = load i16, ptr %34, align 4, !tbaa !25
  %37 = zext i16 %36 to i32
  %38 = load i16, ptr %35, align 8, !tbaa !27
  %39 = zext i16 %38 to i32
  %40 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %9, i32 noundef 2, i32 noundef %37, i32 noundef 2, i32 noundef %39, i32 noundef 0) #3
  %41 = add i16 %.244, 1
  %42 = add nuw i64 %.03443, 1
  %43 = load i64, ptr %21, align 8, !tbaa !21
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph, label %.critedge.loopexit, !llvm.loop !28

45:                                               ; preds = %2, %4, %._crit_edge
  %.0 = phi ptr [ %16, %._crit_edge ], [ null, %4 ], [ null, %2 ]
  ret ptr %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @byGID(ptr noundef, ptr noundef) #1

declare ptr @bk_new_Block(i32 noundef, ...) local_unnamed_addr #2

declare ptr @bk_push(ptr noundef, i32 noundef, ...) local_unnamed_addr #2

declare ptr @bk_build_Block(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress 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 = { "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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"__caryll_vectorinterface_table_COLR", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144}
!13 = !{!12, !10, i64 144}
!14 = !{!12, !10, i64 24}
!15 = !{!6, !10, i64 16}
!16 = !{!17, !20, i64 4}
!17 = !{!"", !18, i64 0, !6, i64 16}
!18 = !{!"otfcc_Handle", !19, i64 0, !20, i64 4, !10, i64 8}
!19 = !{!"int", !8, i64 0}
!20 = !{!"short", !8, i64 0}
!21 = !{!17, !7, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!17, !10, i64 32}
!25 = !{!26, !20, i64 4}
!26 = !{!"", !18, i64 0, !20, i64 16}
!27 = !{!26, !20, i64 16}
!28 = distinct !{!28, !23}


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