; 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 @testHashSetDelete(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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = call ptr @hashSetInitialization(ptr noundef @free, ptr noundef @compareIntPointersHST, ptr noundef @intHashFunHST)
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @hashSetDelete(ptr noundef null, ptr noundef null)
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ErrorTestStruct, ptr %11, i32 0, i32 0
  %13 = load i32, ptr %12, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %10, ptr noundef @.str, i32 noundef 110, ptr noundef null, i32 noundef -83386157, i32 noundef %13)
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void @hashSetDelete(ptr noundef %14, ptr noundef null)
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ErrorTestStruct, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %15, ptr noundef @.str, i32 noundef 113, ptr noundef null, i32 noundef -83384987, i32 noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %19

19:                                               ; preds = %28, %1
  %20 = load i32, ptr %4, align 4, !tbaa !12
  %21 = icmp slt i32 %20, 20
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %31

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

28:                                               ; preds = %23
  %29 = load i32, ptr %4, align 4, !tbaa !12
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %4, align 4, !tbaa !12
  br label %19, !llvm.loop !13

31:                                               ; preds = %22
  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 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !12
  br label %32

32:                                               ; preds = %38, %31
  %33 = load i32, ptr %6, align 4, !tbaa !12
  %34 = icmp sle i32 %33, 20
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %32
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @hashSetDelete(ptr noundef %37, ptr noundef %6)
  br label %38

38:                                               ; preds = %36
  %39 = load i32, ptr %6, align 4, !tbaa !12
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %6, align 4, !tbaa !12
  br label %32, !llvm.loop !15

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

42:                                               ; preds = %73, %41
  %43 = load i32, ptr %7, align 4, !tbaa !12
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HashSet, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %42
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.HashSet, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = load i32, ptr %7, align 4, !tbaa !12
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %72

58:                                               ; preds = %49
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.HashSet, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = load i32, ptr %7, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load i32, ptr %65, align 4, !tbaa !12
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !12
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 4, !tbaa !12
  br label %72

72:                                               ; preds = %58, %49
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %7, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %7, align 4, !tbaa !12
  br label %42, !llvm.loop !19

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

77:                                               ; preds = %87, %76
  %78 = load i32, ptr %8, align 4, !tbaa !12
  %79 = icmp slt i32 %78, 20
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %77
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !12
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %82, ptr noundef @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %86)
  br label %87

87:                                               ; preds = %81
  %88 = load i32, ptr %8, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !12
  br label %77, !llvm.loop !20

90:                                               ; preds = %80
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyHashSet(ptr noundef %91)
  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 void @hashSetDelete(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 @testHashSetDelete(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [20 x i32], align 16
  %3 = alloca i32, align 4
  %4 = tail call ptr @hashSetInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersHST, ptr noundef nonnull @intHashFunHST) #5
  tail call void @hashSetDelete(ptr noundef null, ptr noundef null) #5
  %5 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %6 = load i32, ptr %5, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 110, ptr noundef null, i32 noundef -83386157, i32 noundef %6) #5
  tail call void @hashSetDelete(ptr noundef %4, 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 113, ptr noundef null, i32 noundef -83384987, i32 noundef %8) #5
  %9 = tail call ptr @generateIntPointerHST(i32 noundef 1)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %9) #5
  %10 = tail call ptr @generateIntPointerHST(i32 noundef 2)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %10) #5
  %11 = tail call ptr @generateIntPointerHST(i32 noundef 3)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %11) #5
  %12 = tail call ptr @generateIntPointerHST(i32 noundef 4)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %12) #5
  %13 = tail call ptr @generateIntPointerHST(i32 noundef 5)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %13) #5
  %14 = tail call ptr @generateIntPointerHST(i32 noundef 6)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %14) #5
  %15 = tail call ptr @generateIntPointerHST(i32 noundef 7)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %15) #5
  %16 = tail call ptr @generateIntPointerHST(i32 noundef 8)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %16) #5
  %17 = tail call ptr @generateIntPointerHST(i32 noundef 9)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %17) #5
  %18 = tail call ptr @generateIntPointerHST(i32 noundef 10)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %18) #5
  %19 = tail call ptr @generateIntPointerHST(i32 noundef 11)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %19) #5
  %20 = tail call ptr @generateIntPointerHST(i32 noundef 12)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %20) #5
  %21 = tail call ptr @generateIntPointerHST(i32 noundef 13)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %21) #5
  %22 = tail call ptr @generateIntPointerHST(i32 noundef 14)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %22) #5
  %23 = tail call ptr @generateIntPointerHST(i32 noundef 15)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %23) #5
  %24 = tail call ptr @generateIntPointerHST(i32 noundef 16)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %24) #5
  %25 = tail call ptr @generateIntPointerHST(i32 noundef 17)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %25) #5
  %26 = tail call ptr @generateIntPointerHST(i32 noundef 18)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %26) #5
  %27 = tail call ptr @generateIntPointerHST(i32 noundef 19)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %27) #5
  %28 = tail call ptr @generateIntPointerHST(i32 noundef 20)
  tail call void @hashSetInsert(ptr noundef %4, ptr noundef %28) #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 %35

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

.lr.ph:                                           ; preds = %29
  %33 = load ptr, ptr %4, align 8, !tbaa !15
  %wide.trip.count = zext nneg i32 %31 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %34 = icmp eq i32 %31, 1
  br i1 %34, 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 %68

35:                                               ; preds = %1, %35
  call void @hashSetDelete(ptr noundef %4, ptr noundef nonnull %3) #5
  %36 = load i32, ptr %3, align 4, !tbaa !12
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !12
  %38 = icmp slt i32 %36, 20
  br i1 %38, label %35, label %29, !llvm.loop !16

.preheader.loopexit.unr-lcssa:                    ; preds = %88, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %88 ]
  %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
  %39 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv.unr
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %.not.epil = icmp eq ptr %40, null
  br i1 %.not.epil, label %.preheader.loopexit, label %41

41:                                               ; preds = %.epil.preheader
  %42 = load i32, ptr %40, align 4, !tbaa !12
  %43 = add nsw i32 %42, -1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !12
  br label %.preheader.loopexit

.preheader.loopexit:                              ; preds = %.epil.preheader, %41, %.preheader.loopexit.unr-lcssa
  %.pre = load i32, ptr %2, align 16, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 4
  %.pre30 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !12
  %.phi.trans.insert31 = getelementptr inbounds i8, ptr %2, i64 8
  %.pre32 = load i32, ptr %.phi.trans.insert31, align 8, !tbaa !12
  %.phi.trans.insert33 = getelementptr inbounds i8, ptr %2, i64 12
  %.pre34 = load i32, ptr %.phi.trans.insert33, align 4, !tbaa !12
  %.phi.trans.insert35 = getelementptr inbounds i8, ptr %2, i64 16
  %.pre36 = load i32, ptr %.phi.trans.insert35, align 16, !tbaa !12
  %.phi.trans.insert37 = getelementptr inbounds i8, ptr %2, i64 20
  %.pre38 = load i32, ptr %.phi.trans.insert37, align 4, !tbaa !12
  %.phi.trans.insert39 = getelementptr inbounds i8, ptr %2, i64 24
  %.pre40 = load i32, ptr %.phi.trans.insert39, align 8, !tbaa !12
  %.phi.trans.insert41 = getelementptr inbounds i8, ptr %2, i64 28
  %.pre42 = load i32, ptr %.phi.trans.insert41, align 4, !tbaa !12
  %.phi.trans.insert43 = getelementptr inbounds i8, ptr %2, i64 32
  %.pre44 = load i32, ptr %.phi.trans.insert43, align 16, !tbaa !12
  %.phi.trans.insert45 = getelementptr inbounds i8, ptr %2, i64 36
  %.pre46 = load i32, ptr %.phi.trans.insert45, align 4, !tbaa !12
  %.phi.trans.insert47 = getelementptr inbounds i8, ptr %2, i64 40
  %.pre48 = load i32, ptr %.phi.trans.insert47, align 8, !tbaa !12
  %.phi.trans.insert49 = getelementptr inbounds i8, ptr %2, i64 44
  %.pre50 = load i32, ptr %.phi.trans.insert49, align 4, !tbaa !12
  %.phi.trans.insert51 = getelementptr inbounds i8, ptr %2, i64 48
  %.pre52 = load i32, ptr %.phi.trans.insert51, align 16, !tbaa !12
  %.phi.trans.insert53 = getelementptr inbounds i8, ptr %2, i64 52
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 4, !tbaa !12
  %.phi.trans.insert55 = getelementptr inbounds i8, ptr %2, i64 56
  %.pre56 = load i32, ptr %.phi.trans.insert55, align 8, !tbaa !12
  %.phi.trans.insert57 = getelementptr inbounds i8, ptr %2, i64 60
  %.pre58 = load i32, ptr %.phi.trans.insert57, align 4, !tbaa !12
  %.phi.trans.insert59 = getelementptr inbounds i8, ptr %2, i64 64
  %.pre60 = load i32, ptr %.phi.trans.insert59, align 16, !tbaa !12
  %.phi.trans.insert61 = getelementptr inbounds i8, ptr %2, i64 68
  %.pre62 = load i32, ptr %.phi.trans.insert61, align 4, !tbaa !12
  %.phi.trans.insert63 = getelementptr inbounds i8, ptr %2, i64 72
  %.pre64 = load i32, ptr %.phi.trans.insert63, align 8, !tbaa !12
  %.phi.trans.insert65 = getelementptr inbounds i8, ptr %2, i64 76
  %.pre66 = load i32, ptr %.phi.trans.insert65, align 4, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %29
  %48 = phi i32 [ %.pre66, %.preheader.loopexit ], [ 0, %29 ]
  %49 = phi i32 [ %.pre64, %.preheader.loopexit ], [ 0, %29 ]
  %50 = phi i32 [ %.pre62, %.preheader.loopexit ], [ 0, %29 ]
  %51 = phi i32 [ %.pre60, %.preheader.loopexit ], [ 0, %29 ]
  %52 = phi i32 [ %.pre58, %.preheader.loopexit ], [ 0, %29 ]
  %53 = phi i32 [ %.pre56, %.preheader.loopexit ], [ 0, %29 ]
  %54 = phi i32 [ %.pre54, %.preheader.loopexit ], [ 0, %29 ]
  %55 = phi i32 [ %.pre52, %.preheader.loopexit ], [ 0, %29 ]
  %56 = phi i32 [ %.pre50, %.preheader.loopexit ], [ 0, %29 ]
  %57 = phi i32 [ %.pre48, %.preheader.loopexit ], [ 0, %29 ]
  %58 = phi i32 [ %.pre46, %.preheader.loopexit ], [ 0, %29 ]
  %59 = phi i32 [ %.pre44, %.preheader.loopexit ], [ 0, %29 ]
  %60 = phi i32 [ %.pre42, %.preheader.loopexit ], [ 0, %29 ]
  %61 = phi i32 [ %.pre40, %.preheader.loopexit ], [ 0, %29 ]
  %62 = phi i32 [ %.pre38, %.preheader.loopexit ], [ 0, %29 ]
  %63 = phi i32 [ %.pre36, %.preheader.loopexit ], [ 0, %29 ]
  %64 = phi i32 [ %.pre34, %.preheader.loopexit ], [ 0, %29 ]
  %65 = phi i32 [ %.pre32, %.preheader.loopexit ], [ 0, %29 ]
  %66 = phi i32 [ %.pre30, %.preheader.loopexit ], [ 0, %29 ]
  %67 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %29 ]
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %67) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %66) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %65) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %64) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %63) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %62) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %61) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %60) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %59) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %58) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %57) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %56) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %55) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %54) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %53) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %52) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %51) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %50) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %49) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 132, ptr noundef null, i32 noundef 0, i32 noundef %48) #5
  call void @destroyHashSet(ptr noundef %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret void

68:                                               ; preds = %88, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %88 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %88 ]
  %69 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %.not = icmp eq ptr %70, null
  br i1 %.not, label %78, label %71

71:                                               ; preds = %68
  %72 = load i32, ptr %70, align 4, !tbaa !12
  %73 = add nsw i32 %72, -1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !12
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %75, align 4, !tbaa !12
  br label %78

78:                                               ; preds = %68, %71
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %79 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv.next
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %80, null
  br i1 %.not.1, label %88, label %81

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

88:                                               ; preds = %81, %78
  %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 %68, !llvm.loop !18
}

declare void @hashSetDelete(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