; LLVM IR from seppo0010/rlite :: tests (btree-test)

; 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.greatest_run_info = type { i32, i32, i32, i32, i32, i32, %struct.greatest_suite_info, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.greatest_suite_info = type { i32, i32, i32, i32, i64, i64, i64, i64 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@greatest_info = external global %struct.greatest_run_info, align 8
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.btree_test.delete_tests = external hidden unnamed_addr constant [7 x [2 x i64]], align 16
@__const.btree_test.delete_tests_name = external hidden unnamed_addr constant [7 x ptr], align 16
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @btree_test() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [7 x [2 x i64]], align 16
  %11 = alloca [7 x ptr], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  br label %14

14:                                               ; preds = %0
  %15 = call i32 @greatest_pre_test(ptr noundef @.str)
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %25

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %18 = call i32 @_setjmp(ptr noundef getelementptr inbounds (%struct.greatest_run_info, ptr @greatest_info, i32 0, i32 20)) #7
  store i32 %18, ptr %7, align 4, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %17
  %22 = call i32 @basic_insert_hash_test()
  store i32 %22, ptr %7, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %21, %17
  %24 = load i32, ptr %7, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str, i32 noundef %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %33

25:                                               ; preds = %14
  %26 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %27 = and i32 %26, 4
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %25
  %30 = load ptr, ptr @stdout, align 8, !tbaa !14
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.1, ptr noundef @.str) #6
  br label %32

32:                                               ; preds = %29, %25
  br label %33

33:                                               ; preds = %32, %23
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = call i32 @greatest_pre_test(ptr noundef @.str.2)
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %40 = call i32 @random_hash_test(i64 noundef 10, i64 noundef 2)
  store i32 %40, ptr %8, align 4, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.2, i32 noundef %41)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %50

42:                                               ; preds = %36
  %43 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %44 = and i32 %43, 4
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = load ptr, ptr @stdout, align 8, !tbaa !14
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.1, ptr noundef @.str.2) #6
  br label %49

49:                                               ; preds = %46, %42
  br label %50

50:                                               ; preds = %49, %39
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = call i32 @greatest_pre_test(ptr noundef @.str.2)
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %57 = call i32 @random_hash_test(i64 noundef 100, i64 noundef 10)
  store i32 %57, ptr %9, align 4, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.2, i32 noundef %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %67

59:                                               ; preds = %53
  %60 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %61 = and i32 %60, 4
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = load ptr, ptr @stdout, align 8, !tbaa !14
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.1, ptr noundef @.str.2) #6
  br label %66

66:                                               ; preds = %63, %59
  br label %67

67:                                               ; preds = %66, %56
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 112, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.btree_test.delete_tests, i64 112, i1 false)
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.btree_test.delete_tests_name, i64 56, i1 false)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %74, %69
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 7
  br i1 %72, label %73, label %77

73:                                               ; preds = %70
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %1, align 4, !tbaa !5
  br label %70, !llvm.loop !15

77:                                               ; preds = %70
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %149, %77
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 2
  br i1 %80, label %81, label %152

81:                                               ; preds = %78
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 0
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, i32 100, i32 200
  %86 = sext i32 %85 to i64
  store i64 %86, ptr %4, align 8, !tbaa !17
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %145, %81
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 2
  br i1 %89, label %90, label %148

90:                                               ; preds = %87
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = icmp eq i32 %91, 0
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, i32 2, i32 10
  %95 = sext i32 %94 to i64
  store i64 %95, ptr %5, align 8, !tbaa !17
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %141, %90
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = icmp slt i32 %97, 3
  br i1 %98, label %99, label %144

99:                                               ; preds = %96
  %100 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %100, ptr %6, align 4, !tbaa !5
  call void @srand(i32 noundef 1) #6
  br label %101

