mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
17 lines
341 B
Plaintext
17 lines
341 B
Plaintext
import python
|
|
|
|
string kind(ControlFlowNode f) {
|
|
if f.isAugLoad()
|
|
then result = "aug load"
|
|
else (
|
|
if f.isAugStore()
|
|
then result = "aug store"
|
|
else (
|
|
if f.isLoad() then result = "load" else (f.isStore() and result = "store")
|
|
)
|
|
)
|
|
}
|
|
|
|
from ControlFlowNode cfg
|
|
select cfg.getLocation().getStartLine(), cfg, kind(cfg)
|