Z3 has no native way to copy a solver, commonly useful for BFS style tree traversals of contexts of execution. Sometimes solver push/pop suffices and sometimes you just need to copy. This code uses the same operations Leonardo suggested on the topic to cope with Z3's lack.
Z3 has no native way to copy a solver, commonly useful for BFS style tree traversals of contexts of execution. Sometimes solver push/pop suffices and sometimes you just need to copy. This code uses the same operations Leonardo suggested on the topic to cope with Z3's lack.