; LLVM IR from smv1999/CompetitiveProgrammingQuestionBank :: 2D Arrays (matrix_find_string_row_wise)

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca [1001 x i8], align 16
  %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 i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = zext i32 %14 to i64
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %3, align 8
  %19 = mul nuw i64 %15, %17
  %20 = alloca i8, i64 %19, align 16
  store i64 %15, ptr %4, align 8
  store i64 %17, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1001, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %45, %0
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %48

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %41, %26
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %44

32:                                               ; preds = %27
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = mul nsw i64 %34, %17
  %36 = getelementptr inbounds i8, ptr %20, i64 %35
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %36, i64 %38
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %39)
  br label %41

41:                                               ; preds = %32
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !5
  br label %27, !llvm.loop !9

44:                                               ; preds = %31
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !11

48:                                               ; preds = %25
  %49 = getelementptr inbounds [1001 x i8], ptr %6, i64 0, i64 0
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %96, %48
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %99

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %82, %56
  %58 = load i32, ptr %12, align 4, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %85

62:                                               ; preds = %57
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1001 x i8], ptr %6, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !12
  %67 = sext i8 %66 to i32
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = mul nsw i64 %69, %17
  %71 = getelementptr inbounds i8, ptr %20, i64 %70
  %72 = load i32, ptr %12, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i8, ptr %71, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !12
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %67, %76
  br i1 %77, label %78, label %81

78:                                               ; preds = %62
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %10, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %78, %62
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !5
  br label %57, !llvm.loop !13

85:                                               ; preds = %61
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1001 x i8], ptr %6, i64 0, i64 0
  %89 = call i64 @strlen(ptr noundef %88) #6
  %90 = icmp eq i64 %87, %89
  br i1 %90, label %91, label %95

91:                                               ; preds = %85
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %93)
  br label %95

95:                                               ; preds = %91, %85
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %11, align 4, !tbaa !5
  br label %51, !llvm.loop !14

99:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1001, ptr %6) #5
  %100 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %100)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %101 = load i32, ptr %1, align 4
  ret i32 %101
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 }
attributes #4 = { nounwind willreturn memory(read) "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 }
attributes #6 = { nounwind willreturn memory(read) }

!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 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !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"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [1001 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = zext i32 %4 to i64
  %6 = call ptr @llvm.stacksave.p0()
  %7 = mul nuw i64 %5, %5
  %8 = alloca i8, i64 %7, align 16
  call void @llvm.lifetime.start.p0(i64 1001, ptr nonnull %2) #5
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader21, label %._crit_edge24

.preheader21:                                     ; preds = %0, %._crit_edge
  %11 = phi i32 [ %18, %._crit_edge ], [ %9, %0 ]
  %indvars.iv33 = phi i64 [ %indvars.iv.next34, %._crit_edge ], [ 0, %0 ]
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %.preheader21.._crit_edge_crit_edge

.preheader21.._crit_edge_crit_edge:               ; preds = %.preheader21
  %.pre42 = sext i32 %11 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader21
  %13 = mul nuw nsw i64 %indvars.iv33, %5
  %14 = getelementptr inbounds i8, ptr %8, i64 %13
  br label %20

._crit_edge24:                                    ; preds = %._crit_edge, %0
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.preheader, label %._crit_edge30

._crit_edge:                                      ; preds = %20, %.preheader21.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre42, %.preheader21.._crit_edge_crit_edge ], [ %24, %20 ]
  %18 = phi i32 [ %11, %.preheader21.._crit_edge_crit_edge ], [ %23, %20 ]
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %19 = icmp slt i64 %indvars.iv.next34, %.pre-phi
  br i1 %19, label %.preheader21, label %._crit_edge24, !llvm.loop !9

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %21 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %21)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %indvars.iv.next, %24
  br i1 %25, label %20, label %._crit_edge, !llvm.loop !12

.preheader:                                       ; preds = %._crit_edge24, %._crit_edge28._crit_edge
  %26 = phi i32 [ %74, %._crit_edge28._crit_edge ], [ %16, %._crit_edge24 ]
  %indvars.iv39 = phi i64 [ %41, %._crit_edge28._crit_edge ], [ 0, %._crit_edge24 ]
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph27, label %._crit_edge28

.lr.ph27:                                         ; preds = %.preheader
  %28 = mul nuw nsw i64 %indvars.iv39, %5
  %29 = getelementptr inbounds i8, ptr %8, i64 %28
  %wide.trip.count = zext nneg i32 %26 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %30 = icmp ult i32 %26, 4
  br i1 %30, label %._crit_edge28.loopexit.unr-lcssa, label %.lr.ph27.new

.lr.ph27.new:                                     ; preds = %.lr.ph27
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %42

._crit_edge30:                                    ; preds = %._crit_edge28._crit_edge, %._crit_edge24
  call void @llvm.lifetime.end.p0(i64 1001, ptr nonnull %2) #5
  call void @llvm.stackrestore.p0(ptr %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

._crit_edge28.loopexit.unr-lcssa:                 ; preds = %42, %.lr.ph27
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph27 ], [ %spec.select.3, %42 ]
  %indvars.iv36.unr = phi i64 [ 0, %.lr.ph27 ], [ %indvars.iv.next37.3, %42 ]
  %.125.unr = phi i32 [ 0, %.lr.ph27 ], [ %spec.select.3, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge28, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge28.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv36.epil = phi i64 [ %indvars.iv.next37.epil, %.epil.preheader ], [ %indvars.iv36.unr, %._crit_edge28.loopexit.unr-lcssa ]
  %.125.epil = phi i32 [ %spec.select.epil, %.epil.preheader ], [ %.125.unr, %._crit_edge28.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge28.loopexit.unr-lcssa ]
  %31 = zext nneg i32 %.125.epil to i64
  %32 = getelementptr inbounds [1001 x i8], ptr %2, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv36.epil
  %35 = load i8, ptr %34, align 1, !tbaa !13
  %36 = icmp eq i8 %33, %35
  %37 = zext i1 %36 to i32
  %spec.select.epil = add nuw nsw i32 %.125.epil, %37
  %indvars.iv.next37.epil = add nuw nsw i64 %indvars.iv36.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_edge28, label %.epil.preheader, !llvm.loop !14

._crit_edge28:                                    ; preds = %._crit_edge28.loopexit.unr-lcssa, %.epil.preheader, %.preheader
  %.1.lcssa = phi i32 [ 0, %.preheader ], [ %spec.select.lcssa.ph, %._crit_edge28.loopexit.unr-lcssa ], [ %spec.select.epil, %.epil.preheader ]
  %38 = sext i32 %.1.lcssa to i64
  %39 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #6
  %40 = icmp eq i64 %39, %38
  %41 = add nuw nsw i64 %indvars.iv39, 1
  br i1 %40, label %71, label %._crit_edge28._crit_edge

42:                                               ; preds = %42, %.lr.ph27.new
  %indvars.iv36 = phi i64 [ 0, %.lr.ph27.new ], [ %indvars.iv.next37.3, %42 ]
  %.125 = phi i32 [ 0, %.lr.ph27.new ], [ %spec.select.3, %42 ]
  %niter = phi i64 [ 0, %.lr.ph27.new ], [ %niter.next.3, %42 ]
  %43 = zext nneg i32 %.125 to i64
  %44 = getelementptr inbounds [1001 x i8], ptr %2, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv36
  %47 = load i8, ptr %46, align 1, !tbaa !13
  %48 = icmp eq i8 %45, %47
  %49 = zext i1 %48 to i32
  %spec.select = add nuw nsw i32 %.125, %49
  %indvars.iv.next37 = or disjoint i64 %indvars.iv36, 1
  %50 = zext nneg i32 %spec.select to i64
  %51 = getelementptr inbounds [1001 x i8], ptr %2, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv.next37
  %54 = load i8, ptr %53, align 1, !tbaa !13
  %55 = icmp eq i8 %52, %54
  %56 = zext i1 %55 to i32
  %spec.select.1 = add nuw nsw i32 %spec.select, %56
  %indvars.iv.next37.1 = or disjoint i64 %indvars.iv36, 2
  %57 = zext nneg i32 %spec.select.1 to i64
  %58 = getelementptr inbounds [1001 x i8], ptr %2, i64 0, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !13
  %60 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv.next37.1
  %61 = load i8, ptr %60, align 1, !tbaa !13
  %62 = icmp eq i8 %59, %61
  %63 = zext i1 %62 to i32
  %spec.select.2 = add nuw nsw i32 %spec.select.1, %63
  %indvars.iv.next37.2 = or disjoint i64 %indvars.iv36, 3
  %64 = zext nneg i32 %spec.select.2 to i64
  %65 = getelementptr inbounds [1001 x i8], ptr %2, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !13
  %67 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv.next37.2
  %68 = load i8, ptr %67, align 1, !tbaa !13
  %69 = icmp eq i8 %66, %68
  %70 = zext i1 %69 to i32
  %spec.select.3 = add nuw nsw i32 %spec.select.2, %70
  %indvars.iv.next37.3 = add nuw nsw i64 %indvars.iv36, 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_edge28.loopexit.unr-lcssa, label %42, !llvm.loop !16

71:                                               ; preds = %._crit_edge28
  %72 = trunc nuw nsw i64 %41 to i32
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %72)
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge28._crit_edge

._crit_edge28._crit_edge:                         ; preds = %._crit_edge28, %71
  %74 = phi i32 [ %.pre, %71 ], [ %26, %._crit_edge28 ]
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %41, %75
  br i1 %76, label %.preheader, label %._crit_edge30, !llvm.loop !17
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; 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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { nofree 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 }
attributes #6 = { nounwind willreturn memory(read) }

!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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass