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

; 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.testDLLHashMapInsert.numbersArr = external hidden unnamed_addr constant [13 x [10 x i8]], align 16

; 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 i32 @compareIntPointersDLLHMT(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateCharPointerDLLHMT(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: nounwind uwtable
define dso_local void @testDLLHashMapInsert(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 i32, align 4
  %7 = alloca [13 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %13 = call ptr @linkedListHashMapInitialization(i32 noundef 3, ptr noundef @free, ptr noundef @free, ptr noundef @compareIntPointersDLLHMT, ptr noundef @intHashFunDLLHMT)
  store ptr %13, 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.testDLLHashMapInsert.numbersArr, i64 130, i1 false)
  call void @lLHashMapInsert(ptr noundef null, ptr noundef null, ptr noundef null)
  %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 137, ptr noundef null, i32 noundef -83386157, i32 noundef %17)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  call void @lLHashMapInsert(ptr noundef %18, ptr noundef null, ptr noundef null)
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ErrorTestStruct, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %19, ptr noundef @.str, i32 noundef 140, ptr noundef null, i32 noundef -83384987, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 10, ptr %5, align 4, !tbaa !12
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void @lLHashMapInsert(ptr noundef %23, ptr noundef %5, ptr noundef null)
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr @ERROR_TEST, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ErrorTestStruct, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 4, !tbaa !9
  call void @CuAssertIntEquals_LineMsg(ptr noundef %24, ptr noundef @.str, i32 noundef 144, ptr noundef null, i32 noundef -83384987, i32 noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %28

28:                                               ; preds = %42, %1
  %29 = load i32, ptr %6, align 4, !tbaa !12
  %30 = icmp slt i32 %29, 13
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %45

32:                                               ; preds = %28
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !12
  %35 = add nsw i32 %34, 1
  %36 = call ptr @generateIntPointerDLLHMT(i32 noundef %35)
  %37 = load i32, ptr %6, align 4, !tbaa !12
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [13 x [10 x i8]], ptr %4, i64 0, i64 %38
  %40 = getelementptr inbounds [10 x i8], ptr %39, i64 0, i64 0
  %41 = call ptr @generateCharPointerDLLHMT(ptr noundef %40)
  call void @lLHashMapInsert(ptr noundef %33, ptr noundef %36, ptr noundef %41)
  br label %42

42:                                               ; preds = %32
  %43 = load i32, ptr %6, align 4, !tbaa !12
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %6, align 4, !tbaa !12
  br label %28, !llvm.loop !13

45:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 52, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %46

46:                                               ; preds = %111, %45
  %47 = load i32, ptr %8, align 4, !tbaa !12
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.LinkedListHashMap, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = icmp slt i32 %47, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %46
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %114

53:                                               ; preds = %46
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.LinkedListHashMap, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = load i32, ptr %8, align 4, !tbaa !12
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %53
  br label %111

63:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %64

64:                                               ; preds = %107, %63
  %65 = load i32, ptr %10, align 4, !tbaa !12
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.LinkedListHashMap, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = load i32, ptr %8, align 4, !tbaa !12
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = call i32 @doublyLinkedListGetLength(ptr noundef %72)
  %74 = icmp slt i32 %65, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %64
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %110

76:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.LinkedListHashMap, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load i32, ptr %8, align 4, !tbaa !12
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !12
  %85 = call ptr @doublyLinkedListGet(ptr noundef %83, i32 noundef %84)
  store ptr %85, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Entry, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = load i32, ptr %89, align 4, !tbaa !12
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [13 x [10 x i8]], ptr %4, i64 0, i64 %92
  %94 = getelementptr inbounds [10 x i8], ptr %93, i64 0, i64 0
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Entry, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  call void @CuAssertStrEquals_LineMsg(ptr noundef %86, ptr noundef @.str, i32 noundef 157, ptr noundef null, ptr noundef %94, ptr noundef %97)
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Entry, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !18
  %101 = load i32, ptr %100, align 4, !tbaa !12
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [13 x i32], ptr %7, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !12
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %104, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %107

107:                                              ; preds = %76
  %108 = load i32, ptr %10, align 4, !tbaa !12
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %10, align 4, !tbaa !12
  br label %64, !llvm.loop !21

110:                                              ; preds = %75
  br label %111

111:                                              ; preds = %110, %62
  %112 = load i32, ptr %8, align 4, !tbaa !12
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %8, align 4, !tbaa !12
  br label %46, !llvm.loop !22

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

115:                                              ; preds = %125, %114
  %116 = load i32, ptr %12, align 4, !tbaa !12
  %117 = icmp slt i32 %116, 13
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %128

119:                                              ; preds = %115
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !12
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [13 x i32], ptr %7, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !12
  call void @CuAssertIntEquals_LineMsg(ptr noundef %120, ptr noundef @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %124)
  br label %125

125:                                              ; preds = %119
  %126 = load i32, ptr %12, align 4, !tbaa !12
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %12, align 4, !tbaa !12
  br label %115, !llvm.loop !23

128:                                              ; preds = %118
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  call void @destroyLLHashMap(ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 52, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #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
}

; 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 i32 @doublyLinkedListGetLength(ptr noundef) #2

declare ptr @doublyLinkedListGet(ptr noundef, i32 noundef) #2

declare void @CuAssertStrEquals_LineMsg(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, 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 8}
!16 = !{!"LinkedListHashMap", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!16, !6, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!19, !6, i64 8}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !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.testDLLHashMapInsert.numbersArr = external hidden unnamed_addr constant [13 x [10 x i8]], align 16

; 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 i32 @compareIntPointersDLLHMT(ptr noundef, ptr noundef) #0

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

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

.preheader.loopexit:                              ; preds = %.loopexit
  %.pre = load i32, ptr %4, align 16, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 4
  %.pre44 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !12
  %.phi.trans.insert45 = getelementptr inbounds i8, ptr %4, i64 8
  %.pre46 = load i32, ptr %.phi.trans.insert45, align 8, !tbaa !12
  %.phi.trans.insert47 = getelementptr inbounds i8, ptr %4, i64 12
  %.pre48 = load i32, ptr %.phi.trans.insert47, align 4, !tbaa !12
  %.phi.trans.insert49 = getelementptr inbounds i8, ptr %4, i64 16
  %.pre50 = load i32, ptr %.phi.trans.insert49, align 16, !tbaa !12
  %.phi.trans.insert51 = getelementptr inbounds i8, ptr %4, i64 20
  %.pre52 = load i32, ptr %.phi.trans.insert51, align 4, !tbaa !12
  %.phi.trans.insert53 = getelementptr inbounds i8, ptr %4, i64 24
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 8, !tbaa !12
  %.phi.trans.insert55 = getelementptr inbounds i8, ptr %4, i64 28
  %.pre56 = load i32, ptr %.phi.trans.insert55, align 4, !tbaa !12
  %.phi.trans.insert57 = getelementptr inbounds i8, ptr %4, i64 32
  %.pre58 = load i32, ptr %.phi.trans.insert57, align 16, !tbaa !12
  %.phi.trans.insert59 = getelementptr inbounds i8, ptr %4, i64 36
  %.pre60 = load i32, ptr %.phi.trans.insert59, align 4, !tbaa !12
  %.phi.trans.insert61 = getelementptr inbounds i8, ptr %4, i64 40
  %.pre62 = load i32, ptr %.phi.trans.insert61, align 8, !tbaa !12
  %.phi.trans.insert63 = getelementptr inbounds i8, ptr %4, i64 44
  %.pre64 = load i32, ptr %.phi.trans.insert63, align 4, !tbaa !12
  %.phi.trans.insert65 = getelementptr inbounds i8, ptr %4, i64 48
  %.pre66 = load i32, ptr %.phi.trans.insert65, align 16, !tbaa !12
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %1
  %53 = phi i32 [ %.pre66, %.preheader.loopexit ], [ 0, %1 ]
  %54 = phi i32 [ %.pre64, %.preheader.loopexit ], [ 0, %1 ]
  %55 = phi i32 [ %.pre62, %.preheader.loopexit ], [ 0, %1 ]
  %56 = phi i32 [ %.pre60, %.preheader.loopexit ], [ 0, %1 ]
  %57 = phi i32 [ %.pre58, %.preheader.loopexit ], [ 0, %1 ]
  %58 = phi i32 [ %.pre56, %.preheader.loopexit ], [ 0, %1 ]
  %59 = phi i32 [ %.pre54, %.preheader.loopexit ], [ 0, %1 ]
  %60 = phi i32 [ %.pre52, %.preheader.loopexit ], [ 0, %1 ]
  %61 = phi i32 [ %.pre50, %.preheader.loopexit ], [ 0, %1 ]
  %62 = phi i32 [ %.pre48, %.preheader.loopexit ], [ 0, %1 ]
  %63 = phi i32 [ %.pre46, %.preheader.loopexit ], [ 0, %1 ]
  %64 = phi i32 [ %.pre44, %.preheader.loopexit ], [ 0, %1 ]
  %65 = phi i32 [ %.pre, %.preheader.loopexit ], [ 0, %1 ]
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %65) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %64) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %63) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %62) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %61) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %60) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %59) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %58) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %57) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %56) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %55) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %54) #6
  call void @CuAssertIntEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 164, ptr noundef null, i32 noundef 1, i32 noundef %53) #6
  call void @destroyLLHashMap(ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 130, ptr nonnull %2) #6
  ret void

.lr.ph37:                                         ; preds = %1, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %1 ]
  %66 = load ptr, ptr %5, align 8, !tbaa !15
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = icmp eq ptr %68, null
  br i1 %69, label %.loopexit, label %.preheader33

.preheader33:                                     ; preds = %.lr.ph37
  %70 = call i32 @doublyLinkedListGetLength(ptr noundef nonnull %68) #6
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader33, %.lr.ph
  %.03135 = phi i32 [ %90, %.lr.ph ], [ 0, %.preheader33 ]
  %72 = load ptr, ptr %5, align 8, !tbaa !15
  %73 = getelementptr inbounds ptr, ptr %72, i64 %indvars.iv
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = call ptr @doublyLinkedListGet(ptr noundef %74, i32 noundef %.03135) #6
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %76, align 4, !tbaa !12
  %78 = add nsw i32 %77, -1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [13 x [10 x i8]], ptr %2, i64 0, i64 %79
  %81 = getelementptr inbounds i8, ptr %75, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  call void @CuAssertStrEquals_LineMsg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef 157, ptr noundef null, ptr noundef nonnull %80, ptr noundef %82) #6
  %83 = load ptr, ptr %75, align 8, !tbaa !16
  %84 = load i32, ptr %83, align 4, !tbaa !12
  %85 = add nsw i32 %84, -1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [13 x i32], ptr %4, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !12
  %90 = add nuw nsw i32 %.03135, 1
  %91 = load ptr, ptr %5, align 8, !tbaa !15
  %92 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = call i32 @doublyLinkedListGetLength(ptr noundef %93) #6
  %95 = icmp slt i32 %90, %94
  br i1 %95, label %.lr.ph, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph, %.preheader33, %.lr.ph37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %96 = load i32, ptr %50, align 8, !tbaa !13
  %97 = sext i32 %96 to i64
  %98 = icmp slt i64 %indvars.iv.next, %97
  br i1 %98, label %.lr.ph37, label %.preheader.loopexit, !llvm.loop !21
}

; 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 i32 @doublyLinkedListGetLength(ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 8}
!14 = !{!"LinkedListHashMap", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!14, !6, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"Entry", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!18 = !{!17, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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