3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-30 07:49:53 +00:00

Improved memory use of the Java API. Thanks to Joerg Pfaehler for reporting this issue!

+ formatting

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2015-01-30 21:04:18 -06:00
parent 3b78509d0a
commit d7a62baef4
60 changed files with 3149 additions and 2992 deletions

View file

@ -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");
}