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

; 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.hashtable = type { ptr, ptr, ptr, i64, i32 }
%struct.hash_node = type { ptr, ptr, 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 [63 x i8], align 1
@dict_malloc_func = external global ptr, align 8
@dict_free_func = external global ptr, align 8
@__func__.hashtable_resize = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = 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 @hashtable_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 ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  br label %14

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

21:                                               ; preds = %14
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 304, ptr noundef @__func__.hashtable_resize, ptr noundef @.str.6) #7
  call void @abort() #8
  unreachable

24:                                               ; preds = %14
  br label %25

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

33:                                               ; preds = %25
  store i1 true, ptr %3, align 1
  br label %141

34:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %35 = load ptr, ptr @dict_malloc_func, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = mul i64 %37, 8
  %39 = call ptr %35(i64 noundef %38)
  store ptr %39, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %43, label %42

42:                                               ; preds = %34
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

43:                                               ; preds = %34
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = mul i64 %46, 8
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 %47, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %126, %43
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.hashtable, ptr %50, i32 0, i32 4
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = icmp ult i32 %49, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %129

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.hashtable, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  store ptr %62, ptr %9, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %123, %55
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %125

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.hash_node, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  store ptr %70, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.hash_node, ptr %71, i32 0, i32 4
  %73 = load i32, ptr %72, align 8, !tbaa !17
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = urem i32 %73, %74
  store i32 %75, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  store ptr %80, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %94, %67
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %92

84:                                               ; preds = %81
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.hash_node, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.hash_node, ptr %88, i32 0, i32 4
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = icmp uge i32 %87, %90
  br label %92

92:                                               ; preds = %84, %81
  %93 = phi i1 [ false, %81 ], [ %91, %84 ]
  br i1 %93, label %94, label %99

94:                                               ; preds = %92
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %95, ptr %13, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.hash_node, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  store ptr %98, ptr %12, align 8, !tbaa !5
  br label %81, !llvm.loop !18

99:                                               ; preds = %92
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.hash_node, ptr %101, i32 0, i32 2
  store ptr %100, ptr %102, align 8, !tbaa !15
  %103 = icmp ne ptr %100, null
  br i1 %103, label %104, label %108

104:                                              ; preds = %99
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.hash_node, ptr %106, i32 0, i32 3
  store ptr %105, ptr %107, align 8, !tbaa !20
  br label %108

108:                                              ; preds = %104, %99
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.hash_node, ptr %110, i32 0, i32 3
  store ptr %109, ptr %111, align 8, !tbaa !20
  %112 = icmp ne ptr %109, null
  br i1 %112, label %113, label %117

113:                                              ; preds = %108
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.hash_node, ptr %115, i32 0, i32 2
  store ptr %114, ptr %116, align 8, !tbaa !15
  br label %123

117:                                              ; preds = %108
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  store ptr %118, ptr %122, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %117, %113
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %124, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %63, !llvm.loop !21

125:                                              ; preds = %66
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = add i32 %127, 1
  store i32 %128, ptr %8, align 4, !tbaa !9
  br label %48, !llvm.loop !22

129:                                              ; preds = %54
  %130 = load ptr, ptr @dict_free_func, align 8, !tbaa !5
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.hashtable, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !14
  call void %130(ptr noundef %133)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.hashtable, ptr %135, i32 0, i32 0
  store ptr %134, ptr %136, align 8, !tbaa !14
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.hashtable, ptr %138, i32 0, i32 4
  store i32 %137, ptr %139, align 8, !tbaa !11
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

140:                                              ; preds = %129, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %141

141:                                              ; preds = %140, %33
  %142 = load i1, ptr %3, align 1
  ret i1 %142
}

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 = { nounwind }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"hashtable", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !10, i64 32}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"hash_node", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!17 = !{!16, !10, i64 32}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !6, i64 24}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !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"

@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 [63 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__.hashtable_resize = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = 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 @hashtable_resize(ptr nocapture 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 304, ptr noundef nonnull @__func__.hashtable_resize, ptr noundef nonnull @.str.6) #5
  tail call void @abort() #6
  unreachable

6:                                                ; preds = %2
  %7 = tail call i32 @dict_prime_geq(i32 noundef %1) #7
  %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 %39, label %11

11:                                               ; preds = %6
  %12 = load ptr, ptr @dict_malloc_func, align 8, !tbaa !6
  %13 = zext i32 %7 to i64
  %14 = shl nuw nsw i64 %13, 3
  %15 = tail call ptr %12(i64 noundef %14) #7
  %.not48.not = icmp eq ptr %15, null
  br i1 %.not48.not, label %39, label %16

16:                                               ; preds = %11
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %15, i8 0, i64 %14, i1 false)
  %17 = load i32, ptr %8, align 8, !tbaa !10
  %.not69 = icmp eq i32 %17, 0
  br i1 %.not69, label %._crit_edge68, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %16
  %wide.trip.count = zext i32 %17 to i64
  br label %.lr.ph67

._crit_edge68:                                    ; preds = %._crit_edge, %16
  %18 = load ptr, ptr @dict_free_func, align 8, !tbaa !6
  %19 = load ptr, ptr %0, align 8, !tbaa !14
  tail call void %18(ptr noundef %19) #7
  store ptr %15, ptr %0, align 8, !tbaa !14
  store i32 %7, ptr %8, align 8, !tbaa !10
  br label %39

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph67.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %20 = load ptr, ptr %0, align 8, !tbaa !14
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv
  %22 = load ptr, ptr %21, align 8, !tbaa !6
  %.not4962 = icmp eq ptr %22, null
  br i1 %.not4962, label %._crit_edge, label %.lr.ph64

._crit_edge:                                      ; preds = %36, %.lr.ph67
  %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 %._crit_edge68, label %.lr.ph67, !llvm.loop !15

.lr.ph64:                                         ; preds = %.lr.ph67, %36
  %.04363 = phi ptr [ %24, %36 ], [ %22, %.lr.ph67 ]
  %23 = getelementptr inbounds i8, ptr %.04363, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %.04363, i64 32
  %26 = load i32, ptr %25, align 8, !tbaa !19
  %27 = urem i32 %26, %7
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %15, i64 %28
  %.04157 = load ptr, ptr %29, align 8, !tbaa !6
  %.not5058 = icmp eq ptr %.04157, null
  br i1 %.not5058, label %.critedge53, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph64
  %30 = getelementptr inbounds i8, ptr %.04157, i64 32
  %31 = load i32, ptr %30, align 8, !tbaa !19
  %.not5178 = icmp ult i32 %26, %31
  br i1 %.not5178, label %.lr.ph._crit_edge, label %.lr.ph80

.lr.ph:                                           ; preds = %.lr.ph80
  %32 = getelementptr inbounds i8, ptr %.041, i64 32
  %33 = load i32, ptr %32, align 8, !tbaa !19
  %.not51 = icmp ult i32 %26, %33
  br i1 %.not51, label %.lr.ph._crit_edge, label %.lr.ph80, !llvm.loop !20

.lr.ph80:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %.0416079 = phi ptr [ %.041, %.lr.ph ], [ %.04157, %.lr.ph.preheader ]
  %34 = getelementptr inbounds i8, ptr %.0416079, i64 16
  %.041 = load ptr, ptr %34, align 8, !tbaa !6
  %.not50 = icmp eq ptr %.041, null
  br i1 %.not50, label %.critedge53, label %.lr.ph, !llvm.loop !20

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %.lr.ph.preheader
  %.04160.lcssa = phi ptr [ %.04157, %.lr.ph.preheader ], [ %.041, %.lr.ph ]
  %.059.lcssa = phi ptr [ null, %.lr.ph.preheader ], [ %.0416079, %.lr.ph ]
  store ptr %.04160.lcssa, ptr %23, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %.04160.lcssa, i64 24
  store ptr %.04363, ptr %35, align 8, !tbaa !21
  br label %36

.critedge53:                                      ; preds = %.lr.ph80, %.lr.ph64
  %.0.lcssa = phi ptr [ null, %.lr.ph64 ], [ %.0416079, %.lr.ph80 ]
  store ptr null, ptr %23, align 8, !tbaa !17
  br label %36

36:                                               ; preds = %.critedge53, %.lr.ph._crit_edge
  %.056 = phi ptr [ %.0.lcssa, %.critedge53 ], [ %.059.lcssa, %.lr.ph._crit_edge ]
  %37 = getelementptr inbounds i8, ptr %.04363, i64 24
  store ptr %.056, ptr %37, align 8, !tbaa !21
  %.not52 = icmp eq ptr %.056, null
  %38 = getelementptr inbounds i8, ptr %.056, i64 16
  %.sink = select i1 %.not52, ptr %29, ptr %38
  store ptr %.04363, ptr %.sink, align 8, !tbaa !6
  %.not49 = icmp eq ptr %24, null
  br i1 %.not49, label %._crit_edge, label %.lr.ph64, !llvm.loop !22

39:                                               ; preds = %._crit_edge68, %11, %6
  %.1 = phi i1 [ true, %6 ], [ false, %11 ], [ true, %._crit_edge68 ]
  ret i1 %.1
}

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 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"hashtable", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !7, i64 16}
!18 = !{!"hash_node", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !13, i64 32}
!19 = !{!18, !13, i64 32}
!20 = distinct !{!20, !16}
!21 = !{!18, !7, i64 24}
!22 = distinct !{!22, !16}


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