private Node tryMinimizeExprResult ( Node n ) { Node originalExpr = n . getFirstChild ( ) ; MinimizedCondition minCond = MinimizedCondition . fromConditionNode ( originalExpr ) ; MeasuredNode mNode = minCond . getMinimized ( MinimizationStyle . ALLOW_LEADING_NOT ) ; if ( mNode . isNot ( ) ) { // Remove the leading NOT in the EXPR_RESULT. replaceNode ( originalExpr , mNode . withoutNot ( ) ) ; } else { replaceNode ( originalExpr , mNode ) ; } return n ; }
Try to remove leading NOTs from EXPR_RESULTS .