; LLVM IR from Dev-XYS/Algorithms :: Cartesian-Tree (main)

; 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.data = type { [100 x i8], i32 }

@d = external dso_local global [50010 x %struct.data], align 16
@n = external dso_local global i32, align 4
@lch = external dso_local global [50010 x i32], align 16
@rch = external dso_local global [50010 x i32], align 16
@S = external dso_local global [50010 x i32], align 16
@sp = external dso_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10print_treei(i32 noundef) #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca [1000 x i8], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1000, ptr %2) #6
  br label %5

5:                                                ; preds = %105, %0
  br label %6

6:                                                ; preds = %5
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @n)
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  br label %108

11:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %30, %11
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp sle i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %33

17:                                               ; preds = %12
  %18 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %18)
  %20 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %22
  %24 = getelementptr inbounds %struct.data, ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds [100 x i8], ptr %24, i64 0, i64 0
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %27
  %29 = getelementptr inbounds %struct.data, ptr %28, i32 0, i32 1
  call void @_Z5parsePcS_Pi(ptr noundef %20, ptr noundef %25, ptr noundef %29)
  br label %30

30:                                               ; preds = %17
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !9

33:                                               ; preds = %16
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.data, ptr @d, i64 %35
  %37 = getelementptr inbounds %struct.data, ptr %36, i64 1
  call void @_ZSt4sortIP4dataPFbRKS0_S3_EEvT_S6_T0_(ptr noundef getelementptr inbounds (%struct.data, ptr @d, i64 1), ptr noundef %37, ptr noundef @_Z10_data_cmp_RK4dataS1_)
  store i32 0, ptr @sp, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %102, %33
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %105

43:                                               ; preds = %38
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [50010 x i32], ptr @rch, i64 0, i64 %45
  store i32 0, ptr %46, align 4, !tbaa !5
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [50010 x i32], ptr @lch, i64 0, i64 %48
  store i32 0, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr @sp, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %74, %43
  %54 = load i32, ptr @sp, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %72

56:                                               ; preds = %53
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.data, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = load i32, ptr @sp, align 4, !tbaa !5
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.data, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %71 = icmp sgt i32 %61, %70
  br label %72

72:                                               ; preds = %56, %53
  %73 = phi i1 [ false, %53 ], [ %71, %56 ]
  br i1 %73, label %74, label %77

74:                                               ; preds = %72
  %75 = load i32, ptr @sp, align 4, !tbaa !5
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr @sp, align 4, !tbaa !5
  br label %53, !llvm.loop !13

77:                                               ; preds = %72
  %78 = load i32, ptr @sp, align 4, !tbaa !5
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %80, label %89

80:                                               ; preds = %77
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = load i32, ptr @sp, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [50010 x i32], ptr @rch, i64 0, i64 %87
  store i32 %81, ptr %88, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %80, %77
  %90 = load i32, ptr @sp, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [50010 x i32], ptr @lch, i64 0, i64 %95
  store i32 %93, ptr %96, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = load i32, ptr @sp, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr @sp, align 4, !tbaa !5
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %100
  store i32 %97, ptr %101, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %89
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %4, align 4, !tbaa !5
  br label %38, !llvm.loop !14

105:                                              ; preds = %42
  %106 = load i32, ptr @S, align 16, !tbaa !5
  call void @_Z10print_treei(i32 noundef %106)
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %5, !llvm.loop !15

108:                                              ; preds = %10
  call void @llvm.lifetime.end.p0(i64 1000, ptr %2) #6
  ret i32 0
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z5parsePcS_Pi(ptr noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4dataPFbRKS0_S3_EEvT_S6_T0_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10_data_cmp_RK4dataS1_(ptr noundef nonnull align 4 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(104)) #4

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 = { "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 norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 100}
!12 = !{!"_ZTS4data", !7, i64 0, !6, i64 100}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; 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.data = type { [100 x i8], i32 }

@d = external dso_local global [50010 x %struct.data], align 16
@n = external dso_local global i32, align 4
@lch = external dso_local local_unnamed_addr global [50010 x i32], align 16
@rch = external dso_local local_unnamed_addr global [50010 x i32], align 16
@S = external dso_local local_unnamed_addr global [50010 x i32], align 16
@sp = external dso_local local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10print_treei(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca [1000 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %1) #6
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @n)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = icmp eq i32 %3, 0
  br i1 %4, label %._crit_edge31, label %.preheader

.preheader:                                       ; preds = %0, %13
  %5 = phi i32 [ %17, %13 ], [ %3, %0 ]
  %.not19 = icmp slt i32 %5, 1
  br i1 %.not19, label %.preheader.._crit_edge_crit_edge, label %.lr.ph

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre = sext i32 %5 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader.._crit_edge_crit_edge ], [ %12, %.lr.ph ]
  %gep = getelementptr %struct.data, ptr getelementptr inbounds (i8, ptr @d, i64 104), i64 %.pre-phi
  call void @_ZSt4sortIP4dataPFbRKS0_S3_EEvT_S6_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @d, i64 104), ptr noundef nonnull %gep, ptr noundef nonnull @_Z10_data_cmp_RK4dataS1_)
  store i32 0, ptr @sp, align 4, !tbaa !5
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %.not1624 = icmp slt i32 %6, 1
  br i1 %.not1624, label %13, label %.lr.ph28.preheader

.lr.ph28.preheader:                               ; preds = %._crit_edge
  %7 = add nuw i32 %6, 1
  %wide.trip.count = zext i32 %7 to i64
  br label %.lr.ph28

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader ]
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1)
  %9 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %indvars.iv
  %10 = getelementptr inbounds i8, ptr %9, i64 100
  call void @_Z5parsePcS_Pi(ptr noundef nonnull %1, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %.not.not = icmp slt i64 %indvars.iv, %12
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge29:                                    ; preds = %.critedge
  store i32 %51, ptr @sp, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %._crit_edge29, %._crit_edge
  %14 = load i32, ptr @S, align 16, !tbaa !5
  call void @_Z10print_treei(i32 noundef %14)
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @n)
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %._crit_edge31, label %.preheader, !llvm.loop !11

.lr.ph28:                                         ; preds = %.lr.ph28.preheader, %.critedge
  %indvars.iv42 = phi i64 [ 1, %.lr.ph28.preheader ], [ %indvars.iv.next43, %.critedge ]
  %19 = phi i32 [ 0, %.lr.ph28.preheader ], [ %51, %.critedge ]
  %20 = getelementptr inbounds [50010 x i32], ptr @rch, i64 0, i64 %indvars.iv42
  store i32 0, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [50010 x i32], ptr @lch, i64 0, i64 %indvars.iv42
  %22 = sext i32 %19 to i64
  %23 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %22
  store i32 0, ptr %23, align 4, !tbaa !5
  %24 = icmp sgt i32 %19, 0
  br i1 %24, label %.lr.ph22, label %.critedge

.lr.ph22:                                         ; preds = %.lr.ph28
  %25 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %indvars.iv42, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !12
  %27 = zext nneg i32 %19 to i64
  br label %28

28:                                               ; preds = %.lr.ph22, %35
  %indvars.iv39 = phi i64 [ %27, %.lr.ph22 ], [ %indvars.iv.next40, %35 ]
  %indvars.iv.next40 = add nsw i64 %indvars.iv39, -1
  %29 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %indvars.iv.next40
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50010 x %struct.data], ptr @d, i64 0, i64 %31, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !12
  %34 = icmp sgt i32 %26, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %28
  %36 = icmp ugt i64 %indvars.iv39, 1
  br i1 %36, label %28, label %.critedge.loopexit, !llvm.loop !14

37:                                               ; preds = %28
  %38 = trunc nuw nsw i64 %indvars.iv39 to i32
  %39 = add nuw i64 %indvars.iv39, 4294967295
  %40 = and i64 %39, 4294967295
  %41 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [50010 x i32], ptr @rch, i64 0, i64 %43
  %45 = trunc nuw nsw i64 %indvars.iv42 to i32
  store i32 %45, ptr %44, align 4, !tbaa !5
  br label %.critedge

.critedge.loopexit:                               ; preds = %35
  %46 = trunc nuw nsw i64 %indvars.iv.next40 to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph28, %37
  %47 = phi i32 [ %38, %37 ], [ %19, %.lr.ph28 ], [ %46, %.critedge.loopexit ]
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [50010 x i32], ptr @S, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %50, ptr %21, align 4, !tbaa !5
  %51 = add nsw i32 %47, 1
  %52 = trunc nuw nsw i64 %indvars.iv42 to i32
  store i32 %52, ptr %49, align 4, !tbaa !5
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next43, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge29, label %.lr.ph28, !llvm.loop !15

._crit_edge31:                                    ; preds = %13, %0
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %1) #6
  ret i32 0
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z5parsePcS_Pi(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4dataPFbRKS0_S3_EEvT_S6_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10_data_cmp_RK4dataS1_(ptr noundef nonnull align 4 dereferenceable(104), ptr noundef nonnull align 4 dereferenceable(104)) #4

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 = { 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 #2 = { mustprogress norecurse 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 100}
!13 = !{!"_ZTS4data", !7, i64 0, !6, i64 100}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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