mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 02:25:32 +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
|
@ -2200,6 +2200,14 @@ public class Context implements AutoCloseable {
|
|||
return (ReExpr<R>) Expr.create(this, Native.mkReStar(nCtx(), re.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create power regular expression.
|
||||
*/
|
||||
public <R extends Sort> ReExpr<R> mkLoop(Expr<ReSort<R>> re, int n)
|
||||
{
|
||||
return (ReExpr<R>) Expr.create(this, Native.mkRePower(nCtx(), re.getNativeObject(), n));
|
||||
}
|
||||
|
||||
/**
|
||||
* Take the lower and upper-bounded Kleene star of a regular expression.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue