3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 22:35:45 +00:00

fix #5032, reset substitution during fold transformation

This commit is contained in:
Nikolaj Bjorner 2021-02-15 14:14:25 -08:00
parent 6bd02e122b
commit c387863da1
3 changed files with 10 additions and 2 deletions

View file

@ -2453,6 +2453,12 @@ typedef obj_ref<app, ast_manager> app_ref;
typedef obj_ref<var,ast_manager> var_ref;
typedef app_ref proof_ref;
inline expr_ref operator~(expr_ref const & e) {
if (e.m().is_not(e))
return expr_ref(to_app(e)->get_arg(0), e.m());
return expr_ref(e.m().mk_not(e), e.m());
}
// -----------------------------------
//
// ast_vector (smart pointer vector)