; 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.bucket = type { i32, i32, i64, ptr }
%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.51 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [70 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

; 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 ptr @createHashTable(i32 noundef, i32 noundef) #3

declare void @destroyHashTable(ptr noundef) #3

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

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

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

16:                                               ; preds = %45, %0
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add i32 %18, 2
  %20 = icmp ult i32 %17, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %48

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %23 = getelementptr inbounds %struct.tuple, ptr %5, i32 0, i32 0
  %24 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %24, ptr %23, align 4, !tbaa !11
  %25 = getelementptr inbounds %struct.tuple, ptr %5, i32 0, i32 1
  store i32 1908, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = call i32 @insert(ptr noundef %26, ptr noundef %5)
  store i32 %27, ptr %6, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %22
  %29 = load ptr, ptr %3, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.hash_table, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds %struct.bucket, ptr %31, i64 %33
  %35 = getelementptr inbounds %struct.bucket, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !16
  %37 = icmp eq i32 %36, 1908
  %38 = zext i1 %37 to i32
  %39 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %38, ptr noundef @.str.36, i32 noundef 64, ptr noundef @.str.5, ptr noundef @.str.51)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %42, label %41

41:                                               ; preds = %28
  call void @acutest_abort_() #5
  unreachable

42:                                               ; preds = %28
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = add i32 %46, 1
  store i32 %47, ptr %4, align 4, !tbaa !5
  br label %16, !llvm.loop !19

48:                                               ; preds = %21
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr %3, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.hash_table, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !21
  %53 = load i32, ptr %1, align 4, !tbaa !5
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = add i32 %53, %54
  %56 = add i32 %55, 2
  %57 = icmp eq i32 %52, %56
  %58 = zext i1 %57 to i32
  %59 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %58, ptr noundef @.str.36, i32 noundef 67, ptr noundef @.str.5, ptr noundef @.str.52)
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %49
  call void @acutest_abort_() #5
  unreachable

62:                                               ; preds = %49
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %76, %64
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = icmp ult i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %79

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %71 = getelementptr inbounds %struct.tuple, ptr %8, i32 0, i32 0
  %72 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %72, ptr %71, align 4, !tbaa !11
  %73 = getelementptr inbounds %struct.tuple, ptr %8, i32 0, i32 1
  store i32 1355, ptr %73, align 4, !tbaa !13
  %74 = load ptr, ptr %3, align 8, !tbaa !9
  %75 = call i32 @insert(ptr noundef %74, ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %76

76:                                               ; preds = %70
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = add i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !5
  br label %65, !llvm.loop !22

79:                                               ; preds = %69
  br label %80

80:                                               ; preds = %79
  %81 = load ptr, ptr %3, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.hash_table, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !21
  %84 = load i32, ptr %1, align 4, !tbaa !5
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = add i32 %84, %85
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = add i32 %86, %87
  %89 = add i32 %88, 2
  %90 = icmp eq i32 %83, %89
  %91 = zext i1 %90 to i32
  %92 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %91, ptr noundef @.str.36, i32 noundef 75, ptr noundef @.str.5, ptr noundef @.str.53)
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

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

95:                                               ; preds = %80
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %135, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %1, align 4, !tbaa !5
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %138

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %104 = load ptr, ptr %3, align 8, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = call ptr @search(ptr noundef %104, i32 noundef %105)
  store ptr %106, ptr %10, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %103
  %108 = load ptr, ptr %10, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.row_ids, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %109, align 8, !tbaa !23
  %111 = icmp eq i32 %110, 1
  %112 = zext i1 %111 to i32
  %113 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %112, ptr noundef @.str.36, i32 noundef 81, ptr noundef @.str.5, ptr noundef @.str.54)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %107
  call void @acutest_abort_() #5
  unreachable

116:                                              ; preds = %107
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  %120 = load ptr, ptr %10, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.row_ids, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !25
  %123 = getelementptr inbounds i32, ptr %122, i64 0
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = icmp eq i32 %124, %125
  %127 = zext i1 %126 to i32
  %128 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %127, ptr noundef @.str.36, i32 noundef 82, ptr noundef @.str.5, ptr noundef @.str.55)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %131, label %130

130:                                              ; preds = %119
  call void @acutest_abort_() #5
  unreachable

131:                                              ; preds = %119
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %10, align 8, !tbaa !9
  call void @destroyRowIDs(ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %135

135:                                              ; preds = %133
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = add i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !26

138:                                              ; preds = %102
  %139 = load ptr, ptr %3, align 8, !tbaa !9
  call void @destroyHashTable(ptr noundef %139)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

declare void @destroyRowIDs(ptr noundef) #3

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 = { 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, !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, !6, i64 0}
!12 = !{!"tuple", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = !{!15, !10, i64 0}
!15 = !{!"hash_table", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!16 = !{!17, !6, i64 4}
!17 = !{!"bucket", !6, i64 0, !6, i64 4, !18, i64 8, !10, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!15, !6, i64 8}
!22 = distinct !{!22, !20}
!23 = !{!24, !6, i64 0}
!24 = !{!"row_ids", !6, i64 0, !6, i64 4, !10, i64 8}
!25 = !{!24, !10, i64 8}
!26 = distinct !{!26, !20}


; 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 }
%struct.bucket = type { i32, i32, i64, 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.51 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [70 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

; 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 ptr @createHashTable(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @destroyHashTable(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @testInsert() local_unnamed_addr #0 {
  %1 = alloca %struct.tuple, align 4
  %2 = alloca %struct.tuple, align 4
  %3 = tail call ptr @createHashTable(i32 noundef 16, i32 noundef 4) #4
  tail call void @_testBasicInsert(ptr noundef %3, i32 noundef 16)
  %4 = 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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %5 = call i32 @insert(ptr noundef %3, ptr noundef nonnull %1) #4
  %6 = load ptr, ptr %3, align 8, !tbaa !11
  %7 = zext i32 %5 to i64
  %8 = getelementptr inbounds %struct.bucket, ptr %6, i64 %7, i32 1
  %9 = load i32, ptr %8, align 4, !tbaa !14
  %10 = icmp eq i32 %9, 1908
  %11 = zext i1 %10 to i32
  %12 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %11, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37 = icmp eq i32 %12, 0
  br i1 %.not37, label %22, label %23

.preheader38:                                     ; preds = %68
  %13 = getelementptr inbounds i8, ptr %2, i64 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  store i32 1355, ptr %13, align 4, !tbaa !10
  %14 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  store i32 1355, ptr %13, align 4, !tbaa !10
  %15 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i32 2, ptr %2, align 4, !tbaa !5
  store i32 1355, ptr %13, align 4, !tbaa !10
  %16 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store i32 3, ptr %2, align 4, !tbaa !5
  store i32 1355, ptr %13, align 4, !tbaa !10
  %17 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %18 = load i32, ptr %69, align 8, !tbaa !17
  %19 = icmp eq i32 %18, 26
  %20 = zext i1 %19 to i32
  %21 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %20, ptr noundef nonnull @.str.36, i32 noundef 75, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.53)
  %.not34 = icmp eq i32 %21, 0
  br i1 %.not34, label %75, label %.preheader

22:                                               ; preds = %59, %50, %41, %32, %23, %0
  call void @acutest_abort_() #5
  unreachable

23:                                               ; preds = %0
  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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %24 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  %25 = load ptr, ptr %3, align 8, !tbaa !11
  %26 = zext i32 %24 to i64
  %27 = getelementptr inbounds %struct.bucket, ptr %25, i64 %26, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !14
  %29 = icmp eq i32 %28, 1908
  %30 = zext i1 %29 to i32
  %31 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %30, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37.1 = icmp eq i32 %31, 0
  br i1 %.not37.1, label %22, label %32

32:                                               ; preds = %23
  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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %33 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  %34 = load ptr, ptr %3, align 8, !tbaa !11
  %35 = zext i32 %33 to i64
  %36 = getelementptr inbounds %struct.bucket, ptr %34, i64 %35, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !14
  %38 = icmp eq i32 %37, 1908
  %39 = zext i1 %38 to i32
  %40 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %39, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37.2 = icmp eq i32 %40, 0
  br i1 %.not37.2, label %22, label %41

41:                                               ; preds = %32
  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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %42 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  %43 = load ptr, ptr %3, align 8, !tbaa !11
  %44 = zext i32 %42 to i64
  %45 = getelementptr inbounds %struct.bucket, ptr %43, i64 %44, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !14
  %47 = icmp eq i32 %46, 1908
  %48 = zext i1 %47 to i32
  %49 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %48, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37.3 = icmp eq i32 %49, 0
  br i1 %.not37.3, label %22, label %50

50:                                               ; preds = %41
  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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %51 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  %52 = load ptr, ptr %3, align 8, !tbaa !11
  %53 = zext i32 %51 to i64
  %54 = getelementptr inbounds %struct.bucket, ptr %52, i64 %53, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !14
  %56 = icmp eq i32 %55, 1908
  %57 = zext i1 %56 to i32
  %58 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %57, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37.4 = icmp eq i32 %58, 0
  br i1 %.not37.4, label %22, label %59

59:                                               ; preds = %50
  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
  store i32 1908, ptr %4, align 4, !tbaa !10
  %60 = call i32 @insert(ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  %61 = load ptr, ptr %3, align 8, !tbaa !11
  %62 = zext i32 %60 to i64
  %63 = getelementptr inbounds %struct.bucket, ptr %61, i64 %62, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !14
  %65 = icmp eq i32 %64, 1908
  %66 = zext i1 %65 to i32
  %67 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %66, ptr noundef nonnull @.str.36, i32 noundef 64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.51)
  %.not37.5 = icmp eq i32 %67, 0
  br i1 %.not37.5, label %22, label %68

68:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %69 = getelementptr inbounds i8, ptr %3, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !17
  %71 = icmp eq i32 %70, 22
  %72 = zext i1 %71 to i32
  %73 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %72, ptr noundef nonnull @.str.36, i32 noundef 67, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.52)
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %74, label %.preheader38

74:                                               ; preds = %68
  call void @acutest_abort_() #5
  unreachable

75:                                               ; preds = %.preheader38
  call void @acutest_abort_() #5
  unreachable

76:                                               ; preds = %91
  call void @destroyHashTable(ptr noundef nonnull %3) #4
  ret void

.preheader:                                       ; preds = %.preheader38, %91
  %.03241 = phi i32 [ %92, %91 ], [ 0, %.preheader38 ]
  %77 = call ptr @search(ptr noundef nonnull %3, i32 noundef %.03241) #4
  %78 = load i32, ptr %77, align 8, !tbaa !18
  %79 = icmp eq i32 %78, 1
  %80 = zext i1 %79 to i32
  %81 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %80, ptr noundef nonnull @.str.36, i32 noundef 81, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.54)
  %.not35 = icmp eq i32 %81, 0
  br i1 %.not35, label %82, label %83

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

83:                                               ; preds = %.preheader
  %84 = getelementptr inbounds i8, ptr %77, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !20
  %86 = load i32, ptr %85, align 4, !tbaa !21
  %87 = icmp eq i32 %86, %.03241
  %88 = zext i1 %87 to i32
  %89 = call i32 (i32, ptr, i32, ptr, ...) @acutest_check_(i32 noundef %88, ptr noundef nonnull @.str.36, i32 noundef 82, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.55)
  %.not36 = icmp eq i32 %89, 0
  br i1 %.not36, label %90, label %91

90:                                               ; preds = %83
  call void @acutest_abort_() #5
  unreachable

91:                                               ; preds = %83
  call void @destroyRowIDs(ptr noundef nonnull %77) #4
  %92 = add nuw nsw i32 %.03241, 1
  %exitcond.not = icmp eq i32 %92, 16
  br i1 %exitcond.not, label %76, label %.preheader, !llvm.loop !22
}

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

declare void @destroyRowIDs(ptr noundef) local_unnamed_addr #3

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


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