checkex.m

来自「CheckMate is a MATLAB-based tool for mod」· M 代码 · 共 38 行

M
38
字号
function EXf = checkEX(f)% Evaluate the `computation tree logic (CTL)` expression "EX f". %% Syntax:%   "EXf = checkEX(f)"%% Description:%   Given a finite-state transition system and its reverse transition system%   stored in the global variables "GLOBAL_TRANSITION" and%   "GLOBAL_REV_TRANSITION" and a "region" object "f", compute the region%   "EXf" corresponding to the CTL expression "EX f".%% Implementation:%   "GLOBAL_REV_TRANSITION" is a cell array of whose "i"-th entry is a%   vector of source states for each state "i" in the transition%   system. "checkEX()" collects the source states for all states in the%   region "f".%% See Also:%   region,auto2xsys,reach,findSCCf,checkAF,checkAG,checkAR,checkAU,checkAX,%   checkEF,checkEG,checkER,checkEUglobal GLOBAL_REV_TRANSITIONN = length(GLOBAL_REV_TRANSITION);EXf = region(N,'false');for i = 1:N  % if state i is in region f, include all of its parents in EXf  if isinregion(f,i)    parents = GLOBAL_REV_TRANSITION{i};    for j = 1:length(parents)      EXf = set_state(EXf,parents(j),1);    end  endendreturn

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?