Z3
src
api
dotnet
ArraySort.cs
Go to the documentation of this file.
1
/*++
2
Copyright (c) 2012 Microsoft Corporation
3
4
Module Name:
5
6
ArraySort.cs
7
8
Abstract:
9
10
Z3 Managed API: Array Sorts
11
12
Author:
13
14
Christoph Wintersteiger (cwinter) 2012-11-23
15
16
Notes:
17
18
--*/
19
20
using
System
;
21
using
System
.
Diagnostics
.
Contracts
;
22
23
namespace
Microsoft.Z3
24
{
28
[
ContractVerification
(
true
)]
29
public
class
ArraySort
:
Sort
30
{
34
public
Sort
Domain
35
{
36
get
37
{
38
Contract.Ensures(Contract.Result<
Sort
>() !=
null
);
39
40
return
Sort
.Create(
Context
, Native.Z3_get_array_sort_domain(
Context
.nCtx, NativeObject));
41
}
42
}
43
47
public
Sort
Range
48
{
49
get
50
{
51
Contract.Ensures(Contract.Result<
Sort
>() !=
null
);
52
53
return
Sort
.Create(
Context
, Native.Z3_get_array_sort_range(
Context
.nCtx, NativeObject));
54
}
55
}
56
57
#region Internal
58
internal
ArraySort
(
Context
ctx, IntPtr obj) : base(ctx, obj) { Contract.Requires(ctx !=
null
); }
59
internal
ArraySort(Context ctx, Sort domain, Sort range)
60
: base(ctx, Native.
Z3_mk_array_sort
(ctx.nCtx, domain.NativeObject, range.NativeObject))
61
{
62
Contract.Requires(ctx !=
null
);
63
Contract.Requires(domain !=
null
);
64
Contract.Requires(range !=
null
);
65
}
66
#endregion
67
};
68
69
}
Microsoft.Z3.ArraySort
Array sorts.
Definition:
ArraySort.cs:29
System
Definition:
DummyContracts.cs:21
System.Diagnostics
Definition:
DummyContracts.cs:21
System.Diagnostics.Contracts.ContractVerification
Definition:
DummyContracts.cs:38
Microsoft.Z3.ArraySort.Range
Sort Range
The range of the array sort.
Definition:
ArraySort.cs:48
Z3_mk_array_sort
Z3_sort Z3_API Z3_mk_array_sort(Z3_context c, Z3_sort domain, Z3_sort range)
Create an array type.
System.Diagnostics.Contracts
Definition:
DummyContracts.cs:21
Microsoft.Z3.Context
The main interaction with Z3 happens via the Context.
Definition:
Context.cs:32
Microsoft.Z3.Sort
The Sort class implements type information for ASTs.
Definition:
Sort.cs:29
Microsoft.Z3
Definition:
AlgebraicNum.cs:26
Microsoft.Z3.ArraySort.Domain
Sort Domain
The domain of the array sort.
Definition:
ArraySort.cs:35
Generated on Tue Apr 23 2019 05:24:44 for Z3 by
1.8.15