; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/WF/Easy Medium/SFUNC/A.ll (Z5solvexx)

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

@MOD = external dso_local global i64, align 8
@C = external dso_local global [20 x [20 x i64]], align 16
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [105 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvexx = external hidden unnamed_addr constant [17 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4fastxx(i64 noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z4mul2xx(i64 noundef, i64 noundef) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mfastSt6vectorIS_IxSaIxEESaIS1_EEx(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z5solvexx(i64 noundef %0, i64 noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector.0", align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::allocator.2", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [41 x %"class.std::vector"], align 16
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::vector.0", align 8
  %30 = alloca i64, align 8
  %31 = alloca %"class.std::allocator.2", align 1
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::vector.0", align 8
  %35 = alloca i64, align 8
  %36 = alloca %"class.std::allocator.2", align 1
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %40 = load i64, ptr %4, align 8, !tbaa !5
  call void @_Z9getPrimesx(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %6, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %41 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = shl i32 1, %43
  store i32 %44, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %45 = load i64, ptr %5, align 8, !tbaa !5
  %46 = add nsw i64 %45, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %47 = load i64, ptr %5, align 8, !tbaa !5
  %48 = add nsw i64 %47, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %48, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %49 unwind label %58

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %46, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %50 unwind label %62

50:                                               ; preds = %49
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %129, %50
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = load i64, ptr %5, align 8, !tbaa !5
  %55 = add nsw i64 %54, 2
  %56 = icmp slt i64 %53, %55
  br i1 %56, label %67, label %57

57:                                               ; preds = %51
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %132

58:                                               ; preds = %2
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %13, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %14, align 4
  br label %66

62:                                               ; preds = %49
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %346

67:                                               ; preds = %51
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = load i64, ptr %5, align 8, !tbaa !5
  %71 = add nsw i64 %70, 1
  %72 = icmp slt i64 %69, %71
  br i1 %72, label %73, label %97

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %93, %73
  %75 = load i32, ptr %18, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %96

79:                                               ; preds = %74
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [20 x [20 x i64]], ptr @C, i64 0, i64 %81
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [20 x i64], ptr %82, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %88) #6
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #6
  store i64 %86, ptr %92, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %79
  %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 %74, !llvm.loop !11

96:                                               ; preds = %78
  br label %128

97:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %118, %97
  %99 = load i32, ptr %19, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %121

103:                                              ; preds = %98
  %104 = load i32, ptr %19, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %105) #6
  %107 = load i32, ptr %16, align 4, !tbaa !9
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %109) #6
  %111 = load i64, ptr %110, align 8, !tbaa !5
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %113) #6
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %116) #6
  store i64 %111, ptr %117, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %103
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !9
  br label %98, !llvm.loop !13

121:                                              ; preds = %102
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %123) #6
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #6
  store i64 1, ptr %127, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %121, %96
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %16, align 4, !tbaa !9
  br label %51, !llvm.loop !14

132:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 984, ptr %20) #6
  %133 = getelementptr inbounds [41 x %"class.std::vector"], ptr %20, i32 0, i32 0
  %134 = getelementptr inbounds %"class.std::vector", ptr %133, i64 41
  br label %135

135:                                              ; preds = %135, %132
  %136 = phi ptr [ %133, %132 ], [ %137, %135 ]
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %137 = getelementptr inbounds %"class.std::vector", ptr %136, i64 1
  %138 = icmp eq ptr %137, %134
  br i1 %138, label %139, label %135

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %154, %139
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = icmp sle i32 %141, 40
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %166

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %145 unwind label %157

145:                                              ; preds = %144
  %146 = load i32, ptr %21, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = shl i64 1, %147
  invoke void @_Z5mfastSt6vectorIS_IxSaIxEESaIS1_EEx(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %22, ptr noundef %23, i64 noundef %148)
          to label %149 unwind label %161

149:                                              ; preds = %145
  %150 = load i32, ptr %21, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [41 x %"class.std::vector"], ptr %20, i64 0, i64 %151
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %154

154:                                              ; preds = %149
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %21, align 4, !tbaa !9
  br label %140, !llvm.loop !15

157:                                              ; preds = %144
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %13, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %14, align 4
  br label %165

161:                                              ; preds = %145
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %13, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %14, align 4
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %165

165:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %338

166:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %311, %166
  %168 = load i32, ptr %25, align 4, !tbaa !9
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %167
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %316

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store i64 1, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %194, %172
  %174 = load i32, ptr %28, align 4, !tbaa !9
  %175 = load i32, ptr %7, align 4, !tbaa !9
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %197

178:                                              ; preds = %173
  %179 = load i32, ptr %25, align 4, !tbaa !9
  %180 = load i32, ptr %28, align 4, !tbaa !9
  %181 = shl i32 1, %180
  %182 = and i32 %179, %181
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %193

184:                                              ; preds = %178
  %185 = load i32, ptr %28, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %186) #6
  %188 = load i64, ptr %187, align 8, !tbaa !5
  %189 = load i64, ptr %26, align 8, !tbaa !5
  %190 = mul nsw i64 %189, %188
  store i64 %190, ptr %26, align 8, !tbaa !5
  %191 = load i32, ptr %27, align 4, !tbaa !9
  %192 = xor i32 %191, 1
  store i32 %192, ptr %27, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %184, %178
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %28, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %28, align 4, !tbaa !9
  br label %173, !llvm.loop !16

197:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  %198 = load i64, ptr %5, align 8, !tbaa !5
  %199 = add nsw i64 %198, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 1, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %199, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %200 unwind label %224

200:                                              ; preds = %197
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %201 = load i64, ptr %4, align 8, !tbaa !5
  %202 = load i64, ptr %26, align 8, !tbaa !5
  %203 = sdiv i64 %201, %202
  store i64 %203, ptr %32, align 8, !tbaa !5
  %204 = load i64, ptr %32, align 8, !tbaa !5
  %205 = add nsw i64 %204, -1
  store i64 %205, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %281, %200
  %207 = load i64, ptr %32, align 8, !tbaa !5
  %208 = icmp ne i64 %207, 0
  br i1 %208, label %209, label %286

209:                                              ; preds = %206
  %210 = load i64, ptr %32, align 8, !tbaa !5
  %211 = and i64 %210, 1
  %212 = icmp ne i64 %211, 0
  br i1 %212, label %213, label %281

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  %214 = load i64, ptr %5, align 8, !tbaa !5
  %215 = add nsw i64 %214, 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  store i64 0, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %215, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %216 unwind label %228

216:                                              ; preds = %213
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %269, %216
  %218 = load i32, ptr %37, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = load i64, ptr %5, align 8, !tbaa !5
  %221 = add nsw i64 %220, 2
  %222 = icmp slt i64 %219, %221
  br i1 %222, label %232, label %223

223:                                              ; preds = %217
  store i32 22, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %272

224:                                              ; preds = %197
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %13, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %315

228:                                              ; preds = %213
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %13, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %280

232:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %261, %232
  %234 = load i32, ptr %38, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = load i64, ptr %5, align 8, !tbaa !5
  %237 = add nsw i64 %236, 2
  %238 = icmp slt i64 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %233
  store i32 25, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %268

240:                                              ; preds = %233
  %241 = load i32, ptr %37, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %242) #6
  %244 = load i32, ptr %38, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %245) #6
  %247 = load i64, ptr %246, align 8, !tbaa !5
  %248 = load i32, ptr %33, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [41 x %"class.std::vector"], ptr %20, i64 0, i64 %249
  %251 = load i32, ptr %38, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef %252) #6
  %254 = load i32, ptr %37, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %255) #6
  %257 = load i64, ptr %256, align 8, !tbaa !5
  %258 = invoke noundef i64 @_Z4mul2xx(i64 noundef %247, i64 noundef %257)
          to label %259 unwind label %264

259:                                              ; preds = %240
  invoke void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %243, i64 noundef %258)
          to label %260 unwind label %264

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %38, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %38, align 4, !tbaa !9
  br label %233, !llvm.loop !17

264:                                              ; preds = %259, %240
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %13, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %279

268:                                              ; preds = %239
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %37, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %37, align 4, !tbaa !9
  br label %217, !llvm.loop !18

272:                                              ; preds = %223
  %273 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %274 unwind label %275

274:                                              ; preds = %272
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %281

275:                                              ; preds = %272
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %13, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %14, align 4
  br label %279

279:                                              ; preds = %275, %264
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  br label %280

280:                                              ; preds = %279, %228
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %314

281:                                              ; preds = %274, %209
  %282 = load i64, ptr %32, align 8, !tbaa !5
  %283 = ashr i64 %282, 1
  store i64 %283, ptr %32, align 8, !tbaa !5
  %284 = load i32, ptr %33, align 4, !tbaa !9
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %33, align 4, !tbaa !9
  br label %206, !llvm.loop !19

286:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %288 = load i64, ptr %287, align 8, !tbaa !5
  store i64 %288, ptr %39, align 8, !tbaa !5
  %289 = load i64, ptr %39, align 8, !tbaa !5
  %290 = load i64, ptr %26, align 8, !tbaa !5
  %291 = load i64, ptr %5, align 8, !tbaa !5
  %292 = invoke noundef i64 @_Z4fastxx(i64 noundef %290, i64 noundef %291)
          to label %293 unwind label %303

293:                                              ; preds = %286
  %294 = invoke noundef i64 @_Z4mul2xx(i64 noundef %289, i64 noundef %292)
          to label %295 unwind label %303

295:                                              ; preds = %293
  store i64 %294, ptr %39, align 8, !tbaa !5
  %296 = load i32, ptr %27, align 4, !tbaa !9
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %307

298:                                              ; preds = %295
  %299 = load i64, ptr @MOD, align 8, !tbaa !5
  %300 = load i64, ptr %39, align 8, !tbaa !5
  %301 = sub nsw i64 %299, %300
  invoke void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %301)
          to label %302 unwind label %303

302:                                              ; preds = %298
  br label %310

303:                                              ; preds = %307, %298, %293, %286
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %13, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %314

307:                                              ; preds = %295
  %308 = load i64, ptr %39, align 8, !tbaa !5
  invoke void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %308)
          to label %309 unwind label %303

309:                                              ; preds = %307
  br label %310

310:                                              ; preds = %309, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %25, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %25, align 4, !tbaa !9
  br label %167, !llvm.loop !20

314:                                              ; preds = %303, %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %315

315:                                              ; preds = %314, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %338

316:                                              ; preds = %171
  %317 = load i64, ptr %24, align 8, !tbaa !5
  %318 = icmp sle i64 0, %317
  br i1 %318, label %319, label %323

319:                                              ; preds = %316
  %320 = load i64, ptr %24, align 8, !tbaa !5
  %321 = load i64, ptr @MOD, align 8, !tbaa !5
  %322 = icmp slt i64 %320, %321
  br label %323

323:                                              ; preds = %319, %316
  %324 = phi i1 [ false, %316 ], [ %322, %319 ]
  br i1 %324, label %325, label %326

325:                                              ; preds = %323
  br label %328

326:                                              ; preds = %323
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 198, ptr noundef @__PRETTY_FUNCTION__._Z5solvexx) #7
  unreachable

327:                                              ; No predecessors!
  br label %328

328:                                              ; preds = %327, %325
  %329 = load i64, ptr %24, align 8, !tbaa !5
  store i64 %329, ptr %3, align 8
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %330 = getelementptr inbounds [41 x %"class.std::vector"], ptr %20, i32 0, i32 0
  %331 = getelementptr inbounds %"class.std::vector", ptr %330, i64 41
  br label %332

332:                                              ; preds = %332, %328
  %333 = phi ptr [ %331, %328 ], [ %334, %332 ]
  %334 = getelementptr inbounds %"class.std::vector", ptr %333, i64 -1
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %334) #6
  %335 = icmp eq ptr %334, %330
  br i1 %335, label %336, label %332

336:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 984, ptr %20) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  %337 = load i64, ptr %3, align 8
  ret i64 %337

338:                                              ; preds = %315, %165
  %339 = getelementptr inbounds [41 x %"class.std::vector"], ptr %20, i32 0, i32 0
  %340 = getelementptr inbounds %"class.std::vector", ptr %339, i64 41
  br label %341

341:                                              ; preds = %341, %338
  %342 = phi ptr [ %340, %338 ], [ %343, %341 ]
  %343 = getelementptr inbounds %"class.std::vector", ptr %342, i64 -1
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %343) #6
  %344 = icmp eq ptr %343, %339
  br i1 %344, label %345, label %341

345:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 984, ptr %20) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %346

346:                                              ; preds = %345, %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %347

347:                                              ; preds = %346
  %348 = load ptr, ptr %13, align 8
  %349 = load i32, ptr %14, align 4
  %350 = insertvalue { ptr, i32 } poison, ptr %348, 0
  %351 = insertvalue { ptr, i32 } %350, i32 %349, 1
  resume { ptr, i32 } %351
}

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { 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 #5 = { noreturn nounwind "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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }

@MOD = external dso_local local_unnamed_addr global i64, align 8
@C = external dso_local local_unnamed_addr global [20 x [20 x i64]], align 16
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [105 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvexx = external hidden unnamed_addr constant [17 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4fastxx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z4mul2xx(i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mfastSt6vectorIS_IxSaIxEESaIS1_EEx(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9getPrimesx(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i64 0, -9223372036854775808) i64 @_Z5solvexx(i64 noundef %0, i64 noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca [41 x %"class.std::vector"], align 16
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector.0", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::allocator.2", align 1
  %16 = alloca %"class.std::vector.0", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::allocator.2", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_Z9getPrimesx(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %3, i64 noundef %0)
  %19 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %20 = trunc i64 %19 to i32
  %21 = shl nuw i32 1, %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %22 = add i64 %1, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %23 unwind label %26

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %24 unwind label %28

24:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  %25 = icmp sgt i64 %1, -2
  br i1 %25, label %.lr.ph123.preheader, label %._crit_edge124

.lr.ph123.preheader:                              ; preds = %24
  %smax = call i64 @llvm.smax.i64(i64 %22, i64 1)
  br label %.lr.ph123

._crit_edge124:                                   ; preds = %.loopexit, %24
  call void @llvm.lifetime.start.p0(i64 984, ptr nonnull %9) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %.ptr.1 = getelementptr inbounds i8, ptr %9, i64 24
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #7
  %.ptr.2 = getelementptr inbounds i8, ptr %9, i64 48
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #7
  %.ptr.3 = getelementptr inbounds i8, ptr %9, i64 72
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #7
  %.ptr.4 = getelementptr inbounds i8, ptr %9, i64 96
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #7
  %.ptr.5 = getelementptr inbounds i8, ptr %9, i64 120
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #7
  %.ptr.6 = getelementptr inbounds i8, ptr %9, i64 144
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #7
  %.ptr.7 = getelementptr inbounds i8, ptr %9, i64 168
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #7
  %.ptr.8 = getelementptr inbounds i8, ptr %9, i64 192
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8) #7
  %.ptr.9 = getelementptr inbounds i8, ptr %9, i64 216
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9) #7
  %.ptr.10 = getelementptr inbounds i8, ptr %9, i64 240
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10) #7
  %.ptr.11 = getelementptr inbounds i8, ptr %9, i64 264
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.11) #7
  %.ptr.12 = getelementptr inbounds i8, ptr %9, i64 288
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.12) #7
  %.ptr.13 = getelementptr inbounds i8, ptr %9, i64 312
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.13) #7
  %.ptr.14 = getelementptr inbounds i8, ptr %9, i64 336
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.14) #7
  %.ptr.15 = getelementptr inbounds i8, ptr %9, i64 360
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.15) #7
  %.ptr.16 = getelementptr inbounds i8, ptr %9, i64 384
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.16) #7
  %.ptr.17 = getelementptr inbounds i8, ptr %9, i64 408
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.17) #7
  %.ptr.18 = getelementptr inbounds i8, ptr %9, i64 432
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.18) #7
  %.ptr.19 = getelementptr inbounds i8, ptr %9, i64 456
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.19) #7
  %.ptr.20 = getelementptr inbounds i8, ptr %9, i64 480
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.20) #7
  %.ptr.21 = getelementptr inbounds i8, ptr %9, i64 504
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.21) #7
  %.ptr.22 = getelementptr inbounds i8, ptr %9, i64 528
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.22) #7
  %.ptr.23 = getelementptr inbounds i8, ptr %9, i64 552
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.23) #7
  %.ptr.24 = getelementptr inbounds i8, ptr %9, i64 576
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.24) #7
  %.ptr.25 = getelementptr inbounds i8, ptr %9, i64 600
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.25) #7
  %.ptr.26 = getelementptr inbounds i8, ptr %9, i64 624
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.26) #7
  %.ptr.27 = getelementptr inbounds i8, ptr %9, i64 648
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.27) #7
  %.ptr.28 = getelementptr inbounds i8, ptr %9, i64 672
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.28) #7
  %.ptr.29 = getelementptr inbounds i8, ptr %9, i64 696
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.29) #7
  %.ptr.30 = getelementptr inbounds i8, ptr %9, i64 720
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.30) #7
  %.ptr.31 = getelementptr inbounds i8, ptr %9, i64 744
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.31) #7
  %.ptr.32 = getelementptr inbounds i8, ptr %9, i64 768
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.32) #7
  %.ptr.33 = getelementptr inbounds i8, ptr %9, i64 792
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.33) #7
  %.ptr.34 = getelementptr inbounds i8, ptr %9, i64 816
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.34) #7
  %.ptr.35 = getelementptr inbounds i8, ptr %9, i64 840
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.35) #7
  %.ptr.36 = getelementptr inbounds i8, ptr %9, i64 864
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.36) #7
  %.ptr.37 = getelementptr inbounds i8, ptr %9, i64 888
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.37) #7
  %.ptr.38 = getelementptr inbounds i8, ptr %9, i64 912
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.38) #7
  %.ptr.39 = getelementptr inbounds i8, ptr %9, i64 936
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.39) #7
  %.ptr.40 = getelementptr inbounds i8, ptr %9, i64 960
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.40) #7
  br label %.preheader115

26:                                               ; preds = %2
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %23
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %30

30:                                               ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %202

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %.loopexit
  %indvars.iv164 = phi i64 [ 0, %.lr.ph123.preheader ], [ %indvars.iv.next165, %.loopexit ]
  %indvars.iv162 = phi i64 [ 1, %.lr.ph123.preheader ], [ %indvars.iv.next163, %.loopexit ]
  %.not112 = icmp sgt i64 %indvars.iv164, %1
  br i1 %.not112, label %.preheader116, label %.preheader117

.preheader116:                                    ; preds = %.lr.ph123
  %.not151 = icmp eq i64 %indvars.iv164, 0
  br i1 %.not151, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader116
  %31 = add nsw i64 %indvars.iv164, -1
  br label %38

.preheader117:                                    ; preds = %.lr.ph123, %.preheader117
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader117 ], [ 0, %.lr.ph123 ]
  %32 = getelementptr inbounds [20 x [20 x i64]], ptr @C, i64 0, i64 %indvars.iv164, i64 %indvars.iv
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %indvars.iv164) #7
  store i64 %33, ptr %35, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv162
  br i1 %exitcond.not, label %.loopexit, label %.preheader117, !llvm.loop !9

._crit_edge:                                      ; preds = %38, %.preheader116
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv164) #7
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv164) #7
  store i64 1, ptr %37, align 8, !tbaa !5
  br label %.loopexit

38:                                               ; preds = %.lr.ph, %38
  %indvars.iv157 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next158, %38 ]
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv157) #7
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %31) #7
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv157) #7
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv164) #7
  store i64 %41, ptr %43, align 8, !tbaa !5
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %indvars.iv164
  br i1 %exitcond161.not, label %._crit_edge, label %38, !llvm.loop !11

.loopexit:                                        ; preds = %.preheader117, %._crit_edge
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %indvars.iv.next163 = add nuw i64 %indvars.iv162, 1
  %exitcond169.not = icmp eq i64 %indvars.iv.next165, %smax
  br i1 %exitcond169.not, label %._crit_edge124, label %.lr.ph123, !llvm.loop !12

44:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store i64 0, ptr %12, align 8, !tbaa !5
  %.not152 = icmp eq i32 %20, 31
  br i1 %.not152, label %._crit_edge150, label %.preheader114.lr.ph

.preheader114.lr.ph:                              ; preds = %44
  %45 = icmp sgt i32 %20, 0
  %smax185 = call i64 @llvm.smax.i64(i64 %22, i64 1)
  %smax190 = call i32 @llvm.smax.i32(i32 %21, i32 1)
  %wide.trip.count = and i64 %19, 2147483647
  br label %.preheader114

.preheader115:                                    ; preds = %._crit_edge124, %48
  %indvars.iv170 = phi i64 [ 0, %._crit_edge124 ], [ %indvars.iv.next171, %48 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %46 unwind label %51

46:                                               ; preds = %.preheader115
  %47 = shl nuw nsw i64 1, %indvars.iv170
  invoke void @_Z5mfastSt6vectorIS_IxSaIxEESaIS1_EEx(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %10, ptr noundef nonnull %11, i64 noundef %47)
          to label %48 unwind label %53

48:                                               ; preds = %46
  %49 = getelementptr inbounds [41 x %"class.std::vector"], ptr %9, i64 0, i64 %indvars.iv170
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next171, 41
  br i1 %exitcond173.not, label %44, label %.preheader115, !llvm.loop !13

51:                                               ; preds = %.preheader115
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %46
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %55

55:                                               ; preds = %53, %51
  %.pn108 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %161

.preheader114:                                    ; preds = %.preheader114.lr.ph, %111
  %.075149 = phi i32 [ 0, %.preheader114.lr.ph ], [ %114, %111 ]
  br i1 %45, label %.lr.ph129, label %._crit_edge130

._crit_edge150.loopexit:                          ; preds = %111
  %.pre = load i64, ptr %12, align 8
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %._crit_edge150.loopexit, %44
  %56 = phi i64 [ %.pre, %._crit_edge150.loopexit ], [ 0, %44 ]
  %57 = icmp sgt i64 %56, -1
  %58 = load i64, ptr @MOD, align 8
  %59 = icmp slt i64 %56, %58
  %60 = select i1 %57, i1 %59, i1 false
  br i1 %60, label %120, label %119

._crit_edge130:                                   ; preds = %69, %.preheader114
  %.073.lcssa = phi i64 [ 1, %.preheader114 ], [ %.174, %69 ]
  %.072.lcssa = phi i32 [ 0, %.preheader114 ], [ %.1, %69 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  store i64 1, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %70 unwind label %96

.lr.ph129:                                        ; preds = %.preheader114, %69
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %69 ], [ 0, %.preheader114 ]
  %.072127 = phi i32 [ %.1, %69 ], [ 0, %.preheader114 ]
  %.073126 = phi i64 [ %.174, %69 ], [ 1, %.preheader114 ]
  %61 = trunc nuw nsw i64 %indvars.iv174 to i32
  %62 = shl nuw i32 1, %61
  %63 = and i32 %62, %.075149
  %.not107 = icmp eq i32 %63, 0
  br i1 %.not107, label %69, label %64

64:                                               ; preds = %.lr.ph129
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv174) #7
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = mul nsw i64 %66, %.073126
  %68 = xor i32 %.072127, 1
  br label %69

69:                                               ; preds = %.lr.ph129, %64
  %.174 = phi i64 [ %67, %64 ], [ %.073126, %.lr.ph129 ]
  %.1 = phi i32 [ %68, %64 ], [ %.072127, %.lr.ph129 ]
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count
  br i1 %exitcond177.not, label %._crit_edge130, label %.lr.ph129, !llvm.loop !14

70:                                               ; preds = %._crit_edge130
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %71 = sdiv i64 %0, %.073.lcssa
  %72 = add nsw i64 %71, -1
  %.not137 = icmp eq i64 %72, 0
  br i1 %.not137, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %70
  br i1 %25, label %.lr.ph142.split.us, label %.lr.ph142.split

.lr.ph142.split.us:                               ; preds = %.lr.ph142, %77
  %indvars.iv187 = phi i64 [ %indvars.iv.next188, %77 ], [ 0, %.lr.ph142 ]
  %.070138.us = phi i64 [ %78, %77 ], [ %72, %.lr.ph142 ]
  %73 = and i64 %.070138.us, 1
  %.not101.us = icmp eq i64 %73, 0
  br i1 %.not101.us, label %77, label %74

74:                                               ; preds = %.lr.ph142.split.us
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store i64 0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %.preheader.lr.ph.us unwind label %.split.us144

.preheader.lr.ph.us:                              ; preds = %74
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %75 = getelementptr inbounds [41 x %"class.std::vector"], ptr %9, i64 0, i64 %indvars.iv187
  br label %.preheader.us.us

76:                                               ; preds = %._crit_edge136.split.us.us
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %77

77:                                               ; preds = %76, %.lr.ph142.split.us
  %78 = ashr i64 %.070138.us, 1
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %.not.us = icmp ult i64 %.070138.us, 2
  br i1 %.not.us, label %._crit_edge143, label %.lr.ph142.split.us, !llvm.loop !15

.preheader.us.us:                                 ; preds = %._crit_edge134.us.us, %.preheader.lr.ph.us
  %indvars.iv182 = phi i64 [ %indvars.iv.next183, %._crit_edge134.us.us ], [ 0, %.preheader.lr.ph.us ]
  br label %79

79:                                               ; preds = %87, %.preheader.us.us
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %87 ], [ 0, %.preheader.us.us ]
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv182) #7
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv178) #7
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %indvars.iv178) #7
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %indvars.iv182) #7
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = invoke noundef i64 @_Z4mul2xx(i64 noundef %82, i64 noundef %85)
          to label %87 unwind label %.split.us.split.us

87:                                               ; preds = %79
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %86)
  %indvars.iv.next179 = add nuw i64 %indvars.iv178, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next179, %22
  br i1 %exitcond181.not, label %._crit_edge134.us.us, label %79, !llvm.loop !16

._crit_edge134.us.us:                             ; preds = %87
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %exitcond186.not = icmp eq i64 %indvars.iv.next183, %smax185
  br i1 %exitcond186.not, label %._crit_edge136.split.us.us, label %.preheader.us.us, !llvm.loop !17

._crit_edge136.split.us.us:                       ; preds = %._crit_edge134.us.us
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %76 unwind label %.split146.us

.split.us144:                                     ; preds = %74
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %99

.split146.us:                                     ; preds = %._crit_edge136.split.us.us
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %102

.split.us.split.us:                               ; preds = %79
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %102

.lr.ph142.split:                                  ; preds = %.lr.ph142, %104
  %.070138 = phi i64 [ %105, %104 ], [ %72, %.lr.ph142 ]
  %92 = and i64 %.070138, 1
  %.not101 = icmp eq i64 %92, 0
  br i1 %.not101, label %104, label %93

93:                                               ; preds = %.lr.ph142.split
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store i64 0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %94 unwind label %.split

94:                                               ; preds = %93
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %95 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %100 unwind label %.split146

96:                                               ; preds = %._crit_edge130
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %118

.split:                                           ; preds = %93
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %99

99:                                               ; preds = %.split.us144, %.split
  %.us-phi = phi { ptr, i32 } [ %98, %.split ], [ %89, %.split.us144 ]
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %103

100:                                              ; preds = %94
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %104

.split146:                                        ; preds = %94
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %102

102:                                              ; preds = %.split146, %.split146.us, %.split.us.split.us
  %.pn102 = phi { ptr, i32 } [ %91, %.split.us.split.us ], [ %101, %.split146 ], [ %90, %.split146.us ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  br label %103

103:                                              ; preds = %102, %99
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %102 ], [ %.us-phi, %99 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %117

104:                                              ; preds = %100, %.lr.ph142.split
  %105 = ashr i64 %.070138, 1
  %.not = icmp ult i64 %.070138, 2
  br i1 %.not, label %._crit_edge143, label %.lr.ph142.split, !llvm.loop !15

._crit_edge143:                                   ; preds = %104, %77, %70
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %107 = load i64, ptr %106, align 8, !tbaa !5
  %108 = invoke noundef i64 @_Z4fastxx(i64 noundef %.073.lcssa, i64 noundef %1)
          to label %109 unwind label %115

109:                                              ; preds = %._crit_edge143
  %110 = invoke noundef i64 @_Z4mul2xx(i64 noundef %107, i64 noundef %108)
          to label %111 unwind label %115

111:                                              ; preds = %109
  %.not100 = icmp eq i32 %.072.lcssa, 0
  %112 = load i64, ptr @MOD, align 8
  %113 = sub nsw i64 %112, %110
  %.sink = select i1 %.not100, i64 %110, i64 %113
  call void @_Z3addRxx(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %.sink)
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  %114 = add nuw nsw i32 %.075149, 1
  %exitcond191.not = icmp eq i32 %114, %smax190
  br i1 %exitcond191.not, label %._crit_edge150.loopexit, label %.preheader114, !llvm.loop !18

115:                                              ; preds = %109, %._crit_edge143
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %117

117:                                              ; preds = %115, %103
  %.pn102.pn.pn = phi { ptr, i32 } [ %.pn102.pn, %103 ], [ %116, %115 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %118

118:                                              ; preds = %117, %96
  %.pn102.pn.pn.pn = phi { ptr, i32 } [ %.pn102.pn.pn, %117 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %161

119:                                              ; preds = %._crit_edge150
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 198, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5solvexx) #8
  unreachable

120:                                              ; preds = %._crit_edge150
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %121 = getelementptr inbounds i8, ptr %9, i64 960
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %122 = getelementptr inbounds i8, ptr %9, i64 936
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %123 = getelementptr inbounds i8, ptr %9, i64 912
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #7
  %124 = getelementptr inbounds i8, ptr %9, i64 888
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #7
  %125 = getelementptr inbounds i8, ptr %9, i64 864
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #7
  %126 = getelementptr inbounds i8, ptr %9, i64 840
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %127 = getelementptr inbounds i8, ptr %9, i64 816
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %127) #7
  %128 = getelementptr inbounds i8, ptr %9, i64 792
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %128) #7
  %129 = getelementptr inbounds i8, ptr %9, i64 768
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %129) #7
  %130 = getelementptr inbounds i8, ptr %9, i64 744
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %130) #7
  %131 = getelementptr inbounds i8, ptr %9, i64 720
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %131) #7
  %132 = getelementptr inbounds i8, ptr %9, i64 696
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  %133 = getelementptr inbounds i8, ptr %9, i64 672
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %133) #7
  %134 = getelementptr inbounds i8, ptr %9, i64 648
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %134) #7
  %135 = getelementptr inbounds i8, ptr %9, i64 624
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %135) #7
  %136 = getelementptr inbounds i8, ptr %9, i64 600
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %136) #7
  %137 = getelementptr inbounds i8, ptr %9, i64 576
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %137) #7
  %138 = getelementptr inbounds i8, ptr %9, i64 552
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %138) #7
  %139 = getelementptr inbounds i8, ptr %9, i64 528
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %139) #7
  %140 = getelementptr inbounds i8, ptr %9, i64 504
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %141 = getelementptr inbounds i8, ptr %9, i64 480
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %141) #7
  %142 = getelementptr inbounds i8, ptr %9, i64 456
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %142) #7
  %143 = getelementptr inbounds i8, ptr %9, i64 432
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %143) #7
  %144 = getelementptr inbounds i8, ptr %9, i64 408
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %144) #7
  %145 = getelementptr inbounds i8, ptr %9, i64 384
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %145) #7
  %146 = getelementptr inbounds i8, ptr %9, i64 360
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #7
  %147 = getelementptr inbounds i8, ptr %9, i64 336
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %147) #7
  %148 = getelementptr inbounds i8, ptr %9, i64 312
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %148) #7
  %149 = getelementptr inbounds i8, ptr %9, i64 288
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %149) #7
  %150 = getelementptr inbounds i8, ptr %9, i64 264
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %150) #7
  %151 = getelementptr inbounds i8, ptr %9, i64 240
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %151) #7
  %152 = getelementptr inbounds i8, ptr %9, i64 216
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %152) #7
  %153 = getelementptr inbounds i8, ptr %9, i64 192
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %153) #7
  %154 = getelementptr inbounds i8, ptr %9, i64 168
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %154) #7
  %155 = getelementptr inbounds i8, ptr %9, i64 144
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #7
  %156 = getelementptr inbounds i8, ptr %9, i64 120
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #7
  %157 = getelementptr inbounds i8, ptr %9, i64 96
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #7
  %158 = getelementptr inbounds i8, ptr %9, i64 72
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #7
  %159 = getelementptr inbounds i8, ptr %9, i64 48
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #7
  %160 = getelementptr inbounds i8, ptr %9, i64 24
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 984, ptr nonnull %9) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret i64 %56

161:                                              ; preds = %118, %55
  %.pn108.pn = phi { ptr, i32 } [ %.pn108, %55 ], [ %.pn102.pn.pn.pn, %118 ]
  %162 = getelementptr inbounds i8, ptr %9, i64 960
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %162) #7
  %163 = getelementptr inbounds i8, ptr %9, i64 936
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %163) #7
  %164 = getelementptr inbounds i8, ptr %9, i64 912
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %164) #7
  %165 = getelementptr inbounds i8, ptr %9, i64 888
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  %166 = getelementptr inbounds i8, ptr %9, i64 864
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %167 = getelementptr inbounds i8, ptr %9, i64 840
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %167) #7
  %168 = getelementptr inbounds i8, ptr %9, i64 816
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #7
  %169 = getelementptr inbounds i8, ptr %9, i64 792
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %169) #7
  %170 = getelementptr inbounds i8, ptr %9, i64 768
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %170) #7
  %171 = getelementptr inbounds i8, ptr %9, i64 744
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %171) #7
  %172 = getelementptr inbounds i8, ptr %9, i64 720
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #7
  %173 = getelementptr inbounds i8, ptr %9, i64 696
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %173) #7
  %174 = getelementptr inbounds i8, ptr %9, i64 672
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #7
  %175 = getelementptr inbounds i8, ptr %9, i64 648
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %175) #7
  %176 = getelementptr inbounds i8, ptr %9, i64 624
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #7
  %177 = getelementptr inbounds i8, ptr %9, i64 600
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %177) #7
  %178 = getelementptr inbounds i8, ptr %9, i64 576
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %178) #7
  %179 = getelementptr inbounds i8, ptr %9, i64 552
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %179) #7
  %180 = getelementptr inbounds i8, ptr %9, i64 528
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #7
  %181 = getelementptr inbounds i8, ptr %9, i64 504
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #7
  %182 = getelementptr inbounds i8, ptr %9, i64 480
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %182) #7
  %183 = getelementptr inbounds i8, ptr %9, i64 456
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #7
  %184 = getelementptr inbounds i8, ptr %9, i64 432
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #7
  %185 = getelementptr inbounds i8, ptr %9, i64 408
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #7
  %186 = getelementptr inbounds i8, ptr %9, i64 384
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
  %187 = getelementptr inbounds i8, ptr %9, i64 360
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %187) #7
  %188 = getelementptr inbounds i8, ptr %9, i64 336
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %188) #7
  %189 = getelementptr inbounds i8, ptr %9, i64 312
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %189) #7
  %190 = getelementptr inbounds i8, ptr %9, i64 288
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %190) #7
  %191 = getelementptr inbounds i8, ptr %9, i64 264
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %191) #7
  %192 = getelementptr inbounds i8, ptr %9, i64 240
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %192) #7
  %193 = getelementptr inbounds i8, ptr %9, i64 216
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %193) #7
  %194 = getelementptr inbounds i8, ptr %9, i64 192
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %194) #7
  %195 = getelementptr inbounds i8, ptr %9, i64 168
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %195) #7
  %196 = getelementptr inbounds i8, ptr %9, i64 144
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %196) #7
  %197 = getelementptr inbounds i8, ptr %9, i64 120
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %197) #7
  %198 = getelementptr inbounds i8, ptr %9, i64 96
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %198) #7
  %199 = getelementptr inbounds i8, ptr %9, i64 72
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %199) #7
  %200 = getelementptr inbounds i8, ptr %9, i64 48
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %200) #7
  %201 = getelementptr inbounds i8, ptr %9, i64 24
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %201) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 984, ptr nonnull %9) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %202

202:                                              ; preds = %161, %30
  %.pn108.pn.pn = phi { ptr, i32 } [ %.pn108.pn, %161 ], [ %.pn, %30 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn108.pn.pn
}

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { 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 #5 = { noreturn nounwind "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

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


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