PandA-2024.02
|
rebuild initialization where it is possible More...
#include "rebuild_initializations.hpp"
#include "Parameter.hpp"
#include "application_manager.hpp"
#include "basic_block.hpp"
#include "behavioral_helper.hpp"
#include "custom_map.hpp"
#include "custom_set.hpp"
#include "dbgPrintHelper.hpp"
#include "function_behavior.hpp"
#include "string_manipulation.hpp"
#include "token_interface.hpp"
#include "tree_basic_block.hpp"
#include "tree_helper.hpp"
#include "tree_manager.hpp"
#include "tree_manipulation.hpp"
#include "tree_reindex.hpp"
#include <fstream>
#include <utility>
#include <vector>
Go to the source code of this file.
Macros | |
#define | REBUILD2_DEVEL 0 |
#define | foundNonConstant(VD) |
#define | unexpetedPattern2(node, VD) foundNonConstant(VD) |
Functions | |
static tree_nodeRef | extractOp1 (tree_nodeRef opSSA) |
static bool | varFound (tree_nodeRef node, unsigned &vd_index, tree_nodeRef &vd_node) |
static bool | unexpetedPattern (tree_nodeRef) |
tree_nodeRef | getAssign (tree_nodeRef SSAop, unsigned vd_index, CustomOrderedSet< unsigned > &nonConstantVars, TreeNodeMap< std::map< integer_cst_t, tree_nodeRef >> &inits, tree_managerRef TM) |
rebuild initialization where it is possible
Definition in file rebuild_initializations.cpp.
#define foundNonConstant | ( | VD | ) |
Definition at line 655 of file rebuild_initializations.cpp.
Referenced by rebuild_initialization2::look_for_ROMs().
#define REBUILD2_DEVEL 0 |
Definition at line 284 of file rebuild_initializations.cpp.
#define unexpetedPattern2 | ( | node, | |
VD | |||
) | foundNonConstant(VD) |
Definition at line 667 of file rebuild_initializations.cpp.
Referenced by rebuild_initialization2::look_for_ROMs().
|
static |
Definition at line 250 of file rebuild_initializations.cpp.
References tree_node::get_kind(), GET_NODE, THROW_ASSERT, and tree_node::ToString().
Referenced by rebuild_initialization2::extract_var_decl(), and rebuild_initialization2::extract_var_decl_ppe().
tree_nodeRef getAssign | ( | tree_nodeRef | SSAop, |
unsigned | vd_index, | ||
CustomOrderedSet< unsigned > & | nonConstantVars, | ||
TreeNodeMap< std::map< integer_cst_t, tree_nodeRef >> & | inits, | ||
tree_managerRef | TM | ||
) |
Definition at line 670 of file rebuild_initializations.cpp.
References tree_node::get_kind(), GET_NODE, key, and THROW_ASSERT.
Referenced by rebuild_initialization2::look_for_ROMs().
|
static |
Definition at line 289 of file rebuild_initializations.cpp.
Referenced by rebuild_initialization2::extract_var_decl(), and rebuild_initialization2::extract_var_decl_ppe().
|
static |
Definition at line 269 of file rebuild_initializations.cpp.
References GET_INDEX_NODE, tree_node::get_kind(), GET_NODE, and THROW_ASSERT.
Referenced by rebuild_initialization2::extract_var_decl(), and rebuild_initialization2::extract_var_decl_ppe().