Skip to content

Commit 5290671

Browse files
committed
fixup! Symbolic Toom-Cook multiplication
1 parent 04da081 commit 5290671

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/solvers/flattening/bv_utils.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,14 +2035,13 @@ bvt bv_utilst::unsigned_karatsuba_multiplier(const bvt &_op0, const bvt &_op1)
20352035

20362036
bvt bv_utilst::unsigned_toom_cook_multiplier(const bvt &_op0, const bvt &_op1)
20372037
{
2038+
PRECONDITION(_op0.size() == _op1.size());
20382039
PRECONDITION(!_op0.empty());
2039-
PRECONDITION(!_op1.empty());
20402040

2041-
if(_op1.size() == 1)
2042-
return unsigned_multiplier(_op0, _op1);
2041+
if(_op0.size() == 1)
2042+
return {prop.land(_op0[0], _op1[0])};
20432043

20442044
// break up _op0, _op1 in groups of at most GROUP_SIZE bits
2045-
PRECONDITION(_op0.size() == _op1.size());
20462045
#define GROUP_SIZE 8
20472046
const std::size_t d_bits =
20482047
2 * GROUP_SIZE +

0 commit comments

Comments
 (0)