NIPS VM added to the SPOT distribution.
2008-05-29 Guillaume SADEGH <sadegh@lrde.epita.fr> * iface/nips/nips.cc, iface/nips/nips.hh, iface/nips/common.cc, iface/nips/common.hh, iface/nips/Makefile.am: TGBA implementation with the NIPS library. * iface/nips/emptiness_check.cc: Emptiness check on a Promela interface. * iface/nips/dottynips.cc: Dot printer on the NIPS interface. * iface/nips/compile.sh: Add. Wrapper around nips compiler to compile Promela to NIPS bytecode. * iface/nips/nips_vm,iface/nips/nips_vm/bytecode.h, iface/nips/nips_vm/ChangeLog, iface/nips/nips_vm/COPYING, iface/nips/nips_vm/hashtab.c, iface/nips/nips_vm/hashtab.h, iface/nips/nips_vm/INSTALL, iface/nips/nips_vm/instr.c, iface/nips/nips_vm/instr.h, iface/nips/nips_vm/instr_step.c, iface/nips/nips_vm/instr_step.h, iface/nips/nips_vm/instr_tools.c, iface/nips/nips_vm/instr_tools.h, iface/nips/nips_vm/instr_wrap.c, iface/nips/nips_vm/instr_wrap.h, iface/nips/nips_vm/interactive.c, iface/nips/nips_vm/interactive.h, iface/nips/nips_vm/main.c, iface/nips/nips_vm/Makefile, iface/nips/nips_vm/Makefile.am, iface/nips/nips_vm/nips_asm_help.pl, iface/nips/nips_vm/nips_asm_instr.pl, iface/nips/nips_vm/nips_asm.pl, iface/nips/nips_vm/nips_disasm.pl, iface/nips/nips_vm/nipsvm.c, iface/nips/nips_vm/nipsvm.h, iface/nips/nips_vm/README, iface/nips/nips_vm/rt_err.c, iface/nips/nips_vm/rt_err.h, iface/nips/nips_vm/search.c, iface/nips/nips_vm/search.h, iface/nips/nips_vm/split.c, iface/nips/nips_vm/split.h, iface/nips/nips_vm/state.c, iface/nips/nips_vm/state.h, iface/nips/nips_vm/state_inline.h, iface/nips/nips_vm/state_parts.c, iface/nips/nips_vm/state_parts.h, iface/nips/nips_vm/timeval.h, iface/nips/nips_vm/tools.h: NIPS VM added to the SPOT distribution. * configure.ac, iface/Makefile.am: Build system updated for the NIPS front-end.
This commit is contained in:
parent
543190f2bc
commit
bc5f13bb4e
57 changed files with 11464 additions and 3 deletions
65
iface/nips/nips.hh
Normal file
65
iface/nips/nips.hh
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
// Copyright (C) 2008 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
// Spot is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
// License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Spot; see the file COPYING. If not, write to the Free
|
||||
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
// 02111-1307, USA.
|
||||
|
||||
|
||||
#ifndef SPOT_IFACE_NIPS_NIPS_HH
|
||||
# define SPOT_IFACE_NIPS_NIPS_HH
|
||||
|
||||
// Do not include nipsvm.h here, or it will polute the user's
|
||||
// namespace with internal C symbols.
|
||||
|
||||
# include <string>
|
||||
# include "tgba/tgba.hh"
|
||||
# include "common.hh"
|
||||
|
||||
// Damn, nipsvm.h is include, to fix.
|
||||
# include "nipsvm.h"
|
||||
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
||||
/// \brief An interface to provide a PROMELA front-end.
|
||||
///
|
||||
/// This interface let to use a Promela model as a Büchi automata.
|
||||
/// It uses the NIPS library, which provied a virtual machine for
|
||||
/// the state-space exploration of a Promela model, therefore, models
|
||||
/// must be compiled with the NIPS compiler
|
||||
/// (http://wwwhome.cs.utwente.nl/~michaelw/nips/).
|
||||
///
|
||||
/// With this interface, properties to check aren't defined with the Spot LTL
|
||||
/// representation, but in defining correctness claims (a monitor) in the
|
||||
/// Promela model (see chapter 4, The Spin Model Checker: Primer and
|
||||
/// reference manual, Gerard J.Holzmann).
|
||||
class nips_interface
|
||||
{
|
||||
public:
|
||||
nips_interface(bdd_dict* dict, const std::string& filename);
|
||||
~nips_interface();
|
||||
tgba* automaton();
|
||||
private:
|
||||
bdd_dict* dict_;
|
||||
nipsvm_t nipsvm_;
|
||||
nipsvm_bytecode_t* bytecode_;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // SPOT_IFACE_NIPS_NIPS_HH
|
||||
Loading…
Add table
Add a link
Reference in a new issue