; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: Algorithms/ArraysAlg/Sources (ArraysAlg)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @nullFreeFunArrAlg(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @intFreeFunArrAlg(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateIntPointerArrAlg(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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare ptr @hashMapInitialization(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare ptr @hashMapGet(ptr noundef, ptr noundef) #4

declare void @hashMapInsert(ptr noundef, ptr noundef, ptr noundef) #4

declare void @destroyHashMap(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @arrAnagramsH(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %32

29:                                               ; preds = %7
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str, ptr noundef @.str.33, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83386157) #6
  unreachable

32:                                               ; preds = %7
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, ptr noundef @.str.35, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83386157) #6
  unreachable

38:                                               ; preds = %32
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.3, ptr noundef @.str.7, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83384987) #6
  unreachable

44:                                               ; preds = %38
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %50

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.3, ptr noundef @.str.8, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83384987) #6
  unreachable

50:                                               ; preds = %44
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %56, label %53

53:                                               ; preds = %50
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %53, %50
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.3, ptr noundef @.str.36, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83384987) #6
  unreachable

59:                                               ; preds = %53
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = icmp sle i32 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef @.str.42) #5
  call void @exit(i32 noundef -83384987) #6
  unreachable

65:                                               ; preds = %59
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp ne i32 %71, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  store i32 0, ptr %8, align 4
  br label %150

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %76, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %77, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = call ptr @hashMapInitialization(ptr noundef @nullFreeFunArrAlg, ptr noundef @intFreeFunArrAlg, ptr noundef %78, ptr noundef %79)
  store ptr %80, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %107, %75
  %82 = load i32, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %110

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = mul nsw i32 %88, %89
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %87, i64 %91
  store ptr %92, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = call ptr @hashMapGet(ptr noundef %93, ptr noundef %94)
  store ptr %95, ptr %22, align 8, !tbaa !5
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = icmp eq ptr %96, null
  br i1 %97, label %98, label %102

98:                                               ; preds = %86
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = call ptr @generateIntPointerArrAlg(ptr noundef %19)
  call void @hashMapInsert(ptr noundef %99, ptr noundef %100, ptr noundef %101)
  br label %106

102:                                              ; preds = %86
  %103 = load ptr, ptr %22, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %20, align 4, !tbaa !9
  br label %81, !llvm.loop !11

110:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %142, %110
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 5, ptr %24, align 4
  br label %145

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = load i32, ptr %23, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = mul nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %117, i64 %121
  store ptr %122, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = load ptr, ptr %25, align 8, !tbaa !5
  %125 = call ptr @hashMapGet(ptr noundef %123, ptr noundef %124)
  store ptr %125, ptr %26, align 8, !tbaa !5
  %126 = load ptr, ptr %26, align 8, !tbaa !5
  %127 = icmp eq ptr %126, null
  br i1 %127, label %132, label %128

128:                                              ; preds = %116
  %129 = load ptr, ptr %26, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = icmp sle i32 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %128, %116
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  call void @destroyHashMap(ptr noundef %133)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %139

134:                                              ; preds = %128
  %135 = load ptr, ptr %26, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = sub nsw i32 %136, 1
  store i32 %137, ptr %135, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %134
  store i32 0, ptr %24, align 4
  br label %139

139:                                              ; preds = %138, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  %140 = load i32, ptr %24, align 4
  switch i32 %140, label %145 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %23, align 4, !tbaa !9
  br label %111, !llvm.loop !13

145:                                              ; preds = %139, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %146 = load i32, ptr %24, align 4
  switch i32 %146, label %149 [
    i32 5, label %147
  ]

147:                                              ; preds = %145
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  call void @destroyHashMap(ptr noundef %148)
  store i32 1, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %149

149:                                              ; preds = %147, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %150

150:                                              ; preds = %149, %74
  %151 = load i32, ptr %8, align 4
  ret i32 %151
}

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 = { 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 #3 = { noreturn 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 = { "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 #5 = { nounwind }
attributes #6 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @nullFreeFunArrAlg(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @intFreeFunArrAlg(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @generateIntPointerArrAlg(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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare ptr @hashMapInitialization(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @hashMapGet(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @hashMapInsert(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @destroyHashMap(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @arrAnagramsH(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = icmp eq ptr %0, null
  br i1 %9, label %10, label %13

10:                                               ; preds = %7
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83386157) #6
  unreachable

13:                                               ; preds = %7
  %14 = icmp eq ptr %2, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83386157) #6
  unreachable

18:                                               ; preds = %13
  %19 = icmp eq ptr %5, null
  br i1 %19, label %20, label %23

20:                                               ; preds = %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83384987) #6
  unreachable

23:                                               ; preds = %18
  %24 = icmp eq ptr %6, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83384987) #6
  unreachable

28:                                               ; preds = %23
  %29 = or i32 %3, %1
  %or.cond.not = icmp sgt i32 %29, -1
  br i1 %or.cond.not, label %33, label %30

30:                                               ; preds = %28
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83384987) #6
  unreachable

33:                                               ; preds = %28
  %34 = icmp slt i32 %4, 1
  br i1 %34, label %35, label %38

35:                                               ; preds = %33
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.42) #5
  tail call void @exit(i32 noundef -83384987) #6
  unreachable

38:                                               ; preds = %33
  %.not = icmp eq i32 %1, %3
  br i1 %.not, label %39, label %63

39:                                               ; preds = %38
  %40 = tail call ptr @hashMapInitialization(ptr noundef nonnull @nullFreeFunArrAlg, ptr noundef nonnull @intFreeFunArrAlg, ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 1, ptr %8, align 4, !tbaa !9
  %41 = icmp sgt i32 %3, 0
  br i1 %41, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %39
  %42 = zext nneg i32 %4 to i64
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %53
  br i1 %41, label %.lr.ph62.preheader, label %.critedge

.lr.ph62.preheader:                               ; preds = %.preheader
  %43 = zext nneg i32 %4 to i64
  %wide.trip.count67 = zext nneg i32 %3 to i64
  br label %.lr.ph62

.lr.ph:                                           ; preds = %.lr.ph.preheader, %53
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %53 ]
  %44 = mul nuw nsw i64 %indvars.iv, %42
  %45 = getelementptr inbounds i8, ptr %0, i64 %44
  %46 = call ptr @hashMapGet(ptr noundef %40, ptr noundef nonnull %45) #7
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %50

48:                                               ; preds = %.lr.ph
  %49 = call ptr @generateIntPointerArrAlg(ptr noundef nonnull %8)
  call void @hashMapInsert(ptr noundef %40, ptr noundef nonnull %45, ptr noundef %49) #7
  br label %53

50:                                               ; preds = %.lr.ph
  %51 = load i32, ptr %46, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %46, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %50, %48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !11

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %61
  %indvars.iv64 = phi i64 [ 0, %.lr.ph62.preheader ], [ %indvars.iv.next65, %61 ]
  %54 = mul nuw nsw i64 %indvars.iv64, %43
  %55 = getelementptr inbounds i8, ptr %2, i64 %54
  %56 = call ptr @hashMapGet(ptr noundef %40, ptr noundef nonnull %55) #7
  %57 = icmp eq ptr %56, null
  br i1 %57, label %.critedge, label %58

58:                                               ; preds = %.lr.ph62
  %59 = load i32, ptr %56, align 4, !tbaa !9
  %60 = icmp slt i32 %59, 1
  br i1 %60, label %.critedge, label %61

61:                                               ; preds = %58
  %62 = add nsw i32 %59, -1
  store i32 %62, ptr %56, align 4, !tbaa !9
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %.critedge, label %.lr.ph62, !llvm.loop !13

.critedge:                                        ; preds = %61, %.lr.ph62, %58, %.preheader, %39
  %.3 = phi i32 [ 1, %39 ], [ 1, %.preheader ], [ 0, %58 ], [ 0, %.lr.ph62 ], [ 1, %61 ]
  call void @destroyHashMap(ptr noundef %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %63

63:                                               ; preds = %38, %.critedge
  %.4 = phi i32 [ %.3, %.critedge ], [ 0, %38 ]
  ret i32 %.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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree 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 #3 = { noreturn 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 = { "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 #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass