Open Access

表1

抽象语法树节点到PROMELA模型的映射规则

编号 抽象语法树节点 映射规则
R1 函数定义 FuncDef 函数名(函数参数){…}映射为inline函数名(函数参数){…}
R3 循环 While while(循环条件){
    循环语句
    if(终止条件){break; }
}
映射为
do
    : : 循环条件->循环语句
    : : 终止条件->break
od
R4 Break
R6 判断 If if(判断条件){
    执行语句
}
映射为
if
    : : 判断条件->执行语句
fi
R10 循环 For for(表达式expr1;表达式expr2;表达式expr3){…}
映射为
表达式expr1;
do
     : : 表达式expr2->循环体内语句expr; 表达式expr3;
    : : !表达式expr2->break
od

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.