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

; 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 [144 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

declare ptr @trieInitialization(...) #1

declare void @destroyTrie(ptr noundef) #1

declare void @trieAddWord(ptr noundef, ptr noundef) #1

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @trieContains(ptr noundef, ptr noundef) #1

declare i32 @arrayListGetLength(ptr noundef) #1

declare void @destroyArrayList(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @testTrieSuggestion(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %6 = call ptr (...) @trieInitialization()
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = call ptr @trieSuggestion(ptr noundef null, ptr noundef null, i32 noundef 0)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.ErrorTestStruct, ptr %9, i32 0, i32 0
  %11 = load i32, ptr %10, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %8, ptr noundef @.str, i32 noundef 265, ptr noundef null, i32 noundef -83386157, i32 noundef %11)
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call ptr @trieSuggestion(ptr noundef %12, ptr noundef null, i32 noundef 0)
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ErrorTestStruct, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %14, ptr noundef @.str, i32 noundef 268, ptr noundef null, i32 noundef -83384987, i32 noundef %17)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @trieSuggestion(ptr noundef %18, ptr noundef @.str.2, i32 noundef 0)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ErrorTestStruct, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %20, ptr noundef @.str, i32 noundef 271, ptr noundef null, i32 noundef -83384987, i32 noundef %23)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %24, ptr noundef @.str.2)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %25, ptr noundef @.str.4)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %26, ptr noundef @.str.5)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %27, ptr noundef @.str.6)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %28, ptr noundef @.str.7)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %29, ptr noundef @.str.8)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %30, ptr noundef @.str.9)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %31, ptr noundef @.str.3)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %32, ptr noundef @.str.10)
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %33, ptr noundef @.str.11)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %34, ptr noundef @.str.12)
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %35, ptr noundef @.str.13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call ptr @trieSuggestion(ptr noundef %36, ptr noundef @.str.8, i32 noundef 3)
  store ptr %37, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call i32 @arrayListGetLength(ptr noundef %39)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %38, ptr noundef @.str, i32 noundef 288, ptr noundef null, i32 noundef 3, i32 noundef %40)
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call ptr @arrayListGet(ptr noundef %42, i32 noundef 0)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %41, ptr noundef @.str, i32 noundef 289, ptr noundef null, ptr noundef @.str.8, ptr noundef %43)
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call ptr @arrayListGet(ptr noundef %45, i32 noundef 1)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %44, ptr noundef @.str, i32 noundef 290, ptr noundef null, ptr noundef @.str.13, ptr noundef %46)
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = call ptr @arrayListGet(ptr noundef %48, i32 noundef 2)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %47, ptr noundef @.str, i32 noundef 291, ptr noundef null, ptr noundef @.str.9, ptr noundef %49)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  call void @destroyArrayList(ptr noundef %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = call ptr @trieSuggestion(ptr noundef %51, ptr noundef @.str.18, i32 noundef 4)
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call i32 @arrayListGetLength(ptr noundef %54)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %53, ptr noundef @.str, i32 noundef 296, ptr noundef null, i32 noundef 4, i32 noundef %55)
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = call ptr @arrayListGet(ptr noundef %57, i32 noundef 0)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %56, ptr noundef @.str, i32 noundef 297, ptr noundef null, ptr noundef @.str.4, ptr noundef %58)
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call ptr @arrayListGet(ptr noundef %60, i32 noundef 1)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %59, ptr noundef @.str, i32 noundef 298, ptr noundef null, ptr noundef @.str.3, ptr noundef %61)
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = call ptr @arrayListGet(ptr noundef %63, i32 noundef 2)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %62, ptr noundef @.str, i32 noundef 299, ptr noundef null, ptr noundef @.str.2, ptr noundef %64)
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call ptr @arrayListGet(ptr noundef %66, i32 noundef 3)
  call void @CuAssertStrEquals_LineMsg(ptr noundef %65, ptr noundef @.str, i32 noundef 300, ptr noundef null, ptr noundef @.str.10, ptr noundef %67)
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  call void @destroyArrayList(ptr noundef %68)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = call ptr @trieSuggestion(ptr noundef %69, ptr noundef @.str.14, i32 noundef 20)
  store ptr %70, ptr %4, align 8, !tbaa !5
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = call i32 @arrayListGetLength(ptr noundef %72)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %71, ptr noundef @.str, i32 noundef 305, ptr noundef null, i32 noundef 12, i32 noundef %73)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %74

74:                                               ; preds = %87, %1
  %75 = load i32, ptr %5, align 4, !tbaa !12
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = call i32 @arrayListGetLength(ptr noundef %76)
  %78 = icmp slt i32 %75, %77
  br i1 %78, label %80, label %79

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

80:                                               ; preds = %74
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !12
  %85 = call ptr @arrayListGet(ptr noundef %83, i32 noundef %84)
  %86 = call i32 @trieContains(ptr noundef %82, ptr noundef %85)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %81, ptr noundef @.str, i32 noundef 307, ptr noundef null, i32 noundef 1, i32 noundef %86)
  br label %87

87:                                               ; preds = %80
  %88 = load i32, ptr %5, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %5, align 4, !tbaa !12
  br label %74, !llvm.loop !13

90:                                               ; preds = %79
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  call void @destroyArrayList(ptr noundef %91)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyTrie(ptr noundef %92)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare ptr @trieSuggestion(ptr noundef, ptr noundef, i32 noundef) #1

declare void @CuAssertStrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @arrayListGet(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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"}


; 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 [144 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1

declare ptr @trieInitialization(...) local_unnamed_addr #0

declare void @destroyTrie(ptr noundef) local_unnamed_addr #0

declare void @trieAddWord(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @trieContains(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @arrayListGetLength(ptr noundef) local_unnamed_addr #0

declare void @destroyArrayList(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @testTrieSuggestion(ptr noundef %0) local_unnamed_addr #1 {
  %2 = tail call ptr (...) @trieInitialization() #2
  %3 = tail call ptr @trieSuggestion(ptr noundef null, ptr noundef null, i32 noundef 0) #2
  %4 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %5 = load i32, ptr %4, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 265, ptr noundef null, i32 noundef -83386157, i32 noundef %5) #2
  %6 = tail call ptr @trieSuggestion(ptr noundef %2, ptr noundef null, i32 noundef 0) #2
  %7 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %8 = load i32, ptr %7, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 268, ptr noundef null, i32 noundef -83384987, i32 noundef %8) #2
  %9 = tail call ptr @trieSuggestion(ptr noundef %2, ptr noundef nonnull @.str.2, i32 noundef 0) #2
  %10 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %11 = load i32, ptr %10, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 271, ptr noundef null, i32 noundef -83384987, i32 noundef %11) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.2) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.4) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.5) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.6) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.7) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.8) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.9) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.3) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.10) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.11) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.12) #2
  tail call void @trieAddWord(ptr noundef %2, ptr noundef nonnull @.str.13) #2
  %12 = tail call ptr @trieSuggestion(ptr noundef %2, ptr noundef nonnull @.str.8, i32 noundef 3) #2
  %13 = tail call i32 @arrayListGetLength(ptr noundef %12) #2
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 288, ptr noundef null, i32 noundef 3, i32 noundef %13) #2
  %14 = tail call ptr @arrayListGet(ptr noundef %12, i32 noundef 0) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 289, ptr noundef null, ptr noundef nonnull @.str.8, ptr noundef %14) #2
  %15 = tail call ptr @arrayListGet(ptr noundef %12, i32 noundef 1) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 290, ptr noundef null, ptr noundef nonnull @.str.13, ptr noundef %15) #2
  %16 = tail call ptr @arrayListGet(ptr noundef %12, i32 noundef 2) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 291, ptr noundef null, ptr noundef nonnull @.str.9, ptr noundef %16) #2
  tail call void @destroyArrayList(ptr noundef %12) #2
  %17 = tail call ptr @trieSuggestion(ptr noundef %2, ptr noundef nonnull @.str.18, i32 noundef 4) #2
  %18 = tail call i32 @arrayListGetLength(ptr noundef %17) #2
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 296, ptr noundef null, i32 noundef 4, i32 noundef %18) #2
  %19 = tail call ptr @arrayListGet(ptr noundef %17, i32 noundef 0) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 297, ptr noundef null, ptr noundef nonnull @.str.4, ptr noundef %19) #2
  %20 = tail call ptr @arrayListGet(ptr noundef %17, i32 noundef 1) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 298, ptr noundef null, ptr noundef nonnull @.str.3, ptr noundef %20) #2
  %21 = tail call ptr @arrayListGet(ptr noundef %17, i32 noundef 2) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 299, ptr noundef null, ptr noundef nonnull @.str.2, ptr noundef %21) #2
  %22 = tail call ptr @arrayListGet(ptr noundef %17, i32 noundef 3) #2
  tail call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 300, ptr noundef null, ptr noundef nonnull @.str.10, ptr noundef %22) #2
  tail call void @destroyArrayList(ptr noundef %17) #2
  %23 = tail call ptr @trieSuggestion(ptr noundef %2, ptr noundef nonnull @.str.14, i32 noundef 20) #2
  %24 = tail call i32 @arrayListGetLength(ptr noundef %23) #2
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 305, ptr noundef null, i32 noundef 12, i32 noundef %24) #2
  %25 = tail call i32 @arrayListGetLength(ptr noundef %23) #2
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %1
  tail call void @destroyArrayList(ptr noundef %23) #2
  tail call void @destroyTrie(ptr noundef %2) #2
  ret void

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.050 = phi i32 [ %29, %.lr.ph ], [ 0, %1 ]
  %27 = tail call ptr @arrayListGet(ptr noundef %23, i32 noundef %.050) #2
  %28 = tail call i32 @trieContains(ptr noundef %2, ptr noundef %27) #2
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 307, ptr noundef null, i32 noundef 1, i32 noundef %28) #2
  %29 = add nuw nsw i32 %.050, 1
  %30 = tail call i32 @arrayListGetLength(ptr noundef %23) #2
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !12
}

declare ptr @trieSuggestion(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @CuAssertStrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @arrayListGet(ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #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 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 #2 = { 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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass