3
0
Fork 0
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:
Nikolaj Bjorner 2022-07-21 23:22:24 -07:00
parent 59d47e3055
commit 89af9df02d

View file

@ -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>