Merge pull request #12616 from aschackmull/java-csharp/redundant-sign-analysis-case

Java/C#: Remove useless disjuncts.
This commit is contained in:
Anders Schack-Mulligen
2023-03-22 13:33:46 +01:00
committed by GitHub
2 changed files with 0 additions and 8 deletions

View File

@@ -45,10 +45,6 @@ private Sign certainExprSign(Expr e) {
private predicate unknownSign(Expr e) {
not exists(certainExprSign(e)) and
(
exists(IntegerLiteral lit | lit = e and not exists(lit.getValue().toInt()))
or
exists(LongLiteral lit | lit = e and not exists(lit.getValue().toFloat()))
or
exists(CastingExpr cast, Type fromtyp |
cast = e and
fromtyp = cast.getSourceType() and