182{
184 foo.push_back(14);
185 foo.push_back(1);
187
188
192
193
194 BRP barMultiply = bar * bar2;
195
196
198 foo3.push_back(14);
199 foo3.push_back(9);
200
202 if (barMultiply != bar3)
203 {
204 cout << "Testing multiplication: "
205 << (barMultiply == bar3 ? "is good" : "is bad") << endl;
206 }
207
211
213
214 if (c != correct)
215 {
216 cout << "Multiplication not correct. Is " << c << endl;
217 }
218
220 int d = 13;
221 c = a * d;
222
224
225 if (c != correct)
226 {
227 cout << "Multiplication not correct. Is " << c << endl;
228 }
229
232 c = a * b;
233
235 if (c != correct)
236 {
237 cout << "Multiplication not correct. Is " << c << endl;
238 }
239
241 d = 13;
242 c = a * d;
243
245 if (c != correct)
246 {
247 cout << "Multiplication not correct. Is " << c << endl;
248 }
249
251 d = 220;
252 c = a * d;
253
254 correct =
BRP(222) +
BRP(221) +
BRP(220);
255 if (c != correct)
256 {
257 cout << "Multiplication not correct. Is " << c << endl;
258 }
259}
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.
static struct enter_factory foo2
std::list< brMonomial > monomials