; 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.testBinaryHeapGet.values = external hidden unnamed_addr constant [10 x i32], align 16
@__const.testBinaryHeapGet.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 @testBinaryHeapGet(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 ptr @binaryHeapGet(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 296, ptr noundef null, i32 noundef -83386157, i32 noundef %16)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call ptr @binaryHeapGet(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 299, 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.testBinaryHeapGet.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.testBinaryHeapGet.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 = %73, %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 %76

48:                                               ; preds = %44
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !12
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %56 = load i32, ptr %8, align 4, !tbaa !12
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %55, i64 %57
  %59 = call ptr @binaryHeapGet(ptr noundef %54, ptr noundef %58)
  %60 = load i32, ptr %59, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %49, ptr noundef @.str, i32 noundef 312, ptr noundef null, i32 noundef %53, i32 noundef %60)
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 0
  %68 = load i32, ptr %8, align 4, !tbaa !12
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = call ptr @binaryHeapGet(ptr noundef %66, ptr noundef %70)
  %72 = load i32, ptr %71, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %61, ptr noundef @.str, i32 noundef 313, ptr noundef null, i32 noundef %65, i32 noundef %72)
  br label %73

73:                                               ; preds = %48
  %74 = load i32, ptr %8, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !12
  br label %44, !llvm.loop !15

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

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

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

81:                                               ; preds = %77
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds [14 x i32], ptr %6, i64 0, i64 0
  %85 = load i32, ptr %9, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = call ptr @binaryHeapGet(ptr noundef %83, ptr noundef %87)
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %82, ptr noundef @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %88)
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds [14 x i32], ptr %6, i64 0, i64 0
  %92 = load i32, ptr %9, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds i32, ptr %91, i64 %93
  %95 = call ptr @binaryHeapGet(ptr noundef %90, ptr noundef %94)
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %89, ptr noundef @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %95)
  br label %96

96:                                               ; preds = %81
  %97 = load i32, ptr %9, align 4, !tbaa !12
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %9, align 4, !tbaa !12
  br label %77, !llvm.loop !16

99:                                               ; preds = %80
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyBinaryHeap(ptr noundef %100)
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  call void @destroyBinaryHeap(ptr noundef %101)
  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 ptr @binaryHeapGet(ptr noundef, ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: 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.testBinaryHeapGet.values = external hidden unnamed_addr constant [10 x i32], align 16
@__const.testBinaryHeapGet.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 @testBinaryHeapGet(ptr noundef %0) local_unnamed_addr #0 {
.preheader30.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 ptr @binaryHeapGet(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 296, ptr noundef null, i32 noundef -83386157, i32 noundef %7) #5
  %8 = tail call ptr @binaryHeapGet(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 299, 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.testBinaryHeapGet.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.testBinaryHeapGet.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 ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %1) #5
  %51 = load i32, ptr %50, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %11, i32 noundef %51) #5
  %52 = load i32, ptr %1, align 16, !tbaa !12
  %53 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %1) #5
  %54 = load i32, ptr %53, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %52, i32 noundef %54) #5
  %55 = load i32, ptr %14, align 4, !tbaa !12
  %56 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %14) #5
  %57 = load i32, ptr %56, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %55, i32 noundef %57) #5
  %58 = load i32, ptr %14, align 4, !tbaa !12
  %59 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %14) #5
  %60 = load i32, ptr %59, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %58, i32 noundef %60) #5
  %61 = load i32, ptr %18, align 8, !tbaa !12
  %62 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %18) #5
  %63 = load i32, ptr %62, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %61, i32 noundef %63) #5
  %64 = load i32, ptr %18, align 8, !tbaa !12
  %65 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %18) #5
  %66 = load i32, ptr %65, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %64, i32 noundef %66) #5
  %67 = load i32, ptr %22, align 4, !tbaa !12
  %68 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %22) #5
  %69 = load i32, ptr %68, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %67, i32 noundef %69) #5
  %70 = load i32, ptr %22, align 4, !tbaa !12
  %71 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %22) #5
  %72 = load i32, ptr %71, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %70, i32 noundef %72) #5
  %73 = load i32, ptr %26, align 16, !tbaa !12
  %74 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %26) #5
  %75 = load i32, ptr %74, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %73, i32 noundef %75) #5
  %76 = load i32, ptr %26, align 16, !tbaa !12
  %77 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %26) #5
  %78 = load i32, ptr %77, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %76, i32 noundef %78) #5
  %79 = load i32, ptr %30, align 4, !tbaa !12
  %80 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %30) #5
  %81 = load i32, ptr %80, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %79, i32 noundef %81) #5
  %82 = load i32, ptr %30, align 4, !tbaa !12
  %83 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %30) #5
  %84 = load i32, ptr %83, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %82, i32 noundef %84) #5
  %85 = load i32, ptr %34, align 8, !tbaa !12
  %86 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %34) #5
  %87 = load i32, ptr %86, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %85, i32 noundef %87) #5
  %88 = load i32, ptr %34, align 8, !tbaa !12
  %89 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %34) #5
  %90 = load i32, ptr %89, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %88, i32 noundef %90) #5
  %91 = load i32, ptr %38, align 4, !tbaa !12
  %92 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %38) #5
  %93 = load i32, ptr %92, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %91, i32 noundef %93) #5
  %94 = load i32, ptr %38, align 4, !tbaa !12
  %95 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %38) #5
  %96 = load i32, ptr %95, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %94, i32 noundef %96) #5
  %97 = load i32, ptr %42, align 16, !tbaa !12
  %98 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %42) #5
  %99 = load i32, ptr %98, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %97, i32 noundef %99) #5
  %100 = load i32, ptr %42, align 16, !tbaa !12
  %101 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %42) #5
  %102 = load i32, ptr %101, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %100, i32 noundef %102) #5
  %103 = load i32, ptr %46, align 4, !tbaa !12
  %104 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %46) #5
  %105 = load i32, ptr %104, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 312, ptr noundef null, i32 noundef %103, i32 noundef %105) #5
  %106 = load i32, ptr %46, align 4, !tbaa !12
  %107 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %46) #5
  %108 = load i32, ptr %107, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 313, ptr noundef null, i32 noundef %106, i32 noundef %108) #5
  %109 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %2) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %109) #5
  %110 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %2) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %110) #5
  %111 = getelementptr inbounds i8, ptr %2, i64 4
  %112 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %111) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %112) #5
  %113 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %111) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %113) #5
  %114 = getelementptr inbounds i8, ptr %2, i64 8
  %115 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %114) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %115) #5
  %116 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %114) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %116) #5
  %117 = getelementptr inbounds i8, ptr %2, i64 12
  %118 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %117) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %118) #5
  %119 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %117) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %119) #5
  %120 = getelementptr inbounds i8, ptr %2, i64 16
  %121 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %120) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %121) #5
  %122 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %120) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %122) #5
  %123 = getelementptr inbounds i8, ptr %2, i64 20
  %124 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %123) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %124) #5
  %125 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %123) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %125) #5
  %126 = getelementptr inbounds i8, ptr %2, i64 24
  %127 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %126) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %127) #5
  %128 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %126) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %128) #5
  %129 = getelementptr inbounds i8, ptr %2, i64 28
  %130 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %129) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %130) #5
  %131 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %129) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %131) #5
  %132 = getelementptr inbounds i8, ptr %2, i64 32
  %133 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %132) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %133) #5
  %134 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %132) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %134) #5
  %135 = getelementptr inbounds i8, ptr %2, i64 36
  %136 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %135) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %136) #5
  %137 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %135) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %137) #5
  %138 = getelementptr inbounds i8, ptr %2, i64 40
  %139 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %138) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %139) #5
  %140 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %138) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %140) #5
  %141 = getelementptr inbounds i8, ptr %2, i64 44
  %142 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %141) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %142) #5
  %143 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %141) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %143) #5
  %144 = getelementptr inbounds i8, ptr %2, i64 48
  %145 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %144) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %145) #5
  %146 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %144) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %146) #5
  %147 = getelementptr inbounds i8, ptr %2, i64 52
  %148 = call ptr @binaryHeapGet(ptr noundef %3, ptr noundef nonnull %147) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 317, ptr noundef null, ptr noundef null, ptr noundef %148) #5
  %149 = call ptr @binaryHeapGet(ptr noundef %4, ptr noundef nonnull %147) #5
  call void @CuAssertPtrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 318, ptr noundef null, ptr noundef null, ptr noundef %149) #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 ptr @binaryHeapGet(ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: 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