cex: add an argument to the reporting functions to specify the stream

* src/conflicts.c (find_state_item_number, report_state_counterexamples):
Move to...
* src/counterexample.h, src/counterexample.c (find_state_item_number)
(counterexample_report_state): this.
Add support for `out` as an argument.
(counterexample_report_reduce_reduce, counterexample_report_shift_reduce):
Accept an `out` argument, and be static.
This commit is contained in:
Akim Demaille
2020-06-11 07:20:09 +02:00
parent 1c3189734c
commit 5edac5e15a
3 changed files with 72 additions and 80 deletions

View File

@@ -25,11 +25,6 @@
void counterexample_init (void);
void counterexample_free (void);
void counterexample_report_shift_reduce (state_item_number itm1,
state_item_number itm2,
symbol_number next_sym);
void counterexample_report_state (const state *s, FILE *out);
void counterexample_report_reduce_reduce (state_item_number itm1,
state_item_number itm2,
bitset conflict_syms);
#endif /* COUNTEREXAMPLE_H */