3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-03 22:43:56 +00:00

cleanup macro usage

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-17 20:50:33 -07:00
parent cfedbe3dfd
commit 898609a3ef
5 changed files with 64 additions and 33 deletions

View file

@ -948,22 +948,15 @@ namespace smt {
return x_i;
}
/**
\brief minimize the given variable.
TODO: max_min returns a bool. What does this do?
*/
template<typename Ext>
void theory_arith<Ext>::min(theory_var v) {
max_min(v, false);
}
//
// set_objective(expr* term) internalizes the arithmetic term and creates
// a row for it if it is not already internalized. Then return the variable
// corresponding to the term.
// TODO handle case where internalize fails. e.g., check for this in a suitable way.
// a row for it if it is not already internalized.
// Then return the variable corresponding to the term.
//
template<typename Ext>
theory_var theory_arith<Ext>::set_objective(app* term) {
return internalize_term_core(term);
theory_var theory_arith<Ext>::add_objective(app* term) {
return internalize_term(term);
}
/**