; LLVM IR from chirag-singhal/Coding-Interview-101 :: Miscellaneous/Labs/Lab8 (hash)

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

@__const.main.tableSize = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.baseNumber = external hidden unnamed_addr constant [3 x [6 x i64]], align 16
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @collisionCount(ptr noundef, i32 noundef, i64 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @inputParser(ptr noundef) #1

; 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) #2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca [3 x i32], align 4
  %3 = alloca [3 x [6 x i64]], align 16
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [18 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.tableSize, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.baseNumber, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = call ptr @inputParser(ptr noundef %4)
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %78, %0
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 3
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %81

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %74, %20
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 6
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %77

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [3 x [6 x i64]], ptr %3, i64 0, i64 %29
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [6 x i64], ptr %30, i64 0, i64 %32
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call i32 @collisionCount(ptr noundef %26, i32 noundef %27, i64 noundef %34, i32 noundef %38)
  store i32 %39, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %47

42:                                               ; preds = %25
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %42
  %46 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %46, ptr %6, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %45, %42, %25
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = mul nsw i32 %49, 6
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = add nsw i32 %50, %51
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [18 x i32], ptr %7, i64 0, i64 %53
  store i32 %48, ptr %54, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [3 x [6 x i64]], ptr %3, i64 0, i64 %56
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [6 x i64], ptr %57, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %61, i32 noundef %65, i32 noundef %66)
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = icmp sgt i32 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %47
  %72 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %72, ptr %6, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %71, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %10, align 4, !tbaa !9
  br label %21, !llvm.loop !13

77:                                               ; preds = %24
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !9
  br label %16, !llvm.loop !15

81:                                               ; preds = %19
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %117, %81
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 18
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %120

87:                                               ; preds = %83
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [18 x i32], ptr %7, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = icmp eq i32 %91, %92
  br i1 %93, label %94, label %116

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = sdiv i32 %95, 6
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [3 x [6 x i64]], ptr %3, i64 0, i64 %97
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = srem i32 %99, 6
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [6 x i64], ptr %98, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !11
  store i64 %103, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sdiv i32 %104, 6
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  store i32 %108, ptr %14, align 4, !tbaa !9
  %109 = load i64, ptr %13, align 8, !tbaa !11
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [18 x i32], ptr %7, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %109, i32 noundef %110, i32 noundef %114)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %116

116:                                              ; preds = %94, %87
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %12, align 4, !tbaa !9
  br label %83, !llvm.loop !16

120:                                              ; preds = %86
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #4
  %121 = load i32, ptr %1, align 4
  ret i32 %121
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

@__const.main.tableSize = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.baseNumber = external hidden unnamed_addr constant [3 x [6 x i64]], align 16
@.str.3 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @collisionCount(ptr noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @inputParser(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.preheader:
  %0 = alloca i32, align 4
  %1 = alloca [18 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #4
  %2 = call ptr @inputParser(ptr noundef nonnull %0)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #4
  %3 = load i32, ptr @__const.main.tableSize, align 4, !tbaa !5
  %4 = load i32, ptr %0, align 4, !tbaa !5
  %5 = load i64, ptr @__const.main.baseNumber, align 16, !tbaa !9
  %6 = call i32 @collisionCount(ptr noundef %2, i32 noundef %4, i64 noundef %5, i32 noundef %3)
  store i32 %6, ptr %1, align 16, !tbaa !5
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %5, i32 noundef %3, i32 noundef %6)
  %8 = load i32, ptr %0, align 4, !tbaa !5
  %9 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 8), align 8, !tbaa !9
  %10 = call i32 @collisionCount(ptr noundef %2, i32 noundef %8, i64 noundef %9, i32 noundef %3)
  %11 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %10, ptr %11, align 4, !tbaa !5
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %9, i32 noundef %3, i32 noundef %10)
  %.3.1 = call i32 @llvm.smin.i32(i32 %6, i32 %10)
  %13 = load i32, ptr %0, align 4, !tbaa !5
  %14 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 16), align 16, !tbaa !9
  %15 = call i32 @collisionCount(ptr noundef %2, i32 noundef %13, i64 noundef %14, i32 noundef %3)
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %15, ptr %16, align 8, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %14, i32 noundef %3, i32 noundef %15)
  %.3.2 = call i32 @llvm.smin.i32(i32 %.3.1, i32 %15)
  %18 = load i32, ptr %0, align 4, !tbaa !5
  %19 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 24), align 8, !tbaa !9
  %20 = call i32 @collisionCount(ptr noundef %2, i32 noundef %18, i64 noundef %19, i32 noundef %3)
  %21 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 %20, ptr %21, align 4, !tbaa !5
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %19, i32 noundef %3, i32 noundef %20)
  %.3.3 = call i32 @llvm.smin.i32(i32 %.3.2, i32 %20)
  %23 = load i32, ptr %0, align 4, !tbaa !5
  %24 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 32), align 16, !tbaa !9
  %25 = call i32 @collisionCount(ptr noundef %2, i32 noundef %23, i64 noundef %24, i32 noundef %3)
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %25, ptr %26, align 16, !tbaa !5
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %24, i32 noundef %3, i32 noundef %25)
  %.3.4 = call i32 @llvm.smin.i32(i32 %.3.3, i32 %25)
  %28 = load i32, ptr %0, align 4, !tbaa !5
  %29 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 40), align 8, !tbaa !9
  %30 = call i32 @collisionCount(ptr noundef %2, i32 noundef %28, i64 noundef %29, i32 noundef %3)
  %31 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 %30, ptr %31, align 4, !tbaa !5
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %29, i32 noundef %3, i32 noundef %30)
  %.3.5 = call i32 @llvm.smin.i32(i32 %.3.4, i32 %30)
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.tableSize, i64 4), align 4, !tbaa !5
  %34 = load i32, ptr %0, align 4, !tbaa !5
  %35 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 48), align 16, !tbaa !9
  %36 = call i32 @collisionCount(ptr noundef %2, i32 noundef %34, i64 noundef %35, i32 noundef %33)
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %36, ptr %37, align 8, !tbaa !5
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %35, i32 noundef %33, i32 noundef %36)
  %.3.146 = call i32 @llvm.smin.i32(i32 %.3.5, i32 %36)
  %39 = load i32, ptr %0, align 4, !tbaa !5
  %40 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 56), align 8, !tbaa !9
  %41 = call i32 @collisionCount(ptr noundef %2, i32 noundef %39, i64 noundef %40, i32 noundef %33)
  %42 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 %41, ptr %42, align 4, !tbaa !5
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %40, i32 noundef %33, i32 noundef %41)
  %.3.1.1 = call i32 @llvm.smin.i32(i32 %.3.146, i32 %41)
  %44 = load i32, ptr %0, align 4, !tbaa !5
  %45 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 64), align 16, !tbaa !9
  %46 = call i32 @collisionCount(ptr noundef %2, i32 noundef %44, i64 noundef %45, i32 noundef %33)
  %47 = getelementptr inbounds i8, ptr %1, i64 32
  store i32 %46, ptr %47, align 16, !tbaa !5
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %45, i32 noundef %33, i32 noundef %46)
  %.3.2.1 = call i32 @llvm.smin.i32(i32 %.3.1.1, i32 %46)
  %49 = load i32, ptr %0, align 4, !tbaa !5
  %50 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 72), align 8, !tbaa !9
  %51 = call i32 @collisionCount(ptr noundef %2, i32 noundef %49, i64 noundef %50, i32 noundef %33)
  %52 = getelementptr inbounds i8, ptr %1, i64 36
  store i32 %51, ptr %52, align 4, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %50, i32 noundef %33, i32 noundef %51)
  %.3.3.1 = call i32 @llvm.smin.i32(i32 %.3.2.1, i32 %51)
  %54 = load i32, ptr %0, align 4, !tbaa !5
  %55 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 80), align 16, !tbaa !9
  %56 = call i32 @collisionCount(ptr noundef %2, i32 noundef %54, i64 noundef %55, i32 noundef %33)
  %57 = getelementptr inbounds i8, ptr %1, i64 40
  store i32 %56, ptr %57, align 8, !tbaa !5
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %55, i32 noundef %33, i32 noundef %56)
  %.3.4.1 = call i32 @llvm.smin.i32(i32 %.3.3.1, i32 %56)
  %59 = load i32, ptr %0, align 4, !tbaa !5
  %60 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 88), align 8, !tbaa !9
  %61 = call i32 @collisionCount(ptr noundef %2, i32 noundef %59, i64 noundef %60, i32 noundef %33)
  %62 = getelementptr inbounds i8, ptr %1, i64 44
  store i32 %61, ptr %62, align 4, !tbaa !5
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %60, i32 noundef %33, i32 noundef %61)
  %.3.5.1 = call i32 @llvm.smin.i32(i32 %.3.4.1, i32 %61)
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.tableSize, i64 8), align 4, !tbaa !5
  %65 = load i32, ptr %0, align 4, !tbaa !5
  %66 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 96), align 16, !tbaa !9
  %67 = call i32 @collisionCount(ptr noundef %2, i32 noundef %65, i64 noundef %66, i32 noundef %64)
  %68 = getelementptr inbounds i8, ptr %1, i64 48
  store i32 %67, ptr %68, align 16, !tbaa !5
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %66, i32 noundef %64, i32 noundef %67)
  %.3.247 = call i32 @llvm.smin.i32(i32 %.3.5.1, i32 %67)
  %70 = load i32, ptr %0, align 4, !tbaa !5
  %71 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 104), align 8, !tbaa !9
  %72 = call i32 @collisionCount(ptr noundef %2, i32 noundef %70, i64 noundef %71, i32 noundef %64)
  %73 = getelementptr inbounds i8, ptr %1, i64 52
  store i32 %72, ptr %73, align 4, !tbaa !5
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %71, i32 noundef %64, i32 noundef %72)
  %.3.1.2 = call i32 @llvm.smin.i32(i32 %.3.247, i32 %72)
  %75 = load i32, ptr %0, align 4, !tbaa !5
  %76 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 112), align 16, !tbaa !9
  %77 = call i32 @collisionCount(ptr noundef %2, i32 noundef %75, i64 noundef %76, i32 noundef %64)
  %78 = getelementptr inbounds i8, ptr %1, i64 56
  store i32 %77, ptr %78, align 8, !tbaa !5
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %76, i32 noundef %64, i32 noundef %77)
  %.3.2.2 = call i32 @llvm.smin.i32(i32 %.3.1.2, i32 %77)
  %80 = load i32, ptr %0, align 4, !tbaa !5
  %81 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 120), align 8, !tbaa !9
  %82 = call i32 @collisionCount(ptr noundef %2, i32 noundef %80, i64 noundef %81, i32 noundef %64)
  %83 = getelementptr inbounds i8, ptr %1, i64 60
  store i32 %82, ptr %83, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %81, i32 noundef %64, i32 noundef %82)
  %.3.3.2 = call i32 @llvm.smin.i32(i32 %.3.2.2, i32 %82)
  %85 = load i32, ptr %0, align 4, !tbaa !5
  %86 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 128), align 16, !tbaa !9
  %87 = call i32 @collisionCount(ptr noundef %2, i32 noundef %85, i64 noundef %86, i32 noundef %64)
  %88 = getelementptr inbounds i8, ptr %1, i64 64
  store i32 %87, ptr %88, align 16, !tbaa !5
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %86, i32 noundef %64, i32 noundef %87)
  %.3.4.2 = call i32 @llvm.smin.i32(i32 %.3.3.2, i32 %87)
  %90 = load i32, ptr %0, align 4, !tbaa !5
  %91 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.baseNumber, i64 136), align 8, !tbaa !9
  %92 = call i32 @collisionCount(ptr noundef %2, i32 noundef %90, i64 noundef %91, i32 noundef %64)
  %93 = getelementptr inbounds i8, ptr %1, i64 68
  store i32 %92, ptr %93, align 4, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %91, i32 noundef %64, i32 noundef %92)
  %.3.5.2 = call i32 @llvm.smin.i32(i32 %.3.4.2, i32 %92)
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %97

96:                                               ; preds = %111
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #4
  ret i32 0

97:                                               ; preds = %.preheader, %111
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %111 ]
  %98 = getelementptr inbounds [18 x i32], ptr %1, i64 0, i64 %indvars.iv
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp eq i32 %99, %.3.5.2
  br i1 %100, label %101, label %111

101:                                              ; preds = %97
  %.lhs.trunc = trunc i64 %indvars.iv to i8
  %102 = udiv i8 %.lhs.trunc, 6
  %103 = zext nneg i8 %102 to i64
  %104 = urem i8 %.lhs.trunc, 6
  %105 = zext nneg i8 %104 to i64
  %106 = getelementptr inbounds [3 x [6 x i64]], ptr @__const.main.baseNumber, i64 0, i64 %103, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds [3 x i32], ptr @__const.main.tableSize, i64 0, i64 %103
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %107, i32 noundef %109, i32 noundef %.3.5.2)
  br label %111

111:                                              ; preds = %97, %101
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 18
  br i1 %exitcond.not, label %96, label %97, !llvm.loop !11
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass