Skip to content

Commit 70a505a

Browse files
committed
Fix and enable COMPACT_LT_LE, needs re-eval
1 parent 8012829 commit 70a505a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/solvers/flattening/bv_utils.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ literalt bv_utilst::equal(const bvt &op0, const bvt &op1)
12871287

12881288
// Saves space but slows the solver
12891289
// There is a variant that uses the xor as an auxiliary that should improve both
1290-
// #define COMPACT_LT_OR_LE
1290+
#define COMPACT_LT_OR_LE
12911291

12921292

12931293

@@ -1313,7 +1313,7 @@ literalt bv_utilst::lt_or_le(
13131313
compareBelow = prop.new_variables(bv0.size());
13141314
result = prop.new_variable();
13151315

1316-
if(rep==SIGNED)
1316+
if(rep==representationt::SIGNED)
13171317
{
13181318
INVARIANT(
13191319
bv0.size() >= 2, "signed bitvectors should have at least two bits");
@@ -1414,7 +1414,7 @@ literalt bv_utilst::unsigned_less_than(
14141414
const bvt &op1)
14151415
{
14161416
#ifdef COMPACT_LT_OR_LE
1417-
return lt_or_le(false, op0, op1, UNSIGNED);
1417+
return lt_or_le(false, op0, op1, representationt::UNSIGNED);
14181418
#else
14191419
// A <= B iff there is an overflow on A-B
14201420
return !carry_out(op0, inverted(op1), const_literal(true));

0 commit comments

Comments
 (0)