mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 01:55:32 +00:00
49 lines
847 B
Java
49 lines
847 B
Java
/*++
|
|
Copyright (c) 2013 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
FPSort.java
|
|
|
|
Abstract:
|
|
|
|
Author:
|
|
|
|
Christoph Wintersteiger (cwinter) 2013-06-10
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
package com.microsoft.z3;
|
|
|
|
/**
|
|
* A FloatingPoint sort
|
|
**/
|
|
public class FPSort extends Sort
|
|
{
|
|
|
|
public FPSort(Context ctx, long obj)
|
|
{
|
|
super(ctx, obj);
|
|
}
|
|
|
|
public FPSort(Context ctx, int ebits, int sbits)
|
|
{
|
|
super(ctx, Native.mkFpaSort(ctx.nCtx(), ebits, sbits));
|
|
}
|
|
|
|
/**
|
|
* The number of exponent bits.
|
|
*/
|
|
public int getEBits() {
|
|
return Native.fpaGetEbits(getContext().nCtx(), getNativeObject());
|
|
}
|
|
|
|
/**
|
|
* The number of significand bits.
|
|
*/
|
|
public int getSBits() {
|
|
return Native.fpaGetSbits(getContext().nCtx(), getNativeObject());
|
|
}
|
|
|
|
}
|