3
0
Fork 0
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:
Nikolaj Bjorner 2016-04-23 15:50:30 -07:00
parent e4b7ac37f3
commit 662e43d264
5 changed files with 225 additions and 29 deletions

View file

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