; LLVM IR from Montimage/mmt-security :: test/perf (hash)

; 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.entry_struct = type { i32, i32 }

@hash_table = external dso_local global ptr, align 8
@entry = external dso_local global [50 x %struct.entry_struct], align 16
@keys = external dso_local global [20000000 x i64], align 16
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %11 = call i64 @time(ptr noundef null) #5
  %12 = trunc i64 %11 to i32
  call void @srand(i32 noundef %12) #5
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %26, %2
  %14 = load i64, ptr %6, align 8, !tbaa !11
  %15 = icmp ult i64 %14, 50
  br i1 %15, label %16, label %29

16:                                               ; preds = %13
  %17 = load i64, ptr %6, align 8, !tbaa !11
  %18 = trunc i64 %17 to i32
  %19 = load i64, ptr %6, align 8, !tbaa !11
  %20 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %19
  %21 = getelementptr inbounds %struct.entry_struct, ptr %20, i32 0, i32 0
  store i32 %18, ptr %21, align 8, !tbaa !13
  %22 = call i32 @rand() #5
  %23 = load i64, ptr %6, align 8, !tbaa !11
  %24 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.entry_struct, ptr %24, i32 0, i32 1
  store i32 %22, ptr %25, align 4, !tbaa !15
  br label %26

26:                                               ; preds = %16
  %27 = load i64, ptr %6, align 8, !tbaa !11
  %28 = add i64 %27, 1
  store i64 %28, ptr %6, align 8, !tbaa !11
  br label %13, !llvm.loop !16

29:                                               ; preds = %13
  %30 = call ptr @mmt_hash_create()
  store ptr %30, ptr @hash_table, align 8, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %31

31:                                               ; preds = %41, %29
  %32 = load i64, ptr %6, align 8, !tbaa !11
  %33 = icmp ult i64 %32, 50
  br i1 %33, label %34, label %44

34:                                               ; preds = %31
  %35 = load ptr, ptr @hash_table, align 8, !tbaa !9
  %36 = load i64, ptr %6, align 8, !tbaa !11
  %37 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %36
  %38 = load i64, ptr %6, align 8, !tbaa !11
  %39 = inttoptr i64 %38 to ptr
  %40 = call ptr @mmt_hash_add(ptr noundef %35, ptr noundef %37, i8 noundef zeroext 8, ptr noundef %39, i1 noundef zeroext false)
  br label %41

41:                                               ; preds = %34
  %42 = load i64, ptr %6, align 8, !tbaa !11
  %43 = add i64 %42, 1
  store i64 %43, ptr %6, align 8, !tbaa !11
  br label %31, !llvm.loop !18

44:                                               ; preds = %31
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %45

45:                                               ; preds = %55, %44
  %46 = load i64, ptr %6, align 8, !tbaa !11
  %47 = icmp ult i64 %46, 20000000
  br i1 %47, label %48, label %58

48:                                               ; preds = %45
  %49 = load i64, ptr %6, align 8, !tbaa !11
  %50 = urem i64 %49, 50
  %51 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %6, align 8, !tbaa !11
  %54 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %53
  store i64 %52, ptr %54, align 8, !tbaa !11
  br label %55

55:                                               ; preds = %48
  %56 = load i64, ptr %6, align 8, !tbaa !11
  %57 = add i64 %56, 1
  store i64 %57, ptr %6, align 8, !tbaa !11
  br label %45, !llvm.loop !19

58:                                               ; preds = %45
  store i64 0, ptr %8, align 8, !tbaa !11
  %59 = call i64 @clock() #5
  store i64 %59, ptr %9, align 8, !tbaa !11
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %76, %58
  %61 = load i64, ptr %6, align 8, !tbaa !11
  %62 = icmp ult i64 %61, 20000000
  br i1 %62, label %63, label %79

63:                                               ; preds = %60
  %64 = load i64, ptr %6, align 8, !tbaa !11
  %65 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %64
  %66 = call i32 @naif_lookup(ptr noundef %65)
  %67 = sext i32 %66 to i64
  store i64 %67, ptr %7, align 8, !tbaa !11
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = urem i64 %68, 50
  %70 = load i64, ptr %7, align 8, !tbaa !11
  %71 = icmp eq i64 %69, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %63
  %73 = load i64, ptr %8, align 8, !tbaa !11
  %74 = add i64 %73, 1
  store i64 %74, ptr %8, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %72, %63
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %6, align 8, !tbaa !11
  %78 = add i64 %77, 1
  store i64 %78, ptr %6, align 8, !tbaa !11
  br label %60, !llvm.loop !20

79:                                               ; preds = %60
  %80 = load i64, ptr %8, align 8, !tbaa !11
  %81 = call i64 @clock() #5
  %82 = load i64, ptr %9, align 8, !tbaa !11
  %83 = sub nsw i64 %81, %82
  %84 = sitofp i64 %83 to float
  %85 = fdiv float %84, 1.000000e+06
  %86 = fpext float %85 to double
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %80, i32 noundef 50, i64 noundef 400, double noundef %86)
  store i64 0, ptr %8, align 8, !tbaa !11
  %88 = call i64 @clock() #5
  store i64 %88, ptr %9, align 8, !tbaa !11
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %89

89:                                               ; preds = %106, %79
  %90 = load i64, ptr %6, align 8, !tbaa !11
  %91 = icmp ult i64 %90, 20000000
  br i1 %91, label %92, label %109

92:                                               ; preds = %89
  %93 = load ptr, ptr @hash_table, align 8, !tbaa !9
  %94 = load i64, ptr %6, align 8, !tbaa !11
  %95 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %94
  %96 = call ptr @mmt_hash_search(ptr noundef %93, ptr noundef %95, i8 noundef zeroext 8)
  %97 = ptrtoint ptr %96 to i64
  store i64 %97, ptr %7, align 8, !tbaa !11
  %98 = load i64, ptr %6, align 8, !tbaa !11
  %99 = urem i64 %98, 50
  %100 = load i64, ptr %7, align 8, !tbaa !11
  %101 = icmp eq i64 %99, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %92
  %103 = load i64, ptr %8, align 8, !tbaa !11
  %104 = add i64 %103, 1
  store i64 %104, ptr %8, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %102, %92
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %6, align 8, !tbaa !11
  %108 = add i64 %107, 1
  store i64 %108, ptr %6, align 8, !tbaa !11
  br label %89, !llvm.loop !21

109:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !11
  %110 = load i64, ptr %8, align 8, !tbaa !11
  %111 = load i64, ptr %10, align 8, !tbaa !11
  %112 = load i64, ptr %10, align 8, !tbaa !11
  %113 = mul i64 %112, 2056
  %114 = call i64 @clock() #5
  %115 = load i64, ptr %9, align 8, !tbaa !11
  %116 = sub nsw i64 %114, %115
  %117 = sitofp i64 %116 to double
  %118 = fdiv double %117, 1.000000e+06
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %110, i64 noundef %111, i64 noundef %113, double noundef %118)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_add(ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef, i1 noundef zeroext) #4

; Function Attrs: nounwind
declare i64 @clock() #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_search(ptr noundef, ptr noundef, i8 noundef zeroext) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_create() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { 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 = { 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 #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"entry_struct", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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.entry_struct = type { i32, i32 }

@hash_table = external dso_local local_unnamed_addr global ptr, align 8
@entry = external dso_local global [50 x %struct.entry_struct], align 16
@keys = external dso_local global [20000000 x i64], align 16
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
  %3 = tail call i64 @time(ptr noundef null) #4
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #4
  store i32 0, ptr @entry, align 16, !tbaa !5
  %5 = tail call i32 @rand() #4
  store i32 %5, ptr getelementptr inbounds (i8, ptr @entry, i64 4), align 4, !tbaa !10
  store i32 1, ptr getelementptr inbounds (i8, ptr @entry, i64 8), align 8, !tbaa !5
  %6 = tail call i32 @rand() #4
  store i32 %6, ptr getelementptr inbounds (i8, ptr @entry, i64 12), align 4, !tbaa !10
  store i32 2, ptr getelementptr inbounds (i8, ptr @entry, i64 16), align 16, !tbaa !5
  %7 = tail call i32 @rand() #4
  store i32 %7, ptr getelementptr inbounds (i8, ptr @entry, i64 20), align 4, !tbaa !10
  store i32 3, ptr getelementptr inbounds (i8, ptr @entry, i64 24), align 8, !tbaa !5
  %8 = tail call i32 @rand() #4
  store i32 %8, ptr getelementptr inbounds (i8, ptr @entry, i64 28), align 4, !tbaa !10
  store i32 4, ptr getelementptr inbounds (i8, ptr @entry, i64 32), align 16, !tbaa !5
  %9 = tail call i32 @rand() #4
  store i32 %9, ptr getelementptr inbounds (i8, ptr @entry, i64 36), align 4, !tbaa !10
  store i32 5, ptr getelementptr inbounds (i8, ptr @entry, i64 40), align 8, !tbaa !5
  %10 = tail call i32 @rand() #4
  store i32 %10, ptr getelementptr inbounds (i8, ptr @entry, i64 44), align 4, !tbaa !10
  store i32 6, ptr getelementptr inbounds (i8, ptr @entry, i64 48), align 16, !tbaa !5
  %11 = tail call i32 @rand() #4
  store i32 %11, ptr getelementptr inbounds (i8, ptr @entry, i64 52), align 4, !tbaa !10
  store i32 7, ptr getelementptr inbounds (i8, ptr @entry, i64 56), align 8, !tbaa !5
  %12 = tail call i32 @rand() #4
  store i32 %12, ptr getelementptr inbounds (i8, ptr @entry, i64 60), align 4, !tbaa !10
  store i32 8, ptr getelementptr inbounds (i8, ptr @entry, i64 64), align 16, !tbaa !5
  %13 = tail call i32 @rand() #4
  store i32 %13, ptr getelementptr inbounds (i8, ptr @entry, i64 68), align 4, !tbaa !10
  store i32 9, ptr getelementptr inbounds (i8, ptr @entry, i64 72), align 8, !tbaa !5
  %14 = tail call i32 @rand() #4
  store i32 %14, ptr getelementptr inbounds (i8, ptr @entry, i64 76), align 4, !tbaa !10
  store i32 10, ptr getelementptr inbounds (i8, ptr @entry, i64 80), align 16, !tbaa !5
  %15 = tail call i32 @rand() #4
  store i32 %15, ptr getelementptr inbounds (i8, ptr @entry, i64 84), align 4, !tbaa !10
  store i32 11, ptr getelementptr inbounds (i8, ptr @entry, i64 88), align 8, !tbaa !5
  %16 = tail call i32 @rand() #4
  store i32 %16, ptr getelementptr inbounds (i8, ptr @entry, i64 92), align 4, !tbaa !10
  store i32 12, ptr getelementptr inbounds (i8, ptr @entry, i64 96), align 16, !tbaa !5
  %17 = tail call i32 @rand() #4
  store i32 %17, ptr getelementptr inbounds (i8, ptr @entry, i64 100), align 4, !tbaa !10
  store i32 13, ptr getelementptr inbounds (i8, ptr @entry, i64 104), align 8, !tbaa !5
  %18 = tail call i32 @rand() #4
  store i32 %18, ptr getelementptr inbounds (i8, ptr @entry, i64 108), align 4, !tbaa !10
  store i32 14, ptr getelementptr inbounds (i8, ptr @entry, i64 112), align 16, !tbaa !5
  %19 = tail call i32 @rand() #4
  store i32 %19, ptr getelementptr inbounds (i8, ptr @entry, i64 116), align 4, !tbaa !10
  store i32 15, ptr getelementptr inbounds (i8, ptr @entry, i64 120), align 8, !tbaa !5
  %20 = tail call i32 @rand() #4
  store i32 %20, ptr getelementptr inbounds (i8, ptr @entry, i64 124), align 4, !tbaa !10
  store i32 16, ptr getelementptr inbounds (i8, ptr @entry, i64 128), align 16, !tbaa !5
  %21 = tail call i32 @rand() #4
  store i32 %21, ptr getelementptr inbounds (i8, ptr @entry, i64 132), align 4, !tbaa !10
  store i32 17, ptr getelementptr inbounds (i8, ptr @entry, i64 136), align 8, !tbaa !5
  %22 = tail call i32 @rand() #4
  store i32 %22, ptr getelementptr inbounds (i8, ptr @entry, i64 140), align 4, !tbaa !10
  store i32 18, ptr getelementptr inbounds (i8, ptr @entry, i64 144), align 16, !tbaa !5
  %23 = tail call i32 @rand() #4
  store i32 %23, ptr getelementptr inbounds (i8, ptr @entry, i64 148), align 4, !tbaa !10
  store i32 19, ptr getelementptr inbounds (i8, ptr @entry, i64 152), align 8, !tbaa !5
  %24 = tail call i32 @rand() #4
  store i32 %24, ptr getelementptr inbounds (i8, ptr @entry, i64 156), align 4, !tbaa !10
  store i32 20, ptr getelementptr inbounds (i8, ptr @entry, i64 160), align 16, !tbaa !5
  %25 = tail call i32 @rand() #4
  store i32 %25, ptr getelementptr inbounds (i8, ptr @entry, i64 164), align 4, !tbaa !10
  store i32 21, ptr getelementptr inbounds (i8, ptr @entry, i64 168), align 8, !tbaa !5
  %26 = tail call i32 @rand() #4
  store i32 %26, ptr getelementptr inbounds (i8, ptr @entry, i64 172), align 4, !tbaa !10
  store i32 22, ptr getelementptr inbounds (i8, ptr @entry, i64 176), align 16, !tbaa !5
  %27 = tail call i32 @rand() #4
  store i32 %27, ptr getelementptr inbounds (i8, ptr @entry, i64 180), align 4, !tbaa !10
  store i32 23, ptr getelementptr inbounds (i8, ptr @entry, i64 184), align 8, !tbaa !5
  %28 = tail call i32 @rand() #4
  store i32 %28, ptr getelementptr inbounds (i8, ptr @entry, i64 188), align 4, !tbaa !10
  store i32 24, ptr getelementptr inbounds (i8, ptr @entry, i64 192), align 16, !tbaa !5
  %29 = tail call i32 @rand() #4
  store i32 %29, ptr getelementptr inbounds (i8, ptr @entry, i64 196), align 4, !tbaa !10
  store i32 25, ptr getelementptr inbounds (i8, ptr @entry, i64 200), align 8, !tbaa !5
  %30 = tail call i32 @rand() #4
  store i32 %30, ptr getelementptr inbounds (i8, ptr @entry, i64 204), align 4, !tbaa !10
  store i32 26, ptr getelementptr inbounds (i8, ptr @entry, i64 208), align 16, !tbaa !5
  %31 = tail call i32 @rand() #4
  store i32 %31, ptr getelementptr inbounds (i8, ptr @entry, i64 212), align 4, !tbaa !10
  store i32 27, ptr getelementptr inbounds (i8, ptr @entry, i64 216), align 8, !tbaa !5
  %32 = tail call i32 @rand() #4
  store i32 %32, ptr getelementptr inbounds (i8, ptr @entry, i64 220), align 4, !tbaa !10
  store i32 28, ptr getelementptr inbounds (i8, ptr @entry, i64 224), align 16, !tbaa !5
  %33 = tail call i32 @rand() #4
  store i32 %33, ptr getelementptr inbounds (i8, ptr @entry, i64 228), align 4, !tbaa !10
  store i32 29, ptr getelementptr inbounds (i8, ptr @entry, i64 232), align 8, !tbaa !5
  %34 = tail call i32 @rand() #4
  store i32 %34, ptr getelementptr inbounds (i8, ptr @entry, i64 236), align 4, !tbaa !10
  store i32 30, ptr getelementptr inbounds (i8, ptr @entry, i64 240), align 16, !tbaa !5
  %35 = tail call i32 @rand() #4
  store i32 %35, ptr getelementptr inbounds (i8, ptr @entry, i64 244), align 4, !tbaa !10
  store i32 31, ptr getelementptr inbounds (i8, ptr @entry, i64 248), align 8, !tbaa !5
  %36 = tail call i32 @rand() #4
  store i32 %36, ptr getelementptr inbounds (i8, ptr @entry, i64 252), align 4, !tbaa !10
  store i32 32, ptr getelementptr inbounds (i8, ptr @entry, i64 256), align 16, !tbaa !5
  %37 = tail call i32 @rand() #4
  store i32 %37, ptr getelementptr inbounds (i8, ptr @entry, i64 260), align 4, !tbaa !10
  store i32 33, ptr getelementptr inbounds (i8, ptr @entry, i64 264), align 8, !tbaa !5
  %38 = tail call i32 @rand() #4
  store i32 %38, ptr getelementptr inbounds (i8, ptr @entry, i64 268), align 4, !tbaa !10
  store i32 34, ptr getelementptr inbounds (i8, ptr @entry, i64 272), align 16, !tbaa !5
  %39 = tail call i32 @rand() #4
  store i32 %39, ptr getelementptr inbounds (i8, ptr @entry, i64 276), align 4, !tbaa !10
  store i32 35, ptr getelementptr inbounds (i8, ptr @entry, i64 280), align 8, !tbaa !5
  %40 = tail call i32 @rand() #4
  store i32 %40, ptr getelementptr inbounds (i8, ptr @entry, i64 284), align 4, !tbaa !10
  store i32 36, ptr getelementptr inbounds (i8, ptr @entry, i64 288), align 16, !tbaa !5
  %41 = tail call i32 @rand() #4
  store i32 %41, ptr getelementptr inbounds (i8, ptr @entry, i64 292), align 4, !tbaa !10
  store i32 37, ptr getelementptr inbounds (i8, ptr @entry, i64 296), align 8, !tbaa !5
  %42 = tail call i32 @rand() #4
  store i32 %42, ptr getelementptr inbounds (i8, ptr @entry, i64 300), align 4, !tbaa !10
  store i32 38, ptr getelementptr inbounds (i8, ptr @entry, i64 304), align 16, !tbaa !5
  %43 = tail call i32 @rand() #4
  store i32 %43, ptr getelementptr inbounds (i8, ptr @entry, i64 308), align 4, !tbaa !10
  store i32 39, ptr getelementptr inbounds (i8, ptr @entry, i64 312), align 8, !tbaa !5
  %44 = tail call i32 @rand() #4
  store i32 %44, ptr getelementptr inbounds (i8, ptr @entry, i64 316), align 4, !tbaa !10
  store i32 40, ptr getelementptr inbounds (i8, ptr @entry, i64 320), align 16, !tbaa !5
  %45 = tail call i32 @rand() #4
  store i32 %45, ptr getelementptr inbounds (i8, ptr @entry, i64 324), align 4, !tbaa !10
  store i32 41, ptr getelementptr inbounds (i8, ptr @entry, i64 328), align 8, !tbaa !5
  %46 = tail call i32 @rand() #4
  store i32 %46, ptr getelementptr inbounds (i8, ptr @entry, i64 332), align 4, !tbaa !10
  store i32 42, ptr getelementptr inbounds (i8, ptr @entry, i64 336), align 16, !tbaa !5
  %47 = tail call i32 @rand() #4
  store i32 %47, ptr getelementptr inbounds (i8, ptr @entry, i64 340), align 4, !tbaa !10
  store i32 43, ptr getelementptr inbounds (i8, ptr @entry, i64 344), align 8, !tbaa !5
  %48 = tail call i32 @rand() #4
  store i32 %48, ptr getelementptr inbounds (i8, ptr @entry, i64 348), align 4, !tbaa !10
  store i32 44, ptr getelementptr inbounds (i8, ptr @entry, i64 352), align 16, !tbaa !5
  %49 = tail call i32 @rand() #4
  store i32 %49, ptr getelementptr inbounds (i8, ptr @entry, i64 356), align 4, !tbaa !10
  store i32 45, ptr getelementptr inbounds (i8, ptr @entry, i64 360), align 8, !tbaa !5
  %50 = tail call i32 @rand() #4
  store i32 %50, ptr getelementptr inbounds (i8, ptr @entry, i64 364), align 4, !tbaa !10
  store i32 46, ptr getelementptr inbounds (i8, ptr @entry, i64 368), align 16, !tbaa !5
  %51 = tail call i32 @rand() #4
  store i32 %51, ptr getelementptr inbounds (i8, ptr @entry, i64 372), align 4, !tbaa !10
  store i32 47, ptr getelementptr inbounds (i8, ptr @entry, i64 376), align 8, !tbaa !5
  %52 = tail call i32 @rand() #4
  store i32 %52, ptr getelementptr inbounds (i8, ptr @entry, i64 380), align 4, !tbaa !10
  store i32 48, ptr getelementptr inbounds (i8, ptr @entry, i64 384), align 16, !tbaa !5
  %53 = tail call i32 @rand() #4
  store i32 %53, ptr getelementptr inbounds (i8, ptr @entry, i64 388), align 4, !tbaa !10
  store i32 49, ptr getelementptr inbounds (i8, ptr @entry, i64 392), align 8, !tbaa !5
  %54 = tail call i32 @rand() #4
  store i32 %54, ptr getelementptr inbounds (i8, ptr @entry, i64 396), align 4, !tbaa !10
  %55 = tail call ptr @mmt_hash_create()
  store ptr %55, ptr @hash_table, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %2, %56
  %.141 = phi i64 [ 0, %2 ], [ %61, %56 ]
  %57 = load ptr, ptr @hash_table, align 8, !tbaa !11
  %58 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %.141
  %59 = inttoptr i64 %.141 to ptr
  %60 = tail call ptr @mmt_hash_add(ptr noundef %57, ptr noundef nonnull %58, i8 noundef zeroext 8, ptr noundef %59, i1 noundef zeroext false)
  %61 = add nuw nsw i64 %.141, 1
  %exitcond.not = icmp eq i64 %61, 50
  br i1 %exitcond.not, label %.preheader, label %56, !llvm.loop !13

.preheader:                                       ; preds = %56, %.preheader
  %.242 = phi i64 [ %71, %.preheader ], [ 0, %56 ]
  %.lhs.trunc = trunc nuw i64 %.242 to i32
  %62 = urem i32 %.lhs.trunc, 50
  %.zext = zext nneg i32 %62 to i64
  %63 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %.zext
  %64 = load i64, ptr %63, align 16, !tbaa !15
  %65 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %.242
  store i64 %64, ptr %65, align 16, !tbaa !15
  %66 = or disjoint i64 %.242, 1
  %.lhs.trunc.1 = trunc nuw i64 %66 to i32
  %67 = urem i32 %.lhs.trunc.1, 50
  %.zext.1 = zext nneg i32 %67 to i64
  %68 = getelementptr inbounds [50 x %struct.entry_struct], ptr @entry, i64 0, i64 %.zext.1
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %66
  store i64 %69, ptr %70, align 8, !tbaa !15
  %71 = add nuw nsw i64 %.242, 2
  %exitcond47.not.1 = icmp eq i64 %71, 20000000
  br i1 %exitcond47.not.1, label %72, label %.preheader, !llvm.loop !17

72:                                               ; preds = %.preheader
  %73 = tail call i64 @clock() #4
  br label %74

74:                                               ; preds = %72, %74
  %.344 = phi i64 [ 0, %72 ], [ %80, %74 ]
  %.03143 = phi i64 [ 0, %72 ], [ %spec.select, %74 ]
  %75 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %.344
  %76 = tail call i32 @naif_lookup(ptr noundef nonnull %75)
  %.lhs.trunc36 = trunc nuw i64 %.344 to i32
  %77 = urem i32 %.lhs.trunc36, 50
  %78 = icmp eq i32 %77, %76
  %79 = zext i1 %78 to i64
  %spec.select = add i64 %.03143, %79
  %80 = add nuw nsw i64 %.344, 1
  %exitcond48.not = icmp eq i64 %80, 20000000
  br i1 %exitcond48.not, label %81, label %74, !llvm.loop !18

81:                                               ; preds = %74
  %82 = tail call i64 @clock() #4
  %83 = sub nsw i64 %82, %73
  %84 = sitofp i64 %83 to float
  %85 = fdiv float %84, 1.000000e+06
  %86 = fpext float %85 to double
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %spec.select, i32 noundef 50, i64 noundef 400, double noundef %86)
  %88 = tail call i64 @clock() #4
  br label %89

89:                                               ; preds = %81, %89
  %.446 = phi i64 [ 0, %81 ], [ %97, %89 ]
  %.23345 = phi i64 [ 0, %81 ], [ %spec.select35, %89 ]
  %90 = load ptr, ptr @hash_table, align 8, !tbaa !11
  %91 = getelementptr inbounds [20000000 x i64], ptr @keys, i64 0, i64 %.446
  %92 = tail call ptr @mmt_hash_search(ptr noundef %90, ptr noundef nonnull %91, i8 noundef zeroext 8)
  %93 = ptrtoint ptr %92 to i64
  %.lhs.trunc38 = trunc nuw i64 %.446 to i32
  %94 = urem i32 %.lhs.trunc38, 50
  %.zext39 = zext nneg i32 %94 to i64
  %95 = icmp eq i64 %.zext39, %93
  %96 = zext i1 %95 to i64
  %spec.select35 = add i64 %.23345, %96
  %97 = add nuw nsw i64 %.446, 1
  %exitcond49.not = icmp eq i64 %97, 20000000
  br i1 %exitcond49.not, label %98, label %89, !llvm.loop !19

98:                                               ; preds = %89
  %99 = tail call i64 @clock() #4
  %100 = sub nsw i64 %99, %88
  %101 = sitofp i64 %100 to double
  %102 = fdiv double %101, 1.000000e+06
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %spec.select35, i64 noundef 0, i64 noundef 0, double noundef %102)
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_add(ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_search(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mmt_hash_create() local_unnamed_addr #3

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { 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, !7, i64 0}
!6 = !{!"entry_struct", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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