Otawa  0.10
CFGChecker.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * CFGChecker processor interface
4  *
5  * This file is part of OTAWA
6  * Copyright (c) 2009, IRIT UPS.
7  *
8  * OTAWA is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * OTAWA is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with OTAWA; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef OTAWA_CFG_CFGCHECKER_H_
24 #define OTAWA_CFG_CFGCHECKER_H_
25 
26 #include <otawa/proc/BBProcessor.h>
27 
28 namespace otawa {
29 
30 // CFGChecker class
31 class CFGChecker: public BBProcessor {
32 public:
34 
35  CFGChecker(void);
37 
38  virtual void configure(const PropList& props);
39  virtual void setup(WorkSpace *ws);
40  virtual void processCFG(WorkSpace *ws, CFG *cfg);
41  virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb);
42  virtual void cleanup(WorkSpace *ws);
43 
44 private:
45  bool failed, no_exn;
46 };
47 
48 } // otawa
49 
50 #endif /* OTAWA_CFG_CFGCHECKER_H_ */
This processor is dedicated to the basic block process thru proccessBB() method.
Definition: BBProcessor.h:72
CFG * cfg(void) const
Get the current CFG.
Definition: CFGProcessor.h:56
CFGChecker(void)
Definition: cfg_CFGChecker.cpp:67
static Identifier< bool > NO_EXCEPTION
In configuration of otawa::CFGChecker .
Definition: CFGChecker.h:33
virtual void configure(const PropList &props)
Configure the current processor.
Definition: cfg_CFGChecker.cpp:73
Definition: Registration.h:138
bool no_exn
Definition: CFGChecker.h:45
static Registration< CFGChecker > reg
Definition: CFGChecker.h:36
bool failed
Definition: CFGChecker.h:45
WorkSpace * ws
Definition: Processor.h:185
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
virtual void setup(WorkSpace *ws)
This method is called before an anlysis to let the processor do some initialization.
Definition: cfg_CFGChecker.cpp:81
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
The analysis does not produce anything but simply check some properties on the involved CFG: ...
Definition: CFGChecker.h:31
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
This a list of properties.
Definition: PropList.h:63
virtual void processCFG(WorkSpace *ws, CFG *cfg)
See CFGProcessor::processCFG()
Definition: cfg_CFGChecker.cpp:135
virtual void cleanup(WorkSpace *ws)
This method is called after the end of the processor analysis to let it do some clean up...
Definition: cfg_CFGChecker.cpp:147
virtual void processBB(WorkSpace *ws, CFG *cfg, BasicBlock *bb)
Perform the work of the given basic block.
Definition: cfg_CFGChecker.cpp:88