Start on tracking pos

This commit is contained in:
Alex Groce 2019-05-19 10:13:50 -07:00 committed by GitHub
parent bf3395f297
commit 7cd1eda6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,6 +190,9 @@ def main():
iteration = 0
changed = True
rangeRemovePos = 0
byteReducePos = 0
try:
while changed:
changed = False
@ -213,7 +216,7 @@ def main():
break
if (not args.fast) and (not changed):
for b in range(0, len(currentTest)):
for b in range(rangeRemovePos, len(currentTest)):
if args.verbose:
print("TRYING BYTE RANGE REMOVAL FROM BYTE", str(b) + "...")
for v in range(b+1, len(currentTest)):
@ -221,6 +224,7 @@ def main():
r = writeAndRunCandidate(newTest)
if checks(r):
print("BYTE RANGE REMOVAL REDUCED TEST TO", len(newTest), "BYTES")
rangeRemovePos = b
changed = True
break
if changed: