spot 2.16
Loading...
Searching...
No Matches
spins_interface.hh
1// -*- coding: utf-8 -*-
2// Copyright (C) by the Spot authors, see the AUTHORS file for details.
3//
4// This file is part of Spot, a model checking library.
5//
6// Spot is free software; you can redistribute it and/or modify it
7// under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 3 of the License, or
9// (at your option) any later version.
10//
11// Spot is distributed in the hope that it will be useful, but WITHOUT
12// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14// License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19#pragma once
20
21#include <memory>
22#include <spot/misc/common.hh>
23
24namespace spot
25{
28
31 typedef struct transition_info
32 {
33 int* labels;
34 int group;
36
38 typedef void (*TransitionCB)(void *ctx,
40 int *dst);
41
47 class SPOT_API spins_interface
48 {
49 public:
51 spins_interface() = default;
53 spins_interface(const std::string& file_arg);
55
57 void (*get_initial_state)(void *to);
59 int (*have_property)();
61 int (*get_successors)(void* m, int *in, TransitionCB, void *arg);
63 int (*get_state_size)();
65 const char* (*get_state_variable_name)(int var);
67 int (*get_state_variable_type)(int var);
69 int (*get_type_count)();
71 const char* (*get_type_name)(int type);
73 int (*get_type_value_count)(int type);
75 const char* (*get_type_value_name)(int type, int value);
76
77 private:
78 // handle to the dynamic library. The variable is of type lt_dlhandle, but
79 // we need this trick since we cannot put ltdl.h in public headers
80 void* handle;
81 };
82
84 typedef std::shared_ptr<const spins_interface> spins_interface_ptr;
85
87}
Implementation of the PINS interface. This class is a wrapper that, given a file, will compile it w....
Definition spins_interface.hh:48
spins_interface()=default
Load a Spins interface from a shared library.
spins_interface(const std::string &file_arg)
Load a Spins interface from file_arg.
std::shared_ptr< const spins_interface > spins_interface_ptr
Shared pointer to a Spins interface.
Definition spins_interface.hh:84
struct spot::transition_info transition_info_t
Transition information passed to callbacks during state-space exploration.
void(* TransitionCB)(void *ctx, transition_info_t *transition_info, int *dst)
Callback used by the PINS interface.
Definition spins_interface.hh:38
Definition automata.hh:26
Transition information passed to callbacks during state-space exploration.
Definition spins_interface.hh:32
int group
Transition group, or -1 if unknown.
Definition spins_interface.hh:34
int * labels
Edge labels, NULL, or label pointer.
Definition spins_interface.hh:33

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.8