Predicate inVoidContext
Holds if e
appears in a syntactic context where its value is discarded.
Import path
import Expressions.ExprHasNoEffect
predicate inVoidContext(Expr e)
Holds if e
appears in a syntactic context where its value is discarded.
import Expressions.ExprHasNoEffect
predicate inVoidContext(Expr e)