apalache
apalache copied to clipboard
Repurpose `CounterexampleWriter`
CounterexampleWriter
is used by DumpFilesModelCheckerListener
to write all sorts of traces (not just counterexamples).
It should be adapted for this purpose by appropriate renaming, adapting the Scaladoc, etc.
Also, its API is still geared towards counterexamples, e.g, it still takes and writes a "negated invariant" (true
) on positive traces:
https://github.com/informalsystems/apalache/blob/96aa8207853d5459b04d19289b96c0cacd5b92f8/tla-bmcmt/src/main/scala/at/forsyte/apalache/tla/bmcmt/DumpFilesModelCheckerListener.scala#L31-L32