GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of hst/hst
Description: An open-source refinement checker for the CSP process algebra
Homepage: http://dcreager.lighthouseapp.com/projects/9982-hst/overview
Clone URL: git://github.com/dcreager/hst.git
dcreager (author)
Fri Mar 21 13:10:38 -0700 2008
commit  04ffccc1b5572d80415bac200d0544576e8078b9
tree    afb449e6ba061168c494d9f53366dd62a9ccfead
parent  a76db666456ad02eca2c961df5bf914c78aed135
hst / include / hst / assertions.hh
100644 49 lines (42 sloc) 1.512 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*----------------------------------------------------------------------
*
* Copyright © 2007, 2008 Douglas Creager
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later
* version.
*
* This library 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*----------------------------------------------------------------------
*/
 
#ifndef HST_ASSERTIONS_HH
#define HST_ASSERTIONS_HH
 
#include <hst/types.hh>
#include <hst/lts.hh>
#include <hst/normalized-lts.hh>
 
using namespace std;
 
namespace hst
{
    struct trace_counterexample_t
    {
        trace_t trace;
        event_t event;
        state_t spec_state;
        state_t impl_state;
    };
 
    bool refines(trace_counterexample_t &counter,
                 const normalized_lts_t spec, state_t spec_source,
                 const lts_t impl, state_t impl_source);
}
 
#endif // HST_ASSERTIONS_H