; LLVM IR from themisvaltinos/Partitioned-Hash-Join :: tests (test_hopscotch)

; 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.tuple = type { i32, i32 }
%struct.hash_table = type { ptr, i32, i32, i32 }
%struct.row_ids = type { i32, i32, ptr }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @acutest_check_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #0

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

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

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() #2

declare i64 @ranHash(i64 noundef) #3

declare ptr @createHashTable(i32 noundef, i32 noundef) #3

declare void @destroyHashTable(ptr noundef) #3

declare i32 @insert(ptr noundef, ptr noundef) #3

declare ptr @search(ptr noundef, i32 noundef) #3

declare void @destroyRowIDs(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @testCollisions() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.tuple, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 16, ptr %1, align 4, !tbaa !5
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = zext i32 %13 to i64
  %15 = call ptr @llvm.stacksave.p0()
  store ptr %15, ptr %2, align 8
  %16 = alloca i32, i64 %14, align 16
  store i64 %14, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 2, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %36, %0
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %39

21:                                               ; preds = %17
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = call i64 @ranHash(i64 noundef %23)
  %25 = urem i64 %24, 16
  %26 = icmp eq i64 %25, 5
  br i1 %26, label %27, label %35

27:                                               ; preds = %21
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = add i32 %29, 1
  store i32 %30, ptr %5, align 4, !tbaa !5
  %31 = zext i32 %29 to i64
  %32 = getelementptr inbounds i32, ptr %16, i64 %31
  store i32 %28, ptr %32, align 4, !tbaa !5
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sub i32 %33, 1
  store i32 %34, ptr %1, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %27, %21
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = add i32 %37, 1
  store i32 %38, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !9

39:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 8, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 4, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = call ptr @createHashTable(i32 noundef %40, i32 noundef %41)
  store ptr %42, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %57, %39
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = icmp ult i32 %44, 16
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %60

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %48 = getelementptr inbounds %struct.tuple, ptr %10, i32 0, i32 0
  %49 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %49, ptr %48, align 4, !tbaa !13
  %50 = getelementptr inbounds %struct.tuple, ptr %10, i32 0, i32 1
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %16, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  store i32 %54, ptr %50, align 4, !tbaa !15
  %55 = load ptr, ptr %8, align 8, !tbaa !11
  %56 = call i32 @insert(ptr noundef %55, ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %57

57:                                               ; preds = %47
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = add i32 %58, 1
  store i32 %59, ptr %9, align 4, !tbaa !5
  br label %43, !llvm.loop !16

60:                                               ; preds = %46
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %8, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.hash_table, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 8, !tbaa !17
  %65 = icmp eq i32 %64, 16
  %66 = zext i1 %65 to i32
  %67 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %66, ptr noundef @.str.36, i32 noundef 116, ptr noundef @.str.5, ptr noundef @.str.56)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %70, label %69

69:                                               ; preds = %61
  call void @acutest_abort_() #6
  unreachable

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %112, %72
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = icmp ult i32 %74, 16
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %115

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %78 = load ptr, ptr %8, align 8, !tbaa !11
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %16, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = call ptr @search(ptr noundef %78, i32 noundef %82)
  store ptr %83, ptr %12, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %77
  %85 = load ptr, ptr %12, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.row_ids, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !19
  %88 = icmp eq i32 %87, 1
  %89 = zext i1 %88 to i32
  %90 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %89, ptr noundef @.str.36, i32 noundef 121, ptr noundef @.str.5, ptr noundef @.str.54)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %93, label %92

92:                                               ; preds = %84
  call void @acutest_abort_() #6
  unreachable

93:                                               ; preds = %84
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %12, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.row_ids, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = getelementptr inbounds i32, ptr %99, i64 0
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = icmp eq i32 %101, %102
  %104 = zext i1 %103 to i32
  %105 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %104, ptr noundef @.str.36, i32 noundef 122, ptr noundef @.str.5, ptr noundef @.str.55)
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %108, label %107

107:                                              ; preds = %96
  call void @acutest_abort_() #6
  unreachable

108:                                              ; preds = %96
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr %12, align 8, !tbaa !11
  call void @destroyRowIDs(ptr noundef %111)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %112

112:                                              ; preds = %110
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = add i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !5
  br label %73, !llvm.loop !22

115:                                              ; preds = %76
  %116 = load ptr, ptr %8, align 8, !tbaa !11
  call void @destroyHashTable(ptr noundef %116)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %117 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %117)
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { noreturn 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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"tuple", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !10}
!17 = !{!18, !6, i64 8}
!18 = !{!"hash_table", !12, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!19 = !{!20, !6, i64 0}
!20 = !{!"row_ids", !6, i64 0, !6, i64 4, !12, i64 8}
!21 = !{!20, !12, i64 8}
!22 = distinct !{!22, !10}


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

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @acutest_check_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

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

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @acutest_abort_() local_unnamed_addr #2

declare i64 @ranHash(i64 noundef) local_unnamed_addr #3

declare ptr @createHashTable(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @destroyHashTable(ptr noundef) local_unnamed_addr #3

declare i32 @insert(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @search(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @destroyRowIDs(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @testCollisions() local_unnamed_addr #0 {
  %1 = alloca %struct.tuple, align 4
  %2 = alloca [16 x i32], align 16
  br label %58

3:                                                ; preds = %68
  %4 = tail call ptr @createHashTable(i32 noundef 8, i32 noundef 4) #4
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  %6 = load i32, ptr %2, align 16, !tbaa !10
  store i32 %6, ptr %5, align 4, !tbaa !11
  %7 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !10
  store i32 %9, ptr %5, align 4, !tbaa !11
  %10 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 2, ptr %1, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !10
  store i32 %12, ptr %5, align 4, !tbaa !11
  %13 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 3, ptr %1, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 12
  %15 = load i32, ptr %14, align 4, !tbaa !10
  store i32 %15, ptr %5, align 4, !tbaa !11
  %16 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 4, ptr %1, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = load i32, ptr %17, align 16, !tbaa !10
  store i32 %18, ptr %5, align 4, !tbaa !11
  %19 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 5, ptr %1, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %2, i64 20
  %21 = load i32, ptr %20, align 4, !tbaa !10
  store i32 %21, ptr %5, align 4, !tbaa !11
  %22 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 6, ptr %1, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = load i32, ptr %23, align 8, !tbaa !10
  store i32 %24, ptr %5, align 4, !tbaa !11
  %25 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 7, ptr %1, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %2, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !10
  store i32 %27, ptr %5, align 4, !tbaa !11
  %28 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 8, ptr %1, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %2, i64 32
  %30 = load i32, ptr %29, align 16, !tbaa !10
  store i32 %30, ptr %5, align 4, !tbaa !11
  %31 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 9, ptr %1, align 4, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %2, i64 36
  %33 = load i32, ptr %32, align 4, !tbaa !10
  store i32 %33, ptr %5, align 4, !tbaa !11
  %34 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 10, ptr %1, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %2, i64 40
  %36 = load i32, ptr %35, align 8, !tbaa !10
  store i32 %36, ptr %5, align 4, !tbaa !11
  %37 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 11, ptr %1, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %2, i64 44
  %39 = load i32, ptr %38, align 4, !tbaa !10
  store i32 %39, ptr %5, align 4, !tbaa !11
  %40 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 12, ptr %1, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %2, i64 48
  %42 = load i32, ptr %41, align 16, !tbaa !10
  store i32 %42, ptr %5, align 4, !tbaa !11
  %43 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 13, ptr %1, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %2, i64 52
  %45 = load i32, ptr %44, align 4, !tbaa !10
  store i32 %45, ptr %5, align 4, !tbaa !11
  %46 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 14, ptr %1, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %2, i64 56
  %48 = load i32, ptr %47, align 8, !tbaa !10
  store i32 %48, ptr %5, align 4, !tbaa !11
  %49 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 15, ptr %1, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %2, i64 60
  %51 = load i32, ptr %50, align 4, !tbaa !10
  store i32 %51, ptr %5, align 4, !tbaa !11
  %52 = call i32 @insert(ptr noundef %4, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %53 = getelementptr inbounds i8, ptr %4, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !12
  %55 = icmp eq i32 %54, 16
  %56 = zext i1 %55 to i32
  %57 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %56, ptr noundef nonnull @.str.36, i32 noundef 116, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.56)
  %.not29 = icmp eq i32 %57, 0
  br i1 %.not29, label %70, label %.preheader

58:                                               ; preds = %0, %68
  %.034 = phi i32 [ 16, %0 ], [ %.1, %68 ]
  %.02633 = phi i32 [ 2, %0 ], [ %69, %68 ]
  %.02732 = phi i32 [ 0, %0 ], [ %.128, %68 ]
  %59 = zext i32 %.02633 to i64
  %60 = tail call i64 @ranHash(i64 noundef %59) #4
  %61 = and i64 %60, 15
  %62 = icmp eq i64 %61, 5
  br i1 %62, label %63, label %68

63:                                               ; preds = %58
  %64 = add i32 %.02732, 1
  %65 = zext i32 %.02732 to i64
  %66 = getelementptr inbounds i32, ptr %2, i64 %65
  store i32 %.02633, ptr %66, align 4, !tbaa !10
  %67 = add i32 %.034, -1
  br label %68

68:                                               ; preds = %58, %63
  %.128 = phi i32 [ %64, %63 ], [ %.02732, %58 ]
  %.1 = phi i32 [ %67, %63 ], [ %.034, %58 ]
  %69 = add i32 %.02633, 1
  %.not = icmp eq i32 %.1, 0
  br i1 %.not, label %3, label %58, !llvm.loop !15

70:                                               ; preds = %3
  call void @acutest_abort_() #5
  unreachable

71:                                               ; preds = %89
  call void @destroyHashTable(ptr noundef %4) #4
  ret void

.preheader:                                       ; preds = %3, %89
  %indvars.iv = phi i64 [ %indvars.iv.next, %89 ], [ 0, %3 ]
  %72 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  %73 = load i32, ptr %72, align 4, !tbaa !10
  %74 = call ptr @search(ptr noundef %4, i32 noundef %73) #4
  %75 = load i32, ptr %74, align 8, !tbaa !17
  %76 = icmp eq i32 %75, 1
  %77 = zext i1 %76 to i32
  %78 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %77, ptr noundef nonnull @.str.36, i32 noundef 121, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.54)
  %.not30 = icmp eq i32 %78, 0
  br i1 %.not30, label %79, label %80

79:                                               ; preds = %.preheader
  call void @acutest_abort_() #5
  unreachable

80:                                               ; preds = %.preheader
  %81 = getelementptr inbounds i8, ptr %74, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = load i32, ptr %82, align 4, !tbaa !10
  %84 = zext i32 %83 to i64
  %85 = icmp eq i64 %indvars.iv, %84
  %86 = zext i1 %85 to i32
  %87 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %86, ptr noundef nonnull @.str.36, i32 noundef 122, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.55)
  %.not31 = icmp eq i32 %87, 0
  br i1 %.not31, label %88, label %89

88:                                               ; preds = %80
  call void @acutest_abort_() #5
  unreachable

89:                                               ; preds = %80
  call void @destroyRowIDs(ptr noundef nonnull %74) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %71, label %.preheader, !llvm.loop !20
}

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

!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 = !{!"tuple", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!13, !7, i64 8}
!13 = !{!"hash_table", !14, i64 0, !7, i64 8, !7, i64 12, !7, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !7, i64 0}
!18 = !{!"row_ids", !7, i64 0, !7, i64 4, !14, i64 8}
!19 = !{!18, !14, i64 8}
!20 = distinct !{!20, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass