Commit 31b6524e authored by Jason Hiser's avatar Jason Hiser 🚜

code cleanup

parent ba96ffef
Pipeline #2705 canceled with stages
......@@ -19,10 +19,6 @@
#include <math.h>
#include "initialize_stack.hpp"
// todo: remove these lines
#define MIN_STACK_FRAME_SIZE 0
#define MAX_STACK_FRAME_SIZE 8000000
#define ALLOF(a) begin(a), end(a)
using namespace std;
......@@ -97,12 +93,7 @@ bool InitStack_t::execute()
{
// transform all functions
for(auto f : m_funcs_to_init)
{
// todo: remove this
// if (f->getName().substr(0, 1) == ".") continue;
initStack(f);
}
// #ATTRIBUTE is a convention used to help find useful information in log files
cout << "#ATTRIBUTE InitStack::num_transformed=" << m_num_transformed << endl;
......@@ -123,9 +114,6 @@ void InitStack_t::initStack(Function_t* f)
const auto frame_size = f->getStackFrameSize();
const auto num_locs = static_cast<uint64_t> (ceil(frame_size / 4.0));
// todo: remove this line
if (frame_size <= MIN_STACK_FRAME_SIZE || frame_size >= MAX_STACK_FRAME_SIZE) return;
// debug output
cout << "Function: " << f->getName() << " frame size: " << f->getStackFrameSize() << endl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment