Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/fuzz_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@ def get_random_opts():
if choice not in requires_closed_world]

# core opts
while 1:
while True:
choice = random.choice(usable_opt_choices)
if '--flatten' in choice or '-O4' in choice:
if has_flatten:
Expand Down
4 changes: 2 additions & 2 deletions scripts/fuzz_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def simplify(passes):

def pick_passes():
ret = []
while 1:
while True:
str_ret = str(ret)
if random.random() < 0.1 and str_ret not in tested:
tested.add(str_ret)
Expand All @@ -126,7 +126,7 @@ def pick_passes():

counter = 0

while 1:
while True:
passes = pick_passes()
print('>>> [' + str(counter) + '] testing:', ' '.join(passes))
counter += 1
Expand Down
4 changes: 2 additions & 2 deletions scripts/fuzz_passes_wast.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def simplify(passes):
def pick_passes():
# return '--waka'.split(' ')
ret = []
while 1:
while True:
str_ret = str(ret)
if random.random() < 0.5 and str_ret not in tested:
tested.add(str_ret)
Expand All @@ -117,7 +117,7 @@ def pick_passes():

counter = 0

while 1:
while True:
passes = pick_passes()
print('>>> [' + str(counter) + '] testing:', ' '.join(passes))
counter += 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def to_end(j):
depth = 1
while depth > 0 and j < len(wast):
if wast[j] == '"':
while 1:
while True:
j = wast.find('"', j + 1)
if wast[j - 1] == '\\':
continue
Expand Down
Loading