7 #ifndef RETDEC_LLVMIR2HLL_HLL_BRACKET_MANAGERS_C_BRACKET_MANAGER_H
8 #define RETDEC_LLVMIR2HLL_HLL_BRACKET_MANAGERS_C_BRACKET_MANAGER_H
23 virtual std::string
getId()
const override;
A base class of all BracketManagers.
A base class of all brackets managers.
Definition: bracket_manager.h:38
ShPtr< Module > module
The module to be analyzed.
Definition: bracket_manager.h:120
static const int PREC_TABLE_SIZE
Constant for size of precedence table.
Definition: bracket_manager.h:110
Operators
Enumeration for operators.
Definition: bracket_manager.h:41
A class that contains precedence table and overrided methods which decide of elimination redundant br...
Definition: c_bracket_manager.h:19
CBracketManager(ShPtr< Module > module)
Constructs a new C brackets manager.
Definition: c_bracket_manager.cpp:18
static ItemOfPrecTable precedenceTable[PREC_TABLE_SIZE][PREC_TABLE_SIZE]
Precedence table of operators.
Definition: c_bracket_manager.h:32
virtual std::string getId() const override
Returns the ID of the BracketManager.
Definition: c_bracket_manager.cpp:23
virtual bool isOperatorSupported(Operators currentOperator) override
Function that check if operator is supported in chosen language.
Definition: c_bracket_manager.cpp:52
virtual ItemOfPrecTable checkPrecTable(Operators currentOperator, Operators prevOperator) override
Overrided from base class BracketManager. This function enter to precedence table and return result....
Definition: c_bracket_manager.cpp:37
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Definition: bracket_manager.h:93