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:
parent
29cc9025cb
commit
6caee5e3ca
8 changed files with 34 additions and 177 deletions
|
@ -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); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue