mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
Java API: a first version that compiles. This is still untested.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
fb947f50fb
commit
c6303fc8f5
153 changed files with 10063 additions and 9851 deletions
46
src/api/java/RelationSort.java
Normal file
46
src/api/java/RelationSort.java
Normal file
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* This file was automatically generated from RelationSort.cs
|
||||
* w/ further modifications by:
|
||||
* @author Christoph M. Wintersteiger (cwinter)
|
||||
**/
|
||||
|
||||
package com.Microsoft.Z3;
|
||||
|
||||
/**
|
||||
* Relation sorts.
|
||||
**/
|
||||
public class RelationSort extends Sort
|
||||
{
|
||||
/**
|
||||
* The arity of the relation sort.
|
||||
**/
|
||||
public int Arity()
|
||||
{
|
||||
return Native.getRelationArity(Context().nCtx(), NativeObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* The sorts of the columns of the relation sort.
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Sort[] ColumnSorts() throws Z3Exception
|
||||
{
|
||||
|
||||
if (m_columnSorts != null)
|
||||
return m_columnSorts;
|
||||
|
||||
int n = Arity();
|
||||
Sort[] res = new Sort[n];
|
||||
for (int i = 0; i < n; i++)
|
||||
res[i] = Sort.Create(Context(), Native.getRelationColumn(Context()
|
||||
.nCtx(), NativeObject(), i));
|
||||
return res;
|
||||
}
|
||||
|
||||
private Sort[] m_columnSorts = null;
|
||||
|
||||
RelationSort(Context ctx, long obj) throws Z3Exception
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue