; LLVM IR from AngelPn/DBMS-Simulator :: src (main_HT)

; 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.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }
%struct.HT_info = type { i32, i32, i8, ptr, i32, i64, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [15 x i8], align 1
  %6 = alloca [25 x i8], align 16
  %7 = alloca [50 x i8], align 16
  %8 = alloca %struct.record, align 8
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %10 = call i32 @HT_CreateIndex(ptr noundef @.str, i8 noundef signext 105, ptr noundef @.str.1, i32 noundef 4, i32 noundef 409)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %14

12:                                               ; preds = %0
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %16

14:                                               ; preds = %0
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %16

16:                                               ; preds = %14, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %17 = call ptr @HT_OpenIndex(ptr noundef @.str)
  store ptr %17, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %38

20:                                               ; preds = %16
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.HT_info, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !9
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.HT_info, ptr %24, i32 0, i32 2
  %26 = load i8, ptr %25, align 8, !tbaa !13
  %27 = sext i8 %26 to i32
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.HT_info, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.HT_info, ptr %31, i32 0, i32 4
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.HT_info, ptr %34, i32 0, i32 5
  %36 = load i64, ptr %35, align 8, !tbaa !16
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %23, i32 noundef %27, ptr noundef %30, i32 noundef %33, i64 noundef %36)
  br label %40

38:                                               ; preds = %16
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %40

40:                                               ; preds = %38, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %41 = call noalias ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
  store ptr %41, ptr %3, align 8, !tbaa !5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @exit(i32 noundef 1) #5
  unreachable

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 15, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 25, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 50, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #4
  br label %47

47:                                               ; preds = %65, %46
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds [15 x i8], ptr %5, i64 0, i64 0
  %50 = getelementptr inbounds [25 x i8], ptr %6, i64 0, i64 0
  %51 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
  %52 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %48, ptr noundef @.str.9, ptr noundef %4, ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %53 = icmp ne i32 %52, -1
  br i1 %53, label %54, label %66

54:                                               ; preds = %47
  %55 = load i32, ptr %4, align 4, !tbaa !17
  %56 = getelementptr inbounds [15 x i8], ptr %5, i64 0, i64 0
  %57 = getelementptr inbounds [25 x i8], ptr %6, i64 0, i64 0
  %58 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
  call void @init_record(ptr noundef %8, i32 noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58)
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = call i32 @HT_InsertEntry(ptr noundef byval(%struct.HT_info) align 8 %59, ptr noundef byval(%struct.record) align 8 %8)
  %61 = icmp eq i32 %60, -1
  br i1 %61, label %62, label %65

62:                                               ; preds = %54
  %63 = load i32, ptr %4, align 4, !tbaa !17
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %63)
  br label %65

65:                                               ; preds = %62, %54
  br label %47, !llvm.loop !18

66:                                               ; preds = %47
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = call i32 @fclose(ptr noundef %67)
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %69, ptr noundef null)
  %71 = icmp eq i32 %70, -1
  br i1 %71, label %72, label %74

72:                                               ; preds = %66
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %74

74:                                               ; preds = %72, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 21, ptr %9, align 4, !tbaa !17
  %75 = load i32, ptr %9, align 4, !tbaa !17
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %75)
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %77, ptr noundef %9)
  %79 = icmp eq i32 %78, -1
  br i1 %79, label %80, label %82

80:                                               ; preds = %74
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %82

82:                                               ; preds = %80, %74
  store i32 107, ptr %9, align 4, !tbaa !17
  %83 = load i32, ptr %9, align 4, !tbaa !17
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %83)
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %85, ptr noundef %9)
  %87 = icmp eq i32 %86, -1
  br i1 %87, label %88, label %90

88:                                               ; preds = %82
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %90

90:                                               ; preds = %88, %82
  store i32 803, ptr %9, align 4, !tbaa !17
  %91 = load i32, ptr %9, align 4, !tbaa !17
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %91)
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %93, ptr noundef %9)
  %95 = icmp eq i32 %94, -1
  br i1 %95, label %96, label %98

96:                                               ; preds = %90
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %98

98:                                               ; preds = %96, %90
  store i32 8003, ptr %9, align 4, !tbaa !17
  %99 = load i32, ptr %9, align 4, !tbaa !17
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %99)
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %101, ptr noundef %9)
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %104, label %106

104:                                              ; preds = %98
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %106

106:                                              ; preds = %104, %98
  store i32 13078, ptr %9, align 4, !tbaa !17
  %107 = load i32, ptr %9, align 4, !tbaa !17
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %107)
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %109, ptr noundef %9)
  %111 = icmp eq i32 %110, -1
  br i1 %111, label %112, label %114

112:                                              ; preds = %106
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %114

114:                                              ; preds = %112, %106
  %115 = load i32, ptr %9, align 4, !tbaa !17
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %115)
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = call i32 @HT_DeleteEntry(ptr noundef byval(%struct.HT_info) align 8 %117, ptr noundef %9)
  %119 = icmp eq i32 %118, -1
  br i1 %119, label %120, label %122

120:                                              ; preds = %114
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %122

122:                                              ; preds = %120, %114
  %123 = load i32, ptr %9, align 4, !tbaa !17
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %123)
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %125, ptr noundef %9)
  %127 = icmp eq i32 %126, -1
  br i1 %127, label %128, label %130

128:                                              ; preds = %122
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %130

130:                                              ; preds = %128, %122
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %132 = call i32 @HashStatistics(ptr noundef @.str)
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  %134 = call i32 @HT_CloseIndex(ptr noundef %133)
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %130
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %140

138:                                              ; preds = %130
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %140

140:                                              ; preds = %138, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 50, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 25, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 15, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  ret i32 0
}

declare i32 @HT_CreateIndex(ptr noundef, i8 noundef signext, ptr noundef, i32 noundef, i32 noundef) #1

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

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

declare ptr @HT_OpenIndex(ptr noundef) #1

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

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

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

declare void @init_record(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @HT_InsertEntry(ptr noundef byval(%struct.HT_info) align 8, ptr noundef byval(%struct.record) align 8) #1

declare i32 @fclose(ptr noundef) #1

declare i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8, ptr noundef) #1

declare i32 @HT_DeleteEntry(ptr noundef byval(%struct.HT_info) align 8, ptr noundef) #1

declare i32 @HashStatistics(ptr noundef) #1

declare i32 @HT_CloseIndex(ptr noundef) #1

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

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


; 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.record = type { i32, [15 x i8], [25 x i8], [50 x i8] }
%struct.HT_info = type { i32, i32, i8, ptr, i32, i64, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [15 x i8], align 1
  %3 = alloca [25 x i8], align 16
  %4 = alloca [50 x i8], align 16
  %5 = alloca %struct.record, align 8
  %6 = alloca i32, align 4
  %7 = tail call i32 @HT_CreateIndex(ptr noundef nonnull @.str, i8 noundef signext 105, ptr noundef nonnull @.str.1, i32 noundef 4, i32 noundef 409) #5
  %8 = icmp eq i32 %7, 0
  %.str.2..str.3 = select i1 %8, ptr @.str.2, ptr @.str.3
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.3)
  %10 = tail call ptr @HT_OpenIndex(ptr noundef nonnull @.str) #5
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %24, label %11

11:                                               ; preds = %0
  %12 = getelementptr inbounds i8, ptr %10, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  %15 = load i8, ptr %14, align 8, !tbaa !12
  %16 = sext i8 %15 to i32
  %17 = getelementptr inbounds i8, ptr %10, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %10, i64 24
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %10, i64 32
  %22 = load i64, ptr %21, align 8, !tbaa !15
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %13, i32 noundef %16, ptr noundef %18, i32 noundef %20, i64 noundef %22)
  br label %26

24:                                               ; preds = %0
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %26

26:                                               ; preds = %24, %11
  %27 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  tail call void @exit(i32 noundef 1) #6
  unreachable

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 15, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 25, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #5
  %32 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %27, ptr noundef nonnull @.str.9, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #5
  %.not2021 = icmp eq i32 %32, -1
  br i1 %.not2021, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31, %39
  %33 = load i32, ptr %1, align 4, !tbaa !16
  call void @init_record(ptr noundef nonnull %5, i32 noundef %33, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #5
  %34 = call i32 @HT_InsertEntry(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull byval(%struct.record) align 8 %5) #5
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %36, label %39

36:                                               ; preds = %.lr.ph
  %37 = load i32, ptr %1, align 4, !tbaa !16
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %37)
  br label %39

39:                                               ; preds = %36, %.lr.ph
  %40 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %27, ptr noundef nonnull @.str.9, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #5
  %.not20 = icmp eq i32 %40, -1
  br i1 %.not20, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %39, %31
  %41 = call i32 @fclose(ptr noundef nonnull %27)
  %42 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef null) #5
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %46

44:                                               ; preds = %._crit_edge
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %46

46:                                               ; preds = %44, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 21, ptr %6, align 4, !tbaa !16
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 21)
  %48 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %49 = icmp eq i32 %48, -1
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %52

52:                                               ; preds = %50, %46
  store i32 107, ptr %6, align 4, !tbaa !16
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 107)
  %54 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %55 = icmp eq i32 %54, -1
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %58

58:                                               ; preds = %56, %52
  store i32 803, ptr %6, align 4, !tbaa !16
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 803)
  %60 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %61 = icmp eq i32 %60, -1
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %64

64:                                               ; preds = %62, %58
  store i32 8003, ptr %6, align 4, !tbaa !16
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 8003)
  %66 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %67 = icmp eq i32 %66, -1
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %70

70:                                               ; preds = %68, %64
  store i32 13078, ptr %6, align 4, !tbaa !16
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 13078)
  %72 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %76

76:                                               ; preds = %74, %70
  %77 = load i32, ptr %6, align 4, !tbaa !16
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %77)
  %79 = call i32 @HT_DeleteEntry(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %80 = icmp eq i32 %79, -1
  br i1 %80, label %81, label %83

81:                                               ; preds = %76
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %83

83:                                               ; preds = %81, %76
  %84 = load i32, ptr %6, align 4, !tbaa !16
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %84)
  %86 = call i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8 %10, ptr noundef nonnull %6) #5
  %87 = icmp eq i32 %86, -1
  br i1 %87, label %88, label %90

88:                                               ; preds = %83
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %90

90:                                               ; preds = %88, %83
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %92 = call i32 @HashStatistics(ptr noundef nonnull @.str) #5
  %93 = call i32 @HT_CloseIndex(ptr noundef %10) #5
  %94 = icmp eq i32 %93, 0
  %.str.16..str.17 = select i1 %94, ptr @.str.16, ptr @.str.17
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.16..str.17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 25, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 15, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

declare i32 @HT_CreateIndex(ptr noundef, i8 noundef signext, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare ptr @HT_OpenIndex(ptr noundef) local_unnamed_addr #1

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

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

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare i32 @HT_InsertEntry(ptr noundef byval(%struct.HT_info) align 8, ptr noundef byval(%struct.record) align 8) local_unnamed_addr #1

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

declare i32 @HT_GetAllEntries(ptr noundef byval(%struct.HT_info) align 8, ptr noundef) local_unnamed_addr #1

declare i32 @HT_DeleteEntry(ptr noundef byval(%struct.HT_info) align 8, ptr noundef) local_unnamed_addr #1

declare i32 @HashStatistics(ptr noundef) local_unnamed_addr #1

declare i32 @HT_CloseIndex(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn 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 = { noreturn 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 4}
!6 = !{!"HT_info", !7, i64 0, !7, i64 4, !8, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !8, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !11, i64 32}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass