Skip to content

Commit 1c09180

Browse files
author
BaierD
committed
Make exception thrown by CVC5 in fromIeeeBitvectorImpl() a IllegalArgumentException, as it fits better
1 parent 126e818 commit 1c09180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FloatingPointFormulaManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ protected Term fromIeeeBitvectorImpl(Term pBitvector, FloatingPointType pTargetT
420420
// This seems to only be thrown for wrong exponent and mantissa sizes (e.g. negative
421421
// numbers, size not equal to BV size etc.). We check for this beforehand, so this should
422422
// not be thrown.
423-
throw new RuntimeException(cvc5ApiException);
423+
throw new IllegalArgumentException(cvc5ApiException);
424424
}
425425
}
426426

0 commit comments

Comments
 (0)