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

; 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.FactExp = type { i32, [12 x i32] }

@sz = external dso_local global [4358 x i32], align 16
@f = external dso_local global [4358 x [40 x i64]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfs7FactExp(ptr noundef byval(%struct.FactExp) align 8 %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.FactExp, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.FactExp, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @_ZN7FactExp4sortEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %9 = call noundef i64 @_ZNK7FactExp4hashEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %10 = call noundef zeroext i1 @_Z8getNewIDxRi(i64 noundef %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %10, label %13, label %11

11:                                               ; preds = %1
  %12 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %12, ptr %2, align 4
  store i32 1, ptr %4, align 4
  br label %70

13:                                               ; preds = %1
  %14 = call noundef i32 @_ZNK7FactExp5omegaEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %15 = add nsw i32 %14, 1
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [4358 x i32], ptr @sz, i64 0, i64 %17
  store i32 %15, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 52, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 52, i1 false)
  %19 = getelementptr inbounds %struct.FactExp, ptr %5, i32 0, i32 0
  %20 = getelementptr inbounds %struct.FactExp, ptr %0, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !9
  store i32 %21, ptr %19, align 4, !tbaa !9
  %22 = getelementptr inbounds %struct.FactExp, ptr %5, i32 0, i32 1
  br label %23

23:                                               ; preds = %66, %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %5, i64 52, i1 false), !tbaa.struct !11
  %24 = call noundef i32 @_Z3dfs7FactExp(ptr noundef byval(%struct.FactExp) align 8 %7)
  store i32 %24, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %62, %23
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [4358 x i32], ptr @sz, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp slt i32 %26, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %25
  store i32 4, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %65

33:                                               ; preds = %25
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %35
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [40 x i64], ptr %36, i64 0, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !13
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %42
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [40 x i64], ptr %43, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !13
  %49 = add nsw i64 %48, %40
  store i64 %49, ptr %47, align 8, !tbaa !13
  %50 = icmp sge i64 %49, 10000000061
  br i1 %50, label %51, label %61

51:                                               ; preds = %33
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %53
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [40 x i64], ptr %54, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !13
  %60 = sub nsw i64 %59, 10000000061
  store i64 %60, ptr %58, align 8, !tbaa !13
  br label %61

61:                                               ; preds = %51, %33
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %8, align 4, !tbaa !5
  br label %25, !llvm.loop !15

65:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %66

66:                                               ; preds = %65
  %67 = call noundef zeroext i1 @_ZNK7FactExp11nextSubFactERS_(ptr noundef nonnull align 4 dereferenceable(52) %0, ptr noundef nonnull align 4 dereferenceable(52) %5)
  br i1 %67, label %23, label %68, !llvm.loop !17

68:                                               ; preds = %66
  %69 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %69, ptr %2, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 52, ptr %5) #6
  br label %70

70:                                               ; preds = %68, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %71 = load i32, ptr %2, align 4
  ret i32 %71
}

; 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 void @_ZN7FactExp4sortEv(ptr noundef nonnull align 4 dereferenceable(52)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8getNewIDxRi(i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7FactExp5omegaEv(ptr noundef nonnull align 4 dereferenceable(52)) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7FactExp11nextSubFactERS_(ptr noundef nonnull align 4 dereferenceable(52), ptr noundef nonnull align 4 dereferenceable(52)) #3 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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

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


; 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.FactExp = type { i32, [12 x i32] }

@sz = external dso_local local_unnamed_addr global [4358 x i32], align 16
@f = external dso_local local_unnamed_addr global [4358 x [40 x i64]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfs7FactExp(ptr noundef nonnull byval(%struct.FactExp) align 8 %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca %struct.FactExp, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @_ZN7FactExp4sortEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %4 = call noundef i64 @_ZNK7FactExp4hashEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %5 = call noundef zeroext i1 @_Z8getNewIDxRi(i64 noundef %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br i1 %5, label %8, label %6

6:                                                ; preds = %1
  %7 = load i32, ptr %2, align 4, !tbaa !5
  br label %69

8:                                                ; preds = %1
  %9 = call noundef i32 @_ZNK7FactExp5omegaEv(ptr noundef nonnull align 4 dereferenceable(52) %0)
  %10 = add nsw i32 %9, 1
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [4358 x i32], ptr @sz, i64 0, i64 %12
  store i32 %10, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %3) #5
  %14 = getelementptr inbounds i8, ptr %3, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(52) %14, i8 0, i64 48, i1 false)
  %15 = load i32, ptr %0, align 8, !tbaa !9
  store i32 %15, ptr %3, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %._crit_edge, %8
  %17 = call noundef i32 @_Z3dfs7FactExp(ptr noundef nonnull byval(%struct.FactExp) align 8 %3)
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [4358 x i32], ptr @sz, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %wide.trip.count = zext nneg i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 6
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %24 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %18, i64 %indvars.iv.ph
  %25 = load i64, ptr %24, align 16, !tbaa !11
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  %26 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %23, i64 %indvars.iv.next.prol
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = add nsw i64 %27, %25
  %29 = icmp sgt i64 %28, 10000000060
  %30 = add nsw i64 %28, -10000000061
  %spec.select.prol = select i1 %29, i64 %30, i64 %28
  store i64 %spec.select.prol, ptr %26, align 8, !tbaa !11
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %31 = add nsw i64 %wide.trip.count, -1
  %32 = icmp eq i64 %indvars.iv.ph, %31
  br i1 %32, label %._crit_edge, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %33 = mul nsw i64 %23, 320
  %scevgep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), i64 %33
  %34 = shl nuw nsw i64 %wide.trip.count, 3
  %35 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), i64 %33
  %scevgep11 = getelementptr i8, ptr %35, i64 %34
  %36 = mul nsw i64 %18, 320
  %scevgep12 = getelementptr i8, ptr @f, i64 %36
  %37 = getelementptr i8, ptr @f, i64 %36
  %scevgep13 = getelementptr i8, ptr %37, i64 %34
  %bound0 = icmp ult ptr %scevgep, %scevgep13
  %bound1 = icmp ult ptr %scevgep12, %scevgep11
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %38 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %18, i64 %index
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %wide.load = load <2 x i64>, ptr %38, align 16, !tbaa !11, !alias.scope !13
  %wide.load14 = load <2 x i64>, ptr %39, align 16, !tbaa !11, !alias.scope !13
  %40 = or disjoint i64 %index, 1
  %41 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %23, i64 %40
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load15 = load <2 x i64>, ptr %41, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %wide.load16 = load <2 x i64>, ptr %42, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %43 = add nsw <2 x i64> %wide.load15, %wide.load
  %44 = add nsw <2 x i64> %wide.load16, %wide.load14
  %45 = icmp sgt <2 x i64> %43, <i64 10000000060, i64 10000000060>
  %46 = icmp sgt <2 x i64> %44, <i64 10000000060, i64 10000000060>
  %47 = add nsw <2 x i64> %43, <i64 -10000000061, i64 -10000000061>
  %48 = add nsw <2 x i64> %44, <i64 -10000000061, i64 -10000000061>
  %49 = select <2 x i1> %45, <2 x i64> %47, <2 x i64> %43
  %50 = select <2 x i1> %46, <2 x i64> %48, <2 x i64> %44
  store <2 x i64> %49, ptr %41, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  store <2 x i64> %50, ptr %42, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %index.next = add nuw i64 %index, 4
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %16
  %52 = call noundef zeroext i1 @_ZNK7FactExp11nextSubFactERS_(ptr noundef nonnull align 4 dereferenceable(52) %0, ptr noundef nonnull align 4 dereferenceable(52) %3)
  br i1 %52, label %16, label %67, !llvm.loop !22

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %53 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %18, i64 %indvars.iv
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %23, i64 %indvars.iv.next
  %56 = load i64, ptr %55, align 8, !tbaa !11
  %57 = add nsw i64 %56, %54
  %58 = icmp sgt i64 %57, 10000000060
  %59 = add nsw i64 %57, -10000000061
  %spec.select = select i1 %58, i64 %59, i64 %57
  store i64 %spec.select, ptr %55, align 8, !tbaa !11
  %60 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %18, i64 %indvars.iv.next
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %62 = getelementptr inbounds [4358 x [40 x i64]], ptr @f, i64 0, i64 %23, i64 %indvars.iv.next.1
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = add nsw i64 %63, %61
  %65 = icmp sgt i64 %64, 10000000060
  %66 = add nsw i64 %64, -10000000061
  %spec.select.1 = select i1 %65, i64 %66, i64 %64
  store i64 %spec.select.1, ptr %62, align 8, !tbaa !11
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !23

67:                                               ; preds = %._crit_edge
  %68 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %3) #5
  br label %69

69:                                               ; preds = %67, %6
  %.08 = phi i32 [ %68, %67 ], [ %7, %6 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret i32 %.08
}

; 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 uwtable
declare dso_local void @_ZN7FactExp4sortEv(ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8getNewIDxRi(i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7FactExp4hashEv(ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7FactExp5omegaEv(ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7FactExp11nextSubFactERS_(ptr noundef nonnull align 4 dereferenceable(52), ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #3 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" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!10, !6, i64 0}
!10 = !{!"_ZTS7FactExp", !6, i64 0, !7, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19, !20}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass