tamarin运行

首先我们找到安装tamarin的文件位置,找到以后进入该文件夹下

ubuntu@ubuntu:~$ sudo find / -name tamarin-prover
/home/linuxbrew/.linuxbrew/var/homebrew/linked/tamarin-prover
/home/linuxbrew/.linuxbrew/Cellar/tamarin-prover
/home/linuxbrew/.linuxbrew/Cellar/tamarin-prover/1.6.1/bin/tamarin-prover
/home/linuxbrew/.linuxbrew/opt/tamarin-prover
/home/linuxbrew/.linuxbrew/bin/tamarin-prover
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/tamarin-prover
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
ubuntu@ubuntu:~$ cd /home/linuxbrew/.linuxbrew/bin
ubuntu@ubuntu:/home/linuxbrew/.linuxbrew/bin$ ls

接下来运行

ubuntu@ubuntu:/home/linuxbrew/.linuxbrew/bin$ tamarin-prover interactive /home/ubuntu/TamarinCode/code/FirstExample.spthy
GraphViz tool: 'dot'
 checking version: dot - graphviz version 7.0.4 (20221203.1631). OK.
 checking PNG support: OK.
maude tool: 'maude'
 checking version: 2.7.1. OK.
 checking installation: OK.
The server is starting up on port 3001.
Browse to http://127.0.0.1:3001 once the server is ready.

Loading the security protocol theories '/home/ubuntu/TamarinCode/code/*.spthy' ...

------------------------------------------------------------------------------
Unable to load theory file `/home/ubuntu/TamarinCode/code/userdata-leak.spthy'
------------------------------------------------------------------------------
"/home/ubuntu/TamarinCode/code/userdata-leak.spthy" (line 47, column 6):
unexpected "l"
process not defined: test
CallStack (from HasCallStack):
  error, called at src/Theory/Text/Parser/Token.hs:156:21 in tamarin-prover-theory-1.6.1-K6bPtlytRzk2uwYGKnIGQc:Theory.Text.Parser.Token
Finished loading theories ... server ready at 

    http://127.0.0.1:3001

点击
http://127.0.0.1:3001
进入浏览器页面
在这个文件夹下的所有tamarin写的代码都被运行出来,可以点击每一个选项进行查看
在这里插入图片描述
结束!!!
相互学习指正

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

爱吃香菜的哈哈

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值