Reputation: 419
I am currently learning NuSMV for LTL and CTL model checking.
I use notepad++ for my coding activities - mostly in python - and I know we can run a python script (.py files) using notepad++.
I am new to NuSMV and I wonder if there is any method to execute a .smv script in notepad++.
Here is an example of .smv code that I intend to run.
MODULE main
VAR
variable : boolean;
ASSIGN
init(variable) := true;
next(variable) := !variable;
LTLSPEC
G (variable & X !variable)
CTLSPEC
EF (!variable & AX variable)
However, I also have some difficulty to run the above SMV script using NuSMV interactive shell. Suppose the above script name is test.smv. How am I supposed to run it using NuSMV interactive shell?
Upvotes: 2
Views: 1656
Reputation: 12184
If you can figure out the command line to run your code, then the solution is:
"$(FULL_CURRENT_PATH)"
token - N++ will put filename of your current file hereTo display command output to console, press Ctrl+` (the key left of 1234567890).
NuSMV supports launching from the command line and has plenty of command line options found in Chapter 4 of the documentation (current version as of today). However, if they still do not fulfill your requirements and there is no way to run your code from command line, then you might need considering custom programmatic solution (if you have enough time and skills) - consider writing your own N++ plugin. Or write small tool controllable from command line which calls all necessary NuSMV methods using its API. Maybe this can be also done in Python. Then you simply call your tool from NPPExec.
Upvotes: 1