3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 12:11:23 +00:00

added support for saving state graph in dot format (#4621)

* added support for saving state graph in dot format

* moved write_dgml and write_dot under CASSERT

* updated dgml and dot generation a bit so that a state that is both and alive state is detected as having green background but red border when the invariant is vioalted
This commit is contained in:
Margus Veanes 2020-08-09 14:53:29 -07:00 committed by GitHub
parent 3852d4516d
commit e5693b8a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 9 deletions

View file

@ -112,10 +112,16 @@ private:
bool is_subset(state_set set1, state_set set2) const;
bool is_disjoint(state_set set1, state_set set2) const;
bool check_invariant() const;
/*
Output the whole state graph in dgml format into the file '.z3-state-graph.dgml'
*/
bool write_dgml();
/*
Output the whole state graph in dot format into the file '.z3-state-graph.dot'
*/
bool write_dot();
#endif
void write_dgml();
/*
'Core' functions that modify the plain graph, without
updating SCCs or propagating live/dead state information.