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

; 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.SplayTree = type { ptr, i32, ptr, ptr }
%struct.SplayNode = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [154 x i8], align 1
@__const.testSplayTreeInsert2.values = external hidden unnamed_addr constant [11 x i32], align 16
@__const.testSplayTreeInsert2.values2 = external hidden unnamed_addr constant [8 x i32], align 16

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

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

declare ptr @splayTreeInitialization(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 @splayTreeInsert(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

declare void @destroySplayTree(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @testSplayTreeInsert2(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [11 x i32], align 16
  %5 = alloca [8 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = call ptr @splayTreeInitialization(ptr noundef @free, ptr noundef @compareIntPointersSTT)
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 44, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.testSplayTreeInsert2.values, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.testSplayTreeInsert2.values2, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %32, %1
  %11 = load i32, ptr %6, align 4, !tbaa !9
  %12 = icmp slt i32 %11, 11
  br i1 %12, label %14, label %13

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

14:                                               ; preds = %10
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = call ptr @generateIntPointerSTT(i32 noundef %19)
  call void @splayTreeInsert(ptr noundef %15, ptr noundef %20)
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.SplayTree, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %struct.SplayNode, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = load i32, ptr %30, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %21, ptr noundef @.str, i32 noundef 138, ptr noundef null, i32 noundef %25, i32 noundef %31)
  br label %32

32:                                               ; preds = %14
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !9
  br label %10, !llvm.loop !15

35:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 10, ptr %7, align 4, !tbaa !9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @splayTreeDelete(ptr noundef %36, ptr noundef %7)
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.SplayTree, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %40, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %37, ptr noundef @.str, i32 noundef 146, ptr noundef null, i32 noundef 1, i32 noundef %41)
  store i32 25, ptr %7, align 4, !tbaa !9
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @splayTreeDelete(ptr noundef %42, ptr noundef %7)
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SplayTree, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %46, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %43, ptr noundef @.str, i32 noundef 150, ptr noundef null, i32 noundef 1, i32 noundef %47)
  store i32 5, ptr %7, align 4, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  call void @splayTreeDelete(ptr noundef %48, ptr noundef %7)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SplayTree, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %52, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %49, ptr noundef @.str, i32 noundef 154, ptr noundef null, i32 noundef 1, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %76, %35
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = icmp slt i32 %55, 8
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [8 x i32], ptr %5, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = call ptr @generateIntPointerSTT(i32 noundef %63)
  call void @splayTreeInsert(ptr noundef %59, ptr noundef %64)
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [8 x i32], ptr %5, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SplayTree, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.SplayNode, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i32, ptr %74, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %65, ptr noundef @.str, i32 noundef 159, ptr noundef null, i32 noundef %69, i32 noundef %75)
  br label %76

76:                                               ; preds = %58
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %8, align 4, !tbaa !9
  br label %54, !llvm.loop !17

79:                                               ; preds = %57
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.SplayTree, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %83, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %80, ptr noundef @.str, i32 noundef 162, ptr noundef null, i32 noundef 1, i32 noundef %84)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroySplayTree(ptr noundef %85)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

