~tapaal-ltl/verifypn/scc-optimise

« back to all changes in this revision

Viewing changes to PetriEngine/Colored/ColoredNetStructures.h

  • Committer: srba.jiri at gmail
  • Date: 2020-09-11 14:23:39 UTC
  • mfrom: (213.1.151 interval_tar)
  • Revision ID: srba.jiri@gmail.com-20200911142339-bq9328s1gppw24uj
merged in lp:~verifypn-maintainers/verifypn/interval_tar doing 
- Implements TAR w/o z3, but using a simple integer inference engine for Hoare logic.
 - Replaces LP-Solve with GLPK, reduces computation-time and memory overhead
 - Implements new global properties, translated into CTL formulae.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * To change this license header, choose License Headers in Project Properties.
3
 
 * To change this template file, choose Tools | Templates
4
 
 * and open the template in the editor.
5
 
 */
6
 
 
7
 
/* 
8
 
 * File:   ColoredNetStructures.h
9
 
 * Author: Klostergaard
10
 
 *
11
 
 * Created on 17. februar 2018, 17:07
12
 
 */
13
 
 
14
 
#ifndef COLOREDNETSTRUCTURES_H
15
 
#define COLOREDNETSTRUCTURES_H
16
 
 
17
 
#include <vector>
18
 
#include <set>
19
 
#include "Colors.h"
20
 
#include "Expressions.h"
21
 
#include "Multiset.h"
22
 
 
23
 
namespace PetriEngine {
24
 
    namespace Colored {
25
 
        
26
 
        struct Arc {
27
 
            uint32_t place;
28
 
            uint32_t transition;
29
 
            ArcExpression_ptr expr;
30
 
            bool input;
31
 
        };
32
 
        
33
 
        struct Transition {
34
 
            std::string name;
35
 
            GuardExpression_ptr guard;
36
 
            std::vector<Arc> arcs;
37
 
        };
38
 
        
39
 
        struct Place {
40
 
            std::string name;
41
 
            ColorType* type;
42
 
            Multiset marking;
43
 
        };
44
 
    }
45
 
}
46
 
 
47
 
#endif /* COLOREDNETSTRUCTURES_H */
48