; LLVM IR from bartobri/data-structures-c :: symbol-table/array-key-index-first-class (main)

; 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.anon = type { i32, i32 }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %5 = call i64 @time(ptr noundef null) #5
  %6 = trunc i64 %5 to i32
  call void @srand(i32 noundef %6) #5
  %7 = call ptr @STinit(i32 noundef 20)
  store ptr %7, ptr %4, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %22, %0
  %9 = load i32, ptr %2, align 4, !tbaa !9
  %10 = icmp slt i32 %9, 20
  br i1 %10, label %11, label %25

11:                                               ; preds = %8
  %12 = call noalias ptr @malloc(i64 noundef 8) #6
  store ptr %12, ptr %3, align 8, !tbaa !5
  %13 = load i32, ptr %2, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.anon, ptr %14, i32 0, i32 0
  store i32 %13, ptr %15, align 4, !tbaa !11
  %16 = call i32 @rand() #5
  %17 = srem i32 %16, 1000
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.anon, ptr %18, i32 0, i32 1
  store i32 %17, ptr %19, align 4, !tbaa !13
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  call void @STinsert(ptr noundef %20, ptr noundef %21)
  br label %22

22:                                               ; preds = %11
  %23 = load i32, ptr %2, align 4, !tbaa !9
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %2, align 4, !tbaa !9
  br label %8, !llvm.loop !14

25:                                               ; preds = %8
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call i32 @STcount(ptr noundef %26)
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %43, %25
  %30 = load i32, ptr %2, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 20
  br i1 %31, label %32, label %46

32:                                               ; preds = %29
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !9
  %35 = call ptr @STsearch(ptr noundef %33, i32 noundef %34)
  store ptr %35, ptr %3, align 8, !tbaa !5
  %36 = load i32, ptr %2, align 4, !tbaa !9
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.anon, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %36, i32 noundef %39)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @STdelete(ptr noundef %41, ptr noundef %42)
  br label %43

43:                                               ; preds = %32
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %2, align 4, !tbaa !9
  br label %29, !llvm.loop !16

46:                                               ; preds = %29
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = call i32 @STcount(ptr noundef %47)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %48)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

declare ptr @STinit(i32 noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare i32 @rand() #2

declare void @STinsert(ptr noundef, ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare i32 @STcount(ptr noundef) #3

declare ptr @STsearch(ptr noundef, i32 noundef) #3

declare void @STdelete(ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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 = { 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 #3 = { "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 allocsize(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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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 [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i64 @time(ptr noundef null) #5
  %2 = trunc i64 %1 to i32
  tail call void @srand(i32 noundef %2) #5
  %3 = tail call ptr @STinit(i32 noundef 20) #5
  %4 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %5 = tail call i32 @rand() #5
  %6 = srem i32 %5, 1000
  %7 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %6, ptr %7, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %4) #5
  %8 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  %9 = tail call i32 @rand() #5
  %10 = srem i32 %9, 1000
  %11 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %10, ptr %11, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %8) #5
  %12 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 2, ptr %12, align 4, !tbaa !5
  %13 = tail call i32 @rand() #5
  %14 = srem i32 %13, 1000
  %15 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %14, ptr %15, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %12) #5
  %16 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 3, ptr %16, align 4, !tbaa !5
  %17 = tail call i32 @rand() #5
  %18 = srem i32 %17, 1000
  %19 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 %18, ptr %19, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %16) #5
  %20 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 4, ptr %20, align 4, !tbaa !5
  %21 = tail call i32 @rand() #5
  %22 = srem i32 %21, 1000
  %23 = getelementptr inbounds i8, ptr %20, i64 4
  store i32 %22, ptr %23, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %20) #5
  %24 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 5, ptr %24, align 4, !tbaa !5
  %25 = tail call i32 @rand() #5
  %26 = srem i32 %25, 1000
  %27 = getelementptr inbounds i8, ptr %24, i64 4
  store i32 %26, ptr %27, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %24) #5
  %28 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 6, ptr %28, align 4, !tbaa !5
  %29 = tail call i32 @rand() #5
  %30 = srem i32 %29, 1000
  %31 = getelementptr inbounds i8, ptr %28, i64 4
  store i32 %30, ptr %31, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %28) #5
  %32 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 7, ptr %32, align 4, !tbaa !5
  %33 = tail call i32 @rand() #5
  %34 = srem i32 %33, 1000
  %35 = getelementptr inbounds i8, ptr %32, i64 4
  store i32 %34, ptr %35, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %32) #5
  %36 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 8, ptr %36, align 4, !tbaa !5
  %37 = tail call i32 @rand() #5
  %38 = srem i32 %37, 1000
  %39 = getelementptr inbounds i8, ptr %36, i64 4
  store i32 %38, ptr %39, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %36) #5
  %40 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 9, ptr %40, align 4, !tbaa !5
  %41 = tail call i32 @rand() #5
  %42 = srem i32 %41, 1000
  %43 = getelementptr inbounds i8, ptr %40, i64 4
  store i32 %42, ptr %43, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %40) #5
  %44 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 10, ptr %44, align 4, !tbaa !5
  %45 = tail call i32 @rand() #5
  %46 = srem i32 %45, 1000
  %47 = getelementptr inbounds i8, ptr %44, i64 4
  store i32 %46, ptr %47, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %44) #5
  %48 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 11, ptr %48, align 4, !tbaa !5
  %49 = tail call i32 @rand() #5
  %50 = srem i32 %49, 1000
  %51 = getelementptr inbounds i8, ptr %48, i64 4
  store i32 %50, ptr %51, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %48) #5
  %52 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 12, ptr %52, align 4, !tbaa !5
  %53 = tail call i32 @rand() #5
  %54 = srem i32 %53, 1000
  %55 = getelementptr inbounds i8, ptr %52, i64 4
  store i32 %54, ptr %55, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %52) #5
  %56 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 13, ptr %56, align 4, !tbaa !5
  %57 = tail call i32 @rand() #5
  %58 = srem i32 %57, 1000
  %59 = getelementptr inbounds i8, ptr %56, i64 4
  store i32 %58, ptr %59, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %56) #5
  %60 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 14, ptr %60, align 4, !tbaa !5
  %61 = tail call i32 @rand() #5
  %62 = srem i32 %61, 1000
  %63 = getelementptr inbounds i8, ptr %60, i64 4
  store i32 %62, ptr %63, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %60) #5
  %64 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 15, ptr %64, align 4, !tbaa !5
  %65 = tail call i32 @rand() #5
  %66 = srem i32 %65, 1000
  %67 = getelementptr inbounds i8, ptr %64, i64 4
  store i32 %66, ptr %67, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %64) #5
  %68 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 16, ptr %68, align 4, !tbaa !5
  %69 = tail call i32 @rand() #5
  %70 = srem i32 %69, 1000
  %71 = getelementptr inbounds i8, ptr %68, i64 4
  store i32 %70, ptr %71, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %68) #5
  %72 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 17, ptr %72, align 4, !tbaa !5
  %73 = tail call i32 @rand() #5
  %74 = srem i32 %73, 1000
  %75 = getelementptr inbounds i8, ptr %72, i64 4
  store i32 %74, ptr %75, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %72) #5
  %76 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 18, ptr %76, align 4, !tbaa !5
  %77 = tail call i32 @rand() #5
  %78 = srem i32 %77, 1000
  %79 = getelementptr inbounds i8, ptr %76, i64 4
  store i32 %78, ptr %79, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %76) #5
  %80 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  store i32 19, ptr %80, align 4, !tbaa !5
  %81 = tail call i32 @rand() #5
  %82 = srem i32 %81, 1000
  %83 = getelementptr inbounds i8, ptr %80, i64 4
  store i32 %82, ptr %83, align 4, !tbaa !10
  tail call void @STinsert(ptr noundef %3, ptr noundef nonnull %80) #5
  %84 = tail call i32 @STcount(ptr noundef %3) #5
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %84)
  %86 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 0) #5
  %87 = getelementptr inbounds i8, ptr %86, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !10
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 0, i32 noundef %88)
  tail call void @STdelete(ptr noundef %3, ptr noundef %86) #5
  %90 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 1) #5
  %91 = getelementptr inbounds i8, ptr %90, i64 4
  %92 = load i32, ptr %91, align 4, !tbaa !10
  %93 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, i32 noundef %92)
  tail call void @STdelete(ptr noundef %3, ptr noundef %90) #5
  %94 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 2) #5
  %95 = getelementptr inbounds i8, ptr %94, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !10
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, i32 noundef %96)
  tail call void @STdelete(ptr noundef %3, ptr noundef %94) #5
  %98 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 3) #5
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !10
  %101 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 3, i32 noundef %100)
  tail call void @STdelete(ptr noundef %3, ptr noundef %98) #5
  %102 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 4) #5
  %103 = getelementptr inbounds i8, ptr %102, i64 4
  %104 = load i32, ptr %103, align 4, !tbaa !10
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 4, i32 noundef %104)
  tail call void @STdelete(ptr noundef %3, ptr noundef %102) #5
  %106 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 5) #5
  %107 = getelementptr inbounds i8, ptr %106, i64 4
  %108 = load i32, ptr %107, align 4, !tbaa !10
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 5, i32 noundef %108)
  tail call void @STdelete(ptr noundef %3, ptr noundef %106) #5
  %110 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 6) #5
  %111 = getelementptr inbounds i8, ptr %110, i64 4
  %112 = load i32, ptr %111, align 4, !tbaa !10
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 6, i32 noundef %112)
  tail call void @STdelete(ptr noundef %3, ptr noundef %110) #5
  %114 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 7) #5
  %115 = getelementptr inbounds i8, ptr %114, i64 4
  %116 = load i32, ptr %115, align 4, !tbaa !10
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 7, i32 noundef %116)
  tail call void @STdelete(ptr noundef %3, ptr noundef %114) #5
  %118 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 8) #5
  %119 = getelementptr inbounds i8, ptr %118, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !10
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 8, i32 noundef %120)
  tail call void @STdelete(ptr noundef %3, ptr noundef %118) #5
  %122 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 9) #5
  %123 = getelementptr inbounds i8, ptr %122, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !10
  %125 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 9, i32 noundef %124)
  tail call void @STdelete(ptr noundef %3, ptr noundef %122) #5
  %126 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 10) #5
  %127 = getelementptr inbounds i8, ptr %126, i64 4
  %128 = load i32, ptr %127, align 4, !tbaa !10
  %129 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 10, i32 noundef %128)
  tail call void @STdelete(ptr noundef %3, ptr noundef %126) #5
  %130 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 11) #5
  %131 = getelementptr inbounds i8, ptr %130, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !10
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 11, i32 noundef %132)
  tail call void @STdelete(ptr noundef %3, ptr noundef %130) #5
  %134 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 12) #5
  %135 = getelementptr inbounds i8, ptr %134, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !10
  %137 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 12, i32 noundef %136)
  tail call void @STdelete(ptr noundef %3, ptr noundef %134) #5
  %138 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 13) #5
  %139 = getelementptr inbounds i8, ptr %138, i64 4
  %140 = load i32, ptr %139, align 4, !tbaa !10
  %141 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 13, i32 noundef %140)
  tail call void @STdelete(ptr noundef %3, ptr noundef %138) #5
  %142 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 14) #5
  %143 = getelementptr inbounds i8, ptr %142, i64 4
  %144 = load i32, ptr %143, align 4, !tbaa !10
  %145 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 14, i32 noundef %144)
  tail call void @STdelete(ptr noundef %3, ptr noundef %142) #5
  %146 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 15) #5
  %147 = getelementptr inbounds i8, ptr %146, i64 4
  %148 = load i32, ptr %147, align 4, !tbaa !10
  %149 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 15, i32 noundef %148)
  tail call void @STdelete(ptr noundef %3, ptr noundef %146) #5
  %150 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 16) #5
  %151 = getelementptr inbounds i8, ptr %150, i64 4
  %152 = load i32, ptr %151, align 4, !tbaa !10
  %153 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 16, i32 noundef %152)
  tail call void @STdelete(ptr noundef %3, ptr noundef %150) #5
  %154 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 17) #5
  %155 = getelementptr inbounds i8, ptr %154, i64 4
  %156 = load i32, ptr %155, align 4, !tbaa !10
  %157 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 17, i32 noundef %156)
  tail call void @STdelete(ptr noundef %3, ptr noundef %154) #5
  %158 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 18) #5
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  %160 = load i32, ptr %159, align 4, !tbaa !10
  %161 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 18, i32 noundef %160)
  tail call void @STdelete(ptr noundef %3, ptr noundef %158) #5
  %162 = tail call ptr @STsearch(ptr noundef %3, i32 noundef 19) #5
  %163 = getelementptr inbounds i8, ptr %162, i64 4
  %164 = load i32, ptr %163, align 4, !tbaa !10
  %165 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 19, i32 noundef %164)
  tail call void @STdelete(ptr noundef %3, ptr noundef %162) #5
  %166 = tail call i32 @STcount(ptr noundef %3) #5
  %167 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %166)
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #1

declare ptr @STinit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare i32 @STcount(ptr noundef) local_unnamed_addr #2

declare ptr @STsearch(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @STdelete(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 = { 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 #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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { nofree 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}


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