z3.rs icon indicating copy to clipboard operation
z3.rs copied to clipboard

Add consequences to solver

Open VadeveSi opened this issue 1 year ago • 0 comments

Hi,

I wanted to work towards adding support for Z3's consequences to the Solver. I figure something like

pub fn get_consequence(self,
                       mut assumptions: &[ast::Bool<'ctx>],
                       mut variables: &[ast::Bool<'ctx>]
                       ) -> &[ast::Bool<'ctx>] {
...
}

should work as a high-level wrapper around z3_sys::Z3_solver_get_consequences, but this requires the data to be in a Z3_ast_vector and I'm struggling on how to do that. Do you have any suggestions on how to do this? Am I overlooking something obvious?

Thanks.

VadeveSi avatar Jul 17 '24 11:07 VadeveSi