; 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 @testHashSetToArray(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
  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
  %10 = call ptr @hashSetToArray(ptr noundef null)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ErrorTestStruct, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %11, ptr noundef @.str, i32 noundef 240, ptr noundef null, i32 noundef -83386157, i32 noundef %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %15

15:                                               ; preds = %24, %1
  %16 = load i32, ptr %4, align 4, !tbaa !12
  %17 = icmp slt i32 %16, 20
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %27

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

24:                                               ; preds = %19
  %25 = load i32, ptr %4, align 4, !tbaa !12
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %4, align 4, !tbaa !12
  br label %15, !llvm.loop !13

27:                                               ; preds = %18
  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
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call ptr @hashSetToArray(ptr noundef %28)
  store ptr %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %30

30:                                               ; preds = %49, %27
  %31 = load i32, ptr %7, align 4, !tbaa !12
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.HashSet, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 4, !tbaa !15
  %35 = icmp slt i32 %31, %34
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %30
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i32, ptr %7, align 4, !tbaa !12
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds ptr, ptr %38, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !12
  %44 = sub nsw i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !12
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !12
  br label %49

49:                                               ; preds = %37
  %50 = load i32, ptr %7, align 4, !tbaa !12
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !12
  br label %30, !llvm.loop !17

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

53:                                               ; preds = %63, %52
  %54 = load i32, ptr %8, align 4, !tbaa !12
  %55 = icmp slt i32 %54, 20
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %53
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %58, ptr noundef @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %62)
  br label %63

63:                                               ; preds = %57
  %64 = load i32, ptr %8, align 4, !tbaa !12
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !12
  br label %53, !llvm.loop !18

66:                                               ; preds = %56
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %67) #5
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyHashSet(ptr noundef %68)
  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 @hashSetToArray(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 = !{!16, !11, i64 12}
!16 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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 @testHashSetToArray(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [20 x i32], align 16
  %3 = tail call ptr @hashSetInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersHST, ptr noundef nonnull @intHashFunHST) #5
  %4 = tail call ptr @hashSetToArray(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 240, ptr noundef null, i32 noundef -83386157, i32 noundef %6) #5
  %7 = tail call ptr @generateIntPointerHST(i32 noundef 1)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %7) #5
  %8 = tail call ptr @generateIntPointerHST(i32 noundef 2)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %8) #5
  %9 = tail call ptr @generateIntPointerHST(i32 noundef 3)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %9) #5
  %10 = tail call ptr @generateIntPointerHST(i32 noundef 4)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %10) #5
  %11 = tail call ptr @generateIntPointerHST(i32 noundef 5)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %11) #5
  %12 = tail call ptr @generateIntPointerHST(i32 noundef 6)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %12) #5
  %13 = tail call ptr @generateIntPointerHST(i32 noundef 7)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %13) #5
  %14 = tail call ptr @generateIntPointerHST(i32 noundef 8)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %14) #5
  %15 = tail call ptr @generateIntPointerHST(i32 noundef 9)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %15) #5
  %16 = tail call ptr @generateIntPointerHST(i32 noundef 10)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %16) #5
  %17 = tail call ptr @generateIntPointerHST(i32 noundef 11)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %17) #5
  %18 = tail call ptr @generateIntPointerHST(i32 noundef 12)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %18) #5
  %19 = tail call ptr @generateIntPointerHST(i32 noundef 13)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %19) #5
  %20 = tail call ptr @generateIntPointerHST(i32 noundef 14)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %20) #5
  %21 = tail call ptr @generateIntPointerHST(i32 noundef 15)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %21) #5
  %22 = tail call ptr @generateIntPointerHST(i32 noundef 16)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %22) #5
  %23 = tail call ptr @generateIntPointerHST(i32 noundef 17)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %23) #5
  %24 = tail call ptr @generateIntPointerHST(i32 noundef 18)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %24) #5
  %25 = tail call ptr @generateIntPointerHST(i32 noundef 19)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %25) #5
  %26 = tail call ptr @generateIntPointerHST(i32 noundef 20)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %26) #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)
  %27 = tail call ptr @hashSetToArray(ptr noundef %3) #5
  %28 = getelementptr inbounds i8, ptr %3, i64 12
  %29 = load i32, ptr %28, align 4, !tbaa !12
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = zext nneg i32 %29 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %31 = icmp eq i32 %29, 1
  br i1 %31, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

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

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

.lr.ph.epil:                                      ; preds = %.preheader.loopexit.unr-lcssa
  %32 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv.unr
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = load i32, ptr %33, align 4, !tbaa !14
  %35 = add nsw i32 %34, -1
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !14
  br label %.preheader.loopexit

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

.preheader:                                       ; preds = %.preheader.loopexit, %1
  %40 = phi i32 [ %.pre62, %.preheader.loopexit ], [ 0, %1 ]
  %41 = phi i32 [ %.pre60, %.preheader.loopexit ], [ 0, %1 ]
  %42 = phi i32 [ %.pre58, %.preheader.loopexit ], [ 0, %1 ]
  %43 = phi i32 [ %.pre56, %.preheader.loopexit ], [ 0, %1 ]
  %44 = phi i32 [ %.pre54, %.preheader.loopexit ], [ 0, %1 ]
  %45 = phi i32 [ %.pre52, %.preheader.loopexit ], [ 0, %1 ]
  %46 = phi i32 [ %.pre50, %.preheader.loopexit ], [ 0, %1 ]
  %47 = phi i32 [ %.pre48, %.preheader.loopexit ], [ 0, %1 ]
  %48 = phi i32 [ %.pre46, %.preheader.loopexit ], [ 0, %1 ]
  %49 = phi i32 [ %.pre44, %.preheader.loopexit ], [ 0, %1 ]
  %50 = phi i32 [ %.pre42, %.preheader.loopexit ], [ 0, %1 ]
  %51 = phi i32 [ %.pre40, %.preheader.loopexit ], [ 0, %1 ]
  %52 = phi i32 [ %.pre38, %.preheader.loopexit ], [ 0, %1 ]
  %53 = phi i32 [ %.pre36, %.preheader.loopexit ], [ 0, %1 ]
  %54 = phi i32 [ %.pre34, %.preheader.loopexit ], [ 0, %1 ]
  %55 = phi i32 [ %.pre32, %.preheader.loopexit ], [ 0, %1 ]
  %56 = phi i32 [ %.pre30, %.preheader.loopexit ], [ 0, %1 ]
  %57 = phi i32 [ %.pre28, %.preheader.loopexit ], [ 0, %1 ]
  %58 = phi i32 [ %.pre26, %.preheader.loopexit ], [ 0, %1 ]
  %59 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %1 ]
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %59) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %58) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %57) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %56) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %55) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %54) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %53) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %52) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %51) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %50) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %49) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %48) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %47) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %46) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %45) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %44) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %43) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %42) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %41) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 252, ptr noundef null, i32 noundef 1, i32 noundef %40) #5
  tail call void @free(ptr noundef %27) #5
  tail call void @destroyHashSet(ptr noundef %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret void

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %60 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !14
  %63 = add nsw i32 %62, -1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !14
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !14
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %68 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv.next
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !14
  %71 = add nsw i32 %70, -1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !14
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 4, !tbaa !14
  %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 %.lr.ph, !llvm.loop !15
}

declare ptr @hashSetToArray(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 = !{!13, !11, i64 12}
!13 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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