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

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

10:                                               ; preds = %61, %0
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %64

15:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %16 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %16, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %7, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %37, %15
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %40

24:                                               ; preds = %19
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp slt i32 %28, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %24
  %35 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %35, ptr %6, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %34, %24
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !5
  br label %19, !llvm.loop !9

40:                                               ; preds = %23
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp ne i32 %41, %42
  br i1 %43, label %44, label %60

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  store i32 %48, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %54
  store i32 %52, ptr %55, align 4, !tbaa !5
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [9 x i32], ptr %2, i64 0, i64 %58
  store i32 %56, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %60

60:                                               ; preds = %44, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %4, align 4, !tbaa !5
  br label %10, !llvm.loop !11

64:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %76, %64
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

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

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

76:                                               ; preds = %70
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !5
  br label %65, !llvm.loop !12

79:                                               ; preds = %69
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %2) #4
  %80 = load i32, ptr %1, align 4
  ret i32 %80
}

; 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 [9 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 {
._crit_edge:
  %0 = alloca [9 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %0, ptr noundef nonnull align 16 dereferenceable(36) @__const.main.a, i64 36, i1 false)
  %1 = getelementptr inbounds i8, ptr %0, i64 8
  %2 = load i32, ptr %1, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp slt i32 %2, %4
  %spec.select = select i1 %5, i32 2, i32 1
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = zext nneg i32 %spec.select to i64
  %9 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp slt i32 %7, %10
  %spec.select.137 = select i1 %11, i32 3, i32 %spec.select
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i32, ptr %12, align 16, !tbaa !5
  %14 = zext nneg i32 %spec.select.137 to i64
  %15 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp slt i32 %13, %16
  %spec.select.239 = select i1 %17, i32 4, i32 %spec.select.137
  %18 = getelementptr inbounds i8, ptr %0, i64 20
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = zext nneg i32 %spec.select.239 to i64
  %21 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = icmp slt i32 %19, %22
  %spec.select.341 = select i1 %23, i32 5, i32 %spec.select.239
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load i32, ptr %24, align 8, !tbaa !5
  %26 = zext nneg i32 %spec.select.341 to i64
  %27 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp slt i32 %25, %28
  %spec.select.443 = select i1 %29, i32 6, i32 %spec.select.341
  %30 = getelementptr inbounds i8, ptr %0, i64 28
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = zext nneg i32 %spec.select.443 to i64
  %33 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp slt i32 %31, %34
  %spec.select.545 = select i1 %35, i32 7, i32 %spec.select.443
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load i32, ptr %36, align 16, !tbaa !5
  %38 = zext nneg i32 %spec.select.545 to i64
  %39 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = icmp slt i32 %37, %40
  %spec.select.647 = select i1 %41, i32 8, i32 %spec.select.545
  %.not = icmp eq i32 %spec.select.647, 1
  br i1 %.not, label %._crit_edge.1, label %42

42:                                               ; preds = %._crit_edge
  %43 = getelementptr inbounds i8, ptr %0, i64 4
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = zext nneg i32 %spec.select.647 to i64
  %46 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %47, ptr %43, align 4, !tbaa !5
  store i32 %44, ptr %46, align 4, !tbaa !5
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %42, %._crit_edge
  %48 = getelementptr inbounds i8, ptr %0, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !5
  %52 = icmp slt i32 %49, %51
  %spec.select.1 = select i1 %52, i32 3, i32 2
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = load i32, ptr %53, align 16, !tbaa !5
  %55 = zext nneg i32 %spec.select.1 to i64
  %56 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp slt i32 %54, %57
  %spec.select.1.1 = select i1 %58, i32 4, i32 %spec.select.1
  %59 = getelementptr inbounds i8, ptr %0, i64 20
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = zext nneg i32 %spec.select.1.1 to i64
  %62 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = icmp slt i32 %60, %63
  %spec.select.1.2 = select i1 %64, i32 5, i32 %spec.select.1.1
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = load i32, ptr %65, align 8, !tbaa !5
  %67 = zext nneg i32 %spec.select.1.2 to i64
  %68 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp slt i32 %66, %69
  %spec.select.1.3 = select i1 %70, i32 6, i32 %spec.select.1.2
  %71 = getelementptr inbounds i8, ptr %0, i64 28
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = zext nneg i32 %spec.select.1.3 to i64
  %74 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp slt i32 %72, %75
  %spec.select.1.4 = select i1 %76, i32 7, i32 %spec.select.1.3
  %77 = getelementptr inbounds i8, ptr %0, i64 32
  %78 = load i32, ptr %77, align 16, !tbaa !5
  %79 = zext nneg i32 %spec.select.1.4 to i64
  %80 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = icmp slt i32 %78, %81
  %spec.select.1.5 = select i1 %82, i32 8, i32 %spec.select.1.4
  %.not.1 = icmp eq i32 %spec.select.1.5, 2
  br i1 %.not.1, label %._crit_edge.2, label %83

83:                                               ; preds = %._crit_edge.1
  %84 = getelementptr inbounds i8, ptr %0, i64 8
  %85 = load i32, ptr %84, align 8, !tbaa !5
  %86 = zext nneg i32 %spec.select.1.5 to i64
  %87 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  store i32 %88, ptr %84, align 8, !tbaa !5
  store i32 %85, ptr %87, align 4, !tbaa !5
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %83, %._crit_edge.1
  %89 = getelementptr inbounds i8, ptr %0, i64 16
  %90 = load i32, ptr %89, align 16, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %0, i64 12
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp slt i32 %90, %92
  %spec.select.2 = select i1 %93, i32 4, i32 3
  %94 = getelementptr inbounds i8, ptr %0, i64 20
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = zext nneg i32 %spec.select.2 to i64
  %97 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = icmp slt i32 %95, %98
  %spec.select.2.1 = select i1 %99, i32 5, i32 %spec.select.2
  %100 = getelementptr inbounds i8, ptr %0, i64 24
  %101 = load i32, ptr %100, align 8, !tbaa !5
  %102 = zext nneg i32 %spec.select.2.1 to i64
  %103 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp slt i32 %101, %104
  %spec.select.2.2 = select i1 %105, i32 6, i32 %spec.select.2.1
  %106 = getelementptr inbounds i8, ptr %0, i64 28
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = zext nneg i32 %spec.select.2.2 to i64
  %109 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = icmp slt i32 %107, %110
  %spec.select.2.3 = select i1 %111, i32 7, i32 %spec.select.2.2
  %112 = getelementptr inbounds i8, ptr %0, i64 32
  %113 = load i32, ptr %112, align 16, !tbaa !5
  %114 = zext nneg i32 %spec.select.2.3 to i64
  %115 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = icmp slt i32 %113, %116
  %spec.select.2.4 = select i1 %117, i32 8, i32 %spec.select.2.3
  %.not.2 = icmp eq i32 %spec.select.2.4, 3
  br i1 %.not.2, label %._crit_edge.3, label %118

118:                                              ; preds = %._crit_edge.2
  %119 = getelementptr inbounds i8, ptr %0, i64 12
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = zext nneg i32 %spec.select.2.4 to i64
  %122 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  store i32 %123, ptr %119, align 4, !tbaa !5
  store i32 %120, ptr %122, align 4, !tbaa !5
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %118, %._crit_edge.2
  %124 = getelementptr inbounds i8, ptr %0, i64 20
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %0, i64 16
  %127 = load i32, ptr %126, align 16, !tbaa !5
  %128 = icmp slt i32 %125, %127
  %spec.select.3 = select i1 %128, i32 5, i32 4
  %129 = getelementptr inbounds i8, ptr %0, i64 24
  %130 = load i32, ptr %129, align 8, !tbaa !5
  %131 = zext nneg i32 %spec.select.3 to i64
  %132 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = icmp slt i32 %130, %133
  %spec.select.3.1 = select i1 %134, i32 6, i32 %spec.select.3
  %135 = getelementptr inbounds i8, ptr %0, i64 28
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = zext nneg i32 %spec.select.3.1 to i64
  %138 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp slt i32 %136, %139
  %spec.select.3.2 = select i1 %140, i32 7, i32 %spec.select.3.1
  %141 = getelementptr inbounds i8, ptr %0, i64 32
  %142 = load i32, ptr %141, align 16, !tbaa !5
  %143 = zext nneg i32 %spec.select.3.2 to i64
  %144 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = icmp slt i32 %142, %145
  %spec.select.3.3 = select i1 %146, i32 8, i32 %spec.select.3.2
  %.not.3 = icmp eq i32 %spec.select.3.3, 4
  br i1 %.not.3, label %._crit_edge.4, label %147

147:                                              ; preds = %._crit_edge.3
  %148 = getelementptr inbounds i8, ptr %0, i64 16
  %149 = load i32, ptr %148, align 16, !tbaa !5
  %150 = zext nneg i32 %spec.select.3.3 to i64
  %151 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %148, align 16, !tbaa !5
  store i32 %149, ptr %151, align 4, !tbaa !5
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %147, %._crit_edge.3
  %153 = getelementptr inbounds i8, ptr %0, i64 24
  %154 = load i32, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %0, i64 20
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = icmp slt i32 %154, %156
  %spec.select.4 = select i1 %157, i32 6, i32 5
  %158 = getelementptr inbounds i8, ptr %0, i64 28
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = zext nneg i32 %spec.select.4 to i64
  %161 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = icmp slt i32 %159, %162
  %spec.select.4.1 = select i1 %163, i32 7, i32 %spec.select.4
  %164 = getelementptr inbounds i8, ptr %0, i64 32
  %165 = load i32, ptr %164, align 16, !tbaa !5
  %166 = zext nneg i32 %spec.select.4.1 to i64
  %167 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp slt i32 %165, %168
  %spec.select.4.2 = select i1 %169, i32 8, i32 %spec.select.4.1
  %.not.4 = icmp eq i32 %spec.select.4.2, 5
  br i1 %.not.4, label %._crit_edge.5, label %170

170:                                              ; preds = %._crit_edge.4
  %171 = getelementptr inbounds i8, ptr %0, i64 20
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = zext nneg i32 %spec.select.4.2 to i64
  %174 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  store i32 %175, ptr %171, align 4, !tbaa !5
  store i32 %172, ptr %174, align 4, !tbaa !5
  br label %._crit_edge.5

._crit_edge.5:                                    ; preds = %170, %._crit_edge.4
  %176 = getelementptr inbounds i8, ptr %0, i64 28
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %0, i64 24
  %179 = load i32, ptr %178, align 8, !tbaa !5
  %180 = icmp slt i32 %177, %179
  %spec.select.5 = select i1 %180, i32 7, i32 6
  %181 = getelementptr inbounds i8, ptr %0, i64 32
  %182 = load i32, ptr %181, align 16, !tbaa !5
  %183 = zext nneg i32 %spec.select.5 to i64
  %184 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = icmp slt i32 %182, %185
  %spec.select.5.1 = select i1 %186, i32 8, i32 %spec.select.5
  %.not.5 = icmp eq i32 %spec.select.5.1, 6
  br i1 %.not.5, label %._crit_edge.6, label %187

187:                                              ; preds = %._crit_edge.5
  %188 = getelementptr inbounds i8, ptr %0, i64 24
  %189 = load i32, ptr %188, align 8, !tbaa !5
  %190 = zext nneg i32 %spec.select.5.1 to i64
  %191 = getelementptr inbounds [9 x i32], ptr %0, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  store i32 %192, ptr %188, align 8, !tbaa !5
  store i32 %189, ptr %191, align 4, !tbaa !5
  br label %._crit_edge.6

._crit_edge.6:                                    ; preds = %187, %._crit_edge.5
  %193 = getelementptr inbounds i8, ptr %0, i64 32
  %194 = load i32, ptr %193, align 16, !tbaa !5
  %195 = getelementptr inbounds i8, ptr %0, i64 28
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %.not50 = icmp slt i32 %194, %196
  br i1 %.not50, label %197, label %.preheader.preheader

197:                                              ; preds = %._crit_edge.6
  %198 = getelementptr inbounds i8, ptr %0, i64 28
  %199 = load <2 x i32>, ptr %198, align 4, !tbaa !5
  %200 = shufflevector <2 x i32> %199, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i32> %200, ptr %198, align 4, !tbaa !5
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge.6, %197
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 32
  %.pre = load i32, ptr %.phi.trans.insert, align 16, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %0, i64 4
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %202)
  %204 = getelementptr inbounds i8, ptr %0, i64 8
  %205 = load i32, ptr %204, align 8, !tbaa !5
  %206 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %205)
  %207 = getelementptr inbounds i8, ptr %0, i64 12
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %208)
  %210 = getelementptr inbounds i8, ptr %0, i64 16
  %211 = load i32, ptr %210, align 16, !tbaa !5
  %212 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %211)
  %213 = getelementptr inbounds i8, ptr %0, i64 20
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %214)
  %216 = getelementptr inbounds i8, ptr %0, i64 24
  %217 = load i32, ptr %216, align 8, !tbaa !5
  %218 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %217)
  %219 = getelementptr inbounds i8, ptr %0, i64 28
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %220)
  %222 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.pre)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %0) #4
  ret i32 0
}

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


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