mirror of
https://github.com/Z3Prover/z3
synced 2026-02-23 00:37:36 +00:00
Add finite set API support for C# and Java bindings (#8003)
* 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>
This commit is contained in:
parent
5b92f8fb80
commit
df816cab07
6 changed files with 410 additions and 0 deletions
42
src/api/java/FiniteSetSort.java
Normal file
42
src/api/java/FiniteSetSort.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
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()));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue