; LLVM IR from tangjz/acm-icpc :: projecteuler/548.ll (Z3dfsx)

; 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.HashTable = type { i32, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.FracExp = type { i32, [15 x i32] }

@Hash = external dso_local global %struct.HashTable, align 8
@cur = external dso_local global %struct.FracExp, align 4
@f = external dso_local global [172513 x i64], align 16
@g = external dso_local global [172513 x [15 x i64]], align 16
@_ZL2pr = external hidden constant [15 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfsx(i64 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i64 %0, ptr %3, align 8, !tbaa !5
  %12 = call noundef zeroext i1 @_ZNK9HashTable5countERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %12, label %13, label %15

13:                                               ; preds = %1
  %14 = call noundef i32 @_ZNK9HashTable5getIDERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store i32 %14, ptr %2, align 4
  br label %132

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  %16 = call noundef i32 @_ZN9HashTable5newIDERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store i32 %16, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  %17 = load i32, ptr @cur, align 4, !tbaa !11
  store i32 %17, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = sub nsw i32 %18, 1
  store i32 %19, ptr %9, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %99, %15
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load i32, ptr @cur, align 4, !tbaa !11
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %104

25:                                               ; preds = %20
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (%struct.FracExp, ptr @cur, i32 0, i32 1), i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (%struct.FracExp, ptr @cur, i32 0, i32 1), i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp ne i32 %29, %33
  br i1 %34, label %35, label %65

35:                                               ; preds = %25
  %36 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %36, ptr %8, align 4, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (%struct.FracExp, ptr @cur, i32 0, i32 1), i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %39, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %46, label %43

43:                                               ; preds = %35
  %44 = load i32, ptr @cur, align 4, !tbaa !11
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr @cur, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %43, %35
  %47 = load i64, ptr %3, align 8, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [15 x i32], ptr @_ZL2pr, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = sdiv i64 %47, %52
  %54 = call noundef i32 @_Z3dfsx(i64 noundef %53)
  store i32 %54, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (%struct.FracExp, ptr @cur, i32 0, i32 1), i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %57, align 4, !tbaa !9
  %60 = icmp ne i32 %58, 0
  br i1 %60, label %64, label %61

61:                                               ; preds = %46
  %62 = load i32, ptr @cur, align 4, !tbaa !11
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @cur, align 4, !tbaa !11
  br label %64

64:                                               ; preds = %61, %46
  br label %65

65:                                               ; preds = %64, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (%struct.FracExp, ptr @cur, i32 0, i32 1), i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  %72 = zext i1 %71 to i32
  %73 = sub nsw i32 %66, %72
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %65
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !5
  br label %89

81:                                               ; preds = %65
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %83
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [15 x i64], ptr %84, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %81, %76
  %90 = phi i64 [ %80, %76 ], [ %88, %81 ]
  %91 = load i64, ptr %6, align 8, !tbaa !5
  %92 = add nsw i64 %91, %90
  store i64 %92, ptr %6, align 8, !tbaa !5
  %93 = load i32, ptr %4, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %94
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [15 x i64], ptr %95, i64 0, i64 %97
  store i64 %92, ptr %98, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  br label %99

99:                                               ; preds = %89
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = add nsw i32 %102, -1
  store i32 %103, ptr %9, align 4, !tbaa !9
  br label %20, !llvm.loop !13

104:                                              ; preds = %24
  %105 = load i64, ptr %6, align 8, !tbaa !5
  %106 = load i32, ptr %4, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %107
  store i64 %105, ptr %108, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %127, %104
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr @cur, align 4, !tbaa !11
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  br label %130

114:                                              ; preds = %109
  %115 = load i32, ptr %4, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !5
  %119 = load i32, ptr %4, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %120
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [15 x i64], ptr %121, i64 0, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = add nsw i64 %125, %118
  store i64 %126, ptr %124, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %114
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !9
  br label %109, !llvm.loop !15

130:                                              ; preds = %113
  %131 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %131, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  br label %132

132:                                              ; preds = %130, %13
  %133 = load i32, ptr %2, align 4
  ret i32 %133
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK9HashTable5countERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9HashTable5getIDERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9HashTable5newIDERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

attributes #0 = { mustprogress 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 }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS7FracExp", !10, i64 0, !7, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

%struct.HashTable = type { i32, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.FracExp = type { i32, [15 x i32] }

@Hash = external dso_local global %struct.HashTable, align 8
@cur = external dso_local local_unnamed_addr global %struct.FracExp, align 4
@f = external dso_local local_unnamed_addr global [172513 x i64], align 16
@g = external dso_local local_unnamed_addr global [172513 x [15 x i64]], align 16
@_ZL2pr = external hidden local_unnamed_addr constant [15 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfsx(i64 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i64, align 8
  store i64 %0, ptr %2, align 8, !tbaa !5
  %3 = call noundef zeroext i1 @_ZNK9HashTable5countERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  %5 = call noundef i32 @_ZNK9HashTable5getIDERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %.loopexit

6:                                                ; preds = %1
  %7 = call noundef i32 @_ZN9HashTable5newIDERKx(ptr noundef nonnull align 8 dereferenceable(64) @Hash, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %8 = load i32, ptr @cur, align 4, !tbaa !9
  %9 = icmp sgt i32 %8, 0
  %10 = sext i32 %7 to i64
  br i1 %9, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %6
  %11 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %10
  store i64 0, ptr %11, align 8, !tbaa !5
  br label %.loopexit

.lr.ph:                                           ; preds = %6
  %12 = zext nneg i32 %8 to i64
  %.phi.trans.insert = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (i8, ptr @cur, i64 4), i64 0, i64 %12
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !12
  br label %20

._crit_edge:                                      ; preds = %42
  %13 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %10
  store i64 %56, ptr %13, align 8, !tbaa !5
  %14 = icmp sgt i32 %43, 0
  br i1 %14, label %.lr.ph48.preheader, label %.loopexit

.lr.ph48.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %43 to i64
  %min.iters.check = icmp ult i32 %43, 4
  br i1 %min.iters.check, label %.lr.ph48.preheader67, label %vector.ph

.lr.ph48.preheader67:                             ; preds = %middle.block, %.lr.ph48.preheader
  %indvars.iv56.ph = phi i64 [ 0, %.lr.ph48.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph48

vector.ph:                                        ; preds = %.lr.ph48.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %56, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %15 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %10, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load = load <2 x i64>, ptr %15, align 8, !tbaa !5
  %wide.load66 = load <2 x i64>, ptr %16, align 8, !tbaa !5
  %17 = add nsw <2 x i64> %wide.load, %broadcast.splat
  %18 = add nsw <2 x i64> %wide.load66, %broadcast.splat
  store <2 x i64> %17, ptr %15, align 8, !tbaa !5
  store <2 x i64> %18, ptr %16, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %.lr.ph48.preheader67

20:                                               ; preds = %.lr.ph, %42
  %21 = phi i32 [ %8, %.lr.ph ], [ %43, %42 ]
  %22 = phi i32 [ %.pre, %.lr.ph ], [ %46, %42 ]
  %indvars.iv51 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next52, %42 ]
  %indvars.iv = phi i64 [ %12, %.lr.ph ], [ %indvars.iv.next, %42 ]
  %.03043 = phi i32 [ %8, %.lr.ph ], [ %.1, %42 ]
  %.03241 = phi i64 [ 0, %.lr.ph ], [ %56, %42 ]
  %.03340 = phi i32 [ undef, %.lr.ph ], [ %.134, %42 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %23 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (i8, ptr @cur, i64 4), i64 0, i64 %indvars.iv.next
  %24 = load i32, ptr %23, align 4, !tbaa !12
  %.not = icmp eq i32 %24, %22
  br i1 %.not, label %42, label %25

25:                                               ; preds = %20
  %26 = add nsw i32 %24, -1
  store i32 %26, ptr %23, align 4, !tbaa !12
  %.not37 = icmp eq i32 %26, 0
  br i1 %.not37, label %27, label %30

27:                                               ; preds = %25
  %28 = load i32, ptr @cur, align 4, !tbaa !9
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr @cur, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %27, %25
  %31 = load i64, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds [15 x i32], ptr @_ZL2pr, i64 0, i64 %indvars.iv.next
  %33 = load i32, ptr %32, align 4, !tbaa !12
  %34 = sext i32 %33 to i64
  %35 = sdiv i64 %31, %34
  %36 = call noundef i32 @_Z3dfsx(i64 noundef %35)
  %37 = load i32, ptr %23, align 4, !tbaa !12
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %23, align 4, !tbaa !12
  %.not38 = icmp eq i32 %37, 0
  %39 = trunc nsw i64 %indvars.iv.next to i32
  %.pre59 = load i32, ptr @cur, align 4, !tbaa !9
  br i1 %.not38, label %40, label %42

40:                                               ; preds = %30
  %41 = add nsw i32 %.pre59, 1
  store i32 %41, ptr @cur, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %30, %40, %20
  %43 = phi i32 [ %.pre59, %30 ], [ %41, %40 ], [ %21, %20 ]
  %.134 = phi i32 [ %36, %30 ], [ %36, %40 ], [ %.03340, %20 ]
  %.1 = phi i32 [ %39, %30 ], [ %39, %40 ], [ %.03043, %20 ]
  %44 = sext i32 %.1 to i64
  %45 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (i8, ptr @cur, i64 4), i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = icmp eq i32 %46, 1
  %.neg = sext i1 %47 to i32
  %48 = trunc nuw nsw i64 %indvars.iv51 to i32
  %49 = add i32 %48, %.neg
  %50 = icmp slt i32 %49, 0
  %51 = sext i32 %.134 to i64
  %52 = getelementptr inbounds [172513 x i64], ptr @f, i64 0, i64 %51
  %53 = zext nneg i32 %49 to i64
  %54 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %51, i64 %53
  %.in = select i1 %50, ptr %52, ptr %54
  %55 = load i64, ptr %.in, align 8, !tbaa !5
  %56 = add nsw i64 %55, %.03241
  %57 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %10, i64 %indvars.iv51
  store i64 %56, ptr %57, align 8, !tbaa !5
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %58 = sext i32 %43 to i64
  %59 = icmp slt i64 %indvars.iv.next52, %58
  br i1 %59, label %20, label %._crit_edge, !llvm.loop !17

.lr.ph48:                                         ; preds = %.lr.ph48.preheader67, %.lr.ph48
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %.lr.ph48 ], [ %indvars.iv56.ph, %.lr.ph48.preheader67 ]
  %60 = getelementptr inbounds [172513 x [15 x i64]], ptr @g, i64 0, i64 %10, i64 %indvars.iv56
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = add nsw i64 %61, %56
  store i64 %62, ptr %60, align 8, !tbaa !5
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph48, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph48, %middle.block, %._crit_edge.thread, %._crit_edge, %4
  %.028 = phi i32 [ %5, %4 ], [ %7, %._crit_edge ], [ %7, %._crit_edge.thread ], [ %7, %middle.block ], [ %7, %.lr.ph48 ]
  ret i32 %.028
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK9HashTable5countERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9HashTable5getIDERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9HashTable5newIDERKx(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress 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" }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7FracExp", !11, i64 0, !7, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14, !16, !15}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass