; LLVM IR from ShahjalalShohag/code-library :: Miscellaneous/K-th Root of a Permutation.ll (Z4rootRSt6vectorIiSaIiEEii)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9decomposeRSt6vectorIiSaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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 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 @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; 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 #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_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_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4rootRSt6vectorIiSaIiEEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca i1, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::vector.0", align 8
  %28 = alloca %"class.std::allocator.2", align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::vector.0", align 8
  %34 = alloca %"class.std::allocator.2", align 1
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  %42 = zext i32 %41 to i64
  %43 = call ptr @llvm.stacksave.p0()
  store ptr %43, ptr %10, align 8
  %44 = alloca %"class.std::vector", i64 %42, align 16
  store i64 %42, ptr %11, align 8
  %45 = icmp eq i64 %42, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %4
  %47 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %42
  br label %48

48:                                               ; preds = %48, %46
  %49 = phi ptr [ %44, %46 ], [ %50, %48 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %50 = getelementptr inbounds %"class.std::vector", ptr %49, i64 1
  %51 = icmp eq ptr %50, %47
  br i1 %51, label %52, label %48

52:                                               ; preds = %48, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_Z9decomposeRSt6vectorIiSaIiEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %54 unwind label %64

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr %12, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #5
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  br label %61

61:                                               ; preds = %76, %54
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br i1 %62, label %68, label %63

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %87

64:                                               ; preds = %52
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  br label %309

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %69)
          to label %70 unwind label %78

70:                                               ; preds = %68
  %71 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %72 = trunc i64 %71 to i32
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %73
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %75 unwind label %82

75:                                               ; preds = %70
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  br label %76

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %61

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  br label %86

82:                                               ; preds = %70
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %308

87:                                               ; preds = %63
  store i1 false, ptr %19, align 1
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %294, %87
  %89 = load i32, ptr %20, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 4, ptr %21, align 4
  br label %299

93:                                               ; preds = %88
  %94 = load i32, ptr %20, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %95
  %97 = call noundef zeroext i1 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #5
  br i1 %97, label %98, label %99

98:                                               ; preds = %93
  br label %294

99:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %100 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %100, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 1, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %22, align 4, !tbaa !9
  %103 = invoke noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %101, i32 noundef %102)
          to label %104 unwind label %119

104:                                              ; preds = %99
  store i32 %103, ptr %24, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %118, %104
  %106 = load i32, ptr %24, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 1
  br i1 %107, label %108, label %123

108:                                              ; preds = %105
  %109 = load i32, ptr %24, align 4, !tbaa !9
  %110 = load i32, ptr %23, align 4, !tbaa !9
  %111 = mul nsw i32 %110, %109
  store i32 %111, ptr %23, align 4, !tbaa !9
  %112 = load i32, ptr %24, align 4, !tbaa !9
  %113 = load i32, ptr %22, align 4, !tbaa !9
  %114 = sdiv i32 %113, %112
  store i32 %114, ptr %22, align 4, !tbaa !9
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = load i32, ptr %22, align 4, !tbaa !9
  %117 = invoke noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %115, i32 noundef %116)
          to label %118 unwind label %119

118:                                              ; preds = %108
  store i32 %117, ptr %24, align 4, !tbaa !9
  br label %105, !llvm.loop !11

119:                                              ; preds = %108, %99
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %13, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %14, align 4
  br label %298

123:                                              ; preds = %105
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %125
  %127 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #5
  %128 = trunc i64 %127 to i32
  %129 = load i32, ptr %23, align 4, !tbaa !9
  %130 = srem i32 %128, %129
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %123
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store i1 true, ptr %19, align 1
  store i32 1, ptr %21, align 4
  br label %291

133:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %213

136:                                              ; preds = %133
  %137 = load i32, ptr %22, align 4, !tbaa !9
  %138 = srem i32 %137, 2
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %213

140:                                              ; preds = %136
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %142
  %144 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #5
  %145 = trunc i64 %144 to i32
  %146 = load i32, ptr %23, align 4, !tbaa !9
  %147 = mul nsw i32 2, %146
  %148 = icmp sge i32 %145, %147
  br i1 %148, label %149, label %213

149:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %150 = load i32, ptr %23, align 4, !tbaa !9
  %151 = mul nsw i32 2, %150
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = mul nsw i32 %151, %152
  store i32 %153, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #5
  %154 = load i32, ptr %26, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %155, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %156 unwind label %163

156:                                              ; preds = %149
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %201, %156
  %158 = load i32, ptr %29, align 4, !tbaa !9
  %159 = load i32, ptr %23, align 4, !tbaa !9
  %160 = mul nsw i32 2, %159
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %167, label %162

162:                                              ; preds = %157
  store i32 9, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %204

163:                                              ; preds = %149
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %13, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  br label %212

167:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %197, %167
  %169 = load i32, ptr %30, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 12, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %200

173:                                              ; preds = %168
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %175
  %177 = load i32, ptr %29, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #5
  %180 = load i32, ptr %30, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #5
  %183 = load i32, ptr %182, align 4, !tbaa !9
  %184 = load i32, ptr %29, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = load i32, ptr %30, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = mul nsw i64 1, %187
  %189 = load i32, ptr %7, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = mul nsw i64 %188, %190
  %192 = add nsw i64 %185, %191
  %193 = load i32, ptr %26, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = srem i64 %192, %194
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %195) #5
  store i32 %183, ptr %196, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %173
  %198 = load i32, ptr %30, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %30, align 4, !tbaa !9
  br label %168, !llvm.loop !13

200:                                              ; preds = %172
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %29, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %29, align 4, !tbaa !9
  br label %157, !llvm.loop !14

204:                                              ; preds = %162
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %205 unwind label %208

205:                                              ; preds = %204
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = mul nsw i32 2, %206
  store i32 %207, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %213

208:                                              ; preds = %204
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %13, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %14, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  br label %212

212:                                              ; preds = %208, %163
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %297

213:                                              ; preds = %205, %140, %136, %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %214 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %214, ptr %31, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %281, %213
  %216 = load i32, ptr %31, align 4, !tbaa !9
  %217 = load i32, ptr %20, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %218
  %220 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %219) #5
  %221 = trunc i64 %220 to i32
  %222 = icmp slt i32 %216, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %215
  store i32 15, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %290

224:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %225 = load i32, ptr %23, align 4, !tbaa !9
  %226 = load i32, ptr %20, align 4, !tbaa !9
  %227 = mul nsw i32 %225, %226
  store i32 %227, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #5
  %228 = load i32, ptr %32, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %229, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %230 unwind label %236

230:                                              ; preds = %224
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %276, %230
  %232 = load i32, ptr %35, align 4, !tbaa !9
  %233 = load i32, ptr %23, align 4, !tbaa !9
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %240, label %235

235:                                              ; preds = %231
  store i32 18, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %279

236:                                              ; preds = %224
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %13, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #5
  br label %289

240:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %272, %240
  %242 = load i32, ptr %36, align 4, !tbaa !9
  %243 = load i32, ptr %20, align 4, !tbaa !9
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 21, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %275

246:                                              ; preds = %241
  %247 = load i32, ptr %20, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %248
  %250 = load i32, ptr %31, align 4, !tbaa !9
  %251 = load i32, ptr %35, align 4, !tbaa !9
  %252 = add nsw i32 %250, %251
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %253) #5
  %255 = load i32, ptr %36, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256) #5
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = load i32, ptr %35, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = load i32, ptr %36, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = mul nsw i64 1, %262
  %264 = load i32, ptr %7, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = mul nsw i64 %263, %265
  %267 = add nsw i64 %260, %266
  %268 = load i32, ptr %32, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = srem i64 %267, %269
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %270) #5
  store i32 %258, ptr %271, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %246
  %273 = load i32, ptr %36, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %36, align 4, !tbaa !9
  br label %241, !llvm.loop !15

275:                                              ; preds = %245
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %35, align 4, !tbaa !9
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %35, align 4, !tbaa !9
  br label %231, !llvm.loop !16

279:                                              ; preds = %235
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %280 unwind label %285

280:                                              ; preds = %279
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %23, align 4, !tbaa !9
  %283 = load i32, ptr %31, align 4, !tbaa !9
  %284 = add nsw i32 %283, %282
  store i32 %284, ptr %31, align 4, !tbaa !9
  br label %215, !llvm.loop !17

285:                                              ; preds = %279
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %13, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %14, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  br label %289

289:                                              ; preds = %285, %236
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %297

290:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  store i32 0, ptr %21, align 4
  br label %291

291:                                              ; preds = %290, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %292 = load i32, ptr %21, align 4
  switch i32 %292, label %299 [
    i32 0, label %293
  ]

293:                                              ; preds = %291
  br label %294

294:                                              ; preds = %293, %98
  %295 = load i32, ptr %20, align 4, !tbaa !9
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %20, align 4, !tbaa !9
  br label %88, !llvm.loop !18

297:                                              ; preds = %289, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %298

298:                                              ; preds = %297, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %308

299:                                              ; preds = %291, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %300 = load i32, ptr %21, align 4
  switch i32 %300, label %302 [
    i32 4, label %301
  ]

301:                                              ; preds = %299
  store i1 true, ptr %19, align 1
  store i32 1, ptr %21, align 4
  br label %302

302:                                              ; preds = %301, %299
  %303 = load i1, ptr %19, align 1
  br i1 %303, label %305, label %304

304:                                              ; preds = %302
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %305

305:                                              ; preds = %304, %302
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %306 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %42
  %307 = icmp eq ptr %44, %306
  br i1 %307, label %316, label %312

308:                                              ; preds = %298, %86
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %309

309:                                              ; preds = %308, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %310 = getelementptr inbounds %"class.std::vector", ptr %44, i64 %42
  %311 = icmp eq ptr %44, %310
  br i1 %311, label %322, label %318

312:                                              ; preds = %312, %305
  %313 = phi ptr [ %306, %305 ], [ %314, %312 ]
  %314 = getelementptr inbounds %"class.std::vector", ptr %313, i64 -1
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %314) #5
  %315 = icmp eq ptr %314, %44
  br i1 %315, label %316, label %312

316:                                              ; preds = %312, %305
  %317 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %317)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void

318:                                              ; preds = %318, %309
  %319 = phi ptr [ %310, %309 ], [ %320, %318 ]
  %320 = getelementptr inbounds %"class.std::vector", ptr %319, i64 -1
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %320) #5
  %321 = icmp eq ptr %320, %44
  br i1 %321, label %322, label %318

322:                                              ; preds = %318, %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %323

323:                                              ; preds = %322
  %324 = load ptr, ptr %13, align 8
  %325 = load i32, ptr %14, align 4
  %326 = insertvalue { ptr, i32 } poison, ptr %324, 0
  %327 = insertvalue { ptr, i32 } %326, i32 %325, 1
  resume { ptr, i32 } %327
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 nosync nounwind willreturn }
attributes #5 = { 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}


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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9decomposeRSt6vectorIiSaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 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 @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; 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 #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_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_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4rootRSt6vectorIiSaIiEEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", 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.0", align 8
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca %"class.std::allocator.2", align 1
  %13 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %14 = trunc i64 %13 to i32
  %15 = add i64 %13, 1
  %16 = and i64 %15, 4294967295
  %17 = alloca %"class.std::vector", i64 %16, align 16
  %18 = icmp eq i64 %16, 0
  br i1 %18, label %.loopexit122, label %19

19:                                               ; preds = %4
  %20 = getelementptr inbounds %"class.std::vector", ptr %17, i64 %16
  br label %21

21:                                               ; preds = %21, %19
  %22 = phi ptr [ %17, %19 ], [ %23, %21 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = icmp eq ptr %23, %20
  br i1 %24, label %.loopexit122, label %21

.loopexit122:                                     ; preds = %21, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_Z9decomposeRSt6vectorIiSaIiEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %25 unwind label %31

25:                                               ; preds = %.loopexit122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %26 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %26, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %27 = call ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %27, ptr %7, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %28, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %38, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not141 = icmp slt i32 %14, 1
  br i1 %.not141, label %.thread115, label %.lr.ph146

.lr.ph146:                                        ; preds = %._crit_edge
  %29 = sext i32 %2 to i64
  %30 = add nuw nsw i64 %13, 1
  %wide.trip.count170 = and i64 %30, 4294967295
  br label %46

31:                                               ; preds = %.loopexit122
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %119

.lr.ph:                                           ; preds = %25, %38
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %34 unwind label %41

34:                                               ; preds = %.lr.ph
  %35 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %sext = shl i64 %35, 32
  %36 = ashr exact i64 %sext, 32
  %37 = getelementptr inbounds %"class.std::vector", ptr %17, i64 %36
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %38 unwind label %43

38:                                               ; preds = %34
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIiSaIiEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %40, label %.lr.ph, label %._crit_edge

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %34
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %45

45:                                               ; preds = %43, %41
  %.pn109 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %118

46:                                               ; preds = %.lr.ph146, %._crit_edge140
  %indvars.iv167 = phi i64 [ 1, %.lr.ph146 ], [ %indvars.iv.next168, %._crit_edge140 ]
  %.071145 = phi i32 [ %3, %.lr.ph146 ], [ %.3, %._crit_edge140 ]
  %47 = getelementptr inbounds %"class.std::vector", ptr %17, i64 %indvars.iv167
  %48 = call noundef zeroext i1 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  br i1 %48, label %._crit_edge140, label %49

49:                                               ; preds = %46
  %50 = trunc nuw nsw i64 %indvars.iv167 to i32
  %51 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %50, i32 noundef %2)
  %.not101123 = icmp eq i32 %51, 1
  br i1 %.not101123, label %._crit_edge129, label %.lr.ph128

.lr.ph128:                                        ; preds = %49, %.lr.ph128
  %.080126 = phi i32 [ %54, %.lr.ph128 ], [ %51, %49 ]
  %.081125 = phi i32 [ %52, %.lr.ph128 ], [ 1, %49 ]
  %.082124 = phi i32 [ %53, %.lr.ph128 ], [ %2, %49 ]
  %52 = mul nsw i32 %.080126, %.081125
  %53 = sdiv i32 %.082124, %.080126
  %54 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %50, i32 noundef %53)
  %.not101 = icmp eq i32 %54, 1
  br i1 %.not101, label %._crit_edge129, label %.lr.ph128, !llvm.loop !5

._crit_edge129:                                   ; preds = %.lr.ph128, %49
  %.082.lcssa = phi i32 [ %2, %49 ], [ %53, %.lr.ph128 ]
  %.081.lcssa = phi i32 [ 1, %49 ], [ %52, %.lr.ph128 ]
  %55 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %56 = trunc i64 %55 to i32
  %57 = srem i32 %56, %.081.lcssa
  %.not102 = icmp eq i32 %57, 0
  br i1 %.not102, label %58, label %.thread

.thread:                                          ; preds = %._crit_edge129
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %.thread115

58:                                               ; preds = %._crit_edge129
  %.not103 = icmp eq i32 %.071145, 0
  br i1 %.not103, label %86, label %59

59:                                               ; preds = %58
  %60 = and i32 %.082.lcssa, 1
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %86

62:                                               ; preds = %59
  %63 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %64 = trunc i64 %63 to i32
  %65 = shl nsw i32 %.081.lcssa, 1
  %.not104 = icmp sgt i32 %65, %64
  br i1 %.not104, label %86, label %66

66:                                               ; preds = %62
  %67 = mul nsw i32 %65, %50
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %68 = sext i32 %67 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %68, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %69 unwind label %71

69:                                               ; preds = %66
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  %70 = icmp sgt i32 %.081.lcssa, 0
  br i1 %70, label %.preheader121.preheader, label %._crit_edge133

.preheader121.preheader:                          ; preds = %69
  %smax = call i32 @llvm.smax.i32(i32 %65, i32 1)
  %wide.trip.count152 = zext nneg i32 %smax to i64
  br label %.preheader121

.preheader121:                                    ; preds = %.preheader121.preheader, %73
  %indvars.iv149 = phi i64 [ 0, %.preheader121.preheader ], [ %indvars.iv.next150, %73 ]
  br label %74

._crit_edge133:                                   ; preds = %73, %69
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %82 unwind label %83

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

73:                                               ; preds = %74
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond153.not = icmp eq i64 %indvars.iv.next150, %wide.trip.count152
  br i1 %exitcond153.not, label %._crit_edge133, label %.preheader121, !llvm.loop !7

74:                                               ; preds = %.preheader121, %74
  %indvars.iv = phi i64 [ 0, %.preheader121 ], [ %indvars.iv.next, %74 ]
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv149) #5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %indvars.iv) #5
  %77 = load i32, ptr %76, align 4, !tbaa !8
  %78 = mul nsw i64 %indvars.iv, %29
  %79 = add nsw i64 %78, %indvars.iv149
  %80 = srem i64 %79, %68
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %80) #5
  store i32 %77, ptr %81, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv167
  br i1 %exitcond.not, label %73, label %74, !llvm.loop !12

82:                                               ; preds = %._crit_edge133
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %86

83:                                               ; preds = %._crit_edge133
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %85

85:                                               ; preds = %83, %71
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %116

86:                                               ; preds = %82, %62, %59, %58
  %.079 = phi i32 [ %65, %82 ], [ 0, %62 ], [ 0, %59 ], [ 0, %58 ]
  %.1 = phi i32 [ 0, %82 ], [ %.071145, %62 ], [ %.071145, %59 ], [ 0, %58 ]
  %87 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %88 = trunc i64 %87 to i32
  %89 = icmp slt i32 %.079, %88
  br i1 %89, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %86
  %90 = mul nsw i32 %.081.lcssa, %50
  %91 = sext i32 %90 to i64
  %92 = icmp sgt i32 %.081.lcssa, 0
  %93 = sext i32 %.079 to i64
  %94 = sext i32 %.081.lcssa to i64
  %wide.trip.count162 = zext nneg i32 %.081.lcssa to i64
  br label %95

95:                                               ; preds = %.lr.ph139, %109
  %indvars.iv164 = phi i64 [ %93, %.lr.ph139 ], [ %indvars.iv.next165, %109 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %96 unwind label %98

96:                                               ; preds = %95
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br i1 %92, label %.preheader120, label %._crit_edge136

.preheader120:                                    ; preds = %96, %100
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %100 ], [ 0, %96 ]
  %97 = add nsw i64 %indvars.iv159, %indvars.iv164
  br label %101

._crit_edge136:                                   ; preds = %100, %96
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %109 unwind label %113

98:                                               ; preds = %95
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br label %115

100:                                              ; preds = %101
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count162
  br i1 %exitcond163.not, label %._crit_edge136, label %.preheader120, !llvm.loop !13

101:                                              ; preds = %.preheader120, %101
  %indvars.iv154 = phi i64 [ 0, %.preheader120 ], [ %indvars.iv.next155, %101 ]
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %97) #5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %indvars.iv154) #5
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %105 = mul nsw i64 %indvars.iv154, %29
  %106 = add nsw i64 %105, %indvars.iv159
  %107 = srem i64 %106, %91
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %107) #5
  store i32 %104, ptr %108, align 4, !tbaa !8
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next155, %indvars.iv167
  br i1 %exitcond158.not, label %100, label %101, !llvm.loop !14

109:                                              ; preds = %._crit_edge136
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  %indvars.iv.next165 = add nsw i64 %indvars.iv164, %94
  %110 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  %sext172 = shl i64 %110, 32
  %111 = ashr exact i64 %sext172, 32
  %112 = icmp slt i64 %indvars.iv.next165, %111
  br i1 %112, label %95, label %._crit_edge140, !llvm.loop !15

113:                                              ; preds = %._crit_edge136
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %115

115:                                              ; preds = %113, %98
  %.pn106 = phi { ptr, i32 } [ %114, %113 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %116

._crit_edge140:                                   ; preds = %109, %86, %46
  %.3 = phi i32 [ %.071145, %46 ], [ %.1, %86 ], [ %.1, %109 ]
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %wide.trip.count170
  br i1 %exitcond171.not, label %.thread115, label %46, !llvm.loop !16

116:                                              ; preds = %115, %85
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %115 ], [ %.pn, %85 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %118

.thread115:                                       ; preds = %._crit_edge140, %._crit_edge, %.thread
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br i1 %18, label %.loopexit119, label %.preheader118.preheader

.preheader118.preheader:                          ; preds = %.thread115
  %117 = getelementptr inbounds %"class.std::vector", ptr %17, i64 %16
  br label %.preheader118

118:                                              ; preds = %116, %45
  %.pn109.pn = phi { ptr, i32 } [ %.pn109, %45 ], [ %.pn106.pn, %116 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %119

119:                                              ; preds = %118, %31
  %.pn109.pn.pn = phi { ptr, i32 } [ %.pn109.pn, %118 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br i1 %18, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %119
  %120 = getelementptr inbounds %"class.std::vector", ptr %17, i64 %16
  br label %.preheader

.preheader118:                                    ; preds = %.preheader118.preheader, %.preheader118
  %121 = phi ptr [ %122, %.preheader118 ], [ %117, %.preheader118.preheader ]
  %122 = getelementptr inbounds i8, ptr %121, i64 -24
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #5
  %123 = icmp eq ptr %122, %17
  br i1 %123, label %.loopexit119, label %.preheader118

.loopexit119:                                     ; preds = %.preheader118, %.thread115
  ret void

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %124 = phi ptr [ %125, %.preheader ], [ %120, %.preheader.preheader ]
  %125 = getelementptr inbounds i8, ptr %124, i64 -24
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #5
  %126 = icmp eq ptr %125, %17
  br i1 %126, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %119
  resume { ptr, i32 } %.pn109.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}


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