mirror of
https://github.com/Z3Prover/z3
synced 2026-02-22 16:27:37 +00:00
* Initial plan * Add finite set API support for Java and C# Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Add documentation and examples for finite set APIs Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Delete FINITE_SET_API_EXAMPLES.md * Add FiniteSetSort files to CMakeLists.txt build configurations Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
42 lines
697 B
Java
42 lines
697 B
Java
/**
|
|
Copyright (c) 2024 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
FiniteSetSort.java
|
|
|
|
Abstract:
|
|
|
|
Author:
|
|
|
|
GitHub Copilot
|
|
|
|
Notes:
|
|
|
|
**/
|
|
|
|
package com.microsoft.z3;
|
|
|
|
/**
|
|
* Finite set sorts.
|
|
**/
|
|
public class FiniteSetSort extends Sort
|
|
{
|
|
FiniteSetSort(Context ctx, long obj)
|
|
{
|
|
super(ctx, obj);
|
|
}
|
|
|
|
FiniteSetSort(Context ctx, Sort elemSort)
|
|
{
|
|
super(ctx, Native.mkFiniteSetSort(ctx.nCtx(), elemSort.getNativeObject()));
|
|
}
|
|
|
|
/**
|
|
* Get the element sort (basis) of this finite set sort.
|
|
**/
|
|
public Sort getBasis()
|
|
{
|
|
return Sort.create(getContext(), Native.getFiniteSetSortBasis(getContext().nCtx(), getNativeObject()));
|
|
}
|
|
}
|