18 package com.microsoft.z3;
43 Native.LongPtr constructor =
new Native.LongPtr();
44 Native.LongPtr tester =
new Native.LongPtr();
45 long[] accessors =
new long[n];
46 Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors);
47 return new FuncDecl(getContext(), constructor.value);
57 Native.LongPtr constructor =
new Native.LongPtr();
58 Native.LongPtr tester =
new Native.LongPtr();
59 long[] accessors =
new long[n];
60 Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors);
61 return new FuncDecl(getContext(), tester.value);
71 Native.LongPtr constructor =
new Native.LongPtr();
72 Native.LongPtr tester =
new Native.LongPtr();
73 long[] accessors =
new long[n];
74 Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors);
76 for (
int i = 0; i < n; i++)
77 t[i] =
new FuncDecl(getContext(), accessors[i]);
87 Native.delConstructor(getContext().nCtx(), getNativeObject());
93 Symbol[] fieldNames,
Sort[] sorts,
int[] sortRefs)
98 n = AST.arrayLength(fieldNames);
100 if (n !=
AST.arrayLength(sorts))
102 "Number of field names does not match number of sorts");
103 if (sortRefs != null && sortRefs.length != n)
105 "Number of field names does not match number of sort refs");
107 if (sortRefs == null)
108 sortRefs =
new int[n];
111 recognizer.getNativeObject(), n, Symbol.arrayToNative(fieldNames),
112 Sort.arrayToNative(sorts), sortRefs));
FuncDecl[] getAccessorDecls()
FuncDecl ConstructorDecl()
static long mkConstructor(long a0, long a1, long a2, int a3, long[] a4, long[] a5, int[] a6)