Files
codeql/cpp/ql/test/library-tests/sideEffects/stmts/stmts.ql
2018-08-02 17:53:23 +01:00

12 lines
269 B
Plaintext

import cpp
from Stmt s, boolean pure, boolean pureExceptLocals
where if s.isPure()
then pure = true
else pure = false
and if s.mayBeGloballyImpure()
then pureExceptLocals = false
else pureExceptLocals = true
select s, pure, pureExceptLocals