mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 10:35:33 +00:00
Java bindings with no finalizers
Replacing finalizers with PhantomReferences, required quite a lot of changes to the codebase.
This commit is contained in:
parent
dfc80d3b69
commit
495ef0f055
48 changed files with 368 additions and 939 deletions
|
@ -92,13 +92,9 @@ public class EnumSort extends Sort
|
|||
|
||||
EnumSort(Context ctx, Symbol name, Symbol[] enumNames)
|
||||
{
|
||||
super(ctx, 0);
|
||||
|
||||
int n = enumNames.length;
|
||||
long[] n_constdecls = new long[n];
|
||||
long[] n_testers = new long[n];
|
||||
setNativeObject(Native.mkEnumerationSort(ctx.nCtx(),
|
||||
name.getNativeObject(), n, Symbol.arrayToNative(enumNames),
|
||||
n_constdecls, n_testers));
|
||||
super(ctx, Native.mkEnumerationSort(ctx.nCtx(),
|
||||
name.getNativeObject(), enumNames.length,
|
||||
Symbol.arrayToNative(enumNames),
|
||||
new long[enumNames.length], new long[enumNames.length]));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue