ltlsynt: implement --csv-without-formula

* bin/ltlsynt.cc: Implement that new option.
* tests/core/ltlsynt2.test: Test it.
* NEWS: Mention the change.
This commit is contained in:
Alexandre Duret-Lutz 2024-09-04 16:33:48 +02:00
parent 6e5592fe6a
commit a22a05b8ec
3 changed files with 40 additions and 10 deletions

View file

@ -82,7 +82,7 @@ EOF
diff filtered.csv expected
grep -v 0,0 filtered.csv >input.csv
ltlsynt -F input.csv/-2 --csv=out.csv -q || exit 2
ltlsynt -F input.csv/-2 --csv=out.csv -q
$PYTHON test.py
cat >expected <<EOF
source,formula,algo,realizable,strat_num_states
@ -92,3 +92,14 @@ input.csv:4,i1 <-> F(o1 xor o2),lar,1,3
input.csv:5,o1 & F(i1 <-> o2),lar,1,2
EOF
diff filtered.csv expected
ltlsynt -F input.csv/-2 --csv-without-formula=out.csv -q
cut out.csv -d, -f1,2 >filtered.csv
cat >expected <<EOF
"source","algo"
"input.csv:2","lar"
"input.csv:3","lar"
"input.csv:4","lar"
"input.csv:5","lar"
EOF
diff filtered.csv expected