; 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

; Function Attrs: nounwind uwtable
define dso_local void @testHashSetInsert(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
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = call ptr @hashSetInitialization(ptr noundef @free, ptr noundef @compareIntPointersHST, ptr noundef @intHashFunHST)
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @hashSetInsert(ptr noundef null, ptr noundef null)
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ErrorTestStruct, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %9, ptr noundef @.str, i32 noundef 79, ptr noundef null, i32 noundef -83386157, i32 noundef %12)
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  call void @hashSetInsert(ptr noundef %13, ptr noundef null)
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ErrorTestStruct, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %14, ptr noundef @.str, i32 noundef 82, ptr noundef null, i32 noundef -83384987, i32 noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %18

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

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

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

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

30:                                               ; preds = %21
  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 0, ptr %6, align 4, !tbaa !12
  br label %31

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

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

38:                                               ; preds = %31
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.HashSet, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = load i32, ptr %6, align 4, !tbaa !12
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %61

47:                                               ; preds = %38
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.HashSet, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i32, ptr %6, align 4, !tbaa !12
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %50, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !12
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !12
  br label %61

61:                                               ; preds = %47, %38
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %6, align 4, !tbaa !12
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !12
  br label %31, !llvm.loop !18

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

66:                                               ; preds = %76, %65
  %67 = load i32, ptr %7, align 4, !tbaa !12
  %68 = icmp slt i32 %67, 20
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %66
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %71, ptr noundef @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %75)
  br label %76

76:                                               ; preds = %70
  %77 = load i32, ptr %7, align 4, !tbaa !12
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !12
  br label %66, !llvm.loop !19

79:                                               ; preds = %69
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyHashSet(ptr noundef %80)
  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 @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

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 8}
!16 = !{!"HashSet", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!16, !6, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !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

; Function Attrs: nounwind uwtable
define dso_local void @testHashSetInsert(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
  tail call void @hashSetInsert(ptr noundef null, ptr noundef null) #5
  %4 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %5 = load i32, ptr %4, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 79, ptr noundef null, i32 noundef -83386157, i32 noundef %5) #5
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef null) #5
  %6 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %7 = load i32, ptr %6, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 82, ptr noundef null, i32 noundef -83384987, i32 noundef %7) #5
  %8 = tail call ptr @generateIntPointerHST(i32 noundef 1)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %8) #5
  %9 = tail call ptr @generateIntPointerHST(i32 noundef 2)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %9) #5
  %10 = tail call ptr @generateIntPointerHST(i32 noundef 3)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %10) #5
  %11 = tail call ptr @generateIntPointerHST(i32 noundef 4)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %11) #5
  %12 = tail call ptr @generateIntPointerHST(i32 noundef 5)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %12) #5
  %13 = tail call ptr @generateIntPointerHST(i32 noundef 6)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %13) #5
  %14 = tail call ptr @generateIntPointerHST(i32 noundef 7)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %14) #5
  %15 = tail call ptr @generateIntPointerHST(i32 noundef 8)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %15) #5
  %16 = tail call ptr @generateIntPointerHST(i32 noundef 9)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %16) #5
  %17 = tail call ptr @generateIntPointerHST(i32 noundef 10)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %17) #5
  %18 = tail call ptr @generateIntPointerHST(i32 noundef 11)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %18) #5
  %19 = tail call ptr @generateIntPointerHST(i32 noundef 12)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %19) #5
  %20 = tail call ptr @generateIntPointerHST(i32 noundef 13)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %20) #5
  %21 = tail call ptr @generateIntPointerHST(i32 noundef 14)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %21) #5
  %22 = tail call ptr @generateIntPointerHST(i32 noundef 15)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %22) #5
  %23 = tail call ptr @generateIntPointerHST(i32 noundef 16)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %23) #5
  %24 = tail call ptr @generateIntPointerHST(i32 noundef 17)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %24) #5
  %25 = tail call ptr @generateIntPointerHST(i32 noundef 18)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %25) #5
  %26 = tail call ptr @generateIntPointerHST(i32 noundef 19)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %26) #5
  %27 = tail call ptr @generateIntPointerHST(i32 noundef 20)
  tail call void @hashSetInsert(ptr noundef %3, ptr noundef %27) #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)
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !12
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph, label %.preheader

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

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

35:                                               ; preds = %.epil.preheader
  %36 = load i32, ptr %34, align 4, !tbaa !15
  %37 = add nsw i32 %36, -1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %39, align 4, !tbaa !15
  br label %.preheader.loopexit

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

.preheader:                                       ; preds = %.preheader.loopexit, %1
  %42 = phi i32 [ %.pre65, %.preheader.loopexit ], [ 0, %1 ]
  %43 = phi i32 [ %.pre63, %.preheader.loopexit ], [ 0, %1 ]
  %44 = phi i32 [ %.pre61, %.preheader.loopexit ], [ 0, %1 ]
  %45 = phi i32 [ %.pre59, %.preheader.loopexit ], [ 0, %1 ]
  %46 = phi i32 [ %.pre57, %.preheader.loopexit ], [ 0, %1 ]
  %47 = phi i32 [ %.pre55, %.preheader.loopexit ], [ 0, %1 ]
  %48 = phi i32 [ %.pre53, %.preheader.loopexit ], [ 0, %1 ]
  %49 = phi i32 [ %.pre51, %.preheader.loopexit ], [ 0, %1 ]
  %50 = phi i32 [ %.pre49, %.preheader.loopexit ], [ 0, %1 ]
  %51 = phi i32 [ %.pre47, %.preheader.loopexit ], [ 0, %1 ]
  %52 = phi i32 [ %.pre45, %.preheader.loopexit ], [ 0, %1 ]
  %53 = phi i32 [ %.pre43, %.preheader.loopexit ], [ 0, %1 ]
  %54 = phi i32 [ %.pre41, %.preheader.loopexit ], [ 0, %1 ]
  %55 = phi i32 [ %.pre39, %.preheader.loopexit ], [ 0, %1 ]
  %56 = phi i32 [ %.pre37, %.preheader.loopexit ], [ 0, %1 ]
  %57 = phi i32 [ %.pre35, %.preheader.loopexit ], [ 0, %1 ]
  %58 = phi i32 [ %.pre33, %.preheader.loopexit ], [ 0, %1 ]
  %59 = phi i32 [ %.pre31, %.preheader.loopexit ], [ 0, %1 ]
  %60 = phi i32 [ %.pre29, %.preheader.loopexit ], [ 0, %1 ]
  %61 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %1 ]
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %61) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %60) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %59) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %58) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %57) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %56) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %55) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %54) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %53) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %52) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %51) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %50) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %49) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %48) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %47) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %46) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %45) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %44) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %43) #5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 98, ptr noundef null, i32 noundef 1, i32 noundef %42) #5
  tail call void @destroyHashSet(ptr noundef %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret void

62:                                               ; preds = %82, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %82 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %82 ]
  %63 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %.not = icmp eq ptr %64, null
  br i1 %.not, label %72, label %65

65:                                               ; preds = %62
  %66 = load i32, ptr %64, align 4, !tbaa !15
  %67 = add nsw i32 %66, -1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !15
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 4, !tbaa !15
  br label %72

72:                                               ; preds = %62, %65
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %73 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %74, null
  br i1 %.not.1, label %82, label %75

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

82:                                               ; preds = %75, %72
  %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 %62, !llvm.loop !16
}

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

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


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