mirror of
https://github.com/Z3Prover/z3
synced 2026-01-20 17:14:43 +00:00
bv and gc of literals (#4692)
* bv and gc of literals Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * overload Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * diseq Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * diseq Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2d52367368
commit
549753845e
34 changed files with 1480 additions and 854 deletions
|
|
@ -70,6 +70,21 @@ namespace euf {
|
|||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Find the theory var that that is heuristically
|
||||
* linked with the fewest equality justifications.
|
||||
*/
|
||||
theory_var enode::get_closest_th_var(theory_id id) const {
|
||||
enode const* n = this;
|
||||
while (n) {
|
||||
theory_var v = n->get_th_var(id);
|
||||
if (v != null_theory_var)
|
||||
return v;
|
||||
n = n->m_target;
|
||||
}
|
||||
return null_theory_var;
|
||||
}
|
||||
|
||||
bool enode::acyclic() const {
|
||||
enode const* n = this;
|
||||
enode const* p = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue