3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 19:47:52 +00:00

more refactoring

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-11-08 13:16:10 -08:00
parent 29cc9025cb
commit 6caee5e3ca
8 changed files with 34 additions and 177 deletions

View file

@ -73,6 +73,8 @@ namespace opt {
vector<inf_eps> const& get_objective_values();
expr_ref block_lower_bound(unsigned obj_index, inf_eps const& val);
static opt_solver& to_opt(solver& s);
class toggle_objective {
opt_solver& s;
@ -83,9 +85,9 @@ namespace opt {
};
class scoped_push {
opt_solver& s;
solver& s;
public:
scoped_push(opt_solver& s):s(s) { s.push(); }
scoped_push(solver& s):s(s) { s.push(); }
~scoped_push() { s.pop(1); }
};