mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 19:47:52 +00:00
working on wmaxsmt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6302d1b7db
commit
42cbbe830e
3 changed files with 9 additions and 12 deletions
|
@ -82,6 +82,13 @@ namespace opt {
|
|||
~toggle_objective();
|
||||
};
|
||||
|
||||
class scoped_push {
|
||||
opt_solver& s;
|
||||
public:
|
||||
scoped_push(opt_solver& s):s(s) { s.push(); }
|
||||
~scoped_push() { s.pop(1); }
|
||||
};
|
||||
|
||||
smt::context& get_context() { return m_context.get_context(); } // used by weighted maxsat.
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue