3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 20:38:43 +00:00

reset-assertions resets everything (also declarations, and we take scopes) when global-declarations is false. v2.5

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-12-03 10:18:40 -08:00
parent 8e5dec882b
commit 3f02beb820

View file

@ -1493,6 +1493,11 @@ void cmd_context::check_sat(unsigned num_assumptions, expr * const * assumptions
}
void cmd_context::reset_assertions() {
if (!m_global_decls) {
reset(false);
return;
}
if (m_opt) {
m_opt = 0;
}