; 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 }
%struct.Trie = type { ptr }
%struct.TrieNode = type { ptr, i8, i32 }

@.str = external hidden unnamed_addr constant [144 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 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
@__const.testTrieAddWord.indicesArr = external hidden unnamed_addr constant [4 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@__const.testTrieAddWord.indicesArr2 = external hidden unnamed_addr constant [4 x i32], align 16

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

declare ptr @trieInitialization(...) #2

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

declare void @destroyTrie(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @testTrieAddWord(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [4 x i32], align 16
  %5 = alloca [26 x i32], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [4 x i32], align 16
  %9 = alloca [26 x i32], align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %10 = call ptr (...) @trieInitialization()
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef null, ptr noundef null)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ErrorTestStruct, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %11, ptr noundef @.str, i32 noundef 64, ptr noundef null, i32 noundef -83386157, i32 noundef %14)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %15, ptr noundef null)
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ErrorTestStruct, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %16, ptr noundef @.str, i32 noundef 67, ptr noundef null, i32 noundef -83384987, i32 noundef %19)
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %20, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.testTrieAddWord.indicesArr, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 104, ptr %5) #5
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Trie, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  store ptr %23, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %24

24:                                               ; preds = %29, %1
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i32 @hasNoChildrenTrT(ptr noundef %25)
  %27 = icmp ne i32 %26, 0
  %28 = xor i1 %27, true
  br i1 %28, label %29, label %54

29:                                               ; preds = %24
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  %33 = zext i1 %32 to i32
  call void @CuAssert_Line(ptr noundef %30, ptr noundef @.str, i32 noundef 78, ptr noundef @.str.1, i32 noundef %33)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.TrieNode, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = load i32, ptr %7, align 4, !tbaa !14
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %7, align 4, !tbaa !14
  %39 = sext i32 %37 to i64
  %40 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds ptr, ptr %36, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TrieNode, ptr %45, i32 0, i32 1
  %47 = load i8, ptr %46, align 8, !tbaa !17
  %48 = sext i8 %47 to i32
  %49 = sub nsw i32 %48, 97
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [26 x i32], ptr %5, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !14
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !14
  br label %24, !llvm.loop !18

54:                                               ; preds = %24
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TrieNode, ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 4, !tbaa !20
  call void @CuAssertIntEquals_LineMsg(ptr noundef %55, ptr noundef @.str, i32 noundef 83, ptr noundef null, i32 noundef 1, i32 noundef %58)
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds [26 x i32], ptr %5, i64 0, i64 0
  %61 = call i32 @checkOnlyWordCharactersExistInTheArrTrT(ptr noundef %60, ptr noundef @.str.2)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %59, ptr noundef @.str, i32 noundef 84, ptr noundef null, i32 noundef 1, i32 noundef %61)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @trieAddWord(ptr noundef %62, ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.testTrieAddWord.indicesArr2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #5
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 104, i1 false)
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Trie, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  store ptr %65, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %66

66:                                               ; preds = %71, %54
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = call i32 @hasNoChildrenTrT(ptr noundef %67)
  %69 = icmp ne i32 %68, 0
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %96

71:                                               ; preds = %66
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  %75 = zext i1 %74 to i32
  call void @CuAssert_Line(ptr noundef %72, ptr noundef @.str, i32 noundef 96, ptr noundef @.str.1, i32 noundef %75)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TrieNode, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = load i32, ptr %7, align 4, !tbaa !14
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %7, align 4, !tbaa !14
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !14
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %78, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  store ptr %86, ptr %6, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TrieNode, ptr %87, i32 0, i32 1
  %89 = load i8, ptr %88, align 8, !tbaa !17
  %90 = sext i8 %89 to i32
  %91 = sub nsw i32 %90, 97
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [26 x i32], ptr %9, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !14
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !14
  br label %66, !llvm.loop !21

96:                                               ; preds = %66
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TrieNode, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 4, !tbaa !20
  call void @CuAssertIntEquals_LineMsg(ptr noundef %97, ptr noundef @.str, i32 noundef 101, ptr noundef null, i32 noundef 1, i32 noundef %100)
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds [26 x i32], ptr %9, i64 0, i64 0
  %103 = call i32 @checkOnlyWordCharactersExistInTheArrTrT(ptr noundef %102, ptr noundef @.str.3)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %101, ptr noundef @.str, i32 noundef 102, ptr noundef null, i32 noundef 1, i32 noundef %103)
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyTrie(ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

declare void @CuAssertIntEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 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) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!13, !6, i64 0}
!13 = !{!"Trie", !6, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"TrieNode", !6, i64 0, !7, i64 8, !11, i64 12}
!17 = !{!16, !7, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !11, i64 12}
!21 = distinct !{!21, !19}


; 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
@.str.1 = external hidden unnamed_addr constant [24 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
@__const.testTrieAddWord.indicesArr = external hidden unnamed_addr constant [4 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@__const.testTrieAddWord.indicesArr2 = external hidden unnamed_addr constant [4 x i32], align 16

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

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

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

declare void @destroyTrie(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @testTrieAddWord(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [26 x i32], align 16
  %3 = alloca [26 x i32], align 16
  %4 = tail call ptr (...) @trieInitialization() #4
  tail call void @trieAddWord(ptr noundef null, ptr noundef null) #4
  %5 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %6 = load i32, ptr %5, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 64, ptr noundef null, i32 noundef -83386157, i32 noundef %6) #4
  tail call void @trieAddWord(ptr noundef %4, ptr noundef null) #4
  %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 67, ptr noundef null, i32 noundef -83384987, i32 noundef %8) #4
  tail call void @trieAddWord(ptr noundef %4, ptr noundef nonnull @.str.2) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) %2, i8 0, i64 104, i1 false)
  %9 = load ptr, ptr %4, align 8, !tbaa !12
  %10 = tail call i32 @hasNoChildrenTrT(ptr noundef %9)
  %.not28 = icmp eq i32 %10, 0
  br i1 %.not28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %1 ]
  %.02529 = phi ptr [ %18, %.lr.ph ], [ %9, %1 ]
  %11 = icmp ne ptr %.02529, null
  %12 = zext i1 %11 to i32
  tail call void @CuAssert_Line(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 78, ptr noundef nonnull @.str.1, i32 noundef %12) #4
  %13 = load ptr, ptr %.02529, align 8, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = getelementptr inbounds [4 x i32], ptr @__const.testTrieAddWord.indicesArr, i64 0, i64 %indvars.iv
  %15 = load i32, ptr %14, align 4, !tbaa !16
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds ptr, ptr %13, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i8, ptr %19, align 8, !tbaa !17
  %21 = sext i8 %20 to i64
  %22 = add nsw i64 %21, -97
  %23 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !16
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 4, !tbaa !16
  %26 = tail call i32 @hasNoChildrenTrT(ptr noundef %18)
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %1
  %.025.lcssa = phi ptr [ %9, %1 ], [ %18, %.lr.ph ]
  %27 = getelementptr inbounds i8, ptr %.025.lcssa, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !20
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 83, ptr noundef null, i32 noundef 1, i32 noundef %28) #4
  %29 = call i32 @checkOnlyWordCharactersExistInTheArrTrT(ptr noundef nonnull %2, ptr noundef nonnull @.str.2)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 84, ptr noundef null, i32 noundef 1, i32 noundef %29) #4
  call void @trieAddWord(ptr noundef nonnull %4, ptr noundef nonnull @.str.3) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) %3, i8 0, i64 104, i1 false)
  %30 = load ptr, ptr %4, align 8, !tbaa !12
  %31 = call i32 @hasNoChildrenTrT(ptr noundef %30)
  %.not2731 = icmp eq i32 %31, 0
  br i1 %.not2731, label %.lr.ph35, label %._crit_edge36

.lr.ph35:                                         ; preds = %._crit_edge, %.lr.ph35
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %.lr.ph35 ], [ 0, %._crit_edge ]
  %.12632 = phi ptr [ %39, %.lr.ph35 ], [ %30, %._crit_edge ]
  %32 = icmp ne ptr %.12632, null
  %33 = zext i1 %32 to i32
  call void @CuAssert_Line(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 96, ptr noundef nonnull @.str.1, i32 noundef %33) #4
  %34 = load ptr, ptr %.12632, align 8, !tbaa !14
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %35 = getelementptr inbounds [4 x i32], ptr @__const.testTrieAddWord.indicesArr2, i64 0, i64 %indvars.iv40
  %36 = load i32, ptr %35, align 4, !tbaa !16
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %34, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i8, ptr %40, align 8, !tbaa !17
  %42 = sext i8 %41 to i64
  %43 = add nsw i64 %42, -97
  %44 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %44, align 4, !tbaa !16
  %47 = call i32 @hasNoChildrenTrT(ptr noundef %39)
  %.not27 = icmp eq i32 %47, 0
  br i1 %.not27, label %.lr.ph35, label %._crit_edge36, !llvm.loop !21

._crit_edge36:                                    ; preds = %.lr.ph35, %._crit_edge
  %.126.lcssa = phi ptr [ %30, %._crit_edge ], [ %39, %.lr.ph35 ]
  %48 = getelementptr inbounds i8, ptr %.126.lcssa, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !20
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 101, ptr noundef null, i32 noundef 1, i32 noundef %49) #4
  %50 = call i32 @checkOnlyWordCharactersExistInTheArrTrT(ptr noundef nonnull %3, ptr noundef nonnull @.str.3)
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 102, ptr noundef null, i32 noundef 1, i32 noundef %50) #4
  call void @destroyTrie(ptr noundef nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #4
  ret void
}

declare void @trieAddWord(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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"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 = !{!13, !6, i64 0}
!13 = !{!"Trie", !6, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"TrieNode", !6, i64 0, !7, i64 8, !11, i64 12}
!16 = !{!11, !11, i64 0}
!17 = !{!15, !7, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!15, !11, i64 12}
!21 = distinct !{!21, !19}


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