; LLVM IR from ouuan/CPTH :: tests/BIT/BIT.ll (Z5solveiiRSt6vectorI9OperationSaIS0_EE)

; 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Operation = type { i32, i32, i32, i64, i64, i64 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl" }
%"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl" = type { %"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@ans = external dso_local global %"class.std::vector.5", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3addii(i32 noundef, i32 noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5queryi(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5clearv() #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %struct.Operation, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca %"class.std::vector.10", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %struct.Operation, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector.10", align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 1
  %27 = icmp eq i32 %24, %26
  br i1 %27, label %28, label %55

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %29 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %29, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  br label %36

36:                                               ; preds = %52, %28
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #6
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %40, i64 40, i1 false), !tbaa.struct !11
  %41 = getelementptr inbounds %struct.Operation, ptr %10, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !14
  %43 = xor i32 %42, -1
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %39
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = getelementptr inbounds %struct.Operation, ptr %10, i32 0, i32 2
  %48 = load i32, ptr %47, align 8, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %49) #6
  store i32 %46, ptr %50, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %45, %39
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  br label %52

52:                                               ; preds = %51
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %36

54:                                               ; preds = %38
  br label %178

55:                                               ; preds = %3
  call void @_Z5clearv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %56, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %57 = load ptr, ptr %11, align 8, !tbaa !9
  %58 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  %59 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #6
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  br label %63

63:                                               ; preds = %106, %55
  %64 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %64, label %66, label %65

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %108

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  store ptr %67, ptr %14, align 8, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.Operation, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !14
  %71 = xor i32 %70, -1
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %86

73:                                               ; preds = %66
  %74 = load ptr, ptr %14, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.Operation, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !16
  %77 = call noundef i64 @_Z5queryi(i32 noundef %76)
  %78 = load ptr, ptr %14, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.Operation, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !17
  %81 = sub nsw i32 %80, 1
  %82 = call noundef i64 @_Z5queryi(i32 noundef %81)
  %83 = sub nsw i64 %77, %82
  %84 = load ptr, ptr %14, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.Operation, ptr %84, i32 0, i32 5
  store i64 %83, ptr %85, align 8, !tbaa !18
  br label %105

86:                                               ; preds = %66
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.Operation, ptr %87, i32 0, i32 3
  %89 = load i64, ptr %88, align 8, !tbaa !19
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = add nsw i32 %90, %91
  %93 = ashr i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %89, %94
  br i1 %95, label %96, label %104

96:                                               ; preds = %86
  %97 = load ptr, ptr %14, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.Operation, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !17
  call void @_Z3addii(i32 noundef %99, i32 noundef 1)
  %100 = load ptr, ptr %14, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.Operation, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = add nsw i32 %102, 1
  call void @_Z3addii(i32 noundef %103, i32 noundef -1)
  br label %104

104:                                              ; preds = %96, %86
  br label %105

105:                                              ; preds = %104, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %106

106:                                              ; preds = %105
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %63

108:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %109 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %109, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %110 = load ptr, ptr %17, align 8, !tbaa !9
  %111 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #6
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %113 = load ptr, ptr %17, align 8, !tbaa !9
  %114 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  br label %116

116:                                              ; preds = %162, %108
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %164

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %120 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %120, i64 40, i1 false), !tbaa.struct !11
  %121 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 2
  %122 = load i32, ptr %121, align 8, !tbaa !14
  %123 = icmp eq i32 %122, -1
  br i1 %123, label %124, label %142

124:                                              ; preds = %119
  %125 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 3
  %126 = load i64, ptr %125, align 8, !tbaa !19
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = add nsw i32 %127, %128
  %130 = ashr i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %126, %131
  br i1 %132, label %133, label %139

133:                                              ; preds = %124
  invoke void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %134 unwind label %135

134:                                              ; preds = %133
  br label %141

135:                                              ; preds = %153, %151, %139, %133
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %21, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %183

139:                                              ; preds = %124
  invoke void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %140 unwind label %135

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %134
  br label %161

142:                                              ; preds = %119
  %143 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 4
  %144 = load i64, ptr %143, align 8, !tbaa !20
  %145 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 5
  %146 = load i64, ptr %145, align 8, !tbaa !18
  %147 = add nsw i64 %144, %146
  %148 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 3
  %149 = load i64, ptr %148, align 8, !tbaa !19
  %150 = icmp sge i64 %147, %149
  br i1 %150, label %151, label %153

151:                                              ; preds = %142
  invoke void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %152 unwind label %135

152:                                              ; preds = %151
  br label %160

153:                                              ; preds = %142
  %154 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 5
  %155 = load i64, ptr %154, align 8, !tbaa !18
  %156 = getelementptr inbounds %struct.Operation, ptr %20, i32 0, i32 4
  %157 = load i64, ptr %156, align 8, !tbaa !20
  %158 = add nsw i64 %157, %155
  store i64 %158, ptr %156, align 8, !tbaa !20
  invoke void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %159 unwind label %135

159:                                              ; preds = %153
  br label %160

160:                                              ; preds = %159, %152
  br label %161

161:                                              ; preds = %160, %141
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %162

162:                                              ; preds = %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %116

164:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %165 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZNSt6vectorI9OperationSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %165) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  %166 = load i32, ptr %4, align 4, !tbaa !5
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = add nsw i32 %167, %168
  %170 = ashr i32 %169, 1
  invoke void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %166, i32 noundef %170, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %171 unwind label %179

171:                                              ; preds = %164
  %172 = load i32, ptr %4, align 4, !tbaa !5
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = add nsw i32 %172, %173
  %175 = ashr i32 %174, 1
  %176 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %175, i32 noundef %176, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %177 unwind label %179

177:                                              ; preds = %171
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %178

178:                                              ; preds = %177, %54
  ret void

179:                                              ; preds = %171, %164
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %21, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %22, align 4
  br label %183

183:                                              ; preds = %179, %135
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %21, align 8
  %186 = load i32, ptr %22, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; 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) #4

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

attributes #0 = { 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 #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 = { inlinehint 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTS9Operation", !6, i64 0, !6, i64 4, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!15, !6, i64 4}
!17 = !{!15, !6, i64 0}
!18 = !{!15, !13, i64 32}
!19 = !{!15, !13, i64 16}
!20 = !{!15, !13, i64 24}


; 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl" }
%"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl" = type { %"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Operation, std::allocator<Operation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Operation = type { i32, i32, i32, i64, i64, i64 }

@ans = external dso_local global %"class.std::vector.5", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3addii(i32 noundef, i32 noundef) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5queryi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5clearv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca %"class.std::vector.10", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %struct.Operation, align 8
  %13 = alloca %"class.std::vector.10", align 8
  %14 = add nsw i32 %1, -1
  %15 = icmp eq i32 %14, %0
  br i1 %15, label %16, label %27

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %17 = tail call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %17, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %18 = tail call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %18, ptr %5, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %19, label %.lr.ph42, label %._crit_edge43

._crit_edge43:                                    ; preds = %24, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %90

.lr.ph42:                                         ; preds = %16, %24
  %20 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.3.0.copyload = load i32, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !5
  %.not37 = icmp eq i32 %.sroa.3.0.copyload, -1
  br i1 %.not37, label %24, label %21

21:                                               ; preds = %.lr.ph42
  %22 = sext i32 %.sroa.3.0.copyload to i64
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %22) #6
  store i32 %0, ptr %23, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %21, %.lr.ph42
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %26, label %.lr.ph42, label %._crit_edge43

27:                                               ; preds = %3
  tail call void @_Z5clearv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %28 = tail call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %28, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %29 = tail call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %29, ptr %7, align 8
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %27
  %31 = add nsw i32 %1, %0
  %32 = ashr i32 %31, 1
  %33 = sext i32 %32 to i64
  br label %44

._crit_edge:                                      ; preds = %66, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %34 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %34, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %35 = call ptr @_ZNSt6vectorI9OperationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %35, ptr %11, align 8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %36, label %.lr.ph39, label %._crit_edge.._crit_edge40_crit_edge

._crit_edge.._crit_edge40_crit_edge:              ; preds = %._crit_edge
  %.pre = add nsw i32 %1, %0
  %.pre44 = ashr i32 %.pre, 1
  br label %._crit_edge40

.lr.ph39:                                         ; preds = %._crit_edge
  %37 = getelementptr inbounds i8, ptr %12, i64 8
  %38 = getelementptr inbounds i8, ptr %12, i64 24
  %39 = getelementptr inbounds i8, ptr %12, i64 32
  %40 = getelementptr inbounds i8, ptr %12, i64 16
  %41 = add nsw i32 %1, %0
  %42 = ashr i32 %41, 1
  %43 = sext i32 %42 to i64
  br label %69

44:                                               ; preds = %.lr.ph, %66
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %.not36 = icmp eq i32 %47, -1
  br i1 %.not36, label %57, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %45, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !12
  %51 = call noundef i64 @_Z5queryi(i32 noundef %50)
  %52 = load i32, ptr %45, align 8, !tbaa !13
  %53 = add nsw i32 %52, -1
  %54 = call noundef i64 @_Z5queryi(i32 noundef %53)
  %55 = sub nsw i64 %51, %54
  %56 = getelementptr inbounds i8, ptr %45, i64 32
  store i64 %55, ptr %56, align 8, !tbaa !14
  br label %66

57:                                               ; preds = %44
  %58 = getelementptr inbounds i8, ptr %45, i64 16
  %59 = load i64, ptr %58, align 8, !tbaa !15
  %60 = icmp slt i64 %59, %33
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = load i32, ptr %45, align 8, !tbaa !13
  call void @_Z3addii(i32 noundef %62, i32 noundef 1)
  %63 = getelementptr inbounds i8, ptr %45, i64 4
  %64 = load i32, ptr %63, align 4, !tbaa !12
  %65 = add nsw i32 %64, 1
  call void @_Z3addii(i32 noundef %65, i32 noundef -1)
  br label %66

66:                                               ; preds = %57, %61, %48
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %68, label %44, label %._crit_edge

._crit_edge40:                                    ; preds = %85, %._crit_edge.._crit_edge40_crit_edge
  %.pre-phi45 = phi i32 [ %.pre44, %._crit_edge.._crit_edge40_crit_edge ], [ %42, %85 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorI9OperationSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  invoke void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %0, i32 noundef %.pre-phi45, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %88 unwind label %91

69:                                               ; preds = %.lr.ph39, %85
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  %70 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %70, i64 40, i1 false), !tbaa.struct !16
  %71 = load i32, ptr %37, align 8, !tbaa !9
  %72 = icmp eq i32 %71, -1
  br i1 %72, label %73, label %78

73:                                               ; preds = %69
  %74 = load i64, ptr %40, align 8, !tbaa !15
  %75 = icmp slt i64 %74, %43
  %spec.select = select i1 %75, ptr %8, ptr %9
  br label %.invoke

76:                                               ; preds = %.invoke
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %93

78:                                               ; preds = %69
  %79 = load i64, ptr %38, align 8, !tbaa !18
  %80 = load i64, ptr %39, align 8, !tbaa !14
  %81 = add nsw i64 %80, %79
  %82 = load i64, ptr %40, align 8, !tbaa !15
  %.not = icmp slt i64 %81, %82
  br i1 %.not, label %83, label %.invoke

83:                                               ; preds = %78
  store i64 %81, ptr %38, align 8, !tbaa !18
  br label %.invoke

.invoke:                                          ; preds = %73, %78, %83
  %84 = phi ptr [ %9, %83 ], [ %8, %78 ], [ %spec.select, %73 ]
  invoke void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %85 unwind label %76

85:                                               ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %87, label %69, label %._crit_edge40

88:                                               ; preds = %._crit_edge40
  invoke void @_Z5solveiiRSt6vectorI9OperationSaIS0_EE(i32 noundef %.pre-phi45, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %89 unwind label %91

89:                                               ; preds = %88
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %90

90:                                               ; preds = %89, %._crit_edge43
  ret void

91:                                               ; preds = %88, %._crit_edge40
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %93

93:                                               ; preds = %91, %76
  %.pn = phi { ptr, i32 } [ %77, %76 ], [ %92, %91 ]
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorI9OperationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP9OperationSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9OperationSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; 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) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9OperationSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

attributes #0 = { 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 #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 = { inlinehint 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS9Operation", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"long long", !7, i64 0}
!12 = !{!10, !6, i64 4}
!13 = !{!10, !6, i64 0}
!14 = !{!10, !11, i64 32}
!15 = !{!10, !11, i64 16}
!16 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !17, i64 24, i64 8, !17, i64 32, i64 8, !17}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !11, i64 24}


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