Skip to content

nuaaxh/RVtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v0.1 完成字检测模块

原理

Monitor自动机是一种特殊类型的buchi自动机,可以表示运行时系统的行为,故可用来监控运行时系统。
AutoMonitor运用了spot库中Monitor生成算法,将buchi自动机转化为能够接受一连串有限字的Monitor自动机,并增加了字检测功能,从而可以监控运行时系统。
AutoMonitor拥有一个长期的开发计划,目标是实现一款易用的模型驱动工具。

从本地安装spot库

本软件自带了spot 2.8,进入lib/libspot下,

./configure
make 
sudo make install

或者也可以从以下网址下载spot2.8.x

https://spot.lrde.epita.fr/

debian或Fedra 在线安装spot库

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相关的文件。

加入gdb调试

g++ -g -std=c++14 -I/usr/local/include automonitor.cc -L/usr/local/lib -lspot -lbddx -o automonitor

用命令行创建确定性Monitor自动机并保存为hoa格式

ltl2tgba -D -M 'G(!red | X!yellow)'

把自动机输出为pdf格式

ltl2tgba -D -M 'G(!red | X!yellow)' -d | dot -Tpdf > demo1.pdf

注意事项

编译时,g++版本要5.0以后。

安装AspectC++

安装配置

相关链接

CMU的模型检测库

https://www.cs.cmu.edu/~modelcheck/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published