3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 05:43:39 +00:00

z3str3: address code reviews and remove some dead code (#5116)

This commit is contained in:
Murphy Berzish 2021-03-19 12:37:16 -05:00 committed by GitHub
parent bf692a5076
commit 064b1f0721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 39 deletions

View file

@ -447,11 +447,6 @@ namespace smt {
ast_manager & sub_m = subsolver.m();
// NSB code review: to remove dependencies on subsolver.get_context().
// It uses a method that should be removed from smt_kernel.
// currently sub_ctx is used to retrieve a rewriter. Theory_str already has a rewriter attahed.
context & sub_ctx = subsolver.get_context();
expr * str = nullptr, *re = nullptr;
VERIFY(u.str.is_in_re(f, str, re));
@ -554,7 +549,8 @@ namespace smt {
}
}
expr_ref result(mk_or(ors), sub_m);
sub_ctx.get_rewriter()(result);
th_rewriter rw(sub_m);
rw(result);
TRACE("str_fl", tout << "regex path constraint: " << mk_pp(result, sub_m) << std::endl;);
if (sub_m.is_false(result)) {