1 #include "DumpVariableArrayInt.h"
4 #include <vararray/VariableArrayInt.h>
17 DumpVariableArrayInt::DumpVariableArrayInt(
const string &NodeName)
23 int DumpVariableArrayInt::process_Node(
PHNode *myNode)
25 VariableArrayInt *variablearray =
nullptr;
29 variablearray = thisNode->
getData();
33 *fout <<
"Id(): " << variablearray->Id() << endl;
34 *fout <<
"get_array_size(): " << variablearray->get_array_size() << endl;
35 const int *sval = variablearray->get_array();
36 for (
unsigned int i = 0; i < variablearray->get_array_size(); i++)
38 *fout <<
"val[" << i <<
"]: " << sval[i] << endl;