Open gltrost opened 3 years ago
I was actually hoping that Constraint.to_string
could be significantly improved as well, e.g. by printing the constructors in an easy to read format, e.g. ITE (a, b, c)
as if a then b else c
, Subst(a, b, c)
as let b = c in a
etc.
Based on comments from here: https://github.com/draperlaboratory/cbat_tools/pull/244#discussion_r597048015 I'd recommend never having Z3 variables contain #
. Sadly BIL "nameless" variables by default are of the form e.g. #123
, so probably hooking Expr.mk_const_s
, or just Environment.mk_init_var
would be a good idea.
Currently when printing constraints, we print them in a hard to read syntax. For example:
is difficult to understand. Things that should be fixed include
\n
printings=
If anyone has other requests with respect to printing constraints, please share!