mirror of
https://github.com/Z3Prover/z3
synced 2025-07-20 03:12:03 +00:00
add regex power to API and for Java per request
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
706d7ea893
commit
e1929ca9b9
5 changed files with 33 additions and 0 deletions
|
@ -1053,6 +1053,12 @@ sort* seq_util::rex::to_seq(sort* re) {
|
|||
return to_sort(re->get_parameter(0).get_ast());
|
||||
}
|
||||
|
||||
app* seq_util::rex::mk_power(expr* r, unsigned n) {
|
||||
parameter param(n);
|
||||
return m.mk_app(m_fid, OP_RE_POWER, 1, ¶m, 1, &r);
|
||||
}
|
||||
|
||||
|
||||
app* seq_util::rex::mk_loop(expr* r, unsigned lo) {
|
||||
parameter param(lo);
|
||||
return m.mk_app(m_fid, OP_RE_LOOP, 1, ¶m, 1, &r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue