Skip to content

Instantly share code, notes, and snippets.

@lschuermann
Created November 15, 2022 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lschuermann/3b5df1a3383ab44531f236ea017cf800 to your computer and use it in GitHub Desktop.
Save lschuermann/3b5df1a3383ab44531f236ea017cf800 to your computer and use it in GitHub Desktop.
COS 516 Fall 22 Pset 6 Test Output
{x -> top,flag -> top}
x = 0
{x -> 0,flag -> top}
flag = 1
{x -> 0,flag -> 1}
while x < 0:
{Bottom}
if flag == 1:
{Bottom}
x = (x + 1)
else:
{Bottom}
flag = (flag + 1)
{x -> 0,flag -> 1}
{x -> top,flag -> top}
x = 0
{x -> 0,flag -> top}
flag = 1
{x -> top,flag -> pos}
while x < 0:
{x -> top,flag -> pos}
if flag == 1:
{x -> top,flag -> pos}
x = (x + 1)
else:
{x -> top,flag -> pos}
flag = (flag + 1)
{x -> top,flag -> pos}
{y -> top,x -> top}
x = ((y + -(y)) + 1)
{y -> top,x -> 1}
if y < 0:
{y -> top,x -> 1}
x = (x + x)
else:
{y -> top,x -> 1}
x = 2
{y -> top,x -> 2}
y = x
{y -> 2,x -> 2}
print(y)
{y -> 2,x -> 2}
y = (y + 1)
{y -> 3,x -> 2}
{y -> top,x -> top}
x = ((y + -(y)) + 1)
{y -> top,x -> top}
if y < 0:
{y -> top,x -> top}
x = (x + x)
else:
{y -> top,x -> top}
x = 2
{y -> top,x -> top}
y = x
{y -> top,x -> top}
print(y)
{y -> top,x -> top}
y = (y + 1)
{y -> top,x -> top}
{y -> top,x -> top}
x = 0
{y -> top,x -> 0}
y = 0
{y -> 0,x -> top}
while x < 100:
{y -> 0,x -> top}
if (x < y or y < x):
{y -> 0,x -> top}
x = (x + 1)
else:
{y -> 0,x -> 0}
y = (y + x)
{y -> 0,x -> top}
x = (x + 1)
{y -> 0,x -> top}
{y -> top,x -> top}
x = 0
{y -> top,x -> 0}
y = 0
{y -> top,x -> top}
while x < 100:
{y -> top,x -> top}
if (x < y or y < x):
{y -> top,x -> top}
x = (x + 1)
else:
{y -> top,x -> top}
y = (y + x)
{y -> top,x -> top}
x = (x + 1)
{y -> top,x -> top}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment