mirror of
https://github.com/github/codeql.git
synced 2026-03-26 17:28:29 +01:00
12 lines
269 B
Plaintext
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
|
|
|