101:                                              ; preds = %99
  %102 = call i32 @greatest_pre_test(ptr noundef @.str.10)
  %103 = icmp eq i32 %102, 1
  br i1 %103, label %104, label %110

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %105 = load i64, ptr %4, align 8, !tbaa !17
  %106 = load i64, ptr %5, align 8, !tbaa !17
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = call i32 @fuzzy_hash_test(i64 noundef %105, i64 noundef %106, i32 noundef %107)
  store i32 %108, ptr %12, align 4, !tbaa !5
  %109 = load i32, ptr %12, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.10, i32 noundef %109)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %118

110:                                              ; preds = %101
  %111 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %112 = and i32 %111, 4
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  %115 = load ptr, ptr @stdout, align 8, !tbaa !14
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.1, ptr noundef @.str.10) #6
  br label %117

117:                                              ; preds = %114, %110
  br label %118

118:                                              ; preds = %117, %104
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  %122 = call i32 @greatest_pre_test(ptr noundef @.str.11)
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %124, label %130

124:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %125 = load i64, ptr %4, align 8, !tbaa !17
  %126 = load i64, ptr %5, align 8, !tbaa !17
  %127 = load i32, ptr %6, align 4, !tbaa !5
  %128 = call i32 @fuzzy_hash_test_iterator(i64 noundef %125, i64 noundef %126, i32 noundef %127)
  store i32 %128, ptr %13, align 4, !tbaa !5
  %129 = load i32, ptr %13, align 4, !tbaa !5
  call void @greatest_post_test(ptr noundef @.str.11, i32 noundef %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %138

130:                                              ; preds = %121
  %131 = load i32, ptr @greatest_info, align 8, !tbaa !9
  %132 = and i32 %131, 4
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %137

134:                                              ; preds = %130
  %135 = load ptr, ptr @stdout, align 8, !tbaa !14
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.1, ptr noundef @.str.11) #6
  br label %137

137:                                              ; preds = %134, %130
  br label %138

138:                                              ; preds = %137, %124
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %3, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %3, align 4, !tbaa !5
  br label %96, !llvm.loop !18

144:                                              ; preds = %96
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %2, align 4, !tbaa !5
  br label %87, !llvm.loop !19

148:                                              ; preds = %87
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %1, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %1, align 4, !tbaa !5
  br label %78, !llvm.loop !20

152:                                              ; preds = %78
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

declare i32 @greatest_pre_test(ptr noundef) #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #3

declare void @greatest_post_test(ptr noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @random_hash_test(i64 noundef, i64 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nounwind
declare void @srand(i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @fuzzy_hash_test(i64 noundef, i64 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @fuzzy_hash_test_iterator(i64 noundef, i64 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_insert_hash_test() #0

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

!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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"greatest_run_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !13, i64 72, !6, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !6, i64 132, !13, i64 136, !13, i64 144, !12, i64 152, !12, i64 160, !7, i64 168}
!11 = !{!"greatest_suite_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


; 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.greatest_run_info = type { i32, i32, i32, i32, i32, i32, %struct.greatest_suite_info, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.greatest_suite_info = type { i32, i32, i32, i32, i64, i64, i64, i64 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@greatest_info = external global %struct.greatest_run_info, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @btree_test() local_unnamed_addr #0 {
  %1 = call i32 @greatest_pre_test(ptr noundef nonnull @.str) #5
  %2 = icmp eq i32 %1, 1
  br i1 %2, label %3, label %9

3:                                                ; preds = %0
  %4 = call i32 @_setjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @greatest_info, i64 168)) #6
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %6, label %8

6:                                                ; preds = %3
  %7 = call i32 @basic_insert_hash_test()
  br label %8

8:                                                ; preds = %6, %3
  %.025 = phi i32 [ %7, %6 ], [ %4, %3 ]
  call void @greatest_post_test(ptr noundef nonnull @.str, i32 noundef %.025) #5
  br label %15

9:                                                ; preds = %0
  %10 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %11 = and i32 %10, 4
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %15, label %12

12:                                               ; preds = %9
  %13 = load ptr, ptr @stdout, align 8, !tbaa !13
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str) #5
  br label %15

15:                                               ; preds = %8, %12, %9
  %16 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.2) #5
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = call i32 @random_hash_test(i64 noundef 10, i64 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.2, i32 noundef %19) #5
  br label %26

20:                                               ; preds = %15
  %21 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %22 = and i32 %21, 4
  %.not27 = icmp eq i32 %22, 0
  br i1 %.not27, label %26, label %23

23:                                               ; preds = %20
  %24 = load ptr, ptr @stdout, align 8, !tbaa !13
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #5
  br label %26

26:                                               ; preds = %18, %23, %20
  %27 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.2) #5
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = call i32 @random_hash_test(i64 noundef 100, i64 noundef 10)
  call void @greatest_post_test(ptr noundef nonnull @.str.2, i32 noundef %30) #5
  br label %.preheader.preheader

31:                                               ; preds = %26
  %32 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %33 = and i32 %32, 4
  %.not28 = icmp eq i32 %33, 0
  br i1 %.not28, label %.preheader.preheader, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr @stdout, align 8, !tbaa !13
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #5
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %31, %34, %29
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %170
  %37 = phi i1 [ false, %170 ], [ true, %.preheader.preheader ]
  %38 = select i1 %37, i64 100, i64 200
  call void @srand(i32 noundef 1) #5
  %39 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %43

41:                                               ; preds = %.preheader
  %42 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 2, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %42) #5
  br label %49

43:                                               ; preds = %.preheader
  %44 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %45 = and i32 %44, 4
  %.not29 = icmp eq i32 %45, 0
  br i1 %.not29, label %49, label %46

46:                                               ; preds = %43
  %47 = load ptr, ptr @stdout, align 8, !tbaa !13
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %49

49:                                               ; preds = %41, %46, %43
  %50 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %54

52:                                               ; preds = %49
  %53 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 2, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %53) #5
  br label %60

54:                                               ; preds = %49
  %55 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %56 = and i32 %55, 4
  %.not30 = icmp eq i32 %56, 0
  br i1 %.not30, label %60, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr @stdout, align 8, !tbaa !13
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %60

60:                                               ; preds = %52, %57, %54
  call void @srand(i32 noundef 1) #5
  %61 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %69, label %63

63:                                               ; preds = %60
  %64 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %65 = and i32 %64, 4
  %.not29.1 = icmp eq i32 %65, 0
  br i1 %.not29.1, label %71, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr @stdout, align 8, !tbaa !13
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %71

69:                                               ; preds = %60
  %70 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 2, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %70) #5
  br label %71

71:                                               ; preds = %69, %66, %63
  %72 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %80, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %76 = and i32 %75, 4
  %.not30.1 = icmp eq i32 %76, 0
  br i1 %.not30.1, label %82, label %77

77:                                               ; preds = %74
  %78 = load ptr, ptr @stdout, align 8, !tbaa !13
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %82

80:                                               ; preds = %71
  %81 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 2, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %81) #5
  br label %82

82:                                               ; preds = %80, %77, %74
  call void @srand(i32 noundef 1) #5
  %83 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %91, label %85

85:                                               ; preds = %82
  %86 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %87 = and i32 %86, 4
  %.not29.2 = icmp eq i32 %87, 0
  br i1 %.not29.2, label %93, label %88

88:                                               ; preds = %85
  %89 = load ptr, ptr @stdout, align 8, !tbaa !13
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %93

91:                                               ; preds = %82
  %92 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 2, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %92) #5
  br label %93

93:                                               ; preds = %91, %88, %85
  %94 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %102, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %98 = and i32 %97, 4
  %.not30.2 = icmp eq i32 %98, 0
  br i1 %.not30.2, label %104, label %99

99:                                               ; preds = %96
  %100 = load ptr, ptr @stdout, align 8, !tbaa !13
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %104

102:                                              ; preds = %93
  %103 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 2, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %103) #5
  br label %104

104:                                              ; preds = %102, %99, %96
  call void @srand(i32 noundef 1) #5
  %105 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %106 = icmp eq i32 %105, 1
  br i1 %106, label %113, label %107

107:                                              ; preds = %104
  %108 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %109 = and i32 %108, 4
  %.not29.134 = icmp eq i32 %109, 0
  br i1 %.not29.134, label %115, label %110

110:                                              ; preds = %107
  %111 = load ptr, ptr @stdout, align 8, !tbaa !13
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %115

113:                                              ; preds = %104
  %114 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 10, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %114) #5
  br label %115

115:                                              ; preds = %113, %110, %107
  %116 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %124, label %118

118:                                              ; preds = %115
  %119 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %120 = and i32 %119, 4
  %.not30.135 = icmp eq i32 %120, 0
  br i1 %.not30.135, label %126, label %121

121:                                              ; preds = %118
  %122 = load ptr, ptr @stdout, align 8, !tbaa !13
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %126

124:                                              ; preds = %115
  %125 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 10, i32 noundef 0)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %125) #5
  br label %126

126:                                              ; preds = %124, %121, %118
  call void @srand(i32 noundef 1) #5
  %127 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %135, label %129

129:                                              ; preds = %126
  %130 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %131 = and i32 %130, 4
  %.not29.1.1 = icmp eq i32 %131, 0
  br i1 %.not29.1.1, label %137, label %132

132:                                              ; preds = %129
  %133 = load ptr, ptr @stdout, align 8, !tbaa !13
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %137

135:                                              ; preds = %126
  %136 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 10, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %136) #5
  br label %137

137:                                              ; preds = %135, %132, %129
  %138 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %146, label %140

140:                                              ; preds = %137
  %141 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %142 = and i32 %141, 4
  %.not30.1.1 = icmp eq i32 %142, 0
  br i1 %.not30.1.1, label %148, label %143

143:                                              ; preds = %140
  %144 = load ptr, ptr @stdout, align 8, !tbaa !13
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %148

146:                                              ; preds = %137
  %147 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 10, i32 noundef 1)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %147) #5
  br label %148

148:                                              ; preds = %146, %143, %140
  call void @srand(i32 noundef 1) #5
  %149 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.10) #5
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %157, label %151

151:                                              ; preds = %148
  %152 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %153 = and i32 %152, 4
  %.not29.2.1 = icmp eq i32 %153, 0
  br i1 %.not29.2.1, label %159, label %154

154:                                              ; preds = %151
  %155 = load ptr, ptr @stdout, align 8, !tbaa !13
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  br label %159

157:                                              ; preds = %148
  %158 = call i32 @fuzzy_hash_test(i64 noundef %38, i64 noundef 10, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.10, i32 noundef %158) #5
  br label %159

159:                                              ; preds = %157, %154, %151
  %160 = call i32 @greatest_pre_test(ptr noundef nonnull @.str.11) #5
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %168, label %162

162:                                              ; preds = %159
  %163 = load i32, ptr @greatest_info, align 8, !tbaa !5
  %164 = and i32 %163, 4
  %.not30.2.1 = icmp eq i32 %164, 0
  br i1 %.not30.2.1, label %170, label %165

165:                                              ; preds = %162
  %166 = load ptr, ptr @stdout, align 8, !tbaa !13
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  br label %170

168:                                              ; preds = %159
  %169 = call i32 @fuzzy_hash_test_iterator(i64 noundef %38, i64 noundef 10, i32 noundef 2)
  call void @greatest_post_test(ptr noundef nonnull @.str.11, i32 noundef %169) #5
  br label %170

170:                                              ; preds = %168, %165, %162
  br i1 %37, label %.preheader, label %171, !llvm.loop !14

171:                                              ; preds = %170
  ret void
}

declare i32 @greatest_pre_test(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #2

declare void @greatest_post_test(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @basic_insert_hash_test() local_unnamed_addr #0

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 = { nounwind returns_twice "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 = { 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 returns_twice }

!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 0}
!6 = !{!"greatest_run_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !7, i64 128, !7, i64 132, !12, i64 136, !12, i64 144, !11, i64 152, !11, i64 160, !8, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"greatest_suite_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"long", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass