remove unessential things
remove unessential things from scripts
MODIFY
utils/autodict_ql/autodict-ql.py
utils/autodict_ql/autodict-ql.py
@@ -52,11 +52,11 @@ def static_analysis(file,file2,cur,db) :
f.close()
def copy_tokens(cur, tokenpath) :
- subprocess.call(["cp " + cur + "/" + "strcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
- subprocess.call(["cp " + cur + "/" + "strncmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
- subprocess.call(["cp " + cur + "/" + "memcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
- subprocess.call(["cp " + cur + "/" + "lits/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
- subprocess.call(["cp " + cur + "/" + "strtool-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
+ subprocess.call(["mv " + cur + "/" + "strcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
+ subprocess.call(["mv " + cur + "/" + "strncmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
+ subprocess.call(["mv " + cur + "/" + "memcmp-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
+ subprocess.call(["mv " + cur + "/" + "lits/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
+ subprocess.call(["mv " + cur + "/" + "strtool-strs/*" + " " + cur + "/" + tokenpath + "/."] ,shell=True)
subprocess.call(["find "+tokenpath+" -size 0 -delete"],shell=True)

MODIFY
utils/autodict_ql/memcmp-strings.py
utils/autodict_ql/memcmp-strings.py
@@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
- print("num : %s" % num1)
+ #print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

MODIFY
utils/autodict_ql/stan-strings.py
utils/autodict_ql/stan-strings.py
@@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
- print("num : %s" % num1)
+ #print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

MODIFY
utils/autodict_ql/strcmp-strings.py
utils/autodict_ql/strcmp-strings.py
@@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
- print("num : %s" % num1)
+ #print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

MODIFY
utils/autodict_ql/strncmp-strings.py
utils/autodict_ql/strncmp-strings.py
@@ -40,7 +40,7 @@ def do_string_analysis(corpdir, infile1):
for i, num1 in enumerate(lines):
if i != 0:
new_lst1.append(num1)
- print("num : %s" % num1)
+ #print("num : %s" % num1)
str11 = str(num1)
str11 = str11.replace("|","")
str11 = str11.replace("\n","")

remove unessential things

remove unessential things from scripts