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

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

@.str = external hidden unnamed_addr constant [156 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@__const.testBinaryHeapContains.values = external hidden unnamed_addr constant [10 x i32], align 16
@__const.testBinaryHeapContains.nonExistingValues = external hidden unnamed_addr constant [14 x i32], align 16

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

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

declare ptr @binaryHeapInitialization(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 @destroyBinaryHeap(ptr noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @testBinaryHeapContains(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [10 x i32], align 16
  %6 = alloca [14 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %10 = call ptr @binaryHeapInitialization(ptr noundef @free, ptr noundef @compareIntPointersBHT1)
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %11 = call ptr @binaryHeapInitialization(ptr noundef @free, ptr noundef @compareIntPointersBHT2)
  store ptr %11, ptr %4, align 8, !tbaa !5
  %12 = call i32 @binaryHeapContains(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 257, ptr noundef null, i32 noundef -83386157, i32 noundef %16)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call i32 @binaryHeapContains(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 260, ptr noundef null, i32 noundef -83384987, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.testBinaryHeapContains.values, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.testBinaryHeapContains.nonExistingValues, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %23

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

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

27:                                               ; preds = %23
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load i32, ptr %7, align 4, !tbaa !12
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !12
  %33 = call ptr @generateIntPointerBHT(i32 noundef %32)
  call void @binaryHeapInsert(ptr noundef %28, ptr noundef %33)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 4, !tbaa !12
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !12
  %39 = call ptr @generateIntPointerBHT(i32 noundef %38)
  call void @binaryHeapInsert(ptr noundef %34, ptr noundef %39)
  br label %40

40:                                               ; preds = %27
  %41 = load i32, ptr %7, align 4, !tbaa !12
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !12
  br label %23, !llvm.loop !13

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

44:                                               ; preds = %63, %43
  %45 = load i32, ptr %8, align 4, !tbaa !12
  %46 = icmp slt i32 %45, 10
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %44
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %52 = load i32, ptr %8, align 4, !tbaa !12
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = call i32 @binaryHeapContains(ptr noundef %50, ptr noundef %54)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %49, ptr noundef @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %55)
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %59 = load i32, ptr %8, align 4, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %58, i64 %60
  %62 = call i32 @binaryHeapContains(ptr noundef %57, ptr noundef %61)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %56, ptr noundef @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %62)
  br label %63

63:                                               ; preds = %48
  %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 %44, !llvm.loop !15

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

67:                                               ; preds = %86, %66
  %68 = load i32, ptr %9, align 4, !tbaa !12
  %69 = icmp slt i32 %68, 14
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %67
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds [14 x i32], ptr %6, i64 0, i64 0
  %75 = load i32, ptr %9, align 4, !tbaa !12
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %74, i64 %76
  %78 = call i32 @binaryHeapContains(ptr noundef %73, ptr noundef %77)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %72, ptr noundef @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %78)
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds [14 x i32], ptr %6, i64 0, i64 0
  %82 = load i32, ptr %9, align 4, !tbaa !12
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds i32, ptr %81, i64 %83
  %85 = call i32 @binaryHeapContains(ptr noundef %80, ptr noundef %84)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %79, ptr noundef @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %85)
  br label %86

86:                                               ; preds = %71
  %87 = load i32, ptr %9, align 4, !tbaa !12
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %9, align 4, !tbaa !12
  br label %67, !llvm.loop !16

89:                                               ; preds = %70
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyBinaryHeap(ptr noundef %90)
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  call void @destroyBinaryHeap(ptr noundef %91)
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

declare i32 @binaryHeapContains(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: readwrite) }
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 = distinct !{!16, !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 [156 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8
@__const.testBinaryHeapContains.values = external hidden unnamed_addr constant [10 x i32], align 16
@__const.testBinaryHeapContains.nonExistingValues = external hidden unnamed_addr constant [14 x i32], align 16

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

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

declare ptr @binaryHeapInitialization(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 @destroyBinaryHeap(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @testBinaryHeapContains(ptr noundef %0) local_unnamed_addr #0 {
.preheader28.preheader:
  %1 = alloca [10 x i32], align 16
  %2 = alloca [14 x i32], align 16
  %3 = tail call ptr @binaryHeapInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersBHT1) #5
  %4 = tail call ptr @binaryHeapInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersBHT2) #5
  %5 = tail call i32 @binaryHeapContains(ptr noundef null, 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 257, ptr noundef null, i32 noundef -83386157, i32 noundef %7) #5
  %8 = tail call i32 @binaryHeapContains(ptr noundef %3, ptr noundef null) #5
  %9 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %10 = load i32, ptr %9, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 260, ptr noundef null, i32 noundef -83384987, i32 noundef %10) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %1, ptr noundef nonnull align 16 dereferenceable(40) @__const.testBinaryHeapContains.values, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(56) %2, ptr noundef nonnull align 16 dereferenceable(56) @__const.testBinaryHeapContains.nonExistingValues, i64 56, i1 false)
  %11 = load i32, ptr %1, align 16, !tbaa !12
  %12 = tail call ptr @generateIntPointerBHT(i32 noundef %11)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %12) #5
  %13 = tail call ptr @generateIntPointerBHT(i32 noundef %11)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %13) #5
  %14 = getelementptr inbounds i8, ptr %1, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = tail call ptr @generateIntPointerBHT(i32 noundef %15)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %16) #5
  %17 = tail call ptr @generateIntPointerBHT(i32 noundef %15)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %17) #5
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = tail call ptr @generateIntPointerBHT(i32 noundef %19)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %20) #5
  %21 = tail call ptr @generateIntPointerBHT(i32 noundef %19)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %21) #5
  %22 = getelementptr inbounds i8, ptr %1, i64 12
  %23 = load i32, ptr %22, align 4, !tbaa !12
  %24 = tail call ptr @generateIntPointerBHT(i32 noundef %23)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %24) #5
  %25 = tail call ptr @generateIntPointerBHT(i32 noundef %23)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %25) #5
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  %27 = load i32, ptr %26, align 16, !tbaa !12
  %28 = tail call ptr @generateIntPointerBHT(i32 noundef %27)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %28) #5
  %29 = tail call ptr @generateIntPointerBHT(i32 noundef %27)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %29) #5
  %30 = getelementptr inbounds i8, ptr %1, i64 20
  %31 = load i32, ptr %30, align 4, !tbaa !12
  %32 = tail call ptr @generateIntPointerBHT(i32 noundef %31)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %32) #5
  %33 = tail call ptr @generateIntPointerBHT(i32 noundef %31)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %33) #5
  %34 = getelementptr inbounds i8, ptr %1, i64 24
  %35 = load i32, ptr %34, align 8, !tbaa !12
  %36 = tail call ptr @generateIntPointerBHT(i32 noundef %35)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %36) #5
  %37 = tail call ptr @generateIntPointerBHT(i32 noundef %35)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %37) #5
  %38 = getelementptr inbounds i8, ptr %1, i64 28
  %39 = load i32, ptr %38, align 4, !tbaa !12
  %40 = tail call ptr @generateIntPointerBHT(i32 noundef %39)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %40) #5
  %41 = tail call ptr @generateIntPointerBHT(i32 noundef %39)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %41) #5
  %42 = getelementptr inbounds i8, ptr %1, i64 32
  %43 = load i32, ptr %42, align 16, !tbaa !12
  %44 = tail call ptr @generateIntPointerBHT(i32 noundef %43)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %44) #5
  %45 = tail call ptr @generateIntPointerBHT(i32 noundef %43)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %45) #5
  %46 = getelementptr inbounds i8, ptr %1, i64 36
  %47 = load i32, ptr %46, align 4, !tbaa !12
  %48 = tail call ptr @generateIntPointerBHT(i32 noundef %47)
  tail call void @binaryHeapInsert(ptr noundef %3, ptr noundef %48) #5
  %49 = tail call ptr @generateIntPointerBHT(i32 noundef %47)
  tail call void @binaryHeapInsert(ptr noundef %4, ptr noundef %49) #5
  %50 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %1) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %50) #5
  %51 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %1) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %51) #5
  %52 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %14) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %52) #5
  %53 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %14) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %53) #5
  %54 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %18) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %54) #5
  %55 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %18) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %55) #5
  %56 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %22) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %56) #5
  %57 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %22) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %57) #5
  %58 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %26) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %58) #5
  %59 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %26) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %59) #5
  %60 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %30) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %60) #5
  %61 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %30) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %61) #5
  %62 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %34) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %62) #5
  %63 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %34) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %63) #5
  %64 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %38) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %64) #5
  %65 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %38) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %65) #5
  %66 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %42) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %66) #5
  %67 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %42) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %67) #5
  %68 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %46) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 273, ptr noundef null, i32 noundef 1, i32 noundef %68) #5
  %69 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %46) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 274, ptr noundef null, i32 noundef 1, i32 noundef %69) #5
  %70 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %2) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %70) #5
  %71 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %2) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %71) #5
  %72 = getelementptr inbounds i8, ptr %2, i64 4
  %73 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %72) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %73) #5
  %74 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %72) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %74) #5
  %75 = getelementptr inbounds i8, ptr %2, i64 8
  %76 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %75) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %76) #5
  %77 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %75) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %77) #5
  %78 = getelementptr inbounds i8, ptr %2, i64 12
  %79 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %78) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %79) #5
  %80 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %78) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %80) #5
  %81 = getelementptr inbounds i8, ptr %2, i64 16
  %82 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %81) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %82) #5
  %83 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %81) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %83) #5
  %84 = getelementptr inbounds i8, ptr %2, i64 20
  %85 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %84) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %85) #5
  %86 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %84) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %86) #5
  %87 = getelementptr inbounds i8, ptr %2, i64 24
  %88 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %87) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %88) #5
  %89 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %87) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %89) #5
  %90 = getelementptr inbounds i8, ptr %2, i64 28
  %91 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %90) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %91) #5
  %92 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %90) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %92) #5
  %93 = getelementptr inbounds i8, ptr %2, i64 32
  %94 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %93) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %94) #5
  %95 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %93) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %95) #5
  %96 = getelementptr inbounds i8, ptr %2, i64 36
  %97 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %96) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %97) #5
  %98 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %96) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %98) #5
  %99 = getelementptr inbounds i8, ptr %2, i64 40
  %100 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %99) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %100) #5
  %101 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %99) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %101) #5
  %102 = getelementptr inbounds i8, ptr %2, i64 44
  %103 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %102) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %103) #5
  %104 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %102) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %104) #5
  %105 = getelementptr inbounds i8, ptr %2, i64 48
  %106 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %105) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %106) #5
  %107 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %105) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %107) #5
  %108 = getelementptr inbounds i8, ptr %2, i64 52
  %109 = call i32 @binaryHeapContains(ptr noundef %3, ptr noundef nonnull %108) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 278, ptr noundef null, i32 noundef 0, i32 noundef %109) #5
  %110 = call i32 @binaryHeapContains(ptr noundef %4, ptr noundef nonnull %108) #5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 279, ptr noundef null, i32 noundef 0, i32 noundef %110) #5
  call void @destroyBinaryHeap(ptr noundef %3) #5
  call void @destroyBinaryHeap(ptr noundef %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  ret void
}

declare i32 @binaryHeapContains(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: readwrite) }
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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass