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

; 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 }

@.str = external hidden unnamed_addr constant [183 x i8], align 1
@ERROR_TEST = external dso_local global ptr, align 8
@__const.testDLLHashMapToArray.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

; Function Attrs: nounwind uwtable
define dso_local void @testDLLHashMapToArray(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.testDLLHashMapToArray.numbersArr, i64 130, i1 false)
  %11 = call ptr @lLHashMapToArray(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 414, 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 @lLHashMapToArray(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 = %55, %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 %58

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 = load i32, ptr %48, align 4, !tbaa !12
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !12
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %43
  %56 = load i32, ptr %8, align 4, !tbaa !12
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !12
  br label %36, !llvm.loop !17

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

59:                                               ; preds = %69, %58
  %60 = load i32, ptr %9, align 4, !tbaa !12
  %61 = icmp slt i32 %60, 13
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %59
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !12
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [13 x i32], ptr %6, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %64, ptr noundef @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %68)
  br label %69

69:                                               ; preds = %63
  %70 = load i32, ptr %9, align 4, !tbaa !12
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !12
  br label %59, !llvm.loop !18

72:                                               ; preds = %62
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %73) #6
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyLLHashMap(ptr noundef %74)
  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 @lLHashMapToArray(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 = distinct !{!17, !14}
!18 = distinct !{!18, !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.testDLLHashMapToArray.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

; Function Attrs: nounwind uwtable
define dso_local void @testDLLHashMapToArray(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.testDLLHashMapToArray.numbersArr, i64 130, i1 false)
  %5 = tail call ptr @lLHashMapToArray(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 414, 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 @lLHashMapToArray(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.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = zext nneg i32 %48 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %50 = icmp eq i32 %48, 1
  br i1 %50, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.loopexit.unr-lcssa
  %51 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv.unr
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = add nsw i32 %53, -1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [13 x i32], ptr %3, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !14
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 4, !tbaa !14
  br label %.preheader.loopexit

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

.preheader:                                       ; preds = %.preheader.loopexit, %1
  %59 = phi i32 [ %.pre50, %.preheader.loopexit ], [ 0, %1 ]
  %60 = phi i32 [ %.pre48, %.preheader.loopexit ], [ 0, %1 ]
  %61 = phi i32 [ %.pre46, %.preheader.loopexit ], [ 0, %1 ]
  %62 = phi i32 [ %.pre44, %.preheader.loopexit ], [ 0, %1 ]
  %63 = phi i32 [ %.pre42, %.preheader.loopexit ], [ 0, %1 ]
  %64 = phi i32 [ %.pre40, %.preheader.loopexit ], [ 0, %1 ]
  %65 = phi i32 [ %.pre38, %.preheader.loopexit ], [ 0, %1 ]
  %66 = phi i32 [ %.pre36, %.preheader.loopexit ], [ 0, %1 ]
  %67 = phi i32 [ %.pre34, %.preheader.loopexit ], [ 0, %1 ]
  %68 = phi i32 [ %.pre32, %.preheader.loopexit ], [ 0, %1 ]
  %69 = phi i32 [ %.pre30, %.preheader.loopexit ], [ 0, %1 ]
  %70 = phi i32 [ %.pre28, %.preheader.loopexit ], [ 0, %1 ]
  %71 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %1 ]
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %71) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %70) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %69) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %68) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %67) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %66) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %65) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %64) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %63) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %62) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %61) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %60) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 426, ptr noundef null, i32 noundef 1, i32 noundef %59) #6
  call void @free(ptr noundef %46) #6
  call void @destroyLLHashMap(ptr noundef %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 = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %72 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !14
  %75 = add nsw i32 %74, -1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [13 x i32], ptr %3, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 4, !tbaa !14
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %80 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv.next
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !14
  %83 = add nsw i32 %82, -1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [13 x i32], ptr %3, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !14
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !14
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !15
}

declare ptr @lLHashMapToArray(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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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