; LLVM IR from Softmotions/iowow :: src/utils (iwhmap)

; 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.iwhmap = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8 }
%struct.entry = type { ptr, ptr, ptr, i32 }
%struct.lru_node = type { ptr, ptr, ptr }
%struct.bucket_t = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.iwhmap_put = external hidden unnamed_addr constant [49 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: nounwind uwtable
declare hidden ptr @_entry_find(ptr noundef, ptr noundef, i32 noundef) #1

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

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

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

23:                                               ; preds = %3
  %24 = call ptr @__errno_location() #7
  %25 = load i32, ptr %24, align 4, !tbaa !13
  %26 = call i64 @iwrc_set_errno(i64 noundef 70001, i32 noundef %25)
  store i64 %26, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %125

27:                                               ; preds = %3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.iwhmap, ptr %28, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.iwhmap, ptr %31, i32 0, i32 10
  %33 = load i8, ptr %32, align 8, !tbaa !15, !range !16, !noundef !17
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %36

35:                                               ; preds = %27
  br label %40

36:                                               ; preds = %27
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.entry, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  br label %40

40:                                               ; preds = %36, %35
  %41 = phi ptr [ null, %35 ], [ %39, %36 ]
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.entry, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  call void %30(ptr noundef %41, ptr noundef %44)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.entry, ptr %46, i32 0, i32 0
  store ptr %45, ptr %47, align 8, !tbaa !18
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.entry, ptr %49, i32 0, i32 1
  store ptr %48, ptr %50, align 8, !tbaa !20
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.iwhmap, ptr %51, i32 0, i32 8
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %58

55:                                               ; preds = %40
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_lru_entry_update(ptr noundef %56, ptr noundef %57)
  br label %58

58:                                               ; preds = %55, %40
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.iwhmap, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !22
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.iwhmap, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !23
  %65 = icmp ugt i32 %61, %64
  br i1 %65, label %66, label %71

66:                                               ; preds = %58
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call i32 @_n_buckets(ptr noundef %68)
  %70 = mul i32 %69, 2
  call void @_rehash(ptr noundef %67, i32 noundef %70)
  br label %71

71:                                               ; preds = %66, %58
  br label %72

72:                                               ; preds = %120, %71
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.iwhmap, ptr %73, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %86

77:                                               ; preds = %72
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.iwhmap, ptr %78, i32 0, i32 8
  %80 = load ptr, ptr %79, align 8, !tbaa !21
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.iwhmap, ptr %82, i32 0, i32 9
  %84 = load ptr, ptr %83, align 8, !tbaa !25
  %85 = call zeroext i1 %80(ptr noundef %81, ptr noundef %84)
  br label %86

86:                                               ; preds = %77, %72
  %87 = phi i1 [ false, %72 ], [ %85, %77 ]
  br i1 %87, label %88, label %124

88:                                               ; preds = %86
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.iwhmap, ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.iwhmap, ptr %92, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = getelementptr inbounds %struct.lru_node, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = call i32 %91(ptr noundef %96)
  store i32 %97, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.iwhmap, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !28
  %101 = load i32, ptr %8, align 4, !tbaa !13
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.iwhmap, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 4, !tbaa !23
  %105 = and i32 %101, %104
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %struct.bucket_t, ptr %100, i64 %106
  store ptr %107, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.iwhmap, ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = getelementptr inbounds %struct.lru_node, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !26
  %114 = load i32, ptr %8, align 4, !tbaa !13
  %115 = call ptr @_entry_find(ptr noundef %108, ptr noundef %113, i32 noundef %114)
  store ptr %115, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %119

118:                                              ; preds = %88
  br label %120

119:                                              ; preds = %88
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 429, ptr noundef @__PRETTY_FUNCTION__.iwhmap_put) #8
  unreachable

120:                                              ; preds = %118
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_entry_remove(ptr noundef %121, ptr noundef %122, ptr noundef %123)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %72, !llvm.loop !29

124:                                              ; preds = %86
  store i64 0, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %125

125:                                              ; preds = %124, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %126 = load i64, ptr %4, align 8
  ret i64 %126
}

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

declare i64 @iwrc_set_errno(i64 noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @_n_buckets(ptr noundef) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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 willreturn memory(none) "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 = { 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 #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { noreturn 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, !6, i64 24}
!10 = !{!"iwhmap", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 32}
!15 = !{!10, !12, i64 72}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !6, i64 0}
!19 = !{!"entry", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!20 = !{!19, !6, i64 8}
!21 = !{!10, !6, i64 56}
!22 = !{!10, !11, i64 0}
!23 = !{!10, !11, i64 4}
!24 = !{!10, !6, i64 40}
!25 = !{!10, !6, i64 64}
!26 = !{!27, !6, i64 16}
!27 = !{!"lru_node", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!10, !6, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"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.bucket_t = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.iwhmap_put = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: nounwind uwtable
declare hidden ptr @_entry_find(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @iwhmap_put(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call i32 %5(ptr noundef %1) #5
  %7 = tail call ptr @_entry_add(ptr noundef %0, ptr noundef %1, i32 noundef %6)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %12

8:                                                ; preds = %3
  %9 = tail call ptr @__errno_location() #6
  %10 = load i32, ptr %9, align 4, !tbaa !12
  %11 = tail call i64 @iwrc_set_errno(i64 noundef 70001, i32 noundef %10) #5
  br label %.critedge

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  %16 = load i8, ptr %15, align 8, !tbaa !14, !range !15, !noundef !16
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %20, label %18

18:                                               ; preds = %12
  %19 = load ptr, ptr %7, align 8, !tbaa !17
  br label %20

20:                                               ; preds = %12, %18
  %21 = phi ptr [ %19, %18 ], [ null, %12 ]
  %22 = getelementptr inbounds i8, ptr %7, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !19
  tail call void %14(ptr noundef %21, ptr noundef %23) #5
  store ptr %1, ptr %7, align 8, !tbaa !17
  store ptr %2, ptr %22, align 8, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %.not39 = icmp eq ptr %25, null
  br i1 %.not39, label %27, label %26

26:                                               ; preds = %20
  tail call void @_lru_entry_update(ptr noundef nonnull %0, ptr noundef nonnull %7)
  br label %27

27:                                               ; preds = %26, %20
  %28 = load i32, ptr %0, align 8, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %0, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !22
  %31 = icmp ugt i32 %28, %30
  br i1 %31, label %32, label %35

32:                                               ; preds = %27
  %33 = tail call i32 @_n_buckets(ptr noundef nonnull %0)
  %34 = shl i32 %33, 1
  tail call void @_rehash(ptr noundef nonnull %0, i32 noundef %34)
  br label %35

35:                                               ; preds = %32, %27
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %.not4042 = icmp eq ptr %37, null
  br i1 %.not4042, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 64
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  br label %40

40:                                               ; preds = %.lr.ph, %57
  %41 = load ptr, ptr %24, align 8, !tbaa !20
  %42 = load ptr, ptr %38, align 8, !tbaa !24
  %43 = tail call zeroext i1 %41(ptr noundef nonnull %0, ptr noundef %42) #5
  br i1 %43, label %44, label %.critedge

44:                                               ; preds = %40
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %36, align 8, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !25
  %49 = tail call i32 %45(ptr noundef %48) #5
  %50 = load ptr, ptr %39, align 8, !tbaa !27
  %51 = load i32, ptr %29, align 4, !tbaa !22
  %52 = load ptr, ptr %36, align 8, !tbaa !23
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !25
  %55 = tail call ptr @_entry_find(ptr noundef nonnull %0, ptr noundef %54, i32 noundef %49)
  %.not41 = icmp eq ptr %55, null
  br i1 %.not41, label %56, label %57

56:                                               ; preds = %44
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 429, ptr noundef nonnull @__PRETTY_FUNCTION__.iwhmap_put) #7
  unreachable

57:                                               ; preds = %44
  %58 = and i32 %51, %49
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds %struct.bucket_t, ptr %50, i64 %59
  tail call void @_entry_remove(ptr noundef nonnull %0, ptr noundef %60, ptr noundef nonnull %55)
  %61 = load ptr, ptr %36, align 8, !tbaa !23
  %.not40 = icmp eq ptr %61, null
  br i1 %.not40, label %.critedge, label %40, !llvm.loop !28

.critedge:                                        ; preds = %57, %40, %35, %8
  %.0 = phi i64 [ %11, %8 ], [ 0, %35 ], [ 0, %40 ], [ 0, %57 ]
  ret i64 %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @_entry_add(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i64 @iwrc_set_errno(i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @_n_buckets(ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 #4 = { noreturn 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { noreturn 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 24}
!6 = !{!"iwhmap", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !11, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 32}
!14 = !{!6, !11, i64 72}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 0}
!18 = !{!"entry", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!18, !10, i64 8}
!20 = !{!6, !10, i64 56}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 4}
!23 = !{!6, !10, i64 40}
!24 = !{!6, !10, i64 64}
!25 = !{!26, !10, i64 16}
!26 = !{!"lru_node", !10, i64 0, !10, i64 8, !10, i64 16}
!27 = !{!6, !10, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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