mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 04:13:38 +00:00
Add str.<= and str.< to Java API
This commit is contained in:
parent
7091b1c856
commit
9a1a72867c
1 changed files with 20 additions and 0 deletions
|
@ -2106,6 +2106,26 @@ public class Context implements AutoCloseable {
|
||||||
return (BoolExpr) Expr.create(this, Native.mkSeqContains(nCtx(), s1.getNativeObject(), s2.getNativeObject()));
|
return (BoolExpr) Expr.create(this, Native.mkSeqContains(nCtx(), s1.getNativeObject(), s2.getNativeObject()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the string s1 is lexicographically strictly less than s2.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public BoolExpr MkStringLt(SeqSort<CharSort> s1, SeqSort<CharSort> s2)
|
||||||
|
{
|
||||||
|
checkContextMatch(s1, s2);
|
||||||
|
return new BoolExpr(this, Native.mkStrLt(nCtx(), s1.getNativeObject(), s2.getNativeObject()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the string s1 is lexicographically less or equal to s2.
|
||||||
|
*/
|
||||||
|
public BoolExpr MkStringLe(SeqSort<CharSort> s1, SeqSort<CharSort> s2)
|
||||||
|
{
|
||||||
|
checkContextMatch(s1, s2);
|
||||||
|
return new BoolExpr(this, Native.mkStrLe(nCtx(), s1.getNativeObject(), s2.getNativeObject()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve sequence of length one at index.
|
* Retrieve sequence of length one at index.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue