mirror of
https://github.com/Z3Prover/z3
synced 2025-11-06 14:26:03 +00:00
Add commands for forcing preferences during search
Add commands: (prefer <formula>) - will instruct case split queue to assign formula to true. - prefer commands added within a scope are forgotten after leaving the scope. (reset-preferences) - resets asserted preferences. Has to be invoked at base level. This provides functionality related to MathSAT and based on an ask by Tomáš Kolárik who is integrating the functionality with OpenSMT2
This commit is contained in:
parent
5d8fcaa3ee
commit
0e6b3a922a
6 changed files with 190 additions and 45 deletions
|
|
@ -1890,6 +1890,8 @@ namespace smt {
|
|||
|
||||
theory_bv::var_enode_pos theory_bv::get_bv_with_theory(bool_var v, theory_id id) const {
|
||||
atom* a = get_bv2a(v);
|
||||
if (!a)
|
||||
return var_enode_pos(nullptr, UINT32_MAX);
|
||||
svector<var_enode_pos> vec;
|
||||
if (!a->is_bit())
|
||||
return var_enode_pos(nullptr, UINT32_MAX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue