; LLVM IR from ShahjalalShohag/code-library :: Math (Linear Recurrence With Polynomial Coefficients)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { i32 }
%class.anon.6 = type { i32 }
%class.anon.7 = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%class.anon.8 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib = external hidden unnamed_addr constant [94 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib(ptr dead_on_unwind noalias writable sret(%"class.std::vector.1") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.anon, align 4
  %16 = alloca %class.anon.6, align 4
  %17 = alloca %class.anon.7, align 1
  %18 = alloca %"class.std::vector.1", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::allocator.3", align 1
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i1, align 1
  %43 = alloca %"class.std::vector", align 8
  %44 = alloca %"class.std::allocator", align 1
  %45 = alloca %"class.std::allocator.3", align 1
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca %"class.std::vector", align 8
  %50 = alloca %"class.std::vector", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %54 = alloca %"class.std::allocator", align 1
  %55 = alloca i32, align 4
  %56 = alloca %class.anon.8, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %57 = zext i1 %4 to i8
  store i8 %57, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #5
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = add nsw i32 %61, 2
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = add nsw i32 %63, 2
  %65 = sdiv i32 %62, %64
  store i32 %65, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  %69 = mul nsw i32 %66, %68
  store i32 %69, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = sub nsw i32 %71, 1
  %73 = sub nsw i32 %70, %72
  store i32 %73, ptr %14, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = icmp sge i32 %74, 2
  br i1 %75, label %76, label %77

76:                                               ; preds = %5
  br label %79

77:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 59, ptr noundef @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

78:                                               ; No predecessors!
  br label %79

79:                                               ; preds = %78, %76
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = sub nsw i32 %81, 1
  %83 = icmp sge i32 %80, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %79
  br label %87

85:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %88 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  %89 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %89, ptr %88, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %90 = getelementptr inbounds %class.anon.6, ptr %16, i32 0, i32 0
  %91 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %91, ptr %90, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %95, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %96 unwind label %103

96:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %93, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %97 unwind label %107

97:                                               ; preds = %96
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %165, %97
  %99 = load i32, ptr %24, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %112, label %102

102:                                              ; preds = %98
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %168

103:                                              ; preds = %87
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %21, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %22, align 4
  br label %111

107:                                              ; preds = %96
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %21, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %22, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %111

111:                                              ; preds = %107, %103
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %584

112:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %161, %112
  %114 = load i32, ptr %26, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %164

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load i32, ptr %24, align 4, !tbaa !9
  %121 = load i32, ptr %26, align 4, !tbaa !9
  %122 = add nsw i32 %120, %121
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %123) #5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = invoke noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %125)
          to label %127 unwind label %133

127:                                              ; preds = %118
  store i32 %126, ptr %28, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %157, %127
  %129 = load i32, ptr %27, align 4, !tbaa !9
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = icmp sle i32 %129, %130
  br i1 %131, label %137, label %132

132:                                              ; preds = %128
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %160

133:                                              ; preds = %137, %118
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %21, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %583

137:                                              ; preds = %128
  %138 = load i32, ptr %28, align 4, !tbaa !9
  %139 = load i32, ptr %24, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %140) #5
  %142 = load i32, ptr %26, align 4, !tbaa !9
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  %145 = mul nsw i32 %142, %144
  %146 = load i32, ptr %27, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %148) #5
  store i32 %138, ptr %149, align 4, !tbaa !9
  %150 = load i32, ptr %28, align 4, !tbaa !9
  %151 = load i32, ptr %24, align 4, !tbaa !9
  %152 = load i32, ptr %26, align 4, !tbaa !9
  %153 = add nsw i32 %151, %152
  %154 = invoke noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %150, i32 noundef %153)
          to label %155 unwind label %133

155:                                              ; preds = %137
  %156 = trunc i64 %154 to i32
  store i32 %156, ptr %28, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %155
  %158 = load i32, ptr %27, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %27, align 4, !tbaa !9
  br label %128, !llvm.loop !17

160:                                              ; preds = %132
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %26, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %26, align 4, !tbaa !9
  br label %113, !llvm.loop !19

164:                                              ; preds = %117
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %24, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %24, align 4, !tbaa !9
  br label %98, !llvm.loop !20

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

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

173:                                              ; preds = %169
  store i32 11, ptr %25, align 4
  br label %334

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 -1, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %175 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %175, ptr %32, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %193, %174
  %177 = load i32, ptr %32, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 14, ptr %25, align 4
  br label %196

181:                                              ; preds = %176
  %182 = load i32, ptr %32, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %183) #5
  %185 = load i32, ptr %30, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #5
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %192

190:                                              ; preds = %181
  %191 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %191, ptr %31, align 4, !tbaa !9
  store i32 14, ptr %25, align 4
  br label %196

192:                                              ; preds = %181
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %32, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %32, align 4, !tbaa !9
  br label %176, !llvm.loop !21

196:                                              ; preds = %190, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %31, align 4, !tbaa !9
  %199 = icmp slt i32 %198, 0
  br i1 %199, label %200, label %201

200:                                              ; preds = %197
  store i32 11, ptr %25, align 4
  br label %328

201:                                              ; preds = %197
  %202 = load i32, ptr %31, align 4, !tbaa !9
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = icmp ne i32 %202, %203
  br i1 %204, label %205, label %212

205:                                              ; preds = %201
  %206 = load i32, ptr %29, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %207) #5
  %209 = load i32, ptr %31, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %210) #5
  call void @_ZSt4swapIiSaIiEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %208, ptr noundef nonnull align 8 dereferenceable(24) %211) #5
  br label %212

212:                                              ; preds = %205, %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %213 = load i32, ptr %29, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %214) #5
  %216 = load i32, ptr %30, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #5
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !9
  %221 = call noundef i32 @_Z7mod_invii(i32 noundef %219, i32 noundef %220)
  store i32 %221, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %222 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %222, ptr %34, align 4, !tbaa !9
  br label %223

223:                                              ; preds = %246, %212
  %224 = load i32, ptr %34, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %223
  store i32 17, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %253

228:                                              ; preds = %223
  %229 = load i32, ptr %29, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %230) #5
  %232 = load i32, ptr %34, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %233) #5
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = load i32, ptr %33, align 4, !tbaa !9
  %237 = invoke noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %235, i32 noundef %236)
          to label %238 unwind label %249

238:                                              ; preds = %228
  %239 = trunc i64 %237 to i32
  %240 = load i32, ptr %29, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %241) #5
  %243 = load i32, ptr %34, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %244) #5
  store i32 %239, ptr %245, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %238
  %247 = load i32, ptr %34, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %34, align 4, !tbaa !9
  br label %223, !llvm.loop !22

249:                                              ; preds = %228
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %21, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %582

253:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %254 = load i32, ptr %29, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %35, align 4, !tbaa !9
  br label %256

256:                                              ; preds = %322, %253
  %257 = load i32, ptr %35, align 4, !tbaa !9
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %261, label %260

260:                                              ; preds = %256
  store i32 20, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %325

261:                                              ; preds = %256
  %262 = load i32, ptr %35, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %263) #5
  %265 = load i32, ptr %30, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %264, i64 noundef %266) #5
  %268 = load i32, ptr %267, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %321

270:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %271 = load i32, ptr %9, align 4, !tbaa !9
  %272 = load i32, ptr %35, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %273) #5
  %275 = load i32, ptr %30, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %276) #5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = sub nsw i32 %271, %278
  store i32 %279, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %280 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %280, ptr %37, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %317, %270
  %282 = load i32, ptr %37, align 4, !tbaa !9
  %283 = load i32, ptr %13, align 4, !tbaa !9
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 23, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %320

286:                                              ; preds = %281
  %287 = load i32, ptr %35, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %288) #5
  %290 = load i32, ptr %37, align 4, !tbaa !9
  %291 = sext i32 %290 to i64
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %289, i64 noundef %291) #5
  %293 = load i32, ptr %292, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = load i32, ptr %36, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = load i32, ptr %29, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %298) #5
  %300 = load i32, ptr %37, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #5
  %303 = load i32, ptr %302, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = mul nsw i64 %296, %304
  %306 = add nsw i64 %294, %305
  %307 = load i32, ptr %9, align 4, !tbaa !9
  %308 = sext i32 %307 to i64
  %309 = srem i64 %306, %308
  %310 = trunc i64 %309 to i32
  %311 = load i32, ptr %35, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %312) #5
  %314 = load i32, ptr %37, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %315) #5
  store i32 %310, ptr %316, align 4, !tbaa !9
  br label %317

317:                                              ; preds = %286
  %318 = load i32, ptr %37, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %37, align 4, !tbaa !9
  br label %281, !llvm.loop !23

320:                                              ; preds = %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %321

321:                                              ; preds = %320, %261
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %35, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %35, align 4, !tbaa !9
  br label %256, !llvm.loop !24

325:                                              ; preds = %260
  %326 = load i32, ptr %29, align 4, !tbaa !9
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  store i32 0, ptr %25, align 4
  br label %328

328:                                              ; preds = %325, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  %329 = load i32, ptr %25, align 4
  switch i32 %329, label %334 [
    i32 0, label %330
  ]

330:                                              ; preds = %328
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %30, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %30, align 4, !tbaa !9
  br label %169, !llvm.loop !25

334:                                              ; preds = %328, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %29, align 4, !tbaa !9
  %337 = load i32, ptr %13, align 4, !tbaa !9
  %338 = icmp eq i32 %336, %337
  br i1 %338, label %339, label %348

339:                                              ; preds = %335
  %340 = load i32, ptr %12, align 4, !tbaa !9
  %341 = sub nsw i32 %340, 1
  %342 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1) %17, i32 noundef %341, i32 noundef %342)
          to label %343 unwind label %344

343:                                              ; preds = %339
  br label %348

344:                                              ; preds = %339
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %21, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %22, align 4
  br label %582

348:                                              ; preds = %343, %335
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %349 = load i32, ptr %29, align 4, !tbaa !9
  %350 = sub nsw i32 %349, 1
  store i32 %350, ptr %38, align 4, !tbaa !9
  br label %351

351:                                              ; preds = %427, %348
  %352 = load i32, ptr %38, align 4, !tbaa !9
  %353 = icmp sge i32 %352, 0
  br i1 %353, label %355, label %354

354:                                              ; preds = %351
  store i32 26, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  br label %430

355:                                              ; preds = %351
  %356 = load i32, ptr %38, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %357) #5
  %359 = load i32, ptr %29, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %360) #5
  %362 = load i32, ptr %361, align 4, !tbaa !9
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %364, label %426

364:                                              ; preds = %355
  %365 = load i32, ptr %38, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %366) #5
  %368 = load i32, ptr %38, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %367, i64 noundef %369) #5
  %371 = load i32, ptr %370, align 4, !tbaa !9
  %372 = icmp eq i32 %371, 1
  br i1 %372, label %373, label %374

373:                                              ; preds = %364
  br label %376

374:                                              ; preds = %364
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 109, ptr noundef @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

375:                                              ; No predecessors!
  br label %376

376:                                              ; preds = %375, %373
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %377 = load i32, ptr %9, align 4, !tbaa !9
  %378 = load i32, ptr %38, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %379) #5
  %381 = load i32, ptr %29, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %380, i64 noundef %382) #5
  %384 = load i32, ptr %383, align 4, !tbaa !9
  %385 = sub nsw i32 %377, %384
  store i32 %385, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %386

386:                                              ; preds = %422, %376
  %387 = load i32, ptr %40, align 4, !tbaa !9
  %388 = load i32, ptr %38, align 4, !tbaa !9
  %389 = icmp slt i32 %387, %388
  br i1 %389, label %391, label %390

390:                                              ; preds = %386
  store i32 29, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  br label %425

391:                                              ; preds = %386
  %392 = load i32, ptr %40, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %393) #5
  %395 = load i32, ptr %29, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %394, i64 noundef %396) #5
  %398 = load i32, ptr %397, align 4, !tbaa !9
  %399 = sext i32 %398 to i64
  %400 = load i32, ptr %39, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = load i32, ptr %40, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %403) #5
  %405 = load i32, ptr %38, align 4, !tbaa !9
  %406 = sext i32 %405 to i64
  %407 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %404, i64 noundef %406) #5
  %408 = load i32, ptr %407, align 4, !tbaa !9
  %409 = sext i32 %408 to i64
  %410 = mul nsw i64 %401, %409
  %411 = add nsw i64 %399, %410
  %412 = load i32, ptr %9, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = srem i64 %411, %413
  %415 = trunc i64 %414 to i32
  %416 = load i32, ptr %40, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %417) #5
  %419 = load i32, ptr %29, align 4, !tbaa !9
  %420 = sext i32 %419 to i64
  %421 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %418, i64 noundef %420) #5
  store i32 %415, ptr %421, align 4, !tbaa !9
  br label %422

422:                                              ; preds = %391
  %423 = load i32, ptr %40, align 4, !tbaa !9
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %40, align 4, !tbaa !9
  br label %386, !llvm.loop !26

425:                                              ; preds = %390
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br label %426

426:                                              ; preds = %425, %355
  br label %427

427:                                              ; preds = %426
  %428 = load i32, ptr %38, align 4, !tbaa !9
  %429 = add nsw i32 %428, -1
  store i32 %429, ptr %38, align 4, !tbaa !9
  br label %351, !llvm.loop !27

430:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %431 = load i32, ptr %29, align 4, !tbaa !9
  %432 = load i32, ptr %8, align 4, !tbaa !9
  %433 = add nsw i32 %432, 1
  %434 = sdiv i32 %431, %433
  store i32 %434, ptr %41, align 4, !tbaa !9
  store i1 false, ptr %42, align 1
  %435 = load i32, ptr %41, align 4, !tbaa !9
  %436 = add nsw i32 %435, 1
  %437 = sext i32 %436 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #5
  %438 = load i32, ptr %8, align 4, !tbaa !9
  %439 = add nsw i32 %438, 1
  %440 = sext i32 %439 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %440, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %441 unwind label %456

441:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %437, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %442 unwind label %460

442:                                              ; preds = %441
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #5
  %443 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %444 = load i32, ptr %29, align 4, !tbaa !9
  %445 = load i32, ptr %8, align 4, !tbaa !9
  %446 = add nsw i32 %445, 1
  %447 = srem i32 %444, %446
  %448 = sext i32 %447 to i64
  %449 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %443, i64 noundef %448) #5
  store i32 1, ptr %449, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #5
  %450 = load i32, ptr %29, align 4, !tbaa !9
  %451 = sub nsw i32 %450, 1
  store i32 %451, ptr %46, align 4, !tbaa !9
  br label %452

452:                                              ; preds = %493, %442
  %453 = load i32, ptr %46, align 4, !tbaa !9
  %454 = icmp sge i32 %453, 0
  br i1 %454, label %465, label %455

455:                                              ; preds = %452
  store i32 32, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  br label %496

456:                                              ; preds = %430
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %21, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %22, align 4
  br label %464

460:                                              ; preds = %441
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %21, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %22, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  br label %464

464:                                              ; preds = %460, %456
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #5
  br label %581

465:                                              ; preds = %452
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  %466 = load i32, ptr %41, align 4, !tbaa !9
  %467 = load i32, ptr %46, align 4, !tbaa !9
  %468 = load i32, ptr %8, align 4, !tbaa !9
  %469 = add nsw i32 %468, 1
  %470 = sdiv i32 %467, %469
  %471 = sub nsw i32 %466, %470
  store i32 %471, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #5
  %472 = load i32, ptr %46, align 4, !tbaa !9
  %473 = load i32, ptr %8, align 4, !tbaa !9
  %474 = add nsw i32 %473, 1
  %475 = srem i32 %472, %474
  store i32 %475, ptr %48, align 4, !tbaa !9
  %476 = load i32, ptr %9, align 4, !tbaa !9
  %477 = load i32, ptr %46, align 4, !tbaa !9
  %478 = sext i32 %477 to i64
  %479 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %478) #5
  %480 = load i32, ptr %29, align 4, !tbaa !9
  %481 = sext i32 %480 to i64
  %482 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %479, i64 noundef %481) #5
  %483 = load i32, ptr %482, align 4, !tbaa !9
  %484 = sub nsw i32 %476, %483
  %485 = load i32, ptr %9, align 4, !tbaa !9
  %486 = srem i32 %484, %485
  %487 = load i32, ptr %47, align 4, !tbaa !9
  %488 = sext i32 %487 to i64
  %489 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %488) #5
  %490 = load i32, ptr %48, align 4, !tbaa !9
  %491 = sext i32 %490 to i64
  %492 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %489, i64 noundef %491) #5
  store i32 %486, ptr %492, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  br label %493

493:                                              ; preds = %465
  %494 = load i32, ptr %46, align 4, !tbaa !9
  %495 = add nsw i32 %494, -1
  store i32 %495, ptr %46, align 4, !tbaa !9
  br label %452, !llvm.loop !28

496:                                              ; preds = %455
  %497 = load i8, ptr %10, align 1, !tbaa !11, !range !29, !noundef !30
  %498 = trunc i8 %497 to i1
  br i1 %498, label %499, label %564

499:                                              ; preds = %496
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #5
  %500 = load i32, ptr %11, align 4, !tbaa !9
  %501 = sub nsw i32 %500, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #5
  %502 = load ptr, ptr %7, align 8, !tbaa !5
  %503 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %502) #5
  %504 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %51, i32 0, i32 0
  store ptr %503, ptr %504, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  %505 = load ptr, ptr %7, align 8, !tbaa !5
  %506 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %505) #5
  %507 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %53, i32 0, i32 0
  store ptr %506, ptr %507, align 8
  %508 = load i32, ptr %41, align 4, !tbaa !9
  %509 = sext i32 %508 to i64
  %510 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %509) #5
  %511 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %52, i32 0, i32 0
  store ptr %510, ptr %511, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %54) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  %512 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %51, i32 0, i32 0
  %513 = load ptr, ptr %512, align 8
  %514 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %52, i32 0, i32 0
  %515 = load ptr, ptr %514, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPKiS1_EEvEET_S8_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr %513, ptr %515, ptr noundef nonnull align 1 dereferenceable(1) %54)
          to label %516 unwind label %526

516:                                              ; preds = %499
  %517 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_Z8extendediRKSt6vectorIS_IiSaIiEESaIS1_EERKS1_i(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %49, i32 noundef %501, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %517)
          to label %518 unwind label %530

518:                                              ; preds = %516
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #5
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %519

519:                                              ; preds = %559, %518
  %520 = load i32, ptr %55, align 4, !tbaa !9
  %521 = load ptr, ptr %7, align 8, !tbaa !5
  %522 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %521) #5
  %523 = trunc i64 %522 to i32
  %524 = icmp slt i32 %520, %523
  br i1 %524, label %535, label %525

525:                                              ; preds = %519
  store i32 35, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  br label %562

526:                                              ; preds = %499
  %527 = landingpad { ptr, i32 }
          cleanup
  %528 = extractvalue { ptr, i32 } %527, 0
  store ptr %528, ptr %21, align 8
  %529 = extractvalue { ptr, i32 } %527, 1
  store i32 %529, ptr %22, align 4
  br label %534

530:                                              ; preds = %516
  %531 = landingpad { ptr, i32 }
          cleanup
  %532 = extractvalue { ptr, i32 } %531, 0
  store ptr %532, ptr %21, align 8
  %533 = extractvalue { ptr, i32 } %531, 1
  store i32 %533, ptr %22, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #5
  br label %534

534:                                              ; preds = %530, %526
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #5
  br label %563

535:                                              ; preds = %519
  %536 = load ptr, ptr %7, align 8, !tbaa !5
  %537 = load i32, ptr %55, align 4, !tbaa !9
  %538 = sext i32 %537 to i64
  %539 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %536, i64 noundef %538) #5
  %540 = load i32, ptr %539, align 4, !tbaa !9
  %541 = load i32, ptr %55, align 4, !tbaa !9
  %542 = sext i32 %541 to i64
  %543 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %542) #5
  %544 = load i32, ptr %543, align 4, !tbaa !9
  %545 = sub nsw i32 %540, %544
  %546 = invoke noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %545)
          to label %547 unwind label %554

547:                                              ; preds = %535
  %548 = icmp ne i32 %546, 0
  br i1 %548, label %549, label %558

549:                                              ; preds = %547
  %550 = load i32, ptr %12, align 4, !tbaa !9
  %551 = sub nsw i32 %550, 1
  %552 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1) %17, i32 noundef %551, i32 noundef %552)
          to label %553 unwind label %554

553:                                              ; preds = %549
  br label %558

554:                                              ; preds = %549, %535
  %555 = landingpad { ptr, i32 }
          cleanup
  %556 = extractvalue { ptr, i32 } %555, 0
  store ptr %556, ptr %21, align 8
  %557 = extractvalue { ptr, i32 } %555, 1
  store i32 %557, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  br label %563

558:                                              ; preds = %553, %547
  br label %559

559:                                              ; preds = %558
  %560 = load i32, ptr %55, align 4, !tbaa !9
  %561 = add nsw i32 %560, 1
  store i32 %561, ptr %55, align 4, !tbaa !9
  br label %519, !llvm.loop !31

562:                                              ; preds = %525
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #5
  br label %564

563:                                              ; preds = %554, %534
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #5
  br label %580

564:                                              ; preds = %562, %496
  call void @llvm.lifetime.start.p0(i64 56, ptr %56) #5
  %565 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 0
  store ptr %10, ptr %565, align 8, !tbaa !5
  %566 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 1
  store ptr %11, ptr %566, align 8, !tbaa !5
  %567 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 2
  store ptr %41, ptr %567, align 8, !tbaa !5
  %568 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 3
  store ptr %14, ptr %568, align 8, !tbaa !5
  %569 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 4
  store ptr %8, ptr %569, align 8, !tbaa !5
  %570 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 5
  store ptr %0, ptr %570, align 8, !tbaa !5
  %571 = getelementptr inbounds %class.anon.8, ptr %56, i32 0, i32 6
  store ptr %9, ptr %571, align 8, !tbaa !5
  invoke void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(56) %56)
          to label %572 unwind label %574

572:                                              ; preds = %564
  store i1 true, ptr %42, align 1
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 56, ptr %56) #5
  %573 = load i1, ptr %42, align 1
  br i1 %573, label %579, label %578

574:                                              ; preds = %564
  %575 = landingpad { ptr, i32 }
          cleanup
  %576 = extractvalue { ptr, i32 } %575, 0
  store ptr %576, ptr %21, align 8
  %577 = extractvalue { ptr, i32 } %575, 1
  store i32 %577, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 56, ptr %56) #5
  br label %580

578:                                              ; preds = %572
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %579

579:                                              ; preds = %578, %572
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void

580:                                              ; preds = %574, %563
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %581

581:                                              ; preds = %580, %464
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %582

582:                                              ; preds = %581, %344, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %583

583:                                              ; preds = %582, %133
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %584

584:                                              ; preds = %583, %111
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %585

585:                                              ; preds = %584
  %586 = load ptr, ptr %21, align 8
  %587 = load i32, ptr %22, align 4
  %588 = insertvalue { ptr, i32 } poison, ptr %586, 0
  %589 = insertvalue { ptr, i32 } %588, i32 %587, 1
  resume { ptr, i32 } %589
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_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 #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibE3$_0", !10, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibE3$_1", !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { i32 }
%class.anon.6 = type { i32 }
%class.anon.7 = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%class.anon.8 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib = external hidden unnamed_addr constant [94 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

38:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 59, ptr noundef nonnull @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

39:                                               ; preds = %5
  %40 = add nsw i32 %34, -1
  %.not = icmp slt i32 %36, %40
  br i1 %.not, label %41, label %42

41:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 %3, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 %3, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  %43 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %44 unwind label %69

44:                                               ; preds = %42
  %45 = sext i32 %36 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %45, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %46 unwind label %71

46:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  %47 = icmp sgt i32 %36, 0
  br i1 %47, label %.preheader157.us.preheader, label %.preheader155

.preheader157.us.preheader:                       ; preds = %46
  %wide.trip.count = zext nneg i32 %32 to i64
  %.not150161.us = icmp slt i32 %2, 0
  %48 = add nuw nsw i32 %2, 1
  br label %.preheader157.us

.preheader157.us:                                 ; preds = %.preheader157.us.preheader, %._crit_edge166.us
  %indvars.iv203 = phi i64 [ 0, %.preheader157.us.preheader ], [ %indvars.iv.next204, %._crit_edge166.us ]
  br label %49

49:                                               ; preds = %.preheader157.us, %._crit_edge.us
  %indvars.iv = phi i64 [ 0, %.preheader157.us ], [ %indvars.iv.next, %._crit_edge.us ]
  %50 = add nuw nsw i64 %indvars.iv, %indvars.iv203
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %50) #5
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %52)
  br i1 %.not150161.us, label %._crit_edge.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %49
  %54 = trunc nuw nsw i64 %indvars.iv to i32
  %55 = mul nsw i32 %48, %54
  %56 = trunc nuw nsw i64 %50 to i32
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %.0126163.us = phi i32 [ %63, %.lr.ph.us ], [ 0, %.lr.ph.us.preheader ]
  %.0129162.us = phi i32 [ %62, %.lr.ph.us ], [ %53, %.lr.ph.us.preheader ]
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv203) #5
  %58 = add nsw i32 %55, %.0126163.us
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #5
  store i32 %.0129162.us, ptr %60, align 4, !tbaa !5
  %61 = call noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %.0129162.us, i32 noundef %56)
  %62 = trunc i64 %61 to i32
  %63 = add nuw nsw i32 %.0126163.us, 1
  %.not150.us.not = icmp slt i32 %.0126163.us, %2
  br i1 %.not150.us.not, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !15

._crit_edge.us:                                   ; preds = %.lr.ph.us, %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge166.us, label %49, !llvm.loop !17

._crit_edge166.us:                                ; preds = %._crit_edge.us
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %64 = icmp slt i64 %indvars.iv.next204, %45
  br i1 %64, label %.preheader157.us, label %.preheader155, !llvm.loop !18

.preheader155:                                    ; preds = %._crit_edge166.us, %46
  %65 = icmp sgt i32 %34, 0
  br i1 %65, label %.preheader.preheader, label %.thread152

.preheader.preheader:                             ; preds = %.preheader155
  %wide.trip.count229 = zext nneg i32 %34 to i64
  %66 = sext i32 %36 to i64
  %67 = sext i32 %36 to i64
  %68 = sext i32 %3 to i64
  br label %.preheader

69:                                               ; preds = %42
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %44
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %73

73:                                               ; preds = %71, %69
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  br label %231

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge178
  %indvars.iv221 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next222, %._crit_edge178 ]
  %indvars.iv206 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next207, %._crit_edge178 ]
  %74 = icmp slt i64 %indvars.iv206, %66
  br i1 %74, label %.lr.ph, label %.thread152.loopexit249

.lr.ph:                                           ; preds = %.preheader, %78
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %78 ], [ %indvars.iv206, %.preheader ]
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv208) #5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %indvars.iv206) #5
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %.not139 = icmp eq i32 %77, 0
  br i1 %.not139, label %78, label %81

78:                                               ; preds = %.lr.ph
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %79 = trunc nuw i64 %indvars.iv.next209 to i32
  %80 = icmp sgt i32 %36, %79
  br i1 %80, label %.lr.ph, label %.thread152.loopexit, !llvm.loop !19

81:                                               ; preds = %.lr.ph
  %82 = and i64 %indvars.iv208, 4294967295
  %.not140 = icmp eq i64 %82, %indvars.iv206
  br i1 %.not140, label %.lr.ph171.preheader, label %83

83:                                               ; preds = %81
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv206) #5
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %82) #5
  call void @_ZSt4swapIiSaIiEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %85) #5
  br label %.lr.ph171.preheader

.lr.ph171.preheader:                              ; preds = %81, %83
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv206) #5
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %indvars.iv206) #5
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = call noundef i32 @_Z7mod_invii(i32 noundef %88, i32 noundef %3)
  br label %.lr.ph171

._crit_edge:                                      ; preds = %.lr.ph171
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %90 = icmp slt i64 %indvars.iv.next207, %67
  br i1 %90, label %.lr.ph177, label %._crit_edge178

.lr.ph171:                                        ; preds = %.lr.ph171.preheader, %.lr.ph171
  %indvars.iv211 = phi i64 [ %indvars.iv206, %.lr.ph171.preheader ], [ %indvars.iv.next212, %.lr.ph171 ]
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv206) #5
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %indvars.iv211) #5
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = call noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %93, i32 noundef %89)
  %95 = trunc i64 %94 to i32
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv206) #5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %indvars.iv211) #5
  store i32 %95, ptr %97, align 4, !tbaa !5
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond215.not = icmp eq i64 %indvars.iv.next212, %wide.trip.count229
  br i1 %exitcond215.not, label %._crit_edge, label %.lr.ph171, !llvm.loop !20

.lr.ph177:                                        ; preds = %._crit_edge, %.loopexit154
  %indvars.iv223 = phi i64 [ %indvars.iv.next224, %.loopexit154 ], [ %indvars.iv221, %._crit_edge ]
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv223) #5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %indvars.iv206) #5
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %.not141 = icmp eq i32 %100, 0
  br i1 %.not141, label %.loopexit154, label %.lr.ph174

.lr.ph174:                                        ; preds = %.lr.ph177
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv223) #5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %indvars.iv206) #5
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sub nsw i32 %3, %103
  %105 = sext i32 %104 to i64
  br label %106

106:                                              ; preds = %.lr.ph174, %106
  %indvars.iv216 = phi i64 [ %indvars.iv206, %.lr.ph174 ], [ %indvars.iv.next217, %106 ]
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv223) #5
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %indvars.iv216) #5
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv206) #5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %indvars.iv216) #5
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = mul nsw i64 %114, %105
  %116 = add nsw i64 %115, %110
  %117 = srem i64 %116, %68
  %118 = trunc nsw i64 %117 to i32
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv223) #5
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %indvars.iv216) #5
  store i32 %118, ptr %120, align 4, !tbaa !5
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %exitcond220.not = icmp eq i64 %indvars.iv.next217, %wide.trip.count229
  br i1 %exitcond220.not, label %.loopexit154, label %106, !llvm.loop !21

.loopexit154:                                     ; preds = %106, %.lr.ph177
  %indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
  %121 = trunc nuw i64 %indvars.iv.next224 to i32
  %122 = icmp sgt i32 %36, %121
  br i1 %122, label %.lr.ph177, label %._crit_edge178, !llvm.loop !22

._crit_edge178:                                   ; preds = %.loopexit154, %._crit_edge
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %exitcond230.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count229
  br i1 %exitcond230.not, label %.thread152.thread, label %.preheader, !llvm.loop !23

.thread152.loopexit:                              ; preds = %78
  %123 = trunc nuw nsw i64 %indvars.iv206 to i32
  br label %.thread152

.thread152.loopexit249:                           ; preds = %.preheader
  %124 = trunc nuw nsw i64 %indvars.iv206 to i32
  br label %.thread152

.thread152:                                       ; preds = %.thread152.loopexit249, %.thread152.loopexit, %.preheader155
  %.0133160 = phi i32 [ 0, %.preheader155 ], [ %123, %.thread152.loopexit ], [ %124, %.thread152.loopexit249 ]
  %125 = icmp eq i32 %.0133160, %34
  br i1 %125, label %.thread152.thread, label %126

.thread152.thread:                                ; preds = %._crit_edge178, %.thread152
  %.0133160247 = phi i32 [ %.0133160, %.thread152 ], [ %34, %._crit_edge178 ]
  call void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1) %13, i32 noundef %35, i32 noundef %2)
  br label %126

126:                                              ; preds = %.thread152.thread, %.thread152
  %.0133160246 = phi i32 [ %.0133160247, %.thread152.thread ], [ %.0133160, %.thread152 ]
  %127 = add i32 %.0133160246, -1
  %128 = icmp sgt i32 %.0133160246, 0
  br i1 %128, label %.lr.ph188, label %._crit_edge189

.lr.ph188:                                        ; preds = %126
  %129 = zext nneg i32 %.0133160246 to i64
  %130 = zext nneg i32 %127 to i64
  %131 = sext i32 %3 to i64
  br label %135

._crit_edge189:                                   ; preds = %145, %.loopexit, %126
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %132 = sdiv i32 %.0133160246, %33
  %133 = srem i32 %.0133160246, %33
  store i32 %132, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #5
  %134 = sext i32 %33 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %134, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %168 unwind label %177

135:                                              ; preds = %.lr.ph188, %.loopexit
  %indvars.iv236 = phi i64 [ %130, %.lr.ph188 ], [ %indvars.iv.next237, %.loopexit ]
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv236) #5
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %129) #5
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %.not149 = icmp eq i32 %138, 0
  br i1 %.not149, label %.loopexit, label %139

139:                                              ; preds = %135
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv236) #5
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %indvars.iv236) #5
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %145, label %144

144:                                              ; preds = %139
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 109, ptr noundef nonnull @__PRETTY_FUNCTION__._Z24find_recurrence_relationRKSt6vectorIiSaIiEEiib) #6
  unreachable

145:                                              ; preds = %139
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv236) #5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %129) #5
  %148 = icmp sgt i64 %indvars.iv236, 0
  br i1 %148, label %.lr.ph184, label %._crit_edge189

.lr.ph184:                                        ; preds = %145
  %149 = load i32, ptr %147, align 4, !tbaa !5
  %150 = sub nsw i32 %3, %149
  %151 = sext i32 %150 to i64
  br label %152

152:                                              ; preds = %.lr.ph184, %152
  %indvars.iv231 = phi i64 [ 0, %.lr.ph184 ], [ %indvars.iv.next232, %152 ]
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv231) #5
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %129) #5
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv231) #5
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %indvars.iv236) #5
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = mul nsw i64 %160, %151
  %162 = add nsw i64 %161, %156
  %163 = srem i64 %162, %131
  %164 = trunc nsw i64 %163 to i32
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv231) #5
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %129) #5
  store i32 %164, ptr %166, align 4, !tbaa !5
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %indvars.iv236
  br i1 %exitcond235.not, label %.loopexit, label %152, !llvm.loop !24

.loopexit:                                        ; preds = %152, %135
  %indvars.iv.next237 = add nsw i64 %indvars.iv236, -1
  %167 = icmp sgt i64 %indvars.iv236, 0
  br i1 %167, label %135, label %._crit_edge189, !llvm.loop !25

168:                                              ; preds = %._crit_edge189
  %169 = add nsw i32 %132, 1
  %170 = sext i32 %169 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #5
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %170, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %171 unwind label %179

171:                                              ; preds = %168
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  %173 = zext nneg i32 %133 to i64
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %173) #5
  store i32 1, ptr %174, align 4, !tbaa !5
  br i1 %128, label %.lr.ph192, label %._crit_edge193

.lr.ph192:                                        ; preds = %171
  %175 = zext nneg i32 %.0133160246 to i64
  %176 = zext nneg i32 %127 to i64
  br label %182

._crit_edge193:                                   ; preds = %182, %171
  br i1 %4, label %196, label %223

177:                                              ; preds = %._crit_edge189
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %181

179:                                              ; preds = %168
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %181

181:                                              ; preds = %179, %177
  %.pn142 = phi { ptr, i32 } [ %180, %179 ], [ %178, %177 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  br label %230

182:                                              ; preds = %.lr.ph192, %182
  %indvars.iv239 = phi i64 [ %176, %.lr.ph192 ], [ %indvars.iv.next240, %182 ]
  %183 = trunc nuw nsw i64 %indvars.iv239 to i32
  %184 = sdiv i32 %183, %33
  %185 = sub nsw i32 %132, %184
  %186 = srem i32 %183, %33
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv239) #5
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %175) #5
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sub nsw i32 %3, %189
  %191 = srem i32 %190, %3
  %192 = sext i32 %185 to i64
  %193 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %192) #5
  %194 = zext nneg i32 %186 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %194) #5
  store i32 %191, ptr %195, align 4, !tbaa !5
  %indvars.iv.next240 = add nsw i64 %indvars.iv239, -1
  %.not254 = icmp eq i64 %indvars.iv239, 0
  br i1 %.not254, label %._crit_edge193, label %182, !llvm.loop !26

196:                                              ; preds = %._crit_edge193
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #5
  %197 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  %198 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %198, ptr %24, align 8
  %199 = sext i32 %132 to i64
  %200 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %199) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPKiS1_EEvEET_S8_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %197, ptr %200, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %201 unwind label %207

201:                                              ; preds = %196
  %202 = add nsw i32 %29, -1
  invoke void @_Z8extendediRKSt6vectorIS_IiSaIiEESaIS1_EERKS1_i(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %22, i32 noundef %202, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %23, i32 noundef %3)
          to label %203 unwind label %209

203:                                              ; preds = %201
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #5
  %204 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %205 = trunc i64 %204 to i32
  %206 = icmp sgt i32 %205, 0
  br i1 %206, label %.lr.ph196, label %._crit_edge197

._crit_edge197:                                   ; preds = %219, %203
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #5
  br label %223

207:                                              ; preds = %196
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %211

209:                                              ; preds = %201
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %211

211:                                              ; preds = %209, %207
  %.pn144 = phi { ptr, i32 } [ %210, %209 ], [ %208, %207 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %230

.lr.ph196:                                        ; preds = %203, %219
  %indvars.iv242 = phi i64 [ %indvars.iv.next243, %219 ], [ 0, %203 ]
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv242) #5
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv242) #5
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = sub nsw i32 %213, %215
  %217 = call noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %216)
  %.not148 = icmp eq i32 %217, 0
  br i1 %.not148, label %219, label %218

218:                                              ; preds = %.lr.ph196
  call void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1) %13, i32 noundef %35, i32 noundef %2)
  br label %219

219:                                              ; preds = %.lr.ph196, %218
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %220 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %sext = shl i64 %220, 32
  %221 = ashr exact i64 %sext, 32
  %222 = icmp slt i64 %indvars.iv.next243, %221
  br i1 %222, label %.lr.ph196, label %._crit_edge197, !llvm.loop !27

223:                                              ; preds = %._crit_edge197, %._crit_edge193
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %26) #5
  store ptr %8, ptr %26, align 8, !tbaa !28
  %224 = getelementptr inbounds i8, ptr %26, i64 8
  store ptr %9, ptr %224, align 8, !tbaa !28
  %225 = getelementptr inbounds i8, ptr %26, i64 16
  store ptr %18, ptr %225, align 8, !tbaa !28
  %226 = getelementptr inbounds i8, ptr %26, i64 24
  store ptr %10, ptr %226, align 8, !tbaa !28
  %227 = getelementptr inbounds i8, ptr %26, i64 32
  store ptr %6, ptr %227, align 8, !tbaa !28
  %228 = getelementptr inbounds i8, ptr %26, i64 40
  store ptr %0, ptr %228, align 8, !tbaa !28
  %229 = getelementptr inbounds i8, ptr %26, i64 48
  store ptr %7, ptr %229, align 8, !tbaa !28
  call void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(56) %26)
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  ret void

230:                                              ; preds = %211, %181
  %.pn144.pn = phi { ptr, i32 } [ %.pn144, %211 ], [ %.pn142, %181 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %231

231:                                              ; preds = %230, %73
  %.pn144.pn.pn = phi { ptr, i32 } [ %.pn144.pn, %230 ], [ %.pn, %73 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  resume { ptr, i32 } %.pn144.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_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 #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_1clEi"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_0clEii"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_2clEii"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibENK3$_3clEv"(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibE3$_0", !6, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSZ24find_recurrence_relationRKSt6vectorIiSaIiEEiibE3$_1", !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = !{!29, !29, i64 0}
!29 = !{!"any pointer", !7, i64 0}


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