Research Article

A Novel Machine Learning-Based Analysis Model for Smart Contract Vulnerability

Algorithm 1

Get all node and node’s value from AST.
Input: : AST of the smart contract; : an empty list; : the keys of AST;
Output: : all node of AST in the form of list
if is list type then
  fordo
   
  end for
else
  if is dict type then
   fordo
    
   end for
  else
   
  end if
end if