3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00

add_value

This commit is contained in:
Jakob Rath 2023-07-18 11:22:55 +02:00
parent 0d80e47350
commit 5e5164ed2c

View file

@ -707,9 +707,11 @@ namespace polysat {
}
}
void slicing::add_value(pvar v, rational const& value) {
// go through all existing nodes, and evaluate v?
// can do that externally
void slicing::add_value(pvar v, rational const& val) {
enode* const sv = var2slice(v);
enode* const sval = mk_value_slice(val, width(sv));
(void)merge(sv, sval, v);
// TODO: go through all existing nodes, and evaluate v? (no, better do that externally)
}
std::ostream& slicing::display(std::ostream& out) const {