This VS code extension adds support for the Cyclone specification language. Cyclone is a new specification language for verifying/testing graph-based structures. Unlike other formal methods tools, Cyclone uses simple notations and allows users to construct verification tasks by building graphs. Cyclone promotes the idea of think in graph, and makes verification tasks easy to be understood or visualised for those who do not have verification background. Click here to learn more about Cyclone.
- Support Cyclone syntax and semantics
- Highlight syntax errors.
- Running Cyclone verification tasks within VS code editor.
- Display trace files (text and image based).
- Time out settings.
- Sample Cyclone specifications.
- Make sure you have
java
installed first. - If your processor architecture is x86_64, download
Cyclone-x64.vsix
file from this repo. If your processor architecture is ARM (Macbook M1/M2 for example) downloadCyclone-ARM.vsix
file from this repo. - Open VSCode.
- Open
Extensions
panel (CTRL + SHIFT + X). - Click on
...
button. - Choose
Install from VSIX...
command. - Pick
Cyclone-x64.vsix
orCyclone-ARM.vsix
file, depending on your architecture (see 1.) and confirm. - Wait until a notification appears.
- Click on
Reload now
button. - Open any .cyclone file.
- Right click your source code editor and choose menu
Cyclone -> Check This Cyclone Spec.
- Open
Output
panel. - Open
Cyclone
channel. - Results are shown in the
Cyclone
channel.
Cyclone VS Code Extension Features:
Open a new file and right click to open menu. Then in Cyclone menu, click on Load example and select a sample spec. For example, choose chapter2
-> Counter.cyclone
.
Open a Cyclone spec, add the following line 'option-trace=true;'
and click on Check This Cyclone Spec in Cyclone menu. You can also click the launch icon.
Once the check is done, open a terminal and go to Output (1) -> Cyclone (2) to get results about current check. In Cyclone menu, click Show Trace File (3). You can also click on the document icon.
To generate picture based trace file. First in Cyclone menu click on settings (or on the gear icon). In the settings menu tick Generate Graphic Trace
.
You could also simply click the arrows icon to change the settings.
Once a picture-based trace is finished, click the Cyclone menu and choose Show Trace (Graphic).
You can also click on the second document button.
You can choose Clean Trace in the Cyclone menu to delete trace files from last check. You can also click the bin icon. Click the flame icon to delete all traces from previous checks.