mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 18:15:32 +00:00
Expose diff function, expose allchar in Java API expose op codes for replace/re/all
This commit is contained in:
parent
f01d096fb5
commit
7a6070506d
7 changed files with 62 additions and 1 deletions
|
@ -2246,8 +2246,19 @@ public class Context implements AutoCloseable {
|
|||
return (ReExpr<R>) Expr.create(this, Native.mkReIntersect(nCtx(), t.length, AST.arrayToNative(t)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a difference regular expression.
|
||||
*/
|
||||
public <R extends Sort> ReExpr<R> mkDiff(Expr<ReSort<R>> a, Expr<ReSort<R>> b)
|
||||
{
|
||||
checkContextMatch(a, b);
|
||||
return (ReExpr<R>) Expr.create(this, Native.mkReDiff(nCtx(), a.getNativeObject(), b.getNativeObject()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create the empty regular expression.
|
||||
* Coresponds to re.none
|
||||
*/
|
||||
public <R extends Sort> ReExpr<R> mkEmptyRe(R s)
|
||||
{
|
||||
|
@ -2256,12 +2267,22 @@ public class Context implements AutoCloseable {
|
|||
|
||||
/**
|
||||
* Create the full regular expression.
|
||||
* Corresponds to re.all
|
||||
*/
|
||||
public <R extends Sort> ReExpr<R> mkFullRe(R s)
|
||||
{
|
||||
return (ReExpr<R>) Expr.create(this, Native.mkReFull(nCtx(), s.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create regular expression that accepts all characters
|
||||
* Corresponds to re.allchar
|
||||
*/
|
||||
public <R extends Sort> ReExpr<R> mkAllcharRe(R s)
|
||||
{
|
||||
return (ReExpr<R>) Expr.create(this, Native.mkReAllchar(nCtx(), s.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a range expression.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue