z3.rs
z3.rs copied to clipboard
Implement constructing consts of an uninterpreted sort
My attempt at addressing https://github.com/prove-rs/z3.rs/issues/190 .
Is a new ast type needed? I think a new_const
function for Dynamic
would do the job.
Apologies, I've been ignoring my github notifications over the break. Do you mean that as_uninterpreted()
and new_const()
should return a Dynamic
, removing the new Rust datatype? If you prefer that I can make that change.
I don't really understand the need for as_uninterpreted()
, since it doesn't enable anything more than Dynamic
itself. Do you have a specific use case? For example in case of as_int()
, you will get a Int
, which you can add it to other Int
s or call Int
specific functions on it, but there isn't such functions on Uninterpreted
. So I think it is possible to remove Uninterpreted
and as_uninterpreted
without losing functionality.