diff --git a/examples/java/JavaExample.java b/examples/java/JavaExample.java index af8662700..64e4015e0 100644 --- a/examples/java/JavaExample.java +++ b/examples/java/JavaExample.java @@ -2169,8 +2169,8 @@ class JavaExample FPNum y = (FPNum)ctx.mkNumeral("-10", s); /* -10 */ FPNum z = (FPNum)ctx.mkNumeral("-1.25p3", s); /* -1.25 * 2^3 = -1.25 * 8 = -10 */ System.out.println("x=" + x.toString() + - "; y=" + y.toString() + - "; z=" + z.toString()); + "; y=" + y.toString() + + "; z=" + z.toString()); BoolExpr a = ctx.mkAnd(ctx.mkFPEq(x, y), ctx.mkFPEq(y, z)); check(ctx, ctx.mkNot(a), Status.UNSATISFIABLE); diff --git a/src/api/dotnet/Context.cs b/src/api/dotnet/Context.cs index 94baea35a..3c3a960df 100644 --- a/src/api/dotnet/Context.cs +++ b/src/api/dotnet/Context.cs @@ -4399,16 +4399,16 @@ namespace Microsoft.Z3 readonly private ASTMap.DecRefQueue m_ASTMap_DRQ = new ASTMap.DecRefQueue(10); readonly private ASTVector.DecRefQueue m_ASTVector_DRQ = new ASTVector.DecRefQueue(10); readonly private ApplyResult.DecRefQueue m_ApplyResult_DRQ = new ApplyResult.DecRefQueue(10); - readonly private FuncInterp.Entry.DecRefQueue m_FuncEntry_DRQ = new FuncInterp.Entry.DecRefQueue(); - readonly private FuncInterp.DecRefQueue m_FuncInterp_DRQ = new FuncInterp.DecRefQueue(); + readonly private FuncInterp.Entry.DecRefQueue m_FuncEntry_DRQ = new FuncInterp.Entry.DecRefQueue(10); + readonly private FuncInterp.DecRefQueue m_FuncInterp_DRQ = new FuncInterp.DecRefQueue(10); readonly private Goal.DecRefQueue m_Goal_DRQ = new Goal.DecRefQueue(10); readonly private Model.DecRefQueue m_Model_DRQ = new Model.DecRefQueue(10); - readonly private Params.DecRefQueue m_Params_DRQ = new Params.DecRefQueue(); - readonly private ParamDescrs.DecRefQueue m_ParamDescrs_DRQ = new ParamDescrs.DecRefQueue(); - readonly private Probe.DecRefQueue m_Probe_DRQ = new Probe.DecRefQueue(); + readonly private Params.DecRefQueue m_Params_DRQ = new Params.DecRefQueue(10); + readonly private ParamDescrs.DecRefQueue m_ParamDescrs_DRQ = new ParamDescrs.DecRefQueue(10); + readonly private Probe.DecRefQueue m_Probe_DRQ = new Probe.DecRefQueue(10); readonly private Solver.DecRefQueue m_Solver_DRQ = new Solver.DecRefQueue(10); readonly private Statistics.DecRefQueue m_Statistics_DRQ = new Statistics.DecRefQueue(10); - readonly private Tactic.DecRefQueue m_Tactic_DRQ = new Tactic.DecRefQueue(); + readonly private Tactic.DecRefQueue m_Tactic_DRQ = new Tactic.DecRefQueue(10); readonly private Fixedpoint.DecRefQueue m_Fixedpoint_DRQ = new Fixedpoint.DecRefQueue(10); internal AST.DecRefQueue AST_DRQ { get { Contract.Ensures(Contract.Result() != null); return m_AST_DRQ; } } diff --git a/src/api/java/AST.java b/src/api/java/AST.java index 0cdfd025c..fdb1643a5 100644 --- a/src/api/java/AST.java +++ b/src/api/java/AST.java @@ -29,7 +29,7 @@ public class AST extends Z3Object /** * Object comparison. * - * @param o another AST + * @param o another AST **/ public boolean equals(Object o) { @@ -48,7 +48,7 @@ public class AST extends Z3Object /** * Object Comparison. - * @param other Another AST + * @param other Another AST * * @return Negative if the object should be sorted before {@code other}, * positive if after else zero. @@ -102,7 +102,7 @@ public class AST extends Z3Object /** * Translates (copies) the AST to the Context {@code ctx}. - * @param ctx A context + * @param ctx A context * * @return A copy of the AST which is associated with {@code ctx} * @throws Z3Exception on error @@ -130,7 +130,7 @@ public class AST extends Z3Object /** * Indicates whether the AST is an Expr * @throws Z3Exception on error - * @throws Z3Exception on error + * @throws Z3Exception on error **/ public boolean isExpr() throws Z3Exception { @@ -148,7 +148,7 @@ public class AST extends Z3Object /** * Indicates whether the AST is an application - * @return a boolean + * @return a boolean * @throws Z3Exception on error **/ public boolean isApp() throws Z3Exception @@ -158,7 +158,7 @@ public class AST extends Z3Object /** * Indicates whether the AST is a BoundVariable. - * @return a boolean + * @return a boolean * @throws Z3Exception on error **/ public boolean isVar() throws Z3Exception @@ -168,7 +168,7 @@ public class AST extends Z3Object /** * Indicates whether the AST is a Quantifier - * @return a boolean + * @return a boolean * @throws Z3Exception on error **/ public boolean isQuantifier() throws Z3Exception @@ -228,7 +228,7 @@ public class AST extends Z3Object { // Console.WriteLine("AST IncRef()"); if (getContext() == null || o == 0) - return; + return; getContext().ast_DRQ().incAndClear(getContext(), o); super.incRef(o); } @@ -237,7 +237,7 @@ public class AST extends Z3Object { // Console.WriteLine("AST DecRef()"); if (getContext() == null || o == 0) - return; + return; getContext().ast_DRQ().add(o); super.decRef(o); } diff --git a/src/api/java/ASTDecRefQueue.java b/src/api/java/ASTDecRefQueue.java index 6ae84eb41..a8ee83e57 100644 --- a/src/api/java/ASTDecRefQueue.java +++ b/src/api/java/ASTDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ASTDecRefQueue extends IDecRefQueue { + public ASTDecRefQueue() + { + super(); + } + + public ASTDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/ASTMap.java b/src/api/java/ASTMap.java index 3d63939ca..96ddfbf76 100644 --- a/src/api/java/ASTMap.java +++ b/src/api/java/ASTMap.java @@ -24,7 +24,7 @@ class ASTMap extends Z3Object { /** * Checks whether the map contains the key {@code k}. - * @param k An AST + * @param k An AST * * @return True if {@code k} is a key in the map, false * otherwise. @@ -40,7 +40,7 @@ class ASTMap extends Z3Object * Finds the value associated with the key {@code k}. * Remarks: This function signs an error when {@code k} is not a key in * the map. - * @param k An AST + * @param k An AST * * @throws Z3Exception **/ @@ -52,8 +52,8 @@ class ASTMap extends Z3Object /** * Stores or replaces a new key/value pair in the map. - * @param k The key AST - * @param v The value AST + * @param k The key AST + * @param v The value AST **/ public void insert(AST k, AST v) throws Z3Exception { @@ -64,7 +64,7 @@ class ASTMap extends Z3Object /** * Erases the key {@code k} from the map. - * @param k An AST + * @param k An AST **/ public void erase(AST k) throws Z3Exception { diff --git a/src/api/java/ASTVector.java b/src/api/java/ASTVector.java index d4df02244..30c96e2e7 100644 --- a/src/api/java/ASTVector.java +++ b/src/api/java/ASTVector.java @@ -34,7 +34,7 @@ class ASTVector extends Z3Object * Retrieves the i-th object in the vector. * Remarks: May throw an {@code IndexOutOfBoundsException} when * {@code i} is out of range. - * @param i Index + * @param i Index * * @return An AST * @throws Z3Exception @@ -54,7 +54,7 @@ class ASTVector extends Z3Object /** * Resize the vector to {@code newSize}. - * @param newSize The new size of the vector. + * @param newSize The new size of the vector. **/ public void resize(int newSize) throws Z3Exception { @@ -64,7 +64,7 @@ class ASTVector extends Z3Object /** * Add the AST {@code a} to the back of the vector. The size is * increased by 1. - * @param a An AST + * @param a An AST **/ public void push(AST a) throws Z3Exception { @@ -73,7 +73,7 @@ class ASTVector extends Z3Object /** * Translates all ASTs in the vector to {@code ctx}. - * @param ctx A context + * @param ctx A context * * @return A new ASTVector * @throws Z3Exception diff --git a/src/api/java/ApplyResultDecRefQueue.java b/src/api/java/ApplyResultDecRefQueue.java index 78f74d6cc..4cdf312fe 100644 --- a/src/api/java/ApplyResultDecRefQueue.java +++ b/src/api/java/ApplyResultDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ApplyResultDecRefQueue extends IDecRefQueue { + public ApplyResultDecRefQueue() + { + super(); + } + + public ApplyResultDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/ArithExpr.java b/src/api/java/ArithExpr.java index 996b98afc..240518134 100644 --- a/src/api/java/ArithExpr.java +++ b/src/api/java/ArithExpr.java @@ -22,11 +22,11 @@ package com.microsoft.z3; **/ public class ArithExpr extends Expr { - /** - * Constructor for ArithExpr - **/ - ArithExpr(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + /** + * Constructor for ArithExpr + **/ + ArithExpr(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } } diff --git a/src/api/java/ArithSort.java b/src/api/java/ArithSort.java index 2346d9b74..848d23554 100644 --- a/src/api/java/ArithSort.java +++ b/src/api/java/ArithSort.java @@ -22,8 +22,8 @@ package com.microsoft.z3; **/ public class ArithSort extends Sort { - ArithSort(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + ArithSort(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } }; diff --git a/src/api/java/ArrayExpr.java b/src/api/java/ArrayExpr.java index 154a56af4..4e6d9ed4d 100644 --- a/src/api/java/ArrayExpr.java +++ b/src/api/java/ArrayExpr.java @@ -23,11 +23,11 @@ package com.microsoft.z3; **/ public class ArrayExpr extends Expr { - /** - * Constructor for ArrayExpr - **/ - ArrayExpr(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + /** + * Constructor for ArrayExpr + **/ + ArrayExpr(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } } diff --git a/src/api/java/ArraySort.java b/src/api/java/ArraySort.java index ab545b7c1..a5b52a8f5 100644 --- a/src/api/java/ArraySort.java +++ b/src/api/java/ArraySort.java @@ -22,38 +22,38 @@ package com.microsoft.z3; **/ public class ArraySort extends Sort { - /** - * The domain of the array sort. - * @throws Z3Exception - * @throws Z3Exception on error - * @return a sort - **/ - public Sort getDomain() throws Z3Exception - { - return Sort.create(getContext(), - Native.getArraySortDomain(getContext().nCtx(), getNativeObject())); - } + /** + * The domain of the array sort. + * @throws Z3Exception + * @throws Z3Exception on error + * @return a sort + **/ + public Sort getDomain() throws Z3Exception + { + return Sort.create(getContext(), + Native.getArraySortDomain(getContext().nCtx(), getNativeObject())); + } - /** - * The range of the array sort. - * @throws Z3Exception - * @throws Z3Exception on error - * @return a sort - **/ - public Sort getRange() throws Z3Exception - { - return Sort.create(getContext(), - Native.getArraySortRange(getContext().nCtx(), getNativeObject())); - } + /** + * The range of the array sort. + * @throws Z3Exception + * @throws Z3Exception on error + * @return a sort + **/ + public Sort getRange() throws Z3Exception + { + return Sort.create(getContext(), + Native.getArraySortRange(getContext().nCtx(), getNativeObject())); + } - ArraySort(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + ArraySort(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } - ArraySort(Context ctx, Sort domain, Sort range) throws Z3Exception - { - super(ctx, Native.mkArraySort(ctx.nCtx(), domain.getNativeObject(), - range.getNativeObject())); - } + ArraySort(Context ctx, Sort domain, Sort range) throws Z3Exception + { + super(ctx, Native.mkArraySort(ctx.nCtx(), domain.getNativeObject(), + range.getNativeObject())); + } }; diff --git a/src/api/java/AstMapDecRefQueue.java b/src/api/java/AstMapDecRefQueue.java index a4e02d29f..2106ff0c2 100644 --- a/src/api/java/AstMapDecRefQueue.java +++ b/src/api/java/AstMapDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ASTMapDecRefQueue extends IDecRefQueue { + public ASTMapDecRefQueue() + { + super(); + } + + public ASTMapDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/AstVectorDecRefQueue.java b/src/api/java/AstVectorDecRefQueue.java index e0c7988a9..698e9e06b 100644 --- a/src/api/java/AstVectorDecRefQueue.java +++ b/src/api/java/AstVectorDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ASTVectorDecRefQueue extends IDecRefQueue { + public ASTVectorDecRefQueue() + { + super(); + } + + public ASTVectorDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/BitVecExpr.java b/src/api/java/BitVecExpr.java index 69a97de40..926a26b25 100644 --- a/src/api/java/BitVecExpr.java +++ b/src/api/java/BitVecExpr.java @@ -23,22 +23,22 @@ package com.microsoft.z3; public class BitVecExpr extends Expr { - /** - * The size of the sort of a bit-vector term. - * @throws Z3Exception - * @throws Z3Exception on error - * @return an int - **/ - public int getSortSize() throws Z3Exception - { - return ((BitVecSort) getSort()).getSize(); - } + /** + * The size of the sort of a bit-vector term. + * @throws Z3Exception + * @throws Z3Exception on error + * @return an int + **/ + public int getSortSize() throws Z3Exception + { + return ((BitVecSort) getSort()).getSize(); + } - /** - * Constructor for BitVecExpr - **/ - BitVecExpr(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + /** + * Constructor for BitVecExpr + **/ + BitVecExpr(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } } diff --git a/src/api/java/BitVecSort.java b/src/api/java/BitVecSort.java index 69d74151c..7fd644acb 100644 --- a/src/api/java/BitVecSort.java +++ b/src/api/java/BitVecSort.java @@ -22,18 +22,18 @@ package com.microsoft.z3; **/ public class BitVecSort extends Sort { - /** - * The size of the bit-vector sort. - * @throws Z3Exception on error - * @return an int - **/ - public int getSize() throws Z3Exception - { - return Native.getBvSortSize(getContext().nCtx(), getNativeObject()); - } + /** + * The size of the bit-vector sort. + * @throws Z3Exception on error + * @return an int + **/ + public int getSize() throws Z3Exception + { + return Native.getBvSortSize(getContext().nCtx(), getNativeObject()); + } - BitVecSort(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + BitVecSort(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } }; diff --git a/src/api/java/BoolExpr.java b/src/api/java/BoolExpr.java index ea3cdbfb4..6709e2ae9 100644 --- a/src/api/java/BoolExpr.java +++ b/src/api/java/BoolExpr.java @@ -22,21 +22,21 @@ package com.microsoft.z3; **/ public class BoolExpr extends Expr { - /** - * Constructor for BoolExpr - **/ - protected BoolExpr(Context ctx) - { - super(ctx); - } + /** + * Constructor for BoolExpr + **/ + protected BoolExpr(Context ctx) + { + super(ctx); + } - /** - * Constructor for BoolExpr - * @throws Z3Exception - * @throws Z3Exception on error - **/ - BoolExpr(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + /** + * Constructor for BoolExpr + * @throws Z3Exception + * @throws Z3Exception on error + **/ + BoolExpr(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } } diff --git a/src/api/java/Constructor.java b/src/api/java/Constructor.java index a5440092c..95e7799e1 100644 --- a/src/api/java/Constructor.java +++ b/src/api/java/Constructor.java @@ -22,53 +22,53 @@ package com.microsoft.z3; **/ public class Constructor extends Z3Object { - /** - * The number of fields of the constructor. - * @throws Z3Exception - * @throws Z3Exception on error - * @return an int - **/ - public int getNumFields() throws Z3Exception - { - return n; - } + /** + * The number of fields of the constructor. + * @throws Z3Exception + * @throws Z3Exception on error + * @return an int + **/ + public int getNumFields() throws Z3Exception + { + return n; + } - /** - * The function declaration of the constructor. - * @throws Z3Exception - * @throws Z3Exception on error - **/ - public FuncDecl ConstructorDecl() throws Z3Exception - { - Native.LongPtr constructor = new Native.LongPtr(); - Native.LongPtr tester = new Native.LongPtr(); - long[] accessors = new long[n]; + /** + * The function declaration of the constructor. + * @throws Z3Exception + * @throws Z3Exception on error + **/ + public FuncDecl ConstructorDecl() throws Z3Exception + { + Native.LongPtr constructor = new Native.LongPtr(); + Native.LongPtr tester = new Native.LongPtr(); + long[] accessors = new long[n]; Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors); return new FuncDecl(getContext(), constructor.value); - } + } - /** - * The function declaration of the tester. - * @throws Z3Exception - * @throws Z3Exception on error - **/ - public FuncDecl getTesterDecl() throws Z3Exception - { - Native.LongPtr constructor = new Native.LongPtr(); + /** + * The function declaration of the tester. + * @throws Z3Exception + * @throws Z3Exception on error + **/ + public FuncDecl getTesterDecl() throws Z3Exception + { + Native.LongPtr constructor = new Native.LongPtr(); Native.LongPtr tester = new Native.LongPtr(); long[] accessors = new long[n]; Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors); return new FuncDecl(getContext(), tester.value); - } + } - /** - * The function declarations of the accessors - * @throws Z3Exception - * @throws Z3Exception on error - **/ - public FuncDecl[] getAccessorDecls() throws Z3Exception - { - Native.LongPtr constructor = new Native.LongPtr(); + /** + * The function declarations of the accessors + * @throws Z3Exception + * @throws Z3Exception on error + **/ + public FuncDecl[] getAccessorDecls() throws Z3Exception + { + Native.LongPtr constructor = new Native.LongPtr(); Native.LongPtr tester = new Native.LongPtr(); long[] accessors = new long[n]; Native.queryConstructor(getContext().nCtx(), getNativeObject(), n, constructor, tester, accessors); @@ -76,40 +76,40 @@ public class Constructor extends Z3Object for (int i = 0; i < n; i++) t[i] = new FuncDecl(getContext(), accessors[i]); return t; - } + } - /** - * Destructor. - * @throws Z3Exception on error - **/ - protected void finalize() throws Z3Exception - { - Native.delConstructor(getContext().nCtx(), getNativeObject()); - } + /** + * Destructor. + * @throws Z3Exception on error + **/ + protected void finalize() throws Z3Exception + { + Native.delConstructor(getContext().nCtx(), getNativeObject()); + } - private int n = 0; + private int n = 0; - Constructor(Context ctx, Symbol name, Symbol recognizer, - Symbol[] fieldNames, Sort[] sorts, int[] sortRefs) - throws Z3Exception - { - super(ctx); + Constructor(Context ctx, Symbol name, Symbol recognizer, + Symbol[] fieldNames, Sort[] sorts, int[] sortRefs) + throws Z3Exception + { + super(ctx); - n = AST.arrayLength(fieldNames); + n = AST.arrayLength(fieldNames); - if (n != AST.arrayLength(sorts)) - throw new Z3Exception( - "Number of field names does not match number of sorts"); - if (sortRefs != null && sortRefs.length != n) - throw new Z3Exception( - "Number of field names does not match number of sort refs"); + if (n != AST.arrayLength(sorts)) + throw new Z3Exception( + "Number of field names does not match number of sorts"); + if (sortRefs != null && sortRefs.length != n) + throw new Z3Exception( + "Number of field names does not match number of sort refs"); - if (sortRefs == null) - sortRefs = new int[n]; + if (sortRefs == null) + sortRefs = new int[n]; - setNativeObject(Native.mkConstructor(ctx.nCtx(), name.getNativeObject(), - recognizer.getNativeObject(), n, Symbol.arrayToNative(fieldNames), - Sort.arrayToNative(sorts), sortRefs)); + setNativeObject(Native.mkConstructor(ctx.nCtx(), name.getNativeObject(), + recognizer.getNativeObject(), n, Symbol.arrayToNative(fieldNames), + Sort.arrayToNative(sorts), sortRefs)); - } + } } diff --git a/src/api/java/ConstructorList.java b/src/api/java/ConstructorList.java index b38678b8a..0cff4cfa4 100644 --- a/src/api/java/ConstructorList.java +++ b/src/api/java/ConstructorList.java @@ -22,26 +22,26 @@ package com.microsoft.z3; **/ public class ConstructorList extends Z3Object { - /** - * Destructor. - * @throws Z3Exception on error - **/ - protected void finalize() throws Z3Exception - { - Native.delConstructorList(getContext().nCtx(), getNativeObject()); - } + /** + * Destructor. + * @throws Z3Exception on error + **/ + protected void finalize() throws Z3Exception + { + Native.delConstructorList(getContext().nCtx(), getNativeObject()); + } - ConstructorList(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + ConstructorList(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } - ConstructorList(Context ctx, Constructor[] constructors) throws Z3Exception - { - super(ctx); + ConstructorList(Context ctx, Constructor[] constructors) throws Z3Exception + { + super(ctx); - setNativeObject(Native.mkConstructorList(getContext().nCtx(), - (int) constructors.length, - Constructor.arrayToNative(constructors))); - } + setNativeObject(Native.mkConstructorList(getContext().nCtx(), + (int) constructors.length, + Constructor.arrayToNative(constructors))); + } } diff --git a/src/api/java/Context.java b/src/api/java/Context.java index 294826f55..42fd0f7e1 100644 --- a/src/api/java/Context.java +++ b/src/api/java/Context.java @@ -261,12 +261,12 @@ public class Context extends IDisposable /** * Create a datatype constructor. - * @param name constructor name - * @param recognizer name of recognizer function. - * @param fieldNames names of the constructor fields. - * @param sorts field sorts, 0 if the field sort refers to a recursive sort. - * @param sortRefs reference to datatype sort that is an argument to the - * constructor; if the corresponding sort reference is 0, then the value in sort_refs should be + * @param name constructor name + * @param recognizer name of recognizer function. + * @param fieldNames names of the constructor fields. + * @param sorts field sorts, 0 if the field sort refers to a recursive sort. + * @param sortRefs reference to datatype sort that is an argument to the + * constructor; if the corresponding sort reference is 0, then the value in sort_refs should be * an index referring to one of the recursive datatypes that is * declared. **/ @@ -281,11 +281,11 @@ public class Context extends IDisposable /** * Create a datatype constructor. - * @param name - * @param recognizer - * @param fieldNames - * @param sorts - * @param sortRefs + * @param name + * @param recognizer + * @param fieldNames + * @param sorts + * @param sortRefs * * @return **/ @@ -321,8 +321,8 @@ public class Context extends IDisposable /** * Create mutually recursive datatypes. - * @param names names of datatype sorts - * @param c list of constructors, one list per sort. + * @param names names of datatype sorts + * @param c list of constructors, one list per sort. **/ public DatatypeSort[] mkDatatypeSorts(Symbol[] names, Constructor[][] c) throws Z3Exception @@ -350,8 +350,8 @@ public class Context extends IDisposable /** * Create mutually recursive data-types. - * @param names - * @param c + * @param names + * @param c * * @return **/ @@ -412,7 +412,7 @@ public class Context extends IDisposable /** * Creates a fresh function declaration with a name prefixed with * {@code prefix}. - * @see mkFuncDecl(String,Sort,Sort) + * @see mkFuncDecl(String,Sort,Sort) * @see mkFuncDecl(String,Sort[],Sort) **/ public FuncDecl mkFreshFuncDecl(String prefix, Sort[] domain, Sort range) @@ -457,8 +457,8 @@ public class Context extends IDisposable /** * Creates a new bound variable. - * @param index The de-Bruijn index of the variable - * @param ty The sort of the variable + * @param index The de-Bruijn index of the variable + * @param ty The sort of the variable **/ public Expr mkBound(int index, Sort ty) throws Z3Exception { @@ -516,7 +516,7 @@ public class Context extends IDisposable /** * Creates a fresh constant from the FuncDecl {@code f}. - * @param f A decl of a 0-arity function + * @param f A decl of a 0-arity function **/ public Expr mkConst(FuncDecl f) throws Z3Exception { @@ -654,9 +654,9 @@ public class Context extends IDisposable /** * Create an expression representing an if-then-else: * {@code ite(t1, t2, t3)}. - * @param t1 An expression with Boolean sort - * @param t2 An expression - * @param t3 An expression with the same sort as {@code t2} + * @param t1 An expression with Boolean sort + * @param t2 An expression + * @param t3 An expression with the same sort as {@code t2} **/ public Expr mkITE(BoolExpr t1, Expr t2, Expr t3) throws Z3Exception { @@ -773,7 +773,7 @@ public class Context extends IDisposable /** * Create an expression representing {@code t1 mod t2}. - * Remarks: The + * Remarks: The * arguments must have int type. **/ public IntExpr mkMod(IntExpr t1, IntExpr t2) throws Z3Exception @@ -786,7 +786,7 @@ public class Context extends IDisposable /** * Create an expression representing {@code t1 rem t2}. - * Remarks: The + * Remarks: The * arguments must have int type. **/ public IntExpr mkRem(IntExpr t1, IntExpr t2) throws Z3Exception @@ -856,7 +856,7 @@ public class Context extends IDisposable /** * Coerce an integer to a real. - * Remarks: There is also a converse operation + * Remarks: There is also a converse operation * exposed. It follows the semantics prescribed by the SMT-LIB standard. * * You can take the floor of a real by creating an auxiliary integer Term @@ -873,7 +873,7 @@ public class Context extends IDisposable /** * Coerce a real to an integer. - * Remarks: The semantics of this function + * Remarks: The semantics of this function * follows the SMT-LIB standard for the function to_int. The argument must * be of real sort. **/ @@ -894,7 +894,7 @@ public class Context extends IDisposable /** * Bitwise negation. - * Remarks: The argument must have a bit-vector + * Remarks: The argument must have a bit-vector * sort. **/ public BitVecExpr mkBVNot(BitVecExpr t) throws Z3Exception @@ -906,7 +906,7 @@ public class Context extends IDisposable /** * Take conjunction of bits in a vector, return vector of length 1. * - * Remarks: The argument must have a bit-vector sort. + * Remarks: The argument must have a bit-vector sort. **/ public BitVecExpr mkBVRedAND(BitVecExpr t) throws Z3Exception { @@ -918,7 +918,7 @@ public class Context extends IDisposable /** * Take disjunction of bits in a vector, return vector of length 1. * - * Remarks: The argument must have a bit-vector sort. + * Remarks: The argument must have a bit-vector sort. **/ public BitVecExpr mkBVRedOR(BitVecExpr t) throws Z3Exception { @@ -929,7 +929,7 @@ public class Context extends IDisposable /** * Bitwise conjunction. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVAND(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -942,7 +942,7 @@ public class Context extends IDisposable /** * Bitwise disjunction. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVOR(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -955,7 +955,7 @@ public class Context extends IDisposable /** * Bitwise XOR. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVXOR(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -968,7 +968,7 @@ public class Context extends IDisposable /** * Bitwise NAND. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVNAND(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -981,7 +981,7 @@ public class Context extends IDisposable /** * Bitwise NOR. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVNOR(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -994,7 +994,7 @@ public class Context extends IDisposable /** * Bitwise XNOR. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. **/ public BitVecExpr mkBVXNOR(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1007,7 +1007,7 @@ public class Context extends IDisposable /** * Standard two's complement unary minus. - * Remarks: The arguments must have a + * Remarks: The arguments must have a * bit-vector sort. **/ public BitVecExpr mkBVNeg(BitVecExpr t) throws Z3Exception @@ -1018,7 +1018,7 @@ public class Context extends IDisposable /** * Two's complement addition. - * Remarks: The arguments must have the same + * Remarks: The arguments must have the same * bit-vector sort. **/ public BitVecExpr mkBVAdd(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1031,7 +1031,7 @@ public class Context extends IDisposable /** * Two's complement subtraction. - * Remarks: The arguments must have the same + * Remarks: The arguments must have the same * bit-vector sort. **/ public BitVecExpr mkBVSub(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1044,7 +1044,7 @@ public class Context extends IDisposable /** * Two's complement multiplication. - * Remarks: The arguments must have the + * Remarks: The arguments must have the * same bit-vector sort. **/ public BitVecExpr mkBVMul(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1057,7 +1057,7 @@ public class Context extends IDisposable /** * Unsigned division. - * Remarks: It is defined as the floor of + * Remarks: It is defined as the floor of * {@code t1/t2} if \c t2 is different from zero. If {@code t2} is * zero, then the result is undefined. The arguments must have the same * bit-vector sort. @@ -1072,7 +1072,7 @@ public class Context extends IDisposable /** * Signed division. - * Remarks: It is defined in the following way: + * Remarks: It is defined in the following way: * * - The \c floor of {@code t1/t2} if \c t2 is different from zero, and * {@code t1*t2 >= 0}. @@ -1093,7 +1093,7 @@ public class Context extends IDisposable /** * Unsigned remainder. - * Remarks: It is defined as + * Remarks: It is defined as * {@code t1 - (t1 /u t2) * t2}, where {@code /u} represents * unsigned division. If {@code t2} is zero, then the result is * undefined. The arguments must have the same bit-vector sort. @@ -1108,7 +1108,7 @@ public class Context extends IDisposable /** * Signed remainder. - * Remarks: It is defined as + * Remarks: It is defined as * {@code t1 - (t1 /s t2) * t2}, where {@code /s} represents * signed division. The most significant bit (sign) of the result is equal * to the most significant bit of \c t1. @@ -1126,7 +1126,7 @@ public class Context extends IDisposable /** * Two's complement signed remainder (sign follows divisor). - * Remarks: If + * Remarks: If * {@code t2} is zero, then the result is undefined. The arguments must * have the same bit-vector sort. **/ @@ -1140,7 +1140,7 @@ public class Context extends IDisposable /** * Unsigned less-than - * Remarks: The arguments must have the same bit-vector + * Remarks: The arguments must have the same bit-vector * sort. **/ public BoolExpr mkBVULT(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1153,7 +1153,7 @@ public class Context extends IDisposable /** * Two's complement signed less-than - * Remarks: The arguments must have the + * Remarks: The arguments must have the * same bit-vector sort. **/ public BoolExpr mkBVSLT(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1166,7 +1166,7 @@ public class Context extends IDisposable /** * Unsigned less-than or equal to. - * Remarks: The arguments must have the + * Remarks: The arguments must have the * same bit-vector sort. **/ public BoolExpr mkBVULE(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1179,7 +1179,7 @@ public class Context extends IDisposable /** * Two's complement signed less-than or equal to. - * Remarks: The arguments + * Remarks: The arguments * must have the same bit-vector sort. **/ public BoolExpr mkBVSLE(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1192,7 +1192,7 @@ public class Context extends IDisposable /** * Unsigned greater than or equal to. - * Remarks: The arguments must have the + * Remarks: The arguments must have the * same bit-vector sort. **/ public BoolExpr mkBVUGE(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1205,7 +1205,7 @@ public class Context extends IDisposable /** * Two's complement signed greater than or equal to. - * Remarks: The arguments + * Remarks: The arguments * must have the same bit-vector sort. **/ public BoolExpr mkBVSGE(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1218,7 +1218,7 @@ public class Context extends IDisposable /** * Unsigned greater-than. - * Remarks: The arguments must have the same + * Remarks: The arguments must have the same * bit-vector sort. **/ public BoolExpr mkBVUGT(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1231,7 +1231,7 @@ public class Context extends IDisposable /** * Two's complement signed greater-than. - * Remarks: The arguments must have + * Remarks: The arguments must have * the same bit-vector sort. **/ public BoolExpr mkBVSGT(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1244,7 +1244,7 @@ public class Context extends IDisposable /** * Bit-vector concatenation. - * Remarks: The arguments must have a bit-vector + * Remarks: The arguments must have a bit-vector * sort. * * @return The result is a bit-vector of size {@code n1+n2}, where @@ -1262,7 +1262,7 @@ public class Context extends IDisposable /** * Bit-vector extraction. - * Remarks: Extract the bits {@code high} + * Remarks: Extract the bits {@code high} * down to {@code low} from a bitvector of size {@code m} to * yield a new bitvector of size {@code n}, where * {@code n = high - low + 1}. The argument {@code t} must @@ -1278,7 +1278,7 @@ public class Context extends IDisposable /** * Bit-vector sign extension. - * Remarks: Sign-extends the given bit-vector to + * Remarks: Sign-extends the given bit-vector to * the (signed) equivalent bitvector of size {@code m+i}, where \c m is * the size of the given bit-vector. The argument {@code t} must * have a bit-vector sort. @@ -1292,7 +1292,7 @@ public class Context extends IDisposable /** * Bit-vector zero extension. - * Remarks: Extend the given bit-vector with + * Remarks: Extend the given bit-vector with * zeros to the (unsigned) equivalent bitvector of size {@code m+i}, * where \c m is the size of the given bit-vector. The argument {@code t} * must have a bit-vector sort. @@ -1306,7 +1306,7 @@ public class Context extends IDisposable /** * Bit-vector repetition. - * Remarks: The argument {@code t} must + * Remarks: The argument {@code t} must * have a bit-vector sort. **/ public BitVecExpr mkRepeat(int i, BitVecExpr t) throws Z3Exception @@ -1318,7 +1318,7 @@ public class Context extends IDisposable /** * Shift left. - * Remarks: It is equivalent to multiplication by + * Remarks: It is equivalent to multiplication by * {@code 2^x} where \c x is the value of {@code t2}. * * NB. The semantics of shift operations varies between environments. This @@ -1337,7 +1337,7 @@ public class Context extends IDisposable /** * Logical shift right - * Remarks: It is equivalent to unsigned division by + * Remarks: It is equivalent to unsigned division by * {@code 2^x} where \c x is the value of {@code t2}. * * NB. The semantics of shift operations varies between environments. This @@ -1356,7 +1356,7 @@ public class Context extends IDisposable /** * Arithmetic shift right - * Remarks: It is like logical shift right except + * Remarks: It is like logical shift right except * that the most significant bits of the result always copy the most * significant bit of the second argument. * @@ -1376,7 +1376,7 @@ public class Context extends IDisposable /** * Rotate Left. - * Remarks: Rotate bits of \c t to the left \c i times. The + * Remarks: Rotate bits of \c t to the left \c i times. The * argument {@code t} must have a bit-vector sort. **/ public BitVecExpr mkBVRotateLeft(int i, BitVecExpr t) throws Z3Exception @@ -1388,7 +1388,7 @@ public class Context extends IDisposable /** * Rotate Right. - * Remarks: Rotate bits of \c t to the right \c i times. The + * Remarks: Rotate bits of \c t to the right \c i times. The * argument {@code t} must have a bit-vector sort. **/ public BitVecExpr mkBVRotateRight(int i, BitVecExpr t) throws Z3Exception @@ -1400,7 +1400,7 @@ public class Context extends IDisposable /** * Rotate Left. - * Remarks: Rotate bits of {@code t1} to the left + * Remarks: Rotate bits of {@code t1} to the left * {@code t2} times. The arguments must have the same bit-vector * sort. **/ @@ -1415,7 +1415,7 @@ public class Context extends IDisposable /** * Rotate Right. - * Remarks: Rotate bits of {@code t1} to the + * Remarks: Rotate bits of {@code t1} to the * right{@code t2} times. The arguments must have the same * bit-vector sort. **/ @@ -1431,7 +1431,7 @@ public class Context extends IDisposable /** * Create an {@code n} bit bit-vector from the integer argument * {@code t}. - * Remarks: NB. This function is essentially treated + * Remarks: NB. This function is essentially treated * as uninterpreted. So you cannot expect Z3 to precisely reflect the * semantics of this function when solving constraints with this function. * @@ -1468,7 +1468,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise addition does not * overflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVAddNoOverflow(BitVecExpr t1, BitVecExpr t2, boolean isSigned) throws Z3Exception @@ -1483,7 +1483,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise addition does not * underflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVAddNoUnderflow(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1497,7 +1497,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise subtraction does not * overflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVSubNoOverflow(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1511,7 +1511,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise subtraction does not * underflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVSubNoUnderflow(BitVecExpr t1, BitVecExpr t2, boolean isSigned) throws Z3Exception @@ -1526,7 +1526,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise signed division does not * overflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVSDivNoOverflow(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1540,7 +1540,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise negation does not * overflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVNegNoOverflow(BitVecExpr t) throws Z3Exception { @@ -1552,7 +1552,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise multiplication does not * overflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVMulNoOverflow(BitVecExpr t1, BitVecExpr t2, boolean isSigned) throws Z3Exception @@ -1567,7 +1567,7 @@ public class Context extends IDisposable /** * Create a predicate that checks that the bit-wise multiplication does not * underflow. - * Remarks: The arguments must be of bit-vector sort. + * Remarks: The arguments must be of bit-vector sort. **/ public BoolExpr mkBVMulNoUnderflow(BitVecExpr t1, BitVecExpr t2) throws Z3Exception @@ -1598,15 +1598,15 @@ public class Context extends IDisposable /** * Array read. - * Remarks: The argument {@code a} is the array and + * Remarks: The argument {@code a} is the array and * {@code i} is the index of the array that gets read. * * The node {@code a} must have an array sort * {@code [domain -> range]}, and {@code i} must have the sort * {@code domain}. The sort of the result is {@code range}. * - * @see mkArraySort - * @see mkStore + * @see mkArraySort + * @see mkStore **/ public Expr mkSelect(ArrayExpr a, Expr i) throws Z3Exception @@ -1621,7 +1621,7 @@ public class Context extends IDisposable /** * Array update. - * Remarks: The node {@code a} must have an array sort + * Remarks: The node {@code a} must have an array sort * {@code [domain -> range]}, {@code i} must have sort * {@code domain}, {@code v} must have sort range. The sort of the * result is {@code [domain -> range]}. The semantics of this function @@ -1631,8 +1631,8 @@ public class Context extends IDisposable * {@code select}) on all indices except for {@code i}, where it * maps to {@code v} (and the {@code select} of {@code a} * with respect to {@code i} may be a different value). - * @see mkArraySort - * @see mkSelect + * @see mkArraySort + * @see mkSelect **/ public ArrayExpr mkStore(ArrayExpr a, Expr i, Expr v) throws Z3Exception @@ -1646,11 +1646,11 @@ public class Context extends IDisposable /** * Create a constant array. - * Remarks: The resulting term is an array, such + * Remarks: The resulting term is an array, such * that a {@code select} on an arbitrary index produces the value * {@code v}. - * @see mkArraySort - * @see mkSelect + * @see mkArraySort + * @see mkSelect * **/ public ArrayExpr mkConstArray(Sort domain, Expr v) throws Z3Exception @@ -1663,15 +1663,15 @@ public class Context extends IDisposable /** * Maps f on the argument arrays. - * Remarks: Eeach element of + * Remarks: Eeach element of * {@code args} must be of an array sort * {@code [domain_i -> range_i]}. The function declaration * {@code f} must have type {@code range_1 .. range_n -> range}. * {@code v} must have sort range. The sort of the result is * {@code [domain_i -> range]}. - * @see mkArraySort - * @see mkSelect - * @see mkStore + * @see mkArraySort + * @see mkSelect + * @see mkStore **/ public ArrayExpr mkMap(FuncDecl f, ArrayExpr... args) throws Z3Exception @@ -1685,7 +1685,7 @@ public class Context extends IDisposable /** * Access the array default value. - * Remarks: Produces the default range + * Remarks: Produces the default range * value, for arrays that can be represented as finite maps with a default * range value. **/ @@ -1826,10 +1826,10 @@ public class Context extends IDisposable /** * Create a Term of a given sort. - * @param v A string representing the term value in decimal notation. If the given sort is a real, then the + * @param v A string representing the term value in decimal notation. If the given sort is a real, then the * Term can be a rational, that is, a string of the form * {@code [num]* / [num]*}. - * @param ty The sort of the + * @param ty The sort of the * numeral. In the current implementation, the given sort can be an int, * real, or bit-vectors of arbitrary size. * @@ -1847,8 +1847,8 @@ public class Context extends IDisposable * numerals that fit in a machine integer. It is slightly faster than * {@code MakeNumeral} since it is not necessary to parse a string. * - * @param v Value of the numeral - * @param ty Sort of the numeral + * @param v Value of the numeral + * @param ty Sort of the numeral * * @return A Term with value {@code v} and type {@code ty} **/ @@ -1863,8 +1863,8 @@ public class Context extends IDisposable * numerals that fit in a machine integer. It is slightly faster than * {@code MakeNumeral} since it is not necessary to parse a string. * - * @param v Value of the numeral - * @param ty Sort of the numeral + * @param v Value of the numeral + * @param ty Sort of the numeral * * @return A Term with value {@code v} and type {@code ty} **/ @@ -1877,12 +1877,12 @@ public class Context extends IDisposable /** * Create a real from a fraction. - * @param num numerator of rational. - * @param den denominator of rational. + * @param num numerator of rational. + * @param den denominator of rational. * * @return A Term with value {@code num}/{@code den} * and sort Real - * @see mkNumeral(String,Sort) + * @see mkNumeral(String,Sort) **/ public RatNum mkReal(int num, int den) throws Z3Exception { @@ -1894,7 +1894,7 @@ public class Context extends IDisposable /** * Create a real numeral. - * @param v A string representing the Term value in decimal notation. + * @param v A string representing the Term value in decimal notation. * * @return A Term with value {@code v} and sort Real **/ @@ -1907,7 +1907,7 @@ public class Context extends IDisposable /** * Create a real numeral. - * @param v value of the numeral. + * @param v value of the numeral. * * @return A Term with value {@code v} and sort Real **/ @@ -1920,7 +1920,7 @@ public class Context extends IDisposable /** * Create a real numeral. - * @param v value of the numeral. + * @param v value of the numeral. * * @return A Term with value {@code v} and sort Real **/ @@ -1933,7 +1933,7 @@ public class Context extends IDisposable /** * Create an integer numeral. - * @param v A string representing the Term value in decimal notation. + * @param v A string representing the Term value in decimal notation. **/ public IntNum mkInt(String v) throws Z3Exception { @@ -1944,7 +1944,7 @@ public class Context extends IDisposable /** * Create an integer numeral. - * @param v value of the numeral. + * @param v value of the numeral. * * @return A Term with value {@code v} and sort Integer **/ @@ -1957,7 +1957,7 @@ public class Context extends IDisposable /** * Create an integer numeral. - * @param v value of the numeral. + * @param v value of the numeral. * * @return A Term with value {@code v} and sort Integer **/ @@ -1970,8 +1970,8 @@ public class Context extends IDisposable /** * Create a bit-vector numeral. - * @param v A string representing the value in decimal notation. - * @param size the size of the bit-vector + * @param v A string representing the value in decimal notation. + * @param size the size of the bit-vector **/ public BitVecNum mkBV(String v, int size) throws Z3Exception { @@ -1980,8 +1980,8 @@ public class Context extends IDisposable /** * Create a bit-vector numeral. - * @param v value of the numeral. - * @param size the size of the bit-vector + * @param v value of the numeral. + * @param size the size of the bit-vector **/ public BitVecNum mkBV(int v, int size) throws Z3Exception { @@ -1990,8 +1990,8 @@ public class Context extends IDisposable /** * Create a bit-vector numeral. - * @param v value of the numeral. * - * @param size the size of the bit-vector + * @param v value of the numeral. * + * @param size the size of the bit-vector **/ public BitVecNum mkBV(long v, int size) throws Z3Exception { @@ -2000,16 +2000,16 @@ public class Context extends IDisposable /** * Create a universal Quantifier. - * @param sorts the sorts of the bound variables. - * @param names names of the bound variables - * @param body the body of the quantifier. - * @param weight quantifiers are associated with weights indicating the importance of using the quantifier during instantiation. By default, pass the weight 0. + * @param sorts the sorts of the bound variables. + * @param names names of the bound variables + * @param body the body of the quantifier. + * @param weight quantifiers are associated with weights indicating the importance of using the quantifier during instantiation. By default, pass the weight 0. * @param patterns array containing the patterns created using {@code MkPattern}. - * @param noPatterns array containing the anti-patterns created using {@code MkPattern}. - * @param quantifierID optional symbol to track quantifier. - * @param skolemID optional symbol to track skolem constants. - * - * Remarks: Creates a forall formula, where + * @param noPatterns array containing the anti-patterns created using {@code MkPattern}. + * @param quantifierID optional symbol to track quantifier. + * @param skolemID optional symbol to track skolem constants. + * + * Remarks: Creates a forall formula, where * {@code weight"/> is the weight, to every subgoal produced by 1) - res += "["; - Expr[] args = e.getArgs(); - for (int i = 0; i < n; i++) - { - if (i != 0) - res += ", "; - res += args[i]; - } - if (n > 1) - res += "]"; - res += " -> " + e.getValue() + ", "; - } - res += "else -> " + getElse(); - res += "]"; - return res; - } catch (Z3Exception e) - { - return new String("Z3Exception: " + e.getMessage()); - } - } + /** + * A string representation of the function interpretation. + **/ + public String toString() + { + try + { + String res = ""; + res += "["; + for (Entry e : getEntries()) + { + int n = e.getNumArgs(); + if (n > 1) + res += "["; + Expr[] args = e.getArgs(); + for (int i = 0; i < n; i++) + { + if (i != 0) + res += ", "; + res += args[i]; + } + if (n > 1) + res += "]"; + res += " -> " + e.getValue() + ", "; + } + res += "else -> " + getElse(); + res += "]"; + return res; + } catch (Z3Exception e) + { + return new String("Z3Exception: " + e.getMessage()); + } + } - FuncInterp(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + FuncInterp(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } - void incRef(long o) throws Z3Exception - { - getContext().funcInterp_DRQ().incAndClear(getContext(), o); - super.incRef(o); - } + void incRef(long o) throws Z3Exception + { + getContext().funcInterp_DRQ().incAndClear(getContext(), o); + super.incRef(o); + } - void decRef(long o) throws Z3Exception - { - getContext().funcInterp_DRQ().add(o); - super.decRef(o); - } + void decRef(long o) throws Z3Exception + { + getContext().funcInterp_DRQ().add(o); + super.decRef(o); + } } diff --git a/src/api/java/FuncInterpDecRefQueue.java b/src/api/java/FuncInterpDecRefQueue.java index 8bdad4ad5..56660d2f9 100644 --- a/src/api/java/FuncInterpDecRefQueue.java +++ b/src/api/java/FuncInterpDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class FuncInterpDecRefQueue extends IDecRefQueue { + public FuncInterpDecRefQueue() + { + super(); + } + + public FuncInterpDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/FuncInterpEntryDecRefQueue.java b/src/api/java/FuncInterpEntryDecRefQueue.java index 494c2695c..406c0b33a 100644 --- a/src/api/java/FuncInterpEntryDecRefQueue.java +++ b/src/api/java/FuncInterpEntryDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class FuncInterpEntryDecRefQueue extends IDecRefQueue { + public FuncInterpEntryDecRefQueue() + { + super(); + } + + public FuncInterpEntryDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/Global.java b/src/api/java/Global.java index b31c4a7ae..44fb4cac7 100644 --- a/src/api/java/Global.java +++ b/src/api/java/Global.java @@ -44,7 +44,7 @@ public final class Global **/ public static void setParameter(String id, String value) { - Native.globalParamSet(id, value); + Native.globalParamSet(id, value); } /** @@ -67,10 +67,10 @@ public final class Global * Restore the value of all global (and module) parameters. * Remarks: * This command will not affect already created objects (such as tactics and solvers) - * @see setParameter + * @see setParameter **/ public static void resetParameters() { - Native.globalParamResetAll(); + Native.globalParamResetAll(); } } diff --git a/src/api/java/Goal.java b/src/api/java/Goal.java index 5a9221b63..b6897c517 100644 --- a/src/api/java/Goal.java +++ b/src/api/java/Goal.java @@ -27,7 +27,7 @@ public class Goal extends Z3Object { /** * The precision of the goal. - * Remarks: Goals can be transformed using over + * Remarks: Goals can be transformed using over * and under approximations. An under approximation is applied when the * objective is to find a model for a given goal. An over approximation is * applied when the objective is to find a proof for a given goal. @@ -97,7 +97,7 @@ public class Goal extends Z3Object /** * The depth of the goal. - * Remarks: This tracks how many transformations + * Remarks: This tracks how many transformations * were applied to it. **/ public int getDepth() throws Z3Exception @@ -176,7 +176,7 @@ public class Goal extends Z3Object /** * Simplifies the goal. - * Remarks: Essentially invokes the `simplify' tactic + * Remarks: Essentially invokes the `simplify' tactic * on the goal. **/ public Goal simplify() throws Z3Exception @@ -192,7 +192,7 @@ public class Goal extends Z3Object /** * Simplifies the goal. - * Remarks: Essentially invokes the `simplify' tactic + * Remarks: Essentially invokes the `simplify' tactic * on the goal. **/ public Goal simplify(Params p) throws Z3Exception diff --git a/src/api/java/GoalDecRefQueue.java b/src/api/java/GoalDecRefQueue.java index 45992170f..dd9d69414 100644 --- a/src/api/java/GoalDecRefQueue.java +++ b/src/api/java/GoalDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class GoalDecRefQueue extends IDecRefQueue { + public GoalDecRefQueue() + { + super(); + } + + public GoalDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/IDecRefQueue.java b/src/api/java/IDecRefQueue.java index 2190f8e4d..e8cab3477 100644 --- a/src/api/java/IDecRefQueue.java +++ b/src/api/java/IDecRefQueue.java @@ -21,39 +21,49 @@ import java.util.LinkedList; abstract class IDecRefQueue { - protected Object m_lock = new Object(); - protected LinkedList m_queue = new LinkedList(); - protected final int m_move_limit = 1024; + protected Object m_lock = new Object(); + protected LinkedList m_queue = new LinkedList(); + protected int m_move_limit; - protected abstract void incRef(Context ctx, long obj); + public IDecRefQueue() + { + m_move_limit = 1024; + } - protected abstract void decRef(Context ctx, long obj); + public IDecRefQueue(int move_limit) + { + m_move_limit = move_limit; + } - protected void incAndClear(Context ctx, long o) - { - incRef(ctx, o); - if (m_queue.size() >= m_move_limit) - clear(ctx); - } + protected abstract void incRef(Context ctx, long obj); - protected void add(long o) - { - if (o == 0) - return; + protected abstract void decRef(Context ctx, long obj); - synchronized (m_lock) - { - m_queue.add(o); - } - } + protected void incAndClear(Context ctx, long o) + { + incRef(ctx, o); + if (m_queue.size() >= m_move_limit) + clear(ctx); + } - protected void clear(Context ctx) - { - synchronized (m_lock) - { - for (Long o : m_queue) - decRef(ctx, o); - m_queue.clear(); - } - } + protected void add(long o) + { + if (o == 0) + return; + + synchronized (m_lock) + { + m_queue.add(o); + } + } + + protected void clear(Context ctx) + { + synchronized (m_lock) + { + for (Long o : m_queue) + decRef(ctx, o); + m_queue.clear(); + } + } } diff --git a/src/api/java/IDisposable.java b/src/api/java/IDisposable.java index 9092213e3..dddfa5824 100644 --- a/src/api/java/IDisposable.java +++ b/src/api/java/IDisposable.java @@ -21,7 +21,7 @@ package com.microsoft.z3; public class IDisposable { - public void dispose() throws Z3Exception - { - } + public void dispose() throws Z3Exception + { + } } diff --git a/src/api/java/IntExpr.java b/src/api/java/IntExpr.java index 642a58a54..a424cd51e 100644 --- a/src/api/java/IntExpr.java +++ b/src/api/java/IntExpr.java @@ -22,12 +22,12 @@ package com.microsoft.z3; **/ public class IntExpr extends ArithExpr { - /** - * Constructor for IntExpr - * @throws Z3Exception on error - **/ - IntExpr(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + /** + * Constructor for IntExpr + * @throws Z3Exception on error + **/ + IntExpr(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } } diff --git a/src/api/java/IntSort.java b/src/api/java/IntSort.java index bcfc730c4..0b1047718 100644 --- a/src/api/java/IntSort.java +++ b/src/api/java/IntSort.java @@ -22,13 +22,13 @@ package com.microsoft.z3; **/ public class IntSort extends ArithSort { - IntSort(Context ctx, long obj) throws Z3Exception - { - super(ctx, obj); - } + IntSort(Context ctx, long obj) throws Z3Exception + { + super(ctx, obj); + } - IntSort(Context ctx) throws Z3Exception - { - super(ctx, Native.mkIntSort(ctx.nCtx())); - } + IntSort(Context ctx) throws Z3Exception + { + super(ctx, Native.mkIntSort(ctx.nCtx())); + } } diff --git a/src/api/java/IntSymbol.java b/src/api/java/IntSymbol.java index a677c9102..01f75e0a4 100644 --- a/src/api/java/IntSymbol.java +++ b/src/api/java/IntSymbol.java @@ -26,7 +26,7 @@ public class IntSymbol extends Symbol { /** * The int value of the symbol. - * Remarks: Throws an exception if the symbol + * Remarks: Throws an exception if the symbol * is not of int kind. **/ public int getInt() throws Z3Exception diff --git a/src/api/java/InterpolationContext.java b/src/api/java/InterpolationContext.java index c1590e07f..4c20ec6ae 100644 --- a/src/api/java/InterpolationContext.java +++ b/src/api/java/InterpolationContext.java @@ -43,8 +43,8 @@ public class InterpolationContext extends Context * Constructor. * * - * Remarks: - * @see Context#Context + * Remarks: + * @see Context#Context **/ public InterpolationContext(Map settings) throws Z3Exception { diff --git a/src/api/java/Log.java b/src/api/java/Log.java index 3e8f0050b..ac0ebfb7f 100644 --- a/src/api/java/Log.java +++ b/src/api/java/Log.java @@ -19,7 +19,7 @@ package com.microsoft.z3; /** * Interaction logging for Z3. - * Remarks: Note that this is a global, static log + * Remarks: Note that this is a global, static log * and if multiple Context objects are created, it logs the interaction with all * of them. **/ @@ -29,7 +29,7 @@ public final class Log /** * Open an interaction log file. - * @param filename the name of the file to open + * @param filename the name of the file to open * * @return True if opening the log file succeeds, false otherwise. **/ diff --git a/src/api/java/Model.java b/src/api/java/Model.java index 70f0e91c5..9392aacb6 100644 --- a/src/api/java/Model.java +++ b/src/api/java/Model.java @@ -27,7 +27,7 @@ public class Model extends Z3Object /** * Retrieves the interpretation (the assignment) of {@code a} in * the model. - * @param a A Constant + * @param a A Constant * * @return An expression if the constant has an interpretation in the model, * null otherwise. @@ -42,7 +42,7 @@ public class Model extends Z3Object /** * Retrieves the interpretation (the assignment) of {@code f} in * the model. - * @param f A function declaration of zero arity + * @param f A function declaration of zero arity * * @return An expression if the function has an interpretation in the model, * null otherwise. @@ -68,7 +68,7 @@ public class Model extends Z3Object /** * Retrieves the interpretation (the assignment) of a non-constant {@code f} in the model. - * @param f A function declaration of non-zero arity + * @param f A function declaration of non-zero arity * * @return A FunctionInterpretation if the function has an interpretation in * the model, null otherwise. @@ -201,7 +201,7 @@ public class Model extends Z3Object * Remarks: This function may fail if {@code t} contains * quantifiers, is partial (MODEL_PARTIAL enabled), or if {@code t} is not well-sorted. In this case a * {@code ModelEvaluationFailedException} is thrown. - * @param t An expression {@code completion} When this flag + * @param t An expression {@code completion} When this flag * is enabled, a model value will be assigned to any constant or function * that does not have an interpretation in the model. * @@ -243,8 +243,8 @@ public class Model extends Z3Object * in a formula. The interpretation for a sort is a finite set of distinct * values. We say this finite set is the "universe" of the sort. * - * @see getNumSorts - * @see getSortUniverse + * @see getNumSorts + * @see getSortUniverse * * @throws Z3Exception **/ @@ -262,7 +262,7 @@ public class Model extends Z3Object /** * The finite set of distinct values that represent the interpretation for * sort {@code s}. - * @param s An uninterpreted sort + * @param s An uninterpreted sort * * @return An array of expressions, where each is an element of the universe * of {@code s} diff --git a/src/api/java/ModelDecRefQueue.java b/src/api/java/ModelDecRefQueue.java index 1200b29be..c954a1fa8 100644 --- a/src/api/java/ModelDecRefQueue.java +++ b/src/api/java/ModelDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ModelDecRefQueue extends IDecRefQueue { + public ModelDecRefQueue() + { + super(); + } + + public ModelDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/ParamDescrsDecRefQueue.java b/src/api/java/ParamDescrsDecRefQueue.java index a29565e8e..95a92475e 100644 --- a/src/api/java/ParamDescrsDecRefQueue.java +++ b/src/api/java/ParamDescrsDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ParamDescrsDecRefQueue extends IDecRefQueue { + public ParamDescrsDecRefQueue() + { + super(); + } + + public ParamDescrsDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/ParamsDecRefQueue.java b/src/api/java/ParamsDecRefQueue.java index 7d71feb8f..7b9f34c00 100644 --- a/src/api/java/ParamsDecRefQueue.java +++ b/src/api/java/ParamsDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ParamsDecRefQueue extends IDecRefQueue { + public ParamsDecRefQueue() + { + super(); + } + + public ParamsDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/ProbeDecRefQueue.java b/src/api/java/ProbeDecRefQueue.java index fda5d37b4..e271bd949 100644 --- a/src/api/java/ProbeDecRefQueue.java +++ b/src/api/java/ProbeDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class ProbeDecRefQueue extends IDecRefQueue { + public ProbeDecRefQueue() + { + super(); + } + + public ProbeDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/Quantifier.java b/src/api/java/Quantifier.java index 58245d723..3ea2b2eaf 100644 --- a/src/api/java/Quantifier.java +++ b/src/api/java/Quantifier.java @@ -171,13 +171,13 @@ public class Quantifier extends BoolExpr } else { setNativeObject(Native.mkQuantifierEx(ctx.nCtx(), - (isForall) ? true : false, weight, AST.getNativeObject(quantifierID), - AST.getNativeObject(skolemID), - AST.arrayLength(patterns), AST.arrayToNative(patterns), - AST.arrayLength(noPatterns), AST.arrayToNative(noPatterns), - AST.arrayLength(sorts), AST.arrayToNative(sorts), - Symbol.arrayToNative(names), - body.getNativeObject())); + (isForall) ? true : false, weight, AST.getNativeObject(quantifierID), + AST.getNativeObject(skolemID), + AST.arrayLength(patterns), AST.arrayToNative(patterns), + AST.arrayLength(noPatterns), AST.arrayToNative(noPatterns), + AST.arrayLength(sorts), AST.arrayToNative(sorts), + Symbol.arrayToNative(names), + body.getNativeObject())); } } diff --git a/src/api/java/RatNum.java b/src/api/java/RatNum.java index 2e92a9429..278aba65e 100644 --- a/src/api/java/RatNum.java +++ b/src/api/java/RatNum.java @@ -62,7 +62,7 @@ public class RatNum extends RealExpr /** * Returns a string representation in decimal notation. - * Remarks: The result + * Remarks: The result * has at most {@code precision} decimal places. **/ public String toDecimalString(int precision) throws Z3Exception diff --git a/src/api/java/Solver.java b/src/api/java/Solver.java index b9c9ebca6..3e66a29ac 100644 --- a/src/api/java/Solver.java +++ b/src/api/java/Solver.java @@ -57,8 +57,8 @@ public class Solver extends Z3Object /** * The current number of backtracking points (scopes). - * @see pop - * @see push + * @see pop + * @see push **/ public int getNumScopes() throws Z3Exception { @@ -68,7 +68,7 @@ public class Solver extends Z3Object /** * Creates a backtracking point. - * @see pop + * @see pop **/ public void push() throws Z3Exception { @@ -77,7 +77,7 @@ public class Solver extends Z3Object /** * Backtracks one backtracking point. - * Remarks: . + * Remarks: . **/ public void pop() throws Z3Exception { @@ -86,10 +86,10 @@ public class Solver extends Z3Object /** * Backtracks {@code n} backtracking points. - * Remarks: Note that + * Remarks: Note that * an exception is thrown if {@code n} is not smaller than * {@code NumScopes} - * @see push + * @see push **/ public void pop(int n) throws Z3Exception { @@ -98,7 +98,7 @@ public class Solver extends Z3Object /** * Resets the Solver. - * Remarks: This removes all assertions from the + * Remarks: This removes all assertions from the * solver. **/ public void reset() throws Z3Exception @@ -121,20 +121,20 @@ public class Solver extends Z3Object } } - // / - // / Assert multiple constraints into the solver, and track them (in the - // unsat) core - // / using the Boolean constants in ps. - // / - // / Remarks: - // / This API is an alternative to with assumptions for - // extracting unsat cores. - // / Both APIs can be used in the same solver. The unsat core will contain a - // combination - // / of the Boolean variables provided using - // and the Boolean literals - // / provided using with assumptions. - // / + /** + * Assert multiple constraints into the solver, and track them (in the + * unsat) core + * using the Boolean constants in ps. + * + * Remarks: + * This API is an alternative to with assumptions for + * extracting unsat cores. + * Both APIs can be used in the same solver. The unsat core will contain a + * combination + * of the Boolean variables provided using + * and the Boolean literals + * provided using with assumptions. + **/ public void assertAndTrack(BoolExpr[] constraints, BoolExpr[] ps) throws Z3Exception { getContext().checkContextMatch(constraints); @@ -147,19 +147,19 @@ public class Solver extends Z3Object constraints[i].getNativeObject(), ps[i].getNativeObject()); } - // / - // / Assert a constraint into the solver, and track it (in the unsat) core - // / using the Boolean constant p. - // / - // / Remarks: - // / This API is an alternative to with assumptions for - // extracting unsat cores. - // / Both APIs can be used in the same solver. The unsat core will contain a - // combination - // / of the Boolean variables provided using - // and the Boolean literals - // / provided using with assumptions. - // / + /** + * Assert a constraint into the solver, and track it (in the unsat) core + * using the Boolean constant p. + * + * Remarks: + * This API is an alternative to with assumptions for + * extracting unsat cores. + * Both APIs can be used in the same solver. The unsat core will contain a + * combination + * of the Boolean variables provided using + * and the Boolean literals + * provided using with assumptions. + */ public void assertAndTrack(BoolExpr constraint, BoolExpr p) throws Z3Exception { getContext().checkContextMatch(constraint); @@ -200,9 +200,9 @@ public class Solver extends Z3Object /** * Checks whether the assertions in the solver are consistent or not. * Remarks: - * @see getModel - * @see getUnsatCore - * @see getProof + * @see getModel + * @see getUnsatCore + * @see getProof **/ public Status check(Expr... assumptions) throws Z3Exception { @@ -228,9 +228,9 @@ public class Solver extends Z3Object /** * Checks whether the assertions in the solver are consistent or not. * Remarks: - * @see getModel - * @see getUnsatCore - * @see getProof + * @see getModel + * @see getUnsatCore + * @see getProof **/ public Status check() throws Z3Exception { @@ -239,7 +239,7 @@ public class Solver extends Z3Object /** * The model of the last {@code Check}. - * Remarks: The result is + * Remarks: The result is * {@code null} if {@code Check} was not invoked before, if its * results was not {@code SATISFIABLE}, or if model production is not * enabled. @@ -257,7 +257,7 @@ public class Solver extends Z3Object /** * The proof of the last {@code Check}. - * Remarks: The result is + * Remarks: The result is * {@code null} if {@code Check} was not invoked before, if its * results was not {@code UNSATISFIABLE}, or if proof production is * disabled. @@ -275,7 +275,7 @@ public class Solver extends Z3Object /** * The unsat core of the last {@code Check}. - * Remarks: The unsat core + * Remarks: The unsat core * is a subset of {@code Assertions} The result is empty if * {@code Check} was not invoked before, if its results was not * {@code UNSATISFIABLE}, or if core production is disabled. diff --git a/src/api/java/SolverDecRefQueue.java b/src/api/java/SolverDecRefQueue.java index 993c99621..cbe5bbc3b 100644 --- a/src/api/java/SolverDecRefQueue.java +++ b/src/api/java/SolverDecRefQueue.java @@ -19,6 +19,13 @@ package com.microsoft.z3; class SolverDecRefQueue extends IDecRefQueue { + public SolverDecRefQueue() { super(); } + + public SolverDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/Sort.java b/src/api/java/Sort.java index 270abd43f..e1cbbea7c 100644 --- a/src/api/java/Sort.java +++ b/src/api/java/Sort.java @@ -29,20 +29,20 @@ public class Sort extends AST /** * Equality operator for objects of type Sort. - * @param o + * @param o * @return **/ public boolean equals(Object o) { Sort casted = null; - try { - casted = Sort.class.cast(o); - } catch (ClassCastException e) { - return false; - } + try { + casted = Sort.class.cast(o); + } catch (ClassCastException e) { + return false; + } - return this.getNativeObject() == casted.getNativeObject(); + return this.getNativeObject() == casted.getNativeObject(); } /** @@ -135,9 +135,9 @@ public class Sort extends AST case Z3_RELATION_SORT: return new RelationSort(ctx, obj); case Z3_FLOATING_POINT_SORT: - return new FPSort(ctx, obj); + return new FPSort(ctx, obj); case Z3_ROUNDING_MODE_SORT: - return new FPRMSort(ctx, obj); + return new FPRMSort(ctx, obj); default: throw new Z3Exception("Unknown sort kind"); } diff --git a/src/api/java/Statistics.java b/src/api/java/Statistics.java index 88a897d15..475352024 100644 --- a/src/api/java/Statistics.java +++ b/src/api/java/Statistics.java @@ -177,7 +177,7 @@ public class Statistics extends Z3Object /** * The value of a particular statistical counter. - * Remarks: Returns null if + * Remarks: Returns null if * the key is unknown. * * @throws Z3Exception diff --git a/src/api/java/StatisticsDecRefQueue.java b/src/api/java/StatisticsDecRefQueue.java index db3e32c86..89c66a746 100644 --- a/src/api/java/StatisticsDecRefQueue.java +++ b/src/api/java/StatisticsDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class StatisticsDecRefQueue extends IDecRefQueue { + public StatisticsDecRefQueue() + { + super(); + } + + public StatisticsDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/StringSymbol.java b/src/api/java/StringSymbol.java index 4692b0fb9..122c7765f 100644 --- a/src/api/java/StringSymbol.java +++ b/src/api/java/StringSymbol.java @@ -26,7 +26,7 @@ public class StringSymbol extends Symbol { /** * The string value of the symbol. - * Remarks: Throws an exception if the + * Remarks: Throws an exception if the * symbol is not of string kind. **/ public String getString() throws Z3Exception diff --git a/src/api/java/Tactic.java b/src/api/java/Tactic.java index 0286e786d..79f60e497 100644 --- a/src/api/java/Tactic.java +++ b/src/api/java/Tactic.java @@ -49,7 +49,7 @@ public class Tactic extends Z3Object * @throws Z3Exception **/ public ApplyResult apply(Goal g) throws Z3Exception - { + { return apply(g, null); } @@ -74,7 +74,7 @@ public class Tactic extends Z3Object /** * Creates a solver that is implemented using the given tactic. - * @see Context#mkSolver(Tactic) + * @see Context#mkSolver(Tactic) * @throws Z3Exception **/ public Solver getSolver() throws Z3Exception diff --git a/src/api/java/TacticDecRefQueue.java b/src/api/java/TacticDecRefQueue.java index 5557d03b8..026760e46 100644 --- a/src/api/java/TacticDecRefQueue.java +++ b/src/api/java/TacticDecRefQueue.java @@ -19,6 +19,16 @@ package com.microsoft.z3; class TacticDecRefQueue extends IDecRefQueue { + public TacticDecRefQueue() + { + super(); + } + + public TacticDecRefQueue(int move_limit) + { + super(move_limit); + } + protected void incRef(Context ctx, long obj) { try diff --git a/src/api/java/Version.java b/src/api/java/Version.java index 6e2fe5084..939a3ca5c 100644 --- a/src/api/java/Version.java +++ b/src/api/java/Version.java @@ -19,7 +19,7 @@ package com.microsoft.z3; /** * Version information. - * Remarks: Note that this class is static. + * Remarks: Note that this class is static. **/ public class Version { diff --git a/src/api/java/Z3Object.java b/src/api/java/Z3Object.java index 03cfcd625..9b39a3e2f 100644 --- a/src/api/java/Z3Object.java +++ b/src/api/java/Z3Object.java @@ -115,7 +115,7 @@ public class Z3Object extends IDisposable return null; long[] an = new long[a.length]; for (int i = 0; i < a.length; i++) - an[i] = (a[i] == null) ? 0 : a[i].getNativeObject(); + an[i] = (a[i] == null) ? 0 : a[i].getNativeObject(); return an; }