Skip to content

Use propt::lcnf instead of propt::l_set_to{true,false} #2033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/solvers/flattening/bv_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void bv_pointerst::do_postponed(
if(!is_dynamic)
l2=!l2;

prop.l_set_to(prop.limplies(l1, l2), true);
prop.l_set_to_true(prop.limplies(l1, l2));
}
}
else if(postponed.expr.id()==ID_object_size)
Expand Down Expand Up @@ -814,7 +814,7 @@ void bv_pointerst::do_postponed(
literalt l1=bv_utils.equal(bv, saved_bv);
literalt l2=bv_utils.equal(postponed.bv, size_bv);

prop.l_set_to(prop.limplies(l1, l2), true);
prop.l_set_to_true(prop.limplies(l1, l2));
}
}
else
Expand Down
8 changes: 3 additions & 5 deletions src/solvers/flattening/bv_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ bvt bv_utilst::negate(const bvt &bv)

bvt bv_utilst::negate_no_overflow(const bvt &bv)
{
prop.l_set_to(overflow_negate(bv), false);
prop.l_set_to_false(overflow_negate(bv));
return negate(bv);
}

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

bvt bv_utilst::cond_negate_no_overflow(const bvt &bv, literalt cond)
{
prop.l_set_to(
prop.limplies(cond, !overflow_negate(bv)),
true);
prop.l_set_to_true(prop.limplies(cond, !overflow_negate(bv)));

return cond_negate(bv, cond);
}
Expand All @@ -802,7 +800,7 @@ bvt bv_utilst::signed_multiplier_no_overflow(

bvt result=unsigned_multiplier_no_overflow(neg0, neg1);

prop.l_set_to(result[result.size()-1], false);
prop.l_set_to_false(result[result.size() - 1]);

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

Expand Down