; LLVM IR from codemistic/Data-Structures-and-Algorithms :: Arrays (21_Multiple_Missing_Elements_in_Sorted_Array)

; 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_ostream" = type { ptr, %"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 }

@__const.main.A = external hidden unnamed_addr constant [11 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [11 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 44, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.A, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %6 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 0
  %7 = load i32, ptr %6, align 16, !tbaa !5
  store i32 %7, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 11, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %42, %0
  %9 = load i32, ptr %5, align 4, !tbaa !5
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %13, label %12

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

13:                                               ; preds = %8
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = sub nsw i32 %17, 1
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = icmp ne i32 %18, %19
  br i1 %20, label %21, label %41

21:                                               ; preds = %13
  br label %22

22:                                               ; preds = %31, %21
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sub nsw i32 %27, %28
  %30 = icmp slt i32 %23, %29
  br i1 %30, label %31, label %40

31:                                               ; preds = %22
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = add nsw i32 %33, %34
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %35)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !9

40:                                               ; preds = %22
  br label %41

41:                                               ; preds = %40, %13
  br label %42

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

45:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 44, 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) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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}


; 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_ostream" = type { ptr, %"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 }

@__const.main.A = external hidden unnamed_addr constant [11 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.loopexit:
  %0 = load i32, ptr @__const.main.A, align 16, !tbaa !5
  %1 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 4), align 4, !tbaa !5
  %2 = add nsw i32 %1, -1
  %.not.1 = icmp eq i32 %2, %0
  br i1 %.not.1, label %.loopexit.1, label %.preheader.1

.preheader.1:                                     ; preds = %.loopexit
  %3 = add nsw i32 %1, -1
  %4 = icmp slt i32 %0, %3
  br i1 %4, label %.lr.ph.1, label %.loopexit.1

.lr.ph.1:                                         ; preds = %.preheader.1, %.lr.ph.1
  %.112.1 = phi i32 [ %6, %.lr.ph.1 ], [ %0, %.preheader.1 ]
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %6 = add i32 %.112.1, 1
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %6)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %exitcond25.not = icmp eq i32 %6, %3
  br i1 %exitcond25.not, label %.loopexit.1, label %.lr.ph.1, !llvm.loop !9

.loopexit.1:                                      ; preds = %.lr.ph.1, %.preheader.1, %.loopexit
  %.2.1 = phi i32 [ %0, %.loopexit ], [ %0, %.preheader.1 ], [ %3, %.lr.ph.1 ]
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 8), align 8, !tbaa !5
  %10 = add nsw i32 %9, -1
  %.not.2 = icmp eq i32 %10, %.2.1
  br i1 %.not.2, label %.loopexit.2, label %.preheader.2

.preheader.2:                                     ; preds = %.loopexit.1
  %11 = add nsw i32 %9, -2
  %12 = icmp slt i32 %.2.1, %11
  br i1 %12, label %.lr.ph.2, label %.loopexit.2

.lr.ph.2:                                         ; preds = %.preheader.2, %.lr.ph.2
  %.112.2 = phi i32 [ %17, %.lr.ph.2 ], [ %.2.1, %.preheader.2 ]
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %14 = add nsw i32 %.112.2, 2
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %14)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %17 = add i32 %.112.2, 1
  %exitcond24.not = icmp eq i32 %17, %11
  br i1 %exitcond24.not, label %.loopexit.2, label %.lr.ph.2, !llvm.loop !9

.loopexit.2:                                      ; preds = %.lr.ph.2, %.preheader.2, %.loopexit.1
  %.2.2 = phi i32 [ %.2.1, %.loopexit.1 ], [ %.2.1, %.preheader.2 ], [ %11, %.lr.ph.2 ]
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 12), align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  %.not.3 = icmp eq i32 %19, %.2.2
  br i1 %.not.3, label %.loopexit.3, label %.preheader.3

.preheader.3:                                     ; preds = %.loopexit.2
  %20 = add nsw i32 %18, -3
  %21 = icmp slt i32 %.2.2, %20
  br i1 %21, label %.lr.ph.3, label %.loopexit.3

.lr.ph.3:                                         ; preds = %.preheader.3, %.lr.ph.3
  %.112.3 = phi i32 [ %26, %.lr.ph.3 ], [ %.2.2, %.preheader.3 ]
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %23 = add nsw i32 %.112.3, 3
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %23)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %26 = add i32 %.112.3, 1
  %exitcond23.not = icmp eq i32 %26, %20
  br i1 %exitcond23.not, label %.loopexit.3, label %.lr.ph.3, !llvm.loop !9

.loopexit.3:                                      ; preds = %.lr.ph.3, %.preheader.3, %.loopexit.2
  %.2.3 = phi i32 [ %.2.2, %.loopexit.2 ], [ %.2.2, %.preheader.3 ], [ %20, %.lr.ph.3 ]
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 16), align 16, !tbaa !5
  %28 = add nsw i32 %27, -1
  %.not.4 = icmp eq i32 %28, %.2.3
  br i1 %.not.4, label %.loopexit.4, label %.preheader.4

.preheader.4:                                     ; preds = %.loopexit.3
  %29 = add nsw i32 %27, -4
  %30 = icmp slt i32 %.2.3, %29
  br i1 %30, label %.lr.ph.4, label %.loopexit.4

.lr.ph.4:                                         ; preds = %.preheader.4, %.lr.ph.4
  %.112.4 = phi i32 [ %35, %.lr.ph.4 ], [ %.2.3, %.preheader.4 ]
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %32 = add nsw i32 %.112.4, 4
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %32)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %35 = add i32 %.112.4, 1
  %exitcond22.not = icmp eq i32 %35, %29
  br i1 %exitcond22.not, label %.loopexit.4, label %.lr.ph.4, !llvm.loop !9

.loopexit.4:                                      ; preds = %.lr.ph.4, %.preheader.4, %.loopexit.3
  %.2.4 = phi i32 [ %.2.3, %.loopexit.3 ], [ %.2.3, %.preheader.4 ], [ %29, %.lr.ph.4 ]
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 20), align 4, !tbaa !5
  %37 = add nsw i32 %36, -1
  %.not.5 = icmp eq i32 %37, %.2.4
  br i1 %.not.5, label %.loopexit.5, label %.preheader.5

.preheader.5:                                     ; preds = %.loopexit.4
  %38 = add nsw i32 %36, -5
  %39 = icmp slt i32 %.2.4, %38
  br i1 %39, label %.lr.ph.5, label %.loopexit.5

.lr.ph.5:                                         ; preds = %.preheader.5, %.lr.ph.5
  %.112.5 = phi i32 [ %44, %.lr.ph.5 ], [ %.2.4, %.preheader.5 ]
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %41 = add nsw i32 %.112.5, 5
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %41)
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %44 = add i32 %.112.5, 1
  %exitcond21.not = icmp eq i32 %44, %38
  br i1 %exitcond21.not, label %.loopexit.5, label %.lr.ph.5, !llvm.loop !9

.loopexit.5:                                      ; preds = %.lr.ph.5, %.preheader.5, %.loopexit.4
  %.2.5 = phi i32 [ %.2.4, %.loopexit.4 ], [ %.2.4, %.preheader.5 ], [ %38, %.lr.ph.5 ]
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 24), align 8, !tbaa !5
  %46 = add nsw i32 %45, -1
  %.not.6 = icmp eq i32 %46, %.2.5
  br i1 %.not.6, label %.loopexit.6, label %.preheader.6

.preheader.6:                                     ; preds = %.loopexit.5
  %47 = add nsw i32 %45, -6
  %48 = icmp slt i32 %.2.5, %47
  br i1 %48, label %.lr.ph.6, label %.loopexit.6

.lr.ph.6:                                         ; preds = %.preheader.6, %.lr.ph.6
  %.112.6 = phi i32 [ %53, %.lr.ph.6 ], [ %.2.5, %.preheader.6 ]
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %50 = add nsw i32 %.112.6, 6
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %49, i32 noundef %50)
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %53 = add i32 %.112.6, 1
  %exitcond20.not = icmp eq i32 %53, %47
  br i1 %exitcond20.not, label %.loopexit.6, label %.lr.ph.6, !llvm.loop !9

.loopexit.6:                                      ; preds = %.lr.ph.6, %.preheader.6, %.loopexit.5
  %.2.6 = phi i32 [ %.2.5, %.loopexit.5 ], [ %.2.5, %.preheader.6 ], [ %47, %.lr.ph.6 ]
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 28), align 4, !tbaa !5
  %55 = add nsw i32 %54, -1
  %.not.7 = icmp eq i32 %55, %.2.6
  br i1 %.not.7, label %.loopexit.7, label %.preheader.7

.preheader.7:                                     ; preds = %.loopexit.6
  %56 = add nsw i32 %54, -7
  %57 = icmp slt i32 %.2.6, %56
  br i1 %57, label %.lr.ph.7, label %.loopexit.7

.lr.ph.7:                                         ; preds = %.preheader.7, %.lr.ph.7
  %.112.7 = phi i32 [ %62, %.lr.ph.7 ], [ %.2.6, %.preheader.7 ]
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %59 = add nsw i32 %.112.7, 7
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %59)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %62 = add i32 %.112.7, 1
  %exitcond19.not = icmp eq i32 %62, %56
  br i1 %exitcond19.not, label %.loopexit.7, label %.lr.ph.7, !llvm.loop !9

.loopexit.7:                                      ; preds = %.lr.ph.7, %.preheader.7, %.loopexit.6
  %.2.7 = phi i32 [ %.2.6, %.loopexit.6 ], [ %.2.6, %.preheader.7 ], [ %56, %.lr.ph.7 ]
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 32), align 16, !tbaa !5
  %64 = add nsw i32 %63, -1
  %.not.8 = icmp eq i32 %64, %.2.7
  br i1 %.not.8, label %.loopexit.8, label %.preheader.8

.preheader.8:                                     ; preds = %.loopexit.7
  %65 = add nsw i32 %63, -8
  %66 = icmp slt i32 %.2.7, %65
  br i1 %66, label %.lr.ph.8, label %.loopexit.8

.lr.ph.8:                                         ; preds = %.preheader.8, %.lr.ph.8
  %.112.8 = phi i32 [ %71, %.lr.ph.8 ], [ %.2.7, %.preheader.8 ]
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %68 = add nsw i32 %.112.8, 8
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef %68)
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %71 = add i32 %.112.8, 1
  %exitcond18.not = icmp eq i32 %71, %65
  br i1 %exitcond18.not, label %.loopexit.8, label %.lr.ph.8, !llvm.loop !9

.loopexit.8:                                      ; preds = %.lr.ph.8, %.preheader.8, %.loopexit.7
  %.2.8 = phi i32 [ %.2.7, %.loopexit.7 ], [ %.2.7, %.preheader.8 ], [ %65, %.lr.ph.8 ]
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 36), align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  %.not.9 = icmp eq i32 %73, %.2.8
  br i1 %.not.9, label %.loopexit.9, label %.preheader.9

.preheader.9:                                     ; preds = %.loopexit.8
  %74 = add nsw i32 %72, -9
  %75 = icmp slt i32 %.2.8, %74
  br i1 %75, label %.lr.ph.9, label %.loopexit.9

.lr.ph.9:                                         ; preds = %.preheader.9, %.lr.ph.9
  %.112.9 = phi i32 [ %80, %.lr.ph.9 ], [ %.2.8, %.preheader.9 ]
  %76 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %77 = add nsw i32 %.112.9, 9
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %76, i32 noundef %77)
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %80 = add i32 %.112.9, 1
  %exitcond17.not = icmp eq i32 %80, %74
  br i1 %exitcond17.not, label %.loopexit.9, label %.lr.ph.9, !llvm.loop !9

.loopexit.9:                                      ; preds = %.lr.ph.9, %.preheader.9, %.loopexit.8
  %.2.9 = phi i32 [ %.2.8, %.loopexit.8 ], [ %.2.8, %.preheader.9 ], [ %74, %.lr.ph.9 ]
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.A, i64 40), align 8, !tbaa !5
  %82 = add nsw i32 %81, -1
  %.not.10 = icmp eq i32 %82, %.2.9
  br i1 %.not.10, label %.loopexit.10, label %.preheader.10

.preheader.10:                                    ; preds = %.loopexit.9
  %83 = add nsw i32 %81, -10
  %84 = icmp slt i32 %.2.9, %83
  br i1 %84, label %.lr.ph.10, label %.loopexit.10

.lr.ph.10:                                        ; preds = %.preheader.10, %.lr.ph.10
  %.112.10 = phi i32 [ %89, %.lr.ph.10 ], [ %.2.9, %.preheader.10 ]
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %86 = add nsw i32 %.112.10, 10
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %85, i32 noundef %86)
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %89 = add i32 %.112.10, 1
  %exitcond.not = icmp eq i32 %89, %83
  br i1 %exitcond.not, label %.loopexit.10, label %.lr.ph.10, !llvm.loop !9

.loopexit.10:                                     ; preds = %.lr.ph.10, %.preheader.10, %.loopexit.9
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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 = { 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 #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 = { 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" }

!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"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass