mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
add IEnumerable for distinct
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
59d47e3055
commit
89af9df02d
|
@ -938,6 +938,15 @@ namespace Microsoft.Z3
|
|||
return new BoolExpr(this, Native.Z3_mk_distinct(nCtx, (uint)args.Length, AST.ArrayToNative(args)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <c>distinct</c> term.
|
||||
/// </summary>
|
||||
public BoolExpr MkDistinct(IEnumerable<Expr> args)
|
||||
{
|
||||
Debug.Assert(args != null);
|
||||
return MkDistinct(args.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mk an expression representing <c>not(a)</c>.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue