mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
add parameter to specify the file into which dot proofs are to be printed
This commit is contained in:
parent
24edb8fb47
commit
ed526b808d
3 changed files with 9 additions and 2 deletions
|
@ -217,8 +217,9 @@ ATOMIC_CMD(get_proof_graph_cmd, "get-proof-graph", "retrieve proof and print it
|
|||
throw cmd_exception("proof is not well sorted");
|
||||
}
|
||||
|
||||
// TODO: specify file into which the proof should be printed
|
||||
std::ofstream out("proof.dot");
|
||||
context_params& params = ctx.params();
|
||||
const std::string& file = params.m_dot_proof_file;
|
||||
std::ofstream out(file);
|
||||
out << ast_pp_dot(pr) << std::endl;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue