; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 11/2070. Interesting Numbers (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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca [1000005 x i8], align 16
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 1000005, ptr %4) #4
  %15 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 0
  %16 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 0
  %17 = getelementptr inbounds i8, ptr %16, i64 1000005
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 0, ptr %5, align 1, !tbaa !5
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %15, ptr noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  %18 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 0
  store i8 1, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 1
  store i8 1, ptr %19, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 2, ptr %6, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %47, %0
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 1000005
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %50

24:                                               ; preds = %20
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !5, !range !11, !noundef !12
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  br label %47

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = mul nsw i32 2, %32
  store i32 %33, ptr %8, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %42, %31
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp slt i32 %35, 1000005
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %34
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 %40
  store i8 1, ptr %41, align 1, !tbaa !5
  br label %42

42:                                               ; preds = %38
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = add nsw i32 %44, %43
  store i32 %45, ptr %8, align 4, !tbaa !9
  br label %34, !llvm.loop !13

46:                                               ; preds = %37
  br label %47

47:                                               ; preds = %46, %30
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %6, align 4, !tbaa !9
  br label %20, !llvm.loop !15

50:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %51 = load i64, ptr %3, align 8, !tbaa !16
  %52 = load i64, ptr %2, align 8, !tbaa !16
  %53 = sub nsw i64 %51, %52
  %54 = add nsw i64 %53, 1
  store i64 %54, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 2, ptr %10, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %102, %50
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 1000005
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %105

59:                                               ; preds = %55
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !5, !range !11, !noundef !12
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %66

65:                                               ; preds = %59
  br label %102

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 1, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %98, %66
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = load i64, ptr %11, align 8, !tbaa !16
  %71 = mul nsw i64 %70, %69
  store i64 %71, ptr %11, align 8, !tbaa !16
  %72 = load i64, ptr %11, align 8, !tbaa !16
  %73 = load i64, ptr %3, align 8, !tbaa !16
  %74 = icmp sgt i64 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %67
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %101

76:                                               ; preds = %67
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1000005 x i8], ptr %4, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !5, !range !11, !noundef !12
  %82 = trunc i8 %81 to i1
  br i1 %82, label %97, label %83

83:                                               ; preds = %76
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 1
  br i1 %85, label %86, label %97

86:                                               ; preds = %83
  %87 = load i64, ptr %11, align 8, !tbaa !16
  %88 = load i64, ptr %2, align 8, !tbaa !16
  %89 = icmp sge i64 %87, %88
  br i1 %89, label %90, label %97

90:                                               ; preds = %86
  %91 = load i64, ptr %11, align 8, !tbaa !16
  %92 = load i64, ptr %3, align 8, !tbaa !16
  %93 = icmp sle i64 %91, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %90
  %95 = load i64, ptr %9, align 8, !tbaa !16
  %96 = add nsw i64 %95, -1
  store i64 %96, ptr %9, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %94, %90, %86, %83, %76
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %12, align 4, !tbaa !9
  br label %67, !llvm.loop !18

101:                                              ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %102

102:                                              ; preds = %101, %65
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !9
  br label %55, !llvm.loop !19

105:                                              ; preds = %58
  %106 = load i64, ptr %9, align 8, !tbaa !16
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %106)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1000005, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %108 = load i32, ptr %1, align 4
  ret i32 %108
}

; 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 noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca [1000005 x i8], align 16
  %4 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 1000005, ptr nonnull %3) #4
  %7 = getelementptr inbounds i8, ptr %3, i64 1000005
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  store i8 0, ptr %4, align 1, !tbaa !5
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %3, ptr noundef nonnull %7, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  store i8 1, ptr %3, align 16, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 1
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %14

9:                                                ; preds = %.loopexit33
  %10 = load i64, ptr %2, align 8, !tbaa !9
  %11 = load i64, ptr %1, align 8
  %12 = add i64 %10, 1
  %13 = sub i64 %12, %11
  br label %30

14:                                               ; preds = %.loopexit33.1, %0
  %indvars.iv46 = phi i64 [ 2, %0 ], [ %indvars.iv.next47.1, %.loopexit33.1 ]
  %indvars.iv = phi i64 [ 4, %0 ], [ %indvars.iv.next.1, %.loopexit33.1 ]
  %15 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv46
  %16 = load i8, ptr %15, align 2, !tbaa !5, !range !11, !noundef !12
  %17 = trunc nuw i8 %16 to i1
  %18 = icmp ugt i64 %indvars.iv46, 500002
  %or.cond43.not = or i1 %18, %17
  br i1 %or.cond43.not, label %.loopexit33, label %.lr.ph

.lr.ph:                                           ; preds = %14, %.lr.ph
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %.lr.ph ], [ %indvars.iv, %14 ]
  %19 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv48
  store i8 1, ptr %19, align 2, !tbaa !5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, %indvars.iv46
  %20 = icmp ult i64 %indvars.iv.next49, 1000005
  br i1 %20, label %.lr.ph, label %.loopexit33, !llvm.loop !13

.loopexit33:                                      ; preds = %.lr.ph, %14
  %indvars.iv.next47 = or disjoint i64 %indvars.iv46, 1
  %indvars.iv.next = or disjoint i64 %indvars.iv, 2
  %exitcond.not = icmp eq i64 %indvars.iv46, 1000004
  br i1 %exitcond.not, label %9, label %21, !llvm.loop !15

21:                                               ; preds = %.loopexit33
  %22 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv.next47
  %23 = load i8, ptr %22, align 1, !tbaa !5, !range !11, !noundef !12
  %24 = trunc nuw i8 %23 to i1
  %25 = icmp ugt i64 %indvars.iv46, 500001
  %or.cond43.not.1 = or i1 %25, %24
  br i1 %or.cond43.not.1, label %.loopexit33.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %21, %.lr.ph.1
  %indvars.iv48.1 = phi i64 [ %indvars.iv.next49.1, %.lr.ph.1 ], [ %indvars.iv.next, %21 ]
  %26 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv48.1
  store i8 1, ptr %26, align 1, !tbaa !5
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48.1, %indvars.iv.next47
  %27 = icmp ult i64 %indvars.iv.next49.1, 1000005
  br i1 %27, label %.lr.ph.1, label %.loopexit33.1, !llvm.loop !13

.loopexit33.1:                                    ; preds = %.lr.ph.1, %21
  %indvars.iv.next47.1 = add nuw nsw i64 %indvars.iv46, 2
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 4
  br label %14

28:                                               ; preds = %.loopexit
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.3)
  call void @llvm.lifetime.end.p0(i64 1000005, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 0

30:                                               ; preds = %9, %.loopexit
  %indvars.iv55 = phi i64 [ 2, %9 ], [ %indvars.iv.next56, %.loopexit ]
  %.02539 = phi i64 [ %13, %9 ], [ %.3, %.loopexit ]
  %31 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv55
  %32 = load i8, ptr %31, align 1, !tbaa !5, !range !11, !noundef !12
  %33 = trunc nuw i8 %32 to i1
  %34 = icmp slt i64 %10, %indvars.iv55
  %or.cond44 = select i1 %33, i1 true, i1 %34
  br i1 %or.cond44, label %.loopexit, label %.lr.ph38

.lr.ph38:                                         ; preds = %30, %.lr.ph38
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.lr.ph38 ], [ 1, %30 ]
  %35 = phi i64 [ %41, %.lr.ph38 ], [ %indvars.iv55, %30 ]
  %.136 = phi i64 [ %.2, %.lr.ph38 ], [ %.02539, %30 ]
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %36 = getelementptr inbounds [1000005 x i8], ptr %3, i64 0, i64 %indvars.iv.next53
  %37 = load i8, ptr %36, align 1, !tbaa !5, !range !11, !noundef !12
  %38 = trunc nuw i8 %37 to i1
  %39 = icmp eq i64 %indvars.iv52, 1
  %or.cond.not = or i1 %39, %38
  %.not = icmp sge i64 %35, %11
  %not.or.cond.not = xor i1 %or.cond.not, true
  %or.cond = select i1 %not.or.cond.not, i1 %.not, i1 false
  %40 = sext i1 %or.cond to i64
  %.2 = add nsw i64 %.136, %40
  %41 = mul nuw nsw i64 %35, %indvars.iv55
  %42 = icmp sgt i64 %41, %10
  br i1 %42, label %.loopexit, label %.lr.ph38, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph38, %30
  %.3 = phi i64 [ %.02539, %30 ], [ %.2, %.lr.ph38 ]
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next56, 1000005
  br i1 %exitcond58.not, label %28, label %30, !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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass