mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 02:16:40 +00:00
Sketch a skeleton of Difference Logic optimizer
This commit is contained in:
parent
36d7948399
commit
6919f335a1
4 changed files with 89 additions and 6 deletions
|
@ -996,5 +996,23 @@ void theory_diff_logic<Ext>::get_implied_bound_antecedents(edge_id bridge_edge,
|
|||
m_graph.explain_subsumed_lazy(bridge_edge, subsumed_edge, f);
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
bool theory_diff_logic<Ext>::maximize(theory_var v) {
|
||||
NOT_IMPLEMENTED_YET();
|
||||
return false;
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
theory_var theory_diff_logic<Ext>::add_objective(app* term) {
|
||||
// Internalizing may not succeed since objective can be LRA
|
||||
return null_theory_var;
|
||||
}
|
||||
|
||||
template<typename Ext>
|
||||
inf_eps_rational<inf_rational> theory_diff_logic<Ext>::get_objective_value(theory_var v) {
|
||||
inf_eps_rational<inf_rational> val(m_objective);
|
||||
return val;
|
||||
}
|
||||
|
||||
#endif /* _THEORY_DIFF_LOGIC_DEF_H_ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue