Skip to content

Simranpal/nusmv-1

 
 

Repository files navigation

This is version 2 of NuSMV, the New Symbolic Model Verifier.

----------------------------------------------------------------------

NuSMV is a re-implementation and extension of SMV, the first model
checker based on BDDs. It has been designed to be an open architecture
for model checking, which can be reliably used for the verification of
industrial designs, as a core for custom verification tools, and as a
test-bed for formal verification techniques.

NuSMV version 2 extends NuSMV with new model checking algorithms and
techniques. It combines classical BDD-based symbolic techniques with
SAT-based techniques. It also presents other new features: for
instance, it allows for a more powerful manipulation of multiple
models; it can generate flat models for the whole language; it allows
for cone of influence reduction.

The BDD-based model checking component exploits the CUDD library
developed by Fabio Somenzi at Colorado University. The SAT-based
model checking component includes an RBC-based Bounded Model
Checker, connected to a SAT solver to be compiled separately
(instructions and building support are batteries included in
NuSMV, details are underneath).
The currently available SAT solvers are: + The ZCHAFF SAT
library developed by the Princeton University + The MINISAT SAT
library developed by Niklas Een or Niklas Sorensson.

NuSMV version 2 is distributed with an OpenSource license, namely the
GNU Lesser General Public License (LGPL). The aim is to provide a
publicly available state-of-the-art symbolic model checker. With the
OpenSource development model, a whole community participates in the
development of a software systems, with a distributed team and
independent peer review. This may result in a rapid system evolution,
and in increased software quality and reliability: for instance, the
OpenSource model has boosted the take-up of notable software systems,
such as Linux and Apache. With the NuSMV OpenSource project, we would
like to reach the same goals within the model checking community,
opening the development of NuSMV.

You can find further details on NuSMV 2 and on the NuSMV project in paper:

  A. Cimatti, E. Clarke, E. Giunchiglia, F. Giunchiglia,
  M. Pistore, M. Roveri, R. Sebastiani, and A. Tacchella.
  "NuSMV 2: An OpenSource Tool for Symbolic Model Checking".
  In Proc. CAV'02, LNCS. Springer Verlag, 2002.


Please contact <nusmv-users@fbk.eu> for further information on
NuSMV. Please contact <nusmv@fbk.eu> for getting in touch with
the NuSMV development staff.


===========
0. CONTENTS
===========
 1. Copyright
 2. Useful links
 3. Building NuSMV
 4. Platforms
 5. Installing NuSMV
 6. Binary distribution
 7. Files in the NuSMV distribution


============
1. COPYRIGHT
============

NuSMV version 2 (NuSMV 2 in short) is licensed under the GNU Lesser
General Public License (LGPL in short). File LGPL-2.1 contains a copy
of the License.

The aim of the NuSMV OpenSource project is to allow the whole model
checking community to participate to the development of NuSMV. To this
purpose, we have chosen a license that:
1) is "copyleft", that is, it requires that anyone who improves the
   system has to make the improvements freely available;
2) permits to use the system in research and commercial applications, 
   without restrictions.

In brief, the LGPL license allows anyone to freely download, copy,
use, modify, and redistribute NuSMV 2, proviso that any modification
and/or extension to the library is made publicly available under the
terms of LGPL.

The license also allows the usage of the NuSMV 2 as part of a larger
software system *without* being obliged to distributing the whole
software under LGPL. Also in this case, the modification to NuSMV 2
(*not* to the larger software) should be made available under LGPL.

The precise terms and conditions for copying, distribution and
modification can be found in file LGPL-2.1. You can contact
<nusmv@fbk.eu> if you have any doubt or comment on the
license.

*** WARNING *** If your version of NuSMV is linked with ZCHAFF, notice  ***
*** WARNING *** that zChaff is for non-commercial purposes only.        ***
*** WARNING *** NO COMMERCIAL USE OF ZCHAFF IS ALLOWED WITHOUT WRITTEN  ***
*** WARNING *** PERMISSION FROM PRINCETON UNIVERSITY.                   ***
*** WARNING *** Please contact Sharad Malik (malik@ee.princeton.edu)    ***
*** WARNING *** for details.                                            ***

*** WARNING *** Notice also that the CUDD library is copyright          ***
*** WARNING *** University of Colorado. The CUDD library is             ***
*** WARNING *** NOT covered by LGPL.                                    ***


Different partners have participated the initial release of
NuSMV 2. Every source file in the NuSMV 2 distribution contains a
header that acknowledges the developers and the copyright holders for
the file. In particular:

 * CMU and ITC-IRST contributed the source code on NuSMV version 1.
 * ITC-IRST has also developed several extensions for NuSMV 2.
 * ITC-IRST and the University of Trento have developed
   the SAT-based Bounded Model Checking package on NuSMV 2.
 * the University of Genova has contributed SIM, a state-of-the-art
   SAT solver used until version 2.5.0, and the RBC package use in
   the Bounded Model Checking algorithms.
 * Fondazione Bruno Kessler (FBK) is currenlty the main
   developer and maintainer of NuSMV 2.

The NuSMV team has also received several contributions for different
part of the system. In particular:

 * Ariel Fuxman <afuxman@cs.toronto.edu> has extended the LTL to SMV 
   tableau translator to the past fragment of LTL
 * Rik Eshuis <eshuis@cs.utwente.nl> has contributed a strong fairness
   model checking algorithm for LTL specifications
 * Dan Sheridan <dan.sheridan@contact.org.uk> has contributed several
   extensions and enhancements to the Bounded Model Checking algorithms.

*******************************************************************************
*                             Cudd License                                    *
*******************************************************************************

*******************************************************************************
Copyright (c) 1995-2004, Regents of the University of Colorado

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

Neither the name of the University of Colorado nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************


*******************************************************************************
*                          ZChaff64 2007.03.12 License                        *
*******************************************************************************

Copyright 2000-2004, Princeton University.  All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the following:

--- Princeton University hereby grants USER nonexclusive permission
to use, copy and/or modify this software for internal, noncommercial,
research purposes only. Any distribution, including commercial sale
or license, of this software, copies of the software, its associated
documentation and/or modifications of either is strictly prohibited
without the prior consent of Princeton University.  Title to copyright
to this software and its associated documentation shall at all times
remain with Princeton University.  Appropriate copyright notice shall
be placed on all software copies, and a complete copy of this notice
shall be included in all copies of the associated documentation.
No right is  granted to use in advertising, publicity or otherwise
any trademark,  service mark, or the name of Princeton University.


--- This software and any associated documentation is provided "as is"

PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING THOSE OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE, OR THAT  USE OF THE SOFTWARE, MODIFICATIONS, OR
ASSOCIATED DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER INTELLECTUAL PROPERTY RIGHTS OF A THIRD PARTY.

Princeton University shall not be liable under any circumstances for
any direct, indirect, special, incidental, or consequential damages
with respect to any claim by USER or any third party on account of
or arising from the use, or inability to use, this software or its
associated documentation, even if Princeton University has been advised
of the possibility of those damages.



*******************************************************************************
*                    MiniSat release 070721 (and later) License               *
*******************************************************************************

*******************************************************************************
*** MiniSat -- Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson        ***
*** MiniSat -- Copyright (c) 2007-2010  Niklas Sorensson                    ***
***                                                                         ***
***  Permission is hereby granted, free of charge, to any person            ***
***  obtaining a copy of this software and associated documentation         ***
***  files (the "Software"), to deal in the Software without                ***
***  restriction, including without limitation the rights to use, copy,     ***
***  modify, merge, publish, distribute, sublicense, and/or sell copies     ***
***  of the Software, and to permit persons to whom the Software is         ***
***  furnished to do so, subject to the following conditions:               ***
***                                                                         ***
***  The above copyright notice and this permission notice shall be         ***
***  included in all copies or substantial portions of the Software.        ***
***                                                                         ***
*** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ***
*** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF              ***
*** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND                   ***
*** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE  ***
*** LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION  ***
*** OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION   ***
*** WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.         ***
*******************************************************************************


================
2. USEFUL LINKS
================

The NuSMV home page:

        http://nusmv.fbk.eu/

The NuSMV mailing list page:

        http://nusmv.fbk.eu/mail.html

The most recent versions of NuSMV:

        http://nusmv.fbk.eu/download.html

The CUDD home page: 

        http://vlsi.colorado.edu/~fabio/CUDD/

The SIM home page: 

        http://www.mrg.dist.unige.it/star/sim/

The ZCHAFF home page:

        http://www.princeton.edu/~chaff/zchaff.html

The MiniSat page (Niklas Eén home page):

        http://www.cs.chalmers.se/~een/

The home page of ext, the code documentation tool used in NuSMV:

        http://www.alumni.caltech.edu/~sedwards/ext/

The OpenSource site: 

        http://www.opensource.org/

The GNU General Public License home page:

        http://www.gnu.org/copyleft/    



=================
3. BUILDING NUSMV
=================

To compile NuSMV 2 follow the instructions below.

NOTE: NuSMV is also distributed already compiled for the most common
operating systems and architectures. See the "BINARY DISTRIBUTION"
section for instructions on how to install an already compiled
package.

NOTE: platform specific instructions for building NuSMV are contained
in the "PLATFORMS" section.

To build NuSMV and CUDD as them are distributed, you will need

  * An ANSI C compiler (gcc will do, as will several versions of cc)
  * GNU Flex version 2.5 or greater
  * GNU Bison version 1.22 or greater
  * GNU make utility version 3.74 or greater
  * GNU tar and gzip utilities
  * Approximately 91 MB of free disk space for building the system
  * Approximately 49 MB of free disk space for the installation

A few tools and libraries are required to have full features provided,
but they are not strictly required to build NuSMV. 
In particular:

   * A fully working 'latex' environment for generation of documentation
   * Program 'lynx' or 'links' for generation of online help
   * Library 'expat' for loading of counter-examples
   * Library 'readline' as a usability improvement. 


Furthermore, as a developer you might be interested in modifying
the NuSMV's source packaging structure, for example by adding a new
source file.  In this case a few other tools will be needed:

  * automake (GNU automake) 1.9  or greater
  * autoconf (GNU Autoconf) 2.58  or greater
  * aclocal (GNU automake) 1.9  or greater
  * autoheader (GNU Autoconf) 2.58  or greater
  * ltmain.sh (GNU libtool) 1.4.3


Basic building steps:

1. Download the most recent versions of NuSMV from the address
   above into a convenient directory, e.g., /tmp.

2. Move to the directory where you would like to build NuSMV and unpack the
   distributions:

        % cd /home/nusmv                                # for example
        % gzip -dc /tmp/NuSMV-5.0.1.tar.gz | tar xf -

3. ZCHAFF and/or MINISAT SAT solvers can be downloaded and
   compiled. IMPORTANT: although this step is optional, to make
   Bounded Model Checking feature available it is required that at
   least one SAT solver is compiled before configuring and building
   NuSMV.

   For instructions on how to download, compile and link ZCHAFF and 
   MINISAT with NuSMV, read files 'README.zChaff' and 'README.MiniSat',
   respectively.

4. Move into the cudd-2.4.1.1 directory and run make, which will
   compile the CUDD libraries. 

   For 32 bit architectures only:
        % cd cudd-2.4.1.1
        % make 

   For 64 bit architecture use provided Makefile_64bit:
        % cd cudd-2.4.1.1
        % make -f Makefile_64bit

   Note: at the moment, NuSMV 2 requires a modified version of the CUDD
   library. The CUDD library included in the NuSMV distribution must 
   be used with NuSMV even if another version of the CUDD library is
   already installed in the system.

5. Move into the nusmv directory and run configure, which will
   determine some system-specific parameters and create the Makefile:

        % cd ../nusmv
        % ./configure 
   
   OPTIONAL: if you want to use ZCHAFF or MINISAT with NuSMV,
   you have to enable them. Read files 'README.zChaff' and
   'README.MiniSat' for more information. 
   ZCHAFF and MINISAT can both be enabled at the same time. 
   If found at configuration time, MINISAT is enabled by default.

   Note: Not all checks will return "yes."  This is normal and should
   not affect compilation.  However, do be concerned with any warnings
   "configure" produces.

   Note: configure.sh offers a set of options which can be used to
   change wrong guess or defaults you may not want. Use option
   --help to see the available options.

   Note: For further information see the "INSTALLING NUSMV" section
   below.

6. Build the NuSMV system by running GNU's make utility:

        % make

   This builds an executable "NuSMV" in the current directory.  

   WARNING: If you are not successful in building a NuSMV executable, 
   double check that:
   * you are using Flex version 2.5 or greater (check 
     using "flex -V")
   * you are using GNU Bison version 1.22 or greater (check with 
     "bison -V"). 
   * you are using GNU make utility version 3.74 or greater (check with
     "make -v").

   Having out-of-date versions of these programs can
   lead to obscure compilation and linking errors. You can download
   the new versions from the GNU FTP address above.

   NuSMV expects to find master.nusmvrc file, and a directory
   of help files in the directory given by the environment variable
   NuSMV_LIBRARY_PATH. Set this to the "share" directory in the source
   tree:

        ([t]csh) % setenv NuSMV_LIBRARY_PATH $cwd/share
        ([ba]sh) % NuSMV_LIBRARY_PATH='pwd'/share; export NuSMV_LIBRARY_PATH

7. OPTIONAL: Verify that NuSMV works by running it on some of the
   examples included in the distribution:

        % make check

   This step requires less than 3 hours on an Intel Pentium II 300Mhz
   with 512Mb of RAM.


============
4. PLATFORMS
============

NuSMV has been tested in a range of architecture/operating system
combinations. It has been tested on PC Intel, Apple Mac and Sun
architectures, with different versions and distributions of Linux,
Solaris, Windows and Mac OS X.

NuSMV-2.4.2 and later versions can be compiled natively at 64 bits.

File README_PLATFORMS provides detailed information about each
supported platform.


===================
5. INSTALLING NUSMV
===================

Administrators and people who want to discard the source after building
NuSMV will want to install NuSMV in a central area:

* To install the NuSMV executable, library, headers, and help files, type,
  while in the nusmv directory,

        % make install

  By default, this will put binaries, libraries, headers, and help files
  in /usr/local/bin, /usr/local/lib, /usr/local/include, and /usr/local/share
  respectively.  To choose a different location, provide a default prefix
  when you invoke configure, e.g., to install in /opt/nusmv/bin, etc.,
  use

        % ./configure --prefix=/opt/nusmv

  when configuring NuSMV.

  "make clean" removes all the files generated during "make."  This is
  useful when you want to rebuild NuSMV with a different prefix, when you
  want to rebuild with different compiler options, etc.

  The path "/usr/local/share" (or whatever is set via the --prefix option)
  is hard-coded into NUSMV.  In this directory, NuSMV expects to find
  "master.nusmvrc", and the help/ directory.  This may
  be overridden by setting the environment variable "NuSMV_LIBRARY_PATH" to
  the name of an alternate directory, e.g.,

        ([t]csh)% setenv NuSMV_LIBRARY_PATH /projects/nusmv/common
        ([ba]sh)% NuSMV_LIBRARY_PATH=/projects/nusmv/common; \
        export NuSMV_LIBRARY_PATH 


======================
6. BINARY DISTRIBUTION
======================

NuSMV is also distributed already compiled. To install the binary
distribution of NuSMV follows the instructions below:

1. Download the most recent versions of NuSMV from the addresses
   listed above into a convenient directory, (e.g., /tmp).

2. Move to the root directory where you want to install NuSMV. Let's
   say "/opt" and untar the distribution:

        % cd /opt
        % gzip -dc /tmp/NuSMV-X.Y.Z_Linux-i686.tar.gz | tar xf -

   This command will create a directory "/opt/nusmv-X.Y.Z" 
   containing the NuSMV files (X.Y.Z is the release number).

3. Add the directory /opt/nusmv-X.Y.Z/bin to your command search PATH
   environment variable: 

        ([t]csh)% set path=($path /opt/nusmv-X.Y.Z/bin); rehash
        ([ba]sh)% PATH=${PATH}:/opt/nusmv-X.Y.Z/bin; export PATH 

4. Set the NuSMV_LIBRARY_PATH environment variable:

        ([t]csh)% setenv NuSMV_LIBRARY_PATH /opt/nusmv-X.Y.Z/share/nusmv
        ([ba]sh)% NuSMV_LIBRARY_PATH=/opt/nusmv-X.Y.Z/share/nusmv; \
        export NuSMV_LIBRARY_PATH 

Now you are ready to run and enjoy NuSMV.


==================================
7. FILES IN THE NUSMV DISTRIBUTION
==================================

cudd-2.4.1.1/       The modified CUDD source tree.
                    Further information on CUDD can be found in the
                    README file in this directory.

nusmv/              The NuSMV source tree.

  AUTHORS           The NuSMV's team members list and other contributors.

  INSTALL           Contains generic installation instructions.

  NEWS              Contains the changelog for the different releases.

  LGPL-2.1          The GNU Lesser General Public License.

  Makefile.{am,in}  Templates of Makefile. 

  README            This file.

  README_PLATFORMS  Platform-related information

  README.zChaff     Contains information about how to embed zChaff into NuSMV.

  README.MiniSat    Contains information about how to embed MiniSat into NuSMV.

  README.cudd       Contains the Cudd license.

  acinclude.m4      Autoconf additional source for generating the configure
                    file. Only useful if you want to modify the
                    configure script.

  configure         An executable shell script that creates "Makefile" from
                    Makefile.in after determining system-specific parameters.

  configure.ac      Autoconf source for generating the configure file.
                    Only useful if you want to modify the configure script.

  nusmv-config.h.in 
                    Template for nusmv-config.h, the header file containing 
                    configuration information

  nusmv-2.pc.in     Template file for nusmv-2.2.pc to be used by pkg-config. 
                    Useful only to link against NuSMV's library. 

  contrib/          A collection of useful programs and scripts.
                    See contrib/README for further information.

  doc/FAQ           A collection of Frequently Asked Questions

  doc/*/*           Various NuSMV manuals and tutorial. 

  examples/         Various collected examples.

  helpers/          Contains tools, scripts and programs used during
                    configuration, building and installation phases. 

  share/help/       ASCII documentation for each NuSMV command, accessible
                    through the "help" command within NuSMV. Notice that this 
                    is distributed only with binary distributions. 
                    Source distributions when installed throught 'make install' 
                    will generate and install it automatically. 

  share/master.nusmvrc
                    A NuSMV script designed to be ran automatically at
                    start-up: contains aliases for commonly used
                    commands and some default parameter settings.

  src/*                   Source code packages of the NuSMV system.


===
EOF
===


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 84.0%
  • Shell 5.8%
  • PostScript 2.8%
  • Perl 2.6%
  • Emacs Lisp 2.3%
  • C++ 0.7%
  • Other 1.8%