; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Unit Test/Tests/DataStructuresTests/TablesTest/DounlyLinkedListHashMapTest (testDLLHashMapToEntryArray)

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

@.str = external hidden unnamed_addr constant [183 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@__const.testDLLHashMapToEntryArray.numbersArr = external hidden unnamed_addr constant [13 x [10 x i8]], align 16

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

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

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

declare ptr @linkedListHashMapInitialization(i32 noundef, ptr noundef, ptr noundef, 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 @destroyLLHashMap(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 @lLHashMapInsert(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @testDLLHashMapToEntryArray(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [13 x [10 x i8]], align 16
  %5 = alloca i32, align 4
  %6 = alloca [13 x i32], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %10 = call ptr @linkedListHashMapInitialization(i32 noundef 3, ptr noundef @free, ptr noundef @free, ptr noundef @doublyLinkedListHashMapTestStrcmp, ptr noundef @charArrHashFunDLLHMT)
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 130, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.testDLLHashMapToEntryArray.numbersArr, i64 130, i1 false)
  %11 = call ptr @lLHashMapToEntryArray(ptr noundef null)
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ErrorTestStruct, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %12, ptr noundef @.str, i32 noundef 444, ptr noundef null, i32 noundef -83386157, i32 noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %16

16:                                               ; preds = %30, %1
  %17 = load i32, ptr %5, align 4, !tbaa !12
  %18 = icmp slt i32 %17, 13
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %16
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !12
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [13 x [10 x i8]], ptr %4, i64 0, i64 %23
  %25 = getelementptr inbounds [10 x i8], ptr %24, i64 0, i64 0
  %26 = call ptr @generateCharPointerDLLHMT(ptr noundef %25)
  %27 = load i32, ptr %5, align 4, !tbaa !12
  %28 = add nsw i32 %27, 1
  %29 = call ptr @generateIntPointerDLLHMT(i32 noundef %28)
  call void @lLHashMapInsert(ptr noundef %21, ptr noundef %26, ptr noundef %29)
  br label %30

30:                                               ; preds = %20
  %31 = load i32, ptr %5, align 4, !tbaa !12
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !12
  br label %16, !llvm.loop !13

33:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 52, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call ptr @lLHashMapToEntryArray(ptr noundef %34)
  store ptr %35, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %36

36:                                               ; preds = %77, %33
  %37 = load i32, ptr %8, align 4, !tbaa !12
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.LinkedListHashMap, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %80

43:                                               ; preds = %36
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %8, align 4, !tbaa !12
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Entry, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i32, ptr %50, align 4, !tbaa !12
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 4, !tbaa !12
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Entry, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [13 x [10 x i8]], ptr %4, i64 0, i64 %67
  %69 = getelementptr inbounds [10 x i8], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i32, ptr %8, align 4, !tbaa !12
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Entry, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  call void @CuAssertStrEquals_LineMsg(ptr noundef %57, ptr noundef @.str, i32 noundef 454, ptr noundef null, ptr noundef %69, ptr noundef %76)
  br label %77

77:                                               ; preds = %43
  %78 = load i32, ptr %8, align 4, !tbaa !12
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %8, align 4, !tbaa !12
  br label %36, !llvm.loop !20

80:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %81

81:                                               ; preds = %91, %80
  %82 = load i32, ptr %9, align 4, !tbaa !12
  %83 = icmp slt i32 %82, 13
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %94

85:                                               ; preds = %81
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !12
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %86, ptr noundef @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %90)
  br label %91

91:                                               ; preds = %85
  %92 = load i32, ptr %9, align 4, !tbaa !12
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %9, align 4, !tbaa !12
  br label %81, !llvm.loop !21

94:                                               ; preds = %84
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %95) #6
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyLLHashMap(ptr noundef %96)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 52, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 130, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

declare ptr @lLHashMapToEntryArray(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ErrorTestStruct", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !11, i64 12}
!16 = !{!"LinkedListHashMap", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!18, !6, i64 8}
!18 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!19 = !{!18, !6, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [183 x i8], align 1
@ERROR_TEST = external dso_local local_unnamed_addr global ptr, align 8
@__const.testDLLHashMapToEntryArray.numbersArr = external hidden unnamed_addr constant [13 x [10 x i8]], align 16

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

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

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

declare ptr @linkedListHashMapInitialization(i32 noundef, ptr noundef, ptr noundef, 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 @destroyLLHashMap(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @lLHashMapInsert(ptr noundef, ptr noundef, ptr 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) #5

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

; Function Attrs: nounwind uwtable
define dso_local void @testDLLHashMapToEntryArray(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [13 x [10 x i8]], align 16
  %3 = alloca [13 x i32], align 16
  %4 = tail call ptr @linkedListHashMapInitialization(i32 noundef 3, ptr noundef nonnull @free, ptr noundef nonnull @free, ptr noundef nonnull @doublyLinkedListHashMapTestStrcmp, ptr noundef nonnull @charArrHashFunDLLHMT) #6
  call void @llvm.lifetime.start.p0(i64 130, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(130) %2, ptr noundef nonnull align 16 dereferenceable(130) @__const.testDLLHashMapToEntryArray.numbersArr, i64 130, i1 false)
  %5 = tail call ptr @lLHashMapToEntryArray(ptr noundef null) #6
  %6 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %7 = load i32, ptr %6, align 4, !tbaa !9
  tail call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 444, ptr noundef null, i32 noundef -83386157, i32 noundef %7) #6
  %8 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %2)
  %9 = call ptr @generateIntPointerDLLHMT(i32 noundef 1)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %8, ptr noundef %9) #6
  %10 = getelementptr inbounds i8, ptr %2, i64 10
  %11 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %10)
  %12 = call ptr @generateIntPointerDLLHMT(i32 noundef 2)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %11, ptr noundef %12) #6
  %13 = getelementptr inbounds i8, ptr %2, i64 20
  %14 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %13)
  %15 = call ptr @generateIntPointerDLLHMT(i32 noundef 3)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %14, ptr noundef %15) #6
  %16 = getelementptr inbounds i8, ptr %2, i64 30
  %17 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %16)
  %18 = call ptr @generateIntPointerDLLHMT(i32 noundef 4)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %17, ptr noundef %18) #6
  %19 = getelementptr inbounds i8, ptr %2, i64 40
  %20 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %19)
  %21 = call ptr @generateIntPointerDLLHMT(i32 noundef 5)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %20, ptr noundef %21) #6
  %22 = getelementptr inbounds i8, ptr %2, i64 50
  %23 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %22)
  %24 = call ptr @generateIntPointerDLLHMT(i32 noundef 6)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %23, ptr noundef %24) #6
  %25 = getelementptr inbounds i8, ptr %2, i64 60
  %26 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %25)
  %27 = call ptr @generateIntPointerDLLHMT(i32 noundef 7)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %26, ptr noundef %27) #6
  %28 = getelementptr inbounds i8, ptr %2, i64 70
  %29 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %28)
  %30 = call ptr @generateIntPointerDLLHMT(i32 noundef 8)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %29, ptr noundef %30) #6
  %31 = getelementptr inbounds i8, ptr %2, i64 80
  %32 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %31)
  %33 = call ptr @generateIntPointerDLLHMT(i32 noundef 9)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %32, ptr noundef %33) #6
  %34 = getelementptr inbounds i8, ptr %2, i64 90
  %35 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %34)
  %36 = call ptr @generateIntPointerDLLHMT(i32 noundef 10)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %35, ptr noundef %36) #6
  %37 = getelementptr inbounds i8, ptr %2, i64 100
  %38 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %37)
  %39 = call ptr @generateIntPointerDLLHMT(i32 noundef 11)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %38, ptr noundef %39) #6
  %40 = getelementptr inbounds i8, ptr %2, i64 110
  %41 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %40)
  %42 = call ptr @generateIntPointerDLLHMT(i32 noundef 12)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %41, ptr noundef %42) #6
  %43 = getelementptr inbounds i8, ptr %2, i64 120
  %44 = call ptr @generateCharPointerDLLHMT(ptr noundef nonnull %43)
  %45 = call ptr @generateIntPointerDLLHMT(i32 noundef 13)
  call void @lLHashMapInsert(ptr noundef %4, ptr noundef %44, ptr noundef %45) #6
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(52) %3, i8 0, i64 52, i1 false)
  %46 = call ptr @lLHashMapToEntryArray(ptr noundef %4) #6
  %47 = getelementptr inbounds i8, ptr %4, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !12
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %.preheader

