; LLVM IR from fmela/libdict :: src (hashtable2)

; 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.dict_insert_result = type { ptr, i8 }
%struct.hashtable2 = type { i64, ptr, ptr, ptr, i32 }
%struct.hash_node = type { ptr, ptr, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@dict_malloc_func = external global ptr, align 8
@dict_free_func = external global ptr, align 8
@__func__.hashtable2_resize = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

declare i32 @dict_prime_geq(i32 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @hashtable2_resize(ptr noundef %0, i32 noundef %1) #6 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.dict_insert_result, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %2
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = icmp ugt i32 %13, 0
  %15 = zext i1 %14 to i32
  %16 = sext i32 %15 to i64
  %17 = call i64 @llvm.expect.i64(i64 %16, i64 1)
  %18 = icmp ne i64 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %12
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 359, ptr noundef @__func__.hashtable2_resize, ptr noundef @.str.5) #8
  call void @abort() #9
  unreachable

22:                                               ; preds = %12
  br label %23

23:                                               ; preds = %22
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = call i32 @dict_prime_geq(i32 noundef %24)
  store i32 %25, ptr %5, align 4, !tbaa !9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.hashtable2, ptr %26, i32 0, i32 4
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = icmp eq i32 %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  store i1 true, ptr %3, align 1
  br label %150

32:                                               ; preds = %23
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.hashtable2, ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = icmp ugt i64 %35, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %32
  store i1 false, ptr %3, align 1
  br label %150

40:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.hashtable2, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !11
  store i32 %43, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.hashtable2, ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !14
  store i64 %46, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.hashtable2, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  store ptr %49, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr @dict_malloc_func, align 8, !tbaa !5
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = mul i64 %52, 24
  %54 = call ptr %50(i64 noundef %53)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hashtable2, ptr %55, i32 0, i32 3
  store ptr %54, ptr %56, align 8, !tbaa !16
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.hashtable2, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !16
  %60 = icmp ne ptr %59, null
  br i1 %60, label %65, label %61

61:                                               ; preds = %40
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.hashtable2, ptr %63, i32 0, i32 3
  store ptr %62, ptr %64, align 8, !tbaa !16
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %149

65:                                               ; preds = %40
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.hashtable2, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = mul i64 %70, 24
  call void @llvm.memset.p0.i64(ptr align 8 %68, i8 0, i64 %71, i1 false)
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.hashtable2, ptr %73, i32 0, i32 4
  store i32 %72, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %141, %65
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 4, ptr %9, align 4
  br label %144

80:                                               ; preds = %75
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds %struct.hash_node, ptr %81, i64 %83
  %85 = getelementptr inbounds %struct.hash_node, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !17
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %140

88:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds %struct.hash_node, ptr %90, i64 %92
  %94 = getelementptr inbounds %struct.hash_node, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds %struct.hash_node, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.hash_node, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !17
  %102 = call { ptr, i8 } @insert(ptr noundef %89, ptr noundef %95, i32 noundef %101)
  %103 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %104 = extractvalue { ptr, i8 } %102, 0
  store ptr %104, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %106 = extractvalue { ptr, i8 } %102, 1
  store i8 %106, ptr %105, align 8
  %107 = getelementptr inbounds %struct.dict_insert_result, ptr %11, i32 0, i32 1
  %108 = load i8, ptr %107, align 8, !tbaa !20, !range !23, !noundef !24
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %114

110:                                              ; preds = %88
  %111 = getelementptr inbounds %struct.dict_insert_result, ptr %11, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = icmp ne ptr %112, null
  br i1 %113, label %128, label %114

114:                                              ; preds = %110, %88
  %115 = load ptr, ptr @dict_free_func, align 8, !tbaa !5
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.hashtable2, ptr %116, i32 0, i32 3
  %118 = load ptr, ptr %117, align 8, !tbaa !16
  call void %115(ptr noundef %118)
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.hashtable2, ptr %120, i32 0, i32 3
  store ptr %119, ptr %121, align 8, !tbaa !16
  %122 = load i32, ptr %6, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.hashtable2, ptr %123, i32 0, i32 4
  store i32 %122, ptr %124, align 8, !tbaa !11
  %125 = load i64, ptr %7, align 8, !tbaa !15
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.hashtable2, ptr %126, i32 0, i32 0
  store i64 %125, ptr %127, align 8, !tbaa !14
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %137

128:                                              ; preds = %110
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds %struct.hash_node, ptr %129, i64 %131
  %133 = getelementptr inbounds %struct.hash_node, ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = getelementptr inbounds %struct.dict_insert_result, ptr %11, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !25
  store ptr %134, ptr %136, align 8, !tbaa !5
  store i32 0, ptr %9, align 4
  br label %137

137:                                              ; preds = %128, %114
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %138 = load i32, ptr %9, align 4
  switch i32 %138, label %144 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139, %80
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %10, align 4, !tbaa !9
  br label %75, !llvm.loop !27

144:                                              ; preds = %137, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %145 = load i32, ptr %9, align 4
  switch i32 %145, label %149 [
    i32 4, label %146
  ]

146:                                              ; preds = %144
  %147 = load ptr, ptr @dict_free_func, align 8, !tbaa !5
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  call void %147(ptr noundef %148)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %149

149:                                              ; preds = %146, %144, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %150

150:                                              ; preds = %149, %39, %31
  %151 = load i1, ptr %3, align 1
  ret i1 %151
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden { ptr, i8 } @insert(ptr noundef, ptr noundef, i32 noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"hashtable2", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !6, i64 24}
!17 = !{!18, !10, i64 16}
!18 = !{!"hash_node", !6, i64 0, !6, i64 8, !10, i64 16}
!19 = !{!18, !6, i64 0}
!20 = !{!21, !22, i64 8}
!21 = !{!"", !6, i64 0, !22, i64 8}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!21, !6, i64 0}
!26 = !{!18, !6, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"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.hash_node = type { ptr, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@dict_malloc_func = external local_unnamed_addr global ptr, align 8
@dict_free_func = external local_unnamed_addr global ptr, align 8
@__func__.hashtable2_resize = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

declare i32 @dict_prime_geq(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @hashtable2_resize(ptr noundef %0, i32 noundef %1) local_unnamed_addr #4 {
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %3, label %6, !prof !5

3:                                                ; preds = %2
  %4 = load ptr, ptr @stderr, align 8, !tbaa !6
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 359, ptr noundef nonnull @__func__.hashtable2_resize, ptr noundef nonnull @.str.5) #6
  tail call void @abort() #7
  unreachable

6:                                                ; preds = %2
  %7 = tail call i32 @dict_prime_geq(i32 noundef %1) #8
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !10
  %10 = icmp eq i32 %9, %7
  br i1 %10, label %40, label %11

11:                                               ; preds = %6
  %12 = load i64, ptr %0, align 8, !tbaa !14
  %13 = zext i32 %7 to i64
  %14 = icmp ugt i64 %12, %13
  br i1 %14, label %40, label %15

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = load ptr, ptr @dict_malloc_func, align 8, !tbaa !6
  %19 = mul nuw nsw i64 %13, 24
  %20 = tail call ptr %18(i64 noundef %19) #8
  store ptr %20, ptr %16, align 8, !tbaa !15
  %.not55 = icmp eq ptr %20, null
  br i1 %.not55, label %21, label %22

21:                                               ; preds = %15
  store ptr %17, ptr %16, align 8, !tbaa !15
  br label %40

22:                                               ; preds = %15
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %20, i8 0, i64 %19, i1 false)
  store i32 %7, ptr %8, align 8, !tbaa !10
  %.not5758.not = icmp eq i32 %9, 0
  br i1 %.not5758.not, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %22
  %wide.trip.count = zext i32 %9 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %35 ]
  %23 = getelementptr inbounds %struct.hash_node, ptr %17, i64 %indvars.iv
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %.not56 = icmp eq i32 %25, 0
  br i1 %.not56, label %35, label %26

26:                                               ; preds = %.lr.ph
  %27 = load ptr, ptr %23, align 8, !tbaa !18
  %28 = tail call { ptr, i8 } @insert(ptr noundef nonnull %0, ptr noundef %27, i32 noundef %25)
  %29 = extractvalue { ptr, i8 } %28, 0
  %30 = extractvalue { ptr, i8 } %28, 1
  %31 = trunc i8 %30 to i1
  %32 = icmp ne ptr %29, null
  %or.cond = select i1 %31, i1 %32, i1 false
  br i1 %or.cond, label %.thread, label %36

.thread:                                          ; preds = %26
  %33 = getelementptr inbounds i8, ptr %23, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  store ptr %34, ptr %29, align 8, !tbaa !6
  br label %35

35:                                               ; preds = %.thread, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !20

36:                                               ; preds = %26
  %37 = load ptr, ptr @dict_free_func, align 8, !tbaa !6
  %38 = load ptr, ptr %16, align 8, !tbaa !15
  tail call void %37(ptr noundef %38) #8
  store ptr %17, ptr %16, align 8, !tbaa !15
  store i32 %9, ptr %8, align 8, !tbaa !10
  store i64 %12, ptr %0, align 8, !tbaa !14
  br label %40

.critedge:                                        ; preds = %35, %22
  %39 = load ptr, ptr @dict_free_func, align 8, !tbaa !6
  tail call void %39(ptr noundef %17) #8
  br label %40

40:                                               ; preds = %36, %21, %.critedge, %11, %6
  %.5 = phi i1 [ true, %6 ], [ false, %11 ], [ true, %.critedge ], [ false, %36 ], [ false, %21 ]
  ret i1 %.5
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden { ptr, i8 } @insert(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { 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 #1 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { inlinehint 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 #6 = { cold nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 32}
!11 = !{!"hashtable2", !12, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!11, !7, i64 24}
!16 = !{!17, !13, i64 16}
!17 = !{!"hash_node", !7, i64 0, !7, i64 8, !13, i64 16}
!18 = !{!17, !7, i64 0}
!19 = !{!17, !7, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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