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:
parent
bf692a5076
commit
064b1f0721
2 changed files with 3 additions and 39 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue