符号执行例子

程序

注意包含了循环

def f(x, y):
  z = 2 * x
  while z > 0:
    if z == y:
      assert False
    z -= 2

Symbolic Execution Graph

但是其实考虑算术越界后是

Concolic Execution

1. \( x=0, y=0 \)

2. \( x=1, y=0 \)

3. \( x=1, y=2 \)

结束