Skip to content

Commit

Permalink
substitute into non-ground regexes
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jun 9, 2020
1 parent bac4726 commit b0da540
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/smt/seq_regex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ namespace smt {
#endif
}
}
if (!is_ground(d)) {
d = subst(d, sub);
}
// at this point there should be no free variables as the ites are at top-level.
if (!re().is_empty(d))
conds.push_back(th.mk_literal(sk().mk_accept(s, a().mk_int(idx + 1), d)));
Expand Down

0 comments on commit b0da540

Please sign in to comment.