Skip to content

Commit

Permalink
approximate min-length for complements
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Aug 19, 2020
1 parent 4857d60 commit ed258ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ast/seq_decl_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1668,8 +1668,7 @@ seq_util::re::info seq_util::re::mk_info_rec(app* e) const {
case OP_RE_PLUS:
return get_info_rec(e->get_arg(0));
case OP_RE_COMPLEMENT:
i1 = get_info_rec(e->get_arg(0));
return info(i1.min_length > 0 ? 0 : UINT_MAX);
return info(0);
case OP_RE_LOOP:
i1 = get_info_rec(e->get_arg(0));
return info(u.max_mul(i1.min_length, e->get_decl()->get_parameter(0).get_int()));
Expand All @@ -1687,4 +1686,4 @@ seq_util::re::info seq_util::re::mk_info_rec(app* e) const {
return info(std::min(i1.min_length, i2.min_length));
}
return invalid_info;
}
}

0 comments on commit ed258ca

Please sign in to comment.