Z3
ArrayExpr.cs
Go to the documentation of this file.
1/*++
2Copyright (<c>) 2012 Microsoft Corporation
3
4Module Name:
5
6 ArrayExpr.cs
7
8Abstract:
9
10 Z3 Managed API: Array Expressions
11
12Author:
13
14 Christoph Wintersteiger (cwinter) 2012-11-23
15
16Notes:
17
18--*/
19using System.Diagnostics;
20using System;
21using System.Collections.Generic;
22using System.Linq;
23using System.Text;
24
25
26namespace Microsoft.Z3
27{
31 public class ArrayExpr : Expr
32 {
33 #region Internal
35 internal ArrayExpr(Context ctx, IntPtr obj)
36 : base(ctx, obj)
37 {
38 Debug.Assert(ctx != null);
39 }
40 #endregion
41
43 public Expr this[Expr index]
44 {
45 get { return Context.MkSelect(this, index); }
46 }
47
49 public Expr this[IEnumerable<Expr> index]
50 {
51 get { return Context.MkSelect(this, index.ToArray()); }
52 }
53
54 }
55}
Array expressions
Definition: ArrayExpr.cs:32
The main interaction with Z3 happens via the Context.
Definition: Context.cs:32
Expr MkSelect(ArrayExpr a, Expr i)
Array read.
Definition: Context.cs:2048
Expressions are terms.
Definition: Expr.cs:31