; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Unit Test/Tests/DataStructuresTests/TablesTest/HashSetTest (HashSetTest)

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

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateIntPointerHST(i32 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: nounwind uwtable
declare dso_local i32 @compareIntPointersHST(ptr noundef, ptr noundef) #0

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

declare ptr @hashSetInitialization(ptr noundef, ptr noundef, ptr noundef) #2

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

declare void @destroyHashSet(ptr noundef) #2

declare void @hashSetInsert(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @testHashSetDeleteWtoFr(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [20 x i32], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %11 = call ptr @hashSetInitialization(ptr noundef @free, ptr noundef @compareIntPointersHST, ptr noundef @intHashFunHST)
  store ptr %11, ptr %3, align 8, !tbaa !5
  %12 = call ptr @hashSetDeleteWtoFr(ptr noundef null, ptr noundef null)
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ErrorTestStruct, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %13, ptr noundef @.str, i32 noundef 144, ptr noundef null, i32 noundef -83386157, i32 noundef %16)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call ptr @hashSetDeleteWtoFr(ptr noundef %17, ptr noundef null)
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ErrorTestStruct, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %19, ptr noundef @.str, i32 noundef 147, ptr noundef null, i32 noundef -83384987, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %23

23:                                               ; preds = %32, %1
  %24 = load i32, ptr %4, align 4, !tbaa !12
  %25 = icmp slt i32 %24, 20
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %35

27:                                               ; preds = %23
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !12
  %30 = add nsw i32 %29, 1
  %31 = call ptr @generateIntPointerHST(i32 noundef %30)
  call void @hashSetInsert(ptr noundef %28, ptr noundef %31)
  br label %32

32:                                               ; preds = %27
  %33 = load i32, ptr %4, align 4, !tbaa !12
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !12
  br label %23, !llvm.loop !13

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #5
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !12
  br label %36

36:                                               ; preds = %48, %35
  %37 = load i32, ptr %7, align 4, !tbaa !12
  %38 = icmp sle i32 %37, 20
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %36
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call ptr @hashSetDeleteWtoFr(ptr noundef %41, ptr noundef %7)
  store ptr %42, ptr %6, align 8, !tbaa !5
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !12
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %43, ptr noundef @.str, i32 noundef 158, ptr noundef null, i32 noundef %44, i32 noundef %46)
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %47) #5
  br label %48

48:                                               ; preds = %40
  %49 = load i32, ptr %7, align 4, !tbaa !12
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %7, align 4, !tbaa !12
  br label %36, !llvm.loop !15

51:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %52

52:                                               ; preds = %83, %51
  %53 = load i32, ptr %8, align 4, !tbaa !12
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.HashSet, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !16
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %86

59:                                               ; preds = %52
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.HashSet, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = load i32, ptr %8, align 4, !tbaa !12
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %82

68:                                               ; preds = %59
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.HashSet, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load i32, ptr %8, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %75, align 4, !tbaa !12
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !12
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %79, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %68, %59
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %8, align 4, !tbaa !12
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %8, align 4, !tbaa !12
  br label %52, !llvm.loop !19

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

87:                                               ; preds = %97, %86
  %88 = load i32, ptr %9, align 4, !tbaa !12
  %89 = icmp slt i32 %88, 20
  br i1 %89, label %91, label %90

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

91:                                               ; preds = %87
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %92, ptr noundef @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %96)
  br label %97

97:                                               ; preds = %91
  %98 = load i32, ptr %9, align 4, !tbaa !12
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %9, align 4, !tbaa !12
  br label %87, !llvm.loop !20

100:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 10, ptr %10, align 4, !tbaa !12
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = call ptr @hashSetDeleteWtoFr(ptr noundef %102, ptr noundef %10)
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %101, ptr noundef @.str, i32 noundef 174, ptr noundef null, ptr noundef null, ptr noundef %103)
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyHashSet(ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

declare ptr @hashSetDeleteWtoFr(ptr noundef, ptr noundef) #2

declare void @CuAssertPtrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !11, i64 8}
!17 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!17, !6, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


; 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"

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateIntPointerHST(i32 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: nounwind uwtable
declare dso_local i32 @compareIntPointersHST(ptr noundef, ptr noundef) #0

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

declare ptr @hashSetInitialization(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) #3

declare void @destroyHashSet(ptr noundef) local_unnamed_addr #2

declare void @hashSetInsert(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @testHashSetDeleteWtoFr(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [20 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call ptr @hashSetInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersHST, ptr noundef nonnull @intHashFunHST) #5
  %6 = tail call ptr @hashSetDeleteWtoFr(ptr noundef null, ptr noundef null) #5
  %7 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %8 = load i32, ptr %7, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 144, ptr noundef null, i32 noundef -83386157, i32 noundef %8) #5
  %9 = tail call ptr @hashSetDeleteWtoFr(ptr noundef %5, ptr noundef null) #5
  %10 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %11 = load i32, ptr %10, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 147, ptr noundef null, i32 noundef -83384987, i32 noundef %11) #5
  %12 = tail call ptr @generateIntPointerHST(i32 noundef 1)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %12) #5
  %13 = tail call ptr @generateIntPointerHST(i32 noundef 2)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %13) #5
  %14 = tail call ptr @generateIntPointerHST(i32 noundef 3)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %14) #5
  %15 = tail call ptr @generateIntPointerHST(i32 noundef 4)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %15) #5
  %16 = tail call ptr @generateIntPointerHST(i32 noundef 5)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %16) #5
  %17 = tail call ptr @generateIntPointerHST(i32 noundef 6)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %17) #5
  %18 = tail call ptr @generateIntPointerHST(i32 noundef 7)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %18) #5
  %19 = tail call ptr @generateIntPointerHST(i32 noundef 8)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %19) #5
  %20 = tail call ptr @generateIntPointerHST(i32 noundef 9)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %20) #5
  %21 = tail call ptr @generateIntPointerHST(i32 noundef 10)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %21) #5
  %22 = tail call ptr @generateIntPointerHST(i32 noundef 11)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %22) #5
  %23 = tail call ptr @generateIntPointerHST(i32 noundef 12)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %23) #5
  %24 = tail call ptr @generateIntPointerHST(i32 noundef 13)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %24) #5
  %25 = tail call ptr @generateIntPointerHST(i32 noundef 14)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %25) #5
  %26 = tail call ptr @generateIntPointerHST(i32 noundef 15)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %26) #5
  %27 = tail call ptr @generateIntPointerHST(i32 noundef 16)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %27) #5
  %28 = tail call ptr @generateIntPointerHST(i32 noundef 17)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %28) #5
  %29 = tail call ptr @generateIntPointerHST(i32 noundef 18)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %29) #5
  %30 = tail call ptr @generateIntPointerHST(i32 noundef 19)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %30) #5
  %31 = tail call ptr @generateIntPointerHST(i32 noundef 20)
  tail call void @hashSetInsert(ptr noundef %5, ptr noundef %31) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %2, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 1, ptr %3, align 4, !tbaa !12
  br label %38

32:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %33 = getelementptr inbounds i8, ptr %5, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !13
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %32
  %36 = load ptr, ptr %5, align 8, !tbaa !15
  %wide.trip.count = zext nneg i32 %34 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %37 = icmp eq i32 %34, 1
  br i1 %37, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %75

38:                                               ; preds = %1, %38
  %39 = call ptr @hashSetDeleteWtoFr(ptr noundef %5, ptr noundef nonnull %3) #5
  %40 = load i32, ptr %3, align 4, !tbaa !12
  %41 = load i32, ptr %39, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 158, ptr noundef null, i32 noundef %40, i32 noundef %41) #5
  call void @free(ptr noundef %39) #5
  %42 = load i32, ptr %3, align 4, !tbaa !12
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !12
  %44 = icmp slt i32 %42, 20
  br i1 %44, label %38, label %32, !llvm.loop !16

.preheader.loopexit.unr-lcssa:                    ; preds = %95, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %95 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa
  %45 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.unr
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %.not.epil = icmp eq ptr %46, null
  br i1 %.not.epil, label %.preheader.loopexit, label %47

47:                                               ; preds = %.epil.preheader
  %48 = load i32, ptr %46, align 4, !tbaa !12
  %49 = add nsw i32 %48, -1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !12
  br label %.preheader.loopexit

.preheader.loopexit:                              ; preds = %.epil.preheader, %47, %.preheader.loopexit.unr-lcssa
  %.pre = load i32, ptr %2, align 16, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 4
  %.pre35 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !12
  %.phi.trans.insert36 = getelementptr inbounds i8, ptr %2, i64 8
  %.pre37 = load i32, ptr %.phi.trans.insert36, align 8, !tbaa !12
  %.phi.trans.insert38 = getelementptr inbounds i8, ptr %2, i64 12
  %.pre39 = load i32, ptr %.phi.trans.insert38, align 4, !tbaa !12
  %.phi.trans.insert40 = getelementptr inbounds i8, ptr %2, i64 16
  %.pre41 = load i32, ptr %.phi.trans.insert40, align 16, !tbaa !12
  %.phi.trans.insert42 = getelementptr inbounds i8, ptr %2, i64 20
  %.pre43 = load i32, ptr %.phi.trans.insert42, align 4, !tbaa !12
  %.phi.trans.insert44 = getelementptr inbounds i8, ptr %2, i64 24
  %.pre45 = load i32, ptr %.phi.trans.insert44, align 8, !tbaa !12
  %.phi.trans.insert46 = getelementptr inbounds i8, ptr %2, i64 28
  %.pre47 = load i32, ptr %.phi.trans.insert46, align 4, !tbaa !12
  %.phi.trans.insert48 = getelementptr inbounds i8, ptr %2, i64 32
  %.pre49 = load i32, ptr %.phi.trans.insert48, align 16, !tbaa !12
  %.phi.trans.insert50 = getelementptr inbounds i8, ptr %2, i64 36
  %.pre51 = load i32, ptr %.phi.trans.insert50, align 4, !tbaa !12
  %.phi.trans.insert52 = getelementptr inbounds i8, ptr %2, i64 40
  %.pre53 = load i32, ptr %.phi.trans.insert52, align 8, !tbaa !12
  %.phi.trans.insert54 = getelementptr inbounds i8, ptr %2, i64 44
  %.pre55 = load i32, ptr %.phi.trans.insert54, align 4, !tbaa !12
  %.phi.trans.insert56 = getelementptr inbounds i8, ptr %2, i64 48
  %.pre57 = load i32, ptr %.phi.trans.insert56, align 16, !tbaa !12
  %.phi.trans.insert58 = getelementptr inbounds i8, ptr %2, i64 52
  %.pre59 = load i32, ptr %.phi.trans.insert58, align 4, !tbaa !12
  %.phi.trans.insert60 = getelementptr inbounds i8, ptr %2, i64 56
  %.pre61 = load i32, ptr %.phi.trans.insert60, align 8, !tbaa !12
  %.phi.trans.insert62 = getelementptr inbounds i8, ptr %2, i64 60
  %.pre63 = load i32, ptr %.phi.trans.insert62, align 4, !tbaa !12
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %2, i64 64
  %.pre65 = load i32, ptr %.phi.trans.insert64, align 16, !tbaa !12
  %.phi.trans.insert66 = getelementptr inbounds i8, ptr %2, i64 68
  %.pre67 = load i32, ptr %.phi.trans.insert66, align 4, !tbaa !12
  %.phi.trans.insert68 = getelementptr inbounds i8, ptr %2, i64 72
  %.pre69 = load i32, ptr %.phi.trans.insert68, align 8, !tbaa !12
  %.phi.trans.insert70 = getelementptr inbounds i8, ptr %2, i64 76
  %.pre71 = load i32, ptr %.phi.trans.insert70, align 4, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %32
  %54 = phi i32 [ %.pre71, %.preheader.loopexit ], [ 0, %32 ]
  %55 = phi i32 [ %.pre69, %.preheader.loopexit ], [ 0, %32 ]
  %56 = phi i32 [ %.pre67, %.preheader.loopexit ], [ 0, %32 ]
  %57 = phi i32 [ %.pre65, %.preheader.loopexit ], [ 0, %32 ]
  %58 = phi i32 [ %.pre63, %.preheader.loopexit ], [ 0, %32 ]
  %59 = phi i32 [ %.pre61, %.preheader.loopexit ], [ 0, %32 ]
  %60 = phi i32 [ %.pre59, %.preheader.loopexit ], [ 0, %32 ]
  %61 = phi i32 [ %.pre57, %.preheader.loopexit ], [ 0, %32 ]
  %62 = phi i32 [ %.pre55, %.preheader.loopexit ], [ 0, %32 ]
  %63 = phi i32 [ %.pre53, %.preheader.loopexit ], [ 0, %32 ]
  %64 = phi i32 [ %.pre51, %.preheader.loopexit ], [ 0, %32 ]
  %65 = phi i32 [ %.pre49, %.preheader.loopexit ], [ 0, %32 ]
  %66 = phi i32 [ %.pre47, %.preheader.loopexit ], [ 0, %32 ]
  %67 = phi i32 [ %.pre45, %.preheader.loopexit ], [ 0, %32 ]
  %68 = phi i32 [ %.pre43, %.preheader.loopexit ], [ 0, %32 ]
  %69 = phi i32 [ %.pre41, %.preheader.loopexit ], [ 0, %32 ]
  %70 = phi i32 [ %.pre39, %.preheader.loopexit ], [ 0, %32 ]
  %71 = phi i32 [ %.pre37, %.preheader.loopexit ], [ 0, %32 ]
  %72 = phi i32 [ %.pre35, %.preheader.loopexit ], [ 0, %32 ]
  %73 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %32 ]
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %73) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %72) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %71) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %70) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %69) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %68) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %67) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %66) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %65) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %64) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %63) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %62) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %61) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %60) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %59) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %58) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %57) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %56) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %55) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 171, ptr noundef null, i32 noundef 0, i32 noundef %54) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 10, ptr %4, align 4, !tbaa !12
  %74 = call ptr @hashSetDeleteWtoFr(ptr noundef %5, ptr noundef nonnull %4) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 174, ptr noundef null, ptr noundef null, ptr noundef %74) #5
  call void @destroyHashSet(ptr noundef %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret void

75:                                               ; preds = %95, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %95 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %95 ]
  %76 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %.not = icmp eq ptr %77, null
  br i1 %.not, label %85, label %78

78:                                               ; preds = %75
  %79 = load i32, ptr %77, align 4, !tbaa !12
  %80 = add nsw i32 %79, -1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %82, align 4, !tbaa !12
  br label %85

85:                                               ; preds = %75, %78
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %86 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv.next
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %87, null
  br i1 %.not.1, label %95, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %87, align 4, !tbaa !12
  %90 = add nsw i32 %89, -1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %92, align 4, !tbaa !12
  br label %95

95:                                               ; preds = %88, %85
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %75, !llvm.loop !18
}

declare ptr @hashSetDeleteWtoFr(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @CuAssertPtrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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("free") 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 8}
!14 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!14, !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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