Z3
FPSort.cs
Go to the documentation of this file.
1 /*++
2 Copyright (c) 2013 Microsoft Corporation
3 
4 Module Name:
5 
6  FPSort.cs
7 
8 Abstract:
9 
10  Z3 Managed API: Floating Point Sorts
11 
12 Author:
13 
14  Christoph Wintersteiger (cwinter) 2013-06-10
15 
16 Notes:
17 
18 --*/
19 using System;
20 using System.Diagnostics.Contracts;
21 
22 namespace Microsoft.Z3
23 {
27  public class FPSort : Sort
28  {
32  public uint EBits { get { return Native.Z3_fpa_get_ebits(Context.nCtx, NativeObject); } }
33 
37  public uint SBits { get { return Native.Z3_fpa_get_sbits(Context.nCtx, NativeObject); } }
38 
39  #region Internal
40  internal FPSort(Context ctx, IntPtr obj)
41  : base(ctx, obj)
42  {
43  Contract.Requires(ctx != null);
44  }
45  internal FPSort(Context ctx, uint ebits, uint sbits)
46  : base(ctx, Native.Z3_mk_fpa_sort(ctx.nCtx, ebits, sbits))
47  {
48  Contract.Requires(ctx != null);
49  }
50  #endregion
51  }
52 }
using System
static Z3_sort Z3_mk_fpa_sort(Z3_context a0, uint a1, uint a2)
Definition: Native.cs:6370
static uint Z3_fpa_get_ebits(Z3_context a0, Z3_sort a1)
Definition: Native.cs:6770
def FPSort(ebits, sbits, ctx=None)
Definition: z3py.py:8119
The main interaction with Z3 happens via the Context.
Definition: Context.cs:31
The Sort class implements type information for ASTs.
Definition: Sort.cs:29
FloatingPoint sort
Definition: FPSort.cs:27
static uint Z3_fpa_get_sbits(Z3_context a0, Z3_sort a1)
Definition: Native.cs:6778