Files
codeql/cpp/ql/test/successor-tests/block/emptyblock/emptyblock01.ql
2018-08-02 17:53:23 +01:00

7 lines
247 B
Plaintext

import cpp
from Block s, int i, Stmt f, boolean succ
where s.getParentStmt().hasChild(s, i) and s.getParentStmt().hasChild(f, i + 1)
and if f = s.getASuccessor() then succ = true else succ = false
select s, i, f, count(s.getASuccessor()), succ