assert.prop
来自「C程序漏洞检查」· PROP 代码 · 共 11 行
PROP
11 行
// this takes a spec of 14 non-comment lines in Metal (Engler, Fig. 3)voiduno_check(void) // check for side-effects in assertions{ if (select("assert", FCALL, NONE)) // statement of interest if (select("", DEF|FCALL, NONE)) // pickout all defines and fcalls if (unselect("assert", ANY, NONE)) // assert will be among the fcalls error("side effect or fct call in assert");}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?