; LLVM IR from caryll/otfcc :: lib/table/otl/subtables (gsub-reverse)

; 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.__otfcc_ICoverage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.subtable_gsub_reverse = type { i16, i16, ptr, ptr }
%struct.otl_Coverage = type { i16, i32, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }

@otl_iCoverage = external constant %struct.__otfcc_ICoverage, 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
declare hidden void @reverseBacktracks(ptr noundef, i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_build_gsub_reverse(ptr noundef %0, i32 noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %10, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %14, i32 0, i32 1
  %16 = load i16, ptr %15, align 2, !tbaa !14
  call void @reverseBacktracks(ptr noundef %13, i16 noundef zeroext %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %17 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 12), align 8, !tbaa !15
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %21, i32 0, i32 1
  %23 = load i16, ptr %22, align 2, !tbaa !14
  %24 = zext i16 %23 to i64
  %25 = getelementptr inbounds ptr, ptr %20, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = call ptr %17(ptr noundef %26)
  %28 = call ptr @bk_newBlockFromBuffer(ptr noundef %27)
  %29 = call ptr (i32, ...) @bk_new_Block(i32 noundef 2, i32 noundef 1, i32 noundef 16, ptr noundef %28, i32 noundef 0)
  store ptr %29, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %31, i32 0, i32 1
  %33 = load i16, ptr %32, align 2, !tbaa !14
  %34 = zext i16 %33 to i32
  %35 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %30, i32 noundef 2, i32 noundef %34, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  store i16 0, ptr %7, align 2, !tbaa !17
  br label %36

36:                                               ; preds = %58, %2
  %37 = load i16, ptr %7, align 2, !tbaa !17
  %38 = zext i16 %37 to i32
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %39, i32 0, i32 1
  %41 = load i16, ptr %40, align 2, !tbaa !14
  %42 = zext i16 %41 to i32
  %43 = icmp slt i32 %38, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  br label %61

45:                                               ; preds = %36
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 12), align 8, !tbaa !15
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = load i16, ptr %7, align 2, !tbaa !17
  %52 = zext i16 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = call ptr %47(ptr noundef %54)
  %56 = call ptr @bk_newBlockFromBuffer(ptr noundef %55)
  %57 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %46, i32 noundef 16, ptr noundef %56, i32 noundef 0)
  br label %58

58:                                               ; preds = %45
  %59 = load i16, ptr %7, align 2, !tbaa !17
  %60 = add i16 %59, 1
  store i16 %60, ptr %7, align 2, !tbaa !17
  br label %36, !llvm.loop !18

61:                                               ; preds = %44
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %63, i32 0, i32 0
  %65 = load i16, ptr %64, align 8, !tbaa !20
  %66 = zext i16 %65 to i32
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %67, i32 0, i32 1
  %69 = load i16, ptr %68, align 2, !tbaa !14
  %70 = zext i16 %69 to i32
  %71 = sub nsw i32 %66, %70
  %72 = sub nsw i32 %71, 1
  %73 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %62, i32 noundef 2, i32 noundef %72, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %74, i32 0, i32 1
  %76 = load i16, ptr %75, align 2, !tbaa !14
  %77 = zext i16 %76 to i32
  %78 = add nsw i32 %77, 1
  %79 = trunc i32 %78 to i16
  store i16 %79, ptr %8, align 2, !tbaa !17
  br label %80

80:                                               ; preds = %102, %61
  %81 = load i16, ptr %8, align 2, !tbaa !17
  %82 = zext i16 %81 to i32
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %83, i32 0, i32 0
  %85 = load i16, ptr %84, align 8, !tbaa !20
  %86 = zext i16 %85 to i32
  %87 = icmp slt i32 %82, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
  br label %105

89:                                               ; preds = %80
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 12), align 8, !tbaa !15
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i16, ptr %8, align 2, !tbaa !17
  %96 = zext i16 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = call ptr %91(ptr noundef %98)
  %100 = call ptr @bk_newBlockFromBuffer(ptr noundef %99)
  %101 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %90, i32 noundef 16, ptr noundef %100, i32 noundef 0)
  br label %102

102:                                              ; preds = %89
  %103 = load i16, ptr %8, align 2, !tbaa !17
  %104 = add i16 %103, 1
  store i16 %104, ptr %8, align 2, !tbaa !17
  br label %80, !llvm.loop !21

105:                                              ; preds = %88
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %107, i32 0, i32 3
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = getelementptr inbounds %struct.otl_Coverage, ptr %109, i32 0, i32 0
  %111 = load i16, ptr %110, align 8, !tbaa !23
  %112 = zext i16 %111 to i32
  %113 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %106, i32 noundef 2, i32 noundef %112, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
  store i16 0, ptr %9, align 2, !tbaa !17
  br label %114

114:                                              ; preds = %139, %105
  %115 = load i16, ptr %9, align 2, !tbaa !17
  %116 = zext i16 %115 to i32
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !22
  %120 = getelementptr inbounds %struct.otl_Coverage, ptr %119, i32 0, i32 0
  %121 = load i16, ptr %120, align 8, !tbaa !23
  %122 = zext i16 %121 to i32
  %123 = icmp slt i32 %116, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
  br label %142

125:                                              ; preds = %114
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.subtable_gsub_reverse, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = getelementptr inbounds %struct.otl_Coverage, ptr %129, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !25
  %132 = load i16, ptr %9, align 2, !tbaa !17
  %133 = zext i16 %132 to i64
  %134 = getelementptr inbounds %struct.otfcc_Handle, ptr %131, i64 %133
  %135 = getelementptr inbounds %struct.otfcc_Handle, ptr %134, i32 0, i32 1
  %136 = load i16, ptr %135, align 4, !tbaa !26
  %137 = zext i16 %136 to i32
  %138 = call ptr (ptr, i32, ...) @bk_push(ptr noundef %126, i32 noundef 2, i32 noundef %137, i32 noundef 0)
  br label %139

139:                                              ; preds = %125
  %140 = load i16, ptr %9, align 2, !tbaa !17
  %141 = add i16 %140, 1
  store i16 %141, ptr %9, align 2, !tbaa !17
  br label %114, !llvm.loop !28

142:                                              ; preds = %124
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = call ptr @bk_build_Block(ptr noundef %143)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret ptr %144
}

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

declare ptr @bk_newBlockFromBuffer(ptr 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"", !13, i64 0, !13, i64 2, !6, i64 8, !6, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !13, i64 2}
!15 = !{!16, !6, i64 96}
!16 = !{!"__otfcc_ICoverage", !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}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !13, i64 0}
!21 = distinct !{!21, !19}
!22 = !{!12, !6, i64 16}
!23 = !{!24, !13, i64 0}
!24 = !{!"", !13, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!24, !6, i64 8}
!26 = !{!27, !13, i64 4}
!27 = !{!"otfcc_Handle", !10, i64 0, !13, i64 4, !6, i64 8}
!28 = distinct !{!28, !19}


; 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.__otfcc_ICoverage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }

@otl_iCoverage = external local_unnamed_addr constant %struct.__otfcc_ICoverage, align 8

; Function Attrs: nounwind uwtable
declare hidden void @reverseBacktracks(ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_build_gsub_reverse(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 2
  %6 = load i16, ptr %5, align 2, !tbaa !11
  tail call void @reverseBacktracks(ptr noundef %4, i16 noundef zeroext %6)
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 96), align 8, !tbaa !12
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = load i16, ptr %5, align 2, !tbaa !11
  %10 = zext i16 %9 to i64
  %11 = getelementptr inbounds ptr, ptr %8, i64 %10
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = tail call ptr %7(ptr noundef %12) #2
  %14 = tail call ptr @bk_newBlockFromBuffer(ptr noundef %13) #2
  %15 = tail call ptr (i32, ...) @bk_new_Block(i32 noundef 2, i32 noundef 1, i32 noundef 16, ptr noundef %14, i32 noundef 0) #2
  %16 = load i16, ptr %5, align 2, !tbaa !11
  %17 = zext i16 %16 to i32
  %18 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 2, i32 noundef %17, i32 noundef 0) #2
  %19 = load i16, ptr %5, align 2, !tbaa !11
  %.not = icmp eq i16 %19, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %20 = zext i16 %36 to i32
  %21 = xor i32 %20, -1
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.lcssa = phi i32 [ -1, %2 ], [ %21, %._crit_edge.loopexit ]
  %22 = load i16, ptr %0, align 8, !tbaa !15
  %23 = zext i16 %22 to i32
  %24 = add nsw i32 %.lcssa, %23
  %25 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 2, i32 noundef %24, i32 noundef 0) #2
  %26 = load i16, ptr %5, align 2, !tbaa !11
  %.03135 = add i16 %26, 1
  %27 = load i16, ptr %0, align 8, !tbaa !15
  %28 = icmp ult i16 %.03135, %27
  br i1 %28, label %.lr.ph38.preheader, label %._crit_edge39

.lr.ph38.preheader:                               ; preds = %._crit_edge
  %29 = zext i16 %.03135 to i64
  br label %.lr.ph38

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = tail call ptr %7(ptr noundef %32) #2
  %34 = tail call ptr @bk_newBlockFromBuffer(ptr noundef %33) #2
  %35 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 16, ptr noundef %34, i32 noundef 0) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i16, ptr %5, align 2, !tbaa !11
  %37 = zext i16 %36 to i64
  %38 = icmp ult i64 %indvars.iv.next, %37
  br i1 %38, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

._crit_edge39:                                    ; preds = %.lr.ph38, %._crit_edge
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load i16, ptr %40, align 8, !tbaa !19
  %42 = zext i16 %41 to i32
  %43 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 2, i32 noundef %42, i32 noundef 0) #2
  %44 = load ptr, ptr %39, align 8, !tbaa !18
  %45 = load i16, ptr %44, align 8, !tbaa !19
  %.not44 = icmp eq i16 %45, 0
  br i1 %.not44, label %._crit_edge43, label %.lr.ph42

.lr.ph38:                                         ; preds = %.lr.ph38.preheader, %.lr.ph38
  %indvars.iv47 = phi i64 [ %29, %.lr.ph38.preheader ], [ %indvars.iv.next48, %.lr.ph38 ]
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv47
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  %49 = tail call ptr %7(ptr noundef %48) #2
  %50 = tail call ptr @bk_newBlockFromBuffer(ptr noundef %49) #2
  %51 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 16, ptr noundef %50, i32 noundef 0) #2
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %52 = load i16, ptr %0, align 8, !tbaa !15
  %53 = zext i16 %52 to i64
  %54 = icmp ult i64 %indvars.iv.next48, %53
  br i1 %54, label %.lr.ph38, label %._crit_edge39, !llvm.loop !22

._crit_edge43:                                    ; preds = %.lr.ph42, %._crit_edge39
  %55 = tail call ptr @bk_build_Block(ptr noundef %15) #2
  ret ptr %55

.lr.ph42:                                         ; preds = %._crit_edge39, %.lr.ph42
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %.lr.ph42 ], [ 0, %._crit_edge39 ]
  %56 = phi ptr [ %63, %.lr.ph42 ], [ %44, %._crit_edge39 ]
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !23
  %59 = getelementptr inbounds %struct.otfcc_Handle, ptr %58, i64 %indvars.iv50, i32 1
  %60 = load i16, ptr %59, align 4, !tbaa !24
  %61 = zext i16 %60 to i32
  %62 = tail call ptr (ptr, i32, ...) @bk_push(ptr noundef %15, i32 noundef 2, i32 noundef %61, i32 noundef 0) #2
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %63 = load ptr, ptr %39, align 8, !tbaa !18
  %64 = load i16, ptr %63, align 8, !tbaa !19
  %65 = zext i16 %64 to i64
  %66 = icmp ult i64 %indvars.iv.next51, %65
  br i1 %66, label %.lr.ph42, label %._crit_edge43, !llvm.loop !26
}

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

declare ptr @bk_newBlockFromBuffer(ptr noundef) local_unnamed_addr #1

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

declare ptr @bk_build_Block(ptr noundef) local_unnamed_addr #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 = { "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, !10, i64 8}
!6 = !{!"", !7, i64 0, !7, i64 2, !10, i64 8, !10, i64 16}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 2}
!12 = !{!13, !10, i64 96}
!13 = !{!"__otfcc_ICoverage", !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}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 16}
!19 = !{!20, !7, i64 0}
!20 = !{!"", !7, i64 0, !21, i64 4, !10, i64 8}
!21 = !{!"int", !8, i64 0}
!22 = distinct !{!22, !17}
!23 = !{!20, !10, i64 8}
!24 = !{!25, !7, i64 4}
!25 = !{!"otfcc_Handle", !21, i64 0, !7, i64 4, !10, i64 8}
!26 = distinct !{!26, !17}


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