mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
17 lines
371 B
Plaintext
17 lines
371 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)
|