; LLVM IR from hao14293/2021-Postgraduate-408 :: Data-Structure/Sort/sorts (bubbleSort)

; 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 [8 x i32], align 16
@_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 [8 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 8, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = sub nsw i32 %9, 1
  store i32 %10, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %58, %0
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %14, label %17

14:                                               ; preds = %11
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 1
  br label %17

17:                                               ; preds = %14, %11
  %18 = phi i1 [ false, %11 ], [ %16, %14 ]
  br i1 %18, label %19, label %61

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

20:                                               ; preds = %55, %19
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp sle i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %58

25:                                               ; preds = %20
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sub nsw i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp sgt i32 %30, %34
  br i1 %35, label %36, label %54

36:                                               ; preds = %25
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sub nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %41, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %48
  store i32 %45, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %54

54:                                               ; preds = %36, %25
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !9

58:                                               ; preds = %24
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %11, !llvm.loop !11

61:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %73, %61
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %76

67:                                               ; preds = %62
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %71)
  br label %73

73:                                               ; preds = %67
  %74 = load i32, ptr %8, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !5
  br label %62, !llvm.loop !12

76:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #4
  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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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 = { "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 = !{!"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 = distinct !{!12, !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 [8 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader23:
  %.sroa.0.0.copyload = load i32, ptr @__const.main.a, align 16
  %.sroa.18.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 4), align 4
  %.sroa.40.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 8), align 8
  %.sroa.62.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 12), align 4
  %.sroa.84.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 16), align 16
  %.sroa.106.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 20), align 4
  %.sroa.128.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 24), align 8
  %.sroa.150.0.copyload = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.a, i64 28), align 4
  %0 = icmp sgt i32 %.sroa.0.0.copyload, %.sroa.18.0.copyload
  %.sroa.0.7 = select i1 %0, i32 %.sroa.18.0.copyload, i32 %.sroa.0.0.copyload
  %1 = select i1 %0, i32 %.sroa.0.0.copyload, i32 %.sroa.18.0.copyload
  %.2 = select i1 %0, i32 1, i32 0
  %2 = icmp sgt i32 %1, %.sroa.40.0.copyload
  %.sroa.18.21 = select i1 %2, i32 %.sroa.40.0.copyload, i32 %1
  %3 = select i1 %2, i32 %1, i32 %.sroa.40.0.copyload
  %.2.1 = select i1 %2, i32 1, i32 %.2
  %4 = icmp sgt i32 %3, %.sroa.62.0.copyload
  %.sroa.40.21 = select i1 %4, i32 %.sroa.62.0.copyload, i32 %3
  %5 = select i1 %4, i32 %3, i32 %.sroa.62.0.copyload
  %.2.2 = select i1 %4, i32 1, i32 %.2.1
  %6 = icmp sgt i32 %5, %.sroa.84.0.copyload
  %.sroa.62.21 = select i1 %6, i32 %.sroa.84.0.copyload, i32 %5
  %7 = select i1 %6, i32 %5, i32 %.sroa.84.0.copyload
  %.2.3 = select i1 %6, i32 1, i32 %.2.2
  %8 = icmp sgt i32 %7, %.sroa.106.0.copyload
  %.sroa.84.21 = select i1 %8, i32 %.sroa.106.0.copyload, i32 %7
  %9 = select i1 %8, i32 %7, i32 %.sroa.106.0.copyload
  %.2.4 = select i1 %8, i32 1, i32 %.2.3
  %10 = icmp sgt i32 %9, %.sroa.128.0.copyload
  %.sroa.106.21 = select i1 %10, i32 %.sroa.128.0.copyload, i32 %9
  %11 = select i1 %10, i32 %9, i32 %.sroa.128.0.copyload
  %.2.5 = select i1 %10, i32 1, i32 %.2.4
  %12 = icmp sgt i32 %11, %.sroa.150.0.copyload
  %.sroa.150.14 = select i1 %12, i32 %11, i32 %.sroa.150.0.copyload
  %.sroa.128.21 = select i1 %12, i32 %.sroa.150.0.copyload, i32 %11
  %.2.6 = select i1 %12, i32 1, i32 %.2.5
  %13 = icmp eq i32 %.2.6, 1
  br i1 %13, label %.preheader23.1, label %.preheader.preheader, !llvm.loop !5

.preheader23.1:                                   ; preds = %.preheader23
  %14 = icmp sgt i32 %.sroa.0.7, %.sroa.18.21
  %.sroa.0.0 = select i1 %14, i32 %.sroa.18.21, i32 %.sroa.0.7
  %15 = select i1 %14, i32 %.sroa.0.7, i32 %.sroa.18.21
  %.2.138 = select i1 %14, i32 1, i32 0
  %16 = icmp sgt i32 %15, %.sroa.40.21
  %.sroa.18.2 = select i1 %16, i32 %.sroa.40.21, i32 %15
  %17 = select i1 %16, i32 %15, i32 %.sroa.40.21
  %.2.1.1 = select i1 %16, i32 1, i32 %.2.138
  %18 = icmp sgt i32 %17, %.sroa.62.21
  %.sroa.40.2 = select i1 %18, i32 %.sroa.62.21, i32 %17
  %19 = select i1 %18, i32 %17, i32 %.sroa.62.21
  %.2.2.1 = select i1 %18, i32 1, i32 %.2.1.1
  %20 = icmp sgt i32 %19, %.sroa.84.21
  %.sroa.62.2 = select i1 %20, i32 %.sroa.84.21, i32 %19
  %21 = select i1 %20, i32 %19, i32 %.sroa.84.21
  %.2.3.1 = select i1 %20, i32 1, i32 %.2.2.1
  %22 = icmp sgt i32 %21, %.sroa.106.21
  %.sroa.84.2 = select i1 %22, i32 %.sroa.106.21, i32 %21
  %23 = select i1 %22, i32 %21, i32 %.sroa.106.21
  %.2.4.1 = select i1 %22, i32 1, i32 %.2.3.1
  %24 = icmp sgt i32 %23, %.sroa.128.21
  %.sroa.128.1 = select i1 %24, i32 %23, i32 %.sroa.128.21
  %.sroa.106.2 = select i1 %24, i32 %.sroa.128.21, i32 %23
  %.2.5.1 = select i1 %24, i32 1, i32 %.2.4.1
  %25 = icmp eq i32 %.2.5.1, 1
  br i1 %25, label %.preheader23.2, label %.preheader.preheader, !llvm.loop !5

.preheader23.2:                                   ; preds = %.preheader23.1
  %26 = icmp sgt i32 %.sroa.0.0, %.sroa.18.2
  %.sroa.0.1 = select i1 %26, i32 %.sroa.18.2, i32 %.sroa.0.0
  %27 = select i1 %26, i32 %.sroa.0.0, i32 %.sroa.18.2
  %.2.240 = select i1 %26, i32 1, i32 0
  %28 = icmp sgt i32 %27, %.sroa.40.2
  %.sroa.18.5 = select i1 %28, i32 %.sroa.40.2, i32 %27
  %29 = select i1 %28, i32 %27, i32 %.sroa.40.2
  %.2.1.2 = select i1 %28, i32 1, i32 %.2.240
  %30 = icmp sgt i32 %29, %.sroa.62.2
  %.sroa.40.5 = select i1 %30, i32 %.sroa.62.2, i32 %29
  %31 = select i1 %30, i32 %29, i32 %.sroa.62.2
  %.2.2.2 = select i1 %30, i32 1, i32 %.2.1.2
  %32 = icmp sgt i32 %31, %.sroa.84.2
  %.sroa.62.5 = select i1 %32, i32 %.sroa.84.2, i32 %31
  %33 = select i1 %32, i32 %31, i32 %.sroa.84.2
  %.2.3.2 = select i1 %32, i32 1, i32 %.2.2.2
  %34 = icmp sgt i32 %33, %.sroa.106.2
  %.sroa.106.4 = select i1 %34, i32 %33, i32 %.sroa.106.2
  %.sroa.84.5 = select i1 %34, i32 %.sroa.106.2, i32 %33
  %.2.4.2 = select i1 %34, i32 1, i32 %.2.3.2
  %35 = icmp eq i32 %.2.4.2, 1
  br i1 %35, label %.preheader23.3, label %.preheader.preheader, !llvm.loop !5

.preheader23.3:                                   ; preds = %.preheader23.2
  %36 = icmp sgt i32 %.sroa.0.1, %.sroa.18.5
  %.sroa.0.2 = select i1 %36, i32 %.sroa.18.5, i32 %.sroa.0.1
  %37 = select i1 %36, i32 %.sroa.0.1, i32 %.sroa.18.5
  %.2.342 = select i1 %36, i32 1, i32 0
  %38 = icmp sgt i32 %37, %.sroa.40.5
  %.sroa.18.8 = select i1 %38, i32 %.sroa.40.5, i32 %37
  %39 = select i1 %38, i32 %37, i32 %.sroa.40.5
  %.2.1.3 = select i1 %38, i32 1, i32 %.2.342
  %40 = icmp sgt i32 %39, %.sroa.62.5
  %.sroa.40.8 = select i1 %40, i32 %.sroa.62.5, i32 %39
  %41 = select i1 %40, i32 %39, i32 %.sroa.62.5
  %.2.2.3 = select i1 %40, i32 1, i32 %.2.1.3
  %42 = icmp sgt i32 %41, %.sroa.84.5
  %.sroa.84.7 = select i1 %42, i32 %41, i32 %.sroa.84.5
  %.sroa.62.8 = select i1 %42, i32 %.sroa.84.5, i32 %41
  %.2.3.3 = select i1 %42, i32 1, i32 %.2.2.3
  %43 = icmp eq i32 %.2.3.3, 1
  br i1 %43, label %.preheader23.4, label %.preheader.preheader, !llvm.loop !5

.preheader23.4:                                   ; preds = %.preheader23.3
  %44 = icmp sgt i32 %.sroa.0.2, %.sroa.18.8
  %.sroa.0.3 = select i1 %44, i32 %.sroa.18.8, i32 %.sroa.0.2
  %45 = select i1 %44, i32 %.sroa.0.2, i32 %.sroa.18.8
  %.2.444 = select i1 %44, i32 1, i32 0
  %46 = icmp sgt i32 %45, %.sroa.40.8
  %.sroa.18.11 = select i1 %46, i32 %.sroa.40.8, i32 %45
  %47 = select i1 %46, i32 %45, i32 %.sroa.40.8
  %.2.1.4 = select i1 %46, i32 1, i32 %.2.444
  %48 = icmp sgt i32 %47, %.sroa.62.8
  %.sroa.62.10 = select i1 %48, i32 %47, i32 %.sroa.62.8
  %.sroa.40.11 = select i1 %48, i32 %.sroa.62.8, i32 %47
  %.2.2.4 = select i1 %48, i32 1, i32 %.2.1.4
  %49 = icmp eq i32 %.2.2.4, 1
  br i1 %49, label %.preheader23.5, label %.preheader.preheader, !llvm.loop !5

.preheader23.5:                                   ; preds = %.preheader23.4
  %50 = icmp sgt i32 %.sroa.0.3, %.sroa.18.11
  %.sroa.0.4 = select i1 %50, i32 %.sroa.18.11, i32 %.sroa.0.3
  %51 = select i1 %50, i32 %.sroa.0.3, i32 %.sroa.18.11
  %.2.546 = select i1 %50, i32 1, i32 0
  %52 = icmp sgt i32 %51, %.sroa.40.11
  %.sroa.40.13 = select i1 %52, i32 %51, i32 %.sroa.40.11
  %.sroa.18.14 = select i1 %52, i32 %.sroa.40.11, i32 %51
  %.2.1.5 = select i1 %52, i32 1, i32 %.2.546
  %53 = icmp eq i32 %.2.1.5, 1
  br i1 %53, label %.preheader23.6, label %.preheader.preheader, !llvm.loop !5

.preheader23.6:                                   ; preds = %.preheader23.5
  %54 = icmp sgt i32 %.sroa.0.4, %.sroa.18.14
  %spec.select = select i1 %54, i32 %.sroa.0.4, i32 %.sroa.18.14
  %spec.select98 = select i1 %54, i32 %.sroa.18.14, i32 %.sroa.0.4
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader23.6, %.preheader23.5, %.preheader23.4, %.preheader23.3, %.preheader23.2, %.preheader23.1, %.preheader23
  %.sroa.128.19 = phi i32 [ %.sroa.128.1, %.preheader23.6 ], [ %.sroa.128.1, %.preheader23.5 ], [ %.sroa.128.1, %.preheader23.4 ], [ %.sroa.128.1, %.preheader23.3 ], [ %.sroa.128.1, %.preheader23.2 ], [ %.sroa.128.1, %.preheader23.1 ], [ %.sroa.128.21, %.preheader23 ]
  %.sroa.106.19 = phi i32 [ %.sroa.106.4, %.preheader23.6 ], [ %.sroa.106.4, %.preheader23.5 ], [ %.sroa.106.4, %.preheader23.4 ], [ %.sroa.106.4, %.preheader23.3 ], [ %.sroa.106.4, %.preheader23.2 ], [ %.sroa.106.2, %.preheader23.1 ], [ %.sroa.106.21, %.preheader23 ]
  %.sroa.84.19 = phi i32 [ %.sroa.84.7, %.preheader23.6 ], [ %.sroa.84.7, %.preheader23.5 ], [ %.sroa.84.7, %.preheader23.4 ], [ %.sroa.84.7, %.preheader23.3 ], [ %.sroa.84.5, %.preheader23.2 ], [ %.sroa.84.2, %.preheader23.1 ], [ %.sroa.84.21, %.preheader23 ]
  %.sroa.62.19 = phi i32 [ %.sroa.62.10, %.preheader23.6 ], [ %.sroa.62.10, %.preheader23.5 ], [ %.sroa.62.10, %.preheader23.4 ], [ %.sroa.62.8, %.preheader23.3 ], [ %.sroa.62.5, %.preheader23.2 ], [ %.sroa.62.2, %.preheader23.1 ], [ %.sroa.62.21, %.preheader23 ]
  %.sroa.40.19 = phi i32 [ %.sroa.40.13, %.preheader23.6 ], [ %.sroa.40.13, %.preheader23.5 ], [ %.sroa.40.11, %.preheader23.4 ], [ %.sroa.40.8, %.preheader23.3 ], [ %.sroa.40.5, %.preheader23.2 ], [ %.sroa.40.2, %.preheader23.1 ], [ %.sroa.40.21, %.preheader23 ]
  %.sroa.18.19 = phi i32 [ %spec.select, %.preheader23.6 ], [ %.sroa.18.14, %.preheader23.5 ], [ %.sroa.18.11, %.preheader23.4 ], [ %.sroa.18.8, %.preheader23.3 ], [ %.sroa.18.5, %.preheader23.2 ], [ %.sroa.18.2, %.preheader23.1 ], [ %.sroa.18.21, %.preheader23 ]
  %.sroa.0.6 = phi i32 [ %spec.select98, %.preheader23.6 ], [ %.sroa.0.4, %.preheader23.5 ], [ %.sroa.0.3, %.preheader23.4 ], [ %.sroa.0.2, %.preheader23.3 ], [ %.sroa.0.1, %.preheader23.2 ], [ %.sroa.0.0, %.preheader23.1 ], [ %.sroa.0.7, %.preheader23 ]
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.0.6)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.18.19)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.40.19)
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.62.19)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.84.19)
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.106.19)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.128.19)
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.150.14)
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass