; LLVM IR from ryanlayer/giggle :: src (metadata_index)

; 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.metadata_index = type { ptr, ptr, ptr, i8, i16, i64, ptr, ptr, ptr, i64 }
%struct.metadata_rows = type { i64, ptr }
%struct.metadata_row = type { i8, ptr }
%struct.metadata_item = type { ptr, %union.metadata_data }
%union.metadata_data = type { i64 }

@.str.56 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [57 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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @read_metadata_rows(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.metadata_index, ptr %10, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %12, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.metadata_index, ptr %13, i32 0, i32 2
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  store ptr %15, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.metadata_index, ptr %17, i32 0, i32 9
  %19 = load i64, ptr %18, align 8, !tbaa !14
  %20 = call i32 @fseek(ptr noundef %16, i64 noundef %19, i32 noundef 0)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %1
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.56, ptr noundef %23) #6
  unreachable

24:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %25 = call noalias ptr @malloc(i64 noundef 16) #7
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.59) #6
  unreachable

29:                                               ; preds = %24
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.metadata_index, ptr %30, i32 0, i32 5
  %32 = load i64, ptr %31, align 8, !tbaa !15
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.metadata_rows, ptr %33, i32 0, i32 0
  store i64 %32, ptr %34, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.metadata_rows, ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = mul i64 %37, 8
  %39 = call noalias ptr @malloc(i64 noundef %38) #7
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.metadata_rows, ptr %40, i32 0, i32 1
  store ptr %39, ptr %41, align 8, !tbaa !18
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.metadata_rows, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %29
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.60) #6
  unreachable

47:                                               ; preds = %29
  store i32 0, ptr %6, align 4, !tbaa !19
  br label %48

48:                                               ; preds = %123, %47
  %49 = load i32, ptr %6, align 4, !tbaa !19
  %50 = sext i32 %49 to i64
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.metadata_rows, ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !16
  %54 = icmp ult i64 %50, %53
  br i1 %54, label %55, label %126

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %56 = call noalias ptr @malloc(i64 noundef 16) #7
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %55
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.61) #6
  unreachable

60:                                               ; preds = %55
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.metadata_index, ptr %61, i32 0, i32 3
  %63 = load i8, ptr %62, align 8, !tbaa !21
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.metadata_row, ptr %64, i32 0, i32 0
  store i8 %63, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.metadata_row, ptr %66, i32 0, i32 0
  %68 = load i8, ptr %67, align 8, !tbaa !22
  %69 = zext i8 %68 to i64
  %70 = mul i64 %69, 8
  %71 = call noalias ptr @malloc(i64 noundef %70) #7
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.metadata_row, ptr %72, i32 0, i32 1
  store ptr %71, ptr %73, align 8, !tbaa !24
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.metadata_row, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %60
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.62) #6
  unreachable

79:                                               ; preds = %60
  store i32 0, ptr %7, align 4, !tbaa !19
  br label %80

80:                                               ; preds = %112, %79
  %81 = load i32, ptr %7, align 4, !tbaa !19
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.metadata_row, ptr %82, i32 0, i32 0
  %84 = load i8, ptr %83, align 8, !tbaa !22
  %85 = zext i8 %84 to i32
  %86 = icmp slt i32 %81, %85
  br i1 %86, label %87, label %115

87:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %88 = call noalias ptr @malloc(i64 noundef 16) #7
  store ptr %88, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = icmp eq ptr %89, null
  br i1 %90, label %91, label %92

91:                                               ; preds = %87
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.63) #6
  unreachable

92:                                               ; preds = %87
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.metadata_index, ptr %93, i32 0, i32 8
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = load i32, ptr %7, align 4, !tbaa !19
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.metadata_item, ptr %100, i32 0, i32 0
  store ptr %99, ptr %101, align 8, !tbaa !26
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  call void @fread_data_type_item(ptr noundef %102, ptr noundef %103, ptr noundef %104)
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.metadata_row, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = load i32, ptr %7, align 4, !tbaa !19
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  store ptr %105, ptr %111, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %112

112:                                              ; preds = %92
  %113 = load i32, ptr %7, align 4, !tbaa !19
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %7, align 4, !tbaa !19
  br label %80, !llvm.loop !28

115:                                              ; preds = %80
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.metadata_rows, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  %120 = load i32, ptr %6, align 4, !tbaa !19
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  store ptr %116, ptr %122, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %123

123:                                              ; preds = %115
  %124 = load i32, ptr %6, align 4, !tbaa !19
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %6, align 4, !tbaa !19
  br label %48, !llvm.loop !30

126:                                              ; preds = %48
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret ptr %127
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 allocsize(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 #4 = { "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 #5 = { nounwind }
attributes #6 = { noreturn }
attributes #7 = { nounwind allocsize(0) }

!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, !6, i64 8}
!10 = !{!"metadata_index", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !11, i64 26, !12, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64}
!11 = !{!"short", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !12, i64 64}
!15 = !{!10, !12, i64 32}
!16 = !{!17, !12, i64 0}
!17 = !{!"metadata_rows", !12, i64 0, !6, i64 8}
!18 = !{!17, !6, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!10, !7, i64 24}
!22 = !{!23, !7, i64 0}
!23 = !{!"metadata_row", !7, i64 0, !6, i64 8}
!24 = !{!23, !6, i64 8}
!25 = !{!10, !6, i64 56}
!26 = !{!27, !6, i64 0}
!27 = !{!"metadata_item", !6, i64 0, !7, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


; 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"

@.str.56 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @read_metadata_rows(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load i64, ptr %6, align 8, !tbaa !13
  %8 = tail call i32 @fseek(ptr noundef %5, i64 noundef %7, i32 noundef 0)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %10, label %9

9:                                                ; preds = %1
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.56, ptr noundef %3) #4
  unreachable

10:                                               ; preds = %1
  %11 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %10
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.59) #4
  unreachable

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load i64, ptr %15, align 8, !tbaa !14
  store i64 %16, ptr %11, align 8, !tbaa !15
  %17 = shl i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #5
  %19 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !17
  %20 = icmp eq ptr %18, null
  br i1 %20, label %23, label %.preheader41

.preheader41:                                     ; preds = %14
  %.not46 = icmp eq i64 %16, 0
  br i1 %.not46, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %.preheader41
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  br label %24

23:                                               ; preds = %14
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.60) #4
  unreachable

24:                                               ; preds = %.lr.ph44, %._crit_edge
  %indvars.iv49 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next50, %._crit_edge ]
  %25 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.61) #4
  unreachable

28:                                               ; preds = %24
  %29 = load i8, ptr %21, align 8, !tbaa !18
  store i8 %29, ptr %25, align 8, !tbaa !19
  %30 = zext i8 %29 to i64
  %31 = shl nuw nsw i64 %30, 3
  %32 = tail call noalias ptr @malloc(i64 noundef %31) #5
  %33 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %32, ptr %33, align 8, !tbaa !21
  %34 = icmp eq ptr %32, null
  br i1 %34, label %35, label %.preheader

.preheader:                                       ; preds = %28
  %.not47 = icmp eq i8 %29, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph

35:                                               ; preds = %28
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.62) #4
  unreachable

.lr.ph:                                           ; preds = %.preheader, %39
  %indvars.iv = phi i64 [ %indvars.iv.next, %39 ], [ 0, %.preheader ]
  %36 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %.lr.ph
  tail call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.63) #4
  unreachable

39:                                               ; preds = %.lr.ph
  %40 = load ptr, ptr %22, align 8, !tbaa !22
  %41 = getelementptr inbounds ptr, ptr %40, i64 %indvars.iv
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  store ptr %42, ptr %36, align 8, !tbaa !24
  tail call void @fread_data_type_item(ptr noundef %3, ptr noundef %5, ptr noundef nonnull %36)
  %43 = load ptr, ptr %33, align 8, !tbaa !21
  %44 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv
  store ptr %36, ptr %44, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = load i8, ptr %25, align 8, !tbaa !19
  %46 = zext i8 %45 to i64
  %47 = icmp ult i64 %indvars.iv.next, %46
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %39, %.preheader
  %48 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv49
  store ptr %25, ptr %48, align 8, !tbaa !23
  %indvars.iv.next50 = add nuw i64 %indvars.iv49, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next50, %16
  br i1 %exitcond.not, label %._crit_edge45, label %24, !llvm.loop !28

._crit_edge45:                                    ; preds = %._crit_edge, %.preheader41
  ret ptr %11
}

attributes #0 = { noreturn "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 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind "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 = { noreturn nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 8}
!6 = !{!"metadata_index", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !10, i64 26, !11, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !11, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !11, i64 32}
!15 = !{!16, !11, i64 0}
!16 = !{!"metadata_rows", !11, i64 0, !7, i64 8}
!17 = !{!16, !7, i64 8}
!18 = !{!6, !8, i64 24}
!19 = !{!20, !8, i64 0}
!20 = !{!"metadata_row", !8, i64 0, !7, i64 8}
!21 = !{!20, !7, i64 8}
!22 = !{!6, !7, i64 56}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"metadata_item", !7, i64 0, !8, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


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