Open eugenk opened 8 years ago
So simply placing it in a temp file should fix this?
If the tempfile comes from the OS, then it should fix this. We need to ensure that there's always a different filepath.
I think for other provers we generated a name from the theory and the goal(s).
That seems sensible. Which one is preferable? & Do you maybe have an example?
I'd mix those two methods: request a tempfile from the OS with a reference to the theory in the name (and the correct file extension). It should be located in the $TMPDIR
I think for "-o th" or "-o tptp" we got reasonable names
@eugenk: What would be the point in mixing these? The temporary file is unique and is never used by anyone else (and should be deleted after the proof)
For debugging purposes ;) Sometimes it comes in handy when you debug something and you are sure that you got the right file.
So we'd want to mimick https://github.com/spechub/Hets/blob/master/Driver/WriteFn.hs#L211 + random component?
For darwin SoftFOL/ProveDarwin.hs
only the theory name is used as a base name for the temp file
When Hets executes LeoII to prove a theorem, it always puts the input for LeoII at the same path, which is
$PWD/_thm.p
.Running multiple instances of Hets in parallel, this file gets overwritten while LeoII is reading it. As a consequence, LeoII encounters syntax errors.