mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
add multi-argument select for C#
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9bc4914268
commit
d953bdd2e4
2 changed files with 6 additions and 0 deletions
|
@ -44,5 +44,10 @@ namespace Microsoft.Z3
|
|||
get { return Context.MkSelect(this, index); }
|
||||
}
|
||||
|
||||
public Expr this[IEnumerable<Expr> index]
|
||||
{
|
||||
get { return Context.MkSelect(this, index.ToArray()); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Array update.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue