; LLVM IR from albertobsd/keyhunt :: keyhunt.ll (Z14readFileVanityPc)

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

@vanity_rmd_targets = external dso_local global i32, align 4
@vanity_rmd_total = external dso_local global i32, align 4
@vanity_rmd_limits = external dso_local global ptr, align 8
@vanity_rmd_limit_values_A = external dso_local global ptr, align 8
@vanity_rmd_minimun_bytes_check_length = external dso_local global i32, align 4
@vanity_bloom = external dso_local global ptr, align 8
@N = external dso_local global i64, align 8
@stderr = external global ptr, align 8
@.str.152 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [53 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z19isValidBase58StringPc(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9addvanityPc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z14readFileVanityPc(ptr noundef %0) #4 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [100 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 100, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = call noalias ptr @fopen(ptr noundef %11, ptr noundef @.str.290)
  store ptr %12, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %22

15:                                               ; preds = %1
  %16 = load i32, ptr @vanity_rmd_targets, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %21

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.289) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %104

21:                                               ; preds = %15
  br label %62

22:                                               ; preds = %1
  br label %23

23:                                               ; preds = %58, %22
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call i32 @feof(ptr noundef %24) #6
  %26 = icmp ne i32 %25, 0
  %27 = xor i1 %26, true
  br i1 %27, label %28, label %59

28:                                               ; preds = %23
  %29 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call ptr @fgets(ptr noundef %29, i32 noundef 100, ptr noundef %30)
  store ptr %31, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %34 = icmp eq ptr %32, %33
  br i1 %34, label %35, label %58

35:                                               ; preds = %28
  %36 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %37 = call noundef ptr @_Z4trimPcPKc(ptr noundef %36, ptr noundef @.str.152)
  %38 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %39 = call i64 @strlen(ptr noundef %38) #7
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %7, align 4, !tbaa !9
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %43, label %57

43:                                               ; preds = %35
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp slt i32 %44, 36
  br i1 %45, label %46, label %57

46:                                               ; preds = %43
  %47 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %48 = call noundef zeroext i1 @_Z19isValidBase58StringPc(ptr noundef %47)
  br i1 %48, label %49, label %52

49:                                               ; preds = %46
  %50 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %51 = call noundef i32 @_Z9addvanityPc(ptr noundef %50)
  br label %56

52:                                               ; preds = %46
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.291, ptr noundef %54) #6
  br label %56

56:                                               ; preds = %52, %49
  br label %57

57:                                               ; preds = %56, %43, %35
  br label %58

58:                                               ; preds = %57, %28
  br label %23, !llvm.loop !11

59:                                               ; preds = %23
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call i32 @fclose(ptr noundef %60)
  br label %62

62:                                               ; preds = %59, %21
  %63 = load i32, ptr @vanity_rmd_total, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  store i64 %64, ptr @N, align 8, !tbaa !13
  %65 = load ptr, ptr @vanity_bloom, align 8, !tbaa !5
  %66 = load i64, ptr @N, align 8, !tbaa !13
  %67 = call noundef zeroext i1 @_Z15initBloomFilterP5bloomm(ptr noundef %65, i64 noundef %66)
  br i1 %67, label %69, label %68

68:                                               ; preds = %62
  store i1 false, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %104

69:                                               ; preds = %62
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %100, %69
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = load i32, ptr @vanity_rmd_targets, align 4, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %103

74:                                               ; preds = %70
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %96, %74
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = load ptr, ptr @vanity_rmd_limits, align 8, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp slt i32 %76, %81
  br i1 %82, label %83, label %99

83:                                               ; preds = %75
  %84 = load ptr, ptr @vanity_bloom, align 8, !tbaa !5
  %85 = load ptr, ptr @vanity_rmd_limit_values_A, align 8, !tbaa !5
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i32, ptr @vanity_rmd_minimun_bytes_check_length, align 4, !tbaa !9
  %95 = call i32 @bloom_add(ptr noundef %84, ptr noundef %93, i32 noundef %94)
  br label %96

96:                                               ; preds = %83
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %6, align 4, !tbaa !9
  br label %75, !llvm.loop !15

99:                                               ; preds = %75
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %5, align 4, !tbaa !9
  br label %70, !llvm.loop !16

103:                                              ; preds = %70
  store i1 true, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %104

104:                                              ; preds = %103, %68, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %105 = load i1, ptr %2, align 1
  ret i1 %105
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #5

declare noundef ptr @_Z4trimPcPKc(ptr noundef, ptr noundef) #5

declare i32 @fclose(ptr noundef) #5

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

declare i32 @bloom_add(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15initBloomFilterP5bloomm(ptr noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(read) "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 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 = { mustprogress 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 = { "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(read) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

@vanity_rmd_targets = external dso_local local_unnamed_addr global i32, align 4
@vanity_rmd_total = external dso_local local_unnamed_addr global i32, align 4
@vanity_rmd_limits = external dso_local local_unnamed_addr global ptr, align 8
@vanity_rmd_limit_values_A = external dso_local local_unnamed_addr global ptr, align 8
@vanity_rmd_minimun_bytes_check_length = external dso_local local_unnamed_addr global i32, align 4
@vanity_bloom = external dso_local local_unnamed_addr global ptr, align 8
@N = external dso_local local_unnamed_addr global i64, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.152 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z19isValidBase58StringPc(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z9addvanityPc(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z14readFileVanityPc(ptr nocapture noundef readonly %0) local_unnamed_addr #4 {
  %2 = alloca [100 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %2) #6
  %3 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.290)
  %4 = icmp eq ptr %3, null
  br i1 %4, label %6, label %.preheader20

.preheader20:                                     ; preds = %1
  %5 = tail call i32 @feof(ptr noundef nonnull %3) #6
  %.not21 = icmp eq i32 %5, 0
  br i1 %.not21, label %.lr.ph, label %._crit_edge

6:                                                ; preds = %1
  %7 = load i32, ptr @vanity_rmd_targets, align 4, !tbaa !5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %29

9:                                                ; preds = %6
  %10 = load ptr, ptr @stderr, align 8, !tbaa !9
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.289) #7
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader20, %26
  %12 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 100, ptr noundef nonnull %3)
  %13 = icmp eq ptr %12, %2
  br i1 %13, label %14, label %26

14:                                               ; preds = %.lr.ph
  %15 = call noundef ptr @_Z4trimPcPKc(ptr noundef nonnull %2, ptr noundef nonnull @.str.152)
  %16 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %17 = trunc i64 %16 to i32
  %18 = add i32 %17, -1
  %or.cond = icmp ult i32 %18, 35
  br i1 %or.cond, label %19, label %26

19:                                               ; preds = %14
  %20 = call noundef zeroext i1 @_Z19isValidBase58StringPc(ptr noundef nonnull %2)
  br i1 %20, label %21, label %23

21:                                               ; preds = %19
  %22 = call noundef i32 @_Z9addvanityPc(ptr noundef nonnull %2)
  br label %26

23:                                               ; preds = %19
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.291, ptr noundef nonnull %2) #7
  br label %26

26:                                               ; preds = %14, %23, %21, %.lr.ph
  %27 = call i32 @feof(ptr noundef nonnull %3) #6
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %26, %.preheader20
  %28 = call i32 @fclose(ptr noundef nonnull %3)
  br label %29

29:                                               ; preds = %6, %._crit_edge
  %30 = load i32, ptr @vanity_rmd_total, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  store i64 %31, ptr @N, align 8, !tbaa !13
  %32 = load ptr, ptr @vanity_bloom, align 8, !tbaa !9
  %33 = call noundef zeroext i1 @_Z15initBloomFilterP5bloomm(ptr noundef %32, i64 noundef %31)
  br i1 %33, label %.preheader19, label %.loopexit

.preheader19:                                     ; preds = %29
  %34 = load i32, ptr @vanity_rmd_targets, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %.preheader19
  %.pre = load ptr, ptr @vanity_rmd_limits, align 8, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge24
  %36 = phi i32 [ %34, %.preheader.preheader ], [ %54, %._crit_edge24 ]
  %37 = phi ptr [ %.pre, %.preheader.preheader ], [ %55, %._crit_edge24 ]
  %indvars.iv27 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next28, %._crit_edge24 ]
  %38 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv27
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph23, label %._crit_edge24

.lr.ph23:                                         ; preds = %.preheader, %.lr.ph23
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph23 ], [ 0, %.preheader ]
  %41 = load ptr, ptr @vanity_bloom, align 8, !tbaa !9
  %42 = load ptr, ptr @vanity_rmd_limit_values_A, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv27
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = load i32, ptr @vanity_rmd_minimun_bytes_check_length, align 4, !tbaa !5
  %48 = call i32 @bloom_add(ptr noundef %41, ptr noundef %46, i32 noundef %47)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load ptr, ptr @vanity_rmd_limits, align 8, !tbaa !9
  %50 = getelementptr inbounds i32, ptr %49, i64 %indvars.iv27
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph23, label %._crit_edge24.loopexit, !llvm.loop !15

._crit_edge24.loopexit:                           ; preds = %.lr.ph23
  %.pre30 = load i32, ptr @vanity_rmd_targets, align 4, !tbaa !5
  br label %._crit_edge24

._crit_edge24:                                    ; preds = %._crit_edge24.loopexit, %.preheader
  %54 = phi i32 [ %.pre30, %._crit_edge24.loopexit ], [ %36, %.preheader ]
  %55 = phi ptr [ %49, %._crit_edge24.loopexit ], [ %37, %.preheader ]
  %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1
  %56 = sext i32 %54 to i64
  %57 = icmp slt i64 %indvars.iv.next28, %56
  br i1 %57, label %.preheader, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %._crit_edge24, %.preheader19, %29, %9
  %.0 = phi i1 [ false, %9 ], [ false, %29 ], [ true, %.preheader19 ], [ true, %._crit_edge24 ]
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %2) #6
  ret i1 %.0
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

declare noundef ptr @_Z4trimPcPKc(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

declare i32 @bloom_add(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15initBloomFilterP5bloomm(ptr noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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 = { mustprogress 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 = { "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 = { cold nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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