3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00

fix tests

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-06-20 08:22:15 -07:00
parent 81e5589bc8
commit 792bf6c10b
8 changed files with 81 additions and 74 deletions

View file

@ -64,6 +64,13 @@ void solver::get_assertions(expr_ref_vector& fmls) const {
}
}
expr_ref_vector solver::get_assertions() const {
expr_ref_vector result(get_manager());
get_assertions(result);
return result;
}
struct scoped_assumption_push {
expr_ref_vector& m_vec;
scoped_assumption_push(expr_ref_vector& v, expr* e): m_vec(v) { v.push_back(e); }

View file

@ -179,6 +179,8 @@ public:
*/
void get_assertions(expr_ref_vector& fmls) const;
expr_ref_vector get_assertions() const;
/**
\brief The number of tracked assumptions (see assert_expr(t, a)).
*/