ltlsynt: support multiple --tlsf options

* bin/common_finput.cc, bin/common_finput.hh: Add support for
process_tlsf_file.
* bin/ltlsynt.cc: Implement it.
* tests/core/syfco.test: Adjust test case.
This commit is contained in:
Alexandre Duret-Lutz 2022-06-22 15:20:54 +02:00
parent df685433f4
commit 04d718ab9c
4 changed files with 63 additions and 40 deletions

View file

@ -44,5 +44,8 @@ test REALIZABLE = `ltlsynt --tlsf test.tlsf --realizability`
test UNREALIZABLE = `ltlsynt --tlsf test.tlsf --outs=foo --realizability`
test UNREALIZABLE = `ltlsynt --outs=foo --tlsf test.tlsf --realizability`
ltlsynt --tlsf test.tlsf --tlsf test.tlsf 2>stderr && exit 0
grep 'option --tlsf may only be used once' stderr
# --tlsf can be used several time
ltlsynt --tlsf test.tlsf > out1
ltlsynt --tlsf test.tlsf --tlsf test.tlsf > out2
cat out1 out1 > out11
diff out11 out2