; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: DataStructure/Tables/Sources (HashSet)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetGetNextPrime(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetCalBPrime(i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @hashSetInsert(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %16

13:                                               ; preds = %2
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.8, ptr noundef @.str.6, ptr noundef @.str.2) #5
  call void @exit(i32 noundef -83386157) #6
  unreachable

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %22

19:                                               ; preds = %16
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.9, ptr noundef @.str.2) #5
  call void @exit(i32 noundef -83384987) #6
  unreachable

22:                                               ; preds = %16
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.HashSet, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.HashSet, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !12
  %30 = icmp eq i32 %26, %29
  br i1 %30, label %31, label %85

31:                                               ; preds = %23
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.HashSet, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = mul nsw i32 %34, 2
  %36 = call i32 @hashSetGetNextPrime(i32 noundef %35)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.HashSet, ptr %37, i32 0, i32 1
  store i32 %36, ptr %38, align 8, !tbaa !12
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.HashSet, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !12
  %42 = call i32 @hashSetCalBPrime(i32 noundef %41)
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.HashSet, ptr %43, i32 0, i32 3
  store i32 %42, ptr %44, align 8, !tbaa !13
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.HashSet, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.HashSet, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = mul i64 8, %51
  %53 = call ptr @realloc(ptr noundef %47, i64 noundef %52) #7
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.HashSet, ptr %54, i32 0, i32 0
  store ptr %53, ptr %55, align 8, !tbaa !14
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.HashSet, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %63

60:                                               ; preds = %31
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.10, ptr noundef @.str.7, ptr noundef @.str.2) #5
  call void @exit(i32 noundef -833814245) #6
  unreachable

63:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.HashSet, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !9
  store i32 %66, ptr %5, align 4, !tbaa !15
  br label %67

67:                                               ; preds = %81, %63
  %68 = load i32, ptr %5, align 4, !tbaa !15
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.HashSet, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !12
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %74, label %73

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

74:                                               ; preds = %67
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HashSet, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = load i32, ptr %5, align 4, !tbaa !15
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  store ptr null, ptr %80, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %74
  %82 = load i32, ptr %5, align 4, !tbaa !15
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !15
  br label %67, !llvm.loop !16

84:                                               ; preds = %73
  br label %85

85:                                               ; preds = %84, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.HashSet, ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.HashSet, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !12
  %93 = call i32 @hashSetFHashCal(ptr noundef %88, ptr noundef %89, i32 noundef %92)
  store i32 %93, ptr %6, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.HashSet, ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.HashSet, ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 8, !tbaa !13
  %101 = call i32 @hashSetSHashCal(ptr noundef %96, ptr noundef %97, i32 noundef %100)
  store i32 %101, ptr %7, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %102 = load i32, ptr %6, align 4, !tbaa !15
  %103 = load i32, ptr %7, align 4, !tbaa !15
  %104 = load i32, ptr %8, align 4, !tbaa !15
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.HashSet, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !12
  %108 = call i32 @hashSetCalIndex(i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %107)
  store i32 %108, ptr %9, align 4, !tbaa !15
  br label %109

109:                                              ; preds = %150, %85
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.HashSet, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !14
  %113 = load i32, ptr %9, align 4, !tbaa !15
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %160

118:                                              ; preds = %109
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.HashSet, ptr %119, i32 0, i32 5
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.HashSet, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !14
  %126 = load i32, ptr %9, align 4, !tbaa !15
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %125, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = call i32 %121(ptr noundef %122, ptr noundef %129)
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %150

132:                                              ; preds = %118
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.HashSet, ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !20
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.HashSet, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8, !tbaa !14
  %139 = load i32, ptr %9, align 4, !tbaa !15
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  call void %135(ptr noundef %142)
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.HashSet, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = load i32, ptr %9, align 4, !tbaa !15
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds ptr, ptr %146, i64 %148
  store ptr %143, ptr %149, align 8, !tbaa !5
  store i32 1, ptr %10, align 4
  br label %172

150:                                              ; preds = %118
  %151 = load i32, ptr %8, align 4, !tbaa !15
  %152 = add i32 %151, 1
  store i32 %152, ptr %8, align 4, !tbaa !15
  %153 = load i32, ptr %6, align 4, !tbaa !15
  %154 = load i32, ptr %7, align 4, !tbaa !15
  %155 = load i32, ptr %8, align 4, !tbaa !15
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.HashSet, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !12
  %159 = call i32 @hashSetCalIndex(i32 noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %158)
  store i32 %159, ptr %9, align 4, !tbaa !15
  br label %109, !llvm.loop !21

160:                                              ; preds = %109
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.HashSet, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !14
  %165 = load i32, ptr %9, align 4, !tbaa !15
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %164, i64 %166
  store ptr %161, ptr %167, align 8, !tbaa !5
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.HashSet, ptr %168, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %169, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %172

172:                                              ; preds = %160, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  %173 = load i32, ptr %10, align 4
  switch i32 %173, label %175 [
    i32 0, label %174
    i32 1, label %174
  ]

174:                                              ; preds = %172, %172
  ret void

175:                                              ; preds = %172
  unreachable
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetFHashCal(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetSHashCal(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetCalIndex(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

attributes #0 = { 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 allocsize(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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind allocsize(1) }

!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 12}
!10 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!10, !6, i64 0}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !6, i64 32}
!20 = !{!10, !6, i64 24}
!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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetGetNextPrime(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetCalBPrime(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @hashSetInsert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %4, label %7

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2) #4
  tail call void @exit(i32 noundef -83386157) #5
  unreachable

7:                                                ; preds = %2
  %8 = icmp eq ptr %1, null
  br i1 %8, label %9, label %12

9:                                                ; preds = %7
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2) #4
  tail call void @exit(i32 noundef -83384987) #5
  unreachable

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !12
  %17 = icmp eq i32 %14, %16
  br i1 %17, label %18, label %.loopexit

18:                                               ; preds = %12
  %19 = shl nsw i32 %14, 1
  %20 = tail call i32 @hashSetGetNextPrime(i32 noundef %19)
  store i32 %20, ptr %15, align 8, !tbaa !12
  %21 = tail call i32 @hashSetCalBPrime(i32 noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %21, ptr %22, align 8, !tbaa !13
  %23 = load ptr, ptr %0, align 8, !tbaa !14
  %24 = load i32, ptr %15, align 8, !tbaa !12
  %25 = sext i32 %24 to i64
  %26 = shl nsw i64 %25, 3
  %27 = tail call ptr @realloc(ptr noundef %23, i64 noundef %26) #6
  store ptr %27, ptr %0, align 8, !tbaa !14
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %32

29:                                               ; preds = %18
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2) #4
  tail call void @exit(i32 noundef -833814245) #5
  unreachable

32:                                               ; preds = %18
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = load i32, ptr %15, align 8, !tbaa !12
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %32
  %36 = sext i32 %33 to i64
  %wide.trip.count = sext i32 %34 to i64
  %37 = sub nsw i64 %wide.trip.count, %36
  %xtraiter = and i64 %37, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %36, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %38 = load ptr, ptr %0, align 8, !tbaa !14
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv.prol
  store ptr null, ptr %39, align 8, !tbaa !5
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !15

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %36, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %40 = sub nsw i64 %36, %wide.trip.count
  %41 = icmp ugt i64 %40, -4
  br i1 %41, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %42 = load ptr, ptr %0, align 8, !tbaa !14
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv
  store ptr null, ptr %43, align 8, !tbaa !5
  %44 = load ptr, ptr %0, align 8, !tbaa !14
  %45 = getelementptr ptr, ptr %44, i64 %indvars.iv
  %46 = getelementptr i8, ptr %45, i64 8
  store ptr null, ptr %46, align 8, !tbaa !5
  %47 = load ptr, ptr %0, align 8, !tbaa !14
  %48 = getelementptr ptr, ptr %47, i64 %indvars.iv
  %49 = getelementptr i8, ptr %48, i64 16
  store ptr null, ptr %49, align 8, !tbaa !5
  %50 = load ptr, ptr %0, align 8, !tbaa !14
  %51 = getelementptr ptr, ptr %50, i64 %indvars.iv
  %52 = getelementptr i8, ptr %51, i64 24
  store ptr null, ptr %52, align 8, !tbaa !5
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %32, %12
  %53 = phi i32 [ %34, %32 ], [ %16, %12 ], [ %34, %.lr.ph ], [ %34, %.lr.ph.prol.loopexit ]
  %54 = getelementptr inbounds i8, ptr %0, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = tail call i32 @hashSetFHashCal(ptr noundef %55, ptr noundef nonnull %1, i32 noundef %53)
  %57 = load ptr, ptr %54, align 8, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %0, i64 16
  %59 = load i32, ptr %58, align 8, !tbaa !13
  %60 = tail call i32 @hashSetSHashCal(ptr noundef %57, ptr noundef nonnull %1, i32 noundef %59)
  %61 = load i32, ptr %15, align 8, !tbaa !12
  %62 = tail call i32 @hashSetCalIndex(i32 noundef %56, i32 noundef %60, i32 noundef 0, i32 noundef %61)
  %63 = load ptr, ptr %0, align 8, !tbaa !14
  %64 = zext i32 %62 to i64
  %65 = getelementptr inbounds ptr, ptr %63, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %.not60 = icmp eq ptr %66, null
  br i1 %.not60, label %._crit_edge, label %.lr.ph62

.lr.ph62:                                         ; preds = %.loopexit
  %67 = getelementptr inbounds i8, ptr %0, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = tail call i32 %68(ptr noundef nonnull %1, ptr noundef nonnull %66) #7
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %._crit_edge76, label %.lr.ph75

71:                                               ; preds = %.lr.ph75
  %72 = load ptr, ptr %67, align 8, !tbaa !20
  %73 = tail call i32 %72(ptr noundef nonnull %1, ptr noundef nonnull %88) #7
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %._crit_edge76, label %.lr.ph75, !llvm.loop !21

._crit_edge76:                                    ; preds = %71, %.lr.ph62
  %.lcssa = phi i64 [ %64, %.lr.ph62 ], [ %86, %71 ]
  %75 = getelementptr inbounds i8, ptr %0, i64 24
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %77 = load ptr, ptr %0, align 8, !tbaa !14
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.lcssa
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  tail call void %76(ptr noundef %79) #7
  %80 = load ptr, ptr %0, align 8, !tbaa !14
  %81 = getelementptr inbounds ptr, ptr %80, i64 %.lcssa
  store ptr %1, ptr %81, align 8, !tbaa !5
  br label %92

.lr.ph75:                                         ; preds = %.lr.ph62, %71
  %.0486174 = phi i32 [ %82, %71 ], [ 0, %.lr.ph62 ]
  %82 = add i32 %.0486174, 1
  %83 = load i32, ptr %15, align 8, !tbaa !12
  %84 = tail call i32 @hashSetCalIndex(i32 noundef %56, i32 noundef %60, i32 noundef %82, i32 noundef %83)
  %85 = load ptr, ptr %0, align 8, !tbaa !14
  %86 = zext i32 %84 to i64
  %87 = getelementptr inbounds ptr, ptr %85, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %.not = icmp eq ptr %88, null
  br i1 %.not, label %._crit_edge, label %71, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph75, %.loopexit
  %.lcssa59 = phi i64 [ %64, %.loopexit ], [ %86, %.lr.ph75 ]
  %.lcssa58 = phi ptr [ %63, %.loopexit ], [ %85, %.lr.ph75 ]
  %89 = getelementptr inbounds ptr, ptr %.lcssa58, i64 %.lcssa59
  store ptr %1, ptr %89, align 8, !tbaa !5
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %13, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %._crit_edge, %._crit_edge76
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetFHashCal(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetSHashCal(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @hashSetCalIndex(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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 = { 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 #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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { cold nounwind }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind allocsize(1) }
attributes #7 = { 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 12}
!10 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 16}
!14 = !{!10, !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !6, i64 40}
!20 = !{!10, !6, i64 32}
!21 = distinct !{!21, !18}
!22 = !{!10, !6, i64 24}


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