mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
extract also units from search state
This commit is contained in:
parent
d4ea67a6e7
commit
3f3d058567
7 changed files with 36 additions and 1 deletions
|
@ -242,6 +242,7 @@ expr_ref_vector solver::get_units() {
|
|||
ast_manager& m = get_manager();
|
||||
expr_ref_vector fmls(m), result(m), tmp(m);
|
||||
get_assertions(fmls);
|
||||
get_units_core(fmls);
|
||||
obj_map<expr, bool> units;
|
||||
for (expr* f : fmls) {
|
||||
if (m.is_not(f, f) && is_literal(m, f)) {
|
||||
|
|
|
@ -261,6 +261,8 @@ public:
|
|||
*/
|
||||
expr_ref_vector get_units();
|
||||
|
||||
virtual void get_units_core(expr_ref_vector& units) {}
|
||||
|
||||
expr_ref_vector get_non_units();
|
||||
|
||||
virtual expr_ref_vector get_trail() = 0; // { return expr_ref_vector(get_manager()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue