Skip to content

Commit 98f33a7

Browse files
authored
Merge pull request #2033 from tautschnig/lcnf-cleanup
Use propt::lcnf instead of propt::l_set_to{true,false}
2 parents bbb1ce8 + 8c5303a commit 98f33a7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/solvers/flattening/bv_pointers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void bv_pointerst::do_postponed(
768768
if(!is_dynamic)
769769
l2=!l2;
770770

771-
prop.l_set_to(prop.limplies(l1, l2), true);
771+
prop.l_set_to_true(prop.limplies(l1, l2));
772772
}
773773
}
774774
else if(postponed.expr.id()==ID_object_size)
@@ -814,7 +814,7 @@ void bv_pointerst::do_postponed(
814814
literalt l1=bv_utils.equal(bv, saved_bv);
815815
literalt l2=bv_utils.equal(postponed.bv, size_bv);
816816

817-
prop.l_set_to(prop.limplies(l1, l2), true);
817+
prop.l_set_to_true(prop.limplies(l1, l2));
818818
}
819819
}
820820
else

src/solvers/flattening/bv_utils.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ bvt bv_utilst::negate(const bvt &bv)
540540

541541
bvt bv_utilst::negate_no_overflow(const bvt &bv)
542542
{
543-
prop.l_set_to(overflow_negate(bv), false);
543+
prop.l_set_to_false(overflow_negate(bv));
544544
return negate(bv);
545545
}
546546

@@ -780,9 +780,7 @@ bvt bv_utilst::absolute_value(const bvt &bv)
780780

781781
bvt bv_utilst::cond_negate_no_overflow(const bvt &bv, literalt cond)
782782
{
783-
prop.l_set_to(
784-
prop.limplies(cond, !overflow_negate(bv)),
785-
true);
783+
prop.l_set_to_true(prop.limplies(cond, !overflow_negate(bv)));
786784

787785
return cond_negate(bv, cond);
788786
}
@@ -802,7 +800,7 @@ bvt bv_utilst::signed_multiplier_no_overflow(
802800

803801
bvt result=unsigned_multiplier_no_overflow(neg0, neg1);
804802

805-
prop.l_set_to(result[result.size()-1], false);
803+
prop.l_set_to_false(result[result.size() - 1]);
806804

807805
literalt result_sign=prop.lxor(sign0, sign1);
808806

0 commit comments

Comments
 (0)