Skip to content

Commit

Permalink
Fixed witness-only flag to output witness with an svcomp compatible p…
Browse files Browse the repository at this point in the history
…ath and filename
  • Loading branch information
AdamZsofi committed Oct 15, 2021
1 parent a316b70 commit a22666b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
Expand Down Expand Up @@ -270,7 +271,8 @@ private void run() {
/// output results file creation
// create filenames, if needed
if(witnessOnly) {
witnessfile = new File(basicFileName + ".witness.graphml");
Path workdir = FileSystems.getDefault().getPath("").toAbsolutePath();
witnessfile = new File(workdir + File.separator + "witness.graphml");
} else if(outputResults) {
xcfafile = new File(basicFileName + ".xcfa");
cfafile = new File(basicFileName + ".cfa");
Expand Down

0 comments on commit a22666b

Please sign in to comment.