declare void @splayTreeDelete(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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"SplayTree", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !6, i64 0}
!14 = !{!"SplayNode", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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 [154 x i8], align 1
@__const.testSplayTreeInsert2.values = external hidden unnamed_addr constant [11 x i32], align 16
@__const.testSplayTreeInsert2.values2 = external hidden unnamed_addr constant [8 x i32], align 16

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

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

declare ptr @splayTreeInitialization(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 @splayTreeInsert(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @destroySplayTree(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @testSplayTreeInsert2(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = tail call ptr @splayTreeInitialization(ptr noundef nonnull @free, ptr noundef nonnull @compareIntPointersSTT) #4
  %4 = load i32, ptr @__const.testSplayTreeInsert2.values, align 16, !tbaa !5
  %5 = tail call ptr @generateIntPointerSTT(i32 noundef %4)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %5) #4
  %6 = load ptr, ptr %3, align 8, !tbaa !9
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = load i32, ptr %7, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %4, i32 noundef %8) #4
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 4), align 4, !tbaa !5
  %10 = tail call ptr @generateIntPointerSTT(i32 noundef %9)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %10) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !9
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = load i32, ptr %12, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %9, i32 noundef %13) #4
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 8), align 8, !tbaa !5
  %15 = tail call ptr @generateIntPointerSTT(i32 noundef %14)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %15) #4
  %16 = load ptr, ptr %3, align 8, !tbaa !9
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = load i32, ptr %17, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %14, i32 noundef %18) #4
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 12), align 4, !tbaa !5
  %20 = tail call ptr @generateIntPointerSTT(i32 noundef %19)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %20) #4
  %21 = load ptr, ptr %3, align 8, !tbaa !9
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  %23 = load i32, ptr %22, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %19, i32 noundef %23) #4
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 16), align 16, !tbaa !5
  %25 = tail call ptr @generateIntPointerSTT(i32 noundef %24)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %25) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %28 = load i32, ptr %27, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %24, i32 noundef %28) #4
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 20), align 4, !tbaa !5
  %30 = tail call ptr @generateIntPointerSTT(i32 noundef %29)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %30) #4
  %31 = load ptr, ptr %3, align 8, !tbaa !9
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = load i32, ptr %32, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %29, i32 noundef %33) #4
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 24), align 8, !tbaa !5
  %35 = tail call ptr @generateIntPointerSTT(i32 noundef %34)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %35) #4
  %36 = load ptr, ptr %3, align 8, !tbaa !9
  %37 = load ptr, ptr %36, align 8, !tbaa !12
  %38 = load i32, ptr %37, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %34, i32 noundef %38) #4
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 28), align 4, !tbaa !5
  %40 = tail call ptr @generateIntPointerSTT(i32 noundef %39)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %40) #4
  %41 = load ptr, ptr %3, align 8, !tbaa !9
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  %43 = load i32, ptr %42, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %39, i32 noundef %43) #4
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 32), align 16, !tbaa !5
  %45 = tail call ptr @generateIntPointerSTT(i32 noundef %44)
  tail call void @splayTreeInsert(ptr noundef %3, ptr noundef %45) #4
  %46 = load ptr, ptr %3, align 8, !tbaa !9
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  %48 = load i32, ptr %47, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %44, i32 noundef %48) #4
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 36), align 4, !tbaa !5
  %50 = tail call ptr @generateIntPointerSTT(i32 noundef %49)
  tail call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %50) #4
  %51 = load ptr, ptr %3, align 8, !tbaa !9
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  %53 = load i32, ptr %52, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %49, i32 noundef %53) #4
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values, i64 40), align 8, !tbaa !5
  %55 = tail call ptr @generateIntPointerSTT(i32 noundef %54)
  tail call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %55) #4
  %56 = load ptr, ptr %3, align 8, !tbaa !9
  %57 = load ptr, ptr %56, align 8, !tbaa !12
  %58 = load i32, ptr %57, align 4, !tbaa !5
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 138, ptr noundef null, i32 noundef %54, i32 noundef %58) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  store i32 10, ptr %2, align 4, !tbaa !5
  call void @splayTreeDelete(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  %59 = load ptr, ptr %3, align 8, !tbaa !9
  %60 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %59, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 146, ptr noundef null, i32 noundef 1, i32 noundef %60) #4
  store i32 25, ptr %2, align 4, !tbaa !5
  call void @splayTreeDelete(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  %61 = load ptr, ptr %3, align 8, !tbaa !9
  %62 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %61, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 150, ptr noundef null, i32 noundef 1, i32 noundef %62) #4
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @splayTreeDelete(ptr noundef nonnull %3, ptr noundef nonnull %2) #4
  %63 = load ptr, ptr %3, align 8, !tbaa !9
  %64 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %63, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 154, ptr noundef null, i32 noundef 1, i32 noundef %64) #4
  %65 = load i32, ptr @__const.testSplayTreeInsert2.values2, align 16, !tbaa !5
  %66 = call ptr @generateIntPointerSTT(i32 noundef %65)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %66) #4
  %67 = load ptr, ptr %3, align 8, !tbaa !9
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = load i32, ptr %68, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %65, i32 noundef %69) #4
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 4), align 4, !tbaa !5
  %71 = call ptr @generateIntPointerSTT(i32 noundef %70)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %71) #4
  %72 = load ptr, ptr %3, align 8, !tbaa !9
  %73 = load ptr, ptr %72, align 8, !tbaa !12
  %74 = load i32, ptr %73, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %70, i32 noundef %74) #4
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 8), align 8, !tbaa !5
  %76 = call ptr @generateIntPointerSTT(i32 noundef %75)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %76) #4
  %77 = load ptr, ptr %3, align 8, !tbaa !9
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  %79 = load i32, ptr %78, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %75, i32 noundef %79) #4
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 12), align 4, !tbaa !5
  %81 = call ptr @generateIntPointerSTT(i32 noundef %80)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %81) #4
  %82 = load ptr, ptr %3, align 8, !tbaa !9
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  %84 = load i32, ptr %83, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %80, i32 noundef %84) #4
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 16), align 16, !tbaa !5
  %86 = call ptr @generateIntPointerSTT(i32 noundef %85)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %86) #4
  %87 = load ptr, ptr %3, align 8, !tbaa !9
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = load i32, ptr %88, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %85, i32 noundef %89) #4
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 20), align 4, !tbaa !5
  %91 = call ptr @generateIntPointerSTT(i32 noundef %90)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %91) #4
  %92 = load ptr, ptr %3, align 8, !tbaa !9
  %93 = load ptr, ptr %92, align 8, !tbaa !12
  %94 = load i32, ptr %93, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %90, i32 noundef %94) #4
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 24), align 8, !tbaa !5
  %96 = call ptr @generateIntPointerSTT(i32 noundef %95)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %96) #4
  %97 = load ptr, ptr %3, align 8, !tbaa !9
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  %99 = load i32, ptr %98, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %95, i32 noundef %99) #4
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @__const.testSplayTreeInsert2.values2, i64 28), align 4, !tbaa !5
  %101 = call ptr @generateIntPointerSTT(i32 noundef %100)
  call void @splayTreeInsert(ptr noundef nonnull %3, ptr noundef %101) #4
  %102 = load ptr, ptr %3, align 8, !tbaa !9
  %103 = load ptr, ptr %102, align 8, !tbaa !12
  %104 = load i32, ptr %103, align 4, !tbaa !5
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 159, ptr noundef null, i32 noundef %100, i32 noundef %104) #4
  %105 = load ptr, ptr %3, align 8, !tbaa !9
  %106 = call i32 @checkIfValidSplayTreeSTT(ptr noundef %105, ptr noundef null)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 162, ptr noundef null, i32 noundef 1, i32 noundef %106) #4
  call void @destroySplayTree(ptr noundef nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  ret void
}

declare void @splayTreeDelete(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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"SplayTree", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"SplayNode", !11, i64 0, !11, i64 8, !11, i64 16}


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