mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 00:18:45 +00:00
allow copy within a user scope #6827
this will allow copying the solver state within a scope. The new solver state has its state at level 0. It is not possible to pop scopes from the new solver (you can still pop scopes from the original solver). The reason for this semantics is the relative difficulty of implementing (getting it right) of a state copy that preserves scopes.
This commit is contained in:
parent
403340498c
commit
adad468cd7
9 changed files with 23 additions and 24 deletions
|
@ -63,8 +63,8 @@ namespace smt {
|
|||
return m_imp->m_kernel.get_manager();
|
||||
}
|
||||
|
||||
void kernel::copy(kernel& src, kernel& dst) {
|
||||
context::copy(src.m_imp->m_kernel, dst.m_imp->m_kernel);
|
||||
void kernel::copy(kernel& src, kernel& dst, bool override_base) {
|
||||
context::copy(src.m_imp->m_kernel, dst.m_imp->m_kernel, override_base);
|
||||
}
|
||||
|
||||
bool kernel::set_logic(symbol logic) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue