Skip to content

Commit 0985628

Browse files
committed
Enable Wallace Tree multiplier
1 parent 2b42b08 commit 0985628

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/solvers/flattening/bv_utils.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,8 @@ bvt bv_utilst::wallace_tree(const std::vector<bvt> &pps)
798798

799799
bvt bv_utilst::unsigned_multiplier(const bvt &_op0, const bvt &_op1)
800800
{
801-
#if 1
801+
//#ifndef SATCHECK_CADICAL
802+
#if 0
802803
bvt op0=_op0, op1=_op1;
803804

804805
if(is_constant(op1))
@@ -827,7 +828,7 @@ bvt bv_utilst::unsigned_multiplier(const bvt &_op0, const bvt &_op1)
827828
}
828829

829830
return product;
830-
#else
831+
#else
831832
// Wallace tree multiplier. This is disabled, as runtimes have
832833
// been observed to go up by 5%-10%, and on some models even by 20%.
833834

@@ -862,8 +863,7 @@ bvt bv_utilst::unsigned_multiplier(const bvt &_op0, const bvt &_op1)
862863
return zeros(op0.size());
863864
else
864865
return wallace_tree(pps);
865-
866-
#endif
866+
#endif
867867
}
868868

869869
bvt bv_utilst::unsigned_multiplier_no_overflow(

0 commit comments

Comments
 (0)