; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/utils/sc_pq.ll (ZN7sc_core11sc_ppq_base6insertEPv)

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

%"class.sc_core::sc_ppq_base" = type { ptr, i32, i32, ptr }

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core11sc_ppq_base6insertEPv(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 2
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %12 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 2
  %13 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %13, ptr %5, align 4, !tbaa !12
  %14 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 2
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 1
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = icmp sgt i32 %15, %17
  br i1 %18, label %19, label %63

19:                                               ; preds = %2
  %20 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !13
  %22 = sdiv i32 %21, 2
  %23 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %25 = add nsw i32 %24, %22
  store i32 %25, ptr %23, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %26 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 1
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = add nsw i32 %27, 1
  %29 = sext i32 %28 to i64
  %30 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %29, i64 8)
  %31 = extractvalue { i64, i1 } %30, 1
  %32 = extractvalue { i64, i1 } %30, 0
  %33 = select i1 %31, i64 -1, i64 %32
  %34 = call noalias noundef nonnull ptr @_Znam(i64 noundef %33) #7
  store ptr %34, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !12
  br label %35

35:                                               ; preds = %52, %19
  %36 = load i32, ptr %7, align 4, !tbaa !12
  %37 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %55

41:                                               ; preds = %35
  %42 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = load i32, ptr %7, align 4, !tbaa !12
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !12
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds ptr, ptr %48, i64 %50
  store ptr %47, ptr %51, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %41
  %53 = load i32, ptr %7, align 4, !tbaa !12
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %7, align 4, !tbaa !12
  br label %35, !llvm.loop !15

55:                                               ; preds = %40
  %56 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = icmp eq ptr %57, null
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  call void @_ZdaPv(ptr noundef %57) #8
  br label %60

60:                                               ; preds = %59, %55
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  store ptr %61, ptr %62, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %63

63:                                               ; preds = %60, %2
  br label %64

64:                                               ; preds = %82, %63
  %65 = load i32, ptr %5, align 4, !tbaa !12
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %67, label %80

67:                                               ; preds = %64
  %68 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !14
  %72 = load i32, ptr %5, align 4, !tbaa !12
  %73 = call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %72)
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %71, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call noundef i32 %69(ptr noundef %76, ptr noundef %77)
  %79 = icmp slt i32 %78, 0
  br label %80

80:                                               ; preds = %67, %64
  %81 = phi i1 [ false, %64 ], [ %79, %67 ]
  br i1 %81, label %82, label %97

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = load i32, ptr %5, align 4, !tbaa !12
  %86 = call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %85)
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %84, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = load i32, ptr %5, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds ptr, ptr %91, i64 %93
  store ptr %89, ptr %94, align 8, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !12
  %96 = call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %95)
  store i32 %96, ptr %5, align 4, !tbaa !12
  br label %64, !llvm.loop !18

97:                                               ; preds = %80
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.sc_core::sc_ppq_base", ptr %8, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = load i32, ptr %5, align 4, !tbaa !12
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  store ptr %98, ptr %103, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nobuiltin allocsize(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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"_ZTSN7sc_core11sc_ppq_baseE", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !6, i64 16}
!18 = distinct !{!18, !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"

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7sc_core11sc_ppq_base6insertEPv(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 12
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = add i32 %4, 1
  store i32 %5, ptr %3, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !11
  %.not = icmp slt i32 %4, %7
  br i1 %.not, label %45, label %8

8:                                                ; preds = %2
  %9 = sdiv i32 %7, 2
  %10 = add nsw i32 %9, %7
  store i32 %10, ptr %6, align 8, !tbaa !11
  %11 = add nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = icmp slt i32 %10, -1
  %14 = shl nsw i64 %12, 3
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #4
  %.not1718 = icmp slt i32 %4, 1
  %.pre = load ptr, ptr %0, align 8, !tbaa !12
  br i1 %.not1718, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %.pre27 = ptrtoint ptr %.pre to i64
  %17 = ptrtoint ptr %16 to i64
  %wide.trip.count = zext i32 %5 to i64
  %18 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %5, 7
  %19 = sub i64 %17, %.pre27
  %diff.check = icmp ult i64 %19, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %20 = sub nsw i64 %wide.trip.count, %indvars.iv.ph
  %xtraiter = and i64 %20, 3
  %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, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %21 = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv.prol
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.prol
  store ptr %22, ptr %23, align 8, !tbaa !13
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !14

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 ]
  %24 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %25 = icmp ugt i64 %24, -4
  br i1 %25, label %._crit_edge.thread, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %18, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %26 = getelementptr inbounds ptr, ptr %.pre, i64 %offset.idx
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %wide.load = load <2 x ptr>, ptr %26, align 8, !tbaa !13
  %wide.load28 = load <2 x ptr>, ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds ptr, ptr %16, i64 %offset.idx
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <2 x ptr> %wide.load, ptr %28, align 8, !tbaa !13
  store <2 x ptr> %wide.load28, ptr %29, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !16

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

._crit_edge:                                      ; preds = %8
  %31 = icmp eq ptr %.pre, null
  br i1 %31, label %44, label %._crit_edge.thread

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %32 = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv
  store ptr %33, ptr %34, align 8, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv.next
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next
  store ptr %36, ptr %37, align 8, !tbaa !13
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %38 = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv.next.1
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next.1
  store ptr %39, ptr %40, align 8, !tbaa !13
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %41 = getelementptr inbounds ptr, ptr %.pre, i64 %indvars.iv.next.2
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv.next.2
  store ptr %42, ptr %43, align 8, !tbaa !13
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge.thread, label %scalar.ph, !llvm.loop !20

._crit_edge.thread:                               ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %._crit_edge
  tail call void @_ZdaPv(ptr noundef nonnull %.pre) #5
  br label %44

44:                                               ; preds = %._crit_edge.thread, %._crit_edge
  store ptr %16, ptr %0, align 8, !tbaa !12
  br label %45

45:                                               ; preds = %44, %2
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  %47 = icmp sgt i32 %4, 0
  br i1 %47, label %.lr.ph22, label %.critedge

.lr.ph22:                                         ; preds = %45, %56
  %.01420 = phi i32 [ %65, %56 ], [ %5, %45 ]
  %48 = load ptr, ptr %46, align 8, !tbaa !21
  %49 = load ptr, ptr %0, align 8, !tbaa !12
  %50 = tail call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.01420)
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %49, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = tail call noundef i32 %48(ptr noundef %53, ptr noundef %1)
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %.critedge

56:                                               ; preds = %.lr.ph22
  %57 = load ptr, ptr %0, align 8, !tbaa !12
  %58 = tail call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.01420)
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %57, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = load ptr, ptr %0, align 8, !tbaa !12
  %63 = zext nneg i32 %.01420 to i64
  %64 = getelementptr inbounds ptr, ptr %62, i64 %63
  store ptr %61, ptr %64, align 8, !tbaa !13
  %65 = tail call noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %.01420)
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %.lr.ph22, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %.lr.ph22, %56, %45
  %.014.lcssa = phi i32 [ %5, %45 ], [ %65, %56 ], [ %.01420, %.lr.ph22 ]
  %67 = load ptr, ptr %0, align 8, !tbaa !12
  %68 = sext i32 %.014.lcssa to i64
  %69 = getelementptr inbounds ptr, ptr %67, i64 %68
  store ptr %1, ptr %69, align 8, !tbaa !13
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7sc_core11sc_ppq_base6parentEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

attributes #0 = { nobuiltin allocsize(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 = { nobuiltin 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 #2 = { 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 = { builtin allocsize(0) }
attributes #5 = { builtin 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, !10, i64 12}
!6 = !{!"_ZTSN7sc_core11sc_ppq_baseE", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
!21 = !{!6, !7, i64 16}
!22 = distinct !{!22, !17}


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