; LLVM IR from zeux/nanosort :: tests (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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.std::less" = type { i8 }
%"struct.std::greater" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"struct.std::less.5" = type { i8 }
%"struct.std::greater.7" = type { i8 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }
%"struct.std::less.13" = type { i8 }
%"struct.std::greater.15" = type { i8 }

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca %"struct.std::less", align 1
  %9 = alloca %"struct.std::greater", align 1
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::less", align 1
  %14 = alloca %"struct.std::greater", align 1
  %15 = alloca %"class.std::vector.0", align 8
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca i64, align 8
  %18 = alloca %"struct.std::less.5", align 1
  %19 = alloca %"struct.std::greater.7", align 1
  %20 = alloca %"class.std::vector.8", align 8
  %21 = alloca %"class.std::allocator.10", align 1
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::less.13", align 1
  %24 = alloca %"struct.std::greater.15", align 1
  %25 = alloca %"class.std::vector.8", align 8
  %26 = alloca %"class.std::allocator.10", align 1
  %27 = alloca i64, align 8
  %28 = alloca %"struct.std::less.13", align 1
  %29 = alloca %"struct.std::greater.15", align 1
  %30 = alloca %"class.std::vector.8", align 8
  %31 = alloca %"class.std::allocator.10", align 1
  %32 = alloca i64, align 8
  %33 = alloca %"struct.std::less.13", align 1
  %34 = alloca %"struct.std::greater.15", align 1
  %35 = alloca %"class.std::vector.8", align 8
  %36 = alloca %"struct.std::less.13", align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 1000, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %37 unwind label %42

37:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %51, %37
  %39 = load i64, ptr %7, align 8, !tbaa !5
  %40 = icmp ult i64 %39, 1000
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %54

42:                                               ; preds = %0
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  br label %66

46:                                               ; preds = %38
  %47 = load i64, ptr %7, align 8, !tbaa !5
  %48 = trunc i64 %47 to i32
  %49 = load i64, ptr %7, align 8, !tbaa !5
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %49) #4
  store i32 %48, ptr %50, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %46
  %52 = load i64, ptr %7, align 8, !tbaa !5
  %53 = add i64 %52, 1
  store i64 %53, ptr %7, align 8, !tbaa !5
  br label %38, !llvm.loop !11

54:                                               ; preds = %41
  invoke void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %55 unwind label %62

55:                                               ; preds = %54
  invoke void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %56 unwind label %62

56:                                               ; preds = %55
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %57 unwind label %67

57:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %77, %57
  %59 = load i64, ptr %12, align 8, !tbaa !5
  %60 = icmp ult i64 %59, 1000
  br i1 %60, label %71, label %61

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

62:                                               ; preds = %55, %54
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %66

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

67:                                               ; preds = %56
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %5, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %92

71:                                               ; preds = %58
  %72 = load i64, ptr %12, align 8, !tbaa !5
  %73 = sub i64 1000, %72
  %74 = trunc i64 %73 to i32
  %75 = load i64, ptr %12, align 8, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %75) #4
  store i32 %74, ptr %76, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %71
  %78 = load i64, ptr %12, align 8, !tbaa !5
  %79 = add i64 %78, 1
  store i64 %79, ptr %12, align 8, !tbaa !5
  br label %58, !llvm.loop !13

80:                                               ; preds = %61
  invoke void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %81 unwind label %88

81:                                               ; preds = %80
  invoke void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %82 unwind label %88

82:                                               ; preds = %81
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %83 unwind label %93

83:                                               ; preds = %82
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %103, %83
  %85 = load i64, ptr %17, align 8, !tbaa !5
  %86 = icmp ult i64 %85, 1000
  br i1 %86, label %97, label %87

87:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %106

88:                                               ; preds = %81, %80
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %92

92:                                               ; preds = %88, %67
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  br label %195

93:                                               ; preds = %82
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %118

97:                                               ; preds = %84
  %98 = load i64, ptr %17, align 8, !tbaa !5
  %99 = sub i64 1000, %98
  %100 = uitofp i64 %99 to float
  %101 = load i64, ptr %17, align 8, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %101) #4
  store float %100, ptr %102, align 4, !tbaa !14
  br label %103

103:                                              ; preds = %97
  %104 = load i64, ptr %17, align 8, !tbaa !5
  %105 = add i64 %104, 1
  store i64 %105, ptr %17, align 8, !tbaa !5
  br label %84, !llvm.loop !16

106:                                              ; preds = %87
  invoke void @_Z9test_sortIfSt4lessIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %107 unwind label %114

107:                                              ; preds = %106
  invoke void @_Z9test_sortIfSt7greaterIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %108 unwind label %114

108:                                              ; preds = %107
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %109 unwind label %119

109:                                              ; preds = %108
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %129, %109
  %111 = load i64, ptr %22, align 8, !tbaa !5
  %112 = icmp ult i64 %111, 1000
  br i1 %112, label %123, label %113

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %132

114:                                              ; preds = %107, %106
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %5, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %6, align 4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  br label %118

118:                                              ; preds = %114, %93
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  br label %195

119:                                              ; preds = %108
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %5, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %144

123:                                              ; preds = %110
  %124 = load i64, ptr %22, align 8, !tbaa !5
  %125 = mul i64 %124, 123456789
  %126 = trunc i64 %125 to i32
  %127 = load i64, ptr %22, align 8, !tbaa !5
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %127) #4
  store i32 %126, ptr %128, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %123
  %130 = load i64, ptr %22, align 8, !tbaa !5
  %131 = add i64 %130, 1
  store i64 %131, ptr %22, align 8, !tbaa !5
  br label %110, !llvm.loop !17

132:                                              ; preds = %113
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %133 unwind label %140

133:                                              ; preds = %132
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %134 unwind label %140

134:                                              ; preds = %133
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %135 unwind label %145

135:                                              ; preds = %134
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store i64 0, ptr %27, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %152, %135
  %137 = load i64, ptr %27, align 8, !tbaa !5
  %138 = icmp ult i64 %137, 1000
  br i1 %138, label %149, label %139

139:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %155

140:                                              ; preds = %133, %132
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %5, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %6, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  br label %144

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

145:                                              ; preds = %134
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %5, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  br label %167

149:                                              ; preds = %136
  %150 = load i64, ptr %27, align 8, !tbaa !5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %150) #4
  store i32 0, ptr %151, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %149
  %153 = load i64, ptr %27, align 8, !tbaa !5
  %154 = add i64 %153, 1
  store i64 %154, ptr %27, align 8, !tbaa !5
  br label %136, !llvm.loop !18

155:                                              ; preds = %139
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %156 unwind label %163

156:                                              ; preds = %155
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %157 unwind label %163

157:                                              ; preds = %156
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %158 unwind label %168

158:                                              ; preds = %157
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store i64 0, ptr %32, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %178, %158
  %160 = load i64, ptr %32, align 8, !tbaa !5
  %161 = icmp ult i64 %160, 1000
  br i1 %161, label %172, label %162

162:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  br label %181

163:                                              ; preds = %156, %155
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %5, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %6, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  br label %167

167:                                              ; preds = %163, %145
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #4
  br label %195

168:                                              ; preds = %157
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %5, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  br label %190

172:                                              ; preds = %159
  %173 = load i64, ptr %32, align 8, !tbaa !5
  %174 = urem i64 %173, 16
  %175 = trunc i64 %174 to i32
  %176 = load i64, ptr %32, align 8, !tbaa !5
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %176) #4
  store i32 %175, ptr %177, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %172
  %179 = load i64, ptr %32, align 8, !tbaa !5
  %180 = add i64 %179, 1
  store i64 %180, ptr %32, align 8, !tbaa !5
  br label %159, !llvm.loop !19

181:                                              ; preds = %162
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %182 unwind label %186

182:                                              ; preds = %181
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %183 unwind label %186

183:                                              ; preds = %182
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %184 unwind label %191

184:                                              ; preds = %183
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %185 = load i32, ptr %1, align 4
  ret i32 %185

186:                                              ; preds = %182, %181
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %5, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %6, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  br label %190

190:                                              ; preds = %186, %168
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #4
  br label %195

191:                                              ; preds = %183
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %5, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %6, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #4
  br label %195

195:                                              ; preds = %191, %190, %167, %144, %118, %92, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %5, align 8
  %198 = load i32, ptr %6, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIfSt4lessIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIfSt7greaterIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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" }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.10" = type { i8 }

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector.8", align 8
  %8 = alloca %"class.std::allocator.10", align 1
  %9 = alloca %"class.std::vector.8", align 8
  %10 = alloca %"class.std::allocator.10", align 1
  %11 = alloca %"class.std::vector.8", align 8
  %12 = alloca %"class.std::allocator.10", align 1
  %13 = alloca %"class.std::vector.8", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %14 unwind label %16

14:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #4
  br label %18

15:                                               ; preds = %18
  invoke void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %22 unwind label %26

16:                                               ; preds = %0
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #4
  br label %28

18:                                               ; preds = %14, %18
  %.02951 = phi i64 [ 0, %14 ], [ %21, %18 ]
  %19 = trunc nuw nsw i64 %.02951 to i32
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.02951) #4
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = add nuw nsw i64 %.02951, 1
  %exitcond.not = icmp eq i64 %21, 1000
  br i1 %exitcond.not, label %15, label %18, !llvm.loop !9

22:                                               ; preds = %15
  invoke void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %23 unwind label %26

23:                                               ; preds = %22
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %29

24:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %31

25:                                               ; preds = %31
  invoke void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %36 unwind label %40

26:                                               ; preds = %22, %15
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  br label %28

28:                                               ; preds = %26, %16
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  br label %98

29:                                               ; preds = %23
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %42

31:                                               ; preds = %24, %31
  %.02852 = phi i64 [ 0, %24 ], [ %35, %31 ]
  %32 = trunc nuw i64 %.02852 to i32
  %33 = sub nuw nsw i32 1000, %32
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.02852) #4
  store i32 %33, ptr %34, align 4, !tbaa !5
  %35 = add nuw nsw i64 %.02852, 1
  %exitcond57.not = icmp eq i64 %35, 1000
  br i1 %exitcond57.not, label %25, label %31, !llvm.loop !11

36:                                               ; preds = %25
  invoke void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %37 unwind label %40

37:                                               ; preds = %36
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %38 unwind label %43

38:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %45

39:                                               ; preds = %45
  invoke void @_Z9test_sortIfSt4lessIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %50 unwind label %54

40:                                               ; preds = %36, %25
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %42

42:                                               ; preds = %40, %29
  %.pn39 = phi { ptr, i32 } [ %41, %40 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %98

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %56

45:                                               ; preds = %38, %45
  %.02753 = phi i64 [ 0, %38 ], [ %49, %45 ]
  %46 = sub nuw nsw i64 1000, %.02753
  %47 = uitofp nneg i64 %46 to float
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.02753) #4
  store float %47, ptr %48, align 4, !tbaa !12
  %49 = add nuw nsw i64 %.02753, 1
  %exitcond58.not = icmp eq i64 %49, 1000
  br i1 %exitcond58.not, label %39, label %45, !llvm.loop !14

50:                                               ; preds = %39
  invoke void @_Z9test_sortIfSt7greaterIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %51 unwind label %54

51:                                               ; preds = %50
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %52 unwind label %57

52:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %59

53:                                               ; preds = %59
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %64 unwind label %68

54:                                               ; preds = %50, %39
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %56

56:                                               ; preds = %54, %43
  %.pn41 = phi { ptr, i32 } [ %55, %54 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %98

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %70

59:                                               ; preds = %52, %59
  %.02654 = phi i64 [ 0, %52 ], [ %63, %59 ]
  %60 = trunc nuw i64 %.02654 to i32
  %61 = mul i32 %60, 123456789
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.02654) #4
  store i32 %61, ptr %62, align 4, !tbaa !5
  %63 = add nuw nsw i64 %.02654, 1
  %exitcond59.not = icmp eq i64 %63, 1000
  br i1 %exitcond59.not, label %53, label %59, !llvm.loop !15

64:                                               ; preds = %53
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %65 unwind label %68

65:                                               ; preds = %64
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %66 unwind label %71

66:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  br label %73

67:                                               ; preds = %73
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %76 unwind label %80

68:                                               ; preds = %64, %53
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %70

70:                                               ; preds = %68, %57
  %.pn43 = phi { ptr, i32 } [ %69, %68 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %98

71:                                               ; preds = %65
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  br label %82

73:                                               ; preds = %66, %73
  %.02555 = phi i64 [ 0, %66 ], [ %75, %73 ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02555) #4
  store i32 0, ptr %74, align 4, !tbaa !5
  %75 = add nuw nsw i64 %.02555, 1
  %exitcond60.not = icmp eq i64 %75, 1000
  br i1 %exitcond60.not, label %67, label %73, !llvm.loop !16

76:                                               ; preds = %67
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %77 unwind label %80

77:                                               ; preds = %76
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1000, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %78 unwind label %83

78:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  br label %85

79:                                               ; preds = %85
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %90 unwind label %93

80:                                               ; preds = %76, %67
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  br label %82

82:                                               ; preds = %80, %71
  %.pn45 = phi { ptr, i32 } [ %81, %80 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %98

83:                                               ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  br label %95

85:                                               ; preds = %78, %85
  %.056 = phi i64 [ 0, %78 ], [ %89, %85 ]
  %86 = trunc nuw i64 %.056 to i32
  %87 = and i32 %86, 15
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.056) #4
  store i32 %87, ptr %88, align 4, !tbaa !5
  %89 = add nuw nsw i64 %.056, 1
  %exitcond61.not = icmp eq i64 %89, 1000
  br i1 %exitcond61.not, label %79, label %85, !llvm.loop !17

90:                                               ; preds = %79
  invoke void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %91 unwind label %93

91:                                               ; preds = %90
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  invoke void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %92 unwind label %96

92:                                               ; preds = %91
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  ret i32 0

93:                                               ; preds = %90, %79
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %95

95:                                               ; preds = %93, %83
  %.pn47 = phi { ptr, i32 } [ %94, %93 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %98

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  br label %98

98:                                               ; preds = %96, %95, %82, %70, %56, %42, %28
  %.pn49 = phi { ptr, i32 } [ %97, %96 ], [ %.pn47, %95 ], [ %.pn45, %82 ], [ %.pn43, %70 ], [ %.pn41, %56 ], [ %.pn39, %42 ], [ %.pn, %28 ]
  resume { ptr, i32 } %.pn49
}

; 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 nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIiSt4lessIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIiSt7greaterIiEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIfSt4lessIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIfSt7greaterIfEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIjSt4lessIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9test_sortIjSt7greaterIjEEvRKSt6vectorIT_SaIS3_EET0_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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" }
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 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass