All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.z3.FPSort Maven / Gradle / Ivy

There is a newer version: 4.13.3
Show newest version
/*++
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());        
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy