Skip to content

Commit

Permalink
fix String vs BigInteger in fp constr check
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietsch committed Sep 19, 2019
1 parent 78f498f commit b24bab0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,9 @@ public Sort getResultSort(final String[] indices, final Sort[] paramSorts, final
defineFunction(new FunctionSymbolFactory("fp") {
@Override
public Sort getResultSort(final String[] indices, final Sort[] paramSorts, final Sort resultSort) {
final BigInteger fpSignIndex = toNumeral(paramSorts[0].getIndices()[0]);
if (indices != null || paramSorts.length != 3 || resultSort != null
|| paramSorts[0].getName() != "BitVec" || !paramSorts[0].getIndices()[0].equals(BigInteger.ONE)
|| paramSorts[0].getName() != "BitVec" || !fpSignIndex.equals(BigInteger.ONE)
|| paramSorts[1].getName() != "BitVec" || paramSorts[2].getName() != "BitVec") {
return null;
}
Expand Down

0 comments on commit b24bab0

Please sign in to comment.