.preheader.loopexit:                              ; preds = %.lr.ph
  %.pre = load i32, ptr %3, align 16, !tbaa !14
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 4
  %.pre32 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !14
  %.phi.trans.insert33 = getelementptr inbounds i8, ptr %3, i64 8
  %.pre34 = load i32, ptr %.phi.trans.insert33, align 8, !tbaa !14
  %.phi.trans.insert35 = getelementptr inbounds i8, ptr %3, i64 12
  %.pre36 = load i32, ptr %.phi.trans.insert35, align 4, !tbaa !14
  %.phi.trans.insert37 = getelementptr inbounds i8, ptr %3, i64 16
  %.pre38 = load i32, ptr %.phi.trans.insert37, align 16, !tbaa !14
  %.phi.trans.insert39 = getelementptr inbounds i8, ptr %3, i64 20
  %.pre40 = load i32, ptr %.phi.trans.insert39, align 4, !tbaa !14
  %.phi.trans.insert41 = getelementptr inbounds i8, ptr %3, i64 24
  %.pre42 = load i32, ptr %.phi.trans.insert41, align 8, !tbaa !14
  %.phi.trans.insert43 = getelementptr inbounds i8, ptr %3, i64 28
  %.pre44 = load i32, ptr %.phi.trans.insert43, align 4, !tbaa !14
  %.phi.trans.insert45 = getelementptr inbounds i8, ptr %3, i64 32
  %.pre46 = load i32, ptr %.phi.trans.insert45, align 16, !tbaa !14
  %.phi.trans.insert47 = getelementptr inbounds i8, ptr %3, i64 36
  %.pre48 = load i32, ptr %.phi.trans.insert47, align 4, !tbaa !14
  %.phi.trans.insert49 = getelementptr inbounds i8, ptr %3, i64 40
  %.pre50 = load i32, ptr %.phi.trans.insert49, align 8, !tbaa !14
  %.phi.trans.insert51 = getelementptr inbounds i8, ptr %3, i64 44
  %.pre52 = load i32, ptr %.phi.trans.insert51, align 4, !tbaa !14
  %.phi.trans.insert53 = getelementptr inbounds i8, ptr %3, i64 48
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 16, !tbaa !14
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %1
  %50 = phi i32 [ %.pre54, %.preheader.loopexit ], [ 0, %1 ]
  %51 = phi i32 [ %.pre52, %.preheader.loopexit ], [ 0, %1 ]
  %52 = phi i32 [ %.pre50, %.preheader.loopexit ], [ 0, %1 ]
  %53 = phi i32 [ %.pre48, %.preheader.loopexit ], [ 0, %1 ]
  %54 = phi i32 [ %.pre46, %.preheader.loopexit ], [ 0, %1 ]
  %55 = phi i32 [ %.pre44, %.preheader.loopexit ], [ 0, %1 ]
  %56 = phi i32 [ %.pre42, %.preheader.loopexit ], [ 0, %1 ]
  %57 = phi i32 [ %.pre40, %.preheader.loopexit ], [ 0, %1 ]
  %58 = phi i32 [ %.pre38, %.preheader.loopexit ], [ 0, %1 ]
  %59 = phi i32 [ %.pre36, %.preheader.loopexit ], [ 0, %1 ]
  %60 = phi i32 [ %.pre34, %.preheader.loopexit ], [ 0, %1 ]
  %61 = phi i32 [ %.pre32, %.preheader.loopexit ], [ 0, %1 ]
  %62 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %1 ]
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %62) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %61) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %60) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %59) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %58) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %57) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %56) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %55) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %54) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %53) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %52) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %51) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 458, ptr noundef null, i32 noundef 1, i32 noundef %50) #6
  call void @free(ptr noundef %46) #6
  call void @destroyLLHashMap(ptr noundef nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 130, ptr nonnull %2) #6
  ret void

.lr.ph:                                           ; preds = %1, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %1 ]
  %63 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = load i32, ptr %66, align 4, !tbaa !14
  %68 = add nsw i32 %67, -1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [13 x i32], ptr %3, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !14
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !14
  %73 = getelementptr inbounds [13 x [10 x i8]], ptr %2, i64 0, i64 %69
  %74 = load ptr, ptr %64, align 8, !tbaa !17
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 454, ptr noundef null, ptr noundef nonnull %73, ptr noundef %74) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr %47, align 4, !tbaa !12
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next, %76
  br i1 %77, label %.lr.ph, label %.preheader.loopexit, !llvm.loop !18
}

declare ptr @lLHashMapToEntryArray(ptr noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !11, i64 12}
!13 = !{!"LinkedListHashMap", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!16, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass