; LLVM IR from Mohammed-Shoaib/Coding-Problems :: HackerRank/Algorithms/Hard/H0001.ll (Z6rotateRSt6vectorIS_IiSaIiEESaIS1_EEiiiii)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6rotateRSt6vectorIS_IiSaIiEESaIS1_EEiiiii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %32 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %32, ptr %14, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %47, %6
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = icmp sgt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %54

38:                                               ; preds = %33
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #4
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %46 unwind label %50

46:                                               ; preds = %38
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = add nsw i32 %48, -1
  store i32 %49, ptr %14, align 4, !tbaa !9
  br label %33, !llvm.loop !11

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %15, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %281

54:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %55 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %55, ptr %17, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %70, %54
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %77

61:                                               ; preds = %56
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #4
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %69 unwind label %73

69:                                               ; preds = %61
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %17, align 4, !tbaa !9
  br label %56, !llvm.loop !13

73:                                               ; preds = %61
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %15, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %281

77:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %78 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %78, ptr %18, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %93, %77
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %100

84:                                               ; preds = %79
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #4
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %92 unwind label %96

92:                                               ; preds = %84
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %18, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %18, align 4, !tbaa !9
  br label %79, !llvm.loop !14

96:                                               ; preds = %84
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %15, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %281

100:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %101 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %101, ptr %19, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %116, %100
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = icmp sgt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %123

107:                                              ; preds = %102
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load i32, ptr %19, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #4
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %114)
          to label %115 unwind label %119

115:                                              ; preds = %107
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %19, align 4, !tbaa !9
  br label %102, !llvm.loop !15

119:                                              ; preds = %107
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %15, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %281

123:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = sub nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %128 = urem i64 %126, %127
  %129 = add i64 %128, 1
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %20, align 4, !tbaa !9
  %131 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %133 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %136) #4
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  %139 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  %147 = invoke ptr @_ZNSt3_V26rotateIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEET_S8_S8_S8_(ptr %142, ptr %144, ptr %146)
          to label %148 unwind label %156

148:                                              ; preds = %123
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %147, ptr %149, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %150 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %150, ptr %27, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %172, %148
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = icmp sgt i32 %152, %153
  br i1 %154, label %160, label %155

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

156:                                              ; preds = %123
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %15, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %280

160:                                              ; preds = %151
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %162) #4
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #4
  %169 = load i32, ptr %27, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #4
  store i32 %164, ptr %171, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %160
  %173 = load i32, ptr %27, align 4, !tbaa !9
  %174 = add nsw i32 %173, -1
  store i32 %174, ptr %27, align 4, !tbaa !9
  %175 = load i32, ptr %26, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %26, align 4, !tbaa !9
  br label %151, !llvm.loop !16

177:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %178 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %178, ptr %28, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %196, %177
  %180 = load i32, ptr %28, align 4, !tbaa !9
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %201

184:                                              ; preds = %179
  %185 = load i32, ptr %26, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %186) #4
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = load i32, ptr %28, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #4
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #4
  store i32 %188, ptr %195, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %184
  %197 = load i32, ptr %28, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %28, align 4, !tbaa !9
  %199 = load i32, ptr %26, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %26, align 4, !tbaa !9
  br label %179, !llvm.loop !17

201:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %202 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %202, ptr %29, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %220, %201
  %204 = load i32, ptr %29, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %225

208:                                              ; preds = %203
  %209 = load i32, ptr %26, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %210) #4
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load i32, ptr %9, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %215) #4
  %217 = load i32, ptr %29, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %218) #4
  store i32 %212, ptr %219, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %208
  %221 = load i32, ptr %29, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %29, align 4, !tbaa !9
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %26, align 4, !tbaa !9
  br label %203, !llvm.loop !18

225:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %226 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %226, ptr %30, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %244, %225
  %228 = load i32, ptr %30, align 4, !tbaa !9
  %229 = load i32, ptr %8, align 4, !tbaa !9
  %230 = icmp sgt i32 %228, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %249

232:                                              ; preds = %227
  %233 = load i32, ptr %26, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %234) #4
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = load i32, ptr %30, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #4
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef %242) #4
  store i32 %236, ptr %243, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %232
  %245 = load i32, ptr %30, align 4, !tbaa !9
  %246 = add nsw i32 %245, -1
  store i32 %246, ptr %30, align 4, !tbaa !9
  %247 = load i32, ptr %26, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %26, align 4, !tbaa !9
  br label %227, !llvm.loop !19

249:                                              ; preds = %231
  %250 = load i32, ptr %9, align 4, !tbaa !9
  %251 = load i32, ptr %8, align 4, !tbaa !9
  %252 = sub nsw i32 %250, %251
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %259, label %254

254:                                              ; preds = %249
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = sub nsw i32 %255, %256
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %260

259:                                              ; preds = %254, %249
  store i32 1, ptr %31, align 4
  br label %277

260:                                              ; preds = %254
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = load i32, ptr %8, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  %264 = load i32, ptr %9, align 4, !tbaa !9
  %265 = sub nsw i32 %264, 1
  %266 = load i32, ptr %10, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = sub nsw i32 %268, 1
  %270 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_Z6rotateRSt6vectorIS_IiSaIiEESaIS1_EEiiiii(ptr noundef nonnull align 8 dereferenceable(24) %261, i32 noundef %263, i32 noundef %265, i32 noundef %267, i32 noundef %269, i32 noundef %270)
          to label %271 unwind label %272

271:                                              ; preds = %260
  br label %276

272:                                              ; preds = %260
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %15, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %280

276:                                              ; preds = %271
  store i32 0, ptr %31, align 4
  br label %277

277:                                              ; preds = %276, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  %278 = load i32, ptr %31, align 4
  switch i32 %278, label %287 [
    i32 0, label %279
    i32 1, label %279
  ]

279:                                              ; preds = %277, %277
  ret void

280:                                              ; preds = %272, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %281

281:                                              ; preds = %280, %119, %96, %73, %50
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  br label %282

282:                                              ; preds = %281
  %283 = load ptr, ptr %15, align 8
  %284 = load i32, ptr %16, align 4
  %285 = insertvalue { ptr, i32 } poison, ptr %283, 0
  %286 = insertvalue { ptr, i32 } %285, i32 %284, 1
  resume { ptr, i32 } %286

287:                                              ; preds = %277
  unreachable
}

; 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 @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; 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

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 i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZNSt3_V26rotateIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEET_S8_S8_S8_(ptr, ptr, ptr) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(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 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 = !{!"any pointer", !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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!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.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6rotateRSt6vectorIS_IiSaIiEESaIS1_EEiiiii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %9 = icmp sgt i32 %4, %3
  br i1 %9, label %.lr.ph, label %.preheader104

.lr.ph:                                           ; preds = %6
  %10 = sext i32 %1 to i64
  %11 = sext i32 %4 to i64
  %12 = sext i32 %3 to i64
  br label %16

.preheader104:                                    ; preds = %19, %6
  %13 = icmp slt i32 %1, %2
  br i1 %13, label %.lr.ph107, label %.preheader103

.lr.ph107:                                        ; preds = %.preheader104
  %14 = sext i32 %3 to i64
  %15 = sext i32 %1 to i64
  br label %25

16:                                               ; preds = %.lr.ph, %19
  %indvars.iv = phi i64 [ %11, %.lr.ph ], [ %indvars.iv.next, %19 ]
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %10) #4
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %19 unwind label %21

19:                                               ; preds = %16
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %20 = icmp sgt i64 %indvars.iv.next, %12
  br i1 %20, label %16, label %.preheader104, !llvm.loop !5

21:                                               ; preds = %16
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %109

.preheader103:                                    ; preds = %28, %.preheader104
  br i1 %9, label %.lr.ph109, label %.preheader102

.lr.ph109:                                        ; preds = %.preheader103
  %23 = sext i32 %2 to i64
  %24 = sext i32 %3 to i64
  br label %34

25:                                               ; preds = %.lr.ph107, %28
  %indvars.iv131 = phi i64 [ %15, %.lr.ph107 ], [ %indvars.iv.next132, %28 ]
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv131) #4
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %14) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %28 unwind label %29

28:                                               ; preds = %25
  %indvars.iv.next132 = add nsw i64 %indvars.iv131, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next132 to i32
  %exitcond.not = icmp eq i32 %lftr.wideiv, %2
  br i1 %exitcond.not, label %.preheader103, label %25, !llvm.loop !7

29:                                               ; preds = %25
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %109

.preheader102:                                    ; preds = %37, %.preheader103
  br i1 %13, label %.lr.ph111, label %._crit_edge

.lr.ph111:                                        ; preds = %.preheader102
  %31 = sext i32 %4 to i64
  %32 = sext i32 %2 to i64
  %33 = sext i32 %1 to i64
  br label %51

34:                                               ; preds = %.lr.ph109, %37
  %indvars.iv134 = phi i64 [ %24, %.lr.ph109 ], [ %indvars.iv.next135, %37 ]
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %23) #4
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %indvars.iv134) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %37 unwind label %38

37:                                               ; preds = %34
  %indvars.iv.next135 = add nsw i64 %indvars.iv134, 1
  %lftr.wideiv137 = trunc i64 %indvars.iv.next135 to i32
  %exitcond138.not = icmp eq i32 %lftr.wideiv137, %4
  br i1 %exitcond138.not, label %.preheader102, label %34, !llvm.loop !8

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %109

._crit_edge:                                      ; preds = %54, %.preheader102
  %40 = add nsw i32 %5, -1
  %41 = sext i32 %40 to i64
  %42 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %43 = urem i64 %41, %42
  %44 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %45 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  store ptr %45, ptr %8, align 8
  %46 = shl i64 %43, 32
  %sext = add i64 %46, 4294967296
  %47 = ashr exact i64 %sext, 32
  %48 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %47) #4
  %49 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %50 = invoke ptr @_ZNSt3_V26rotateIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEET_S8_S8_S8_(ptr %44, ptr %48, ptr %49)
          to label %58 unwind label %65

51:                                               ; preds = %.lr.ph111, %54
  %indvars.iv139 = phi i64 [ %32, %.lr.ph111 ], [ %indvars.iv.next140, %54 ]
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv139) #4
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %31) #4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %54 unwind label %56

54:                                               ; preds = %51
  %indvars.iv.next140 = add nsw i64 %indvars.iv139, -1
  %55 = icmp sgt i64 %indvars.iv.next140, %33
  br i1 %55, label %51, label %._crit_edge, !llvm.loop !9

56:                                               ; preds = %51
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %109

58:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %9, label %.lr.ph115, label %.preheader101

.lr.ph115:                                        ; preds = %58
  %59 = sext i32 %1 to i64
  %60 = sext i32 %4 to i64
  %61 = sub i32 %4, %3
  %wide.trip.count = zext i32 %61 to i64
  br label %67

.preheader101:                                    ; preds = %67, %58
  %.083.lcssa = phi i32 [ 0, %58 ], [ %61, %67 ]
  br i1 %13, label %.lr.ph118, label %.preheader100

.lr.ph118:                                        ; preds = %.preheader101
  %62 = sext i32 %3 to i64
  %63 = sext i32 %1 to i64
  %64 = zext i32 %.083.lcssa to i64
  br label %76

65:                                               ; preds = %._crit_edge
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %109

67:                                               ; preds = %.lr.ph115, %67
  %indvars.iv144 = phi i64 [ 0, %.lr.ph115 ], [ %indvars.iv.next145, %67 ]
  %indvars.iv142 = phi i64 [ %60, %.lr.ph115 ], [ %indvars.iv.next143, %67 ]
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv144) #4
  %69 = load i32, ptr %68, align 4, !tbaa !10
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %59) #4
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %indvars.iv142) #4
  store i32 %69, ptr %71, align 4, !tbaa !10
  %indvars.iv.next143 = add nsw i64 %indvars.iv142, -1
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond149.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count
  br i1 %exitcond149.not, label %.preheader101, label %67, !llvm.loop !14

.preheader100.loopexit:                           ; preds = %76
  %72 = trunc nuw i64 %indvars.iv.next153 to i32
  br label %.preheader100

.preheader100:                                    ; preds = %.preheader100.loopexit, %.preheader101
  %.1.lcssa = phi i32 [ %.083.lcssa, %.preheader101 ], [ %72, %.preheader100.loopexit ]
  br i1 %9, label %.lr.ph122, label %.preheader

.lr.ph122:                                        ; preds = %.preheader100
  %73 = sext i32 %2 to i64
  %74 = sext i32 %3 to i64
  %75 = zext i32 %.1.lcssa to i64
  br label %86

76:                                               ; preds = %.lr.ph118, %76
  %indvars.iv152 = phi i64 [ %64, %.lr.ph118 ], [ %indvars.iv.next153, %76 ]
  %indvars.iv150 = phi i64 [ %63, %.lr.ph118 ], [ %indvars.iv.next151, %76 ]
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv152) #4
  %78 = load i32, ptr %77, align 4, !tbaa !10
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv150) #4
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %62) #4
  store i32 %78, ptr %80, align 4, !tbaa !10
  %indvars.iv.next151 = add nsw i64 %indvars.iv150, 1
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %lftr.wideiv157 = trunc i64 %indvars.iv.next151 to i32
  %exitcond158.not = icmp eq i32 %lftr.wideiv157, %2
  br i1 %exitcond158.not, label %.preheader100.loopexit, label %76, !llvm.loop !15

.preheader.loopexit:                              ; preds = %86
  %81 = trunc nuw i64 %indvars.iv.next162 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader100
  %.2.lcssa = phi i32 [ %.1.lcssa, %.preheader100 ], [ %81, %.preheader.loopexit ]
  br i1 %13, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %.preheader
  %82 = sext i32 %4 to i64
  %83 = sext i32 %2 to i64
  %84 = sext i32 %1 to i64
  %85 = zext i32 %.2.lcssa to i64
  br label %95

86:                                               ; preds = %.lr.ph122, %86
  %indvars.iv161 = phi i64 [ %75, %.lr.ph122 ], [ %indvars.iv.next162, %86 ]
  %indvars.iv159 = phi i64 [ %74, %.lr.ph122 ], [ %indvars.iv.next160, %86 ]
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv161) #4
  %88 = load i32, ptr %87, align 4, !tbaa !10
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %73) #4
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %indvars.iv159) #4
  store i32 %88, ptr %90, align 4, !tbaa !10
  %indvars.iv.next160 = add nsw i64 %indvars.iv159, 1
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %lftr.wideiv166 = trunc i64 %indvars.iv.next160 to i32
  %exitcond167.not = icmp eq i32 %lftr.wideiv166, %4
  br i1 %exitcond167.not, label %.preheader.loopexit, label %86, !llvm.loop !16

._crit_edge127:                                   ; preds = %95, %.preheader
  %91 = sub nsw i32 %2, %1
  %92 = icmp eq i32 %91, 1
  %93 = sub nsw i32 %4, %3
  %94 = icmp eq i32 %93, 1
  %or.cond = select i1 %92, i1 true, i1 %94
  br i1 %or.cond, label %108, label %101

95:                                               ; preds = %.lr.ph126, %95
  %indvars.iv170 = phi i64 [ %85, %.lr.ph126 ], [ %indvars.iv.next171, %95 ]
  %indvars.iv168 = phi i64 [ %83, %.lr.ph126 ], [ %indvars.iv.next169, %95 ]
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv170) #4
  %97 = load i32, ptr %96, align 4, !tbaa !10
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv168) #4
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %82) #4
  store i32 %97, ptr %99, align 4, !tbaa !10
  %indvars.iv.next169 = add nsw i64 %indvars.iv168, -1
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %100 = icmp sgt i64 %indvars.iv.next169, %84
  br i1 %100, label %95, label %._crit_edge127, !llvm.loop !17

101:                                              ; preds = %._crit_edge127
  %102 = add nsw i32 %1, 1
  %103 = add nsw i32 %2, -1
  %104 = add nsw i32 %3, 1
  %105 = add nsw i32 %4, -1
  invoke void @_Z6rotateRSt6vectorIS_IiSaIiEESaIS1_EEiiiii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %5)
          to label %108 unwind label %106

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %109

108:                                              ; preds = %101, %._crit_edge127
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  ret void

109:                                              ; preds = %65, %106, %56, %38, %29, %21
  %.pn97 = phi { ptr, i32 } [ %22, %21 ], [ %30, %29 ], [ %39, %38 ], [ %57, %56 ], [ %107, %106 ], [ %66, %65 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  resume { ptr, i32 } %.pn97
}

; 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 @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZNSt3_V26rotateIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEET_S8_S8_S8_(ptr, ptr, ptr) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(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 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass