Skip to content

Commit

Permalink
removed test for if elif else
Browse files Browse the repository at this point in the history
  • Loading branch information
esohel30 committed Jul 5, 2024
1 parent b231017 commit 46d1efd
Showing 1 changed file with 0 additions and 132 deletions.
132 changes: 0 additions & 132 deletions scripts/pysa_fuzzer/fuzzer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,135 +277,3 @@ def generate_statements(self, number_statements: int) -> str:
full_code = f"{import_statements}\n{source_code}\n{generated_code}\n{sink_code}"
return full_code

generator = CodeGenerator()
print(generator.generate_source())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_if_else_elif())
print(generator.generate_sink())

a = input()
if a == a:
d = a + 'c1'
elif a == '20':
d = b + 'c2'
else:
d = c + 'c3'
if d == d:
g = d + 'c1'
elif d == '16':
g = e + 'c2'
else:
g = f + 'c3'
if g == g:
j = g + 'c1'
elif g == '19':
j = h + 'c2'
else:
j = i + 'c3'
if j == j:
m = j + 'c1'
elif j == '11':
m = k + 'c2'
else:
m = l + 'c3'
if m == m:
p = m + 'c1'
elif m == '17':
p = n + 'c2'
else:
p = o + 'c3'
if p == p:
s = p + 'c1'
elif p == '13':
s = q + 'c2'
else:
s = r + 'c3'
if s == s:
v = s + 'c1'
elif s == '11':
v = t + 'c2'
else:
v = u + 'c3'
if v == v:
y = v + 'c1'
elif v == '19':
y = w + 'c2'
else:
y = x + 'c3'
if y == y:
ab = y + 'c1'
elif y == '11':
ab = z + 'c2'
else:
ab = aa + 'c3'
if ab == ab:
ae = ab + 'c1'
elif ab == '19':
ae = ac + 'c2'
else:
ae = ad + 'c3'
if ae == ae:
ah = ae + 'c1'
elif ae == '17':
ah = af + 'c2'
else:
ah = ag + 'c3'
if ah == ah:
ak = ah + 'c1'
elif ah == '18':
ak = ai + 'c2'
else:
ak = aj + 'c3'
if ak == ak:
an = ak + 'c1'
elif ak == '19':
an = al + 'c2'
else:
an = am + 'c3'
if an == an:
aq = an + 'c1'
elif an == '18':
aq = ao + 'c2'
else:
aq = ap + 'c3'
if aq == aq:
au = aq + 'c1'
elif aq == '20':
au = ar + 'c2'
else:
au = at + 'c3'
if au == au:
ax = au + 'c1'
elif au == '14':
ax = av + 'c2'
else:
ax = aw + 'c3'
if ax == ax:
ba = ax + 'c1'
elif ax == '20':
ba = ay + 'c2'
else:
ba = az + 'c3'
if ba == ba:
bd = ba + 'c1'
elif ba == '19':
bd = bb + 'c2'
else:
bd = bc + 'c3'
print(bd)

0 comments on commit 46d1efd

Please sign in to comment.