Adjust some uses of bddtrue/bddfalse.

* src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/eltl2tgba_lacim.cc,
src/tgbaalgos/simulation.cc, src/tgbaalgos/tau03opt.cc: Fix
cases where bddtrue and bddfalse where used in a ternary operator.
* src/sanity/style.test: Allow bdd_true()/bdd_false() to be
used in ternary operators.
This commit is contained in:
Alexandre Duret-Lutz 2014-06-20 18:37:22 +02:00
parent af6cb049f2
commit 4df4b4efd2
5 changed files with 26 additions and 17 deletions

View file

@ -246,7 +246,8 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
grep '[^a-zA-Z0-9_](\*[a-zA-Z0-9_]*)\.' $tmp &&
diag 'Use "x->y", not "(*x).y"'
egrep 'bdd_(false|true)[ ]*\(' $tmp &&
# we allow these functions only in ?...:...
egrep 'bdd_(false|true)[ ]*\(' $tmp | grep -v '[?:]' &&
diag 'Use bddfalse and bddtrue instead of bdd_false() and bdd_true()'
res=`perl -ne '$/ = undef;