in preprocess/asm_obj.py [0:0]
def content2list(content, BBlock, Funct):
bow = []
for line in content.splitlines():
if not all([re.search(x, line) is None for x in x86_noise]):
continue
else:
l_split = list(filter(None,re.split(r'[\s,()]',line)))
#handle BBlock
if len(l_split) == 0:
continue
if BBlock is not None and (l_split[0] in BBlock):
l_split[0] = l_split[0][:-1]
#handle Function renaming
if Funct is not None:
if (l_split[0] in Funct):
l_split[0] = 'usr_' + str(Funct.index(l_split[0]))
elif l_split[0] == 'call' and (l_split[1]+ ':') in Funct:
l_split[1] = 'usr_' + str(Funct.index(l_split[1]+':'))
bow += l_split
return bow