File tree 5 files changed +8
-10
lines changed 5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ bvt boolbvt::convert_unary_minus(const unary_exprt &expr)
104
104
(bvtype==bvtypet::IS_SIGNED || bvtype==bvtypet::IS_UNSIGNED))
105
105
{
106
106
if (no_overflow)
107
- prop.l_set_to (bv_utils.overflow_negate (op_bv), false );
107
+ prop.l_set_to_false (bv_utils.overflow_negate (op_bv));
108
108
109
109
if (no_overflow)
110
110
return bv_utils.negate_no_overflow (op_bv);
Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ void bv_pointerst::do_postponed(
739
739
if (!is_dynamic)
740
740
l2=!l2;
741
741
742
- prop.l_set_to (prop.limplies (l1, l2), true );
742
+ prop.l_set_to_true (prop.limplies (l1, l2));
743
743
}
744
744
}
745
745
else if (postponed.expr .id ()==ID_object_size)
@@ -791,7 +791,7 @@ void bv_pointerst::do_postponed(
791
791
bvt size_bv=bv_utils.build_constant (object_size, postponed.bv .size ());
792
792
literalt l2=bv_utils.equal (postponed.bv , size_bv);
793
793
794
- prop.l_set_to (prop.limplies (l1, l2), true );
794
+ prop.l_set_to_true (prop.limplies (l1, l2));
795
795
}
796
796
}
797
797
else
Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ bvt bv_utilst::negate(const bvt &bv)
539
539
540
540
bvt bv_utilst::negate_no_overflow (const bvt &bv)
541
541
{
542
- prop.l_set_to (overflow_negate (bv), false );
542
+ prop.l_set_to_false (overflow_negate (bv));
543
543
return negate (bv);
544
544
}
545
545
@@ -778,9 +778,7 @@ bvt bv_utilst::absolute_value(const bvt &bv)
778
778
779
779
bvt bv_utilst::cond_negate_no_overflow (const bvt &bv, literalt cond)
780
780
{
781
- prop.l_set_to (
782
- prop.limplies (cond, !overflow_negate (bv)),
783
- true );
781
+ prop.l_set_to_true (prop.limplies (cond, !overflow_negate (bv)));
784
782
785
783
return cond_negate (bv, cond);
786
784
}
@@ -800,7 +798,7 @@ bvt bv_utilst::signed_multiplier_no_overflow(
800
798
801
799
bvt result=unsigned_multiplier_no_overflow (neg0, neg1);
802
800
803
- prop.l_set_to (result[result.size ()-1 ], false );
801
+ prop.l_set_to_false (result[result.size ()-1 ]);
804
802
805
803
literalt result_sign=prop.lxor (sign0, sign1);
806
804
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ void aig_prop_solvert::convert_aig()
591
591
592
592
// 3. Do constraints
593
593
for (const auto &c_it : aig.constraints )
594
- solver.l_set_to (c_it, true );
594
+ solver.l_set_to_true (c_it);
595
595
596
596
// HACK!
597
597
aig.nodes .clear ();
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class aig_prop_baset:public propt
41
41
literalt lselect (literalt a, literalt b, literalt c) override ; // a?b:c
42
42
void set_equal (literalt a, literalt b) override ;
43
43
44
- void l_set_to (literalt a, bool value) override { assert ( false ); }
44
+ void l_set_to (literalt a, bool value) override = 0;
45
45
46
46
literalt new_variable () override
47
47
{
You can’t perform that action at this time.
0 commit comments