模型检测SPIN安装

SPIN官网
SPIN github

SPIN是用于形式化验证并发程序的模型检测工具。Promela是SPIN的输入语法,通过LTL(Linear Temporal Logic)或者断言来对验证属性进行规约,并给出违反验证属性情况下的反例路径
github下载SPIN包
linux SPIN 安装(官方编译版本)

unzip ~/Spin-master.zip  -d ~/spin-master # 本文Spin-master.zip位于家目录
cd ~/spin-master/Bin
gunzip spin651_linux64.gz # 选择一个linux版本解压
chmod +x spin651_linux64
sudo cp spin651_linux64 /usr/local/bin/spin
spin -V

linux SPIN 安装(自己编译)用官方已经编译好的SPIN,有时候会出现问题,则需要自己编译。

unzip ~/Spin-master.zip  -d ~/spin-master # 本文Spin-master.zip位于家目录
cd ~/spin-master/Src
sudo apt-get install byacc #安装byacc
sudo apt-get install gcc #安装gcc
make #编译后出现spin文件
sudo cp ./spin /usr/local/bin/spin
spin -V

linux ISPIN(linux的SPIN图形化工具) 安装

cd ~/spin-master/optional_gui
sudo apt-get install tk # 安装依赖
chmod +x ./ispin.tcl
sudo cp ispin.tcl /usr/local/bin/ispin
ispin # 打开ispn 

java JSPIN
JSPIN https://github.com/motib/jspin

其他安装参考http://spinroot.com/spin/Man/README.html

SPIN 学习参考资料
Promela 语法
SPIN 命令行参数介绍
pan 命令行参数介绍
spin 基本算法原理 SpinIntro.pdf

SPIN推荐书籍
Principles of the Spin Model Checker(包含模型检测知识、Promela语法、LTL公式)

SPIN会议

posted @ 2020-09-14 16:29  ouyangyangyang  阅读(1160)  评论(0编辑  收藏  举报