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

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

The newest version!
/**
Copyright (c) 2012-2014 Microsoft Corporation
   
Module Name:

    FiniteDomainSort.java

Abstract:

Author:

    @author Christoph Wintersteiger (cwinter) 2012-03-15

Notes:
    
**/

package com.microsoft.z3;

/**
 * Finite domain sorts.
 **/
public class FiniteDomainSort extends Sort
{
    /**
     * The size of the finite domain sort.
     * @throws Z3Exception on error
     **/
    public long getSize()
    {
        Native.LongPtr res = new Native.LongPtr();
        Native.getFiniteDomainSortSize(getContext().nCtx(), getNativeObject(), res);
        return res.value;
    }

    FiniteDomainSort(Context ctx, long obj)
    {
        super(ctx, obj);
    }

    FiniteDomainSort(Context ctx, Symbol name, long size)
    {
        super(ctx, Native.mkFiniteDomainSort(ctx.nCtx(), name.getNativeObject(),
                size));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy