3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-03 21:01:22 +00:00

add multi-argument select for C#

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-03-17 11:35:03 -07:00
parent 9bc4914268
commit d953bdd2e4
2 changed files with 6 additions and 0 deletions

View file

@ -44,5 +44,10 @@ namespace Microsoft.Z3
get { return Context.MkSelect(this, index); } get { return Context.MkSelect(this, index); }
} }
public Expr this[IEnumerable<Expr> index]
{
get { return Context.MkSelect(this, index.ToArray()); }
}
} }
} }

View file

@ -2079,6 +2079,7 @@ namespace Microsoft.Z3
return Expr.Create(this, Native.Z3_mk_select_n(nCtx, a.NativeObject, AST.ArrayLength(args), AST.ArrayToNative(args))); return Expr.Create(this, Native.Z3_mk_select_n(nCtx, a.NativeObject, AST.ArrayLength(args), AST.ArrayToNative(args)));
} }
/// <summary> /// <summary>
/// Array update. /// Array update.
/// </summary> /// </summary>