mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
overloading support for C# expressions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e4b7ac37f3
commit
662e43d264
5 changed files with 225 additions and 29 deletions
|
@ -34,5 +34,24 @@ namespace Microsoft.Z3
|
|||
/// <summary> Constructor for BoolExpr </summary>
|
||||
internal BoolExpr(Context ctx, IntPtr obj) : base(ctx, obj) { Contract.Requires(ctx != null); }
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
/// <summary>
|
||||
/// Disjunction of Boolean expressions
|
||||
/// </summary>
|
||||
public static BoolExpr operator|(BoolExpr a, BoolExpr b)
|
||||
{
|
||||
return a.Context.MkOr(a, b);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Conjunction of Boolean expressions
|
||||
/// </summary>
|
||||
public static BoolExpr operator &(BoolExpr a, BoolExpr b)
|
||||
{
|
||||
return a.Context.MkAnd(a, b);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue