3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-11 09:44:43 +00:00

add bound refinement propagation

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-08-12 10:10:31 -07:00
parent 7fc4653e47
commit be3c3dacb3
4 changed files with 74 additions and 30 deletions

View file

@ -95,7 +95,11 @@ namespace smt {
auto cube = [](context& ctx, expr_ref_vector& lasms, expr_ref& c) {
lookahead lh(ctx);
c = lh.choose();
if (c) lasms.push_back(c);
if (c) {
if ((ctx.get_random_value() % 2) == 0)
c = c.get_manager().mk_not(c);
lasms.push_back(c);
}
};
obj_hashtable<expr> unit_set;