; LLVM IR from tangjz/acm-icpc :: 51nod/1553.ll (Z7seg_updiiiii)

; 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.Hash = type { [2 x i32] }

@tag = external dso_local global [200003 x i32], align 16
@pw = external dso_local global [100001 x %struct.Hash], align 16
@sum = external dso_local global [100001 x %struct.Hash], align 16
@seg = external dso_local global [200003 x %struct.Hash], align 16

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7seg_idxii(i32 noundef, i32 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7seg_updiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca i32, align 4
  %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
  %12 = alloca %struct.Hash, align 4
  %13 = alloca %struct.Hash, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.Hash, align 4
  %19 = alloca %struct.Hash, align 4
  %20 = alloca %struct.Hash, align 4
  %21 = alloca %struct.Hash, align 4
  %22 = alloca %struct.Hash, align 4
  %23 = alloca %struct.Hash, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = call noundef i32 @_Z7seg_idxii(i32 noundef %24, i32 noundef %25)
  store i32 %26, ptr %11, align 4, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %30, label %54

30:                                               ; preds = %5
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %34, label %54

34:                                               ; preds = %30
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %37
  store i32 %35, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = sub nsw i32 %39, %40
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %45 = getelementptr inbounds %struct.Hash, ptr %13, i32 0, i32 0
  %46 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %46, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %45, i64 1
  %48 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %48, ptr %47, align 4, !tbaa !5
  %49 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %50 = getelementptr inbounds %struct.Hash, ptr %12, i32 0, i32 0
  store i64 %49, ptr %50, align 4
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %52
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  store i32 1, ptr %14, align 4
  br label %170

54:                                               ; preds = %30, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = add nsw i32 %55, %56
  %58 = ashr i32 %57, 1
  store i32 %58, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = load i32, ptr %15, align 4, !tbaa !5
  %61 = call noundef i32 @_Z7seg_idxii(i32 noundef %59, i32 noundef %60)
  store i32 %61, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %62 = load i32, ptr %15, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = call noundef i32 @_Z7seg_idxii(i32 noundef %63, i32 noundef %64)
  store i32 %65, ptr %17, align 4, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %130

71:                                               ; preds = %54
  %72 = load i32, ptr %11, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = load i32, ptr %16, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %77
  store i32 %75, ptr %78, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = sub nsw i32 %79, %80
  %82 = add nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %85 = getelementptr inbounds %struct.Hash, ptr %19, i32 0, i32 0
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr %85, align 4, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %85, i64 1
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  store i32 %94, ptr %90, align 4, !tbaa !5
  %95 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %84, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %96 = getelementptr inbounds %struct.Hash, ptr %18, i32 0, i32 0
  store i64 %95, ptr %96, align 4
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %98
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %99, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %17, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %105
  store i32 %103, ptr %106, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = sub nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %112 = getelementptr inbounds %struct.Hash, ptr %21, i32 0, i32 0
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  store i32 %116, ptr %112, align 4, !tbaa !5
  %117 = getelementptr inbounds i32, ptr %112, i64 1
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  store i32 %121, ptr %117, align 4, !tbaa !5
  %122 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %111, ptr noundef nonnull align 4 dereferenceable(8) %21)
  %123 = getelementptr inbounds %struct.Hash, ptr %20, i32 0, i32 0
  store i64 %122, ptr %123, align 4
  %124 = load i32, ptr %17, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %125
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %126, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %128
  store i32 0, ptr %129, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %71, %54
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = icmp sle i32 %131, %132
  br i1 %133, label %134, label %140

134:                                              ; preds = %130
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z7seg_updiiiii(i32 noundef %135, i32 noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef %139)
  br label %140

140:                                              ; preds = %134, %130
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %144, label %151

144:                                              ; preds = %140
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !5
  %150 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z7seg_updiiiii(i32 noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150)
  br label %151

151:                                              ; preds = %144, %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %152 = load i32, ptr %16, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %153
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = sub nsw i32 %155, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100001 x %struct.Hash], ptr @pw, i64 0, i64 %158
  %160 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %154, ptr noundef nonnull align 4 dereferenceable(8) %159)
  %161 = getelementptr inbounds %struct.Hash, ptr %23, i32 0, i32 0
  store i64 %160, ptr %161, align 4
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %163
  %165 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %164)
  %166 = getelementptr inbounds %struct.Hash, ptr %22, i32 0, i32 0
  store i64 %165, ptr %166, align 4
  %167 = load i32, ptr %11, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %168
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %169, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  store i32 0, ptr %14, align 4
  br label %170

170:                                              ; preds = %151, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %171 = load i32, ptr %14, align 4
  switch i32 %171, label %173 [
    i32 0, label %172
    i32 1, label %172
  ]

172:                                              ; preds = %170, %170
  ret void

173:                                              ; preds = %170
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { mustprogress 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 #4 = { 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 #5 = { 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++ TBAA"}
!9 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}


; 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.Hash = type { [2 x i32] }

@tag = external dso_local local_unnamed_addr global [200003 x i32], align 16
@pw = external dso_local global [100001 x %struct.Hash], align 16
@sum = external dso_local global [100001 x %struct.Hash], align 16
@seg = external dso_local global [200003 x %struct.Hash], align 16

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7seg_idxii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7seg_updiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca %struct.Hash, align 4
  %7 = alloca %struct.Hash, align 4
  %8 = alloca %struct.Hash, align 4
  %9 = alloca %struct.Hash, align 8
  %10 = tail call noundef i32 @_Z7seg_idxii(i32 noundef %0, i32 noundef %1)
  %.not = icmp sgt i32 %2, %0
  %.not62 = icmp sgt i32 %1, %3
  %or.cond = or i1 %.not, %.not62
  br i1 %or.cond, label %20, label %11

11:                                               ; preds = %5
  %12 = sext i32 %10 to i64
  %13 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %12
  store i32 %4, ptr %13, align 4, !tbaa !5
  %reass.sub = sub i32 %1, %0
  %14 = add i32 %reass.sub, 1
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store i32 %4, ptr %6, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %4, ptr %17, align 4, !tbaa !5
  %18 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %19 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %12
  store i64 %18, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %64

20:                                               ; preds = %5
  %21 = add nsw i32 %1, %0
  %22 = ashr i32 %21, 1
  %23 = tail call noundef i32 @_Z7seg_idxii(i32 noundef %0, i32 noundef %22)
  %24 = add nsw i32 %22, 1
  %25 = tail call noundef i32 @_Z7seg_idxii(i32 noundef %24, i32 noundef %1)
  %26 = sext i32 %10 to i64
  %27 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %.not63 = icmp eq i32 %28, 0
  br i1 %.not63, label %48, label %29

29:                                               ; preds = %20
  %30 = sext i32 %23 to i64
  %31 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  %reass.sub65 = sub i32 %22, %0
  %32 = add i32 %reass.sub65, 1
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %35 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %35, ptr %7, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 %35, ptr %36, align 4, !tbaa !5
  %37 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %38 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %30
  store i64 %37, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %39 = load i32, ptr %27, align 4, !tbaa !5
  %40 = sext i32 %25 to i64
  %41 = getelementptr inbounds [200003 x i32], ptr @tag, i64 0, i64 %40
  store i32 %39, ptr %41, align 4, !tbaa !5
  %42 = sub nsw i32 %1, %22
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100001 x %struct.Hash], ptr @sum, i64 0, i64 %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store i32 %39, ptr %8, align 4, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %39, ptr %45, align 4, !tbaa !5
  %46 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %47 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %40
  store i64 %46, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %29, %20
  %.not64 = icmp slt i32 %22, %2
  br i1 %.not64, label %50, label %49

49:                                               ; preds = %48
  call void @_Z7seg_updiiiii(i32 noundef %0, i32 noundef %22, i32 noundef %2, i32 noundef %3, i32 noundef %4)
  br label %50

50:                                               ; preds = %49, %48
  %51 = icmp slt i32 %22, %3
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  call void @_Z7seg_updiiiii(i32 noundef %24, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4)
  br label %53

53:                                               ; preds = %52, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %54 = sext i32 %23 to i64
  %55 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %54
  %56 = sub nsw i32 %1, %22
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100001 x %struct.Hash], ptr @pw, i64 0, i64 %57
  %59 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %55, ptr noundef nonnull align 4 dereferenceable(8) %58)
  store i64 %59, ptr %9, align 8
  %60 = sext i32 %25 to i64
  %61 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %60
  %62 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %63 = getelementptr inbounds [200003 x %struct.Hash], ptr @seg, i64 0, i64 %26
  store i64 %62, ptr %63, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br label %64

64:                                               ; preds = %53, %11
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { mustprogress 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 #3 = { 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++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass