; LLVM IR from AllAlgorithms/c :: algorithms/dynamic-programming (matrix_chain_multiplication1)

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

@s = external dso_local global [20 x [20 x i32]], align 16
@n = external dso_local global i32, align 4
@i = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@m = external dso_local global [20 x [20 x i64]], align 16
@p = external dso_local global [20 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sequence(i32 noundef, i32 noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @matrix_multiply() #0

; 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: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  %3 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n)
  %5 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %17, %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = icmp sle i32 %7, %8
  br i1 %9, label %10, label %20

10:                                               ; preds = %6
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %11)
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [20 x i32], ptr @p, i64 0, i64 %14
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %15)
  br label %17

17:                                               ; preds = %10
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %2, align 4, !tbaa !5
  br label %6, !llvm.loop !9

20:                                               ; preds = %6
  store i32 1, ptr @i, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %53, %20
  %22 = load i32, ptr @i, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %25, label %56

25:                                               ; preds = %21
  store i32 1, ptr @j, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %49, %25
  %27 = load i32, ptr @j, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %30, label %52

30:                                               ; preds = %26
  %31 = load i32, ptr @i, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %32
  %34 = load i32, ptr @i, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [20 x i64], ptr %33, i64 0, i64 %35
  store i64 0, ptr %36, align 8, !tbaa !11
  %37 = load i32, ptr @i, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %38
  %40 = load i32, ptr @j, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [20 x i64], ptr %39, i64 0, i64 %41
  store i64 999999999, ptr %42, align 8, !tbaa !11
  %43 = load i32, ptr @i, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [20 x [20 x i32]], ptr @s, i64 0, i64 %44
  %46 = load i32, ptr @j, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [20 x i32], ptr %45, i64 0, i64 %47
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %30
  %50 = load i32, ptr @j, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @j, align 4, !tbaa !5
  br label %26, !llvm.loop !13

52:                                               ; preds = %26
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr @i, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr @i, align 4, !tbaa !5
  br label %21, !llvm.loop !14

56:                                               ; preds = %21
  call void @matrix_multiply()
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 1, ptr @i, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %83, %56
  %59 = load i32, ptr @i, align 4, !tbaa !5
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %62, label %86

62:                                               ; preds = %58
  %63 = load i32, ptr @i, align 4, !tbaa !5
  store i32 %63, ptr @j, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %79, %62
  %65 = load i32, ptr @j, align 4, !tbaa !5
  %66 = load i32, ptr @n, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %68, label %82

68:                                               ; preds = %64
  %69 = load i32, ptr @i, align 4, !tbaa !5
  %70 = load i32, ptr @j, align 4, !tbaa !5
  %71 = load i32, ptr @i, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %72
  %74 = load i32, ptr @j, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [20 x i64], ptr %73, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %69, i32 noundef %70, i64 noundef %77)
  br label %79

79:                                               ; preds = %68
  %80 = load i32, ptr @j, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr @j, align 4, !tbaa !5
  br label %64, !llvm.loop !15

82:                                               ; preds = %64
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr @i, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @i, align 4, !tbaa !5
  br label %58, !llvm.loop !16

86:                                               ; preds = %58
  store i32 1, ptr @i, align 4, !tbaa !5
  %87 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %87, ptr @j, align 4, !tbaa !5
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %89 = load i32, ptr @i, align 4, !tbaa !5
  %90 = load i32, ptr @j, align 4, !tbaa !5
  call void @sequence(i32 noundef %89, i32 noundef %90)
  %91 = load i32, ptr @n, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [20 x i64], ptr getelementptr inbounds ([20 x [20 x i64]], ptr @m, i64 0, i64 1), i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !11
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %94)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  ret i32 0
}

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !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"

@s = external dso_local local_unnamed_addr global [20 x [20 x i32]], align 16
@n = external dso_local global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global [20 x [20 x i64]], align 16
@p = external dso_local global [20 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sequence(i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @matrix_multiply() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n)
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not16 = icmp slt i32 %4, 0
  br i1 %.not16, label %.preheader14.thread, label %.lr.ph

.preheader14:                                     ; preds = %.lr.ph
  %.not622 = icmp slt i32 %14, 1
  br i1 %.not622, label %.preheader14.thread, label %.preheader13.preheader

.preheader13.preheader:                           ; preds = %.preheader14
  %5 = zext nneg i32 %14 to i64
  %6 = shl nuw nsw i64 %5, 2
  %7 = add nuw i32 %14, 1
  %8 = zext nneg i32 %14 to i64
  %xtraiter = and i64 %8, 3
  %9 = icmp ult i32 %14, 4
  %unroll_iter = and i64 %8, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader13

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = trunc nuw nsw i64 %indvars.iv to i32
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %10)
  %12 = getelementptr inbounds [20 x i32], ptr @p, i64 0, i64 %indvars.iv
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not.not = icmp slt i64 %indvars.iv, %15
  br i1 %.not.not, label %.lr.ph, label %.preheader14, !llvm.loop !9

.preheader13:                                     ; preds = %.preheader13.preheader, %._crit_edge
  %indvars.iv43 = phi i64 [ 1, %.preheader13.preheader ], [ %indvars.iv.next44, %._crit_edge ]
  %indvar = phi i64 [ 0, %.preheader13.preheader ], [ %indvar.next, %._crit_edge ]
  %16 = mul nuw nsw i64 %indvar, 80
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @s, i64 84), i64 %16
  %17 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv43
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep, i8 0, i64 %6, i1 false), !tbaa !5
  br i1 %9, label %._crit_edge.unr-lcssa, label %.preheader13.new

.preheader13.new:                                 ; preds = %.preheader13, %.preheader13.new
  %indvars.iv40 = phi i64 [ %indvars.iv.next41.3, %.preheader13.new ], [ 1, %.preheader13 ]
  %niter = phi i64 [ %niter.next.3, %.preheader13.new ], [ 0, %.preheader13 ]
  store i64 0, ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv40
  store i64 999999999, ptr %18, align 8, !tbaa !11
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  store i64 0, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv.next41
  store i64 999999999, ptr %19, align 8, !tbaa !11
  %indvars.iv.next41.1 = add nuw nsw i64 %indvars.iv40, 2
  store i64 0, ptr %17, align 8, !tbaa !11
  %20 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv.next41.1
  store i64 999999999, ptr %20, align 8, !tbaa !11
  %indvars.iv.next41.2 = add nuw nsw i64 %indvars.iv40, 3
  store i64 0, ptr %17, align 8, !tbaa !11
  %21 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv.next41.2
  store i64 999999999, ptr %21, align 8, !tbaa !11
  %indvars.iv.next41.3 = add nuw nsw i64 %indvars.iv40, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.preheader13.new, !llvm.loop !13

._crit_edge.unr-lcssa:                            ; preds = %.preheader13.new, %.preheader13
  %indvars.iv40.unr = phi i64 [ 1, %.preheader13 ], [ %indvars.iv.next41.3, %.preheader13.new ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %indvars.iv40.epil = phi i64 [ %indvars.iv.next41.epil, %.epil.preheader ], [ %indvars.iv40.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  store i64 0, ptr %17, align 8, !tbaa !11
  %22 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %indvars.iv43, i64 %indvars.iv40.epil
  store i64 999999999, ptr %22, align 8, !tbaa !11
  %indvars.iv.next41.epil = add nuw nsw i64 %indvars.iv40.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond47.not = icmp eq i64 %indvar.next, %5
  br i1 %exitcond47.not, label %._crit_edge24, label %.preheader13, !llvm.loop !16

._crit_edge24:                                    ; preds = %._crit_edge
  %23 = trunc nuw i64 %indvars.iv.next44 to i32
  store i32 %7, ptr @j, align 4, !tbaa !5
  br label %.preheader14.thread

.preheader14.thread:                              ; preds = %0, %._crit_edge24, %.preheader14
  %storemerge.lcssa = phi i32 [ %23, %._crit_edge24 ], [ 1, %.preheader14 ], [ 1, %0 ]
  store i32 %storemerge.lcssa, ptr @i, align 4, !tbaa !5
  tail call void @matrix_multiply()
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  store i32 1, ptr @i, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %.not831 = icmp slt i32 %25, 1
  br i1 %.not831, label %._crit_edge33, label %.preheader

.preheader:                                       ; preds = %.preheader14.thread, %._crit_edge30
  %26 = phi i32 [ %36, %._crit_edge30 ], [ %25, %.preheader14.thread ]
  %storemerge732 = phi i32 [ %38, %._crit_edge30 ], [ 1, %.preheader14.thread ]
  store i32 %storemerge732, ptr @j, align 4, !tbaa !5
  %.not1027 = icmp sgt i32 %storemerge732, %26
  br i1 %.not1027, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %.preheader, %.lr.ph29
  %storemerge928 = phi i32 [ %34, %.lr.ph29 ], [ %storemerge732, %.preheader ]
  %27 = load i32, ptr @i, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = sext i32 %storemerge928 to i64
  %30 = getelementptr inbounds [20 x [20 x i64]], ptr @m, i64 0, i64 %28, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %27, i32 noundef %storemerge928, i64 noundef %31)
  %33 = load i32, ptr @j, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr @j, align 4, !tbaa !5
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %.not10.not = icmp slt i32 %33, %35
  br i1 %.not10.not, label %.lr.ph29, label %._crit_edge30.loopexit, !llvm.loop !17

._crit_edge30.loopexit:                           ; preds = %.lr.ph29
  %.pre = load i32, ptr @i, align 4, !tbaa !5
  br label %._crit_edge30

._crit_edge30:                                    ; preds = %._crit_edge30.loopexit, %.preheader
  %36 = phi i32 [ %35, %._crit_edge30.loopexit ], [ %26, %.preheader ]
  %37 = phi i32 [ %.pre, %._crit_edge30.loopexit ], [ %storemerge732, %.preheader ]
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @i, align 4, !tbaa !5
  %.not8.not = icmp slt i32 %37, %36
  br i1 %.not8.not, label %.preheader, label %._crit_edge33, !llvm.loop !18

._crit_edge33:                                    ; preds = %._crit_edge30, %.preheader14.thread
  %.lcssa = phi i32 [ %25, %.preheader14.thread ], [ %36, %._crit_edge30 ]
  store i32 1, ptr @i, align 4, !tbaa !5
  store i32 %.lcssa, ptr @j, align 4, !tbaa !5
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %40 = load i32, ptr @i, align 4, !tbaa !5
  %41 = load i32, ptr @j, align 4, !tbaa !5
  tail call void @sequence(i32 noundef %40, i32 noundef %41)
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [20 x i64], ptr getelementptr inbounds (i8, ptr @m, i64 160), i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !11
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i64 noundef %45)
  ret i32 0
}

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

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

attributes #0 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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