Monitor自动机是一种特殊类型的buchi自动机,可以表示运行时系统的行为,故可用来监控运行时系统。
AutoMonitor运用了spot库中Monitor生成算法,将buchi自动机转化为能够接受一连串有限字的Monitor自动机,并增加了字检测功能,从而可以监控运行时系统。
AutoMonitor拥有一个长期的开发计划,目标是实现一款易用的模型驱动工具。
本软件自带了spot 2.8,进入lib/libspot下,
./configure
make
sudo make install
或者也可以从以下网址下载spot2.8.x
https://spot.lrde.epita.fr/
https://spot.lrde.epita.fr/install.html
进入src目录
g++ -std=c++14 -I/usr/local/include automonitor.cc -L/usr/local/lib -lspot -lbddx -o automonitor
编译出现错误,往往是include 文件夹里缺少spot的头文件,或者说lib文件夹里缺少 libspot相关的文件。
g++ -g -std=c++14 -I/usr/local/include automonitor.cc -L/usr/local/lib -lspot -lbddx -o automonitor
ltl2tgba -D -M 'G(!red | X!yellow)'
ltl2tgba -D -M 'G(!red | X!yellow)' -d | dot -Tpdf > demo1.pdf
编译时,g++版本要5.0以后。
https://www.cs.cmu.edu/~modelcheck/index.html